@tsocial/tvweb-sdk.abb 5.38.4 → 5.38.6

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 (30) hide show
  1. package/build/esm/{chunk-daa22bcb.js → chunk-0450b9de.js} +1 -1
  2. package/build/esm/{chunk-10888e1b.js → chunk-077d219f.js} +1 -1
  3. package/build/esm/{chunk-dae9cbb9.js → chunk-0acd188a.js} +1 -1
  4. package/build/esm/{chunk-e0bf418c.js → chunk-0b902bbf.js} +195 -183
  5. package/build/esm/chunk-1c510757.js +1 -0
  6. package/build/esm/{chunk-444dda59.js → chunk-25ab631c.js} +1 -1
  7. package/build/esm/{chunk-1bad864c.js → chunk-2fe6358a.js} +1 -1
  8. package/build/esm/{chunk-83f58cc7.js → chunk-31b3ba4c.js} +1 -1
  9. package/build/esm/{chunk-d96dfd2c.js → chunk-3bef845d.js} +1 -1
  10. package/build/esm/{chunk-e2e11e53.js → chunk-3c4e5f1d.js} +1 -1
  11. package/build/esm/{chunk-19bb2954.js → chunk-455c661e.js} +1 -1
  12. package/build/esm/{chunk-a8305c7c.js → chunk-58c43d09.js} +1 -1
  13. package/build/esm/{chunk-55db9afb.js → chunk-68e71565.js} +1 -1
  14. package/build/esm/{chunk-d9ee9ddd.js → chunk-6abcc3b5.js} +1 -1
  15. package/build/esm/{chunk-3ff41049.js → chunk-7674f753.js} +1 -1
  16. package/build/esm/{chunk-39137e90.js → chunk-90f30ffc.js} +1 -1
  17. package/build/esm/{chunk-803c5c89.js → chunk-b1c198b9.js} +1 -1
  18. package/build/esm/{chunk-1da9ec44.js → chunk-bb5a6b23.js} +1 -1
  19. package/build/esm/{chunk-a4de032e.js → chunk-cd892e96.js} +1 -1
  20. package/build/esm/chunk-d42daaf7.js +1 -0
  21. package/build/esm/{chunk-cac3fce4.js → chunk-ea313f1b.js} +1 -1
  22. package/build/esm/{chunk-6f37da98.js → chunk-ff5e6ae9.js} +175 -163
  23. package/build/esm/tvweb-sdk.abb.esm.min.js +1 -1
  24. package/build/tvweb-sdk.abb.cjs.min.js +515 -491
  25. package/build/tvweb-sdk.abb.standalone.js +397 -312
  26. package/build/tvweb-sdk.abb.standalone.min.js +515 -491
  27. package/build/types/index.d.ts +1 -0
  28. package/package.json +5 -5
  29. package/build/esm/chunk-2fc65bbb.js +0 -1
  30. package/build/esm/chunk-ade2a027.js +0 -1
@@ -1186,7 +1186,7 @@
1186
1186
  strokeWidth: 1
1187
1187
  };
1188
1188
 
1189
- var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m$1="active",y$1="data-styled-version",v$1="6.1.12",g="/*!sc*/\n",S$1="undefined"!=typeof window&&"HTMLElement"in window,w$1=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production"),b$1={},_$1=Object.freeze([]),C$1=Object.freeze({});function I$1(e,t,n){return void 0===n&&(n=C$1),e.theme!==n.theme&&e.theme||t||n.theme}var A$1=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"]),O$1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D$1=/(^-|-$)/g;function R$1(e){return e.replace(O$1,"-").replace(D$1,"")}var T$1=/(a)(d)/gi,k$1=52,j$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function x$1(e){var t,n="";for(t=Math.abs(e);t>k$1;t=t/k$1|0)n=j$1(t%k$1)+n;return (j$1(t%k$1)+n).replace(T$1,"$1-$2")}var V$1,F$1=5381,M$1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z$1=function(e){return M$1(F$1,e)};function $$1(e){return x$1(z$1(e)>>>0)}function B$1(e){return e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"==="production")}var G$1="function"==typeof Symbol&&Symbol.for,Y$2=G$1?Symbol.for("react.memo"):60115,W$1=G$1?Symbol.for("react.forward_ref"):60112,q$1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H$1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J$2=((V$1={})[W$1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V$1[Y$2]=U$1,V$1);function X$1(e){return ("type"in(t=e)&&t.type.$$typeof)===Y$2?U$1:"$$typeof"in e?J$2[e.$$typeof]:q$1;var t;}var Z$2=Object.defineProperty,K$2=Object.getOwnPropertyNames,Q$1=Object.getOwnPropertySymbols,ee$2=Object.getOwnPropertyDescriptor,te$2=Object.getPrototypeOf,ne$2=Object.prototype;function oe$2(e,t,n){if("string"!=typeof t){if(ne$2){var o=te$2(t);o&&o!==ne$2&&oe$2(e,o,n);}var r=K$2(t);Q$1&&(r=r.concat(Q$1(t)));for(var s=X$1(e),i=X$1(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H$1||n&&n[c]||i&&c in i||s&&c in s)){var l=ee$2(t,c);try{Z$2(e,c,l);}catch(e){}}}}return e}function re$2(e){return "function"==typeof e}function se$2(e){return "object"==typeof e&&"styledComponentId"in e}function ie$2(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae$2(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce$2(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le$1(e,t,n){if(void 0===n&&(n=!1),!n&&!ce$2(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le$1(e[o],t[o]);else if(ce$2(t))for(var o in t)e[o]=le$1(e[o],t[o]);return e}function ue$1(e,t){Object.defineProperty(e,"toString",{value:t});}function he$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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(n.length>0?" Args: ".concat(n.join(", ")):""))}var fe$1=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he$1(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),ye=new Map,ve=new Map,ge$1=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge$1);)ge$1++;var t=ge$1++;return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge$1=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y$1,'="').concat(v$1,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m$1&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m$1),o.setAttribute(y$1,v$1);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he$1(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S$1,Te={isServer:!S$1,useCSSOMInjection:!w$1},ke=function(){function e(e,n,o){void 0===e&&(e=C$1),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S$1&&Re&&(Re=!1,_e(this)),ue$1(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S$1&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe$1(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C$1:e,s=r.options,i=void 0===s?C$1:s,a=r.plugins,c=void 0===a?_$1:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he$1(15),M$1(e,t.name)},F$1).toString():"",p}var Me=new ke,ze=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React.createContext(void 0);function Ge(){return reactExports.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue$1(this,function(){throw he$1(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re$2(i)?r.push("".concat(He(s),":"),i,";"):ce$2(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se$2(e))return [".".concat(e.styledComponentId)];if(re$2(e)){if(!re$2(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce$2(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_$1,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re$2(n)&&!se$2(n))return !1}return !0}var Ke=z$1(v$1),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M$1(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie$2(o,this.staticRulesId);else {var r=ae$2(Xe(this.rules,e,t,n)),s=x$1(M$1(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie$2(o,s),this.staticRulesId=s;}else {for(var a=M$1(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var p=ae$2(Xe(u,e,t,n));a=M$1(a,p+l),c+=p;}}if(c){var d=x$1(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie$2(o,d);}}return o},e}(),et$2=React.createContext(void 0);et$2.Consumer;function nt$2(){var e=reactExports.useContext(et$2);if(!e)throw he$1(18);return e}function ot$2(e){var n=React.useContext(et$2),r=reactExports.useMemo(function(){return function(e,n){if(!e)throw he$1(14);if(re$2(e)){var o=e(n);return o}if(Array.isArray(e)||"object"!=typeof e)throw he$1(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?React.createElement(et$2.Provider,{value:r},e.children):null}var rt$2={},st$1=new Set;function it$2(e,r,s){var i=se$2(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_$1:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R$1(e);rt$2[n]=(rt$2[n]||0)+1;var o="".concat(n,"-").concat($$1(v$1+n+rt$2[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B$1(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R$1(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et$2),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;var v=I$1(r,f,c)||C$1,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re$2(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie$2(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie$2(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!=="production"||isPropValid(b)||st$1.has(b)||!A$1.has(S)||(st$1.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return o}(a,g);var N=ie$2(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A$1.has(S)?"class":"className"]=N,w.ref=s,reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie$2(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le$1(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),ue$1(D,function(){return ".".concat(D.styledComponentId)}),c&&oe$2(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at$2(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct$2=function(e){return Object.assign(e,{isCss:!0})};function lt$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re$2(t)||ce$2(t))return ct$2(Xe(at$2(_$1,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct$2(Xe(at$2(r,n)))}function ut$1(n,o,r){if(void 0===r&&(r=C$1),!o)throw he$1(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt$1.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut$1(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut$1(n,o,__assign(__assign({},r),e))},s}var pt$1=function(e){return ut$1(it$2,e)},dt$1=pt$1;A$1.forEach(function(e){dt$1[e]=pt$1(e);});var ht$1=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),ke.registerId(this.componentId+1);}return e.prototype.createStyles=function(e,t,n,o){var r=o(ae$2(Xe(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r);},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e);},e.prototype.renderStyles=function(e,t,n,o){e>2&&ke.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o);},e}();function ft$1(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=lt$1.apply(void 0,__spreadArray([n],r,!1)),a="sc-global-".concat($$1(JSON.stringify(i))),c=new ht$1(i,a);var l=function(e){var t=Ge(),n=React.useContext(et$2),r=React.useRef(t.styleSheet.allocateGSInstance(a)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),React.useLayoutEffect(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b$1,o,s);else {var i=__assign(__assign({},n),{theme:I$1(n,r,l.defaultProps)});c.renderStyles(e,i,o,s);}}return React.memo(l)}function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=ae$2(lt$1.apply(void 0,__spreadArray([t],n,!1))),s=$$1(r);return new We(s,r)}
1189
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m$1="active",y$1="data-styled-version",v$1="6.1.12",g="/*!sc*/\n",S$1="undefined"!=typeof window&&"HTMLElement"in window,w$1=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production"),b$1={},_$1=Object.freeze([]),C$1=Object.freeze({});function I$1(e,t,n){return void 0===n&&(n=C$1),e.theme!==n.theme&&e.theme||t||n.theme}var A$1=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"]),O$1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D$1=/(^-|-$)/g;function R$1(e){return e.replace(O$1,"-").replace(D$1,"")}var T$1=/(a)(d)/gi,k$1=52,j$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function x$1(e){var t,n="";for(t=Math.abs(e);t>k$1;t=t/k$1|0)n=j$1(t%k$1)+n;return (j$1(t%k$1)+n).replace(T$1,"$1-$2")}var V$1,F$1=5381,M$1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z$1=function(e){return M$1(F$1,e)};function $$1(e){return x$1(z$1(e)>>>0)}function B$1(e){return e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"==="production")}var G$1="function"==typeof Symbol&&Symbol.for,Y$2=G$1?Symbol.for("react.memo"):60115,W$1=G$1?Symbol.for("react.forward_ref"):60112,q$1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H$1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J$2=((V$1={})[W$1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V$1[Y$2]=U$1,V$1);function X$1(e){return ("type"in(t=e)&&t.type.$$typeof)===Y$2?U$1:"$$typeof"in e?J$2[e.$$typeof]:q$1;var t;}var Z$2=Object.defineProperty,K$2=Object.getOwnPropertyNames,Q$1=Object.getOwnPropertySymbols,ee$2=Object.getOwnPropertyDescriptor,te$2=Object.getPrototypeOf,ne$2=Object.prototype;function oe$2(e,t,n){if("string"!=typeof t){if(ne$2){var o=te$2(t);o&&o!==ne$2&&oe$2(e,o,n);}var r=K$2(t);Q$1&&(r=r.concat(Q$1(t)));for(var s=X$1(e),i=X$1(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H$1||n&&n[c]||i&&c in i||s&&c in s)){var l=ee$2(t,c);try{Z$2(e,c,l);}catch(e){}}}}return e}function re$2(e){return "function"==typeof e}function se$2(e){return "object"==typeof e&&"styledComponentId"in e}function ie$2(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae$2(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce$2(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le$1(e,t,n){if(void 0===n&&(n=!1),!n&&!ce$2(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le$1(e[o],t[o]);else if(ce$2(t))for(var o in t)e[o]=le$1(e[o],t[o]);return e}function ue$1(e,t){Object.defineProperty(e,"toString",{value:t});}function he$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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(n.length>0?" Args: ".concat(n.join(", ")):""))}var fe$1=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he$1(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),ye=new Map,ve=new Map,ge$1=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge$1);)ge$1++;var t=ge$1++;return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge$1=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y$1,'="').concat(v$1,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m$1&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m$1),o.setAttribute(y$1,v$1);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he$1(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S$1,Te={isServer:!S$1,useCSSOMInjection:!w$1},ke=function(){function e(e,n,o){void 0===e&&(e=C$1),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S$1&&Re&&(Re=!1,_e(this)),ue$1(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S$1&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe$1(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C$1:e,s=r.options,i=void 0===s?C$1:s,a=r.plugins,c=void 0===a?_$1:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he$1(15),M$1(e,t.name)},F$1).toString():"",p}var Me=new ke,ze=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React.createContext(void 0);function Ge(){return reactExports.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue$1(this,function(){throw he$1(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re$2(i)?r.push("".concat(He(s),":"),i,";"):ce$2(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se$2(e))return [".".concat(e.styledComponentId)];if(re$2(e)){if(!re$2(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce$2(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_$1,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re$2(n)&&!se$2(n))return !1}return !0}var Ke=z$1(v$1),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M$1(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie$2(o,this.staticRulesId);else {var r=ae$2(Xe(this.rules,e,t,n)),s=x$1(M$1(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie$2(o,s),this.staticRulesId=s;}else {for(var a=M$1(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var p=ae$2(Xe(u,e,t,n));a=M$1(a,p+l),c+=p;}}if(c){var d=x$1(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie$2(o,d);}}return o},e}(),et$2=React.createContext(void 0);et$2.Consumer;function nt$2(){var e=reactExports.useContext(et$2);if(!e)throw he$1(18);return e}function ot$2(e){var n=React.useContext(et$2),r=reactExports.useMemo(function(){return function(e,n){if(!e)throw he$1(14);if(re$2(e)){var o=e(n);return o}if(Array.isArray(e)||"object"!=typeof e)throw he$1(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?React.createElement(et$2.Provider,{value:r},e.children):null}var rt$2={},st$2=new Set;function it$2(e,r,s){var i=se$2(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_$1:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R$1(e);rt$2[n]=(rt$2[n]||0)+1;var o="".concat(n,"-").concat($$1(v$1+n+rt$2[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B$1(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R$1(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et$2),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;var v=I$1(r,f,c)||C$1,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re$2(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie$2(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie$2(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!=="production"||isPropValid(b)||st$2.has(b)||!A$1.has(S)||(st$2.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return o}(a,g);var N=ie$2(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A$1.has(S)?"class":"className"]=N,w.ref=s,reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie$2(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le$1(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),ue$1(D,function(){return ".".concat(D.styledComponentId)}),c&&oe$2(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at$2(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct$2=function(e){return Object.assign(e,{isCss:!0})};function lt$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re$2(t)||ce$2(t))return ct$2(Xe(at$2(_$1,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct$2(Xe(at$2(r,n)))}function ut$1(n,o,r){if(void 0===r&&(r=C$1),!o)throw he$1(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt$1.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut$1(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut$1(n,o,__assign(__assign({},r),e))},s}var pt$1=function(e){return ut$1(it$2,e)},dt$1=pt$1;A$1.forEach(function(e){dt$1[e]=pt$1(e);});var ht$1=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),ke.registerId(this.componentId+1);}return e.prototype.createStyles=function(e,t,n,o){var r=o(ae$2(Xe(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r);},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e);},e.prototype.renderStyles=function(e,t,n,o){e>2&&ke.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o);},e}();function ft$1(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=lt$1.apply(void 0,__spreadArray([n],r,!1)),a="sc-global-".concat($$1(JSON.stringify(i))),c=new ht$1(i,a);var l=function(e){var t=Ge(),n=React.useContext(et$2),r=React.useRef(t.styleSheet.allocateGSInstance(a)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),React.useLayoutEffect(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b$1,o,s);else {var i=__assign(__assign({},n),{theme:I$1(n,r,l.defaultProps)});c.renderStyles(e,i,o,s);}}return React.memo(l)}function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=ae$2(lt$1.apply(void 0,__spreadArray([t],n,!1))),s=$$1(r);return new We(s,r)}
1190
1190
 
1191
1191
  var reactDom = {exports: {}};
1192
1192
 
@@ -2289,7 +2289,7 @@
2289
2289
  _.unable_to_load_model.code,
2290
2290
  _.no_permission.code
2291
2291
  ];
2292
- var q, z, K$1, H, G, Q, W, $, Z$1, X, Y$1, J$1, ee$1, et$1, er$1, en$1, ei$1, ea$1, eo$1, es$1, ec$1, el$1, eu$1, ed$1, ef$1, eh$1, ep$1, eg$1, em$1, ey$1, ev$1, e_$1, eb$1, eC$1, ex$1, ew$1, eS$1, ek$1, eE$1, eB$1, eA$1, eI$1, eT$1, eP$1, eR$1, eD$1, eN$1, eL$1, eO$1, eU$1, eM$1, eV$1, eF$1, ej$1, eq$1, ez$1, eK$1, eH$1, eG$1, eQ$1, eW$1, e$$1, eZ$1, eX$1, eY$1, eJ$1, e0$1, e1$1, e2$1, e4$1, e3$1, e5$1, e6$1, e8$1, e9$1, e7$1, te$1, tt$1, tr$1, tn$1, ti$1, ta$1, to$1, ts$1, tc$1, tl$1, tu$1, td$1, tf$1, th$1, tp$1, tg$1, tm$1, ty$1, tv$1, t_$1, tb$1, tC$1, tx$1, tw$1, tS$1, tk$1, tE$1, tB$1, tA$1, tI$1, tT$1, tP$1, tR$1, tD$1, tN$1, tL$1, tO$1, tU$1, tM$1, tV$1, tF$1, tj$1, tq$1, tz$1, tK$1, tH$1, tG$1, tQ$1, tW$1, t$$1, tZ$1, tX$1, tY$1, tJ$1, t0$1, t1$1, t2$1, t4$1, t3$1, t5$1, t6$1, t8$1, t9$1, t7$1, re$1, rt$1, rr$1, rn$1, ri$1, ra$1, ro$1, rs$1, rc$1, rl$1, ru$1, rd$1, rf$1, rh$1, rp$1, rg$1, rm$1, ry$1, rv$1, r_$1, rb$1, rC$1, rx$1, rw$1, rS$1, rk$1, rE$1, rB$1, rA$1, rI$1, rT$1, rP$1, rR$1, rD$1, rN$1, rL$1, rO$1, rU$1, rM$1, rV$1, rF$1, rj$1, rq$1, rz$1, rK$1, rH$1, rG$1, rQ$1, rW$1, r$$1, rZ$1, rX$1, rY$1, rJ$1, r0$1, r1$1, r2$1, r4$1, r3$1, r5$1, r6$1, r8$1, r9$1, r7$1, ne$1, nt$1, nr$1, nn$1, ni$1, na$1, no$1, ns$1, nc$1, nl$1, nu$1, nd$1, nf$1, nh$1, np$1, ng$1, nm$1, ny$1, nv$1, n_$1, nb$1, nC$1, nx$1, nw$1, nS$1, nk$1, nE$1, nB$1, nA$1, nI$1, nT$1, nP$1, nR$1, nD$1, nN$1, nL$1, nO$1, nU$1, nM$1, nV$1, nF$1, nj$1, nq$1, nz$1, nK$1, nH$1, nG$1, nQ$1, nW$1, n$$1, nZ$1, nX$1, nY, nJ$1, n0$1, n1$1, n2, n4$1, n3, n5$1, n6$1, n8$1, n9$1, n7$1, ie$1, it$1, ir$1, ii$1, ia$1, io$1, is$1, ic$1, il$1, iu$1, id$1, ih$1, ip$1, ig$1, im$1, iy, iv$1, i_$1, ib$1, iC$1, ix, iw$1, iS$1, ik$1, iE, iB$1, iA$1, iI$1, iT$1, iP$1, iR$1, iD$1, iN$1, iL$1, iO$1, iU$1, iM$1, iV$1, iF$1, ij$1, iq$1, iz$1, iK, iH, iG, iQ$1, iW$1, i$$1, iZ$1, iX$1, iY$1, iJ$1, i0, i1$1, i2, i4$1, i3$1, i5, i6$1, i8$1, i9$1, i7$1, ae$1, at$1, ar$1, an$1, ai$1, aa$1, ao$1, as$1, ac$1, al$1, au$1, ad$1, af$1, ah, ap$1, ag$1, am, ay$1, av$1, a_$1, ab$1, aC$1, ax$1, aw$1, aS$1, ak$1, aE$1, aB$1, aA$1, aI$1, aT$1, aP$1, aR$1, aD$1, aN$1, aL$1, aO$1, aU$1, aM$1, aV$1, aF$1, aj$1, aq$1, az$1, aK$1, aH$1, aG$1, aQ$1, aW$1, a$$1, aZ$1, aX$1, aY$1, aJ$1, a0$1, a1$1, a2$1, a4$1, a3$1, a5$1, a6$1, a8$1, a9$1, a7$1, oe$1, ot$1, or$1, on$1, oi$1, oa$1, oo$1, os$1, oc$1, ol$1, ou$1, od$1, of$1, oh$1, op$1, og$1, om$1, oy$1, ov$1, o_$1, ob$1, oC$1, ox$1, ow$1, oS$1, ok$1, oE$1, oB$1, oA$1, oI$1, oT$1, oP$1, oR$1, oD$1, oN$1, oL$1, oO$1, oU, oM$1, oV$1, oF$1, oj$1, oq$1, oz$1, oK$1, oH$1, oG$1, oQ$1, oW$1, o$$1, oZ$1, oX$1, oY$1, oJ$1, o0$1, o1$1, o2$1, o4$1, o3$1, o5$1, o6$1, o8$1, o9$1, o7$1, se$1, st, sr, sn, si, sa$1, so, ss, sc = Object.freeze({
2292
+ var q, z, K$1, H, G, Q, W, $, Z$1, X, Y$1, J$1, ee$1, et$1, er$1, en$1, ei$1, ea$1, eo$1, es$1, ec$1, el$1, eu$1, ed$1, ef$1, eh$1, ep$1, eg$1, em$1, ey$1, ev$1, e_$1, eb$1, eC$1, ex$1, ew$1, eS$1, ek$1, eE$1, eB$1, eA$1, eI$1, eT$1, eP$1, eR$1, eD$1, eN$1, eL$1, eO$1, eU$1, eM$1, eV$1, eF$1, ej$1, eq$1, ez$1, eK$1, eH$1, eG$1, eQ$1, eW$1, e$$1, eZ$1, eX$1, eY$1, eJ$1, e0$1, e1$1, e2$1, e4$1, e3$1, e5$1, e6$1, e8$1, e9$1, e7$1, te$1, tt$1, tr$1, tn$1, ti$1, ta$1, to$1, ts$1, tc$1, tl$1, tu$1, td$1, tf$1, th$1, tp$1, tg$1, tm$1, ty$1, tv$1, t_$1, tb$1, tC$1, tx$1, tw$1, tS$1, tk$1, tE$1, tB$1, tA$1, tI$1, tT$1, tP$1, tR$1, tD$1, tN$1, tL$1, tO$1, tU$1, tM$1, tV$1, tF$1, tj$1, tq$1, tz$1, tK$1, tH$1, tG$1, tQ$1, tW$1, t$$1, tZ$1, tX$1, tY$1, tJ$1, t0$1, t1$1, t2$1, t4$1, t3$1, t5$1, t6$1, t8$1, t9$1, t7$1, re$1, rt$1, rr$1, rn$1, ri$1, ra$1, ro$1, rs$1, rc$1, rl$1, ru$1, rd$1, rf$1, rh$1, rp$1, rg$1, rm$1, ry$1, rv$1, r_$1, rb$1, rC$1, rx$1, rw$1, rS$1, rk$1, rE$1, rB$1, rA$1, rI$1, rT$1, rP$1, rR$1, rD$1, rN$1, rL$1, rO$1, rU$1, rM$1, rV$1, rF$1, rj$1, rq$1, rz$1, rK$1, rH$1, rG$1, rQ$1, rW$1, r$$1, rZ$1, rX$1, rY$1, rJ$1, r0$1, r1$1, r2$1, r4$1, r3$1, r5$1, r6$1, r8$1, r9$1, r7$1, ne$1, nt$1, nr$1, nn$1, ni$1, na$1, no$1, ns$1, nc$1, nl$1, nu$1, nd$1, nf$1, nh$1, np$1, ng$1, nm$1, ny$1, nv$1, n_$1, nb$1, nC$1, nx$1, nw$1, nS$1, nk$1, nE$1, nB$1, nA$1, nI$1, nT$1, nP$1, nR$1, nD$1, nN$1, nL$1, nO$1, nU$1, nM$1, nV$1, nF$1, nj$1, nq$1, nz$1, nK$1, nH$1, nG$1, nQ$1, nW$1, n$$1, nZ$1, nX$1, nY, nJ$1, n0$1, n1$1, n2, n4$1, n3, n5$1, n6$1, n8$1, n9$1, n7$1, ie$1, it$1, ir$1, ii$1, ia$1, io$1, is$1, ic$1, il$1, iu$1, id$1, ih$1, ip$1, ig$1, im$1, iy, iv$1, i_$1, ib$1, iC$1, ix, iw$1, iS$1, ik$1, iE, iB$1, iA$1, iI$1, iT$1, iP$1, iR$1, iD$1, iN$1, iL$1, iO$1, iU$1, iM$1, iV$1, iF$1, ij$1, iq$1, iz$1, iK, iH, iG, iQ$1, iW$1, i$$1, iZ$1, iX$1, iY$1, iJ$1, i0, i1$1, i2, i4$1, i3$1, i5, i6$1, i8$1, i9$1, i7$1, ae$1, at$1, ar$1, an$1, ai$1, aa$1, ao$1, as$1, ac$1, al$1, au$1, ad$1, af$1, ah, ap$1, ag$1, am, ay$1, av$1, a_$1, ab$1, aC$1, ax$1, aw$1, aS$1, ak$1, aE$1, aB$1, aA$1, aI$1, aT$1, aP$1, aR$1, aD$1, aN$1, aL$1, aO$1, aU$1, aM$1, aV$1, aF$1, aj$1, aq$1, az$1, aK$1, aH$1, aG$1, aQ$1, aW$1, a$$1, aZ$1, aX$1, aY$1, aJ$1, a0$1, a1$1, a2$1, a4$1, a3$1, a5$1, a6$1, a8$1, a9$1, a7$1, oe$1, ot$1, or$1, on$1, oi$1, oa$1, oo$1, os$1, oc$1, ol$1, ou$1, od$1, of$1, oh$1, op$1, og$1, om$1, oy$1, ov$1, o_$1, ob$1, oC$1, ox$1, ow$1, oS$1, ok$1, oE$1, oB$1, oA$1, oI$1, oT$1, oP$1, oR$1, oD$1, oN$1, oL$1, oO$1, oU, oM$1, oV$1, oF$1, oj$1, oq$1, oz$1, oK$1, oH$1, oG$1, oQ$1, oW$1, o$$1, oZ$1, oX$1, oY$1, oJ$1, o0$1, o1$1, o2$1, o4$1, o3$1, o5$1, o6$1, o8$1, o9$1, o7$1, se$1, st$1, sr, sn, si, sa, so, ss$1, sc = Object.freeze({
2293
2293
  __proto__: null,
2294
2294
  AlertErrors: m,
2295
2295
  BillingErrors: v,
@@ -3213,17 +3213,17 @@
3213
3213
  }
3214
3214
  return a.prototype.clear = e, a.prototype.delete = t, a.prototype.get = r, a.prototype.has = n, a.prototype.set = i, ec$1 = a;
3215
3215
  }
3216
- function sy$1() {
3216
+ function sy() {
3217
3217
  return e_$1 ? ev$1 : (e_$1 = 1, ev$1 = "object" == typeof sl && sl && sl.Object === Object && sl);
3218
3218
  }
3219
- function sv$1() {
3219
+ function sv() {
3220
3220
  if (eC$1) return eb$1;
3221
3221
  eC$1 = 1;
3222
- var e = sy$1(), t = "object" == typeof self && self && self.Object === Object && self;
3222
+ var e = sy(), t = "object" == typeof self && self && self.Object === Object && self;
3223
3223
  return eb$1 = e || t || Function("return this")();
3224
3224
  }
3225
3225
  function s_() {
3226
- return ew$1 ? ex$1 : (ew$1 = 1, ex$1 = sv$1().Symbol);
3226
+ return ew$1 ? ex$1 : (ew$1 = 1, ex$1 = sv().Symbol);
3227
3227
  }
3228
3228
  function sb() {
3229
3229
  if (eI$1) return eA$1;
@@ -3294,7 +3294,7 @@
3294
3294
  var e = sx(), t = function() {
3295
3295
  if (eU$1) return eO$1;
3296
3296
  eU$1 = 1;
3297
- var e, t = eL$1 ? eN$1 : (eL$1 = 1, eN$1 = sv$1()["__core-js_shared__"]), r = (e = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "")) ? "Symbol(src)_1." + e : "";
3297
+ var e, t = eL$1 ? eN$1 : (eL$1 = 1, eN$1 = sv()["__core-js_shared__"]), r = (e = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "")) ? "Symbol(src)_1." + e : "";
3298
3298
  return eO$1 = function(e) {
3299
3299
  return !!r && r in e;
3300
3300
  };
@@ -3310,16 +3310,16 @@
3310
3310
  return e(i) ? i : void 0;
3311
3311
  };
3312
3312
  }
3313
- function sk() {
3313
+ function sk$1() {
3314
3314
  if (eQ$1) return eG$1;
3315
3315
  eQ$1 = 1;
3316
3316
  var e = sS();
3317
- return eG$1 = e(sv$1(), "Map");
3317
+ return eG$1 = e(sv(), "Map");
3318
3318
  }
3319
3319
  function sE() {
3320
3320
  return e$$1 ? eW$1 : (e$$1 = 1, eW$1 = sS()(Object, "create"));
3321
3321
  }
3322
- function sB() {
3322
+ function sB$1() {
3323
3323
  if (tn$1) return tr$1;
3324
3324
  tn$1 = 1;
3325
3325
  var e = tt$1 ? te$1 : (tt$1 = 1, te$1 = function(e) {
@@ -3387,7 +3387,7 @@
3387
3387
  }
3388
3388
  }
3389
3389
  return a.prototype.clear = e, a.prototype.delete = t, a.prototype.get = r, a.prototype.has = n, a.prototype.set = i, e6$1 = a;
3390
- }(), t = sm(), r = sk();
3390
+ }(), t = sm(), r = sk$1();
3391
3391
  return e9$1 = function() {
3392
3392
  this.size = 0, this.__data__ = {
3393
3393
  hash: new e,
@@ -3398,7 +3398,7 @@
3398
3398
  }(), t = function() {
3399
3399
  if (ta$1) return ti$1;
3400
3400
  ta$1 = 1;
3401
- var e = sB();
3401
+ var e = sB$1();
3402
3402
  return ti$1 = function(t) {
3403
3403
  var r = e(this, t).delete(t);
3404
3404
  return this.size -= !!r, r;
@@ -3406,21 +3406,21 @@
3406
3406
  }(), r = function() {
3407
3407
  if (ts$1) return to$1;
3408
3408
  ts$1 = 1;
3409
- var e = sB();
3409
+ var e = sB$1();
3410
3410
  return to$1 = function(t) {
3411
3411
  return e(this, t).get(t);
3412
3412
  };
3413
3413
  }(), n = function() {
3414
3414
  if (tl$1) return tc$1;
3415
3415
  tl$1 = 1;
3416
- var e = sB();
3416
+ var e = sB$1();
3417
3417
  return tc$1 = function(t) {
3418
3418
  return e(this, t).has(t);
3419
3419
  };
3420
3420
  }(), i = function() {
3421
3421
  if (td$1) return tu$1;
3422
3422
  td$1 = 1;
3423
- var e = sB();
3423
+ var e = sB$1();
3424
3424
  return tu$1 = function(t, r) {
3425
3425
  var n = e(this, t), i = n.size;
3426
3426
  return n.set(t, r), this.size += +(n.size != i), this;
@@ -3455,7 +3455,7 @@
3455
3455
  }), a = function() {
3456
3456
  if (tg$1) return tp$1;
3457
3457
  tg$1 = 1;
3458
- var e = sm(), t = sk(), r = sA();
3458
+ var e = sm(), t = sk$1(), r = sA();
3459
3459
  return tp$1 = function(n, i) {
3460
3460
  var a = this.__data__;
3461
3461
  if (a instanceof e) {
@@ -3475,7 +3475,7 @@
3475
3475
  }
3476
3476
  return o.prototype.clear = t, o.prototype.delete = r, o.prototype.get = n, o.prototype.has = i, o.prototype.set = a, tm$1 = o;
3477
3477
  }
3478
- function sT$1() {
3478
+ function sT() {
3479
3479
  if (t_$1) return tv$1;
3480
3480
  t_$1 = 1;
3481
3481
  var e = sS();
@@ -3489,7 +3489,7 @@
3489
3489
  function sP() {
3490
3490
  if (tC$1) return tb$1;
3491
3491
  tC$1 = 1;
3492
- var e = sT$1();
3492
+ var e = sT();
3493
3493
  return tb$1 = function(t, r, n) {
3494
3494
  "__proto__" == r && e ? e(t, r, {
3495
3495
  configurable: !0,
@@ -3507,20 +3507,20 @@
3507
3507
  (void 0 === i || t(r[n], i)) && (void 0 !== i || n in r) || e(r, n, i);
3508
3508
  };
3509
3509
  }
3510
- var sD = {
3510
+ var sD$1 = {
3511
3511
  exports: {}
3512
3512
  };
3513
3513
  function sN() {
3514
3514
  var e, t, r, n, i, a, o;
3515
- if (tA$1) return sD.exports;
3516
- return tA$1 = 1, e = sD, t = sD.exports, r = sv$1(), o = (a = (i = (n = t && !t.nodeType && t) && e && !e.nodeType && e) && i.exports === n ? r.Buffer : void 0) ? a.allocUnsafe : void 0, e.exports = function(e, t) {
3515
+ if (tA$1) return sD$1.exports;
3516
+ return tA$1 = 1, e = sD$1, t = sD$1.exports, r = sv(), o = (a = (i = (n = t && !t.nodeType && t) && e && !e.nodeType && e) && i.exports === n ? r.Buffer : void 0) ? a.allocUnsafe : void 0, e.exports = function(e, t) {
3517
3517
  if (t) return e.slice();
3518
3518
  var r = e.length, n = o ? o(r) : new e.constructor(r);
3519
3519
  return e.copy(n), n;
3520
- }, sD.exports;
3520
+ }, sD$1.exports;
3521
3521
  }
3522
3522
  function sL() {
3523
- return tT$1 ? tI$1 : (tT$1 = 1, tI$1 = sv$1().Uint8Array);
3523
+ return tT$1 ? tI$1 : (tT$1 = 1, tI$1 = sv().Uint8Array);
3524
3524
  }
3525
3525
  function sO() {
3526
3526
  if (tR$1) return tP$1;
@@ -3547,7 +3547,7 @@
3547
3547
  return t;
3548
3548
  });
3549
3549
  }
3550
- sD.exports;
3550
+ sD$1.exports;
3551
3551
  function sV() {
3552
3552
  return tF$1 ? tV$1 : (tF$1 = 1, tV$1 = function(e, t) {
3553
3553
  return function(r) {
@@ -3633,7 +3633,7 @@
3633
3633
  function s$() {
3634
3634
  var e, t, r, n, i, a, o, s;
3635
3635
  if (t7$1) return sW.exports;
3636
- return t7$1 = 1, e = sW, t = sW.exports, r = sv$1(), n = t9$1 ? t8$1 : (t9$1 = 1, t8$1 = function() {
3636
+ return t7$1 = 1, e = sW, t = sW.exports, r = sv(), n = t9$1 ? t8$1 : (t9$1 = 1, t8$1 = function() {
3637
3637
  return !1;
3638
3638
  }), s = (o = (a = (i = t && !t.nodeType && t) && e && !e.nodeType && e) && a.exports === i ? r.Buffer : void 0) ? o.isBuffer : void 0, e.exports = s || n, sW.exports;
3639
3639
  }
@@ -3663,7 +3663,7 @@
3663
3663
  function sJ() {
3664
3664
  var e, t, r, n, i, a;
3665
3665
  if (ro$1) return sY.exports;
3666
- return ro$1 = 1, e = sY, t = sY.exports, r = sy$1(), a = (i = (n = t && !t.nodeType && t) && e && !e.nodeType && e) && i.exports === n && r.process, e.exports = function() {
3666
+ return ro$1 = 1, e = sY, t = sY.exports, r = sy(), a = (i = (n = t && !t.nodeType && t) && e && !e.nodeType && e) && i.exports === n && r.process, e.exports = function() {
3667
3667
  try {
3668
3668
  var e = i && i.require && i.require("util").types;
3669
3669
  if (e) return e;
@@ -3809,7 +3809,7 @@
3809
3809
  }, a);
3810
3810
  };
3811
3811
  }
3812
- function s9$1() {
3812
+ function s9() {
3813
3813
  return rN$1 ? rD$1 : (rN$1 = 1, rD$1 = function(e) {
3814
3814
  return e;
3815
3815
  });
@@ -3832,7 +3832,7 @@
3832
3832
  function ce$1() {
3833
3833
  if (rW$1) return rQ$1;
3834
3834
  rW$1 = 1;
3835
- var e = s9$1(), t = function() {
3835
+ var e = s9(), t = function() {
3836
3836
  if (rM$1) return rU$1;
3837
3837
  rM$1 = 1;
3838
3838
  var e = s7$1(), t = Math.max;
@@ -3854,7 +3854,7 @@
3854
3854
  return function() {
3855
3855
  return e;
3856
3856
  };
3857
- }), t = sT$1(), r = s9$1();
3857
+ }), t = sT(), r = s9();
3858
3858
  return rj$1 = t ? function(r, n) {
3859
3859
  return t(r, "toString", {
3860
3860
  configurable: !0,
@@ -15929,7 +15929,7 @@
15929
15929
  });
15930
15930
  }(cu$1.exports, cd$1), cu$1.exports;
15931
15931
  }()), ch$1 = new Uint8Array(16), cp$1 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, cg$1 = [], cm$1 = 0; cm$1 < 256; ++cm$1)cg$1.push((cm$1 + 256).toString(16).substr(1));
15932
- function cy(e, t, r) {
15932
+ function cy$1(e, t, r) {
15933
15933
  var n = (e = e || {}).random || (e.rng || function() {
15934
15934
  if (!r2$1 && !(r2$1 = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto))) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
15935
15935
  return r2$1(ch$1);
@@ -16023,22 +16023,22 @@
16023
16023
  if (nE$1) return nk$1;
16024
16024
  nE$1 = 1;
16025
16025
  var e = sS();
16026
- return nk$1 = e(sv$1(), "DataView");
16027
- }(), t = sk(), r = function() {
16026
+ return nk$1 = e(sv(), "DataView");
16027
+ }(), t = sk$1(), r = function() {
16028
16028
  if (nA$1) return nB$1;
16029
16029
  nA$1 = 1;
16030
16030
  var e = sS();
16031
- return nB$1 = e(sv$1(), "Promise");
16031
+ return nB$1 = e(sv(), "Promise");
16032
16032
  }(), n = function() {
16033
16033
  if (nT$1) return nI$1;
16034
16034
  nT$1 = 1;
16035
16035
  var e = sS();
16036
- return nI$1 = e(sv$1(), "Set");
16036
+ return nI$1 = e(sv(), "Set");
16037
16037
  }(), i = function() {
16038
16038
  if (nR$1) return nP$1;
16039
16039
  nR$1 = 1;
16040
16040
  var e = sS();
16041
- return nP$1 = e(sv$1(), "WeakMap");
16041
+ return nP$1 = e(sv(), "WeakMap");
16042
16042
  }(), a = sb(), o = sw(), s = "[object Map]", c = "[object Promise]", l = "[object Set]", u = "[object WeakMap]", d = "[object DataView]", f = o(e), h = o(t), p = o(r), g = o(n), m = o(i), y = a;
16043
16043
  return (e && y(new e(new ArrayBuffer(1))) != d || t && y(new t) != s || r && y(r.resolve()) != c || n && y(new n) != l || i && y(new i) != u) && (y = function(e) {
16044
16044
  var t = a(e), r = "[object Object]" == t ? e.constructor : void 0, n = r ? o(r) : "";
@@ -19065,7 +19065,7 @@
19065
19065
  }, cB;
19066
19066
  }();
19067
19067
  function cP() {
19068
- return "5.38.4";
19068
+ return "5.38.6";
19069
19069
  }
19070
19070
  function cR() {
19071
19071
  return {
@@ -21930,7 +21930,7 @@
21930
21930
  let e = cF("tv:user-id");
21931
21931
  if (e) t = e;
21932
21932
  else {
21933
- let e = cy();
21933
+ let e = cy$1();
21934
21934
  t = e, cV(e, "tv:user-id");
21935
21935
  }
21936
21936
  }
@@ -22075,7 +22075,7 @@
22075
22075
  btn_try_again: "Thử lại",
22076
22076
  remaining_time: "C\xf2n lại: <%= x %> gi\xe2y",
22077
22077
  upload_button_label: "Tải l\xean",
22078
- upload_invalid_file_type: "Vui l\xf2ng chọn ảnh JPEG",
22078
+ upload_invalid_file_type: "Vui l\xf2ng chọn ảnh JPEG hoặc PNG",
22079
22079
  upload_processing_failed: "Kh\xf4ng thể xử l\xfd ảnh. Vui l\xf2ng thử lại.",
22080
22080
  image_preview_unavailable: "Kh\xf4ng thể hiển thị ảnh xem trước",
22081
22081
  front_card_title: "Chụp mặt trước",
@@ -22179,7 +22179,7 @@
22179
22179
  btn_try_again: "Try again",
22180
22180
  remaining_time: "Remaining: <%= x %> second(s)",
22181
22181
  upload_button_label: "Upload",
22182
- upload_invalid_file_type: "Please choose a JPEG image",
22182
+ upload_invalid_file_type: "Please choose a JPEG or PNG image",
22183
22183
  upload_processing_failed: "Could not process the image. Please try again.",
22184
22184
  image_preview_unavailable: "Image preview unavailable",
22185
22185
  front_card_title: "Front of ID",
@@ -22283,7 +22283,7 @@
22283
22283
  btn_try_again: "Intente de nuevo",
22284
22284
  remaining_time: "Restante: <%= x %> segundos",
22285
22285
  upload_button_label: "Cargar",
22286
- upload_invalid_file_type: "Por favor, elige una imagen JPEG",
22286
+ upload_invalid_file_type: "Por favor, elige una imagen JPEG o PNG",
22287
22287
  upload_processing_failed: "No se pudo procesar la imagen. Por favor, intente de nuevo.",
22288
22288
  image_preview_unavailable: "Vista previa de la imagen no disponible",
22289
22289
  front_card_title: "Frente de la identificacion",
@@ -22387,7 +22387,7 @@
22387
22387
  btn_try_again: "Try again",
22388
22388
  remaining_time: "Remaining: <%= x %> second(s)",
22389
22389
  upload_button_label: "Upload",
22390
- upload_invalid_file_type: "Please choose a JPEG image",
22390
+ upload_invalid_file_type: "Please choose a JPEG or PNG image",
22391
22391
  upload_processing_failed: "Could not process the image. Please try again.",
22392
22392
  image_preview_unavailable: "Image preview unavailable",
22393
22393
  front_card_title: "Front of ID",
@@ -22634,62 +22634,58 @@
22634
22634
  }
22635
22635
  return 1 === n && (r += l3(i << 2)), r;
22636
22636
  }
22637
- let l6 = l7, l8 = l7, l9 = ue();
22637
+ let l6 = l7, l8 = l7, l9 = ut();
22638
22638
  for(;;)try {
22639
- if (-parseInt(l8(238)) / 1 * (-parseInt(l8(220)) / 2) + -parseInt(l8(229)) / 3 * (parseInt(l8(213)) / 4) + -parseInt(l8(225)) / 5 * (parseInt(l8(232)) / 6) + -parseInt(l8(223)) / 7 * (-parseInt(l8(231)) / 8) + -parseInt(l8(217)) / 9 * (-parseInt(l8(222)) / 10) + parseInt(l8(215)) / 11 + parseInt(l8(235)) / 12 * (-parseInt(l8(233)) / 13) === 482126) break;
22639
+ if (parseInt(l8(471)) / 1 * (parseInt(l8(466)) / 2) + -parseInt(l8(463)) / 3 * (-parseInt(l8(452)) / 4) + -parseInt(l8(455)) / 5 * (-parseInt(l8(456)) / 6) + parseInt(l8(472)) / 7 * (-parseInt(l8(464)) / 8) + -parseInt(l8(469)) / 9 + -parseInt(l8(465)) / 10 * (parseInt(l8(470)) / 11) + parseInt(l8(453)) / 12 * (-parseInt(l8(460)) / 13) === 656826) break;
22640
22640
  l9.push(l9.shift());
22641
22641
  } catch (e) {
22642
22642
  l9.push(l9.shift());
22643
22643
  }
22644
22644
  function l7(e, t) {
22645
- let r = ue();
22645
+ let r = ut();
22646
22646
  return (l7 = function(e, t) {
22647
- return r[e -= 213];
22647
+ return r[e -= 452];
22648
22648
  })(e, t);
22649
22649
  }
22650
- function ue() {
22650
+ l6(457), l6(454), l6(462);
22651
+ let ue = l6(473) + l6(474) + l6(461) + l6(468) + l6(467) + "ytJdcsPxrD" + l6(458) + "44P0rKKsZKMjci1ul8mmD9EKOWS+U4MfPrcYTM70" + l6(459) + "KA==";
22652
+ function ut() {
22651
22653
  let e = [
22652
- "3059301306",
22653
- "240peaVBL",
22654
- "072a8648ce",
22655
- "2820653Pqkoum",
22656
- "KA==",
22657
- "72wcsCtS",
22658
- "D9EKOWS+U4",
22659
- "cDQgAE9h6Z",
22660
- "84790BpvkRV",
22661
- "MfPrcYTM70",
22662
- "937210KoqoNi",
22663
- "14vUeOjS",
22664
- "000",
22665
- "2130415NUxqWk",
22654
+ "1932876DEhjgA",
22655
+ "6006OYlkKv",
22656
+ "371141VtXZwl",
22657
+ "7szxUMG",
22666
22658
  "MFkwEwYHKo",
22667
- "44P0rKKsZK",
22659
+ "ZIzj0CAQYI",
22660
+ "80ZEFmCS",
22661
+ "108dFGKtX",
22662
+ "072a8648ce",
22663
+ "354150hdyMBe",
22664
+ "48VwQKZC",
22665
+ "3059301306",
22666
+ "+faHkP3QC3",
22668
22667
  "ssRdXLZEX8",
22669
- "21303UESToA",
22670
- "0301070342",
22671
- "2867944nddemC",
22672
- "6ymZARY",
22673
- "17693WALCtX",
22674
- "3d02010608",
22675
- "9036vvXkAE",
22676
- "ytJdcsPxrD",
22677
- "Mjci1ul8mm",
22678
- "15ZyRmYG"
22668
+ "837187oRQeZV",
22669
+ "KoZIzj0DAQ",
22670
+ "2a8648ce3d",
22671
+ "195963YYvRIA",
22672
+ "5233576oCFopr",
22673
+ "9340fbnood",
22674
+ "4zUPGbR",
22675
+ "DepBO8t60S",
22676
+ "cDQgAE9h6Z"
22679
22677
  ];
22680
- return (ue = function() {
22678
+ return (ut = function() {
22681
22679
  return e;
22682
22680
  })();
22683
22681
  }
22684
- l6(239), l6(214), l6(234), l6(230), l6(224);
22685
- let ut = l6(226) + "ZIzj0CAQYIKoZIzj0DAQ" + l6(219) + "DepBO8t60S" + l6(236) + "+faHkP3QC3" + l6(227) + l6(237) + l6(218) + l6(221) + l6(228) + l6(216);
22686
22682
  function ur(e) {
22687
22683
  let t = atob(e), r = new Uint8Array(t.length);
22688
22684
  for(let e = 0; e < t.length; e++)r[e] = t.charCodeAt(e);
22689
22685
  return r.buffer;
22690
22686
  }
22691
22687
  async function un(e) {
22692
- let t = ur(e || ut), r = await crypto.subtle.importKey("spki", t, {
22688
+ let t = ur(e || ue), r = await crypto.subtle.importKey("spki", t, {
22693
22689
  name: "ECDSA",
22694
22690
  namedCurve: "P-256"
22695
22691
  }, !1, [
@@ -26728,7 +26724,7 @@
26728
26724
  return this.getKey().getPublicKey();
26729
26725
  }, e.prototype.getPublicKeyB64 = function() {
26730
26726
  return this.getKey().getPublicBaseKeyB64();
26731
- }, e.version = "5.38.2", e;
26727
+ }, e.version = "5.38.5", e;
26732
26728
  }();
26733
26729
  let fx = [
26734
26730
  "-",
@@ -27308,7 +27304,7 @@
27308
27304
  }), n = await window.crypto.subtle.importKey("raw", r, "AES-GCM", !0, [
27309
27305
  "encrypt",
27310
27306
  "decrypt"
27311
- ]), i = await window.crypto.subtle.exportKey("raw", n), a = cy().replace(/-/g, ""), o = new TextEncoder().encode(a), s = await fA(i, o);
27307
+ ]), i = await window.crypto.subtle.exportKey("raw", n), a = cy$1().replace(/-/g, ""), o = new TextEncoder().encode(a), s = await fA(i, o);
27312
27308
  if (!s) throw Error("Failed to combine keys");
27313
27309
  let c = await fB(e, s), l = await fE(a);
27314
27310
  if (c && "object" == typeof c && "hex" in c) return `${c.hex}::${l}`;
@@ -29467,7 +29463,7 @@
29467
29463
  face_brightness_score: "null",
29468
29464
  face_qualify_score: "null"
29469
29465
  }
29470
- }, t = cy().replace(/-/g, ""), e$1 || (e$1 = fq(i)), r = dQ(e$1.encrypt(t));
29466
+ }, t = cy$1().replace(/-/g, ""), e$1 || (e$1 = fq(i)), r = dQ(e$1.encrypt(t));
29471
29467
  };
29472
29468
  var fX = Object.freeze({
29473
29469
  __proto__: null,
@@ -29507,7 +29503,7 @@
29507
29503
  start_id_card: i,
29508
29504
  end_id_card: a
29509
29505
  }
29510
- }, t = cy().replace(/-/g, ""), e$1 || (e$1 = fq(o)), r = dQ(e$1.encrypt(t));
29506
+ }, t = cy$1().replace(/-/g, ""), e$1 || (e$1 = fq(o)), r = dQ(e$1.encrypt(t));
29511
29507
  },
29512
29508
  uint8ToBinaryString: fM,
29513
29509
  writeCurrentExif: fQ,
@@ -29921,13 +29917,13 @@
29921
29917
  let h_ = (e)=>{
29922
29918
  if (e <= 0) return [];
29923
29919
  let t = [];
29924
- for(let r = 0; r < e; r++)t.push(cy());
29920
+ for(let r = 0; r < e; r++)t.push(cy$1());
29925
29921
  return t;
29926
29922
  };
29927
29923
  var hb = Object.freeze({
29928
29924
  __proto__: null,
29929
29925
  createBatchUUID: h_,
29930
- createSingleUUID: ()=>cy()
29926
+ createSingleUUID: ()=>cy$1()
29931
29927
  });
29932
29928
  let hC = (e)=>{
29933
29929
  let { customTexts: t = {}, customErrors: r, customInstructions: n, customMessages: i, language: a = "vi" } = e ?? {}, o = {
@@ -34033,8 +34029,8 @@
34033
34029
  return "\\" + e[t];
34034
34030
  };
34035
34031
  }(), a = gg(), o = ct$1(), s = cv$1(), c = gm(), l = function() {
34036
- if (st) return se$1;
34037
- st = 1;
34032
+ if (st$1) return se$1;
34033
+ st$1 = 1;
34038
34034
  var e = function() {
34039
34035
  if (o5$1) return o3$1;
34040
34036
  o5$1 = 1;
@@ -34195,7 +34191,7 @@
34195
34191
  }, gS = ()=>URL.createObjectURL(new Blob([
34196
34192
  '\'use strict\';(function(){function T(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let d=0;d<b;d++){let b=a.readBits(8);c.push(b)}try{d+=decodeURIComponent(c.map(a=>`%${("0"+a.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}function U(a,b){a=new V(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes:[],chunks:[],version:b};4<=a.available();){var d=a.readBits(4);if(d===t.Terminator)return b;if(d===t.ECI)0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(7)}):\n0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(14)}):0===a.readBits(1)?b.chunks.push({type:r.ECI,assignmentNumber:a.readBits(21)}):b.chunks.push({type:r.ECI,assignmentNumber:-1});else if(d===t.Numeric){var e=a;d=[];for(var f="",g=e.readBits([10,12,14][c]);3<=g;){var h=e.readBits(10);if(1E3<=h)throw Error("Invalid numeric value above 999");var k=Math.floor(h/100),n=Math.floor(h/10)%10;h%=10;d.push(48+k,48+n,48+h);f+=k.toString()+n.toString()+h.toString();g-=3}if(2===g){g=e.readBits(7);\nif(100<=g)throw Error("Invalid numeric value above 99");e=Math.floor(g/10);g%=10;d.push(48+e,48+g);f+=e.toString()+g.toString()}else if(1===g){e=e.readBits(4);if(10<=e)throw Error("Invalid numeric value above 9");d.push(48+e);f+=e.toString()}d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Numeric,text:d.text})}else if(d===t.Alphanumeric){e=a;d=[];f="";for(g=e.readBits([9,11,13][c]);2<=g;)n=e.readBits(11),k=Math.floor(n/45),n%=45,d.push(B[k].charCodeAt(0),B[n].charCodeAt(0)),\nf+=B[k]+B[n],g-=2;1===g&&(e=e.readBits(6),d.push(B[e].charCodeAt(0)),f+=B[e]);d={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Alphanumeric,text:d.text})}else if(d===t.Byte)d=T(a,c),b.text+=d.text,b.bytes.push(...d.bytes),b.chunks.push({type:r.Byte,bytes:d.bytes,text:d.text});else if(d===t.Kanji){f=a;d=[];e=f.readBits([8,10,12][c]);for(g=0;g<e;g++)k=f.readBits(13),k=Math.floor(k/192)<<8|k%192,k=7936>k?k+33088:k+49472,d.push(k>>8,k&255);f=(new TextDecoder("shift-jis")).decode(Uint8Array.from(d));\nd={bytes:d,text:f};b.text+=d.text;b.bytes.push(...d.bytes);b.chunks.push({type:r.Kanji,bytes:d.bytes,text:d.text})}else d===t.StructuredAppend&&b.chunks.push({type:r.StructuredAppend,currentSequence:a.readBits(4),totalSequence:a.readBits(4),parity:a.readBits(8)})}if(0===a.available()||0===a.readBits(a.available()))return b}function J(a,b){return a^b}function W(a,b,c,d){b.degree()<c.degree()&&([b,c]=[c,b]);let e=a.zero;for(var f=a.one;c.degree()>=d/2;){var g=b;let d=e;b=c;e=f;if(b.isZero())return null;\nc=g;f=a.zero;g=b.getCoefficient(b.degree());for(g=a.inverse(g);c.degree()>=b.degree()&&!c.isZero();){let d=c.degree()-b.degree(),e=a.multiply(c.getCoefficient(c.degree()),g);f=f.addOrSubtract(a.buildMonomial(d,e));c=c.addOrSubtract(b.multiplyByMonomial(d,e))}f=f.multiplyPoly(e).addOrSubtract(d);if(c.degree()>=b.degree())return null}d=f.getCoefficient(0);if(0===d)return null;a=a.inverse(d);return[f.multiply(a),c.multiply(a)]}function X(a,b){let c=new Uint8ClampedArray(a.length);c.set(a);a=new Y(285,\n256,0);var d=new w(a,c),e=new Uint8ClampedArray(b),f=!1;for(var g=0;g<b;g++){var h=d.evaluateAt(a.exp(g+a.generatorBase));e[e.length-1-g]=h;0!==h&&(f=!0)}if(!f)return c;d=new w(a,e);d=W(a,a.buildMonomial(b,1),d,b);if(null===d)return null;b=d[0];g=b.degree();if(1===g)b=[b.getCoefficient(1)];else{e=Array(g);f=0;for(h=1;h<a.size&&f<g;h++)0===b.evaluateAt(h)&&(e[f]=a.inverse(h),f++);b=f!==g?null:e}if(null==b)return null;d=d[1];e=b.length;f=Array(e);for(g=0;g<e;g++){h=a.inverse(b[g]);let c=1;for(let d=\n0;d<e;d++)g!==d&&(c=a.multiply(c,J(1,a.multiply(b[d],h))));f[g]=a.multiply(d.evaluateAt(h),a.inverse(c));0!==a.generatorBase&&(f[g]=a.multiply(f[g],h))}d=f;for(e=0;e<b.length;e++){f=c.length-1-a.log(b[e]);if(0>f)return null;c[f]^=d[e]}return c}function E(a,b){a^=b;for(b=0;a;)b++,a&=a-1;return b}function C(a,b){return b<<1|a}function Z(a,b,c){c=aa[c.dataMask];let d=a.height;var e=17+4*b.versionNumber,f=A.createEmpty(e,e);f.setRegion(0,0,9,9,!0);f.setRegion(e-8,0,8,9,!0);f.setRegion(0,e-8,9,8,!0);for(var g of b.alignmentPatternCenters)for(var h of b.alignmentPatternCenters)6===\ng&&6===h||6===g&&h===e-7||g===e-7&&6===h||f.setRegion(g-2,h-2,5,5,!0);f.setRegion(6,9,1,e-17,!0);f.setRegion(9,6,e-17,1,!0);6<b.versionNumber&&(f.setRegion(e-11,0,3,6,!0),f.setRegion(0,e-11,6,3,!0));b=f;g=[];e=h=0;f=!0;for(let k=d-1;0<k;k-=2){6===k&&k--;for(let n=0;n<d;n++){let m=f?d-1-n:n;for(let d=0;2>d;d++){let f=k-d;if(!b.get(f,m)){e++;let b=a.get(f,m);c({y:m,x:f})&&(b=!b);h=h<<1|b;8===e&&(g.push(h),h=e=0)}}}f=!f}return g}function ba(a){var b=a.height,c=Math.floor((b-17)/4);if(6>=c)return K[c-\n1];c=0;for(var d=5;0<=d;d--)for(var e=b-9;e>=b-11;e--)c=C(a.get(e,d),c);d=0;for(e=5;0<=e;e--)for(let c=b-9;c>=b-11;c--)d=C(a.get(e,c),d);a=Infinity;let f;for(let e of K){if(e.infoBits===c||e.infoBits===d)return e;b=E(c,e.infoBits);b<a&&(f=e,a=b);b=E(d,e.infoBits);b<a&&(f=e,a=b)}if(3>=a)return f}function ca(a){let b=0;for(var c=0;8>=c;c++)6!==c&&(b=C(a.get(c,8),b));for(c=7;0<=c;c--)6!==c&&(b=C(a.get(8,c),b));var d=a.height;c=0;for(var e=d-1;e>=d-7;e--)c=C(a.get(8,e),c);for(e=d-8;e<d;e++)c=C(a.get(e,\n8),c);a=Infinity;d=null;for(let {bits:f,formatInfo:g}of da){if(f===b||f===c)return g;e=E(b,f);e<a&&(d=g,a=e);b!==c&&(e=E(c,f),e<a&&(d=g,a=e))}return 3>=a?d:null}function ea(a,b,c){let d=b.errorCorrectionLevels[c],e=[],f=0;d.ecBlocks.forEach(a=>{for(let b=0;b<a.numBlocks;b++)e.push({numDataCodewords:a.dataCodewordsPerBlock,codewords:[]}),f+=a.dataCodewordsPerBlock+d.ecCodewordsPerBlock});if(a.length<f)return null;a=a.slice(0,f);b=d.ecBlocks[0].dataCodewordsPerBlock;for(c=0;c<b;c++)for(var g of e)g.codewords.push(a.shift());\nif(1<d.ecBlocks.length)for(g=d.ecBlocks[0].numBlocks,b=d.ecBlocks[1].numBlocks,c=0;c<b;c++)e[g+c].codewords.push(a.shift());for(;0<a.length;)for(let b of e)b.codewords.push(a.shift());return e}function L(a){let b=ba(a);if(!b)return null;var c=ca(a);if(!c)return null;a=Z(a,b,c);var d=ea(a,b,c.errorCorrectionLevel);if(!d)return null;c=d.reduce((a,b)=>a+b.numDataCodewords,0);c=new Uint8ClampedArray(c);a=0;for(let b of d){d=X(b.codewords,b.codewords.length-b.numDataCodewords);if(!d)return null;for(let e=\n0;e<b.numDataCodewords;e++)c[a++]=d[e]}try{return U(c,b.versionNumber)}catch(e){return null}}function M(a,b,c,d){var e=a.x-b.x+c.x-d.x;let f=a.y-b.y+c.y-d.y;if(0===e&&0===f)return{a11:b.x-a.x,a12:b.y-a.y,a13:0,a21:c.x-b.x,a22:c.y-b.y,a23:0,a31:a.x,a32:a.y,a33:1};{let h=b.x-c.x;var g=d.x-c.x;let k=b.y-c.y,n=d.y-c.y;c=h*n-g*k;g=(e*n-g*f)/c;e=(h*f-e*k)/c;return{a11:b.x-a.x+g*b.x,a12:b.y-a.y+g*b.y,a13:g,a21:d.x-a.x+e*d.x,a22:d.y-a.y+e*d.y,a23:e,a31:a.x,a32:a.y,a33:1}}}function fa(a,b,c,d){a=M(a,b,c,d);\nreturn{a11:a.a22*a.a33-a.a23*a.a32,a12:a.a13*a.a32-a.a12*a.a33,a13:a.a12*a.a23-a.a13*a.a22,a21:a.a23*a.a31-a.a21*a.a33,a22:a.a11*a.a33-a.a13*a.a31,a23:a.a13*a.a21-a.a11*a.a23,a31:a.a21*a.a32-a.a22*a.a31,a32:a.a12*a.a31-a.a11*a.a32,a33:a.a11*a.a22-a.a12*a.a21}}function ha(a,b){var c=fa({x:3.5,y:3.5},{x:b.dimension-3.5,y:3.5},{x:b.dimension-6.5,y:b.dimension-6.5},{x:3.5,y:b.dimension-3.5}),d=M(b.topLeft,b.topRight,b.alignmentPattern,b.bottomLeft),e=d.a11*c.a11+d.a21*c.a12+d.a31*c.a13,f=d.a12*c.a11+\nd.a22*c.a12+d.a32*c.a13,g=d.a13*c.a11+d.a23*c.a12+d.a33*c.a13,h=d.a11*c.a21+d.a21*c.a22+d.a31*c.a23,k=d.a12*c.a21+d.a22*c.a22+d.a32*c.a23,n=d.a13*c.a21+d.a23*c.a22+d.a33*c.a23,m=d.a11*c.a31+d.a21*c.a32+d.a31*c.a33,l=d.a12*c.a31+d.a22*c.a32+d.a32*c.a33,p=d.a13*c.a31+d.a23*c.a32+d.a33*c.a33;c=A.createEmpty(b.dimension,b.dimension);d=(a,b)=>{const c=g*a+n*b+p;return{x:(e*a+h*b+m)/c,y:(f*a+k*b+l)/c}};for(let e=0;e<b.dimension;e++)for(let f=0;f<b.dimension;f++){let b=d(f+.5,e+.5);c.set(f,e,a.get(Math.floor(b.x),\nMath.floor(b.y)))}return{matrix:c,mappingFunction:d}}function x(a){return a.reduce((a,c)=>a+c)}function ia(a,b,c){let d=y(a,b),e=y(b,c),f=y(a,c),g,h,k;e>=d&&e>=f?[g,h,k]=[b,a,c]:f>=e&&f>=d?[g,h,k]=[a,b,c]:[g,h,k]=[a,c,b];0>(k.x-h.x)*(g.y-h.y)-(k.y-h.y)*(g.x-h.x)&&([g,k]=[k,g]);return{bottomLeft:g,topLeft:h,topRight:k}}function ja(a,b,c,d){d=(x(z(a,c,d,5))/7+x(z(a,b,d,5))/7+x(z(c,a,d,5))/7+x(z(b,a,d,5))/7)/4;if(1>d)throw Error("Invalid module size");b=Math.round(y(a,b)/d);a=Math.round(y(a,c)/d);a=\nMath.floor((b+a)/2)+7;switch(a%4){case 0:a++;break;case 2:a--}return{dimension:a,moduleSize:d}}function N(a,b,c,d){let e=[{x:Math.floor(a.x),y:Math.floor(a.y)}];var f=Math.abs(b.y-a.y)>Math.abs(b.x-a.x);if(f){var g=Math.floor(a.y);var h=Math.floor(a.x);a=Math.floor(b.y);b=Math.floor(b.x)}else g=Math.floor(a.x),h=Math.floor(a.y),a=Math.floor(b.x),b=Math.floor(b.y);let k=Math.abs(a-g),n=Math.abs(b-h),m=Math.floor(-k/2),l=g<a?1:-1,p=h<b?1:-1,q=!0;for(let v=g,u=h;v!==a+l;v+=l){g=f?u:v;h=f?v:u;if(c.get(g,\nh)!==q&&(q=!q,e.push({x:g,y:h}),e.length===d+1))break;m+=n;if(0<m){if(u===b)break;u+=p;m-=k}}c=[];for(f=0;f<d;f++)e[f]&&e[f+1]?c.push(y(e[f],e[f+1])):c.push(0);return c}function z(a,b,c,d){let e=b.y-a.y,f=b.x-a.x;b=N(a,b,c,Math.ceil(d/2));a=N(a,{x:a.x-f,y:a.y-e},c,Math.ceil(d/2));c=b.shift()+a.shift()-1;return a.concat(c).concat(...b)}function F(a,b){let c=x(a)/x(b),d=0;b.forEach((b,f)=>{d+=Math.pow(a[f]-b*c,2)});return{averageSize:c,error:d}}function O(a,b,c){try{let d=z(a,{x:-1,y:a.y},c,b.length),\ne=z(a,{x:a.x,y:-1},c,b.length),f=z(a,{x:Math.max(0,a.x-a.y)-1,y:Math.max(0,a.y-a.x)-1},c,b.length),g=z(a,{x:Math.min(c.width,a.x+a.y)+1,y:Math.min(c.height,a.y+a.x)+1},c,b.length),h=F(d,b),k=F(e,b),n=F(f,b),m=F(g,b),l=(h.averageSize+k.averageSize+n.averageSize+m.averageSize)/4;return Math.sqrt(h.error*h.error+k.error*k.error+n.error*n.error+m.error*m.error)+(Math.pow(h.averageSize-l,2)+Math.pow(k.averageSize-l,2)+Math.pow(n.averageSize-l,2)+Math.pow(m.averageSize-l,2))/l}catch(d){return Infinity}}\nfunction H(a,b){for(var c=Math.round(b.x);a.get(c,Math.round(b.y));)c--;for(var d=Math.round(b.x);a.get(d,Math.round(b.y));)d++;c=(c+d)/2;for(d=Math.round(b.y);a.get(Math.round(c),d);)d--;for(b=Math.round(b.y);a.get(Math.round(c),b);)b++;return{x:c,y:(d+b)/2}}function ka(a){var b=[],c=[];let d=[];var e=[];for(let m=0;m<=a.height;m++){var f=0,g=!1;let l=[0,0,0,0,0];for(let b=-1;b<=a.width;b++){var h=a.get(b,m);if(h===g)f++;else{l=[l[1],l[2],l[3],l[4],f];f=1;g=h;var k=x(l)/7;k=Math.abs(l[0]-k)<k&&Math.abs(l[1]-\nk)<k&&Math.abs(l[2]-3*k)<3*k&&Math.abs(l[3]-k)<k&&Math.abs(l[4]-k)<k&&!h;var n=x(l.slice(-3))/3;h=Math.abs(l[2]-n)<n&&Math.abs(l[3]-n)<n&&Math.abs(l[4]-n)<n&&h;if(k){let a=b-l[3]-l[4],d=a-l[2];k={startX:d,endX:a,y:m};n=c.filter(b=>d>=b.bottom.startX&&d<=b.bottom.endX||a>=b.bottom.startX&&d<=b.bottom.endX||d<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<n.length?n[0].bottom=k:c.push({top:k,bottom:k})}if(h){let a=b-l[4],c=a-\nl[3];h={startX:c,y:m,endX:a};k=e.filter(b=>c>=b.bottom.startX&&c<=b.bottom.endX||a>=b.bottom.startX&&c<=b.bottom.endX||c<=b.bottom.startX&&a>=b.bottom.endX&&1.5>l[2]/(b.bottom.endX-b.bottom.startX)&&.5<l[2]/(b.bottom.endX-b.bottom.startX));0<k.length?k[0].bottom=h:e.push({top:h,bottom:h})}}}b.push(...c.filter(a=>a.bottom.y!==m&&2<=a.bottom.y-a.top.y));c=c.filter(a=>a.bottom.y===m);d.push(...e.filter(a=>a.bottom.y!==m));e=e.filter(a=>a.bottom.y===m)}b.push(...c.filter(a=>2<=a.bottom.y-a.top.y));d.push(...e);\nc=[];for(var m of b)2>m.bottom.y-m.top.y||(b=(m.top.startX+m.top.endX+m.bottom.startX+m.bottom.endX)/4,e=(m.top.y+m.bottom.y+1)/2,a.get(Math.round(b),Math.round(e))&&(f=[m.top.endX-m.top.startX,m.bottom.endX-m.bottom.startX,m.bottom.y-m.top.y+1],f=x(f)/f.length,g=O({x:Math.round(b),y:Math.round(e)},[1,1,3,1,1],a),c.push({score:g,x:b,y:e,size:f})));if(3>c.length)return null;c.sort((a,b)=>a.score-b.score);m=[];for(b=0;b<Math.min(c.length,5);++b){e=c[b];f=[];for(var l of c)l!==e&&f.push(Object.assign(Object.assign({},\nl),{score:l.score+Math.pow(l.size-e.size,2)/e.size}));f.sort((a,b)=>a.score-b.score);m.push({points:[e,f[0],f[1]],score:e.score+f[0].score+f[1].score})}m.sort((a,b)=>a.score-b.score);let {topRight:p,topLeft:q,bottomLeft:v}=ia(...m[0].points);m=P(a,d,p,q,v);l=[];m&&l.push({alignmentPattern:{x:m.alignmentPattern.x,y:m.alignmentPattern.y},bottomLeft:{x:v.x,y:v.y},dimension:m.dimension,topLeft:{x:q.x,y:q.y},topRight:{x:p.x,y:p.y}});m=H(a,p);b=H(a,q);c=H(a,v);(a=P(a,d,m,b,c))&&l.push({alignmentPattern:{x:a.alignmentPattern.x,\ny:a.alignmentPattern.y},bottomLeft:{x:c.x,y:c.y},topLeft:{x:b.x,y:b.y},topRight:{x:m.x,y:m.y},dimension:a.dimension});return 0===l.length?null:l}function P(a,b,c,d,e){let f,g;try{({dimension:f,moduleSize:g}=ja(d,c,e,a))}catch(m){return null}var h=c.x-d.x+e.x,k=c.y-d.y+e.y;c=(y(d,e)+y(d,c))/2/g;e=1-3/c;let n={x:d.x+e*(h-d.x),y:d.y+e*(k-d.y)};b=b.map(b=>{const c=(b.top.startX+b.top.endX+b.bottom.startX+b.bottom.endX)/4;b=(b.top.y+b.bottom.y+1)/2;if(a.get(Math.floor(c),Math.floor(b))){var d=O({x:Math.floor(c),\ny:Math.floor(b)},[1,1,1],a)+y({x:c,y:b},n);return{x:c,y:b,score:d}}}).filter(a=>!!a).sort((a,b)=>a.score-b.score);return{alignmentPattern:15<=c&&b.length?b[0]:n,dimension:f}}function Q(a){var b=ka(a);if(!b)return null;for(let e of b){b=ha(a,e);var c=b.matrix;if(null==c)c=null;else{var d=L(c);if(d)c=d;else{for(d=0;d<c.width;d++)for(let a=d+1;a<c.height;a++)c.get(d,a)!==c.get(a,d)&&(c.set(d,a,!c.get(d,a)),c.set(a,d,!c.get(a,d)));c=L(c)}}if(c)return{binaryData:c.bytes,data:c.text,chunks:c.chunks,version:c.version,\nlocation:{topRightCorner:b.mappingFunction(e.dimension,0),topLeftCorner:b.mappingFunction(0,0),bottomRightCorner:b.mappingFunction(e.dimension,e.dimension),bottomLeftCorner:b.mappingFunction(0,e.dimension),topRightFinderPattern:e.topRight,topLeftFinderPattern:e.topLeft,bottomLeftFinderPattern:e.bottomLeft,bottomRightAlignmentPattern:e.alignmentPattern},matrix:b.matrix}}return null}function R(a,b){Object.keys(b).forEach(c=>{a[c]=b[c]})}function I(a,b,c,d={}){let e=Object.create(null);R(e,la);R(e,d);\nd="onlyInvert"===e.inversionAttempts||"invertFirst"===e.inversionAttempts;var f="attemptBoth"===e.inversionAttempts||d;var g=e.greyScaleWeights,h=e.canOverwriteImage,k=b*c;if(a.length!==4*k)throw Error("Malformed data passed to binarizer.");var n=0;if(h){var m=new Uint8ClampedArray(a.buffer,n,k);n+=k}m=new S(b,c,m);if(g.useIntegerApproximation)for(var l=0;l<c;l++)for(var p=0;p<b;p++){var q=4*(l*b+p);m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]+128>>8)}else for(l=0;l<c;l++)for(p=0;p<b;p++)q=4*\n(l*b+p),m.set(p,l,g.red*a[q]+g.green*a[q+1]+g.blue*a[q+2]);g=Math.ceil(b/8);l=Math.ceil(c/8);p=g*l;if(h){var v=new Uint8ClampedArray(a.buffer,n,p);n+=p}v=new S(g,l,v);for(p=0;p<l;p++)for(q=0;q<g;q++){var u=Infinity,r=0;for(var t=0;8>t;t++)for(let a=0;8>a;a++){let b=m.get(8*q+a,8*p+t);u=Math.min(u,b);r=Math.max(r,b)}t=(u+r)/2;t=Math.min(255,1.11*t);24>=r-u&&(t=u/2,0<p&&0<q&&(r=(v.get(q,p-1)+2*v.get(q-1,p)+v.get(q-1,p-1))/4,u<r&&(t=r)));v.set(q,p,t)}h?(p=new Uint8ClampedArray(a.buffer,n,k),n+=k,p=new A(p,\nb)):p=A.createEmpty(b,c);q=null;f&&(h?(a=new Uint8ClampedArray(a.buffer,n,k),q=new A(a,b)):q=A.createEmpty(b,c));for(b=0;b<l;b++)for(a=0;a<g;a++){c=g-3;c=2>a?2:a>c?c:a;h=l-3;h=2>b?2:b>h?h:b;k=0;for(n=-2;2>=n;n++)for(u=-2;2>=u;u++)k+=v.get(c+n,h+u);c=k/25;for(h=0;8>h;h++)for(k=0;8>k;k++)n=8*a+h,u=8*b+k,r=m.get(n,u),p.set(n,u,r<=c),f&&q.set(n,u,!(r<=c))}f=f?{binarized:p,inverted:q}:{binarized:p};let {binarized:w,inverted:x}=f;(f=Q(d?x:w))||"attemptBoth"!==e.inversionAttempts&&"invertFirst"!==e.inversionAttempts||\n(f=Q(d?w:x));return f}class A{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new A(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;f<b+d;f++)for(let b=a;b<a+c;b++)this.set(b,f,!!e)}}class S{constructor(a,b,c){this.width=a;a*=b;if(c&&c.length!==a)throw Error("Wrong buffer size");this.data=c||new Uint8ClampedArray(a)}get(a,\nb){return this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c}}class V{constructor(a){this.bitOffset=this.byteOffset=0;this.bytes=a}readBits(a){if(1>a||32<a||a>this.available())throw Error("Cannot read "+a.toString()+" bits");var b=0;if(0<this.bitOffset){b=8-this.bitOffset;var c=a<b?a:b;b-=c;b=(this.bytes[this.byteOffset]&255>>8-c<<b)>>b;a-=c;this.bitOffset+=c;8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(0<a){for(;8<=a;)b=b<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,\na-=8;0<a&&(c=8-a,b=b<<a|(this.bytes[this.byteOffset]&255>>c<<c)>>c,this.bitOffset+=a)}return b}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var r;(function(a){a.Numeric="numeric";a.Alphanumeric="alphanumeric";a.Byte="byte";a.Kanji="kanji";a.ECI="eci";a.StructuredAppend="structuredappend"})(r||(r={}));var t;(function(a){a[a.Terminator=0]="Terminator";a[a.Numeric=1]="Numeric";a[a.Alphanumeric=2]="Alphanumeric";a[a.Byte=4]="Byte";a[a.Kanji=8]="Kanji";a[a.ECI=7]="ECI";a[a.StructuredAppend=\n3]="StructuredAppend"})(t||(t={}));let B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");class w{constructor(a,b){if(0===b.length)throw Error("No coefficients.");this.field=a;let c=b.length;if(1<c&&0===b[0]){let d=1;for(;d<c&&0===b[d];)d++;if(d===c)this.coefficients=a.zero.coefficients;else for(this.coefficients=new Uint8ClampedArray(c-d),a=0;a<this.coefficients.length;a++)this.coefficients[a]=b[d+a]}else this.coefficients=b}degree(){return this.coefficients.length-1}isZero(){return 0===\nthis.coefficients[0]}getCoefficient(a){return this.coefficients[this.coefficients.length-1-a]}addOrSubtract(a){if(this.isZero())return a;if(a.isZero())return this;let b=this.coefficients;a=a.coefficients;b.length>a.length&&([b,a]=[a,b]);let c=new Uint8ClampedArray(a.length),d=a.length-b.length;for(var e=0;e<d;e++)c[e]=a[e];for(e=d;e<a.length;e++)c[e]=b[e-d]^a[e];return new w(this.field,c)}multiply(a){if(0===a)return this.field.zero;if(1===a)return this;let b=this.coefficients.length,c=new Uint8ClampedArray(b);\nfor(let d=0;d<b;d++)c[d]=this.field.multiply(this.coefficients[d],a);return new w(this.field,c)}multiplyPoly(a){if(this.isZero()||a.isZero())return this.field.zero;let b=this.coefficients,c=b.length;a=a.coefficients;let d=a.length,e=new Uint8ClampedArray(c+d-1);for(let h=0;h<c;h++){let c=b[h];for(let b=0;b<d;b++){var f=h+b,g=this.field.multiply(c,a[b]);e[f]=e[h+b]^g}}return new w(this.field,e)}multiplyByMonomial(a,b){if(0>a)throw Error("Invalid degree less than 0");if(0===b)return this.field.zero;\nlet c=this.coefficients.length;a=new Uint8ClampedArray(c+a);for(let d=0;d<c;d++)a[d]=this.field.multiply(this.coefficients[d],b);return new w(this.field,a)}evaluateAt(a){let b=0;if(0===a)return this.getCoefficient(0);let c=this.coefficients.length;if(1===a)return this.coefficients.forEach(a=>{b^=a}),b;b=this.coefficients[0];for(let d=1;d<c;d++)b=J(this.field.multiply(a,b),this.coefficients[d]);return b}}class Y{constructor(a,b,c){this.primitive=a;this.size=b;this.generatorBase=c;this.expTable=Array(this.size);\nthis.logTable=Array(this.size);a=1;for(b=0;b<this.size;b++)this.expTable[b]=a,a*=2,a>=this.size&&(a=(a^this.primitive)&this.size-1);for(a=0;a<this.size-1;a++)this.logTable[this.expTable[a]]=a;this.zero=new w(this,Uint8ClampedArray.from([0]));this.one=new w(this,Uint8ClampedArray.from([1]))}multiply(a,b){return 0===a||0===b?0:this.expTable[(this.logTable[a]+this.logTable[b])%(this.size-1)]}inverse(a){if(0===a)throw Error("Can\'t invert 0");return this.expTable[this.size-this.logTable[a]-1]}buildMonomial(a,\nb){if(0>a)throw Error("Invalid monomial degree less than 0");if(0===b)return this.zero;a=new Uint8ClampedArray(a+1);a[0]=b;return new w(this,a)}log(a){if(0===a)throw Error("Can\'t take log(0)");return this.logTable[a]}exp(a){return this.expTable[a]}}let K=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},\n{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},\n{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},\n{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},\n{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,\ndataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},\n{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},\n{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},\n{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,\necBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,\ndataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,\ndataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,\n32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},\n{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},\n{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,\ndataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},\n{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},\n{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,\n30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},\n{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,\ndataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,\ndataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,\ndataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}],da=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,\ndataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,\nformatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,\ndataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,\ndataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],aa=[a=>0===(a.y+a.x)%2,a=>0===a.y%2,a=>0===a.x%3,a=>0===(a.y+a.x)%3,a=>0===(Math.floor(a.y/2)+Math.floor(a.x/3))%2,a=>0===a.x*a.y%2+a.x*a.y%3,a=>0===(a.y*a.x%2+a.y*a.x%3)%2,a=>0===((a.y+a.x)%2+a.y*a.x%3)%2],y=(a,b)=>Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)),la={inversionAttempts:"attemptBoth",greyScaleWeights:{red:.2126,green:.7152,blue:.0722,useIntegerApproximation:!1},\ncanOverwriteImage:!0};I.default=I;let G="dontInvert",D={red:77,green:150,blue:29,useIntegerApproximation:!0};self.onmessage=a=>{let b=a.data.data;switch(a.data.type){case "decode":a=I(b.data,b.width,b.height,{inversionAttempts:G,greyScaleWeights:D});self.postMessage({type:"qrResult",data:a?a.data:null});break;case "grayscaleWeights":D.red=b.red;D.green=b.green;D.blue=b.blue;D.useIntegerApproximation=b.useIntegerApproximation;break;case "inversionMode":switch(b){case "original":G="dontInvert";break;\ncase "invert":G="onlyInvert";break;case "both":G="attemptBoth";break;default:throw Error("Invalid inversion mode");}break;case "close":self.close()}}})()\n\n'
34197
34193
  ]));
34198
- var gk = su(sa$1 ? si : (sa$1 = 1, si = function(e, t, r, n, i, a, o, s) {
34194
+ var gk = su(sa ? si : (sa = 1, si = function(e, t, r, n, i, a, o, s) {
34199
34195
  if (!e) {
34200
34196
  var c;
34201
34197
  if (void 0 === t) c = Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -34214,7 +34210,7 @@
34214
34210
  }
34215
34211
  throw c.framesToPop = 1, c;
34216
34212
  }
34217
- })), gE = su(ss ? so : (ss = 1, so = function() {}));
34213
+ })), gE = su(ss$1 ? so : (ss$1 = 1, so = function() {}));
34218
34214
  let gB = cR();
34219
34215
  let gA = class gA {
34220
34216
  #e;
@@ -39972,6 +39968,16 @@
39972
39968
  position: absolute;
39973
39969
  top: 0;
39974
39970
  left: 0;
39971
+ /*
39972
+ * Size the frame with real CSS, not just the width/height HTML attributes.
39973
+ * Presentational attributes lose to a host's layered author CSS such as
39974
+ * Tailwind Preflight (@layer base img,video max-width:100% height:auto),
39975
+ * which would otherwise recompute the PNG height and desync it from the mask.
39976
+ * styled-components emits unlayered CSS, so this wins the cascade, no !important.
39977
+ */
39978
+ width: ${(t)=>t.width}px;
39979
+ height: ${(t)=>t.height}px;
39980
+ max-width: none;
39975
39981
  `, iZ = dt$1.div`
39976
39982
  ${ik}
39977
39983
  ${iD}
@@ -41247,19 +41253,19 @@
41247
41253
  ],
41248
41254
  readFrom: "image"
41249
41255
  }) : null;
41250
- }, a0 = async (t)=>{
41256
+ }, a0 = (t)=>!!t && ("image/png" === t.type || /\.png$/i.test(t.name || "")), a1 = async (t)=>{
41251
41257
  try {
41252
41258
  return (await createImageBitmap(t)).close(), !0;
41253
41259
  } catch {
41254
41260
  return !1;
41255
41261
  }
41256
- }, a1 = async (t, r = .92)=>{
41262
+ }, a8 = async (t, r = .92)=>{
41257
41263
  let o = await createImageBitmap(t), n = document.createElement("canvas");
41258
41264
  try {
41259
41265
  n.width = o.width, n.height = o.height;
41260
41266
  let i = n.getContext("2d");
41261
41267
  if (!i) throw Error("reEncodeToJpeg: failed to get 2D canvas context");
41262
- i.drawImage(o, 0, 0), o.close();
41268
+ i.fillStyle = "#ffffff", i.fillRect(0, 0, n.width, n.height), i.drawImage(o, 0, 0), o.close();
41263
41269
  let a = await new Promise((t)=>{
41264
41270
  n.toBlob(t, "image/jpeg", r);
41265
41271
  });
@@ -41273,20 +41279,22 @@
41273
41279
  } finally{
41274
41280
  o.close(), n.width = 0, n.height = 0;
41275
41281
  }
41276
- }, a8 = async ({ file: t, settings: r, outputEncryptionSettings: o, startTime: n })=>{
41282
+ }, a9 = async ({ file: t, settings: r, outputEncryptionSettings: o, startTime: n })=>{
41277
41283
  let i;
41278
41284
  r?.enableExifData && (fX.addExifData("image_source", "upload"), fX.addExifData("user_action.start_id_card", n), fX.addExifData("user_action.end_id_card", Date.now()), fX.addExifData("upload_meta.original_name", t.name), fX.addExifData("upload_meta.original_size", t.size), fX.addExifData("upload_meta.mime_type", t.type));
41279
- let a = await fX.writeMergedExif({
41285
+ let a = t;
41286
+ a0(t) && (a = await a8(t));
41287
+ let s = await fX.writeMergedExif({
41280
41288
  imageData: {
41281
- blob: t
41289
+ blob: a
41282
41290
  },
41283
41291
  enableExifData: r?.enableExifData
41284
41292
  });
41285
- if (!await a0(a)) try {
41286
- let o = await a1(t);
41287
- a = await fX.writeMergedExif({
41293
+ if (!await a1(s)) try {
41294
+ let t = await a8(a);
41295
+ s = await fX.writeMergedExif({
41288
41296
  imageData: {
41289
- blob: o
41297
+ blob: t
41290
41298
  },
41291
41299
  enableExifData: r?.enableExifData
41292
41300
  });
@@ -41294,14 +41302,14 @@
41294
41302
  console.warn("buildUploadImage: canvas re-encode failed, keeping original blob", t);
41295
41303
  }
41296
41304
  return o?.key && (i = await fI.encrypt({
41297
- blob: a,
41305
+ blob: s,
41298
41306
  key: o.key
41299
41307
  })), {
41300
- blob: a,
41308
+ blob: s,
41301
41309
  encrypted: i,
41302
41310
  detectedCard: null
41303
41311
  };
41304
- }, a9 = async ({ blob: t, settings: r, outputEncryptionSettings: o, cardSide: n })=>{
41312
+ }, a4 = async ({ blob: t, settings: r, outputEncryptionSettings: o, cardSide: n })=>{
41305
41313
  if (!r?.enableScanQrViaImage) return null;
41306
41314
  let i = o ?? null, a = n ?? "front";
41307
41315
  return r?.isVietnameseCardFlow ? a5(t, i, a) : r?.cardQRConfig ? a2({
@@ -41310,9 +41318,11 @@
41310
41318
  cardSide: a,
41311
41319
  cardQRConfig: r.cardQRConfig
41312
41320
  }) : a5(t, i, a, aJ);
41313
- }, a4 = "undefined" != typeof window && "undefined" != typeof HTMLInputElement && "oncancel" in HTMLInputElement.prototype, a6 = dt$1.button`
41321
+ }, a6 = "undefined" != typeof window && "undefined" != typeof HTMLInputElement && "oncancel" in HTMLInputElement.prototype, a7 = dt$1.button`
41314
41322
  position: fixed;
41315
- z-index: ${1011};
41323
+ // Above the scan card alert (BASE_Z_INDEX + 20) so the toast stays readable when the two
41324
+ // overlap — e.g. a multi-line card alert extending down into a multi-line toast.
41325
+ z-index: ${1021};
41316
41326
  left: 50%;
41317
41327
 
41318
41328
  max-width: calc(100% - ${nz("IDUploadErrorToast.maxWidthInset")});
@@ -41339,7 +41349,7 @@
41339
41349
  );
41340
41350
  transform: translateX(-50%);
41341
41351
  `}
41342
- `, a7 = ({ uploadFromDevice: t, uploadFlowAPI: r, scanControl: s, isCaptureInFlight: c, shouldShowSpinner: l, yButtonRow: d, bottomOffset: u })=>{
41352
+ `, se = ({ uploadFromDevice: t, uploadFlowAPI: r, scanControl: s, isCaptureInFlight: c, shouldShowSpinner: l, yButtonRow: d, bottomOffset: u })=>{
41343
41353
  let p = gv(), f = !!t?.enable, { inputRef: h, handleUploadClick: b, handleFileChange: w, handleInputCancel: v, isProcessing: k, errorCode: y, dismissError: C } = (({ enabled: t, enableConfirmPopup: r, uploadFlowAPI: s, scanControl: c })=>{
41344
41354
  let l = reactExports.useRef(null), [d, u] = reactExports.useState(!1), [p, f] = reactExports.useState(null), { sendEvent: h } = lL.useSDKTracking();
41345
41355
  reactExports.useEffect(()=>{
@@ -41354,7 +41364,7 @@
41354
41364
  tag: "id_upload",
41355
41365
  event: "upload_button_clicked",
41356
41366
  log: {}
41357
- }), c.setUploadInProgress(!0), a4 && c.pauseScan(), l.current?.click());
41367
+ }), c.setUploadInProgress(!0), a6 && c.pauseScan(), l.current?.click());
41358
41368
  }, [
41359
41369
  t,
41360
41370
  d,
@@ -41376,8 +41386,9 @@
41376
41386
  handleFileChange: reactExports.useCallback(async (t)=>{
41377
41387
  let o = t.target?.files?.[0];
41378
41388
  if (t.target && (t.target.value = ""), o) {
41389
+ var n;
41379
41390
  let t;
41380
- if (!((t = o) && ("image/jpeg" === t.type || /\.jpe?g$/i.test(t.name || "")))) {
41391
+ if (!((t = n = o) && ("image/jpeg" === t.type || /\.jpe?g$/i.test(t.name || "")) || a0(n))) {
41381
41392
  h({
41382
41393
  tag: "id_upload",
41383
41394
  event: "upload_file_invalid",
@@ -41397,19 +41408,19 @@
41397
41408
  }
41398
41409
  }), u(!0), s.setShouldShowSpinner(!0);
41399
41410
  try {
41400
- let t = await a8({
41411
+ let t = await a9({
41401
41412
  file: o,
41402
41413
  settings: s.settings,
41403
41414
  outputEncryptionSettings: s.outputEncryptionSettings,
41404
41415
  startTime: Date.now()
41405
- }), n = await a9({
41416
+ }), n = await a4({
41406
41417
  blob: t.blob,
41407
41418
  settings: s.settings,
41408
41419
  outputEncryptionSettings: s.outputEncryptionSettings,
41409
41420
  cardSide: s.stepConfig?.cardSide
41410
41421
  });
41411
41422
  if (r) {
41412
- a4 || c.pauseScan(), s.commitUploaded({
41423
+ a6 || c.pauseScan(), s.commitUploaded({
41413
41424
  image: t,
41414
41425
  qrScannedResult: n
41415
41426
  });
@@ -41446,7 +41457,7 @@
41446
41457
  ]),
41447
41458
  handleInputCancel: w,
41448
41459
  isProcessing: d,
41449
- supportsInputCancelEvent: a4,
41460
+ supportsInputCancelEvent: a6,
41450
41461
  errorCode: p,
41451
41462
  dismissError: g
41452
41463
  };
@@ -41466,7 +41477,7 @@
41466
41477
  let B = p("upload_button_label"), _ = y ? p(y) : "";
41467
41478
  return oZ.jsxs(oZ.Fragment, {
41468
41479
  children: [
41469
- y && oZ.jsx(a6, {
41480
+ y && oZ.jsx(a7, {
41470
41481
  type: "button",
41471
41482
  onClick: C,
41472
41483
  "aria-live": "polite",
@@ -41486,7 +41497,7 @@
41486
41497
  oZ.jsx("input", {
41487
41498
  ref: h,
41488
41499
  type: "file",
41489
- accept: "image/jpeg",
41500
+ accept: "image/jpeg,image/png",
41490
41501
  onChange: w,
41491
41502
  style: {
41492
41503
  display: "none"
@@ -41496,23 +41507,27 @@
41496
41507
  })
41497
41508
  ]
41498
41509
  });
41499
- }, se = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
41510
+ }, st = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
41500
41511
  let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: B, onCaptureDone: _, onUISpacingChange: S, outputEncryptionSettings: E, isShowingSpinner: T, uploadFromDevice: D, uploadFlowAPI: F } = t, z = nt$2(), [N, V] = reactExports.useState({}), { yMessage: U, yButtonRow: q, yToggleButton: Q, yInstruction: X, yCountdown: H } = N, G = nN("IDCapturing.captureIcon.src", "ic_camera.svg"), Z = nN("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), K = nz("IDCapturing.countdown.color")({
41501
41512
  theme: z
41502
- }), Y = nN("IDCapturing.loadingIcon.src", "ic_loading.gif"), [J, ee] = reactExports.useState(""), et = gv(), [er, eo] = reactExports.useState(null), [en, ei] = reactExports.useState(""), [ea, es] = reactExports.useState(null), { showPopup: ec, popupShown: el, popupType: ed } = au(), eu = reactExports.useContext(aR), [ep, ef] = reactExports.useState(!1), eh = reactExports.useRef(()=>{}), em = reactExports.useCallback((t)=>{
41503
- null === t ? ei("") : ei(et(t?.code, {
41504
- side: k ? et("front") : et("back")
41505
- }));
41513
+ }), Y = nN("IDCapturing.loadingIcon.src", "ic_loading.gif"), [J, ee] = reactExports.useState(""), et = gv(), [er, eo] = reactExports.useState(null), [en, ei] = reactExports.useState(""), [ea, es] = reactExports.useState(""), [ec, el] = reactExports.useState(null), { showPopup: ed, popupShown: eu, popupType: ep } = au(), ef = reactExports.useContext(aR), [eh, em] = reactExports.useState(!1), eg = reactExports.useRef(()=>{}), eb = reactExports.useCallback((t)=>{
41514
+ if (null === t) ei(""), es("");
41515
+ else {
41516
+ let r = t?.code;
41517
+ es(r || ""), ei(et(r, {
41518
+ side: k ? et("front") : et("back")
41519
+ }));
41520
+ }
41506
41521
  }, [
41507
41522
  et,
41508
41523
  k
41509
- ]), eg = reactExports.useCallback(()=>{
41510
- eo(""), eh.current();
41511
- }, []), eb = reactExports.useCallback((...t)=>{
41524
+ ]), ew = reactExports.useCallback(()=>{
41525
+ eo(""), eg.current();
41526
+ }, []), ev = reactExports.useCallback((...t)=>{
41512
41527
  eo(""), _(...t);
41513
41528
  }, [
41514
41529
  _
41515
- ]), { warmupDone: ew, isPostProcessing: ev, isAutoCapturing: ek, isProcessing: ey, takePictureManually: eC, restartSession: eB, resetIsProcessingImageBlobTaken: e_, isAutoCaptureModeOn: ex, onToggleAutoCaptureMode: eP, autoCaptureDuration: eS, pauseScan: eE, resumeScan: eT, setUploadInProgress: eD } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange: f, onAboutToTimeout: g, onSessionTimeout: k, onCaptureDone: y, outputEncryptionSettings: B, quality: _ })=>{
41530
+ ]), { warmupDone: ek, isPostProcessing: ey, isAutoCapturing: eC, isProcessing: eB, takePictureManually: e_, restartSession: ex, resetIsProcessingImageBlobTaken: eP, isAutoCaptureModeOn: eS, onToggleAutoCaptureMode: eE, autoCaptureDuration: eT, pauseScan: eD, resumeScan: e$, setUploadInProgress: eI } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange: f, onAboutToTimeout: g, onSessionTimeout: k, onCaptureDone: y, outputEncryptionSettings: B, quality: _ })=>{
41516
41531
  let S = reactExports.useRef(!1), E = reactExports.useRef(!1), [T, D] = reactExports.useState(!1), L = reactExports.useRef(()=>{}), { sendEvent: F } = lL.useSDKTracking(), z = reactExports.useRef(), N = reactExports.useRef(), V = reactExports.useRef(), W = reactExports.useContext(aR), { enableAntiDebug: U } = cl$1.useSDKSettings(), { onErrorCallback: q } = aT(), { playVoice: Q } = l1.useVoicePlayer(), [X, H] = reactExports.useState(nn(l, "enableAutoCapture")), G = reactExports.useCallback(()=>{
41517
41532
  H((t)=>!t);
41518
41533
  }, []), { autoCaptureWaitForBestImageTimeMs: Z, manualCaptureWaitForBestImageTimeMs: K } = l, Y = X ? Z : K;
@@ -42655,14 +42670,14 @@
42655
42670
  })({
42656
42671
  shouldStart: !0,
42657
42672
  refVideo: f,
42658
- cropArea: ea,
42673
+ cropArea: ec,
42659
42674
  settings: B,
42660
- onModelErrorChange: em,
42675
+ onModelErrorChange: eb,
42661
42676
  frontSide: k,
42662
42677
  allowedCardTypes: y,
42663
42678
  onDebugInfoChange: ee,
42664
- onSessionTimeout: eg,
42665
- onCaptureDone: eb,
42679
+ onSessionTimeout: ew,
42680
+ onCaptureDone: ev,
42666
42681
  onAboutToTimeout: reactExports.useCallback(({ curTimeLeft: t })=>{
42667
42682
  eo(et("remaining_time", {
42668
42683
  x: t
@@ -42671,43 +42686,43 @@
42671
42686
  et
42672
42687
  ]),
42673
42688
  outputEncryptionSettings: E
42674
- }), e$ = reactExports.useMemo(()=>({
42675
- pauseScan: eE,
42676
- resumeScan: eT,
42677
- setUploadInProgress: eD,
42678
- restartSession: eB
42689
+ }), eM = reactExports.useMemo(()=>({
42690
+ pauseScan: eD,
42691
+ resumeScan: e$,
42692
+ setUploadInProgress: eI,
42693
+ restartSession: ex
42679
42694
  }), [
42680
- eE,
42681
- eT,
42682
42695
  eD,
42683
- eB
42684
- ]), eI = reactExports.useCallback(()=>{
42685
- ec({
42696
+ e$,
42697
+ eI,
42698
+ ex
42699
+ ]), ej = reactExports.useCallback(()=>{
42700
+ ed({
42686
42701
  popupType: null
42687
- }), e_();
42702
+ }), eP();
42688
42703
  }, [
42689
- ec,
42690
- e_
42691
- ]), eM = reactExports.useCallback(async ()=>{
42692
- ef(!1), eI(), await eB();
42704
+ ed,
42705
+ eP
42706
+ ]), eO = reactExports.useCallback(async ()=>{
42707
+ em(!1), ej(), await ex();
42693
42708
  }, [
42694
- eI,
42695
- eB
42709
+ ej,
42710
+ ex
42696
42711
  ]);
42697
- eh.current = eM;
42698
- let ej = nz("IDCapturing.backgroundColor")({
42712
+ eg.current = eO;
42713
+ let eR = nz("IDCapturing.backgroundColor")({
42699
42714
  theme: z
42700
- }), { showCaptureButtonInAuto: eO = !0, showHoldStillProgress: eR = !1, showAutoCaptureToggle: eA } = B ?? {}, eL = Math.ceil((eS ?? 0) / 1e3);
42715
+ }), { showCaptureButtonInAuto: eA = !0, showHoldStillProgress: eL = !1, showAutoCaptureToggle: eF } = B ?? {}, ez = Math.ceil((eT ?? 0) / 1e3);
42701
42716
  reactExports.useEffect(()=>{
42702
42717
  if (u) {
42703
42718
  let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX: p, lostY: f, clientHeight: h } = u;
42704
- l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 * f - 80 - 100)), n = (t = (s = f + 140) - 70) + 30, o = eA ? s + a + 20 : s + a, r = s + a + 135, es({
42719
+ l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 * f - 80 - 100)), n = (t = (s = f + 140) - 70) + 30, o = eF ? s + a + 20 : s + a, r = s + a + 135, el({
42705
42720
  x: Math.floor((c - i) / 2) + p,
42706
42721
  y: s,
42707
42722
  width: i,
42708
42723
  height: a,
42709
42724
  surroundStyle: {
42710
- backgroundColor: ej
42725
+ backgroundColor: eR
42711
42726
  }
42712
42727
  });
42713
42728
  let m = {
@@ -42725,51 +42740,51 @@
42725
42740
  u,
42726
42741
  l,
42727
42742
  S,
42728
- ej,
42729
- eA
42743
+ eR,
42744
+ eF
42730
42745
  ]);
42731
- let eF = reactExports.useCallback(async ()=>{
42732
- eo(""), await eC();
42746
+ let eN = reactExports.useCallback(async ()=>{
42747
+ eo(""), await e_();
42733
42748
  }, [
42734
- eC
42749
+ e_
42735
42750
  ]);
42736
42751
  reactExports.useImperativeHandle(r, ()=>({
42737
- restartSession: eM
42752
+ restartSession: eO
42738
42753
  }), [
42739
- eM
42754
+ eO
42740
42755
  ]);
42741
- let ez = ek && ev || T || !en;
42756
+ let eV = eC && ey || T || !en;
42742
42757
  return oZ.jsxs(oZ.Fragment, {
42743
42758
  children: [
42744
- !ew && oZ.jsx(ao, {}),
42745
- eu && oZ.jsx(i1, {
42759
+ !ek && oZ.jsx(ao, {}),
42760
+ ef && oZ.jsx(i1, {
42746
42761
  children: JSON.stringify(J, null, 2)
42747
42762
  }),
42748
- eR && !ek && ev && oZ.jsx(iJ, {
42763
+ eL && !eC && ey && oZ.jsx(iJ, {
42749
42764
  children: oZ.jsx("img", {
42750
42765
  src: Y,
42751
42766
  alt: "loading icon"
42752
42767
  })
42753
42768
  }),
42754
- !eR && (ek || ev) && oZ.jsx(iJ, {
42769
+ !eL && (eC || ey) && oZ.jsx(iJ, {
42755
42770
  children: oZ.jsx("img", {
42756
42771
  src: Y,
42757
42772
  alt: "loading icon"
42758
42773
  })
42759
42774
  }),
42760
- ea && oZ.jsx(n5, {
42761
- x: `${ea.x}px`,
42762
- y: `${ea.y}px`,
42763
- width: `${ea.width}px`,
42764
- height: `${ea.height}px`,
42765
- surroundStyle: ea.surroundStyle,
42775
+ ec && oZ.jsx(n5, {
42776
+ x: `${ec.x}px`,
42777
+ y: `${ec.y}px`,
42778
+ width: `${ec.width}px`,
42779
+ height: `${ec.height}px`,
42780
+ surroundStyle: ec.surroundStyle,
42766
42781
  children: oZ.jsx(i7, {
42767
- width: ea.width,
42768
- height: ea.height,
42769
- type: ez ? im : ig
42782
+ width: ec.width,
42783
+ height: ec.height,
42784
+ type: eV ? im : ig
42770
42785
  })
42771
42786
  }),
42772
- !ek && en && oZ.jsxs(ae, {
42787
+ !eC && en && oZ.jsxs(ae, {
42773
42788
  y: `${X}px`,
42774
42789
  children: [
42775
42790
  oZ.jsx("div", {
@@ -42779,44 +42794,46 @@
42779
42794
  }
42780
42795
  }),
42781
42796
  oZ.jsx(at, {
42797
+ "data-testid": "id-instruction",
42798
+ "data-error-code": ea,
42782
42799
  children: hs.getStringWithLineBreak(en)
42783
42800
  })
42784
42801
  ]
42785
42802
  }),
42786
- eR && ek && oZ.jsxs(ae, {
42803
+ eL && eC && oZ.jsxs(ae, {
42787
42804
  y: `${X + 45}px`,
42788
42805
  children: [
42789
42806
  oZ.jsx(aU, {
42790
- duration: eS,
42807
+ duration: eT,
42791
42808
  onCircleAnimationEnd: ()=>{
42792
- ef(!0);
42809
+ em(!0);
42793
42810
  }
42794
42811
  }),
42795
42812
  oZ.jsx(at, {
42796
- $isDone: ep,
42797
- children: ep ? et("id_capture.instruction.capturing_done") : et("id_capture.instruction.hold_still", {
42798
- x: eL
42813
+ $isDone: eh,
42814
+ children: eh ? et("id_capture.instruction.capturing_done") : et("id_capture.instruction.hold_still", {
42815
+ x: ez
42799
42816
  })
42800
42817
  })
42801
42818
  ]
42802
42819
  }),
42803
- eA && oZ.jsxs(i6, {
42820
+ eF && oZ.jsxs(i6, {
42804
42821
  y: `${Q}px`,
42805
42822
  children: [
42806
42823
  oZ.jsx("span", {
42807
42824
  children: et("toggle_id_capture_mode")
42808
42825
  }),
42809
42826
  oZ.jsx(aF, {
42810
- checked: ex,
42811
- disabled: ek || ev || T,
42812
- onChange: eP
42827
+ checked: eS,
42828
+ disabled: eC || ey || T,
42829
+ onChange: eE
42813
42830
  })
42814
42831
  ]
42815
42832
  }),
42816
- (!ex || eO) && oZ.jsx(iY, {
42817
- onClick: eF,
42833
+ (!eS || eA) && oZ.jsx(iY, {
42834
+ onClick: eN,
42818
42835
  y: `${q}px`,
42819
- disabled: B?.disableCaptureButtonIfAlert && en || ek || ev || T,
42836
+ disabled: B?.disableCaptureButtonIfAlert && en || eC || ey || T,
42820
42837
  children: en ? oZ.jsx("img", {
42821
42838
  src: Z,
42822
42839
  alt: "capture button disabled"
@@ -42843,17 +42860,17 @@
42843
42860
  ]
42844
42861
  }),
42845
42862
  oZ.jsx(ip, {
42846
- open: el,
42847
- children: ed === ap && oZ.jsx(ad, {
42848
- onOk: eM,
42863
+ open: eu,
42864
+ children: ep === ap && oZ.jsx(ad, {
42865
+ onOk: eO,
42849
42866
  maxSessionTime: B?.idCardSessionTime
42850
42867
  })
42851
42868
  }),
42852
- oZ.jsx(a7, {
42869
+ oZ.jsx(se, {
42853
42870
  uploadFromDevice: D,
42854
42871
  uploadFlowAPI: F,
42855
- scanControl: e$,
42856
- isCaptureInFlight: ey,
42872
+ scanControl: eM,
42873
+ isCaptureInFlight: eB,
42857
42874
  shouldShowSpinner: T,
42858
42875
  yButtonRow: q,
42859
42876
  bottomOffset: 10
@@ -42861,7 +42878,7 @@
42861
42878
  ]
42862
42879
  });
42863
42880
  });
42864
- se.propTypes = {
42881
+ st.propTypes = {
42865
42882
  usePortraitMask: PropTypes.bool,
42866
42883
  description: PropTypes.string,
42867
42884
  windowAndVideoInfo: PropTypes.shape({}),
@@ -42878,7 +42895,7 @@
42878
42895
  enableConfirmPopup: PropTypes.bool
42879
42896
  }),
42880
42897
  uploadFlowAPI: PropTypes.shape({})
42881
- }, se.defaultProps = {
42898
+ }, st.defaultProps = {
42882
42899
  usePortraitMask: !1,
42883
42900
  description: "",
42884
42901
  windowAndVideoInfo: {},
@@ -42917,13 +42934,13 @@
42917
42934
  margin: ${nz("popup.title.margin")};
42918
42935
  padding: ${nz("popup.title.padding")};
42919
42936
  text-align: ${nz("popup.title.textAlign")};
42920
- `; let sa = dt$1.div`
42937
+ `; let ss = dt$1.div`
42921
42938
  color: ${nz(({ $type: t })=>`QRStep.guidelinePopup.${t}.color`)};
42922
42939
  font-size: ${nz(({ $type: t })=>`QRStep.guidelinePopup.${t}.fontSize`)};
42923
42940
  font-weight: ${nz(({ $type: t })=>`QRStep.guidelinePopup.${t}.fontWeight`)};
42924
42941
  text-align: ${nz(({ $type: t })=>`QRStep.guidelinePopup.${t}.textAlign`)};
42925
42942
  line-height: ${nz(({ $type: t })=>`QRStep.guidelinePopup.${t}.lineHeight`)};
42926
- `; dt$1(sa)`
42943
+ `; dt$1(ss)`
42927
42944
  white-space: nowrap;
42928
42945
  `; dt$1(ai)``; dt$1.div`
42929
42946
  display: flex;
@@ -42983,7 +43000,7 @@
42983
43000
  left: 50%;
42984
43001
  top: ${({ $top: t })=>`${t}px`};
42985
43002
  transform: translateX(-50%);
42986
- `; let sv = dt$1.div`
43003
+ `; let sk = dt$1.div`
42987
43004
  text-align: ${nz("QRStep.scanCountdown.textAlign")};
42988
43005
  font-size: ${nz("QRStep.scanCountdown.fontSize")};
42989
43006
  font-weight: ${nz("QRStep.scanCountdown.fontWeight")};
@@ -42992,20 +43009,20 @@
42992
43009
  background: ${nz("QRStep.scanCountdown.backgroundColor")};
42993
43010
  color: ${nz("QRStep.scanCountdown.color")};
42994
43011
  `;
42995
- dt$1(sv)`
43012
+ dt$1(sk)`
42996
43013
  position: absolute;
42997
43014
  margin: auto;
42998
43015
  top: ${({ $y: t })=>t};
42999
43016
  z-index: ${1020};
43000
43017
  `;
43001
- var sy = {
43018
+ var sC = {
43002
43019
  exports: {}
43003
43020
  };
43004
- sy.exports;
43005
- var sC = function() {
43021
+ sC.exports;
43022
+ var sB = function() {
43006
43023
  var t;
43007
- if (re) return sy.exports;
43008
- return re = 1, t = sy, t.exports = function() {
43024
+ if (re) return sC.exports;
43025
+ return re = 1, t = sC, t.exports = function() {
43009
43026
  return function(t) {
43010
43027
  var r = {};
43011
43028
  function o(n) {
@@ -53786,8 +53803,8 @@
53786
53803
  };
53787
53804
  }
53788
53805
  ]).default;
53789
- }(), sy.exports;
53790
- }(); oX(sC);
53806
+ }(), sC.exports;
53807
+ }(); oX(sB);
53791
53808
  ({
53792
53809
  windowAndVideoInfo: PropTypes.shape({}),
53793
53810
  onUISpacingChange: PropTypes.func,
@@ -53801,13 +53818,13 @@
53801
53818
  onCaptureDone: PropTypes.func,
53802
53819
  outputEncryptionSettings: PropTypes.shape({})
53803
53820
  });
53804
- let sT = "SUCCESS"; dt$1.div`
53821
+ let sD = "SUCCESS"; dt$1.div`
53805
53822
  font-weight: normal;
53806
53823
  `; dt$1.div`
53807
53824
  height: 2px;
53808
53825
  width: 100%;
53809
53826
  background: ${({ theme: t, $type: r })=>{
53810
- let o = nz(`QRStep.resultText.${r === sT ? "success" : "error"}.mainColor`)({
53827
+ let o = nz(`QRStep.resultText.${r === sD ? "success" : "error"}.mainColor`)({
53811
53828
  theme: t
53812
53829
  });
53813
53830
  return lt$1`linear-gradient(to right, ${o}00, ${o}ff, ${o}00)`;
@@ -53816,7 +53833,7 @@
53816
53833
  width: 22px;
53817
53834
  height: 22px;
53818
53835
  border-radius: 50%;
53819
- background: ${({ theme: t, $type: r })=>nz(`QRStep.resultText.${r === sT ? "success" : "error"}.mainColor`)({
53836
+ background: ${({ theme: t, $type: r })=>nz(`QRStep.resultText.${r === sD ? "success" : "error"}.mainColor`)({
53820
53837
  theme: t
53821
53838
  })};
53822
53839
 
@@ -53832,7 +53849,7 @@
53832
53849
  align-items: center;
53833
53850
  margin: 10px 0;
53834
53851
  ${({ $type: t, theme: r })=>{
53835
- let o = t === sT ? "success" : "error";
53852
+ let o = t === sD ? "success" : "error";
53836
53853
  return lt$1`
53837
53854
  color: ${nz(`QRStep.resultText.${o}.textColor`)({
53838
53855
  theme: r
@@ -53946,16 +53963,16 @@
53946
53963
  scannerTypeCons: PropTypes.shape({}).isRequired,
53947
53964
  customTexts: PropTypes.shape({})
53948
53965
  });
53949
- let { IDCardSide: s9, IDCardType: s4, Errors: s6 } = sc;
53950
- iM.ID_CARD, sc.IDCardSide.FRONT, s4.VN, iM.ID_CARD, sc.IDCardSide.BACK, s4.VN, iM.QR_CODE;
53951
- let s7 = [
53966
+ let { IDCardSide: s4, IDCardType: s6, Errors: s7 } = sc;
53967
+ iM.ID_CARD, sc.IDCardSide.FRONT, s6.VN, iM.ID_CARD, sc.IDCardSide.BACK, s6.VN, iM.QR_CODE;
53968
+ let ce = [
53952
53969
  {
53953
53970
  scannerType: iM.ID_CARD,
53954
53971
  title: "Chụp mặt trước",
53955
53972
  description: "Căn chỉnh giấy tờ khớp với khung h\xecnh",
53956
53973
  titleIcon: "id_card_front.svg",
53957
53974
  cardSide: sc.IDCardSide.FRONT,
53958
- cardType: s4.VN,
53975
+ cardType: s6.VN,
53959
53976
  enableConfirmPopup: !1
53960
53977
  },
53961
53978
  {
@@ -53964,11 +53981,11 @@
53964
53981
  description: "Căn chỉnh giấy tờ khớp với khung h\xecnh",
53965
53982
  titleIcon: "id_card_back.svg",
53966
53983
  cardSide: sc.IDCardSide.BACK,
53967
- cardType: s4.VN,
53984
+ cardType: s6.VN,
53968
53985
  enableConfirmPopup: !1
53969
53986
  }
53970
53987
  ];
53971
- function ce() {
53988
+ function ct() {
53972
53989
  if (rh) return rf;
53973
53990
  rh = 1;
53974
53991
  var t = o9();
@@ -53979,10 +53996,10 @@
53979
53996
  } catch (t) {}
53980
53997
  }();
53981
53998
  }
53982
- function ct() {
53999
+ function cr() {
53983
54000
  if (rg) return rm;
53984
54001
  rg = 1;
53985
- var t = ce();
54002
+ var t = ct();
53986
54003
  return rm = function(r, o, n) {
53987
54004
  "__proto__" == o && t ? t(r, o, {
53988
54005
  configurable: !0,
@@ -53992,26 +54009,26 @@
53992
54009
  }) : r[o] = n;
53993
54010
  };
53994
54011
  }
53995
- function cr() {
54012
+ function co() {
53996
54013
  if (rw) return rb;
53997
54014
  rw = 1;
53998
- var t = ct(), r = o6();
54015
+ var t = cr(), r = o6();
53999
54016
  return rb = function(o, n, i) {
54000
54017
  (void 0 === i || r(o[n], i)) && (void 0 !== i || n in o) || t(o, n, i);
54001
54018
  };
54002
54019
  }
54003
- var co = {
54020
+ var cn = {
54004
54021
  exports: {}
54005
54022
  };
54006
- co.exports;
54007
- function cn() {
54023
+ cn.exports;
54024
+ function ci() {
54008
54025
  return rA ? rR : (rA = 1, rR = (rO ? rj : (rO = 1, rj = function(t, r) {
54009
54026
  return function(o) {
54010
54027
  return t(r(o));
54011
54028
  };
54012
54029
  }))(Object.getPrototypeOf, Object));
54013
54030
  }
54014
- function ci() {
54031
+ function ca() {
54015
54032
  if (rF) return rL;
54016
54033
  rF = 1;
54017
54034
  var t = Object.prototype;
@@ -54020,7 +54037,7 @@
54020
54037
  return r === ("function" == typeof o && o.prototype || t);
54021
54038
  };
54022
54039
  }
54023
- function ca() {
54040
+ function cs() {
54024
54041
  if (rq) return rU;
54025
54042
  rq = 1;
54026
54043
  var t = function() {
@@ -54037,41 +54054,41 @@
54037
54054
  return r(t) && n.call(t, "callee") && !i.call(t, "callee");
54038
54055
  };
54039
54056
  }
54040
- function cs() {
54057
+ function cc() {
54041
54058
  return rX ? rQ : (rX = 1, rQ = function(t) {
54042
54059
  return "number" == typeof t && t > -1 && t % 1 == 0 && t <= 0x1fffffffffffff;
54043
54060
  });
54044
54061
  }
54045
- function cc() {
54062
+ function cl() {
54046
54063
  if (rG) return rH;
54047
54064
  rG = 1;
54048
- var t = o8(), r = cs();
54065
+ var t = o8(), r = cc();
54049
54066
  return rH = function(o) {
54050
54067
  return null != o && r(o.length) && !t(o);
54051
54068
  };
54052
54069
  }
54053
- var cl = {
54070
+ var cd = {
54054
54071
  exports: {}
54055
54072
  };
54056
- function cd() {
54073
+ function cu() {
54057
54074
  var t, r, o, n, i, a, s, c;
54058
- if (r3) return cl.exports;
54059
- return r3 = 1, t = cl, r = cl.exports, o = oJ(), n = rJ ? rY : (rJ = 1, rY = function() {
54075
+ if (r3) return cd.exports;
54076
+ return r3 = 1, t = cd, r = cd.exports, o = oJ(), n = rJ ? rY : (rJ = 1, rY = function() {
54060
54077
  return !1;
54061
- }), c = (s = (a = (i = r && !r.nodeType && r) && t && !t.nodeType && t) && a.exports === i ? o.Buffer : void 0) ? s.isBuffer : void 0, t.exports = c || n, cl.exports;
54078
+ }), c = (s = (a = (i = r && !r.nodeType && r) && t && !t.nodeType && t) && a.exports === i ? o.Buffer : void 0) ? s.isBuffer : void 0, t.exports = c || n, cd.exports;
54062
54079
  }
54063
- cl.exports;
54064
- var cu = {
54080
+ cd.exports;
54081
+ var cp = {
54065
54082
  exports: {}
54066
54083
  };
54067
- cu.exports;
54068
- function cp() {
54084
+ cp.exports;
54085
+ function cf() {
54069
54086
  if (r7) return r6;
54070
54087
  r7 = 1;
54071
54088
  var t = function() {
54072
54089
  if (r1) return r0;
54073
54090
  r1 = 1;
54074
- var t = o2(), r = cs(), o = o5(), n = {};
54091
+ var t = o2(), r = cc(), o = o5(), n = {};
54075
54092
  return n["[object Float32Array]"] = n["[object Float64Array]"] = n["[object Int8Array]"] = n["[object Int16Array]"] = n["[object Int32Array]"] = n["[object Uint8Array]"] = n["[object Uint8ClampedArray]"] = n["[object Uint16Array]"] = n["[object Uint32Array]"] = !0, n["[object Arguments]"] = n["[object Array]"] = n["[object ArrayBuffer]"] = n["[object Boolean]"] = n["[object DataView]"] = n["[object Date]"] = n["[object Error]"] = n["[object Function]"] = n["[object Map]"] = n["[object Number]"] = n["[object Object]"] = n["[object RegExp]"] = n["[object Set]"] = n["[object String]"] = n["[object WeakMap]"] = !1, r0 = function(i) {
54076
54093
  return o(i) && r(i.length) && !!n[t(i)];
54077
54094
  };
@@ -54081,25 +54098,25 @@
54081
54098
  };
54082
54099
  }), o = function() {
54083
54100
  var t, r, o, n, i, a;
54084
- if (r4) return cu.exports;
54085
- return r4 = 1, t = cu, r = cu.exports, o = oY(), a = (i = (n = r && !r.nodeType && r) && t && !t.nodeType && t) && i.exports === n && o.process, t.exports = function() {
54101
+ if (r4) return cp.exports;
54102
+ return r4 = 1, t = cp, r = cp.exports, o = oY(), a = (i = (n = r && !r.nodeType && r) && t && !t.nodeType && t) && i.exports === n && o.process, t.exports = function() {
54086
54103
  try {
54087
54104
  var t = i && i.require && i.require("util").types;
54088
54105
  if (t) return t;
54089
54106
  return a && a.binding && a.binding("util");
54090
54107
  } catch (t) {}
54091
- }(), cu.exports;
54108
+ }(), cp.exports;
54092
54109
  }(), n = o && o.isTypedArray;
54093
54110
  return r6 = n ? r(n) : t;
54094
54111
  }
54095
- function cf() {
54112
+ function ch() {
54096
54113
  return ot ? oe : (ot = 1, oe = function(t, r) {
54097
54114
  if ("constructor" !== r || "function" != typeof t[r]) {
54098
54115
  if ("__proto__" != r) return t[r];
54099
54116
  }
54100
54117
  });
54101
54118
  }
54102
- function ch() {
54119
+ function cm() {
54103
54120
  if (ol) return oc;
54104
54121
  ol = 1;
54105
54122
  var t = /^(?:0|[1-9]\d*)$/;
@@ -54108,7 +54125,7 @@
54108
54125
  return !!(o = null == o ? 0x1fffffffffffff : o) && ("number" == n || "symbol" != n && t.test(r)) && r > -1 && r % 1 == 0 && r < o;
54109
54126
  };
54110
54127
  }
54111
- function cm() {
54128
+ function cg() {
54112
54129
  if (ob) return og;
54113
54130
  ob = 1;
54114
54131
  var t = function() {
@@ -54117,7 +54134,7 @@
54117
54134
  var t = os ? oa : (os = 1, oa = function(t, r) {
54118
54135
  for(var o = -1, n = Array(t); ++o < t;)n[o] = r(o);
54119
54136
  return n;
54120
- }), r = ca(), o = oK(), n = cd(), i = ch(), a = cp(), s = Object.prototype.hasOwnProperty;
54137
+ }), r = cs(), o = oK(), n = cu(), i = cm(), a = cf(), s = Object.prototype.hasOwnProperty;
54121
54138
  return od = function(c, l) {
54122
54139
  var d = o(c), u = !d && r(c), p = !d && !u && n(c), f = !d && !u && !p && a(c), h = d || u || p || f, m = h ? t(c.length, String) : [], g = m.length;
54123
54140
  for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b || p && ("offset" == b || "parent" == b) || f && ("buffer" == b || "byteLength" == b || "byteOffset" == b) || i(b, g))) && m.push(b);
@@ -54126,7 +54143,7 @@
54126
54143
  }(), r = function() {
54127
54144
  if (om) return oh;
54128
54145
  om = 1;
54129
- var t = o1(), r = ci(), o = of ? op : (of = 1, op = function(t) {
54146
+ var t = o1(), r = ca(), o = of ? op : (of = 1, op = function(t) {
54130
54147
  var r = [];
54131
54148
  if (null != t) for(var o in Object(t))r.push(o);
54132
54149
  return r;
@@ -54137,12 +54154,12 @@
54137
54154
  for(var c in i)"constructor" == c && (a || !n.call(i, c)) || s.push(c);
54138
54155
  return s;
54139
54156
  };
54140
- }(), o = cc();
54157
+ }(), o = cl();
54141
54158
  return og = function(n) {
54142
54159
  return o(n) ? t(n, !0) : r(n);
54143
54160
  };
54144
54161
  }
54145
- function cg() {
54162
+ function cb() {
54146
54163
  return ox ? o_ : (ox = 1, o_ = function(t) {
54147
54164
  return t;
54148
54165
  });
@@ -54192,7 +54209,7 @@
54192
54209
  this.size = o.size;
54193
54210
  }
54194
54211
  return s.prototype.clear = r, s.prototype.delete = o, s.prototype.get = n, s.prototype.has = i, s.prototype.set = a, ru = s;
54195
- }(), r = cr(), o = rC ? ry : (rC = 1, ry = (rk ? rv : (rk = 1, rv = function(t) {
54212
+ }(), r = co(), o = rC ? ry : (rC = 1, ry = (rk ? rv : (rk = 1, rv = function(t) {
54196
54213
  return function(r, o, n) {
54197
54214
  for(var i = -1, a = Object(r), s = n(r), c = s.length; c--;){
54198
54215
  var l = s[t ? c : ++i];
@@ -54203,14 +54220,14 @@
54203
54220
  }))()), n = function() {
54204
54221
  if (oy) return ok;
54205
54222
  oy = 1;
54206
- var t = cr(), r = function() {
54223
+ var t = co(), r = function() {
54207
54224
  var t, r, o, n, i, a, s;
54208
- if (rB) return co.exports;
54209
- return rB = 1, t = co, r = co.exports, o = oJ(), s = (a = (i = (n = r && !r.nodeType && r) && t && !t.nodeType && t) && i.exports === n ? o.Buffer : void 0) ? a.allocUnsafe : void 0, t.exports = function(t, r) {
54225
+ if (rB) return cn.exports;
54226
+ return rB = 1, t = cn, r = cn.exports, o = oJ(), s = (a = (i = (n = r && !r.nodeType && r) && t && !t.nodeType && t) && i.exports === n ? o.Buffer : void 0) ? a.allocUnsafe : void 0, t.exports = function(t, r) {
54210
54227
  if (r) return t.slice();
54211
54228
  var o = t.length, n = s ? s(o) : new t.constructor(o);
54212
54229
  return t.copy(n), n;
54213
- }, co.exports;
54230
+ }, cn.exports;
54214
54231
  }(), o = function() {
54215
54232
  if (rT) return rE;
54216
54233
  rT = 1;
@@ -54248,21 +54265,21 @@
54248
54265
  return o.prototype = void 0, i;
54249
54266
  };
54250
54267
  }();
54251
- }(), r = cn(), o = ci();
54268
+ }(), r = ci(), o = ca();
54252
54269
  return rz = function(n) {
54253
54270
  return "function" != typeof n.constructor || o(n) ? {} : t(r(n));
54254
54271
  };
54255
- }(), a = ca(), s = oK(), c = function() {
54272
+ }(), a = cs(), s = oK(), c = function() {
54256
54273
  if (rK) return rZ;
54257
54274
  rK = 1;
54258
- var t = cc(), r = o5();
54275
+ var t = cl(), r = o5();
54259
54276
  return rZ = function(o) {
54260
54277
  return r(o) && t(o);
54261
54278
  };
54262
- }(), l = cd(), d = o8(), u = o1(), p = function() {
54279
+ }(), l = cu(), d = o8(), u = o1(), p = function() {
54263
54280
  if (r5) return r2;
54264
54281
  r5 = 1;
54265
- var t = o2(), r = cn(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
54282
+ var t = o2(), r = ci(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
54266
54283
  return r2 = function(n) {
54267
54284
  if (!o(n) || "[object Object]" != t(n)) return !1;
54268
54285
  var c = r(n);
@@ -54270,7 +54287,7 @@
54270
54287
  var l = a.call(c, "constructor") && c.constructor;
54271
54288
  return "function" == typeof l && l instanceof l && i.call(l) == s;
54272
54289
  };
54273
- }(), f = cp(), h = cf(), m = function() {
54290
+ }(), f = cf(), h = ch(), m = function() {
54274
54291
  if (ov) return ow;
54275
54292
  ov = 1;
54276
54293
  var t = function() {
@@ -54279,12 +54296,12 @@
54279
54296
  var t = function() {
54280
54297
  if (oo) return or;
54281
54298
  oo = 1;
54282
- var t = ct(), r = o6(), o = Object.prototype.hasOwnProperty;
54299
+ var t = cr(), r = o6(), o = Object.prototype.hasOwnProperty;
54283
54300
  return or = function(n, i, a) {
54284
54301
  var s = n[i];
54285
54302
  o.call(n, i) && r(s, a) && (void 0 !== a || i in n) || t(n, i, a);
54286
54303
  };
54287
- }(), r = ct();
54304
+ }(), r = cr();
54288
54305
  return on = function(o, n, i, a) {
54289
54306
  var s = !i;
54290
54307
  i || (i = {});
@@ -54294,7 +54311,7 @@
54294
54311
  }
54295
54312
  return i;
54296
54313
  };
54297
- }(), r = cm();
54314
+ }(), r = cg();
54298
54315
  return ow = function(o) {
54299
54316
  return t(o, r(o));
54300
54317
  };
@@ -54309,7 +54326,7 @@
54309
54326
  }
54310
54327
  S && (C.set(_, P), k(P, _, v, y, C), C.delete(_)), t(g, w, P);
54311
54328
  };
54312
- }(), i = o1(), a = cm(), s = cf();
54329
+ }(), i = o1(), a = cg(), s = ch();
54313
54330
  return oC = function c(l, d, u, p, f) {
54314
54331
  l !== d && o(d, function(o, a) {
54315
54332
  if (f || (f = new t), i(o)) n(l, d, a, u, c, p, f);
@@ -54326,7 +54343,7 @@
54326
54343
  var t = function() {
54327
54344
  if (oF) return oL;
54328
54345
  oF = 1;
54329
- var t = cg(), r = function() {
54346
+ var t = cb(), r = function() {
54330
54347
  if (oT) return oE;
54331
54348
  oT = 1;
54332
54349
  var t = oS ? oP : (oS = 1, oP = function(t, r, o) {
@@ -54360,7 +54377,7 @@
54360
54377
  return function() {
54361
54378
  return t;
54362
54379
  };
54363
- }), r = ce(), o = cg();
54380
+ }), r = ct(), o = cb();
54364
54381
  return oI = r ? function(o, n) {
54365
54382
  return r(o, "toString", {
54366
54383
  configurable: !0,
@@ -54392,7 +54409,7 @@
54392
54409
  }(), r = function() {
54393
54410
  if (oN) return oz;
54394
54411
  oN = 1;
54395
- var t = o6(), r = cc(), o = ch(), n = o1();
54412
+ var t = o6(), r = cl(), o = cm(), n = o1();
54396
54413
  return oz = function(i, a, s) {
54397
54414
  if (!n(s)) return !1;
54398
54415
  var c = typeof a;
@@ -54413,7 +54430,7 @@
54413
54430
  t(r, o, n);
54414
54431
  });
54415
54432
  }();
54416
- let cb = {
54433
+ let cw = {
54417
54434
  data: {
54418
54435
  country: "vn",
54419
54436
  settings: {
@@ -54565,12 +54582,12 @@
54565
54582
  }
54566
54583
  }
54567
54584
  };
54568
- let { DesignToken: cw } = sc;
54569
- cw.Color.separators.secondary, cw.Color.semantic.error[400], cw.Color.content.primary, cw.Typography.h5.fontSize, cw.Typography.h5.fontWeight, cw.Typography.h5.lineHeight, cw.Color.content.primary, cw.Typography.h6.fontSize, cw.FontWeight["semi-bold"], cw.Color.background.secondary, cw.BorderWidth.base, cw.Color.separators.tertiary, cw.Color.content.primary, cw.Typography.h6.fontSize, cw.FontWeight["semi-bold"], cw.Color.background.secondary, cw.BorderWidth.base, cw.Color.separators.tertiary, cw.Color.content["on-bg-color"], cw.Typography.label.fontSize, cw.Typography.label.fontWeight, cw.Color.blue[900], cw.Color.content["on-bg-color"], cw.Typography.label.fontSize, cw.Typography.label.fontWeight, cw.Color.semantic.error[400], cw.Typography.body.fontSize, cw.Typography.body.fontWeight, cw.Color.blue[900], cw.Color.blue[100], cw.Color.blue[900], cw.Typography.body.fontSize, cw.FontWeight["semi-bold"];
54570
54585
  let { DesignToken: cv } = sc;
54571
- sc.DesignToken.Typography.h5, sc.DesignToken.Color.content.primary, cv.Color.semantic.error[400], cv.Typography.body.fontSize, cv.Typography.body.fontWeight, cv.Color.semantic.error[400], cv.Typography.body.fontSize, cv.Typography.body.fontWeight, cv.Color.blue[900], cv.Color.neutral[300], cv.Color.semantic.error[400], cv.Color.content.primary, cv.Typography.body.fontSize, cv.Typography.body.fontWeight, cv.Color.blue[900], cv.Color.separators.tertiary;
54586
+ cv.Color.separators.secondary, cv.Color.semantic.error[400], cv.Color.content.primary, cv.Typography.h5.fontSize, cv.Typography.h5.fontWeight, cv.Typography.h5.lineHeight, cv.Color.content.primary, cv.Typography.h6.fontSize, cv.FontWeight["semi-bold"], cv.Color.background.secondary, cv.BorderWidth.base, cv.Color.separators.tertiary, cv.Color.content.primary, cv.Typography.h6.fontSize, cv.FontWeight["semi-bold"], cv.Color.background.secondary, cv.BorderWidth.base, cv.Color.separators.tertiary, cv.Color.content["on-bg-color"], cv.Typography.label.fontSize, cv.Typography.label.fontWeight, cv.Color.blue[900], cv.Color.content["on-bg-color"], cv.Typography.label.fontSize, cv.Typography.label.fontWeight, cv.Color.semantic.error[400], cv.Typography.body.fontSize, cv.Typography.body.fontWeight, cv.Color.blue[900], cv.Color.blue[100], cv.Color.blue[900], cv.Typography.body.fontSize, cv.FontWeight["semi-bold"];
54572
54587
  let { DesignToken: ck } = sc;
54573
- ck.Color.content["on-bg-color"], ck.Typography.label.fontSize, ck.Typography.label.fontWeight, sc.DesignToken.Spacing.base, sc.DesignToken.Spacing.base, sc.DesignToken.Color.base.white, sc.DesignToken.CornerRadius.sm, sc.DesignToken.Color.mask[70], sc.DesignToken.Typography.h6, sc.DesignToken.FontWeight["semi-bold"], sc.DesignToken.Color.content.primary, sc.DesignToken.Typography.body, sc.DesignToken.Color.content.secondary, sc.DesignToken.Typography.body, sc.DesignToken.Color.base.white, sc.DesignToken.Color.base.blue, sc.DesignToken.CornerRadius.xs, sc.DesignToken.Height["3xl"], sc.DesignToken.Typography.body, sc.DesignToken.Color.content.primary, sc.DesignToken.Color.background.tertiary, sc.DesignToken.CornerRadius.xs, sc.DesignToken.Height["3xl"], PropTypes.shape({}), PropTypes.shape({}), PropTypes.func, PropTypes.shape({}), PropTypes.func, PropTypes.func, PropTypes.func, PropTypes.arrayOf(PropTypes.shape({
54588
+ sc.DesignToken.Typography.h5, sc.DesignToken.Color.content.primary, ck.Color.semantic.error[400], ck.Typography.body.fontSize, ck.Typography.body.fontWeight, ck.Color.semantic.error[400], ck.Typography.body.fontSize, ck.Typography.body.fontWeight, ck.Color.blue[900], ck.Color.neutral[300], ck.Color.semantic.error[400], ck.Color.content.primary, ck.Typography.body.fontSize, ck.Typography.body.fontWeight, ck.Color.blue[900], ck.Color.separators.tertiary;
54589
+ let { DesignToken: cy } = sc;
54590
+ cy.Color.content["on-bg-color"], cy.Typography.label.fontSize, cy.Typography.label.fontWeight, sc.DesignToken.Spacing.base, sc.DesignToken.Spacing.base, sc.DesignToken.Color.base.white, sc.DesignToken.CornerRadius.sm, sc.DesignToken.Color.mask[70], sc.DesignToken.Typography.h6, sc.DesignToken.FontWeight["semi-bold"], sc.DesignToken.Color.content.primary, sc.DesignToken.Typography.body, sc.DesignToken.Color.content.secondary, sc.DesignToken.Typography.body, sc.DesignToken.Color.base.white, sc.DesignToken.Color.base.blue, sc.DesignToken.CornerRadius.xs, sc.DesignToken.Height["3xl"], sc.DesignToken.Typography.body, sc.DesignToken.Color.content.primary, sc.DesignToken.Color.background.tertiary, sc.DesignToken.CornerRadius.xs, sc.DesignToken.Height["3xl"], PropTypes.shape({}), PropTypes.shape({}), PropTypes.func, PropTypes.shape({}), PropTypes.func, PropTypes.func, PropTypes.func, PropTypes.arrayOf(PropTypes.shape({
54574
54591
  scannerType: PropTypes.string
54575
54592
  })), PropTypes.func, PropTypes.shape({}), PropTypes.string, PropTypes.bool, PropTypes.arrayOf(PropTypes.string), PropTypes.shape({}), PropTypes.shape({
54576
54593
  enable: PropTypes.bool,
@@ -62568,7 +62585,7 @@
62568
62585
  id_detector_back_no_cards: 'Không nhận diện được giấy tờ'
62569
62586
  };
62570
62587
 
62571
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.abb/5.38.4/assets";
62588
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.abb/5.38.6/assets";
62572
62589
  // ABB brand colors for the Flash Liveness oval mask border.
62573
62590
  // `strokeColor` is the normal/idle border; `strokeColorError` is shown during
62574
62591
  // the FAR_FACE / CLOSE_FACE steps when a face-positioning error is detected.
@@ -62591,6 +62608,48 @@
62591
62608
  const FLASH_LIVENESS_TITLE_FONT_SIZE = "24px";
62592
62609
  const FLASH_LIVENESS_TITLE_COLOR = "#000000";
62593
62610
  const FLASH_LIVENESS_TITLE_FONT_WEIGHT = 600;
62611
+ // ABB Flash Liveness theme overrides: oval mask stroke colors, the title text,
62612
+ // and the error-alert pill styling. useMergeTheme deep-merges customTheme, and
62613
+ // getTheme falls back to the default v2 theme per field, so untouched fields
62614
+ // (mask path/width/height/strokeWidth, etc.) are preserved. A caller-supplied
62615
+ // customTheme still wins per field via the trailing spreads.
62616
+ //
62617
+ // Shared by livenessDetection() and faceAuthentication() so the Flash Liveness
62618
+ // step is branded identically whether it is launched standalone or as the
62619
+ // liveness stage inside Face Auth. It only touches FlashLiveness.* tokens, so it
62620
+ // is a no-op for Face Auth's non-flash liveness modes (PASSIVE/ACTIVE).
62621
+ function withFlashLivenessCustomTheme(props) {
62622
+ return {
62623
+ ...props,
62624
+ customTheme: {
62625
+ ...props.customTheme,
62626
+ FlashLiveness: {
62627
+ ...props.customTheme?.FlashLiveness,
62628
+ title: {
62629
+ fontSize: FLASH_LIVENESS_TITLE_FONT_SIZE,
62630
+ color: FLASH_LIVENESS_TITLE_COLOR,
62631
+ fontWeight: FLASH_LIVENESS_TITLE_FONT_WEIGHT,
62632
+ ...props.customTheme?.FlashLiveness?.title
62633
+ },
62634
+ mask: {
62635
+ strokeColor: FLASH_LIVENESS_MASK_STROKE_COLOR,
62636
+ strokeColorError: FLASH_LIVENESS_MASK_STROKE_COLOR_ERROR,
62637
+ ...props.customTheme?.FlashLiveness?.mask
62638
+ },
62639
+ instruction: {
62640
+ borderRadius: FLASH_LIVENESS_ERROR_BORDER_RADIUS,
62641
+ background: FLASH_LIVENESS_ERROR_BACKGROUND,
62642
+ backdropFilter: FLASH_LIVENESS_ERROR_BACKDROP_FILTER,
62643
+ fontSize: FLASH_LIVENESS_ERROR_FONT_SIZE,
62644
+ fontWeight: FLASH_LIVENESS_ERROR_FONT_WEIGHT,
62645
+ color: FLASH_LIVENESS_ERROR_COLOR,
62646
+ maxWidth: FLASH_LIVENESS_ERROR_MAX_WIDTH,
62647
+ ...props.customTheme?.FlashLiveness?.instruction
62648
+ }
62649
+ }
62650
+ }
62651
+ };
62652
+ }
62594
62653
  // ABB brand colors for the Read ID Card rounded-rectangle mask border (the SVG
62595
62654
  // stroke drawn over the id_card_frame image). The default color is the
62596
62655
  // normal/idle border; the error color is shown when card validation fails.
@@ -62680,45 +62739,32 @@
62680
62739
  }
62681
62740
  async livenessDetection(props) {
62682
62741
  const { lang } = this.commonSettings;
62683
- await super.livenessDetection({
62742
+ await super.livenessDetection(withFlashLivenessCustomTheme({
62684
62743
  ...props,
62685
62744
  customTexts: {
62686
62745
  ...lang === "en" ? vi : vi,
62687
62746
  ...props.customTexts
62688
- },
62689
- // ABB Flash Liveness theme overrides: oval mask stroke colors and the
62690
- // error-alert pill styling. useMergeTheme deep-merges customTheme, and
62691
- // getTheme falls back to the default v2 theme per field, so untouched
62692
- // fields (mask path/width/height/strokeWidth, etc.) are preserved. A
62693
- // caller-supplied customTheme still wins per field via the trailing spread.
62694
- customTheme: {
62695
- ...props.customTheme,
62696
- FlashLiveness: {
62697
- ...props.customTheme?.FlashLiveness,
62698
- title: {
62699
- fontSize: FLASH_LIVENESS_TITLE_FONT_SIZE,
62700
- color: FLASH_LIVENESS_TITLE_COLOR,
62701
- fontWeight: FLASH_LIVENESS_TITLE_FONT_WEIGHT,
62702
- ...props.customTheme?.FlashLiveness?.title
62703
- },
62704
- mask: {
62705
- strokeColor: FLASH_LIVENESS_MASK_STROKE_COLOR,
62706
- strokeColorError: FLASH_LIVENESS_MASK_STROKE_COLOR_ERROR,
62707
- ...props.customTheme?.FlashLiveness?.mask
62708
- },
62709
- instruction: {
62710
- borderRadius: FLASH_LIVENESS_ERROR_BORDER_RADIUS,
62711
- background: FLASH_LIVENESS_ERROR_BACKGROUND,
62712
- backdropFilter: FLASH_LIVENESS_ERROR_BACKDROP_FILTER,
62713
- fontSize: FLASH_LIVENESS_ERROR_FONT_SIZE,
62714
- fontWeight: FLASH_LIVENESS_ERROR_FONT_WEIGHT,
62715
- color: FLASH_LIVENESS_ERROR_COLOR,
62716
- maxWidth: FLASH_LIVENESS_ERROR_MAX_WIDTH,
62717
- ...props.customTheme?.FlashLiveness?.instruction
62718
- }
62719
- }
62720
62747
  }
62721
- });
62748
+ }));
62749
+ }
62750
+ // The base faceAuthentication() (unlike livenessDetection/readIDCard*) neither
62751
+ // injects a default customTexts nor applies any customTheme — it just renders
62752
+ // FaceAuthentication with the raw props. Without this override, the liveness
62753
+ // stage inside Face Auth would fall back to the core default copy and styling
62754
+ // instead of ABB's branding. The default authMethod (EDGE_AUTHEN) runs Flash
62755
+ // Liveness, so we inject the same ABB locale + Flash Liveness theme used by the
62756
+ // standalone livenessDetection() above. customTexts is already in the flat
62757
+ // CustomTexts shape SDKLocaleProvider consumes, so no convertToCustomTexts is
62758
+ // needed here.
62759
+ async faceAuthentication(props) {
62760
+ const { lang } = this.commonSettings;
62761
+ await super.faceAuthentication(withFlashLivenessCustomTheme({
62762
+ ...props,
62763
+ customTexts: {
62764
+ ...lang === "en" ? vi : vi,
62765
+ ...props.customTexts
62766
+ }
62767
+ }));
62722
62768
  }
62723
62769
  async readIDCardUIOnly(props) {
62724
62770
  const { lang } = this.commonSettings;
@@ -67395,6 +67441,16 @@
67395
67441
  position: absolute;
67396
67442
  top: 0;
67397
67443
  left: 0;
67444
+ /*
67445
+ * Size the frame with real CSS, not just the width/height HTML attributes.
67446
+ * Presentational attributes lose to a host's layered author CSS such as
67447
+ * Tailwind Preflight (@layer base img,video max-width:100% height:auto),
67448
+ * which would otherwise recompute the PNG height and desync it from the mask.
67449
+ * styled-components emits unlayered CSS, so this wins the cascade, no !important.
67450
+ */
67451
+ width: ${(props)=>props.width}px;
67452
+ height: ${(props)=>props.height}px;
67453
+ max-width: none;
67398
67454
  `;
67399
67455
  const { animationDuration: animationDuration$1 } = flipY;
67400
67456
  const SplashAnimation$1 = SplashAnimation$2;
@@ -70215,6 +70271,11 @@
70215
70271
  };
70216
70272
 
70217
70273
  const isJpegFile = (file)=>Boolean(file) && (file.type === 'image/jpeg' || /\.jpe?g$/i.test(file.name || ''));
70274
+ const isPngFile = (file)=>Boolean(file) && (file.type === 'image/png' || /\.png$/i.test(file.name || ''));
70275
+ // File types the upload-from-device picker accepts. JPEG passes through as-is; PNG is
70276
+ // transcoded to JPEG in buildUploadImage before any downstream processing (EXIF writer
70277
+ // and the upload API are JPEG-only).
70278
+ const isSupportedUploadFile = (file)=>isJpegFile(file) || isPngFile(file);
70218
70279
  // Probe whether a blob can be decoded by the browser's image decoder (the same one used
70219
70280
  // by <img>). On Samsung Android the picker sometimes returns HEIC/MPO files mislabeled
70220
70281
  // as image/jpeg — those make it past isJpegFile() but fail to render in the confirm
@@ -70228,11 +70289,12 @@
70228
70289
  return false;
70229
70290
  }
70230
70291
  };
70231
- // Re-encode a picker-supplied file through canvas → JPEG. Used when the original blob
70232
- // isn't displayable as an image (HEIC/MPO/etc. mislabeled as image/jpeg). Throws if
70233
- // createImageBitmap can't decode the file at all (truly broken input).
70234
- // Note: this strips the original EXIF metadata. Acceptable here because we only invoke
70235
- // it as a fallback when the original blob is unusable anyway.
70292
+ // Re-encode a picker-supplied file through canvas → JPEG. Two callers: the PNG transcode
70293
+ // path in buildUploadImage (iPhone screenshots and other PNG sources), and the fallback
70294
+ // when the original blob isn't displayable as an image (HEIC/MPO/etc. mislabeled as
70295
+ // image/jpeg). Throws if createImageBitmap can't decode the file at all (truly broken input).
70296
+ // Note: this strips the original EXIF metadata. Acceptable for both callers — PNG carries
70297
+ // no EXIF piexif can read, and the SDK's own EXIF payload is written *after* conversion.
70236
70298
  const reEncodeToJpeg = async (file, quality = 0.92)=>{
70237
70299
  const bitmap = await createImageBitmap(file);
70238
70300
  const canvas = document.createElement('canvas');
@@ -70243,6 +70305,10 @@
70243
70305
  if (!ctx) {
70244
70306
  throw new Error('reEncodeToJpeg: failed to get 2D canvas context');
70245
70307
  }
70308
+ // JPEG has no alpha channel — flatten any transparency (PNG screenshots/exports) onto
70309
+ // white instead of the canvas default, which encodes as black. No-op for opaque sources.
70310
+ ctx.fillStyle = '#ffffff';
70311
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
70246
70312
  ctx.drawImage(bitmap, 0, 0);
70247
70313
  // Drop the bitmap before the toBlob await — the canvas has its own copy now and
70248
70314
  // there's no point holding another ~48MB worth of pixels through JPEG encoding.
@@ -70277,9 +70343,19 @@
70277
70343
  fX.addExifData('upload_meta.original_size', file.size);
70278
70344
  fX.addExifData('upload_meta.mime_type', file.type);
70279
70345
  }
70346
+ // PNG (e.g. iPhone screenshots) must become real JPEG bytes before anything downstream:
70347
+ // writeMergedExif is piexif-based (JPEG-only — fed PNG it silently drops our EXIF payload)
70348
+ // and api.js labels the blob image/jpeg unconditionally. Deliberately not wrapped in
70349
+ // try/catch: if the PNG can't be decoded/encoded we must NOT fall through and send PNG
70350
+ // bytes mislabeled as JPEG — the throw lands in handleFileChange's catch, which surfaces
70351
+ // the recoverable upload_processing_failed toast.
70352
+ let normalizedFile = file;
70353
+ if (isPngFile(file)) {
70354
+ normalizedFile = await reEncodeToJpeg(file);
70355
+ }
70280
70356
  let blobWithExif = await fX.writeMergedExif({
70281
70357
  imageData: {
70282
- blob: file
70358
+ blob: normalizedFile
70283
70359
  },
70284
70360
  enableExifData: settings?.enableExifData
70285
70361
  });
@@ -70292,7 +70368,7 @@
70292
70368
  // the original bytes to the server for it to validate.
70293
70369
  if (!await isBlobDisplayable(blobWithExif)) {
70294
70370
  try {
70295
- const reEncoded = await reEncodeToJpeg(file);
70371
+ const reEncoded = await reEncodeToJpeg(normalizedFile);
70296
70372
  blobWithExif = await fX.writeMergedExif({
70297
70373
  imageData: {
70298
70374
  blob: reEncoded
@@ -70404,7 +70480,7 @@
70404
70480
  // Reset the input value so picking the same file again still fires `change`.
70405
70481
  if (e.target) e.target.value = '';
70406
70482
  if (!file) return;
70407
- if (!isJpegFile(file)) {
70483
+ if (!isSupportedUploadFile(file)) {
70408
70484
  sendEvent({
70409
70485
  tag: 'id_upload',
70410
70486
  event: 'upload_file_invalid',
@@ -70529,7 +70605,9 @@
70529
70605
  // camera mask shifts.
70530
70606
  const ErrorToast = dt$1.button`
70531
70607
  position: fixed;
70532
- z-index: ${BASE_Z_INDEX + 11};
70608
+ // Above the scan card alert (BASE_Z_INDEX + 20) so the toast stays readable when the two
70609
+ // overlap — e.g. a multi-line card alert extending down into a multi-line toast.
70610
+ z-index: ${BASE_Z_INDEX + 21};
70533
70611
  left: 50%;
70534
70612
 
70535
70613
  max-width: calc(100% - ${getTheme('IDUploadErrorToast.maxWidthInset')});
@@ -70609,7 +70687,7 @@
70609
70687
  /*#__PURE__*/ jsxRuntimeExports.jsx("input", {
70610
70688
  ref: inputRef,
70611
70689
  type: "file",
70612
- accept: "image/jpeg",
70690
+ accept: "image/jpeg,image/png",
70613
70691
  onChange: handleFileChange,
70614
70692
  style: {
70615
70693
  display: 'none'
@@ -70636,6 +70714,9 @@
70636
70714
  const t = gv();
70637
70715
  const [countdownMessage, setCountdownMessage] = reactExports.useState(null);
70638
70716
  const [errorMessage, setErrorMessage] = reactExports.useState('');
70717
+ // Raw (untranslated) guidance code, surfaced to the DOM as data-error-code so
70718
+ // automated tests can assert on a stable code instead of localized copy.
70719
+ const [errorCode, setErrorCode] = reactExports.useState('');
70639
70720
  const [cropArea, setCropArea] = reactExports.useState(null);
70640
70721
  const { showPopup, popupShown, popupType } = useShowPopup();
70641
70722
  const debug = useDebug();
@@ -70647,9 +70728,11 @@
70647
70728
  const handleOnError = reactExports.useCallback((error)=>{
70648
70729
  if (error === null) {
70649
70730
  setErrorMessage('');
70731
+ setErrorCode('');
70650
70732
  } else {
70651
- const errorCode = error?.code;
70652
- setErrorMessage(t(errorCode, {
70733
+ const code = error?.code;
70734
+ setErrorCode(code || '');
70735
+ setErrorMessage(t(code, {
70653
70736
  side: frontSide ? t('front') : t('back')
70654
70737
  }));
70655
70738
  }
@@ -70841,6 +70924,8 @@
70841
70924
  }
70842
70925
  }),
70843
70926
  /*#__PURE__*/ jsxRuntimeExports.jsx(InstructionText, {
70927
+ "data-testid": "id-instruction",
70928
+ "data-error-code": errorCode,
70844
70929
  children: hs.getStringWithLineBreak(errorMessage)
70845
70930
  })
70846
70931
  ]
@@ -96448,8 +96533,8 @@
96448
96533
  exports.SDK = TVWebSDK;
96449
96534
  exports.SDKAdapter = gT;
96450
96535
  exports.ScannerType = iM;
96451
- exports.defaultClientSettings = cb;
96452
- exports.defaultReadIDCardSteps = s7;
96536
+ exports.defaultClientSettings = cw;
96537
+ exports.defaultReadIDCardSteps = ce;
96453
96538
  exports.getSDKVersion = cP;
96454
96539
 
96455
96540
  }));