PageSourceSearch

https://app.re-collect.com.au/static/js/21.e538d9f9.chunk.js

js re-collect.com.au collected 2026-10-01 16:37:51 UTC 818,157 bytes, 2 lines download raw bytes

1/*! For license information please see 21.e538d9f9.chunk.js.LICENSE.txt */
2(this.webpackJsonpovercycle=this.webpackJsonpovercycle||[]).push([[21],{1027:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),"Check");e.default=i},1028:function(t,e,n){},1029:function(t,e){t.exports=!0},1030:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},1031:function(t,e,n){var r=n(1595),o=n(1209);t.exports=Object.keys||function(t){return r(t,o)}},1032:function(t,e){e.f={}.propertyIsEnumerable},1033:function(t,e,n){var r=n(1008),o=n(7761),i=n(1217),a=n(1035),s=r((function(t,e,n){var r=1;if(n.length){var u=a(n,i(s));r|=32}return o(t,r,e,n,u)}));s.placeholder={},t.exports=s},1034:function(t,e,n){var r=n(1214),o=n(780);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),i=t.apply(n,e);return o(i)?i:n}}},1035:function(t,e){t.exports=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&"__lodash_placeholder__"!==a||(t[n]="__lodash_placeholder__",i[o++]=n)}return i}},1036:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"})),"OpenInNew");e.default=i},1045:function(t,e,n){"use strict";n.d(e,"a",(function(){return Fn}));var r=n(3),o=n(66),i=n(1),a=n.n(i);const s=(t,e)=>{const{o:n,i:r,u:o}=t;let i,a=n;const s=(t,e)=>{const n=a,s=t,u=e||(r?!r(n,s):n!==s);return(u||o)&&(a=s,i=n),[a,u,i]};return[e?t=>s(e(a,i),t):s,t=>[a,!!t,i]]},u="undefined"!==typeof window&&"undefined"!==typeof HTMLElement&&!!window.document?window:{},c=Math.max,l=Math.min,f=Math.round,d=Math.abs,h=Math.sign,p=u.cancelAnimationFrame,g=u.requestAnimationFrame,m=u.setTimeout,y=u.clearTimeout,v=t=>"undefined"!==typeof u[t]?u[t]:void 0,w=v("MutationObserver"),_=v("IntersectionObserver"),b=v("ResizeObserver"),E=v("ScrollTimeline"),C=t=>void 0===t,A=t=>null===t,S=t=>"number"===typeof t,O=t=>"string"===typeof t,I=t=>"boolean"===typeof t,T=t=>"function"===typeof t,M=t=>Array.isArray(t),R=t=>"object"===typeof t&&!M(t)&&!A(t),D=t=>{const e=!!t&&t.length,n=S(e)&&e>-1&&e%1==0;return!!(M(t)||!T(t)&&n)&&(!(e>0&&R(t))||e-1 in t)},x=t=>!!t&&t.constructor===Object,N=t=>t instanceof HTMLElement,P=t=>t instanceof Element;function L(t,e){if(D(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&L(Object.keys(t),n=>e(t[n],n,t));return t}const k=(t,e)=>t.indexOf(e)>=0,B=(t,e)=>t.concat(e),j=(t,e,n)=>(!O(e)&&D(e)?Array.prototype.push.apply(t,e):t.push(e),t),F=t=>Array.from(t||[]),U=t=>M(t)?t:!O(t)&&D(t)?F(t):[t],z=t=>!!t&&!t.length,V=t=>F(new Set(t)),H=(t,e,n)=>{L(t,t=>!t||t.apply(void 0,e||[])),n||(t.length=0)},W="paddingRight",G="paddingLeft",Y="marginLeft",X="marginBottom",Z="overflowY",q="width",K="height",Q="visible",J="hidden",$="scroll",tt=(t,e,n,r)=>{if(t&&e){let r=!0;return L(n,n=>{t[n]!==e[n]&&(r=!1)}),r}return!1},et=(t,e)=>tt(t,e,["w","h"]),nt=(t,e)=>tt(t,e,["x","y"]),rt=(t,e)=>tt(t,e,["t","r","b","l"]),ot=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.bind(0,...n)},it=t=>{let e;const n=t?m:g,r=t?y:p;return[o=>{r(e),e=n(()=>o(),T(t)?t():t)},()=>r(e)]},at=t=>{const e=T(t)?t():t;if(S(e)){const t=e?m:g,n=e?y:p;return r=>{const o=t(()=>r(),e);return()=>{n(o)}}}return e&&e._},st=(t,e)=>{const{p:n,v:r,S:o,m:i}=e||{};let a,s,u,c;const l=function(e){s&&s(),a&&a(),c=s=a=u=void 0,t.apply(this,e)},f=t=>i&&u?i(u,t):t,d=()=>{s&&u&&l(f(u)||u)},h=function(){const t=F(arguments),e=at(n);if(e){const n="function"===typeof o?o():o,i=at(r),h=f(t)||t,p=l.bind(0,h);s&&s(),n&&!c?(p(),c=!0,s=e(()=>
2c=void 0)):(s=e(p),i&&!a&&(a=i(d))),u=h}else l(t)};return h.O=d,h},ut=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ct=t=>t?Object.keys(t):[],lt=(t,e,n,r,o,i,a)=>{const s=[e,n,r,o,i,a];return"object"===typeof t&&!A(t)||T(t)||(t={}),L(s,e=>{L(e,(n,r)=>{const o=e[r];if(t===o)return!0;const i=M(o);if(o&&x(o)){const e=t[r];let n=e;i&&!M(e)?n=[]:i||x(e)||(n={}),t[r]=lt(n,o)}else t[r]=i?o.slice():o})}),t},ft=(t,e)=>L(lt({},t),(t,e,n)=>{void 0===t?delete n[e]:t&&x(t)&&(n[e]=ft(t))}),dt=t=>!ct(t).length,ht=()=>{},pt=(t,e,n)=>c(t,l(e,n)),gt=t=>V((M(t)?t:(t||"").split(" ")).filter(t=>t)),mt=(t,e)=>t&&t.getAttribute(e),yt=(t,e)=>t&&t.hasAttribute(e),vt=(t,e,n)=>{L(gt(e),e=>{t&&t.setAttribute(e,String(n||""))})},wt=(t,e)=>{L(gt(e),e=>t&&t.removeAttribute(e))},_t=(t,e)=>{const n=gt(mt(t,e)),r=ot(vt,t,e),o=(t,e)=>{const r=new Set(n);return L(gt(t),t=>{r[e](t)}),F(r).join(" ")};return{C:t=>r(o(t,"delete")),$:t=>r(o(t,"add")),H:t=>{const e=gt(t);return e.reduce((t,e)=>t&&n.includes(e),e.length>0)}}},bt=(t,e,n)=>(_t(t,e).C(n),ot(Et,t,e,n)),Et=(t,e,n)=>(_t(t,e).$(n),ot(bt,t,e,n)),Ct=(t,e,n,r)=>(r?Et:bt)(t,e,n),At=(t,e,n)=>_t(t,e).H(n),St=t=>_t(t,"class"),Ot=(t,e)=>{St(t).C(e)},It=(t,e)=>(St(t).$(e),ot(Ot,t,e)),Tt=(t,e)=>{const n=e?P(e)&&e:document;return n?F(n.querySelectorAll(t)):[]},Mt=(t,e)=>P(t)&&t.matches(e),Rt=t=>Mt(t,"body"),Dt=t=>t?F(t.childNodes):[],xt=t=>t&&t.parentElement,Nt=(t,e)=>P(t)&&t.closest(e),Pt=t=>document.activeElement,Lt=(t,e,n)=>{const r=Nt(t,e),o=t&&((t,e)=>{const n=e?P(e)&&e:document;return n&&n.querySelector(t)})(n,r),i=Nt(o,e)===r;return!(!r||!o)&&(r===t||o===t||i&&Nt(Nt(t,n),e)!==r)},kt=t=>{L(U(t),t=>{const e=xt(t);t&&e&&e.removeChild(t)})},Bt=(t,e)=>ot(kt,t&&e&&L(U(e),e=>{e&&t.appendChild(e)}));let jt;const Ft=t=>{const e=document.createElement("div");return vt(e,"class",t),e},Ut=t=>{const e=Ft(),n=jt,r=t.trim();return e.innerHTML=n?n.createHTML(r):r,L(Dt(e),t=>kt(t))},zt=(t,e)=>t.getPropertyValue(e)||t[e]||"",Vt=t=>{const e=t||0;return isFinite(e)?e:0},Ht=t=>Vt(parseFloat(t||"")),Wt=t=>Math.round(1e4*t)/1e4,Gt=t=>"".concat(Wt(Vt(t)),"px");function Yt(t,e){t&&e&&L(e,(e,n)=>{try{const r=t.style,o=A(e)||I(e)?"":S(e)?Gt(e):e;0===n.indexOf("--")?r.setProperty(n,o):r[n]=o}catch(r){}})}function Xt(t,e,n){const r=O(e);let o=r?"":{};if(t){const i=u.getComputedStyle(t,n)||t.style;o=r?zt(i,e):F(e).reduce((t,e)=>(t[e]=zt(i,e),t),o)}return o}const Zt=(t,e,n)=>{const r=e?"".concat(e,"-"):"",o=n?"-".concat(n):"",i="".concat(r,"top").concat(o),a="".concat(r,"right").concat(o),s="".concat(r,"bottom").concat(o),u="".concat(r,"left").concat(o),c=Xt(t,[i,a,s,u]);return{t:Ht(c[i]),r:Ht(c[a]),b:Ht(c[s]),l:Ht(c[u])}},qt=(t,e)=>"translate".concat(R(t)?"(".concat(t.x,",").concat(t.y,")"):"".concat(e?"X":"Y","(").concat(t,")")),Kt={w:0,h:0},Qt=(t,e)=>e?{w:e["".concat(t,"Width")],h:e["".concat(t,"Height")]}:Kt,Jt=ot(Qt,"offset"),$t=ot(Qt,"client"),te=ot(Qt,"scroll"),ee=t=>{const e=parseFloat(Xt(t,q))||0,n=parseFloat(Xt(t,K))||0;return{w:e-f(e),h:n-f(n)}},ne=t=>t.getBoundingClientRect(),re=t=>!(!t||!t[K]&&!t[q]),oe=(t,e)=>{const n=re(t);return!re(e)&&n},ie=(t,e,n,r)=>{L(gt(e),e=>{t&&t.removeEventListener(e,n,r)})},ae=(t,e,n,r)=>{var o;const i=null==(o=r&&r.I)||o,a=r&&r.A||!1,s=r&&r.T||!1,u={passive:i,
2capture:a};return ot(H,gt(e).map(e=>{const r=s?o=>{ie(t,e,r,a),n&&n(o)}:n;return t&&t.addEventListener(e,r,u),ot(ie,t,e,r,a)}))},se=t=>t.stopPropagation(),ue=t=>t.preventDefault(),ce=t=>se(t)||ue(t),le=(t,e)=>{const{x:n,y:r}=S(e)?{x:e,y:e}:e||{};S(n)&&(t.scrollLeft=n),S(r)&&(t.scrollTop=r)},fe=t=>({x:t.scrollLeft,y:t.scrollTop}),de=(t,e)=>{const{D:n,M:r}=t,{w:o,h:i}=e,a=(t,e,n)=>{let r=h(t)*n,o=h(e)*n;if(r===o){const n=d(t),i=d(e);o=n>i?0:o,r=n<i?0:r}return r=r===o?0:r,[r+0,o+0]},[s,u]=a(n.x,r.x,o),[c,l]=a(n.y,r.y,i);return{D:{x:s,y:c},M:{x:u,y:l}}},he=t=>{let{D:e,M:n}=t;const r=(t,e)=>0===t&&t<=e;return{x:r(e.x,n.x),y:r(e.y,n.y)}},pe=(t,e)=>{let{D:n,M:r}=t;const o=(t,e,n)=>pt(0,1,(t-n)/(t-e)||0);return{x:o(n.x,r.x,e.x),y:o(n.y,r.y,e.y)}},ge=t=>{t&&t.focus&&t.focus({preventScroll:!0,focusVisible:!1})},me=(t,e)=>{L(U(e),t)},ye=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);me(t=>{r&&r[t?"delete":"clear"](t)},n)}else e.forEach(t=>{t.clear()}),e.clear()},r=(t,o)=>{if(O(t)){const r=e.get(t)||new Set;return e.set(t,r),me(t=>{T(t)&&r.add(t)},o),ot(n,t,o)}I(o)&&o&&n();const i=ct(t),a=[];return L(i,e=>{const n=t[e];n&&j(a,r(e,n))}),ot(H,a)};return r(t||{}),[r,n,(t,n)=>{L(F(e.get(t)),t=>{n&&!z(n)?t.apply(0,n):t()})}]},ve={},we={},_e=(t,e,n)=>ct(t).map(r=>{const{static:o,instance:i}=t[r],[a,s,u]=n||[],c=n?i:o;if(c){const t=n?c(a,s,e):c(e);return(u||we)[r]=t}}),be=t=>we[t],Ee="data-overlayscrollbars",Ce="os-environment",Ae="".concat(Ce,"-scrollbar-hidden"),Se="".concat(Ee,"-initialize"),Oe="noClipping",Ie="".concat(Ee,"-body"),Te=Ee,Me="".concat(Ee,"-viewport"),Re="arrange",De="measuring",xe="scrollbarHidden",Ne="".concat(Ee,"-padding"),Pe="".concat(Ee,"-content"),Le="os-size-observer",ke="".concat(Le,"-appear"),Be="".concat(Le,"-listener"),je=("".concat(Be,"-scroll"),"".concat(Be,"-item")),Fe=("".concat(je,"-final"),"os-scrollbar"),Ue="".concat(Fe,"-rtl"),ze="".concat(Fe,"-horizontal"),Ve="".concat(Fe,"-vertical"),He="".concat(Fe,"-track"),We="".concat(Fe,"-handle"),Ge="".concat(Fe,"-visible"),Ye="".concat(Fe,"-cornerless"),Xe="".concat(Fe,"-interaction"),Ze="".concat(Fe,"-unusable"),qe="".concat(Fe,"-auto-hide"),Ke="".concat(qe,"-hidden"),Qe="".concat(Fe,"-wheel"),Je="".concat(He,"-interactive"),$e="".concat(We,"-interactive"),tn="__osSizeObserverPlugin",en=(t,e)=>{const{k:n}=e,[r,o]=t("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,o]},nn=t=>0===t.indexOf(Q),rn=(t,e)=>{if("auto"===t)return e?$:J;const n=t||J;return[J,$,Q].includes(n)?n:J},on=(t,e)=>{const{overflowX:n,overflowY:r}=Xt(t,["overflowX",Z]);return{x:rn(n,e.x),y:rn(r,e.y)}},an="__osScrollbarsHidingPlugin",sn="__osClickScrollPlugin",un=t=>JSON.stringify(t,(t,e)=>{if(T(e))throw 0;return e}),cn=(t,e)=>t?"".concat(e).split(".").reduce((t,e)=>t&&ut(t,e)?t[e]:void 0,t):void 0,ln=[33,99],fn=[222,666,!0],dn={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:ln,env:fn},attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},hn=(t,e)=>{const n={};return L(B(ct(e),ct(t)),r=>{const o=t[r],i=e[r];if(R(o)&&R(i))lt(n[r]={},hn(o,i)),dt(n[r])&&delete n[r];else if(ut(e,r)&&i!==o){let t=!0;if(M(o)||M(i))try{un(o)===un(i)&&(t=!1)}catch(a){}t&&(n[r]=i)}}),n},pn=(t,e,n)=>r=>[cn(t,r),n||void 0!==cn(e,r)];let gn;let mn;const yn=()=>{const t=(t,e,n)=>{Bt(document.body,t),Bt(document.body,t);const r=$t(t),o=Jt(t),i=ee(e);return n&&kt(t),{x:o.h-r.h+i.h,y:o.w-r.w+i.w}},e=".".concat(Ce,"{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.").concat(Ce," div{width:200%;height:200%;margin:10px 0}.").concat(Ae,"{scrollbar-width:none!important}.").concat(Ae,"::-webkit-scrollbar,.").concat(Ae,"::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}"),n=Ut('<div class="'.concat(Ce,'"><div></div><style>').concat(e,"</style></div>"))[0],r=n.firstChild,o=n.lastChild,i=gn;i&&(o.nonce=i);const[a,,c]=ye(),[l,f]=s({o:t(n,r),i:nt},ot(t,n,r,!0)),[d]=f(),h=(t=>{let e=!1;const r=It(t,Ae);try{e="none"===Xt(t,"scrollbar-width")||"none"===Xt(t,"display","::-webkit-scrollbar")}catch(n){}return r(),e})(n),p={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!h,viewport:t=>h&&Rt(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},m=lt({},dn),y=ot(lt,{},m),v=ot(lt,{},g),w={P:d,k:p,U:h,J:!!E,G:ot(a,"r"),K:v,Z:t=>lt(g,t)&&v(),tt:y,nt:t=>lt(m,t)&&y(),ot:lt({},g),st:lt({},m)};if(wt(n,"style"),kt(n),ae(u,"resize",()=>{c("r",[])}),T(u.matchMedia)&&!h&&(!p.x||!p.y)){const t=e=>{const n=u.matchMedia("(resolution: ".concat(u.devicePixelRatio,"dppx)"));ae(n,"change",()=>{e(),t(e)},{T:!0})};t(()=>{const[t,e]=l();lt(w.P,t),c("r",[e])})}return w},vn=()=>(mn||(mn=yn()),mn),wn=(t,e,n,r)=>{let o=!1;const{et:i,ct:a,rt:s,it:u,lt:c,ut:l}=r||{},[f,d]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,i=i=>{if(o&&n){L(n.map(e=>{const[n,r]=e||[];return[r&&n?(i||Tt)(n,t):[],r]}),n=>L(n[0],i=>{const a=n[1],s=o.get(i)||[];
2if(t.contains(i)&&a){const t=ae(i,a,n=>{r?(t(),o.delete(i)):e(n)});o.set(i,j(s,t))}else H(s),o.delete(i)}))}};return i(),[()=>{r=!0},i]})(t,()=>o&&n(!0),s),h=a||[],p=B(i||[],h),g=(o,i)=>{if(!z(i)){const a=c||ht,s=l||ht,f=[],p=[];let g=!1,m=!1;if(L(i,n=>{const{attributeName:o,target:i,type:c,oldValue:l,addedNodes:d,removedNodes:y}=n,v="attributes"===c,w="childList"===c,_=t===i,b=v&&o,E=b&&mt(i,o||""),C=O(E)?E:null,A=b&&l!==C,S=k(h,o)&&A;if(e&&(w||!_)){const e=v&&A,c=e&&u&&Mt(i,u),h=(c?!a(i,o,l,C):!v||e)&&!s(n,!!c,t,r);L(d,t=>j(f,t)),L(y,t=>j(f,t)),m=m||h}!e&&_&&A&&!a(i,o,l,C)&&(j(p,o),g=g||S)}),d(t=>V(f).reduce((e,n)=>(j(e,Tt(t,n)),Mt(n,t)?j(e,n):e),[])),e)return!o&&m&&n(!1),[!1];if(!z(p)||g){const t=[V(p),g];return o||n.apply(0,t),t}}},m=new w(ot(g,!1));return[()=>(m.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:p,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(f(),m.disconnect(),o=!1)}),()=>{if(o)return g(!0,m.takeRecords())}]};let _n=null;const bn=(t,e,n)=>{const{ft:r}=n||{},o=be(tn),[i]=s({o:!1,u:!0});return()=>{const n=[],a=Ut('<div class="'.concat(Le,'"><div class="').concat(Be,'"></div></div>'))[0],s=a.firstChild,u=t=>{let n=!1,r=!1;if(M(t)&&!z(t)){const e=t[0],[o,,a]=i(e.contentRect),s=re(o);r=oe(o,a),n=!r&&!s}else r=!0===t;n||e({_t:!0,ft:r})};if(b){if(!I(_n)){const e=new b(ht);e.observe(t,{get box(){_n=!0}}),_n=_n||!1,e.disconnect()}const e=st(u,{p:0,v:0}),r=t=>e(t),o=new b(r);if(o.observe(_n?t:s),j(n,[()=>{o.disconnect()},!_n&&Bt(t,a)]),_n){const e=new b(r);e.observe(t,{box:"border-box"}),j(n,()=>e.disconnect())}}else{if(!o)return ht;{const[e,i]=o(s,u,r);j(n,B([It(a,ke),ae(a,"animationstart",e),Bt(t,a)],i))}}return ot(H,n)}},En=(t,e)=>{let n;const r=Ft("os-trinsic-observer"),[o]=s({o:!1}),i=(t,n)=>{if(t){const r=o((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,i]=r;return i&&!n&&e(r)&&[r]}},a=(t,e)=>i(e.pop(),t);return[()=>{const e=[];if(_)n=new _(ot(a,!1),{root:t}),n.observe(r),j(e,()=>{n.disconnect()});else{const t=()=>{const t=Jt(r);i(t)};j(e,bn(r,t)()),t()}return ot(H,j(e,Bt(t,r)))},()=>n&&a(!0,n.takeRecords())]},Cn=(t,e,n,r)=>{let o,i,a,u,c,l,f,d;const h="[".concat(Te,"]"),p="[".concat(Me,"]"),g=["id","class","style","open","wrap","cols","rows"],{dt:m,vt:y,L:v,gt:w,ht:_,V:E,bt:C,wt:A,yt:O,St:I}=t,R=t=>"rtl"===Xt(t,"direction"),D={Ot:!1,B:R(m)},N=vn(),P=be(an),[L]=s({i:et,o:{w:0,h:0}},()=>{const r=P&&P.R(t,e,D,N,n).Y,o=!(C&&E)&&At(y,Te,Oe),i=!E&&A(Re),a=i&&fe(w),s=a&&I(),u=O(De,o),c=i&&r&&r(),l=te(v),f=ee(v);return c&&c(),le(w,a),s&&s(),o&&u(),{w:l.w+f.w,h:l.h+f.h}}),k=(()=>{let t,e,n;const o=st(r,{p:()=>t,v:()=>e,S:()=>n,m(t,e){const[n]=t,[r]=e;return[B(ct(n),ct(r)).reduce((t,e)=>(t[e]=n[e]||r[e],t),{})]}}),i=(r,i)=>{if(M(i)){const[r,o,a]=i;t=r,e=o,n=a}else S(i)?(t=i,e=!1,n=!1):(t=!1,e=!1,n=!1);o(r)};return i.O=o.O,i})(),j=t=>{const e=R(m);lt(t,{Ct:d!==e}),lt(D,{B:e}),d=e},F=(t,e)=>{const[n,o]=t,i={$t:o};return lt(D,{Ot:n}),e||r(i),i},U=t=>{let{_t:e,ft:n}=t;const o=n?r:k,a={_t:e||n,ft:n};j(a),o(a,i)},z=(t,e)=>{const[,n]=L(),r={xt:n};return j(r),n&&!e&&k(r,t?a:o),r},V=(t,e,n)=>{const r={Ht:e};return j(r),e&&!n&&k(r,o),r},[H,W]=_?En(y,F):[],G=!E&&bn(y,U,{ft:!0}),[Y,X]=wn(y,!1,V,{ct:g,et:g}),Z=E&&b&&new b(t=>{const e=t[t.length-1].contentRect;U({_t:!0,ft:oe(e,f)}),f=e});return[()=>{Z&&Z.observe(y);const t=G&&G(),e=H&&H(),n=Y(),r=N.G(t=>{const[,e]=L();k({Et:t,xt:e,_t:C},u)});return()=>{Z&&Z.disconnect(),t&&t(),e&&e(),l&&l(),n(),r()}},t=>{let{zt:e,It:n,At:r}=t;const s={},[f]=e("update.ignoreMutation"),[d,m]=e("update.attributes"),[y,w]=e("update.elementEvents"),[b,C]=e("update.debounce"),A=n||r;if(w||m){c&&c(),l&&l();const[t,e]=wn(_||v,!0,z,{et:B(g,d||[]),rt:y,it:h,ut:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||E)&&Lt(n,h,p)||!!Nt(n,".".concat(Fe))||!!(t=>T(f)&&f(t))(t)}});l=t(),c=e}if(C&&(k.O(),M(b)||S(b)?(o=b,i=!1,a=ln,u=fn):x(b)?(o=b.mutation,i=b.resize,a=b.event,u=b.env):(o=!1,i=!1,a=!1,u=!1)),A){const t=X(),e=W&&W(),n=c&&c();t&&lt(s,V(t[0],t[1],A)),e&&lt(s,F(e[0],A)),n&&lt(s,z(n[0],A))}return j(s),s},D]},An=(t,e)=>T(e)?e.apply(0,t):e,Sn=(t,e,n,r)=>{const o=C(r)?n:r;return An(t,o)||e.apply(0,t)},On=(t,e,n,r)=>{const o=C(r)?n:r,i=An(t,o);return!!i&&(N(i)?i:e.apply(0,t))},In=(t,e,n,r)=>{const{K:o}=vn(),{scrollbars:i}=o(),{slot:a}=i,{dt:s,vt:u,L:c,Tt:l,gt:f,bt:d,V:h}=e,{scrollbars:p}=l?{}:t,{slot:g}=p||{},m=[],y=[],v=[],w=On([s,u,c],()=>h&&d?s:u,a,g),_=t=>{if(E){let e=null,r=[];const o=new E({source:f,axis:t}),i=()=>{e&&e.cancel(),e=null};return{kt:a=>{const{Dt:s}=n,u=he(s)[t],c="x"===t,l=[qt(0,c),qt("calc(-100% + 100cq".concat(c?"w":"h",")"),c)],f=u?l:l.reverse();return r[0]===f[0]&&r[1]===f[1]||(r=f,i(),e=a.Mt.animate({clear:["left"],transform:f},{timeline:o})),i}}}},b={x:_("x"),y:_("y")},C=(t,e,n)=>{const r=n?It:Ot;L(t,t=>{r(t.Lt,e)})},A=(t,e)=>
2{L(t,t=>{const[n,r]=e(t);Yt(n,r)})},S=(t,e,n)=>{const r=I(n),o=!r||!n;(!r||n)&&C(y,t,e),o&&C(v,t,e)},O=t=>{const e=t?"x":"y",n=t?ze:Ve,o=Ft("".concat(Fe," ").concat(n)),i=Ft(He),a=Ft(We),s={Lt:o,Ut:i,Mt:a},u=b[e];return j(t?y:v,s),j(m,[Bt(o,i),Bt(i,a),ot(kt,o),u&&u.kt(s),r(s,S,t)]),s},T=ot(O,!0),M=ot(O,!1);return T(),M(),[{Pt:()=>{const t=(()=>{const{Rt:t,Vt:e}=n,r=(t,e)=>pt(0,1,t/(t+e)||0);return{x:r(e.x,t.x),y:r(e.y,t.y)}})(),e=t=>e=>[e.Lt,{"--os-viewport-percent":Wt(t)+""}];A(y,e(t.x)),A(v,e(t.y))},Nt:()=>{if(!E){const{Dt:t}=n,e=pe(t,fe(f)),r=t=>e=>[e.Lt,{"--os-scroll-percent":Wt(t)+""}];A(y,r(e.x)),A(v,r(e.y))}},qt:()=>{const{Dt:t}=n,e=he(t),r=t=>e=>[e.Lt,{"--os-scroll-direction":t?"0":"1"}];A(y,r(e.x)),A(v,r(e.y)),E&&(y.forEach(b.x.kt),v.forEach(b.y.kt))},Bt:()=>{if(h&&!d){const{Rt:t,Dt:e}=n,r=he(e),o=pe(e,fe(f)),i=e=>{const{Lt:n}=e,i=xt(n)===c&&n,a=(t,e,n)=>{const r=e*t;return Gt(n?r:-r)};return[i,i&&{transform:qt({x:a(o.x,t.x,r.x),y:a(o.y,t.y,r.y)})}]};A(y,i),A(v,i)}},Ft:S,jt:{Xt:y,Yt:T,Wt:ot(A,y)},Jt:{Xt:v,Yt:M,Wt:ot(A,v)}},()=>(Bt(w,y[0].Lt),Bt(w,v[0].Lt),ot(H,m))]},Tn=(t,e,n,r)=>(o,i,a)=>{const{vt:s,L:u,V:c,gt:l,Gt:h,St:p}=e,{Lt:g,Ut:y,Mt:v}=o,[w,_]=it(333),[b,E]=it(444),C=t=>{T(l.scrollBy)&&l.scrollBy({behavior:"smooth",left:t.x,top:t.y})};let A=!0;return ot(H,[ae(v,"pointermove pointerleave",r),ae(g,"pointerenter",()=>{i(Xe,!0)}),ae(g,"pointerleave pointercancel",()=>{i(Xe,!1)}),!c&&ae(g,"mousedown",()=>{const t=Pt();(yt(t,Me)||yt(t,Te)||t===document.body)&&m(ot(ge,u),25)}),ae(g,"wheel",t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;A&&0===r&&xt(g)===s&&C({x:e,y:n}),A=!1,i(Qe,!0),w(()=>{A=!0,i(Qe)}),ue(t)},{I:!1,A:!0}),ae(g,"pointerdown",()=>{const t=ae(h,"click",t=>{e(),ce(t)},{T:!0,A:!0,I:!1}),e=ae(h,"pointerup pointercancel",()=>{e(),setTimeout(t,150)},{A:!0,I:!0})},{A:!0,I:!0}),(()=>{const e="pointerup pointercancel lostpointercapture",r="client".concat(a?"X":"Y"),o=a?q:K,i=a?"left":"top",s=a?"w":"h",u=a?"x":"y",c=(t,e)=>r=>{const{Rt:o}=n,i=Jt(y)[s]-Jt(v)[s],a=e*r/i*o[u];le(l,{[u]:t+a})},g=[];return ae(y,"pointerdown",n=>{const a=Nt(n.target,".".concat(We))===v,m=a?v:y,w=t.scrollbars,_=w[a?"dragScroll":"clickScroll"],{button:A,isPrimary:S,pointerType:O}=n,{pointers:I}=w;if(0===A&&S&&_&&(I||[]).includes(O)){H(g),E();const t=!a&&(n.shiftKey||"instant"===_),w=ot(ne,v),A=ot(ne,y),S=(t,e)=>(t||w())[i]-(e||A())[i],O=f(ne(l)[o])/Jt(l)[s]||1,I=c(fe(l)[u],1/O),T=n[r],M=w(),R=A(),D=M[o],x=S(M,R)+D/2,N=T-R[i],P=a?0:N-x,L=t=>{H(F),m.releasePointerCapture(t.pointerId)},k=a||t,B=p(),F=[ae(h,e,L),ae(h,"selectstart",t=>ue(t),{I:!1}),ae(y,e,L),k&&ae(y,"pointermove",t=>I(P+(t[r]-T))),k&&(()=>{const t=fe(l);B();const e=fe(l),n={x:e.x-t.x,y:e.y-t.y};(d(n.x)>3||d(n.y)>3)&&(p(),le(l,t),C(n),b(B))})];if(m.setPointerCapture(n.pointerId),t)I(P);else if(!a){const t=be(sn);if(t){const e=t(I,P,D,t=>{t?B():j(F,B)});j(F,e),j(g,ot(e,!0))}}}})})(),_,E])},Mn=t=>{let{ht:e}=t;return t=>{let{Qt:n,un:r,At:o}=t;const{$t:i}=n||{},{Ot:a}=r;e&&(i||o)&&Yt(e,{[K]:a&&"100%"})}},Rn=(t,e)=>{let{vt:n,rn:r,L:o,V:i}=t;const[a,u]=s({i:rt,o:Zt()},ot(Zt,n,"padding",""));return t=>{let{zt:n,Qt:s,un:c,At:l}=t,[f,d]=u(l);const{U:h}=vn(),{_t:p,xt:g,Ct:m}=s||{},{B:y}=c,[v,w]=n("paddingAbsolute");(p||d||(l||g))&&([f,d]=a(l));const _=!i&&(w||m||d);if(_){const t=!v||!r&&!h,n=f.r+f.l,i=f.t+f.b,a={marginRight:t&&!y?-n:0,[X]:t?-i:0,[Y]:t&&y?-n:0,top:t?-f.t:0,right:t?y?-f.r:"auto":0,left:t?y?"auto":-f.l:0,[q]:t&&"calc(100% + ".concat(n,"px)")},s={paddingTop:t?f.t:0,[W]:t?f.r:0,paddingBottom:t?f.b:0,[G]:t?f.l:0};Yt(r||o,a),Yt(o,s),lt(e,{rn:f,fn:!t,F:r?s:lt({},a,s)})}return{_n:_}}},Dn=(t,e)=>{const n=vn(),{vt:r,rn:o,L:i,V:a,Kt:l,gt:f,bt:d,yt:h,an:p}=t,{U:m}=n,y=d&&a,v=ot(c,0),w={display:()=>!1,direction:t=>"ltr"!==t,flexDirection:t=>t.endsWith("-reverse"),writingMode:t=>"horizontal-tb"!==t},_=ct(w),b={i:et,o:{w:0,h:0}},E={i:nt,o:{}},C=t=>{h(De,!y&&t)},A=t=>{if(!_.some(e=>{const n=t[e];return n&&w[e](n)}))return{D:{x:0,y:0},M:{x:1,y:1}};C(!0);const e=fe(f),n=h("noContent",!0),r=ae(l,$,t=>{const n=fe(f);t.isTrusted&&n.x===e.x&&n.y===e.y&&se(t)},{A:!0,T:!0});le(f,{x:0,y:0}),n();const o=fe(f),i=te(f);le(f,{x:i.w,y:i.h});const a=fe(f);le(f,{x:a.x-o.x<1&&-i.w,y:a.y-o.y<1&&-i.h});const s=fe(f);return le(f,e),g(()=>r()),{D:o,M:s}},S=(t,e)=>{const n=(t,e,n,r)=>{const o=t===Q?J:(t=>t.replace("".concat(Q,"-"),""))(t),i=nn(t),a=nn(n);if(!e&&!r)return J;if(i&&a)return Q;if(i){const t=e?Q:J;return e&&r?o:t}return e?o:a&&r?Q:J};return{x:n(e.x,t.x,e.y,t.y),y:n(e.y,t.y,e.x,t.x)}},O=t=>{const e=t=>[Q,J,$].map(e=>z(rn(e),t)),n=e(!0).concat(e()).join(" ");h(n),h(ct(t).map(e=>z(t[e],"x"===e)).join(" "),!0)},[I,T]=s(b,ot(ee,i)),[M,R]=s(b,ot(te,i)),[D,x]=s(b),[N]=s(E),[P,L]=s(b),[k]=s(E),[B]=s({i:(t,e)=>tt(t,e,_),o:{}}
2,()=>(t=>!!t&&(t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t))(i)?Xt(i,_):{}),[j,F]=s({i:(t,e)=>nt(t.D,e.D)&&nt(t.M,e.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),U=be(an),z=(t,e)=>"".concat(e?"overflowX":"overflowY").concat((t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""})(t));return(a,s)=>{let{zt:c,Qt:l,un:f,At:d}=a,{_n:g}=s;const{_t:w,Ht:_,xt:b,Ct:E,ft:z,Et:V}=l||{},H=U&&U.R(t,e,f,n,c),{X:W,Y:G,W:Y}=H||{},[X,Z]=en(c,n),[q,K]=c("overflow"),Q=nn(q.x),J=nn(q.y),$=w||g||b||E||V||Z;let tt=T(d),et=R(d),nt=x(d),rt=L(d);if(Z&&m&&h(xe,!X),$){At(r,Te,Oe)&&C(!0);const t=G&&G(),[e]=tt=I(d),[n]=et=M(d),o=$t(i),a=y&&(t=>Qt("inner",t||u))(p()),s={w:v(n.w+e.w),h:v(n.h+e.h)},c={w:v((a?a.w:o.w+v(o.w-n.w))+e.w),h:v((a?a.h:o.h+v(o.h-n.h))+e.h)};t&&t(),rt=P(c),nt=D(((t,e)=>{const n=u.devicePixelRatio%1!==0?1:0,r={w:v(t.w-e.w),h:v(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}})(s,c),d)}const[ot,it]=rt,[at,st]=nt,[ut,ct]=et,[ft,dt]=tt,[ht,pt]=N({x:at.w>0,y:at.h>0}),gt=Q&&J&&(ht.x||ht.y)||Q&&ht.x&&!ht.y||J&&ht.y&&!ht.x,mt=g||E||V||dt||ct||it||st||K||Z||$||_&&y,[yt,vt]=B(d),wt=E||z||vt||pt||d,[_t,bt]=wt?j(A(yt),d):F();let Et=S(ht,q);C(!1),mt&&(O(Et),Et=on(i,ht),Y&&W&&(W(Et,ut,ft),Yt(i,Y(Et))));const[St,Ot]=k(Et);return Ct(r,Te,Oe,gt),Ct(o,Ne,Oe,gt),lt(e,{cn:St,Vt:{x:ot.w,y:ot.h},Rt:{x:at.w,y:at.h},j:ht,Dt:de(_t,at)}),{sn:Ot,tn:it,nn:st,en:bt||st}}},xn=t=>{const[e,n,r]=(t=>{const e=vn(),{K:n,U:r}=e,{elements:o}=n(),{padding:i,viewport:a,content:s}=o,c=N(t),l=c?{}:t,{elements:f}=l,{padding:d,viewport:h,content:p}=f||{},g=c?t:l.target,m=Rt(g),y=g.ownerDocument,v=y.documentElement,w=()=>y.defaultView||u,_=ot(Sn,[g]),b=ot(On,[g]),E=ot(Ft,""),C=ot(_,E,a),A=ot(b,E,s),S=C(h),O=S===g,I=O&&m,T=!O&&A(p),M=!O&&S===T,R=I?v:S,D=I?R:g,x=!O&&b(E,i,d),P=!M&&T,L=[P,R,x,D].map(t=>N(t)&&!xt(t)&&t),B=t=>t&&k(L,t),F=!B(R)&&(t=>{const e=Jt(t),n=te(t),r=Xt(t,"overflowX"),o=Xt(t,Z);return n.w-e.w>0&&!nn(r)||n.h-e.h>0&&!nn(o)})(R)?R:g,U=I?v:R,z={dt:g,vt:D,L:R,rn:x,ht:P,gt:U,Kt:I?y:R,ln:m?v:F,Gt:y,bt:m,Tt:c,V:O,an:w,wt:t=>At(R,Me,t),yt:(t,e)=>Ct(R,Me,t,e),St:()=>Ct(U,Me,"scrolling",!0)},{dt:V,vt:W,rn:G,L:Y,ht:X}=z,q=[()=>{wt(W,[Te,Se]),wt(V,Se),m&&wt(v,[Se,Te])}];let K=Dt([X,Y,G,W,V].find(t=>t&&!B(t)));const Q=I?V:X||Y,J=ot(H,q);return[z,()=>{const t=w(),e=Pt(),n=t=>{Bt(xt(t),Dt(t)),kt(t)},o=t=>ae(t,"focusin focusout focus blur",ce,{A:!0,I:!1}),i="tabindex",a=mt(Y,i),s=o(e);return vt(W,Te,O?"":"host"),vt(G,Ne,""),vt(Y,Me,""),vt(X,Pe,""),O||(vt(Y,i,a||"-1"),m&&vt(v,Ie,"")),Bt(Q,K),Bt(W,G),Bt(G||W,!O&&Y),Bt(Y,X),j(q,[s,()=>{const t=Pt(),e=B(Y),r=e&&t===Y?V:t,s=o(r);wt(G,Ne),wt(X,Pe),wt(Y,Me),m&&wt(v,Ie),a?vt(Y,i,a):wt(Y,i),B(X)&&n(X),e&&n(Y),B(G)&&n(G),ge(r),s()}]),r&&!O&&(Et(Y,Me,xe),j(q,ot(wt,Y,Me))),ge(!O&&m&&e===V&&t.top===t?Y:e),s(),K=0,J},J]})(t),o={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{marginRight:0,[X]:0,[Y]:0,paddingTop:0,[W]:0,paddingBottom:0,[G]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:J,y:J},j:{x:!1,y:!1},Dt:{D:{x:0,y:0},M:{x:0,y:0}}},{dt:i,gt:a,V:s,St:c}=e,{U:l,k:f}=vn(),d=!l&&(f.x||f.y),h=[Mn(e),Rn(e,o),Dn(e,o)];return[n,t=>{const e={},n=d&&fe(a),r=n&&c();return L(h,n=>{lt(e,n(t,e)||{})}),le(a,n),r&&r(),s||le(i,0),e},o,e,r]},Nn=(t,e,n,r,o)=>{let i=!1;const a=pn(e,{}),[s,u,c,l,f]=xn(t),[d,h,p]=Cn(l,c,a,t=>{w({},t)}),[g,m,,y]=((t,e,n,r,o,i)=>{let a,s,u,c,l,f=ht,d=0;const h=["mouse","pen"],p=t=>h.includes(t.pointerType),[g,m]=it(),[y,v]=it(100),[w,_]=it(100),[b,E]=it(()=>d),[C,A]=In(t,o,r,Tn(e,o,r,t=>p(t)&&P())),{vt:S,Kt:O,bt:I}=o,{Ft:T,Pt:M,Nt:R,qt:D,Bt:x}=C,N=(t,e)=>{if(E(),t)T(Ke);else{const t=ot(T,Ke,!0);d>0&&!e?b(t):t()}},P=()=>{(u?a:c)||(N(!0),y(()=>{N(!1)}))},L=t=>{T(qe,t,!0),T(qe,t,!1)},k=t=>{p(t)&&(a=u,u&&N(!0))},B=[E,v,_,m,()=>f(),ae(S,"pointerover",k,{T:!0}),ae(S,"pointerenter",k),ae(S,"pointerleave",t=>{p(t)&&(a=!1,u&&N(!1))}),ae(S,"pointermove",t=>{p(t)&&s&&P()}),ae(O,"scroll",t=>{g(()=>{R(),P()}),i(t),x()})],F=be(an);return[()=>ot(H,j(B,A())),t=>{let{zt:e,At:o,Qt:i,Zt:a}=t;const{tn:h,nn:p,sn:g,en:m}=a||{},{Ct:y,ft:v}=i||{},{B:_}=n,{k:b,U:E}=vn(),{cn:C,j:A}=r,[S,P]=e("showNativeOverlaidScrollbars"),[k,B]=e("scrollbars.theme"),[j,U]=e("scrollbars.visibility"),[z,V]=e("scrollbars.autoHide"),[H,W]=e("scrollbars.autoHideSuspend"),[G]=e("scrollbars.autoHideDelay"),[Y,X]=e("scrollbars.dragScroll"),[Z,q]=e("scrollbars.clickScroll"),[K,J]=e("overflow"),tt=v&&!o,et=A.x||A.y,nt=h||p||m||y||o,rt=g||U||J,it=S&&b.x&&b.y,at=!E&&!F,st=it||at,ut=(t,e,n)=>{const r=t.includes($)&&(j===Q||"auto"===j&&e===$);return T(Ge,r,n),r};if(d=G,tt&&(H&&et?(L(!1),f(),w(()=>{f=ae(O,"scroll",ot(L,!0),{T:!0})}
2)):L(!0)),(P||at)&&T("os-theme-none",st),B&&(T(l),T(k,!0),l=k),W&&!H&&L(!0),V&&(s="move"===z,u="leave"===z,c="never"===z,N(c,!0)),X&&T($e,Y),q&&T(Je,!!Z),rt){const t=ut(K.x,C.x,!0),e=ut(K.y,C.y,!1);T(Ye,!(t&&e))}nt&&(R(),M(),x(),m&&D(),T(Ze,!A.x,!0),T(Ze,!A.y,!1),T(Ue,_&&!I))},{},C]})(t,e,p,c,l,o),v=t=>ct(t).some(e=>!!t[e]),w=(t,o)=>{if(n())return!1;const{dn:a,At:s,It:c,pn:l}=t,f=a||{},d=!!s||!i,g={zt:pn(e,f,d),dn:f,At:d};if(l)return m(g),!1;const y=o||h(lt({},g,{It:c})),w=u(lt({},g,{un:p,Qt:y}));m(lt({},g,{Qt:y,Zt:w}));const _=v(y),b=v(w),E=_||b||!dt(f)||d;return i=!0,E&&r(t,{Qt:y,Zt:w}),E};return[()=>{const{ln:t,gt:e,St:n}=l,r=fe(t),o=[d(),s(),g()],i=n();return le(e,r),i(),ot(H,o)},w,()=>({vn:p,gn:c}),{hn:l,bn:y},f]},Pn=new WeakMap,Ln=t=>Pn.get(t),kn=(t,e,n)=>{const{tt:r}=vn(),o=N(t),i=o?t:t.target,a=Ln(i);if(e&&!a){let a=!1;const s=[],u={},c=t=>{const e=ft(t),n=be("__osOptionsValidationPlugin");return n?n(e,!0):e},l=lt({},r(),c(e)),[f,d,h]=ye(),[p,g,m]=ye(n),y=(t,e)=>{m(t,e),h(t,e)},[v,w,_,b,E]=Nn(t,l,()=>a,(t,e)=>{let{dn:n,At:r}=t,{Qt:o,Zt:i}=e;const{_t:a,Ct:s,$t:u,xt:c,Ht:l,ft:f}=o,{tn:d,nn:h,sn:p,en:g}=i;y("updated",[O,{updateHints:{sizeChanged:!!a,directionChanged:!!s,heightIntrinsicChanged:!!u,overflowEdgeChanged:!!d,overflowAmountChanged:!!h,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!g,contentMutation:!!c,hostMutation:!!l,appear:!!f},changedOptions:n||{},force:!!r}])},t=>y("scroll",[O,t])),S=t=>{(t=>{Pn.delete(t)})(i),H(s),a=!0,y("destroyed",[O,t]),d(),g()},O={options(t,e){if(t){const n=e?r():{},o=hn(l,lt(n,c(t)));dt(o)||(lt(l,o),w({dn:o}))}return lt({},l)},on:p,off:(t,e)=>{t&&e&&g(t,e)},state(){const{vn:t,gn:e}=_(),{B:n}=t,{Vt:r,Rt:o,cn:i,j:s,rn:u,fn:c,Dt:l}=e;return lt({},{overflowEdge:r,overflowAmount:o,overflowStyle:i,hasOverflow:s,scrollCoordinates:{start:l.D,end:l.M},padding:u,paddingAbsolute:c,directionRTL:n,destroyed:a})},elements(){const{dt:t,vt:e,rn:n,L:r,ht:o,gt:i,Kt:a}=b.hn,{jt:s,Jt:u}=b.bn,c=t=>{const{Mt:e,Ut:n,Lt:r}=t;return{scrollbar:r,track:n,handle:e}},l=t=>{const{Xt:e,Yt:n}=t,r=c(e[0]);return lt({},r,{clone:()=>{const t=c(n());return w({pn:!0}),t}})};return lt({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:i,scrollEventElement:a,scrollbarHorizontal:l(s),scrollbarVertical:l(u)})},update:t=>w({At:t,It:!0}),destroy:ot(S,!1),plugin:t=>u[ct(t)[0]]};return j(s,[E]),((t,e)=>{Pn.set(t,e)})(i,O),_e(ve,kn,[O,f,u]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{k:o,U:i,K:a}=vn(),{nativeScrollbarsOverlaid:s,body:u}=a().cancel,c=null!=n?n:s,l=C(r)?u:r,f=(o.x||o.y)&&c,d=t&&(A(l)?!i:l);return!!f||!!d})(b.hn.bt,!o&&t.cancel)?(S(!0),O):(j(s,v()),y("initialized",[O]),O.update(),O)}return a};kn.plugin=t=>{const e=M(t),n=e?t:[t],r=n.map(t=>_e(t,kn)[0]);return(t=>{L(t,t=>L(t,(e,n)=>{ve[n]=t[n]}))})(n),e?r:r[0]},kn.valid=t=>{const e=t&&t.elements,n=T(e)&&e();return x(n)&&!!Ln(n.target)},kn.env=()=>{const{P:t,k:e,U:n,J:r,ot:o,st:i,K:a,Z:s,tt:u,nt:c}=vn();return lt({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:o,staticDefaultOptions:i,getDefaultInitialization:a,setDefaultInitialization:s,getDefaultOptions:u,setDefaultOptions:c})},kn.nonce=t=>{gn=t},kn.trustedTypePolicy=t=>{jt=t};const Bn=["element","options","events","defer","children"],jn=()=>{if(typeof window>"u"){const t=()=>{};return[t,t]}let t,e;const n=window,r="function"==typeof n.requestIdleCallback,o=n.requestAnimationFrame,i=n.cancelAnimationFrame,a=r?n.requestIdleCallback:o,s=r?n.cancelIdleCallback:i,u=()=>{s(t),i(e)};return[(n,i)=>{u(),t=a(r?()=>{u(),e=o(n)}:n,"object"==typeof i?i:{timeout:2233})},u]},Fn=Object(i.forwardRef)((t,e)=>{const{element:n="div",options:s,events:u,defer:c,children:l}=t,f=Object(o.a)(t,Bn),d=n,h=Object(i.useRef)(null),p=Object(i.useRef)(null),[g,m]=(t=>{const{options:e,events:n,defer:r}=t||{},[o,a]=Object(i.useMemo)(jn,[]),s=Object(i.useRef)(null),u=Object(i.useRef)(r),c=Object(i.useRef)(e),l=Object(i.useRef)(n);return Object(i.useEffect)(()=>{u.current=r},[r]),Object(i.useEffect)(()=>{const{current:t}=s;c.current=e,kn.valid(t)&&t.options(e||{}
2,!0)},[e]),Object(i.useEffect)(()=>{const{current:t}=s;l.current=n,kn.valid(t)&&t.on(n||{},!0)},[n]),Object(i.useEffect)(()=>()=>{var t;a(),null==(t=s.current)||t.destroy()},[]),Object(i.useMemo)(()=>[t=>{const e=s.current;if(kn.valid(e))return;const n=u.current,r=c.current||{},i=l.current||{},a=()=>s.current=kn(t,r,i);n?o(a,n):a()},()=>s.current],[])})({options:s,events:u,defer:c});return Object(i.useEffect)(()=>{const{current:t}=h,{current:e}=p;if(!t)return;return g("body"===n?{target:t,cancel:{body:null}}:{target:t,elements:{viewport:e,content:e}}),()=>{var t;return null==(t=m())?void 0:t.destroy()}},[g,n]),Object(i.useImperativeHandle)(e,()=>({osInstance:m,getElement:()=>h.current}),[]),a.a.createElement(d,Object(r.a)({"data-overlayscrollbars-initialize":"",ref:h},f),"body"===n?l:a.a.createElement("div",{"data-overlayscrollbars-contents":"",ref:p},l))})},1193:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Clear");e.default=i},1194:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.default.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),"ErrorOutline");e.default=i},1195:function(t,e,n){"use strict";function r(t){if(null==t)throw new TypeError("Cannot destructure undefined")}n.d(e,"a",(function(){return r}))},1196:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"FilterList");e.default=i},1197:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Add");e.default=i},1198:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"ToggleOn");e.default=i},1199:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"ToggleOff");e.default=i},1200:function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(1),o=n.n(r),i=n(735),a=n.n(i),s=n(857),u=n.n(s),c=n(727),l=n(1139),f=n(775),d=n(905),h=n(861),p=n(730),g=n(805),m=n(723),y=n(1636),v=["viewBox"],w=["viewBox"],_=["ticks"];function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?C(Object(n),!0).forEach((function(e){R(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function I(t,e,n){return e=T(e),function(t,e){if(e&&("object"===b(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(t,e){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function R(t,e,n){return(e=D(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}var x=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=I(this,e,[t])).state={fontSize:"",letterSpacing:""},n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(e,t),n=e,i=[{key:"renderTickItem",value:function(t,e,n){return o.a.isValidElement(t)?o.a.cloneElement(t,e):a()(t)?t(e):o.a.createElement(d.a,E({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=S(t,v),o=this.props,i=o.viewBox,a=S(o,w);return!Object(l.a)(n,i)||!Object(l.a)(r,a)||!Object(l.a)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,o,i,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,d=s.orientation,h=s.tickSize,g=s.mirror,m=s.tickMargin,y=g?-1:1,v=t.tickSize||h,w=Object(p.h)(t.tickCoord)?t.tickCoord:t.coordinate;switch(d){case"top":e=n=t.coordinate,a=(r=(o=c+ +!g*f)-y*v)-y*m,i=w;break;case"left":r=o=t.coordinate,i=(e=(n=u+ +!g*l)-y*v)-y*m,a=w;break;case"right":r=o=t.coordinate,i=(e=(n=u+ +g*l)+y*v)+y*m,a=w;break;default:e=n=t.coordinate,a=(r=(o=c+ +g*f)+y*v)+y*m,i=w}return{line:{x1:e,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.orientation,s=t.mirror,l=t.axisLine,f=A(A(A({},Object(m.a)(this.props,!1)),Object(m.a)(l,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!s||"bottom"===a&&s);f=A(A({},f),{},{x1:e,y1:n+d*i,x2:e+r,y2:n+d*i})}else{var h=+("left"===a&&!s||"right"===a&&s);f=A(A({},f),{},{x1:e+h*r,y1:n,x2:e+h*r,y2:n+i})}return o.a.createElement("line",E({},f,{className:Object(c.a)("recharts-cartesian-axis-line",u()(l,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,s=this.props,l=s.tickLine,d=s.stroke,h=s.tick,p=s.tickFormatter,v=s.unit,w=Object(y.a)(A(A({},this.props),{},{ticks:t}),n,r),_=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),C=Object(m.a)(this.props,!1),S=Object(m.a)(h,!1),O=A(A({}
2,C),{},{fill:"none"},Object(m.a)(l,!1)),I=w.map((function(t,n){var r=i.getTickLineCoord(t),s=r.line,m=r.tick,y=A(A(A(A({textAnchor:_,verticalAnchor:b},C),{},{stroke:"none",fill:d},S),m),{},{index:n,payload:t,visibleTicksCount:w.length,tickFormatter:p});return o.a.createElement(f.a,E({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Object(g.e)(i.props,t,n)),l&&o.a.createElement("line",E({},O,s,{className:Object(c.a)("recharts-cartesian-axis-tick-line",u()(l,"className"))})),h&&e.renderTickItem(h,y,"".concat(a()(p)?p(t.value,n):t.value).concat(v||"")))}));return o.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},I)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,s=e.ticksGenerator,u=e.className;if(e.hide)return null;var l=this.props,d=l.ticks,p=S(l,_),g=d;return a()(s)&&(g=d&&d.length>0?s(this.props):s(p)),r<=0||i<=0||!g||!g.length?null:o.a.createElement(f.a,{className:Object(c.a)("recharts-cartesian-axis",u),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),h.a.renderCallByParent(this.props))}}])&&O(n.prototype,r),i&&O(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);R(x,"displayName","CartesianAxis"),R(x,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},1201:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},1202:function(t,e,n){var r=n(1203)("keys"),o=n(1030);t.exports=function(t){return r[t]||(r[t]=o(t))}},1203:function(t,e,n){var r=n(787),o=n(835),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(1029)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},1204:function(t,e,n){var r=n(7729);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},1205:function(t,e,n){var r=n(898);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},1206:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},1207:function(t,e,n){var r=n(897),o=n(7736),i=n(1209),a=n(1202)("IE_PROTO"),s=function(){},u=function(){var t,e=n(1589)("iframe"),r=i.length;for(e.style.display="none",n(7739).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},1208:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},1209:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1210:function(t,e,n){var r=n(837).f,o=n(865),i=n(808)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},1211:function(t,e,n){e.f=n(808)},1212:function(t,e,n){var r=n(835),o=n(787),i=n(1029),a=n(1211),s=n(837).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},1213:function(t,e){e.f=Object.getOwnPropertySymbols},1214:function(t,e,n){var r=n(780),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},1215:function(t,e,n){var r=n(1214),o=n(1216);function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}
2i.prototype=r(o.prototype),i.prototype.constructor=i,t.exports=i},1216:function(t,e){t.exports=function(){}},1217:function(t,e){t.exports=function(t){return t.placeholder}},1218:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.default.createElement("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})),"ThumbUp");e.default=i},1219:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.default.createElement("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zm-7-5.5l3.5 3.5-3.5 3.5V11h-4V9h4V6.5zm-6 11L5.5 14 9 10.5V13h4v2H9v2.5z"})),"SwapHorizontalCircle");e.default=i},1220:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),"PersonAdd");e.default=i},1573:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"===typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function a(t,e,n){return t.concat(e).map((function(t){return i(t,n)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function u(t,e){try{return e in t}catch(n){return!1}}function c(t,e,n){var r={};return n.isMergeableObject(t)&&s(t).forEach((function(e){r[e]=i(t[e],n)})),s(e).forEach((function(o){(function(t,e){return u(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(u(t,o)&&n.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return l;var n=e.customMerge(t);return"function"===typeof n?n:l}(o,n)(t[o],e[o],n):r[o]=i(e[o],n))})),r}function l(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(e);return o===Array.isArray(t)?o?n.arrayMerge(t,e,n):c(t,e,n):i(e,n)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return l(t,n,e)}),{})};var f=l;t.exports=f},1574:function(t,e,n){var r,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let o of s(e))c.call(t,o)||o===n||i(t,o,{get:()=>e[o],enumerable:!(r=a(e,o))||r.enumerable});return t},f={};((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})(f,{defaultProps:()=>A,propTypes:()=>E}),t.exports=(r=f,l(i({},"__esModule",{value:!0}),r));var d=((t,e,n)=>(n=null!=t?o(u(t)):{},l(!e&&t&&t.__esModule?n:i(n,"default",{value:t,enumerable:!0}),t)))(n(4));const{string:h,bool:p,number:g,array:m,oneOfType:y,shape:v,object:w,func:_,node:b}=d.default,E={url:y([h,m,w]),playing:p,loop:p,controls:p,volume:g,muted:p,playbackRate:g,width:y([h,g]),height:y([h,g]),style:w,progressInterval:g,playsinline:p,pip:p,stopOnUnmount:p,light:y([p,h,w]),playIcon:b,previewTabIndex:g,previewAriaLabel:h,fallback:b,oEmbedUrl:h,wrapper:y([h,_,v({render:_.isRequired})]),config:v({soundcloud:v({options:w}),youtube:v({playerVars:w,embedOptions:w,onUnstarted:_}),facebook:v({appId:h,version:h,playerId:h,attributes:w}),dailymotion:v({params:w}),vimeo:v({playerOptions:w,title:h}),mux:v({attributes:w,version:h}),file:v({attributes:w,tracks:m,forceVideo:p,forceAudio:p,forceHLS:p,forceSafariHLS:p,forceDisableHls:p,forceDASH:p,forceFLV:p,hl
2sOptions:w,hlsVersion:h,dashVersion:h,flvVersion:h}),wistia:v({options:w,playerId:h,customControls:m}),mixcloud:v({options:w}),twitch:v({options:w,playerId:h}),vidyard:v({options:w})}),onReady:_,onStart:_,onPlay:_,onPause:_,onBuffer:_,onBufferEnd:_,onEnded:_,onError:_,onDuration:_,onSeek:_,onPlaybackRateChange:_,onPlaybackQualityChange:_,onProgress:_,onClickPreview:_,onEnablePIP:_,onDisablePIP:_},C=()=>{},A={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:C},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:C,onStart:C,onPlay:C,onPause:C,onBuffer:C,onBufferEnd:C,onEnded:C,onError:C,onDuration:C,onSeek:C,onPlaybackRateChange:C,onPlaybackQualityChange:C,onProgress:C,onClickPreview:C,onEnablePIP:C,onDisablePIP:C}},1575:function(t,e,n){var r;r=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/react-webcam.tsx")}({
vendor: 4,352 bytes, line 2
2"./src/react-webcam.tsx":function(t,e,n){"use strict";n.r(e);var r=n("react"),o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function s(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)}"undefined"!==typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(t){var e=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return e?new Promise((function(n,r){e.call(navigator,t,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}));var u=function(t){function e(e){var n=t.call(this,e)||this;return n.canvas=null,n.ctx=null,n.requestUserMediaId=0,n.unmounted=!1,n.state={hasUserMedia:!1},n}return o(e,t),e.prototype.componentDidMount=function(){var t=this.state,e=this.props;s()?t.hasUserMedia||this.requestUserMedia():e.onUserMediaError("getUserMedia not supported")},e.prototype.componentDidUpdate=function(t){var e=this.props;if(s()){var n=JSON.stringify(t.audioConstraints)!==JSON.stringify(e.audioConstraints),r=JSON.stringify(t.videoConstraints)!==JSON.stringify(e.videoConstraints),o=t.minScreenshotWidth!==e.minScreenshotWidth,i=t.minScreenshotHeight!==e.minScreenshotHeight;(r||o||i)&&(this.canvas=null,this.ctx=null),(n||r)&&(this.stopAndCleanup(),this.requestUserMedia())}else e.onUserMediaError("getUserMedia not supported")},e.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},e.stopMediaStream=function(t){t&&(t.getVideoTracks&&t.getAudioTracks?(t.getVideoTracks().map((function(e){t.removeTrack(e),e.stop()})),t.getAudioTracks().map((function(e){t.removeTrack(e),e.stop()}))):t.stop())},e.prototype.stopAndCleanup=function(){var t=this.state;t.hasUserMedia&&(e.stopMediaStream(this.stream),t.src&&window.URL.revokeObjectURL(t.src))},e.prototype.getScreenshot=function(t){var e=this.state,n=this.props;if(!e.hasUserMedia)return null;var r=this.getCanvas(t);return r&&r.toDataURL(n.screenshotFormat,n.screenshotQuality)},e.prototype.getCanvas=function(t){var e=this.state,n=this.props;if(!this.video)return null;if(!e.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var r=this.video.videoWidth,o=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var i=r/o;o=(r=n.minScreenshotWidth||this.video.clientWidth)/i,n.minScreenshotHeight&&o<n.minScreenshotHeight&&(r=(o=n.minScreenshotHeight)*i)}this.canvas=document.createElement("canvas"),this.canvas.width=(null===t||void 0===t?void 0:t.width)||r,this.canvas.height=(null===t||void 0===t?void 0:t.height)||o,this.ctx=this.canvas.getContext("2d")}var a=this.ctx,s=this.canvas;return a&&s&&(n.mirrored&&(a.translate(s.width,0),a.scale(-1,1)),a.imageSmoothingEnabled=n.imageSmoothing,a.drawImage(this.video,0,0,(null===t||void 0===t?void 0:t.width)||s.width,(null===t||void 0===t?void 0:t.height)||s.height),n.mirrored&&(a.scale(-1,1),a.translate(-s.width,0))),s},e.prototype.requestUserMedia=function(){var t=this,n=this.props,r=function(r,o){var i={video:"undefined"===typeof o||o};n.audio&&(i.audio="undefined"===typeof r||r),t.requestUserMediaId++;var a=t.requestUserMediaId;navigator.mediaDevices.getUserMedia(i).then((function(n){t.unmounted||a!==t.requestUserMediaId?e.stopMediaStream(n):t.handleUserMedia(null,n)})).catch((function(e){t.handleUserMedia(e)}))};if("mediaDevices"in navigator)r(n.audioConstraints,n.videoConstraints);else{var o=function(t){return{optional:[{sourceId:t}
2]}},i=function(t){var e=t.deviceId;return"string"===typeof e?e:Array.isArray(e)&&e.length>0?e[0]:"object"===typeof e&&e.ideal?e.ideal:null};MediaStreamTrack.getSources((function(t){var e=null,a=null;t.forEach((function(t){"audio"===t.kind?e=t.id:"video"===t.kind&&(a=t.id)}));var s=i(n.audioConstraints);s&&(e=s);var u=i(n.videoConstraints);u&&(a=u),r(o(e),o(a))}))}},e.prototype.handleUserMedia=function(t,e){var n=this.props;if(t||!e)return this.setState({hasUserMedia:!1}),void n.onUserMediaError(t);this.stream=e;try{this.video&&(this.video.srcObject=e),this.setState({hasUserMedia:!0})}catch(r){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(e)})}n.onUserMedia(e)},e.prototype.render=function(){var t=this,e=this.state,n=this.props,o=n.audio,s=(n.forceScreenshotSourceSize,n.onUserMedia,n.onUserMediaError,n.screenshotFormat,n.screenshotQuality,n.minScreenshotWidth,n.minScreenshotHeight,n.audioConstraints,n.videoConstraints,n.imageSmoothing,n.mirrored),u=n.style,c=void 0===u?{}:u,l=a(n,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style"]),f=s?i(i({},c),{transform:(c.transform||"")+" scaleX(-1)"}):c;return r.createElement("video",i({autoPlay:!0,src:e.src,muted:!o,playsInline:!0,ref:function(e){t.video=e},style:f},l))},e.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},e}(r.Component);e.default=u}
2,react:function(e,n){e.exports=t}}).default},t.exports=r(n(1))},1576:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},1577:function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,o=n;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},1578:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),"AccessTime");e.default=i},1579:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"})),"AssignmentTurnedIn");e.default=i},1580:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("circle",{cx:"12",cy:"12",r:"3.2"}),o.default.createElement("path",{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"CameraAlt");e.default=i},1581:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Comment");e.default=i},1582:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"})),"LocalShipping");e.default=i},1583:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Print");e.default=i},1584:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(1),o=n.n(r),i=n(727),a=n(958),s=n(1200),u=n(788);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"===c(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}
2function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function y(){return(y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function v(t){var e=t.xAxisId,n=Object(a.d)(),r=Object(a.c)(),c=Object(a.h)(e);return null==c?null:o.a.createElement(s.a,y({},c,{className:Object(i.a)("recharts-".concat(c.axisType," ").concat(c.axisType),c.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(t){return Object(u.s)(t,!0)}}))}var w=function(t){function e(){return l(this,e),d(this,e,arguments)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return o.a.createElement(v,this.props)}}])&&f(n.prototype,r),i&&f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(o.a.Component);g(w,"displayName","XAxis"),g(w,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0})},1585:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(1),o=n.n(r),i=n(727),a=n(958),s=n(1200),u=n(788);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"===c(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function y(){return(y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var v=function(t){var e=t.yAxisId,n=Object(a.d)(),r=Object(a.c)(),c=Object(a.i)(e);return null==c?null:o.a.createElement(s.a,y({},c,{className:Object(i.a)("recharts-".concat(c.axisType," ").concat(c.axisType),c.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(t){return Object(u.s)(t,!0)}}))},w=function(t){function e(){return l(this,e),d(this,e,arguments)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return o.a.createElement(v,this.props)}}])&&f(n.prototype,r),i&&f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(o.a.Component);g(w,"displayName","YAxis"),g(w,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1})},1586:function(t,e,n){"use strict";
2e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},1587:function(t,e,n){var r=n(865),o=n(948),i=n(1202)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},1588:function(t,e,n){t.exports=!n(838)&&!n(899)((function(){return 7!=Object.defineProperty(n(1589)("div"),"a",{get:function(){return 7}}).a}))},1589:function(t,e,n){var r=n(898),o=n(835).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},1590:function(t,e,n){t.exports={default:n(7730),__esModule:!0}},1591:function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(7732)),o=a(n(7744)),i="function"===typeof o.default&&"symbol"===typeof r.default?function(t){return typeof t}:function(t){return t&&"function"===typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof o.default&&"symbol"===i(r.default)?function(t){return"undefined"===typeof t?"undefined":i(t)}:function(t){return t&&"function"===typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":"undefined"===typeof t?"undefined":i(t)}},1592:function(t,e,n){"use strict";var r=n(7734)(!0);n(1593)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},1593:function(t,e,n){"use strict";var r=n(1029),o=n(836),i=n(1594),a=n(896),s=n(950),u=n(7735),c=n(1210),l=n(1587),f=n(808)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,g,m,y){u(n,e,p);var v,w,_,b=function(t){if(!d&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",C="values"==g,A=!1,S=t.prototype,O=S[f]||S["@@iterator"]||g&&S[g],I=O||b(g),T=g?C?b("entries"):I:void 0,M="Array"==e&&S.entries||O;if(M&&(_=l(M.call(new t)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[f]||a(_,f,h)),C&&O&&"values"!==O.name&&(A=!0,I=function(){return O.call(this)}),r&&!y||!d&&!A&&S[f]||a(S,f,I),s[e]=I,s[E]=h,g)if(v={values:C?I:b("values"),keys:m?I:b("keys"),entries:T},y)for(w in v)w in S||i(S,w,v[w]);else o(o.P+o.F*(d||A),e,v);return v}},1594:function(t,e,n){t.exports=n(896)},1595:function(t,e,n){var r=n(865),o=n(900),i=n(7737)(!1),a=n(1202)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},1596:function(t,e,n){var r=n(1208);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},1597:function(t,e,n){var r=n(1206),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},1598:function(t,e,n){var r=n(1595),o=n(1209).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},1599:function(t,e,n){var r=n(1032),o=n(949),i=n(900),a=n(1205),s=n(865),u=n(1588),c=Object.getOwnPropertyDescriptor;e.f=n(838)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},1600:function(t,e,n){var r=n(830),o=n(1601),i=o?function(t,e){return o.set(t,e),t}:r;t.exports=i},1601:function(t,e,n){var r=n(1424),o=r&&new r;t.exports=o},1602:function(t,e,n){var r=n(1603),o=n(1604),i=n(7764),a=n(1034),s=n(1605),u=n(1217),c=n(7773),l=n(1035),f=n(774);t.exports=function t(e,n,d,h,p,g,m,y,v,w){var _=128&n,b=1&n,E=2&n,C=24&n,A=512&n,S=E?void 0:a(e);return function O(){for(var I=arguments.length,T=Array(I),M=I;M--;)T[M]=arguments[M];if(C)var R=u(O),D=i(T,R);if(h&&(T=r(T,h,p,C)),g&&(T=o(T,g,m,C)),I-=D,C&&I<w){var x=l(T,R);return s(e,n,t,O.placeholder,d,T,x,y,v,w-I)}var N=b?d:this,P=E?N[e]:e;return I=T.length,y?T=c(T,y):A&&I>1&&T.reverse(),_&&v<I&&(T.length=v),this&&this!==f&&this instanceof O&&(P=S||a(P)),P.apply(N,T)}}},1603:function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=r.length,u=-1,c=e.length,l=n(a-s,0),f=Array(c+l),d=!o;++u<c;)f[u]=e[u];for(;++i<s;)(d||i<a)&&(f[r[i]]=t[i]);for(;l--;)f[u++]=t[i++];return f}},1604:function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=-1,u=r.length,c=-1,l=e.length,f=n(a-u,0),d=Array(f+l),h=!o;++i<f;)d[i]=t[i];for(var p=i;++c<l;)d[p+c]=e[c];for(;++s<u;)(h||i<a)&&(d[p+r[s]]=t[i++]);return d}},1605:function(t,e,n){var r=n(7765),o=n(1609),i=n(1610);t.exports=function(t,e,n,a,s,u,c,l,f,d){var h=8&e;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var p=[t,e,s,h?u:void 0,h?c:void 0,h?void 0:u,h?void 0:c,l,f,d],g=n.apply(void 0,p);return r(t)&&o(g,p),g.placeholder=a,i(g,t,e)}},1606:function(t,e,n){var r=n(1601),o=n(1519),i=r?function(t){return r.get(t)}:o;t.exports=i},1607:function(t,e,n){var r=n(1214),o=n(1216);function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}
2i.prototype=r(o.prototype),i.prototype.constructor=i,t.exports=i},1608:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},1609:function(t,e,n){var r=n(1600),o=n(1432)(r);t.exports=o},1610:function(t,e,n){var r=n(7770),o=n(7771),i=n(1430),a=n(7772);t.exports=function(t,e,n){var s=e+"";return i(t,o(s,a(r(s),n)))}},1611:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},1612:function(t,e){var n=!("undefined"===typeof window||!window.document||!window.document.createElement);t.exports=n},1613:function(t,e,n){"use strict";n.r(e),n.d(e,"mapProps",(function(){return g})),n.d(e,"withProps",(function(){return b})),n.d(e,"withPropsOnChange",(function(){return C})),n.d(e,"withHandlers",(function(){return S})),n.d(e,"defaultProps",(function(){return O})),n.d(e,"renameProp",(function(){return T})),n.d(e,"renameProps",(function(){return R})),n.d(e,"flattenProp",(function(){return D})),n.d(e,"withState",(function(){return x})),n.d(e,"withStateHandlers",(function(){return N})),n.d(e,"withReducer",(function(){return P})),n.d(e,"branch",(function(){return k})),n.d(e,"renderComponent",(function(){return B})),n.d(e,"renderNothing",(function(){return F})),n.d(e,"shouldUpdate",(function(){return U})),n.d(e,"pure",(function(){return z})),n.d(e,"onlyUpdateForKeys",(function(){return V})),n.d(e,"onlyUpdateForPropTypes",(function(){return H})),n.d(e,"withContext",(function(){return W})),n.d(e,"getContext",(function(){return G})),n.d(e,"lifecycle",(function(){return Y})),n.d(e,"toClass",(function(){return Z})),n.d(e,"setStatic",(function(){return f})),n.d(e,"setPropTypes",(function(){return q})),n.d(e,"setDisplayName",(function(){return d})),n.d(e,"compose",(function(){return K})),n.d(e,"getDisplayName",(function(){return h})),n.d(e,"wrapDisplayName",(function(){return p})),n.d(e,"isClassComponent",(function(){return X})),n.d(e,"createSink",(function(){return Q})),n.d(e,"componentFromProp",(function(){return J})),n.d(e,"nest",(function(){return $})),n.d(e,"hoistStatics",(function(){return tt})),n.d(e,"componentFromStream",(function(){return it})),n.d(e,"componentFromStreamWithConfig",(function(){return ot})),n.d(e,"mapPropsStream",(function(){return ut})),n.d(e,"mapPropsStreamWithConfig",(function(){return st})),n.d(e,"createEventHandler",(function(){return lt})),n.d(e,"createEventHandlerWithConfig",(function(){return ct})),n.d(e,"setObservableConfig",(function(){return nt}));var r=n(1),o=n.n(r),i=n(360),a=n.n(i);n.d(e,"shallowEqual",(function(){return a.a}));var s=n(7776),u=n.n(s),c=n(7777),l=n(364),f=function(t,e){return function(n){return n[t]=e,n}},d=function(t){return f("displayName",t)},h=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":void 0},p=function(t,e){return e+"("+h(t)+")"},g=function(t){return function(e){var n=Object(r.createFactory)(e);return function(e){return n(t(e))}}},m=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},w=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},_=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},b=function(t){return g((function(e){return y({},e,"function"===typeof t?t(e):t)}))},E=function(t,e){for(var n={},r=0;r<e.length;r++){var o=e[r];t.hasOwnProperty(o)&&(n[o]=t[o])}return n},C=function(t,e){return function(n){var o=Object(r.createFactory)(n),i="function"===typeof t?t:function(e,n){return!a()(E(e,t),E(n,t))};return function(t){function n(){var r,o;m(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=o=_(this,t.call.apply(t,[this].concat(a))),o.computedProps=e(o.props),_(o,r)}return v(n,t),n.prototype.componentWillReceiveProps=function(t){i(this.props,t)&&(this.computedProps=e(t))},n.prototype.render=function(){return o(y({},this.props,this.computedProps))},n}(r.Component)}},A=function(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r],r));return n},S=function(t){return function(e){var n=Object(r.createFactory)(e),o=function(t){function e(){var n,r;m(this,e);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=_(this,t.call.apply(t,[this].concat(a))),i.call(r),_(r,n)}return v(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return n(y({},this.props,this.handlers))},e}(r.Component),i=function(){var e=this;this.cachedHandlers={},this.handlers=A("function"===typeof t?t(this.props):t,(function(t,n){return function(){var r=e.cac
2hedHandlers[n];if(r)return r.apply(void 0,arguments);var o=t(e.props);return e.cachedHandlers[n]=o,o.apply(void 0,arguments)}}))};return o}},O=function(t){return function(e){var n=Object(r.createFactory)(e),o=function(t){return n(t)};return o.defaultProps=t,o}},I=function(t,e){for(var n=w(t,[]),r=0;r<e.length;r++){var o=e[r];n.hasOwnProperty(o)&&delete n[o]}return n},T=function(t,e){return g((function(n){var r;return y({},I(n,[t]),((r={})[e]=n[t],r))}))},M=Object.keys,R=function(t){return g((function(e){return y({},I(e,M(t)),(n=E(e,M(t)),r=function(e,n){return t[n]},M(n).reduce((function(t,e){var o=n[e];return t[r(o,e)]=o,t}),{})));var n,r}))},D=function(t){return function(e){var n=Object(r.createFactory)(e);return function(e){return n(y({},e,e[t]))}}},x=function(t,e,n){return function(o){var i=Object(r.createFactory)(o);return function(r){function o(){var t,e;m(this,o);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e=_(this,r.call.apply(r,[this].concat(a))),e.state={stateValue:"function"===typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState((function(e){var n=e.stateValue;return{stateValue:"function"===typeof t?t(n):t}}),n)},_(e,t)}return v(o,r),o.prototype.render=function(){var n;return i(y({},this.props,((n={})[t]=this.state.stateValue,n[e]=this.updateStateValue,n)))},o}(r.Component)}},N=function(t,e){return function(n){var o=Object(r.createFactory)(n),i=function(t){function e(){var n,r;m(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=_(this,t.call.apply(t,[this].concat(i))),s.call(r),_(r,n)}return v(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=t!==this.props,r=!a()(e,this.state);return n||r},e.prototype.render=function(){return o(y({},this.props,this.state,this.stateUpdaters))},e}(r.Component),s=function(){var n=this;this.state="function"===typeof t?t(this.props):t,this.stateUpdaters=A(e,(function(t){return function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e&&"function"===typeof e.persist&&e.persist(),n.setState((function(n,r){return t(n,r).apply(void 0,[e].concat(o))}))}}))};return i}},P=function(t,e,n,o){return function(i){var a=Object(r.createFactory)(i);return function(r){function i(){var t,e;m(this,i);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return t=e=_(this,r.call.apply(r,[this].concat(a))),e.state={stateValue:e.initializeStateValue()},e.dispatch=function(t){return e.setState((function(e){var r=e.stateValue;return{stateValue:n(r,t)}}))},_(e,t)}return v(i,r),i.prototype.initializeStateValue=function(){return void 0!==o?"function"===typeof o?o(this.props):o:n(void 0,{type:"@@recompose/INIT"})},i.prototype.render=function(){var n;return a(y({},this.props,((n={})[t]=this.state.stateValue,n[e]=this.dispatch,n)))},i}(r.Component)}},L=function(t){return t},k=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;return function(o){var i=void 0,a=void 0;return function(s){return t(s)?(i=i||Object(r.createFactory)(e(o)))(s):(a=a||Object(r.createFactory)(n(o)))(s)}}},B=function(t){return function(e){var n=Object(r.createFactory)(t);return function(t){return n(t)}}},j=function(t){function e(){return m(this,e),_(this,t.apply(this,arguments))}return v(e,t),e.prototype.render=function(){return null},e}(r.Component),F=function(t){return j},U=function(t){return function(e){var n=Object(r.createFactory)(e);return function(e){function r(){return m(this,r),_(this,e.apply(this,arguments))}return v(r,e),r.prototype.shouldComponentUpdate=function(e){return t(this.props,e)},r.prototype.render=function(){return n(this.props)},r}(r.Component)}},z=function(t){return U((function(t,e){return!a()(t,e)}))(t)},V=function(t){return U((function(e,n){return!a()(E(n,t),E(e,t))}))},H=function(t){var e=t.propTypes;var n=Object.keys(e||{});return V(n)(t)},W=function(t,e){return function(n){var o=Object(r.createFactory)(n),i=function(t){function n(){var r,o;m(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=o=_(this,t.call.apply(t,[this].concat(a))),o.getChildContext=function(){return e(o.props)},_(o,r)}return v(n,t),n.prototype.render=function(){return o(this.props)},n}(r.Component);return i.childContextTypes=t,i}},G=function(t){return function(e){var n=Object(r.createFactory)(e),o=function(t,e){return n(y({},t,e))};return o.contextTypes=t,o}},Y=function(t){return function(e){var n=Object(r.createFactory)(e);var o=function(t){function e(){return m(this,e),_(this,t.apply(this,arguments))}return v(e,t),e.prototype.render=function(){return n(y({},this.props,this.state))},e}(r.Component);return Object.keys(t).forEach((function(e){return o.prototype[e]=t[e]})),o}},X=function(t){return Boolean(t&&t.prototype&&"function"===typeof t.prototype.render)},Z=function(t){if(X(t))return t;var e=function(e){function n(){return m(this,n),_(this,e.apply(this,arguments))}return v(n,e),n.prototype.render=function(){return"string"===typeof t?o.a.createElement(t,this.props):t(this.props,this.context)},n}(r.Component);return e.displayName=h(t),e.propTypes=t.propTypes,e.contextTypes=t.contextTypes,e.defaultProps=t.defaultProps,e},q=function(t){return f("propTypes",t)};function K(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}var Q=function(t){return function(e){function n(){return m(this,n),_(this,e.apply(this,arguments))}return v(n,e),n.prototype.componentWillMount=function(){t(this.props)},n.prototype.componentWillReceiveProps=function(e){t(e)},n.prototype.render=function(){return null},n}(r.Component)},J=function(t){var e=function(e){return Object(r.createElement)(e[t],I(e,[t]))};
2return e.displayName="componentFromProp("+t+")",e},$=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e.map(r.createFactory),i=function(t){var e=w(t,[]),n=t.children;return o.reduceRight((function(t,n){return n(e,t)}),n)};return i},tt=function(t){return function(e){var n=t(e);return u()(n,e),n}},et={fromESObservable:null,toESObservable:null},nt=function(t){et=t},rt={fromESObservable:function(t){return"function"===typeof et.fromESObservable?et.fromESObservable(t):t},toESObservable:function(t){return"function"===typeof et.toESObservable?et.toESObservable(t):t}},ot=function(t){return function(e){return function(n){function r(){var o,i,a;m(this,r);for(var s=arguments.length,u=Array(s),f=0;f<s;f++)u[f]=arguments[f];return i=a=_(this,n.call.apply(n,[this].concat(u))),a.state={vdom:null},a.propsEmitter=Object(c.createChangeEmitter)(),a.props$=t.fromESObservable(((o={subscribe:function(t){return{unsubscribe:a.propsEmitter.listen((function(e){e?t.next(e):t.complete()}))}}})[l.default]=function(){return this},o)),a.vdom$=t.toESObservable(e(a.props$)),_(a,i)}return v(r,n),r.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(e){t.setState({vdom:e})}}),this.propsEmitter.emit(this.props)},r.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},r.prototype.shouldComponentUpdate=function(t,e){return e.vdom!==this.state.vdom},r.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},r.prototype.render=function(){return this.state.vdom},r}(r.Component)}},it=function(t){return ot(rt)(t)},at=function(t){return t},st=function(t){var e=ot({fromESObservable:at,toESObservable:at});return function(n){return function(o){var i=Object(r.createFactory)(o),a=t.fromESObservable,s=t.toESObservable;return e((function(t){var e;return(e={subscribe:function(e){var r=s(n(a(t))).subscribe({next:function(t){return e.next(i(t))}});return{unsubscribe:function(){return r.unsubscribe()}}}})[l.default]=function(){return this},e}))}}},ut=function(t){return st(rt)(t)},ct=function(t){return function(){var e,n=Object(c.createChangeEmitter)(),r=t.fromESObservable(((e={subscribe:function(t){return{unsubscribe:n.listen((function(e){return t.next(e)}))}}})[l.default]=function(){return this},e));return{handler:n.emit,stream:r}}},lt=ct(rt)},1614:function(t,e,n){"use strict";t.exports=function(){}},1615:function(t,e,n){var r=n(1167),o=n(1004),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},1636:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(735),o=n.n(r),i=n(730),a=n(1169),s=n(862),u=n(887);function c(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],o=0;o<t.length;o+=e){if(void 0!==n&&!0!==n(t[o]))return;r.push(t[o])}return r}function l(t,e,n,r,o){if(t*e<t*r||t*e>t*o)return!1;var i=n();return t*(e-t*i/2-r)>=0&&t*(e+t*i/2-o)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n){var r=t.tick,f=t.ticks,d=t.viewBox,p=t.minTickGap,g=t.orientation,m=t.interval,y=t.tickFormatter,v=t.unit,w=t.angle;if(!f||!f.length||!r)return[];if(Object(i.h)(m)||s.a.isSsr)return function(t,e){return c(t,e+1)}(f,"number"===typeof m&&Object(i.h)(m)?m:0);var _="top"===g||"bottom"===g?"width":"height",b=v&&"width"===_?Object(a.b)(v,{fontSize:e,letterSpacing:n}):{width:0,height:0},E=function(t,r){var i=o()(y)?y(t.value,r):t.value;return"width"===_?function(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return Object(u.c)(r,n)}(Object(a.b)(i,{fontSize:e,letterSpacing:n}),b,w):Object(a.b)(i,{fontSize:e,letterSpacing:n})[_]},C=f.length>=2?Object(i.j)(f[1].coordinate-f[0].coordinate):1,A=function(t,e,n){var r="width"===n,o=t.x,i=t.y,a=t.width,s=t.height;return 1===e?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(d,C,_);return"equidistantPreserveStart"===m?function(t,e,n,r,o){for(var i,a=(r||[]).slice(),s=e.start,u=e.end,f=0,d=1,h=s,p=function(){var e=null===r||void 0===r?void 0:r[f];if(void 0===e)return{v:c(r,d)};var i,a=f,p=function(){return void 0===i&&(i=n(e,a)),i},g=e.coordinate,m=0===f||l(t,g,p,h,u);m||(f=0,h=s,d+=1),m&&(h=g+t*(p()/2+o),f+=d)};d<=a.length;)if(i=p())return i.v;return[]}(C,A,E,f,p):("preserveStart"===m||"preserveStartEnd"===m?function(t,e,n,r,o,i){var a=(r||[]).slice(),s=a.length,u=e.start,c=e.end;if(i){var f=r[s-1],d=n(f,s-1),p=t*(f.coordinate+t*d/2-c);a[s-1]=f=h(h({},f),{},{tickCoord:p>0?f.coordinate-p*t:f.coordinate}),l(t,f.tickCoord,(function(){return d}),u,c)&&(c=f.tickCoord-t*(d/2+o),a[s-1]=h(h({},f),{},{isShow:!0}))}for(var g=i?s-1:s,m=function(e){var r,i=a[e],s=function(){return void 0===r&&(r=n(i,e)),r};if(0===e){var f=t*(i.coordinate-t*s()/2-u);a[e]=i=h(h({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=h(h({},i),{},{tickCoord:i.coordinate});l(t,i.tickCoord,s,u,c)&&(u=i.tickCoord+t*(s()/2+o),a[e]=h(h({},i),{},{isShow:!0}))},y=0;y<g;y++)m(y);return a}(C,A,E,f,p,"preserveStartEnd"===m):function(t,e,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=e.start,u=e.end,c=function(e){var r,c=i[e],f=function(){return void 0===r&&(r=n(c,e)),r};if(e===a-1){var d=t*(c.coordinate+t*f()/2-u);i[e]=c=h(h({},c),{},{tickCoord:d>0?c.coordinate-d*t:c.coordinate})}else i[e]=c=h(h({},c),{},{tickCoord:c.coordinate});l(t,c.tickCoord,f,s,u)&&(u=c.tickCoord-t*(f()/2+o),i[e]=h(h({},c),{},{isShow:!0}))},f=a-1;f>=0;f--)c(f);return i}(C,A,E,f,p)).filter((function(t){return t.isShow}))}},750:function(t,e,n){t.exports={default:n(7726),__esModule:!0}},751:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},752:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(1590),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},753:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(1591),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":(0,i.default)(e))&&"function"!==typeof e?t:e}},754:function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(7754)),o=a(n(7758)),i=a(n(1591));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":(0,i.default)(e)));t.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},757:function(t,e,n){var r,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let o of s(e))c.call(t,o)||o===n||i(t,o,{get:()=>e[o],enumerable:!(r=a(e,o))||r.enumerable});return t},f=(t,e,n)=>(n=null!=t?o(u(t)):{},l(!e&&t&&t.__esModule?n:i(n,"default",{value:t,enumerable:!0}),t)),d={};((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})(d,{callPlayer:()=>D,getConfig:()=>M,getSDK:()=>T,isBlobUrl:()=>N,isMediaStream:()=>x,lazy:()=>m,omit:()=>R,parseEndTime:()=>C,parseStartTime:()=>E,queryString:()=>S,randomString:()=>A,supportsWebKitPresentationMode:()=>P}),t.exports=(r=d,l(i({},"__esModule",{value:!0}),r));var h=f(n(1)),p=f(n(7713)),g=f(n(1573));const m=t=>h.default.lazy(async()=>{const e=await t();return"function"===typeof e.default?e:e.default}),y=/[?&#](?:start|t)=([0-9hms]+)/,v=/[?&#]end=([0-9hms]+)/,w=/(\d+)(h|m|s)/g,_=/^\d+$/;function b(t,e){if(t instanceof Array)return;const n=t.match(e);if(n){const t=n[1];if(t.match(w))return function(t){let e=0,n=w.exec(t);for(;null!==n;){const[,r,o]=n;"h"===o&&(e+=60*parseInt(r,10)*60),"m"===o&&(e+=60*parseInt(r,10)),"s"===o&&(e+=parseInt(r,10)),n=w.exec(t)}return e}(t);if(_.test(t))return parseInt(t)}}function E(t){return b(t,y)}function C(t){return b(t,v)}function A(){return Math.random().toString(36).substr(2,5)}function S(t){return Object.keys(t).map(e=>"".concat(e,"=").concat(t[e])).join("&")}function O(t){return window[t]?window[t]:window.exports&&window.exports[t]?window.exports[t]:window.module&&window.module.exports&&window.module.exports[t]?window.module.exports[t]:null}const I={},T=function(t){0;return t}((function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>!0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:p.default;const i=O(e);return i&&r(i)?Promise.resolve(i):new Promise((r,i)=>{if(I[t])return void I[t].push({resolve:r,reject:i});I[t]=[{resolve:r,reject:i}];const a=e=>{I[t].forEach(t=>t.resolve(e))};if(n){const t=window[n];window[n]=function(){t&&t(),a(O(e))}}o(t,r=>{r?(I[t].forEach(t=>t.reject(r)),I[t]=null):n||a(O(e))})})}));function M(t,e){return(0,g.default)(e.config,t.config)}function R(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=[].concat(...n),i={},a=Object.keys(t);for(const s of a)-1===o.indexOf(s)&&(i[s]=t[s]);return i}function D(t){if(!this.player||!this.player[t]){let e="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(t,"%c \u2013 ");return this.player?this.player[t]||(e+="The method was not available"):e+="The player was not available",console.warn(e,"font-weight: bold",""),null}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.player[t](...n)}function x(t){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&t instanceof window.MediaStream}function N(t){return/^blob:/.test(t)}function P(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video");const e=!1===/iPhone|iPod/.test(navigator.userAgent);return t.webkitSupportsPresentationMode&&"function"===typeof t.webkitSetPresentationMode&&e}},758:function(t,e,n){"use strict";
2e.__esModule=!0;var r,o=n(1590),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},759:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.MAP="__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.MARKER="__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.MARKER_WITH_LABEL="__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.RECTANGLE="__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.POLYLINE="__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.POLYGON="__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.CIRCLE="__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.KML_LAYER="__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.DIRECTIONS_RENDERER="__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.HEATMAP_LAYER="__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.FUSION_TABLES_LAYER="__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.ANCHOR="__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.INFO_WINDOW="__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.OVERLAY_VIEW="__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.GROUND_LAYER="__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.DRAWING_MANAGER="__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.SEARCH_BOX="__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.MARKER_CLUSTERER="__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.INFO_BOX="__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.TRAFFIC_LAYER="__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.STREET_VIEW_PANORAMA="__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",e.BICYCLING_LAYER="__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"},767:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(1033)),o=c(n(735)),i=c(n(7791)),a=c(n(7794)),s=c(n(7796)),u=c(n(7797));function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){if((0,u.default)(t.prevProps,n)){var r=n.match(/^default(\S+)/);if(r){var o=(0,s.default)(r[1]);(0,u.default)(t.nextProps,o)||(t.nextProps[o]=t.prevProps[n])}else t.nextProps[n]=t.prevProps[n]}return t}function f(t,e,n,r){(0,a.default)(t,(function(t,o){var i=n[o];i!==e[o]&&t(r,i)}))}function d(t,e,n){var s=(0,i.default)(n,(function(n,r,i){return(0,o.default)(t.props[i])&&n.push(google.maps.event.addListener(e,r,t.props[i])),n}),[]);t.unregisterAllEvents=(0,r.default)(a.default,null,s,h)}function h(t){google.maps.event.removeListener(t)}e.construct=function(t,e,n,r){var o=(0,i.default)(t,l,{nextProps:{},prevProps:n}).nextProps;f(e,{},o,r)},e.componentDidMount=function(t,e,n){d(t,e,n)},e.componentDidUpdate=function(t,e,n,r,o){t.unregisterAllEvents(),f(r,o,t.props,e),d(t,e,n)},e.componentWillUnmount=function(t){t.unregisterAllEvents()}},7708:function(t,e,n){(function(t){(function(e){"use strict";function n(t){return null===t||void 0===t}var r,o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.defineProperty(r,"name",{value:n.name,enumerable:!1}),function(t,e){var n=Object.setPrototypeOf;n?n(t,e):t.__proto__=e}(r,n.prototype),function(t,e){void 0===e&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}(r),r}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Error);class a extends i{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;super(t),this.message=t}getKind(){return this.constructor.kind}}a.kind="Exception";class s extends a{}s.kind="ArgumentException";class u extends a{}u.kind="IllegalArgumentException";class c{constructor(t){if(this.binarizer=t,null===t)throw new u("Binarizer must be non-null.")}getWidth(){return this.binarizer.getWidth()}getHeight(){return this.binarizer.getHeight()}getBlackRow(t,e){return this.binarizer.getBlackRow(t,e)}getBlackMatrix(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix}isCropSupported(){return this.binarizer.getLuminanceSource().isCropSupported()}crop(t,e,n,r){const o=this.binarizer.getLuminanceSource().crop(t,e,n,r);return new c(this.binarizer.createBinarizer(o))}isRotateSupported(){return this.binarizer.getLuminanceSource().isRotateSupported()}rotateCounterClockwise(){const t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new c(this.binarizer.createBinarizer(t))}rotateCounterClockwise45(){const t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new c(this.binarizer.createBinarizer(t))}toString(){try{return this.getBlackMatrix().toString()}catch(t){return""}}}class l extends a{static getChecksumInstance(){return new l}}l.kind="ChecksumException";class f{constructor(t){this.source=t}getLuminanceSource(){return this.source}getWidth(){return this.source.getWidth()}getHeight(){return this.source.getHeight()}}class d{static arraycopy(t,e,n,r,o){for(;o--;)n[r++]=t[e++]}static currentTimeMillis(){return Date.now()}}class h extends a{}h.kind="IndexOutOfBoundsException";class p extends h{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;super(e),this.index=t,this.message=e}}p.kind="ArrayIndexOutOfBoundsException";class g{static fill(t,e){for(let n=0,r=t.length;n<r;n++)t[n]=e}static fillWithin(t,e,n,r){g.rangeCheck(t.length,e,n);for(let o=e;o<n;o++)t[o]=r}static rangeCheck(t,e,n){if(e>n)throw new u("fromIndex("+e+") > toIndex("+n+")");if(e<0)throw new p(e);if(n>t)throw new p(n)}static asList(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}static create(t,e,n){return Array.from({length:t}).map(t=>Array.from({length:e}).fill(n))}static createInt32Array(t,e,n){return Array.from({length:t}).map(t=>Int32Array.from({length:e}).fill(n))}static equals(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}static hashCode(t){if(null===t)return 0;let e=1;for(const n of t)e=31*e+n;return e}static fillUint8Array(t,e){for(let n=0;n!==t.length;n++)t[n]=e}static copyOf(t,e){return t.slice(0,e)}static copyOfUint8Array(t,e){if(t.length<=e){const n=new Uint8Array(e);return n.set(t),n}return t.slice(0,e)}static copyOfRange(t,e,n){const r=n-e,o=new Int32Array(r);return d.arraycopy(t,e,o,0,r),o}static binarySearch(t,e,n){void 0===n&&(n=g.numberComparator);let r=0,o=t.length-1;for(;r<=o;){const i=o+r>>1,a=n(e,t[i]);if(a>0)r=i+1;else{if(!(a<0))return i;o=i-1}}return-r-1}static numberComparator(t,e){return t-e}}
vendor: 4,560 bytes, line 2
2class m{static numberOfTrailingZeros(t){let e;if(0===t)return 32;let n=31;return e=t<<16,0!==e&&(n-=16,t=e),e=t<<8,0!==e&&(n-=8,t=e),e=t<<4,0!==e&&(n-=4,t=e),e=t<<2,0!==e&&(n-=2,t=e),n-(t<<1>>>31)}static numberOfLeadingZeros(t){if(0===t)return 32;let e=1;return t>>>16===0&&(e+=16,t<<=16),t>>>24===0&&(e+=8,t<<=8),t>>>28===0&&(e+=4,t<<=4),t>>>30===0&&(e+=2,t<<=2),e-=t>>>31,e}static toHexString(t){return t.toString(16)}static toBinaryString(t){return String(parseInt(String(t),2))}static bitCount(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,t+=t>>>8,63&(t+=t>>>16)}static truncDivision(t,e){return Math.trunc(t/e)}static parseInt(t){return parseInt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}}m.MIN_VALUE_32_BITS=-2147483648,m.MAX_VALUE=Number.MAX_SAFE_INTEGER;class y{constructor(t,e){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=void 0===e||null===e?y.makeArray(t):e)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(t){if(t>32*this.bits.length){const e=y.makeArray(t);d.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e}}get(t){return 0!==(this.bits[Math.floor(t/32)]&1<<(31&t))}set(t){this.bits[Math.floor(t/32)]|=1<<(31&t)}flip(t){this.bits[Math.floor(t/32)]^=1<<(31&t)}getNextSet(t){const e=this.size;if(t>=e)return e;const n=this.bits;let r=Math.floor(t/32),o=n[r];o&=~((1<<(31&t))-1);const i=n.length;for(;0===o;){if(++r===i)return e;o=n[r]}const a=32*r+m.numberOfTrailingZeros(o);return a>e?e:a}getNextUnset(t){const e=this.size;if(t>=e)return e;const n=this.bits;let r=Math.floor(t/32),o=~n[r];o&=~((1<<(31&t))-1);const i=n.length;for(;0===o;){if(++r===i)return e;o=~n[r]}const a=32*r+m.numberOfTrailingZeros(o);return a>e?e:a}setBulk(t,e){this.bits[Math.floor(t/32)]=e}setRange(t,e){if(e<t||t<0||e>this.size)throw new u;if(e===t)return;e--;const n=Math.floor(t/32),r=Math.floor(e/32),o=this.bits;for(let i=n;i<=r;i++){const a=(2<<(i<r?31:31&e))-(1<<(i>n?0:31&t));o[i]|=a}}clear(){const t=this.bits.length,e=this.bits;for(let n=0;n<t;n++)e[n]=0}isRange(t,e,n){if(e<t||t<0||e>this.size)throw new u;if(e===t)return!0;e--;const r=Math.floor(t/32),o=Math.floor(e/32),i=this.bits;for(let a=r;a<=o;a++){const s=(2<<(a<o?31:31&e))-(1<<(a>r?0:31&t))&4294967295;if((i[a]&s)!==(n?s:0))return!1}return!0}appendBit(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++}appendBits(t,e){if(e<0||e>32)throw new u("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(let n=e;n>0;n--)this.appendBit(1===(t>>n-1&1))}appendBitArray(t){const e=t.size;this.ensureCapacity(this.size+e);for(let n=0;n<e;n++)this.appendBit(t.get(n))}xor(t){if(this.size!==t.size)throw new u("Sizes don't match");const e=this.bits;for(let n=0,r=e.length;n<r;n++)e[n]^=t.bits[n]}toBytes(t,e,n,r){for(let o=0;o<r;o++){let r=0;for(let e=0;e<8;e++)this.get(t)&&(r|=1<<7-e),t++;e[n+o]=r}}getBitArray(){return this.bits}reverse(){const t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),n=e+1,r=this.bits;for(let o=0;o<n;o++){let n=r[o];n=n>>1&1431655765|(1431655765&n)<<1,n=n>>2&858993459|(858993459&n)<<2,n=n>>4&252645135|(252645135&n)<<4,n=n>>8&16711935|(16711935&n)<<8,n=n>>16&65535|(65535&n)<<16,t[e-o]=n}if(this.size!==32*n){const e=32*n-this.size;let r=t[0]>>>e;for(let o=1;o<n;o++){const n=t[o];r|=n<<32-e,t[o-1]=r,r=n>>>e}t[n-1]=r}this.bits=t}static makeArray(t){return new Int32Array(Math.floor((t+31)/32))}equals(t){if(!(t instanceof y))return!1;const e=t;return this.size===e.size&&g.equals(this.bits,e.bits)}hashCode(){return 31*this.size+g.hashCode(this.bits)}toString(){let t="";for(let e=0,n=this.size;e<n;e++)0===(7&e)&&(t+=" "),t+=this.get(e)?"X":".";return t}clone(){return new y(this.size,this.bits.slice())}}!function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"}(r||(r={}));var v,w=r;class _ extends a{static getFormatInstance(){return new _}}_.kind="FormatException",function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4
2=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"}(v||(v={}));class b{constructor(t,e,n){this.valueIdentifier=t,this.name=n,this.values="number"===typeof e?Int32Array.from([e]):e;for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];this.otherEncodingNames=o,b.VALUE_IDENTIFIER_TO_ECI.set(t,this),b.NAME_TO_ECI.set(n,this);const a=this.values;for(let s=0,u=a.length;s!==u;s++){const t=a[s];b.VALUES_TO_ECI.set(t,this)}for(const s of o)b.NAME_TO_ECI.set(s,this)}getValueIdentifier(){return this.valueIdentifier}getName(){return this.name}getValue(){return this.values[0]}static getCharacterSetECIByValue(t){if(t<0||t>=900)throw new _("incorect value");const e=b.VALUES_TO_ECI.get(t);if(void 0===e)throw new _("incorect value");return e}static getCharacterSetECIByName(t){const e=b.NAME_TO_ECI.get(t);if(void 0===e)throw new _("incorect value");return e}equals(t){if(!(t instanceof b))return!1;const e=t;return this.getName()===e.getName()}}b.VALUE_IDENTIFIER_TO_ECI=new Map,b.VALUES_TO_ECI=new Map,b.NAME_TO_ECI=new Map,b.Cp437=new b(v.Cp437,Int32Array.from([0,2]),"Cp437"),b.ISO8859_1=new b(v.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),b.ISO8859_2=new b(v.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),b.ISO8859_3=new b(v.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),b.ISO8859_4=new b(v.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),b.ISO8859_5=new b(v.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),b.ISO8859_6=new b(v.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),b.ISO8859_7=new b(v.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),b.ISO8859_8=new b(v.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),b.ISO8859_9=new b(v.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),b.ISO8859_10=new b(v.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),b.ISO8859_11=new b(v.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),b.ISO8859_13=new b(v.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),b.ISO8859_14=new b(v.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),b.ISO8859_15=new b(v.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),b.ISO8859_16=new b(v.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),b.SJIS=new b(v.SJIS,20,"SJIS","Shift_JIS"),b.Cp1250=new b(v.Cp1250,21,"Cp1250","windows-1250"),b.Cp1251=new b(v.Cp1251,22,"Cp1251","windows-1251"),b.Cp1252=new b(v.Cp1252,23,"Cp1252","windows-1252"),b.Cp1256=new b(v.Cp1256,24,"Cp1256","windows-1256"),b.UnicodeBigUnmarked=new b(v.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),b.UTF8=new b(v.UTF8,26,"UTF8","UTF-8"),b.ASCII=new b(v.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),b.Big5=new b(v.Big5,28,"Big5"),b.GB18030=new b(v.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),b.EUC_KR=new b(v.EUC_KR,30,"EUC_KR","EUC-KR");class E extends a{}E.kind="UnsupportedOperationException";class C{static decode(t,e){const n=this.encodingName(e);return this.customDecoder?this.customDecoder(t,n):"undefined"===typeof TextDecoder||this.shouldDecodeOnFallback(n)?this.decodeFallback(t,n):new TextDecoder(n).decode(t)}static shouldDecodeOnFallback(t){return!C.isBrowser()&&"ISO-8859-1"===t}static encode(t,e){const n=this.encodingName(e);return this.customEncoder?this.customEncoder(t,n):"undefined"===typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)}static isBrowser(){return"undefined"!==typeof window&&"[object Window]"==={}.toString.call(window)}static encodingName(t){return"string"===typeof t?t:t.getName()}static encodingCharacterSet(t){return t instanceof b?t:b.getCharacterSetECIByName(t)}static decodeFallback(t,e){const n=this.encodingCharacterSet(e);if(C.isDecodeFallbackSupported(n)){let e="";for(let n=0,r=t.length;n<r;n++){let r=t[n].toString(16);r.length<2&&(r="0"+r),e+="%"+r}return decodeURIComponent(e)}if(n.equals(b.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new E("Encoding ".concat(this.encodingName(e)," not supported by fallback."))}static isDecodeFallbackSupported(t){return t.equals(b.UTF8)||t.equals(b.ISO8859_1)||t.equals(b.ASCII)}static encodeFallback(t){const e=btoa(unescape(encodeURIComponent(t))).split(""),n=[];for(let r=0;r<e.length;r++)n.push(e[r].charCodeAt(0));return new Uint8Array(n)}}class A{static castAsNonUtf8Char(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=e?e.getName():this.ISO88591;return C.decode(new Uint8Array([t]),n)}static guessEncoding(t,e){if(null!==e&&void 0!==e&&void 0!==e.get(w.CHARACTER_SET))return e.get(w.CHARACTER_SET).toString();const n=t.length;let r=!0,o=!0,i=!0,a=0,s=0,u=0,c=0,l=0,f=0,d=0,h=0,p=0,g=0,m=0;const y=t.length>3&&239===t[0]&&187===t[1]&&191===t[2];for(let v=0;v<n&&(r||o||i);v++){const e=255&t[v];
2i&&(a>0?0===(128&e)?i=!1:a--:0!==(128&e)&&(0===(64&e)?i=!1:(a++,0===(32&e)?s++:(a++,0===(16&e)?u++:(a++,0===(8&e)?c++:i=!1))))),r&&(e>127&&e<160?r=!1:e>159&&(e<192||215===e||247===e)&&m++),o&&(l>0?e<64||127===e||e>252?o=!1:l--:128===e||160===e||e>239?o=!1:e>160&&e<224?(f++,h=0,d++,d>p&&(p=d)):e>127?(l++,d=0,h++,h>g&&(g=h)):(d=0,h=0))}return i&&a>0&&(i=!1),o&&l>0&&(o=!1),i&&(y||s+u+c>0)?A.UTF8:o&&(A.ASSUME_SHIFT_JIS||p>=3||g>=3)?A.SHIFT_JIS:r&&o?2===p&&2===f||10*m>=n?A.SHIFT_JIS:A.ISO88591:r?A.ISO88591:o?A.SHIFT_JIS:i?A.UTF8:A.PLATFORM_DEFAULT_ENCODING}static format(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(t,e,r,i,a,s){if("%%"===t)return"%";if(void 0===n[++o])return;t=i?parseInt(i.substr(1)):void 0;let u,c=a?parseInt(a.substr(1)):void 0;switch(s){case"s":u=n[o];break;case"c":u=n[o][0];break;case"f":u=parseFloat(n[o]).toFixed(t);break;case"p":u=parseFloat(n[o]).toPrecision(t);break;case"e":u=parseFloat(n[o]).toExponential(t);break;case"x":u=parseInt(n[o]).toString(c||16);break;case"d":u=parseFloat(parseInt(n[o],c||10).toPrecision(t)).toFixed(0)}u="object"===typeof u?JSON.stringify(u):(+u).toString(c);let l=parseInt(r),f=r&&r[0]+""==="0"?"0":" ";for(;u.length<l;)u=void 0!==e?u+f:f+u;return u}))}static getBytes(t,e){return C.encode(t,e)}static getCharCode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.charCodeAt(e)}static getCharAt(t){return String.fromCharCode(t)}}A.SHIFT_JIS=b.SJIS.getName(),A.GB2312="GB2312",A.ISO88591=b.ISO8859_1.getName(),A.EUC_JP="EUC_JP",A.UTF8=b.UTF8.getName(),A.PLATFORM_DEFAULT_ENCODING=A.UTF8,A.ASSUME_SHIFT_JIS=!1;class S{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.value=t}enableDecoding(t){return this.encoding=t,this}append(t){return"string"===typeof t?this.value+=t.toString():this.encoding?this.value+=A.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this}appendChars(t,e,n){for(let r=e;e<e+n;r++)this.append(t[r]);return this}length(){return this.value.length}charAt(t){return this.value.charAt(t)}deleteCharAt(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)}setCharAt(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)}substring(t,e){return this.value.substring(t,e)}setLengthToZero(){this.value=""}toString(){return this.value}insert(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+e.length)}}class O{constructor(t,e,n,r){if(this.width=t,this.height=e,this.rowSize=n,this.bits=r,void 0!==e&&null!==e||(e=t),this.height=e,t<1||e<1)throw new u("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((t+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}static parseFromBooleanArray(t){const e=t.length,n=t[0].length,r=new O(n,e);for(let o=0;o<e;o++){const e=t[o];for(let t=0;t<n;t++)e[t]&&r.set(t,o)}return r}static parseFromString(t,e,n){if(null===t)throw new u("stringRepresentation cannot be null");const r=new Array(t.length);let o=0,i=0,a=-1,s=0,c=0;for(;c<t.length;)if("\n"===t.charAt(c)||"\r"===t.charAt(c)){if(o>i){if(-1===a)a=o-i;else if(o-i!==a)throw new u("row lengths do not match");i=o,s++}c++}else if(t.substring(c,c+e.length)===e)c+=e.length,r[o]=!0,o++;else{if(t.substring(c,c+n.length)!==n)throw new u("illegal character encountered: "+t.substring(c));c+=n.length,r[o]=!1,o++}if(o>i){if(-1===a)a=o-i;else if(o-i!==a)throw new u("row lengths do not match");s++}const l=new O(a,s);for(let u=0;u<o;u++)r[u]&&l.set(Math.floor(u%a),Math.floor(u/a));return l}get(t,e){const n=e*this.rowSize+Math.floor(t/32);return 0!==(this.bits[n]>>>(31&t)&1)}set(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]|=1<<(31&t)&4294967295}unset(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]&=~(1<<(31&t)&4294967295)}flip(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]^=1<<(31&t)&4294967295}xor(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new u("input matrix dimensions do not match");const e=new y(Math.floor(this.width/32)+1),n=this.rowSize,r=this.bits;for(let o=0,i=this.height;o<i;o++){const i=o*n,a=t.getRow(o,e).getBitArray();for(let t=0;t<n;t++)r[i+t]^=a[t]}}clear(){const t=this.bits,e=t.length;for(let n=0;n<e;n++)t[n]=0}setRegion(t,e,n,r){if(e<0||t<0)throw new u("Left and top must be nonnegative");if(r<1||n<1)throw new u("Height and width must be at least 1");const o=t+n,i=e+r;if(i>this.height||o>this.width)throw new u("The region must fit inside the matrix");const a=this.rowSize,s=this.bits;for(let u=e;u<i;u++){const e=u*a;for(let n=t;n<o;n++)s[e+Math.floor(n/32)]|=1<<(31&n)&4294967295}}getRow(t,e){null===e||void 0===e||e.getSize()<this.width?e=new y(this.width):e.clear();const n=this.rowSize,r=this.bits,o=t*n;for(let i=0;i<n;i++)e.setBulk(32*i,r[o+i]);return e}setRow(t,e){d.arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)}rotate180(){const t=this.getWidth(),e=this.getHeight();let n=new y(t),r=new y(t);for(let o=0,i=Math.floor((e+1)/2);o<i;o++)n=this.getRow(o,n),r=this.getRow(e-1-o,r),n.reverse(),r.reverse(),this.setRow(o,r),this.setRow(e-1-o,n)}getEnclosingRectangle(){const t=this.width,e=this.height,n=this.rowSize,r=this.bits;let o=t,i=e,a=-1,s=-1;for(let u=0;u<e;u++)for(let t=0;t<n;t++){const e=r[u*n+t];if(0!==e){if(u<i&&(i=u),u>s&&(s=u),32*t<o){let n=0;for(;0===(e<<31-n&4294967295);)n++;32*t+n<o&&(o=32*t+n)}if(32*t+31>a){let n=31;for(;e>>>n===0;)n--;32*t+n>a&&(a=32*t+n)}}}return a<o||s<i?null:Int32Array.from([o,i,a-o+1,s-i+1])}getTopLeftOnBit(){const t=this.rowSize,e=this.bits;let n=0;for(;n<e.length&&0===e[n];)n++;if(n===e.length)return null;const r=n/t;let o=n%t*32;const i=e[n];let a=0;for(;0===(i<<31-a&4294967295);)a++;return o+=a,Int32Array.from([o,r])}getBottomRightOnBit(){const t=this.rowSize,e=this.bits;let n=e.length-1;for(;n>=0&&0===e[n];)n--;if(n<0)return null;const r=Math.floor(n/t);let o=32*Math.floor(n%t);const i=e[n];let a=31;for(;i>>>a===0;)a--;return o+=a,Int32Array.from([o,r])}getWidth(){return this.width}
vendor: 10,543 bytes, line 2
2getHeight(){return this.height}getRowSize(){return this.rowSize}equals(t){if(!(t instanceof O))return!1;const e=t;return this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&g.equals(this.bits,e.bits)}hashCode(){let t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+g.hashCode(this.bits),t}toString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"X ",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"  ",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";return this.buildToString(t,e,n)}buildToString(t,e,n){let r=new S;for(let o=0,i=this.height;o<i;o++){for(let n=0,i=this.width;n<i;n++)r.append(this.get(n,o)?t:e);r.append(n)}return r.toString()}clone(){return new O(this.width,this.height,this.rowSize,this.bits.slice())}}class I extends a{static getNotFoundInstance(){return new I}}I.kind="NotFoundException";class T extends f{constructor(t){super(t),this.luminances=T.EMPTY,this.buckets=new Int32Array(T.LUMINANCE_BUCKETS)}getBlackRow(t,e){const n=this.getLuminanceSource(),r=n.getWidth();void 0===e||null===e||e.getSize()<r?e=new y(r):e.clear(),this.initArrays(r);const o=n.getRow(t,this.luminances),i=this.buckets;for(let s=0;s<r;s++)i[(255&o[s])>>T.LUMINANCE_SHIFT]++;const a=T.estimateBlackPoint(i);if(r<3)for(let s=0;s<r;s++)(255&o[s])<a&&e.set(s);else{let t=255&o[0],n=255&o[1];for(let i=1;i<r-1;i++){const r=255&o[i+1];(4*n-t-r)/2<a&&e.set(i),t=n,n=r}}return e}getBlackMatrix(){const t=this.getLuminanceSource(),e=t.getWidth(),n=t.getHeight(),r=new O(e,n);this.initArrays(e);const o=this.buckets;for(let s=1;s<5;s++){const r=Math.floor(n*s/5),i=t.getRow(r,this.luminances),a=Math.floor(4*e/5);for(let t=Math.floor(e/5);t<a;t++)o[(255&i[t])>>T.LUMINANCE_SHIFT]++}const i=T.estimateBlackPoint(o),a=t.getMatrix();for(let s=0;s<n;s++){const t=s*e;for(let n=0;n<e;n++)(255&a[t+n])<i&&r.set(n,s)}return r}createBinarizer(t){return new T(t)}initArrays(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));const e=this.buckets;for(let n=0;n<T.LUMINANCE_BUCKETS;n++)e[n]=0}static estimateBlackPoint(t){const e=t.length;let n=0,r=0,o=0;for(let c=0;c<e;c++)t[c]>o&&(r=c,o=t[c]),t[c]>n&&(n=t[c]);let i=0,a=0;for(let c=0;c<e;c++){const e=c-r,n=t[c]*e*e;n>a&&(i=c,a=n)}if(r>i){const t=r;r=i,i=t}if(i-r<=e/16)throw new I;let s=i-1,u=-1;for(let c=i-1;c>r;c--){const e=c-r,o=e*e*(i-c)*(n-t[c]);o>u&&(s=c,u=o)}return s<<T.LUMINANCE_SHIFT}}T.LUMINANCE_BITS=5,T.LUMINANCE_SHIFT=8-T.LUMINANCE_BITS,T.LUMINANCE_BUCKETS=1<<T.LUMINANCE_BITS,T.EMPTY=Uint8ClampedArray.from([0]);class M extends T{constructor(t){super(t),this.matrix=null}getBlackMatrix(){if(null!==this.matrix)return this.matrix;const t=this.getLuminanceSource(),e=t.getWidth(),n=t.getHeight();if(e>=M.MINIMUM_DIMENSION&&n>=M.MINIMUM_DIMENSION){const r=t.getMatrix();let o=e>>M.BLOCK_SIZE_POWER;0!==(e&M.BLOCK_SIZE_MASK)&&o++;let i=n>>M.BLOCK_SIZE_POWER;0!==(n&M.BLOCK_SIZE_MASK)&&i++;const a=M.calculateBlackPoints(r,o,i,e,n),s=new O(e,n);M.calculateThresholdForBlock(r,o,i,e,n,a,s),this.matrix=s}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(t){return new M(t)}static calculateThresholdForBlock(t,e,n,r,o,i,a){const s=o-M.BLOCK_SIZE,u=r-M.BLOCK_SIZE;for(let c=0;c<n;c++){let o=c<<M.BLOCK_SIZE_POWER;o>s&&(o=s);const l=M.cap(c,2,n-3);for(let n=0;n<e;n++){let s=n<<M.BLOCK_SIZE_POWER;s>u&&(s=u);const c=M.cap(n,2,e-3);let f=0;for(let t=-2;t<=2;t++){const e=i[l+t];f+=e[c-2]+e[c-1]+e[c]+e[c+1]+e[c+2]}const d=f/25;M.thresholdBlock(t,s,o,d,r,a)}}}static cap(t,e,n){return t<e?e:t>n?n:t}static thresholdBlock(t,e,n,r,o,i){for(let a=0,s=n*o+e;a<M.BLOCK_SIZE;a++,s+=o)for(let o=0;o<M.BLOCK_SIZE;o++)(255&t[s+o])<=r&&i.set(e+o,n+a)}static calculateBlackPoints(t,e,n,r,o){const i=o-M.BLOCK_SIZE,a=r-M.BLOCK_SIZE,s=new Array(n);for(let u=0;u<n;u++){s[u]=new Int32Array(e);let n=u<<M.BLOCK_SIZE_POWER;n>i&&(n=i);for(let o=0;o<e;o++){let e=o<<M.BLOCK_SIZE_POWER;e>a&&(e=a);let i=0,c=255,l=0;for(let o=0,a=n*r+e;o<M.BLOCK_SIZE;o++,a+=r){for(let e=0;e<M.BLOCK_SIZE;e++){const n=255&t[a+e];i+=n,n<c&&(c=n),n>l&&(l=n)}if(l-c>M.MIN_DYNAMIC_RANGE)for(o++,a+=r;o<M.BLOCK_SIZE;o++,a+=r)for(let e=0;e<M.BLOCK_SIZE;e++)i+=255&t[a+e]}let f=i>>2*M.BLOCK_SIZE_POWER;if(l-c<=M.MIN_DYNAMIC_RANGE&&(f=c/2,u>0&&o>0)){const t=(s[u-1][o]+2*s[u][o-1]+s[u-1][o-1])/4;c<t&&(f=t)}s[u][o]=f}}return s}}M.BLOCK_SIZE_POWER=3,M.BLOCK_SIZE=1<<M.BLOCK_SIZE_POWER,M.BLOCK_SIZE_MASK=M.BLOCK_SIZE-1,M.MINIMUM_DIMENSION=5*M.BLOCK_SIZE,M.MIN_DYNAMIC_RANGE=24;class R{constructor(t,e){this.width=t,this.height=e}getWidth(){return this.width}getHeight(){return this.height}isCropSupported(){return!1}crop(t,e,n,r){throw new E("This luminance source does not support cropping.")}isRotateSupported(){return!1}rotateCounterClockwise(){throw new E("This luminance source does not support rotation by 90 degrees.")}rotateCounterClockwise45(){throw new E("This luminance source does not support rotation by 45 degrees.")}toString(){const t=new Uint8ClampedArray(this.width);let e=new S;for(let n=0;n<this.height;n++){const r=this.getRow(n,t);for(let t=0;t<this.width;t++){const n=255&r[t];let o;o=n<64?"#":n<128?"+":n<192?".":" ",e.append(o)}e.append("\n")}return e.toString()}}class D extends R{constructor(t){super(t.getWidth(),t.getHeight()),this.delegate=t}getRow(t,e){const n=this.delegate.getRow(t,e),r=this.getWidth();for(let o=0;o<r;o++)n[o]=255-(255&n[o]);return n}getMatrix(){const t=this.delegate.getMatrix(),e=this.getWidth()*this.getHeight(),n=new Uint8ClampedArray(e);for(let r=0;r<e;r++)n[r]=255-(255&t[r]);return n}isCropSupported(){return this.delegate.isCropSupported()}crop(t,e,n,r){return new D(this.delegate.crop(t,e,n,r))}isRotateSupported(){return this.delegate.isRotateSupported()}invert(){return this.delegate}rotateCounterClockwise(){return new D(this.delegate.rotateCounterClockwise())}rotateCounterClockwise45(){return new D(this.delegate.rotateCounterClockwise45())}}class x extends R{constructor(t){super(t.width,t.height),this.canvas=t,this.tempCanvasElement=null,this.buffer=x.makeBufferFromCanvasImageData(t)}static makeBufferFromCanvasImageData(t){const e=t.getContext("2d").getImageData(0,0,t.width,t.height);return x.toGrayscaleBuffer(e.data,t.width,t.height)}static toGrayscaleBuffer(t,e,n){const r=new Uint8ClampedArray(e*n);for(let o=0,i=0,a=t.length;o<a;o+=4,i++){let e;e=0===t[o+3]?255:306*t[o]+601*t[o+1]+117*t[o+2]+512>>10,r[i]=e}return r}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const n=this.getWidth(),r=t*n;return null===e?e=this.buffer.slice(r,r+n):(e.length<n&&(e=new Uint8ClampedArray(n)),e.set(this.buffer.slice(r,r+n))),e}getMatrix(){return this.buffer}isCropSupported(){return!0}crop(t,e,n,r){return super.crop(t,e,n,r),this}isRotateSupported(){return!0}rotateCounterClockwise(){return this.rotate(-90),this}rotateCounterClockwise45(){return this.rotate(-45),this}getTempCanvasElement(){if(null===this.tempCanvasElement){const t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement}rotate(t){const e=this.getTempCanvasElement(),n=e.getContext("2d"),r=t*x.DEGREE_TO_RADIANS,o=this.canvas.width,i=this.canvas.height,a=Math.ceil(Math.abs(Math.cos(r))*o+Math.abs(Math.sin(r))*i),s=Math.ceil(Math.abs(Math.sin(r))*o+Math.abs(Math.cos(r))*i);return e.width=a,e.height=s,n.translate(a/2,s/2),n.rotate(r),n.drawImage(this.canvas,o/-2,i/-2),this.buffer=x.makeBufferFromCanvasImageData(e),this}invert(){return new D(this)}}x.DEGREE_TO_RADIANS=Math.PI/180;class N{constructor(t,e,n){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=n||void 0}toJSON(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}}}var P,L=(globalThis||t||self||window?(globalThis||t||self||window||void 0).__awaiter:void 0)||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};class k{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2?arguments[2]:void 0;this.reader=t,this.timeBetweenScansMillis=e,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}get hasNavigator(){return"undefined"!==typeof navigator}get isMediaDevicesSuported(){return this.hasNavigator&&!!navigator.mediaDevices}get canEnumerateDevices(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)}get timeBetweenDecodingAttempts(){return this._timeBetweenDecodingAttempts}set timeBetweenDecodingAttempts(t){this._timeBetweenDecodingAttempts=t<0?0:t}set hints(t){this._hints=t||null}get hints(){return this._hints}listVideoInputDevices(){return L(this,void 0,void 0,(function*(){if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");const t=yield navigator.mediaDevices.enumerateDevices(),e=[];for(const n of t){const t="video"===n.kind?"videoinput":n.kind;if("videoinput"!==t)continue;const r={deviceId:n.deviceId||n.id,label:n.label||"Video device ".concat(e.length+1),kind:t,groupId:n.groupId};e.push(r)}return e}))}getVideoInputDevices(){return L(this,void 0,void 0,(function*(){return(yield this.listVideoInputDevices()).map(t=>new N(t.deviceId,t.label))}))}findDeviceById(t){return L(this,void 0,void 0,(function*(){const e=yield this.listVideoInputDevices();return e?e.find(e=>e.deviceId===t):null}))}decodeFromInputVideoDevice(t,e){return L(this,void 0,void 0,(function*(){return yield this.decodeOnceFromVideoDevice(t,e)}))}decodeOnceFromVideoDevice(t,e){return L(this,void 0,void 0,(function*(){let n;this.reset(),n=t?{deviceId:{exact:t}}:{facingMode:"environment"};const r={video:n};return yield this.decodeOnceFromConstraints(r,e)}))}decodeOnceFromConstraints(t,e){return L(this,void 0,void 0,(function*(){const n=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeOnceFromStream(n,e)}))}decodeOnceFromStream(t,e){return L(this,void 0,void 0,(function*(){this.reset();const n=yield this.attachStreamToVideo(t,e);return yield this.decodeOnce(n)}))}decodeFromInputVideoDeviceContinuously(t,e,n){return L(this,void 0,void 0,(function*(){return yield this.decodeFromVideoDevice(t,e,n)}
2))}decodeFromVideoDevice(t,e,n){return L(this,void 0,void 0,(function*(){let r;r=t?{deviceId:{exact:t}}:{facingMode:"environment"};const o={video:r};return yield this.decodeFromConstraints(o,e,n)}))}decodeFromConstraints(t,e,n){return L(this,void 0,void 0,(function*(){const r=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeFromStream(r,e,n)}))}decodeFromStream(t,e,n){return L(this,void 0,void 0,(function*(){this.reset();const r=yield this.attachStreamToVideo(t,e);return yield this.decodeContinuously(r,n)}))}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(t,e){return L(this,void 0,void 0,(function*(){const n=this.prepareVideoElement(e);return this.addVideoSource(n,t),this.videoElement=n,this.stream=t,yield this.playVideoOnLoadAsync(n),n}))}playVideoOnLoadAsync(t){return new Promise((e,n)=>this.playVideoOnLoad(t,()=>e()))}playVideoOnLoad(t,e){this.videoEndedListener=()=>this.stopStreams(),this.videoCanPlayListener=()=>this.tryPlayVideo(t),t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)}isVideoPlaying(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}tryPlayVideo(t){return L(this,void 0,void 0,(function*(){if(this.isVideoPlaying(t))console.warn("Trying to play video that is already playing.");else try{yield t.play()}catch(e){console.warn("It was not possible to play the video.")}}))}getMediaElement(t,e){const n=document.getElementById(t);if(!n)throw new s("element with id '".concat(t,"' not found"));if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new s("element with id '".concat(t,"' must be an ").concat(e," element"));return n}decodeFromImage(t,e){if(!t&&!e)throw new s("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)}decodeFromVideo(t,e){if(!t&&!e)throw new s("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)}decodeFromVideoContinuously(t,e,n){if(void 0===t&&void 0===e)throw new s("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,n):this.decodeFromVideoElementContinuously(t,n)}decodeFromImageElement(t){if(!t)throw new s("An image element must be provided.");this.reset();const e=this.prepareImageElement(t);let n;return this.imageElement=e,n=this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e),n}decodeFromVideoElement(t){const e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)}decodeFromVideoElementContinuously(t,e){const n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(n,e)}_decodeFromVideoElementSetup(t){if(!t)throw new s("A video element must be provided.");this.reset();const e=this.prepareVideoElement(t);return this.videoElement=e,e}decodeFromImageUrl(t){if(!t)throw new s("An URL must be provided.");this.reset();const e=this.prepareImageElement();this.imageElement=e;const n=this._decodeOnLoadImage(e);return e.src=t,n}decodeFromVideoUrl(t){if(!t)throw new s("An URL must be provided.");this.reset();const e=this.prepareVideoElement(),n=this.decodeFromVideoElement(e);return e.src=t,n}decodeFromVideoUrlContinuously(t,e){if(!t)throw new s("An URL must be provided.");this.reset();const n=this.prepareVideoElement(),r=this.decodeFromVideoElementContinuously(n,e);return n.src=t,r}_decodeOnLoadImage(t){return new Promise((e,n)=>{this.imageLoadedListener=()=>this.decodeOnce(t,!1,!0).then(e,n),t.addEventListener("load",this.imageLoadedListener)})}_decodeOnLoadVideo(t){return L(this,void 0,void 0,(function*(){return yield this.playVideoOnLoadAsync(t),yield this.decodeOnce(t)}))}_decodeOnLoadVideoContinuously(t,e){return L(this,void 0,void 0,(function*(){yield this.playVideoOnLoadAsync(t),this.decodeContinuously(t,e)}))}isImageLoaded(t){return!!t.complete&&0!==t.naturalWidth}prepareImageElement(t){let e;return"undefined"===typeof t&&(e=document.createElement("img"),e.width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e}prepareVideoElement(t){let e;return t||"undefined"===typeof document||(e=document.createElement("video"),e.width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e}decodeOnce(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._stopAsyncDecode=!1;const r=(o,i)=>{if(this._stopAsyncDecode)return i(new I("Video stream has ended before any code could be detected.")),void(this._stopAsyncDecode=void 0);try{o(this.decode(t))}catch(a){const t=(a instanceof l||a instanceof _)&&n;if(e&&a instanceof I||t)return setTimeout(r,this._timeBetweenDecodingAttempts,o,i);i(a)}};return new Promise((t,e)=>r(t,e))}decodeContinuously(t,e){this._stopContinuousDecode=!1;const n=()=>
2{if(this._stopContinuousDecode)this._stopContinuousDecode=void 0;else try{const r=this.decode(t);e(r,null),setTimeout(n,this.timeBetweenScansMillis)}catch(r){e(null,r);const t=r instanceof I;(r instanceof l||r instanceof _||t)&&setTimeout(n,this._timeBetweenDecodingAttempts)}};n()}decode(t){const e=this.createBinaryBitmap(t);return this.decodeBitmap(e)}_isHTMLVideoElement(t){return 0!==t.videoWidth}drawFrameOnCanvas(t,e,n){e||(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),n||(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}drawImageOnCanvas(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.captureCanvasContext;e||(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),n||(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}createBinaryBitmap(t){this.getCaptureCanvasContext(t),this._isHTMLVideoElement(t)?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);const e=this.getCaptureCanvas(t),n=new x(e),r=new M(n);return new c(r)}getCaptureCanvasContext(t){if(!this.captureCanvasContext){const e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext}getCaptureCanvas(t){if(!this.captureCanvas){const e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas}decodeBitmap(t){return this.reader.decode(t,this._hints)}createCaptureCanvas(t){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;const e=document.createElement("canvas");let n,r;return"undefined"!==typeof t&&(t instanceof HTMLVideoElement?(n=t.videoWidth,r=t.videoHeight):t instanceof HTMLImageElement&&(n=t.naturalWidth||t.width,r=t.naturalHeight||t.height)),e.style.width=n+"px",e.style.height=r+"px",e.width=n,e.height=r,e}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach(t=>t.stop()),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()}reset(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()}_destroyVideoElement(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)}_destroyImageElement(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)}_destroyCaptureCanvas(){this.captureCanvasContext=void 0,this.captureCanvas=void 0}addVideoSource(t,e){try{t.srcObject=e}catch(n){t.src=URL.createObjectURL(e)}}cleanVideoSource(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")}}class B{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null==e?0:8*e.length,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d.currentTimeMillis();this.text=t,this.rawBytes=e,this.numBits=n,this.resultPoints=r,this.format=o,this.timestamp=i,this.text=t,this.rawBytes=e,this.numBits=void 0===n||null===n?null===e||void 0===e?0:8*e.length:n,this.resultPoints=r,this.format=o,this.resultMetadata=null,this.timestamp=void 0===i||null===i?d.currentTimeMillis():i}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)}putAllMetadata(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))}addResultPoints(t){const e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){const n=new Array(e.length+t.length);d.arraycopy(e,0,n,0,e.length),d.arraycopy(t,0,n,e.length,t.length),this.resultPoints=n}}getTimestamp(){return this.timestamp}toString(){return this.text}}
vendor: 4,231 bytes, line 2
2!function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(P||(P={}));var j,F=P;!function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(j||(j={}));var U,z,V,H,W,G,Y=j;class X{constructor(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;this.rawBytes=t,this.text=e,this.byteSegments=n,this.ecLevel=r,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=i,this.numBits=void 0===t||null===t?0:8*t.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(t){this.numBits=t}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(t){this.errorsCorrected=t}getErasures(){return this.erasures}setErasures(t){this.erasures=t}getOther(){return this.other}setOther(t){this.other=t}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class Z{exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}static addOrSubtract(t,e){return t^e}}class q{constructor(t,e){if(0===e.length)throw new u;this.field=t;const n=e.length;if(n>1&&0===e[0]){let t=1;for(;t<n&&0===e[t];)t++;t===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-t),d.arraycopy(e,t,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return 0===this.coefficients[0]}getCoefficient(t){return this.coefficients[this.coefficients.length-1-t]}evaluateAt(t){if(0===t)return this.getCoefficient(0);const e=this.coefficients;let n;if(1===t){n=0;for(let t=0,r=e.length;t!==r;t++){const r=e[t];n=Z.addOrSubtract(n,r)}return n}n=e[0];const r=e.length,o=this.field;for(let i=1;i<r;i++)n=Z.addOrSubtract(o.multiply(t,n),e[i]);return n}addOrSubtract(t){if(!this.field.equals(t.field))throw new u("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;let e=this.coefficients,n=t.coefficients;if(e.length>n.length){const t=e;e=n,n=t}let r=new Int32Array(n.length);const o=n.length-e.length;d.arraycopy(n,0,r,0,o);for(let i=o;i<n.length;i++)r[i]=Z.addOrSubtract(e[i-o],n[i]);return new q(this.field,r)}multiply(t){if(!this.field.equals(t.field))throw new u("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();const e=this.coefficients,n=e.length,r=t.coefficients,o=r.length,i=new Int32Array(n+o-1),a=this.field;for(let s=0;s<n;s++){const t=e[s];for(let e=0;e<o;e++)i[s+e]=Z.addOrSubtract(i[s+e],a.multiply(t,r[e]))}return new q(a,i)}multiplyScalar(t){if(0===t)return this.field.getZero();if(1===t)return this;const e=this.coefficients.length,n=this.field,r=new Int32Array(e),o=this.coefficients;for(let i=0;i<e;i++)r[i]=n.multiply(o[i],t);return new q(n,r)}multiplyByMonomial(t,e){if(t<0)throw new u;if(0===e)return this.field.getZero();const n=this.coefficients,r=n.length,o=new Int32Array(r+t),i=this.field;for(let a=0;a<r;a++)o[a]=i.multiply(n[a],e);return new q(i,o)}divide(t){if(!this.field.equals(t.field))throw new u("GenericGFPolys do n
2ot have same GenericGF field");if(t.isZero())throw new u("Divide by 0");const e=this.field;let n=e.getZero(),r=this;const o=t.getCoefficient(t.getDegree()),i=e.inverse(o);for(;r.getDegree()>=t.getDegree()&&!r.isZero();){const o=r.getDegree()-t.getDegree(),a=e.multiply(r.getCoefficient(r.getDegree()),i),s=t.multiplyByMonomial(o,a),u=e.buildMonomial(o,a);n=n.addOrSubtract(u),r=r.addOrSubtract(s)}return[n,r]}toString(){let t="";for(let e=this.getDegree();e>=0;e--){let n=this.getCoefficient(e);if(0!==n){if(n<0?(t+=" - ",n=-n):t.length>0&&(t+=" + "),0===e||1!==n){const e=this.field.log(n);0===e?t+="1":1===e?t+="a":(t+="a^",t+=e)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t}}class K extends a{}K.kind="ArithmeticException";class Q extends Z{constructor(t,e,n){super(),this.primitive=t,this.size=e,this.generatorBase=n;const r=new Int32Array(e);let o=1;for(let a=0;a<e;a++)r[a]=o,o*=2,o>=e&&(o^=t,o&=e-1);this.expTable=r;const i=new Int32Array(e);for(let a=0;a<e-1;a++)i[r[a]]=a;this.logTable=i,this.zero=new q(this,Int32Array.from([0])),this.one=new q(this,Int32Array.from([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(t,e){if(t<0)throw new u;if(0===e)return this.zero;const n=new Int32Array(t+1);return n[0]=e,new q(this,n)}inverse(t){if(0===t)throw new K;return this.expTable[this.size-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]}getSize(){return this.size}getGeneratorBase(){return this.generatorBase}toString(){return"GF(0x"+m.toHexString(this.primitive)+","+this.size+")"}equals(t){return t===this}}Q.AZTEC_DATA_12=new Q(4201,4096,1),Q.AZTEC_DATA_10=new Q(1033,1024,1),Q.AZTEC_DATA_6=new Q(67,64,1),Q.AZTEC_PARAM=new Q(19,16,1),Q.QR_CODE_FIELD_256=new Q(285,256,0),Q.DATA_MATRIX_FIELD_256=new Q(301,256,1),Q.AZTEC_DATA_8=Q.DATA_MATRIX_FIELD_256,Q.MAXICODE_FIELD_64=Q.AZTEC_DATA_6;class J extends a{}J.kind="ReedSolomonException";class $ extends a{}$.kind="IllegalStateException";class tt{constructor(t){this.field=t}decode(t,e){const n=this.field,r=new q(n,t),o=new Int32Array(e);let i=!0;for(let d=0;d<e;d++){const t=r.evaluateAt(n.exp(d+n.getGeneratorBase()));o[o.length-1-d]=t,0!==t&&(i=!1)}if(i)return;const a=new q(n,o),s=this.runEuclideanAlgorithm(n.buildMonomial(e,1),a,e),u=s[0],c=s[1],l=this.findErrorLocations(u),f=this.findErrorMagnitudes(c,l);for(let d=0;d<l.length;d++){const e=t.length-1-n.log(l[d]);if(e<0)throw new J("Bad error location");t[e]=Q.addOrSubtract(t[e],f[d])}}runEuclideanAlgorithm(t,e,n){if(t.getDegree()<e.getDegree()){const n=t;t=e,e=n}const r=this.field;let o=t,i=e,a=r.getZero(),s=r.getOne();for(;i.getDegree()>=(n/2|0);){let t=o,e=a;if(o=i,a=s,o.isZero())throw new J("r_{i-1} was zero");i=t;let n=r.getZero();const u=o.getCoefficient(o.getDegree()),c=r.inverse(u);for(;i.getDegree()>=o.getDegree()&&!i.isZero();){const t=i.getDegree()-o.getDegree(),e=r.multiply(i.getCoefficient(i.getDegree()),c);n=n.addOrSubtract(r.buildMonomial(t,e)),i=i.addOrSubtract(o.multiplyByMonomial(t,e))}if(s=n.multiply(a).addOrSubtract(e),i.getDegree()>=o.getDegree())throw new $("Division algorithm failed to reduce polynomial?")}const u=s.getCoefficient(0);if(0===u)throw new J("sigmaTilde(0) was zero");const c=r.inverse(u);return[s.multiplyScalar(c),i.multiplyScalar(c)]}findErrorLocations(t){const e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);const n=new Int32Array(e);let r=0;const o=this.field;for(let i=1;i<o.getSize()&&r<e;i++)0===t.evaluateAt(i)&&(n[r]=o.inverse(i),r++);if(r!==e)throw new J("Error locator degree does not match number of roots");return n}findErrorMagnitudes(t,e){const n=e.length,r=new Int32Array(n),o=this.field;for(let i=0;i<n;i++){const a=o.inverse(e[i]);let s=1;for(let t=0;t<n;t++)if(i!==t){const n=o.multiply(e[t],a),r=0===(1&n)?1|n:-2&n;s=o.multiply(s,r)}r[i]=o.multiply(t.evaluateAt(a),o.inverse(s)),0!==o.getGeneratorBase()&&(r[i]=o.multiply(r[i],a))}return r}}!function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"}(U||(U={}));class et{decode(t){this.ddata=t;let e=t.getBits(),n=this.extractBits(e),r=this.correctBits(n),o=et.convertBoolArrayToByteArray(r),i=et.getEncodedData(r),a=new X(o,i,null,null);return a.setNumBits(r.length),a}static highLevelDecode(t){return this.getEncodedData(t)}static getEncodedData(t){let e=t.length,n=U.UPPER,r=U.UPPER,o="",i=0;for(;i<e;)if(r===U.BINARY){if(e-i<5)break;let a=et.readCode(t,i,5);if(i+=5,0===a){if(e-i<11)break;a=et.readCode(t,i,11)+31,i+=11}for(let n=0;n<a;n++){if(e-i<8){i=e;break}const n=et.readCode(t,i,8);o+=A.castAsNonUtf8Char(n),i+=8}r=n}else{let a=r===U.DIGIT?4:5;if(e-i<a)break;let s=et.readCode(t,i,a);i+=a;let u=et.getCharacter(r,s);
vendor: 10,218 bytes, line 2
2u.startsWith("CTRL_")?(n=r,r=et.getTable(u.charAt(5)),"L"===u.charAt(6)&&(n=r)):(o+=u,r=n)}return o}static getTable(t){switch(t){case"L":return U.LOWER;case"P":return U.PUNCT;case"M":return U.MIXED;case"D":return U.DIGIT;case"B":return U.BINARY;case"U":default:return U.UPPER}}static getCharacter(t,e){switch(t){case U.UPPER:return et.UPPER_TABLE[e];case U.LOWER:return et.LOWER_TABLE[e];case U.MIXED:return et.MIXED_TABLE[e];case U.PUNCT:return et.PUNCT_TABLE[e];case U.DIGIT:return et.DIGIT_TABLE[e];default:throw new $("Bad table")}}correctBits(t){let e,n;this.ddata.getNbLayers()<=2?(n=6,e=Q.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,e=Q.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,e=Q.AZTEC_DATA_10):(n=12,e=Q.AZTEC_DATA_12);let r=this.ddata.getNbDatablocks(),o=t.length/n;if(o<r)throw new _;let i=t.length%n,a=new Int32Array(o);for(let d=0;d<o;d++,i+=n)a[d]=et.readCode(t,i,n);try{new tt(e).decode(a,o-r)}catch(f){throw new _(f)}let s=(1<<n)-1,u=0;for(let d=0;d<r;d++){let t=a[d];if(0===t||t===s)throw new _;1!==t&&t!==s-1||u++}let c=new Array(r*n-u),l=0;for(let d=0;d<r;d++){let t=a[d];if(1===t||t===s-1)c.fill(t>1,l,l+n-1),l+=n-1;else for(let e=n-1;e>=0;--e)c[l++]=0!==(t&1<<e)}return c}extractBits(t){let e=this.ddata.isCompact(),n=this.ddata.getNbLayers(),r=(e?11:14)+4*n,o=new Int32Array(r),i=new Array(this.totalBitsInLayer(n,e));if(e)for(let a=0;a<o.length;a++)o[a]=a;else{let t=r+1+2*m.truncDivision(m.truncDivision(r,2)-1,15),e=r/2,n=m.truncDivision(t,2);for(let r=0;r<e;r++){let t=r+m.truncDivision(r,15);o[e-r-1]=n-t-1,o[e+r]=n+t+1}}for(let a=0,s=0;a<n;a++){let u=4*(n-a)+(e?9:12),c=2*a,l=r-1-c;for(let e=0;e<u;e++){let n=2*e;for(let r=0;r<2;r++)i[s+n+r]=t.get(o[c+r],o[c+e]),i[s+2*u+n+r]=t.get(o[c+e],o[l-r]),i[s+4*u+n+r]=t.get(o[l-r],o[l-e]),i[s+6*u+n+r]=t.get(o[l-e],o[c+r])}s+=8*u}return i}static readCode(t,e,n){let r=0;for(let o=e;o<e+n;o++)r<<=1,t[o]&&(r|=1);return r}static readByte(t,e){let n=t.length-e;return n>=8?et.readCode(t,e,8):et.readCode(t,e,n)<<8-n}static convertBoolArrayToByteArray(t){let e=new Uint8Array((t.length+7)/8);for(let n=0;n<e.length;n++)e[n]=et.readByte(t,8*n);return e}totalBitsInLayer(t,e){return((e?88:112)+16*t)*t}}et.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],et.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],et.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],et.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],et.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class nt{constructor(){}static round(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0}static distance(t,e,n,r){const o=t-n,i=e-r;return Math.sqrt(o*o+i*i)}static sum(t){let e=0;for(let n=0,r=t.length;n!==r;n++)e+=t[n];return e}}class rt{static floatToIntBits(t){return t}}rt.MAX_VALUE=Number.MAX_SAFE_INTEGER;class ot{constructor(t,e){this.x=t,this.y=e}getX(){return this.x}getY(){return this.y}equals(t){if(t instanceof ot){const e=t;return this.x===e.x&&this.y===e.y}return!1}hashCode(){return 31*rt.floatToIntBits(this.x)+rt.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(t){const e=this.distance(t[0],t[1]),n=this.distance(t[1],t[2]),r=this.distance(t[0],t[2]);let o,i,a;if(n>=e&&n>=r?(i=t[0],o=t[1],a=t[2]):r>=n&&r>=e?(i=t[1],o=t[0],a=t[2]):(i=t[2],o=t[0],a=t[1]),this.crossProductZ(o,i,a)<0){const t=o;o=a,a=t}t[0]=o,t[1]=i,t[2]=a}static distance(t,e){return nt.distance(t.x,t.y,e.x,e.y)}static crossProductZ(t,e,n){const r=e.x,o=e.y;return(n.x-r)*(t.y-o)-(n.y-o)*(t.x-r)}}class it{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class at extends it{constructor(t,e,n,r,o){super(t,e),this.compact=n,this.nbDatablocks=r,this.nbLayers=o}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class st{constructor(t,e,n,r){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),void 0!==e&&null!==e||(e=st.INIT_SIZE),void 0!==n&&null!==n||(n=t.getWidth()/2|0),void 0!==r&&null!==r||(r=t.getHeight()/2|0);const o=e/2|0;if(this.leftInit=n-o,this.rightInit=n+o,this.upInit=r-o,this.downInit=r+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new I}detect(){let t=this.leftInit,e=this.rightInit,n=this.upInit,r=this.downInit,o=!1,i=!0,a=!1,s=!1,u=!1,c=!1,l=!1;const f=this.width,d=this.height;for(;i;){i=!1;let h=!0;for(;(h||!s)&&e<f;)h=this.containsBlackPoint(n,r,e,!1),h?(e++,i=!0,s=!0):s||e++;if(e>=f){o=!0;break}let p=!0;for(;(p||!u)&&r<d;)p=this.containsBlackPoint(t,e,r,!0),p?(r++,i=!0,u=!0):u||r++;if(r>=d){o=!0;break}let g=!0;for(;(g||!c)&&t>=0;)g=this.containsBlackPoint(n,r,t,!1),g?(t--,i=!0,c=!0):c||t--;if(t<0){o=!0;break}let m=!0;for(;(m||!l)&&n>=0;)m=this.containsBlackPoint(t,e,n,!0),m?(n--,i=!0,l=!0):l||n--;if(n<0){o=!0;break}i&&(a=!0)}if(!o&&a){const o=e-t;let i=null;for(let e=1;null===i&&e<o;e++)i=this.getBlackPointOnSegment(t,r-e,t+e,r);if(null==i)throw new I;let a=null;for(let e=1;null===a&&e<o;e++)a=this.getBlackPointOnSegment(t,n+e,t+e,n);if(null==a)throw new I;let s=null;for(let t=1;null===s&&t<o;t++)s=this.getBlackPointOnSegment(e,n+t,e-t,n);if(null==s)throw new I;let u=null;for(let t=1;null===u&&t<o;t++)u=this.getBlackPointOnSegment(e,r-t,e-t,r);if(null==u)throw new I;return this.centerEdges(u,i,s,a)}throw new I}getBlackPointOnSegment(t,e,n,r){const o=nt.round(nt.distance(t,e,n,r)),i=(n-t)/o,a=(r-e)/o,s=this.image;for(let u=0;u<o;u++){const n=nt.round(t+u*i),r=nt.round(e+u*a);if(s.get(n,r))return new ot(n,r)}return null}centerEdges(t,e,n,r){const o=t.getX(),i=t.getY(),a=e.getX(),s=e.getY(),u=n.getX(),c=n.getY(),l=r.getX(),f=r.getY(),d=st.CORR;return o<this.width/2?[new ot(l-d,f+d),new ot(a+d,s+d),new ot(u-d,c-d),new ot(o+d,i-d)]:[new ot(l+d,f+d),new ot(a+d,s-d),new ot(u-d,c+d),new ot(o-d,i-d)]}containsBlackPoint(t,e,n,r){const o=this.image;if(r){for(let i=t;i<=e;i++)if(o.get(i,n))return!0}else for(let i=t;i<=e;i++)if(o.get(n,i))return!0;return!1}}st.INIT_SIZE=10,st.CORR=1;class ut{static checkAndNudgePoints(t,e){const n=t.getWidth(),r=t.getHeight();let o=!0;for(let i=0;i<e.length&&o;i+=2){const t=Math.floor(e[i]),a=Math.floor(e[i+1]);if(t<-1||t>n||a<-1||a>r)throw new I;o=!1,-1===t?(e[i]=0,o=!0):t===n&&(e[i]=n-1,o=!0),-1===a?(e[i+1]=0,o=!0):a===r&&(e[i+1]=r-1,o=!0)}o=!0;for(let i=e.length-2;i>=0&&o;i-=2){const t=Math.floor(e[i]),a=Math.floor(e[i+1]);if(t<-1||t>n||a<-1||a>r)throw new I;o=!1,-1===t?(e[i]=0,o=!0):t===n&&(e[i]=n-1,o=!0),-1===a?(e[i+1]=0,o=!0):a===r&&(e[i+1]=r-1,o=!0)}}}class ct{constructor(t,e,n,r,o,i,a,s,u){this.a11=t,this.a21=e,this.a31=n,this.a12=r,this.a22=o,this.a32=i,this.a13=a,this.a23=s,this.a33=u}static quadrilateralToQuadrilateral(t,e,n,r,o,i,a,s,u,c,l,f,d,h,p,g){const m=ct.quadrilateralToSquare(t,e,n,r,o,i,a,s);return ct.squareToQuadrilateral(u,c,l,f,d,h,p,g).times(m)}transformPoints(t){const e=t.length,n=this.a11,r=this.a12,o=this.a13,i=this.a21,a=this.a22,s=this.a23,u=this.a31,c=this.a32,l=this.a33;for(let f=0;f<e;f+=2){const e=t[f],d=t[f+1],h=o*e+s*d+l;t[f]=(n*e+i*d+u)/h,t[f+1]=(r*e+a*d+c)/h}}transformPointsWithValues(t,e){const n=this.a11,r=this.a12,o=this.a13,i=this.a21,a=this.a22,s=this.a23,u=this.a31,c=this.a32,l=this.a33,f=t.length;for(let d=0;d<f;d++){const f=t[d],h=e[d],p=o*f+s*h+l;t[d]=(n*f+i*h+u)/p,e[d]=(r*f+a*h+c)/p}}static squareToQuadrilateral(t,e,n,r,o,i,a,s){const u=t-n+o-a,c=e-r+i-s;if(0===u&&0===c)return new ct(n-t,o-n,t,r-e,i-r,e,0,0,1);{const l=n-o,f=a-o,d=r-i,h=s-i,p=l*h-f*d,g=(u*h-f*c)/p,m=(l*c-u*d)/p;return new ct(n-t+g*n,a-t+m*a,t,r-e+g*r,s-e+m*s,e,g,m,1)}}static quadrilateralToSquare(t,e,n,r,o,i,a,s){return ct.squareToQuadrilateral(t,e,n,r,o,i,a,s).buildAdjoint()}buildAdjoint(){return new ct(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)}times(t){return new ct(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)}}class lt extends ut{sampleGrid(t,e,n,r,o,i,a,s,u,c,l,f,d,h,p,g,m,y,v){const w=ct.quadrilateralToQuadrilateral(r,o,i,a,s,u,c,l,f,d,h,p,g,m,y,v);return this.sampleGridWithTransform(t,e,n,w)}sampleGridWithTransform(t,e,n,r){if(e<=0||n<=0)throw new I;const o=new O(e,n),i=new Float32Array(2*e);for(let s=0;s<n;s++){const e=i.length,n=s+.5;for(let t=0;t<e;t+=2)i[t]=t/2+.5,i[t+1]=n;r.transformPoints(i),ut.checkAndNudgePoints(t,i);try{for(let n=0;n<e;n+=2)t.get(Math.floor(i[n]),Math.floor(i[n+1]))&&o.set(n/2,s)}catch(a){throw new I}}return o}}class ft{static setGridSampler(t){ft.gridSampler=t}static getInstance(){return ft.gridSampler}}ft.gridSampler=new lt;class dt{constructor(t,e){this.x=t,this.y=e}toResultPoint(){return new ot(this.getX(),this.getY())}getX(){return this.x}getY(){return this.y}}class ht{constructor(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}detect(){return this.detectMirror(!1)}detectMirror(t){let e=this.getMatrixCenter(),n=this.getBullsEyeCorners(e);if(t){let t=n[0];n[0]=n[2],n[2]=t}this.extractParameters(n);let r=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[
vendor: 8,046 bytes, line 2
2(this.shift+2)%4],n[(this.shift+3)%4]),o=this.getMatrixCornerPoints(n);return new at(r,o,this.compact,this.nbDataBlocks,this.nbLayers)}extractParameters(t){if(!this.isValidPoint(t[0])||!this.isValidPoint(t[1])||!this.isValidPoint(t[2])||!this.isValidPoint(t[3]))throw new I;let e=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(n,e);let r=0;for(let i=0;i<4;i++){let t=n[(this.shift+i)%4];this.compact?(r<<=7,r+=t>>1&127):(r<<=10,r+=(t>>2&992)+(t>>1&31))}let o=this.getCorrectedParameterData(r,this.compact);this.compact?(this.nbLayers=1+(o>>6),this.nbDataBlocks=1+(63&o)):(this.nbLayers=1+(o>>11),this.nbDataBlocks=1+(2047&o))}getRotation(t,e){let n=0;t.forEach((t,r,o)=>{n=(t>>e-2<<1)+(1&t)+(n<<3)}),n=((1&n)<<11)+(n>>1);for(let r=0;r<4;r++)if(m.bitCount(n^this.EXPECTED_CORNER_BITS[r])<=2)return r;throw new I}getCorrectedParameterData(t,e){let n,r;e?(n=7,r=2):(n=10,r=4);let o=n-r,i=new Int32Array(n);for(let u=n-1;u>=0;--u)i[u]=15&t,t>>=4;try{new tt(Q.AZTEC_PARAM).decode(i,o)}catch(s){throw new I}let a=0;for(let u=0;u<r;u++)a=(a<<4)+i[u];return a}getBullsEyeCorners(t){let e=t,n=t,r=t,o=t,i=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){let t=this.getFirstDifferent(e,i,1,-1),a=this.getFirstDifferent(n,i,1,1),s=this.getFirstDifferent(r,i,-1,1),u=this.getFirstDifferent(o,i,-1,-1);if(this.nbCenterLayers>2){let n=this.distancePoint(u,t)*this.nbCenterLayers/(this.distancePoint(o,e)*(this.nbCenterLayers+2));if(n<.75||n>1.25||!this.isWhiteOrBlackRectangle(t,a,s,u))break}e=t,n=a,r=s,o=u,i=!i}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new I;this.compact=5===this.nbCenterLayers;let a=new ot(e.getX()+.5,e.getY()-.5),s=new ot(n.getX()+.5,n.getY()+.5),u=new ot(r.getX()-.5,r.getY()+.5),c=new ot(o.getX()-.5,o.getY()-.5);return this.expandSquare([a,s,u,c],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let t,e,n,r;try{let o=new st(this.image).detect();t=o[0],e=o[1],n=o[2],r=o[3]}catch(a){let o=this.image.getWidth()/2,i=this.image.getHeight()/2;t=this.getFirstDifferent(new dt(o+7,i-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new dt(o+7,i+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new dt(o-7,i+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new dt(o-7,i-7),!1,-1,-1).toResultPoint()}let o=nt.round((t.getX()+r.getX()+e.getX()+n.getX())/4),i=nt.round((t.getY()+r.getY()+e.getY()+n.getY())/4);try{let a=new st(this.image,15,o,i).detect();t=a[0],e=a[1],n=a[2],r=a[3]}catch(a){t=this.getFirstDifferent(new dt(o+7,i-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new dt(o+7,i+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new dt(o-7,i+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new dt(o-7,i-7),!1,-1,-1).toResultPoint()}return o=nt.round((t.getX()+r.getX()+e.getX()+n.getX())/4),i=nt.round((t.getY()+r.getY()+e.getY()+n.getY())/4),new dt(o,i)}getMatrixCornerPoints(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())}sampleGrid(t,e,n,r,o){let i=ft.getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,u=a/2+this.nbCenterLayers;return i.sampleGrid(t,a,a,s,s,u,s,u,u,s,u,e.getX(),e.getY(),n.getX(),n.getY(),r.getX(),r.getY(),o.getX(),o.getY())}sampleLine(t,e,n){let r=0,o=this.distanceResultPoint(t,e),i=o/n,a=t.getX(),s=t.getY(),u=i*(e.getX()-t.getX())/o,c=i*(e.getY()-t.getY())/o;for(let l=0;l<n;l++)this.image.get(nt.round(a+l*u),nt.round(s+l*c))&&(r|=1<<n-l-1);return r}isWhiteOrBlackRectangle(t,e,n,r){t=new dt(t.getX()-3,t.getY()+3),e=new dt(e.getX()-3,e.getY()-3),n=new dt(n.getX()+3,n.getY()-3),r=new dt(r.getX()+3,r.getY()+3);let o=this.getColor(r,t);if(0===o)return!1;let i=this.getColor(t,e);return i===o&&(i=this.getColor(e,n),i===o&&(i=this.getColor(n,r),i===o))}getColor(t,e){let n=this.distancePoint(t,e),r=(e.getX()-t.getX())/n,o=(e.getY()-t.getY())/n,i=0,a=t.getX(),s=t.getY(),u=this.image.get(t.getX(),t.getY()),c=Math.ceil(n);for(let f=0;f<c;f++)a+=r,s+=o,this.image.get(nt.round(a),nt.round(s))!==u&&i++;let l=i/n;return l>.1&&l<.9?0:l<=.1===u?1:-1}getFirstDifferent(t,e,n,r){let o=t.getX()+n,i=t.getY()+r;for(;this.isValid(o,i)&&this.image.get(o,i)===e;)o+=n,i+=r;for(o-=n,i-=r;this.isValid(o,i)&&this.image.get(o,i)===e;)o+=n;for(o-=n;this.isValid(o,i)&&this.image.get(o,i)===e;)i+=r;return i-=r,new dt(o,i)}expandSquare(t,e,n){let r=n/(2*e),o=t[0].getX()-t[2].getX(),i=t[0].getY()-t[2].getY(),a=(t[0].getX()+t[2].getX())/2,s=(t[0].getY()+t[2].getY())/2,u=new ot(a+r*o,s+r*i),c=new ot(a-r*o,s-r*i);return o=t[1].getX()-t[3].getX(),i=t[1].getY()-t[3].getY(),a=(t[1].getX()+t[3].getX())/2,s=(t[1].getY()+t[3].getY())/2,[u,new ot(a+r*o,s+r*i),c,new ot(a-r*o,s-r*i)]}isValid(t,e){return t>=0&&t<this.image.getWidth()&&e>0&&e<this.image.getHeight()}isValidPoint(t){let e=nt.round(t.getX()),n=nt.round(t.getY());return this.isValid(e,n)}distancePoint(t,e){return nt.distance(t.getX(),t.getY(),e.getX(),e.getY())}distanceResultPoint(t,e){return nt.distance(t.getX(),t.getY(),e.getX(),e.getY())}getDimension(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(m.truncDivision(this.nbLayers-4,8)+1)+15}}class pt{decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null,r=new ht(t.getBlackMatrix()),o=null,i=null;try{let t=r.detectMirror(!1);o=t.getPoints(),this.reportFoundResultPoints(e,o),i=(new et).decode(t)}catch(c){n=c}if(null==i)try{let t=r.detectMirror(!0);o=t.getPoints(),this.reportFoundResultPoints(e,o),i=(new et).decode(t)}catch(c){if(null!=n)throw n;throw c}let a=new B(i.getText(),i.getRawBytes(),i.getNumBits(),o,F.AZTEC,d.currentTimeMillis()),s=i.getByteSegments();null!=s&&a.putMetadata(Y.BYTE_SEGMENTS,s);let u=i.getECLevel();return null!=u&&a.putMetadata(Y.ERROR_CORRECTION_LEVEL,u),a}reportFoundResultPoints(t,e){if(null!=t){let n=t.get(w.NEED_RESULT_POINT_CALLBACK);null!=n&&e.forEach((t,e,r)=>{n.foundPossibleResultPoint(t)})}}reset(){}}class gt{decode(t,e){try{return this.doDecode(t,e)}catch(n){if(e&&!0===e.get(w.TRY_HARDER)&&t.isRotateSupported()){const n=t.rotateCounterClockwise(),r=this.doDecode(n,e),o=r.getResultMetadata();let i=270;null!==o&&!0===o.get(Y.ORIENTATION)&&(i+=o.get(Y.ORIENTATION)%360),r.putMetadata(Y.ORIENTATION,i);const a=r.getResultPoints();if(null!==a){const t=n.getHeight();for(let e=0;e<a.length;e++)a[e]=new ot(t-a[e].getY()-1,a[e].getX())}return r}throw new I}}reset(){}doDecode(t,e){const n=t.getWidth(),r=t.getHeight();let o=new y(n);const i=e&&!0===e.get(w.TRY_HARDER),a=Math.max(1,r>>(i?8:5));let s;s=i?r:15;const u=Math.trunc(r/2);for(let f=0;f<s;f++){const i=Math.trunc((f+1)/2),s=u+a*(0===(1&f)?i:-i);if(s<0||s>=r)break;try{o=t.getBlackRow(s,o)}catch(c){continue}for(let t=0;t<2;t++){if(1===t&&(o.reverse(),e&&!0===e.get(w.NEED_RESULT_POINT_CALLBACK))){const t=new Map;e.forEach((e,n)=>t.set(n,e)),t.delete(w.NEED_RESULT_POINT_CALLBACK),e=t}try{const r=this.decodeRow(s,o,e);if(1===t){r.putMetadata(Y.ORIENTATION,180);const t=r.getResultPoints();null!==t&&(t[0]=new ot(n-t[0].getX()-1,t[0].getY()),t[1]=new ot(n-t[1].getX()-1,t[1].getY()))}return r}catch(l){}}}throw new I}static recordPattern(t,e,n){const r=n.length;for(let u=0;u<r;u++)n[u]=0;const o=t.getSize();if(e>=o)throw new I;let i=!t.get(e),a=0,s=e;for(;s<o;){if(t.get(s)!==i)n[a]++;else{if(++a===r)break;n[a]=1,i=!i}s++}if(a!==r&&(a!==r-1||s!==o))throw new I}static recordPatternInReverse(t,e,n){let r=n.length,o=t.get(e);for(;e>0&&r>=0;)t.get(--e)!==o&&(r--,o=!o);if(r>=0)throw new I;gt.recordPattern(t,e+1,n)}static patternMatchVariance(t,e,n){const r=t.length;let o=0,i=0;for(let u=0;u<r;u++)o+=t[u],i+=e[u];if(o<i)return Number.POSITIVE_INFINITY;const a=o/i;n*=a;let s=0;for(let u=0;u<r;u++){const r=t[u],o=e[u]*a,i=r>o?r-o:o-r;if(i>n)return Number.POSITIVE_INFINITY;s+=i}return s/o}}class mt extends gt{static findStartPattern(t){const e=t.getSize(),n=t.getNextSet(0);let r=0,o=Int32Array.from([0,0,0,0,0,0]),i=n,a=!1;for(let s=n;s<e;s++)if(t.get(s)!==a)o[r]++;
vendor: 1,147 bytes, line 2
2else{if(5===r){let e=mt.MAX_AVG_VARIANCE,n=-1;for(let t=mt.CODE_START_A;t<=mt.CODE_START_C;t++){const r=gt.patternMatchVariance(o,mt.CODE_PATTERNS[t],mt.MAX_INDIVIDUAL_VARIANCE);r<e&&(e=r,n=t)}if(n>=0&&t.isRange(Math.max(0,i-(s-i)/2),i,!1))return Int32Array.from([i,s,n]);i+=o[0]+o[1],o=o.slice(2,o.length-1),o[r-1]=0,o[r]=0,r--}else r++;o[r]=1,a=!a}throw new I}static decodeCode(t,e,n){gt.recordPattern(t,n,e);let r=mt.MAX_AVG_VARIANCE,o=-1;for(let i=0;i<mt.CODE_PATTERNS.length;i++){const t=mt.CODE_PATTERNS[i],n=this.patternMatchVariance(e,t,mt.MAX_INDIVIDUAL_VARIANCE);n<r&&(r=n,o=i)}if(o>=0)return o;throw new I}decodeRow(t,e,n){const r=n&&!0===n.get(w.ASSUME_GS1),o=mt.findStartPattern(e),i=o[2];let a=0;const s=new Uint8Array(20);let u;switch(s[a++]=i,i){case mt.CODE_START_A:u=mt.CODE_CODE_A;break;case mt.CODE_START_B:u=mt.CODE_CODE_B;break;case mt.CODE_START_C:u=mt.CODE_CODE_C;break;default:throw new _}let c=!1,f=!1,d="",h=o[0],p=o[1];const g=Int32Array.from([0,0,0,0,0,0]);let m=0,y=0,v=i,b=0,E=!0,C=!1,A=!1;for(;!c;){const t=f;switch(f=!1,m=y,y=mt.decodeCode(e,g,p),s[a++]=y,y!==mt.CODE_STOP&&(E=!0),y!==mt.CODE_STOP&&(b++,v+=b*y),h=
vendor: 5,369 bytes, line 2
2p,p+=g.reduce((t,e)=>t+e,0),y){case mt.CODE_START_A:case mt.CODE_START_B:case mt.CODE_START_C:throw new _}switch(u){case mt.CODE_CODE_A:if(y<64)d+=A===C?String.fromCharCode(" ".charCodeAt(0)+y):String.fromCharCode(" ".charCodeAt(0)+y+128),A=!1;else if(y<96)d+=A===C?String.fromCharCode(y-64):String.fromCharCode(y+64),A=!1;else switch(y!==mt.CODE_STOP&&(E=!1),y){case mt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case mt.CODE_FNC_2:case mt.CODE_FNC_3:break;case mt.CODE_FNC_4_A:!C&&A?(C=!0,A=!1):C&&A?(C=!1,A=!1):A=!0;break;case mt.CODE_SHIFT:f=!0,u=mt.CODE_CODE_B;break;case mt.CODE_CODE_B:u=mt.CODE_CODE_B;break;case mt.CODE_CODE_C:u=mt.CODE_CODE_C;break;case mt.CODE_STOP:c=!0}break;case mt.CODE_CODE_B:if(y<96)d+=A===C?String.fromCharCode(" ".charCodeAt(0)+y):String.fromCharCode(" ".charCodeAt(0)+y+128),A=!1;else switch(y!==mt.CODE_STOP&&(E=!1),y){case mt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case mt.CODE_FNC_2:case mt.CODE_FNC_3:break;case mt.CODE_FNC_4_B:!C&&A?(C=!0,A=!1):C&&A?(C=!1,A=!1):A=!0;break;case mt.CODE_SHIFT:f=!0,u=mt.CODE_CODE_A;break;case mt.CODE_CODE_A:u=mt.CODE_CODE_A;break;case mt.CODE_CODE_C:u=mt.CODE_CODE_C;break;case mt.CODE_STOP:c=!0}break;case mt.CODE_CODE_C:if(y<100)y<10&&(d+="0"),d+=y;else switch(y!==mt.CODE_STOP&&(E=!1),y){case mt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case mt.CODE_CODE_A:u=mt.CODE_CODE_A;break;case mt.CODE_CODE_B:u=mt.CODE_CODE_B;break;case mt.CODE_STOP:c=!0}}t&&(u=u===mt.CODE_CODE_A?mt.CODE_CODE_B:mt.CODE_CODE_A)}const S=p-h;if(p=e.getNextUnset(p),!e.isRange(p,Math.min(e.getSize(),p+(p-h)/2),!1))throw new I;if(v-=b*m,v%103!==m)throw new l;const O=d.length;if(0===O)throw new I;O>0&&E&&(d=u===mt.CODE_CODE_C?d.substring(0,O-2):d.substring(0,O-1));const T=(o[1]+o[0])/2,M=h+S/2,R=s.length,D=new Uint8Array(R);for(let l=0;l<R;l++)D[l]=s[l];const x=[new ot(T,t),new ot(M,t)];return new B(d,D,0,x,F.CODE_128,(new Date).getTime())}}mt.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],mt.MAX_AVG_VARIANCE=.25,mt.MAX_INDIVIDUAL_VARIA
vendor: 4,376 bytes, line 2
2NCE=.7,mt.CODE_SHIFT=98,mt.CODE_CODE_C=99,mt.CODE_CODE_B=100,mt.CODE_CODE_A=101,mt.CODE_FNC_1=102,mt.CODE_FNC_2=97,mt.CODE_FNC_3=96,mt.CODE_FNC_4_A=101,mt.CODE_FNC_4_B=100,mt.CODE_START_A=103,mt.CODE_START_B=104,mt.CODE_START_C=105,mt.CODE_STOP=106;class yt extends gt{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this.usingCheckDigit=t,this.extendedMode=e,this.decodeRowResult="",this.counters=new Int32Array(9)}decodeRow(t,e,n){let r=this.counters;r.fill(0),this.decodeRowResult="";let o,i,a=yt.findAsteriskPattern(e,r),s=e.getNextSet(a[1]),u=e.getSize();do{yt.recordPattern(e,s,r);let t=yt.toNarrowWidePattern(r);if(t<0)throw new I;o=yt.patternToChar(t),this.decodeRowResult+=o,i=s;for(let e of r)s+=e;s=e.getNextSet(s)}while("*"!==o);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);let c,f=0;for(let l of r)f+=l;if(s!==u&&2*(s-i-f)<f)throw new I;if(this.usingCheckDigit){let t=this.decodeRowResult.length-1,e=0;for(let n=0;n<t;n++)e+=yt.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(n));if(this.decodeRowResult.charAt(t)!==yt.ALPHABET_STRING.charAt(e%43))throw new l;this.decodeRowResult=this.decodeRowResult.substring(0,t)}if(0===this.decodeRowResult.length)throw new I;c=this.extendedMode?yt.decodeExtended(this.decodeRowResult):this.decodeRowResult;let d=(a[1]+a[0])/2,h=i+f/2;return new B(c,null,0,[new ot(d,t),new ot(h,t)],F.CODE_39,(new Date).getTime())}static findAsteriskPattern(t,e){let n=t.getSize(),r=t.getNextSet(0),o=0,i=r,a=!1,s=e.length;for(let u=r;u<n;u++)if(t.get(u)!==a)e[o]++;else{if(o===s-1){if(this.toNarrowWidePattern(e)===yt.ASTERISK_ENCODING&&t.isRange(Math.max(0,i-Math.floor((u-i)/2)),i,!1))return[i,u];i+=e[0]+e[1],e.copyWithin(0,2,2+o-1),e[o-1]=0,e[o]=0,o--}else o++;e[o]=1,a=!a}throw new I}static toNarrowWidePattern(t){let e,n=t.length,r=0;do{let o=2147483647;for(let e of t)e<o&&e>r&&(o=e);r=o,e=0;let i=0,a=0;for(let s=0;s<n;s++){let o=t[s];o>r&&(a|=1<<n-1-s,e++,i+=o)}if(3===e){for(let o=0;o<n&&e>0;o++){let n=t[o];if(n>r&&(e--,2*n>=i))return-1}return a}}while(e>3);return-1}static patternToChar(t){for(let e=0;e<yt.CHARACTER_ENCODINGS.length;e++)if(yt.CHARACTER_ENCODINGS[e]===t)return yt.ALPHABET_STRING.charAt(e);if(t===yt.ASTERISK_ENCODING)return"*";throw new I}static decodeExtended(t){let e=t.length,n="";for(let r=0;r<e;r++){let e=t.charAt(r);if("+"===e||"$"===e||"%"===e||"/"===e){let o=t.charAt(r+1),i="\0";switch(e){case"+":if(!(o>="A"&&o<="Z"))throw new _;i=String.fromCharCode(o.charCodeAt(0)+32);break;case"$":if(!(o>="A"&&o<="Z"))throw new _;i=String.fromCharCode(o.charCodeAt(0)-64);break;case"%":if(o>="A"&&o<="E")i=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")i=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")i=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")i=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)i="\0";else if("V"===o)i="@";else if("W"===o)i="`";else{if("X"!==o&&"Y"!==o&&"Z"!==o)throw new _;i="\x7f"}break;case"/":if(o>="A"&&o<="O")i=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new _;i=":"}}n+=i,r++}else n+=e}return n}}yt.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",yt.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],yt.ASTERISK_ENCODING=148;class vt extends gt{constructor(){super(...arguments),this.narrowLineWidth=-1}decodeRow(t,e,n){let r=this.decodeStart(e),o=this.decodeEnd(e),i=new S;vt.decodeMiddle(e,r[1],o[0],i);let a=i.toString(),s=null;null!=n&&(s=n.get(w.ALLOWED_LENGTHS)),null==s&&(s=vt.DEFAULT_ALLOWED_LENGTHS);let u=a.length,c=!1,l=0;for(let d of s){if(u===d){c=!0;break}d>l&&(l=d)}if(!c&&u>l&&(c=!0),!c)throw new _;const f=[new ot(r[1],t),new ot(o[0],t)];return new B(a,null,0,f,F.ITF,(new Date).getTime())}static decodeMiddle(t,e,n,r){let o=new Int32Array(10),i=new Int32Array(5),a=new Int32Array(5);for(o.fill(0),i.fill(0),a.fill(0);e<n;){gt.recordPattern(t,e,o);for(let t=0;t<5;t++){let e=2*t;i[t]=o[e],a[t]=o[e+1]}let n=vt.decodeDigit(i);r.append(n.toString()),n=this.decodeDigit(a),r.append(n.toString()),o.forEach((function(t){e+=t}))}}decodeStart(t){let e=vt.skipWhiteSpace(t),n=vt.findGuardPattern(t,e,vt.START_PATTERN);
vendor: 7,948 bytes, line 2
2return this.narrowLineWidth=(n[1]-n[0])/4,this.validateQuietZone(t,n[0]),n}validateQuietZone(t,e){let n=10*this.narrowLineWidth;n=n<e?n:e;for(let r=e-1;n>0&&r>=0&&!t.get(r);r--)n--;if(0!==n)throw new I}static skipWhiteSpace(t){const e=t.getSize(),n=t.getNextSet(0);if(n===e)throw new I;return n}decodeEnd(t){t.reverse();try{let n,r=vt.skipWhiteSpace(t);try{n=vt.findGuardPattern(t,r,vt.END_PATTERN_REVERSED[0])}catch(e){e instanceof I&&(n=vt.findGuardPattern(t,r,vt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,n[0]);let o=n[0];return n[0]=t.getSize()-n[1],n[1]=t.getSize()-o,n}finally{t.reverse()}}static findGuardPattern(t,e,n){let r=n.length,o=new Int32Array(r),i=t.getSize(),a=!1,s=0,u=e;o.fill(0);for(let c=e;c<i;c++)if(t.get(c)!==a)o[s]++;else{if(s===r-1){if(gt.patternMatchVariance(o,n,vt.MAX_INDIVIDUAL_VARIANCE)<vt.MAX_AVG_VARIANCE)return[u,c];u+=o[0]+o[1],d.arraycopy(o,2,o,0,s-1),o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,a=!a}throw new I}static decodeDigit(t){let e=vt.MAX_AVG_VARIANCE,n=-1,r=vt.PATTERNS.length;for(let o=0;o<r;o++){let r=vt.PATTERNS[o],i=gt.patternMatchVariance(t,r,vt.MAX_INDIVIDUAL_VARIANCE);i<e?(e=i,n=o):i===e&&(n=-1)}if(n>=0)return n%10;throw new I}}vt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],vt.MAX_AVG_VARIANCE=.38,vt.MAX_INDIVIDUAL_VARIANCE=.5,vt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],vt.START_PATTERN=Int32Array.from([1,1,1,1]),vt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class wt extends gt{constructor(){super(...arguments),this.decodeRowStringBuffer=""}static findStartGuardPattern(t){let e,n=!1,r=0,o=Int32Array.from([0,0,0]);for(;!n;){o=Int32Array.from([0,0,0]),e=wt.findGuardPattern(t,r,!1,this.START_END_PATTERN,o);let i=e[0];r=e[1];let a=i-(r-i);a>=0&&(n=t.isRange(a,i,!1))}return e}static checkChecksum(t){return wt.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let n=parseInt(t.charAt(e-1),10);return wt.getStandardUPCEANChecksum(t.substring(0,e-1))===n}static getStandardUPCEANChecksum(t){let e=t.length,n=0;for(let r=e-1;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new _;n+=e}n*=3;for(let r=e-2;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new _;n+=e}return(1e3-n)%10}static decodeEnd(t,e){return wt.findGuardPattern(t,e,!1,wt.START_END_PATTERN,new Int32Array(wt.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(t,e,n,r){return this.findGuardPattern(t,e,n,r,new Int32Array(r.length))}static findGuardPattern(t,e,n,r,o){let i=t.getSize(),a=0,s=e=n?t.getNextUnset(e):t.getNextSet(e),u=r.length,c=n;for(let l=e;l<i;l++)if(t.get(l)!==c)o[a]++;else{if(a===u-1){if(gt.patternMatchVariance(o,r,wt.MAX_INDIVIDUAL_VARIANCE)<wt.MAX_AVG_VARIANCE)return Int32Array.from([s,l]);s+=o[0]+o[1];let t=o.slice(2,o.length-1);for(let e=0;e<a-1;e++)o[e]=t[e];o[a-1]=0,o[a]=0,a--}else a++;o[a]=1,c=!c}throw new I}static decodeDigit(t,e,n,r){this.recordPattern(t,n,e);let o=this.MAX_AVG_VARIANCE,i=-1,a=r.length;for(let s=0;s<a;s++){let t=r[s],n=gt.patternMatchVariance(e,t,wt.MAX_INDIVIDUAL_VARIANCE);n<o&&(o=n,i=s)}if(i>=0)return i;throw new I}}wt.MAX_AVG_VARIANCE=.48,wt.MAX_INDIVIDUAL_VARIANCE=.7,wt.START_END_PATTERN=Int32Array.from([1,1,1]),wt.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),wt.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),wt.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])];class _t{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,n){let r=this.decodeRowStringBuffer,o=this.decodeMiddle(e,n,r),i=r.toString(),a=_t.parseExtensionString(i),s=[new ot((n[0]+n[1])/2,t),new ot(o,t)],u=new B(i,null,0,s,F.UPC_EAN_EXTENSION,(new Date).getTime());return null!=a&&u.putAllMetadata(a),u}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let o=t.getSize(),i=e[1],a=0;for(let u=0;u<5&&i<o;u++){let e=wt.decodeDigit(t,r,i,wt.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e%10);for(let t of r)i+=t;e>=10&&(a|=1<<4-u),4!==u&&(i=t.getNextSet(i),i=t.getNextUnset(i))}if(5!==n.length)throw new I;let s=this.determineCheckDigit(a);if(_t.extensionChecksum(n.toString())!==s)throw new I;return i}static extensionChecksum(t){let e=t.length,n=0;for(let r=e-2;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(let r=e-1;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return n*=3,n%10}determineCheckDigit(t){for(let e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new I}static parseExtensionString(t){if(5!==t.length)return null;let e=_t.parseExtension5String(t);return null==e?null:new Map([[Y.SUGGESTED_PRICE,e]])}static parseExtension5String(t){let e;switch(t.charAt(0)){case"0":e="\xa3";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}let n=parseInt(t.substring(1)),r=n%100;return e+(n/100).toString()+"."+(r<10?"0"+r:r.toString())}}class bt{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,n){let r=this.decodeRowStringBuffer,o=this.decodeMiddle(e,n,r),i=r.toString(),a=bt.parseExtensionString(i),s=[new ot((n[0]+n[1])/2,t),new ot(o,t)],u=new B(i,null,0,s,F.UPC_EAN_EXTENSION,(new Date).getTime());return null!=a&&u.putAllMetadata(a),u}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let o=t.getSize(),i=e[1],a=0;for(let s=0;s<2&&i<o;s++){let e=wt.decodeDigit(t,r,i,wt.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e%10);for(let t of r)i+=t;e>=10&&(a|=1<<1-s),1!==s&&(i=t.getNextSet(i),i=t.getNextUnset(i))}if(2!==n.length)throw new I;if(parseInt(n.toString())%4!==a)throw new I;return i}static parseExtensionString(t){return 2!==t.length?null:new Map([[Y.ISSUE_NUMBER,parseInt(t)]])}}class Et{static decodeRow(t,e,n){let r=wt.findGuardPattern(e,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new _t).decodeRow(t,e,r)}catch(o){return(new bt).decodeRow(t,e,r)}}}Et.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class Ct extends wt{constructor(){super(),this.decodeRowStringBuffer="",Ct.L_AND_G_PATTERNS=Ct.L_PATTERNS.map(t=>Int32Array.from(t));for(let t=10;t<20;t++){let e=Ct.L_PATTERNS[t-10],n=new Int32Array(e.length);for(let t=0;t<e.length;t++)n[t]=e[e.length-t-1];Ct.L_AND_G_PATTERNS[t]=n}}decodeRow(t,e,n){let r=Ct.findStartGuardPattern(e),o=null==n?null:n.get(w.NEED_RESULT_POINT_CALLBACK);if(null!=o){const e=new ot((r[0]+r[1])/2,t);o.foundPossibleResultPoint(e)}let i=this.decodeMiddle(e,r,this.decodeRowStringBuffer),a=i.rowOffset,s=i.resultString;if(null!=o){const e=new ot(a,t);o.foundPossibleResultPoint(e)}let u=this.decodeEnd(e,a);if(null!=o){const e=new ot((u[0]+u[1])/2,t);o.foundPossibleResultPoint(e)}let c=u[1],f=c+(c-u[0]);if(f>=e.getSize()||!e.isRange(c,f,!1))throw new I;let d=s.toString();if(d.length<8)throw new _;if(!Ct.checkChecksum(d))throw new l;let h=(r[1]+r[0])/2,p=(u[1]+u[0])/2,g=this.getBarcodeFormat(),m=[new ot(h,t),new ot(p,t)],y=new B(d,null,0,m,g,(ne
vendor: 64,939 bytes, line 2
2w Date).getTime()),v=0;try{let n=Et.decodeRow(t,e,u[1]);y.putMetadata(Y.UPC_EAN_EXTENSION,n.getText()),y.putAllMetadata(n.getResultMetadata()),y.addResultPoints(n.getResultPoints()),v=n.getText().length}catch(E){}let b=null==n?null:n.get(w.ALLOWED_EAN_EXTENSIONS);if(null!=b){let t=!1;for(let e in b)if(v.toString()===e){t=!0;break}if(!t)throw new I}return y}decodeEnd(t,e){return Ct.findGuardPattern(t,e,!1,Ct.START_END_PATTERN,new Int32Array(Ct.START_END_PATTERN.length).fill(0))}static checkChecksum(t){return Ct.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let n=parseInt(t.charAt(e-1),10);return Ct.getStandardUPCEANChecksum(t.substring(0,e-1))===n}static getStandardUPCEANChecksum(t){let e=t.length,n=0;for(let r=e-1;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new _;n+=e}n*=3;for(let r=e-2;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new _;n+=e}return(1e3-n)%10}}class At extends Ct{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let o=t.getSize(),i=e[1],a=0;for(let s=0;s<6&&i<o;s++){let e=Ct.decodeDigit(t,r,i,Ct.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e%10);for(let t of r)i+=t;e>=10&&(a|=1<<5-s)}n=At.determineFirstDigit(n,a),i=Ct.findGuardPattern(t,i,!0,Ct.MIDDLE_PATTERN,new Int32Array(Ct.MIDDLE_PATTERN.length).fill(0))[1];for(let s=0;s<6&&i<o;s++){let e=Ct.decodeDigit(t,r,i,Ct.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)i+=t}return{rowOffset:i,resultString:n}}getBarcodeFormat(){return F.EAN_13}static determineFirstDigit(t,e){for(let n=0;n<10;n++)if(e===this.FIRST_DIGIT_ENCODINGS[n])return t=String.fromCharCode("0".charCodeAt(0)+n)+t;throw new I}}At.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26];class St extends Ct{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,n){const r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let o=t.getSize(),i=e[1];for(let a=0;a<4&&i<o;a++){let e=Ct.decodeDigit(t,r,i,Ct.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)i+=t}i=Ct.findGuardPattern(t,i,!0,Ct.MIDDLE_PATTERN,new Int32Array(Ct.MIDDLE_PATTERN.length).fill(0))[1];for(let a=0;a<4&&i<o;a++){let e=Ct.decodeDigit(t,r,i,Ct.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)i+=t}return{rowOffset:i,resultString:n}}getBarcodeFormat(){return F.EAN_8}}class Ot extends Ct{constructor(){super(...arguments),this.ean13Reader=new At}getBarcodeFormat(){return F.UPC_A}decode(t,e){return this.maybeReturnResult(this.ean13Reader.decode(t))}decodeRow(t,e,n){return this.maybeReturnResult(this.ean13Reader.decodeRow(t,e,n))}decodeMiddle(t,e,n){return this.ean13Reader.decodeMiddle(t,e,n)}maybeReturnResult(t){let e=t.getText();if("0"===e.charAt(0)){let n=new B(e.substring(1),null,null,t.getResultPoints(),F.UPC_A);return null!=t.getResultMetadata()&&n.putAllMetadata(t.getResultMetadata()),n}throw new I}reset(){this.ean13Reader.reset()}}class It extends Ct{constructor(){super(),this.decodeMiddleCounters=new Int32Array(4)}decodeMiddle(t,e,n){const r=this.decodeMiddleCounters.map(t=>t);r[0]=0,r[1]=0,r[2]=0,r[3]=0;const o=t.getSize();let i=e[1],a=0;for(let s=0;s<6&&i<o;s++){const e=It.decodeDigit(t,r,i,It.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e%10);for(let t of r)i+=t;e>=10&&(a|=1<<5-s)}return{rowOffset:i,resultString:It.determineNumSysAndCheckDigit(n,a)}}decodeEnd(t,e){return It.findGuardPatternWithoutCounters(t,e,!0,It.MIDDLE_END_PATTERN)}checkChecksum(t){return Ct.checkChecksum(It.convertUPCEtoUPCA(t))}static determineNumSysAndCheckDigit(t,e){for(let n=0;n<=1;n++)for(let r=0;r<10;r++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[n][r])return String.fromCharCode("0".charCodeAt(0)+n)+t+String.fromCharCode("0".charCodeAt(0)+r);throw I.getNotFoundInstance()}getBarcodeFormat(){return F.UPC_E}static convertUPCEtoUPCA(t){const e=t.slice(1,7).split("").map(t=>t.charCodeAt(0)),n=new S;n.append(t.charAt(0));let r=e[5];switch(r){case 0:case 1:case 2:n.appendChars(e,0,2),n.append(r),n.append("0000"),n.appendChars(e,2,3);break;case 3:n.appendChars(e,0,3),n.append("00000"),n.appendChars(e,3,2);break;case 4:n.appendChars(e,0,4),n.append("00000"),n.append(e[4]);break;default:n.appendChars(e,0,5),n.append("0000"),n.append(r)}return t.length>=8&&n.append(t.charAt(7)),n.toString()}}It.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),It.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,26])];class Tt extends gt{constructor(t){super();let e=null==t?null:t.get(w.POSSIBLE_FORMATS),r=[];n(e)?(r.push(new At),r.push(new Ot),r.push(new St),r.push(new It)):(e.indexOf(F.EAN_13)>-1&&r.push(new At),e.indexOf(F.UPC_A)>-1&&r.push(new Ot),e.indexOf(F.EAN_8)>-1&&r.push(new St),e.indexOf(F.UPC_E)>-1&&r.push(new It)),this.readers=r}decodeRow(t,e,n){for(let o of this.readers)try{const r=o.decodeRow(t,e,n),i=r.getBarcodeFormat()===F.EAN_13&&"0"===r.getText().charAt(0),a=null==n?null:n.get(w.POSSIBLE_FORMATS),s=null==a||a.includes(F.UPC_A);if(i&&s){const t=r.getRawBytes(),e=new B(r.getText().substring(1),t,t?t.length:null,r.getResultPoints(),F.UPC_A);return e.putAllMetadata(r.getResultMetadata()),e}return r}catch(r){}throw new I}reset(){for(let t of this.readers)t.reset()}}class Mt extends gt{constructor(){super(),this.decodeFinderCounters=new Int32Array(4),this.dataCharacterCounters=new Int32Array(8),this.oddRoundingErrors=new Array(4),this.evenRoundingErrors=new Array(4),this.oddCounts=new Array(this.dataCharacterCounters.length/2),this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(t,e){for(let n=0;n<e.length;n++)if(gt.patternMatchVariance(t,e[n],Mt.MAX_INDIVIDUAL_VARIANCE)<Mt.MAX_AVG_VARIANCE)return n;throw new I}static count(t){return nt.sum(new Int32Array(t))}static increment(t,e){let n=0,r=e[0];for(let o=1;o<t.length;o++)e[o]>r&&(r=e[o],n=o);t[n]++}static decrement(t,e){let n=0,r=e[0];for(let o=1;o<t.length;o++)e[o]<r&&(r=e[o],n=o);t[n]--}static isFinderPattern(t){let e=t[0]+t[1],n=e/(e+t[2]+t[3]);if(n>=Mt.MIN_FINDER_PATTERN_RATIO&&n<=Mt.MAX_FINDER_PATTERN_RATIO){let e=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;for(let r of t)r>n&&(n=r),r<e&&(e=r);return n<10*e}return!1}}Mt.MAX_AVG_VARIANCE=.2,Mt.MAX_INDIVIDUAL_VARIANCE=.45,Mt.MIN_FINDER_PATTERN_RATIO=9.5/12,Mt.MAX_FINDER_PATTERN_RATIO=12.5/14;class Rt{constructor(t,e){this.value=t,this.checksumPortion=e}getValue(){return this.value}getChecksumPortion(){return this.checksumPortion}toString(){return this.value+"("+this.checksumPortion+")"}equals(t){if(!(t instanceof Rt))return!1;const e=t;return this.value===e.value&&this.checksumPortion===e.checksumPortion}hashCode(){return this.value^this.checksumPortion}}class Dt{constructor(t,e,n,r,o){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new ot(n,o)),this.resultPoints.push(new ot(r,o))}getValue(){return this.value}getStartEnd(){return this.startEnd}getResultPoints(){return this.resultPoints}equals(t){if(!(t instanceof Dt))return!1;const e=t;return this.value===e.value}hashCode(){return this.value}}class xt{constructor(){}static getRSSvalue(t,e,n){let r=0;for(let s of t)r+=s;let o=0,i=0,a=t.length;for(let s=0;s<a-1;s++){let u;for(u=1,i|=1<<s;u<t[s];u++,i&=~(1<<s)){let t=xt.combins(r-u-1,a-s-2);if(n&&0===i&&r-u-(a-s-1)>=a-s-1&&(t-=xt.combins(r-u-(a-s),a-s-2)),a-s-1>1){let n=0;for(let t=r-u-(a-s-2);t>e;t--)n+=xt.combins(r-u-t-1,a-s-3);t-=n*(a-1-s)}else r-u>e&&t--;o+=t}r-=u}return o}static combins(t,e){let n,r;t-e>e?(r=e,n=t-e):(r=t-e,n=e);let o=1,i=1;for(let a=t;a>n;a--)o*=a,i<=r&&(o/=i,i++);for(;i<=r;)o/=i,i++;return o}}class Nt{constructor(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}getDecodedInformation(){return this.decodedInformation}isFinished(){return this.finished}}class Pt{constructor(t){this.newPosition=t}getNewPosition(){return this.newPosition}}class Lt extends Pt{constructor(t,e){super(t),this.value=e}getValue(){return this.value}isFNC1(){return this.value===Lt.FNC1}}Lt.FNC1="$";class kt extends Pt{constructor(t,e,n){super(t),n?(this.remaining=!0,this.remainingValue=this.remainingValue):(this.remaining=!1,this.remainingValue=0),this.newString=e}getNewString(){return this.newString}isRemaining(){return this.remaining}getRemainingValue(){return this.remainingValue}}class Bt extends Pt{constructor(t,e,n){if(super(t),e<0||e>10||n<0||n>10)throw new _;this.firstDigit=e,this.secondDigit=n}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return 10*this.firstDigit+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===Bt.FNC1}isSecondDigitFNC1(){return this.secondDigit===Bt.FNC1}isAnyFNC1(){return this.firstDigit===Bt.FNC1||this.secondDigit===Bt.FNC1}}Bt.FNC1=10;class jt{constructor(){}static parseFieldsInGeneralPurpose(t){if(!t)return null;if(t.length<2)throw new I;let e=t.substring(0,2);for(let o of jt.TWO_DIGIT_DATA_LENGTH)if(o[0]===e)return o[1]===jt.VARIABLE_LENGTH?jt.processVariableAI(2,o[2],t):jt.processFixedAI(2,o[1],t);if(t.length<3)throw new I;let n=t.substring(0,3);for(let o of jt.THREE_DIGIT_DATA_LENGTH)if(o[0]===n)return o[1]===jt.VARIABLE_LENGTH?jt.processVariableAI(3,o[2],t):jt.processFixedAI(3,o[1],t);for(let o of jt.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(o[0]===n)return o[1]===jt.VARIABLE_LENGTH?jt.processVariableAI(4,o[2],t):jt.processFixedAI(4,o[1],t);if(t.length<4)throw new I;let r=t.substring(0,4);for(let o of jt.FOUR_DIGIT_DATA_LENGTH)if(o[0]===r)return o[1]===jt.VARIABLE_LENGTH?jt.processVariableAI(4,o[2],t):jt.processFixedAI(4,o[1],t);throw new I}static processFixedAI(t,e,n){if(n.length<t)throw new I;let r=n.substring(0,t);if(n.length<t+e)throw new I;let o=n.substring(t,t+e),i=n.substring(t+e),a="("+r+")"+o,s=jt.parseFieldsInGeneralPurpose(i);return null==s?a:a+s}static processVariableAI(t,e,n){let r,o=n.substring(0,t);r=n.length<t+e?n.length:t+e;let i=n.substring(t,r),a=n.substring(r),s="("+o+")"+i,u=jt.parseFieldsInGeneralPurpose(a);return null==u?s:s+u}}jt.VARIABLE_LENGTH=[],jt.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",jt.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",jt.VARIABLE_LENGTH,20],["22",jt.VARIABLE_LENGTH,29],["30",jt.VARIABLE_LENGTH,8],["37",jt.VARIABLE_LENGTH,8],["90",jt.VARIABLE_LENGTH,30],["91",jt.VARIABLE_LENGTH,30],["92",jt.VARIABLE_LENGTH,30],["93",jt.VARIABLE_LENGTH,30],["94",jt.VARIABLE_LENGTH,30],["95",jt.VARIABLE_LENGTH,30],["96",jt.VARIABLE_LENGTH,30],["97",jt.VARIABLE_LENGTH,3],["98",jt.VARIABLE_LENGTH,30],["99",jt.VARIABLE_LENGTH,30]],jt.THREE_DIGIT_DATA_LENGTH=[["240",jt.VARIABLE_LENGTH,30],["241",jt.VARIABLE_LENGTH,30],["242",jt.VARIABLE_LENGTH,6],["250",jt.VARIABLE_LENGTH,30],["251",jt.VARIABLE_LENGTH,30],["253",jt.VARIABLE_LENGTH,17],["254",jt.VARIABLE_LENGTH,20],["400",jt.VARIABLE_LENGTH,30],["401",jt.VARIABLE_LENGTH,30],["402",17],["403",jt.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",jt.VARIABLE_LENGTH,20],["421",jt.VARIABLE_LENGTH,15],["422",3],["423",jt.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],jt.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",jt.VARIABLE_LENGTH,15],["391",jt.VARIABLE_LENGTH,18],["392",jt.VARIABLE_LENGTH,15],["393",jt.VARIABLE_LENGTH,18],["703",jt.VARIABLE_LENGTH,30]],jt.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",jt.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",jt.VARIABLE_LENGTH,20],["8003",jt.VARIABLE_LENGTH,30],["8004",jt.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",jt.VARIABLE_LENGTH,30],["8008",jt.VARIABLE_LENGTH,12],["8018",18],["8020",jt.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",jt.VARIABLE_LENGTH,70],["8200",jt.VARIABLE_LENGTH,70]];class Ft{constructor(t){this.buffer=new S,this.information=t}decodeAllCodes(t,e){let n=e,r=null;for(;;){let e=this.decodeGeneralPurposeField(n,r),o=jt.parseFieldsInGeneralPurpose(e.getNewString());if(null!=o&&t.append(o),r=e.isRemaining()?""+e.getRemainingValue():null,n===e.getNewPosition())break;n=e.getNewPosition()}return t.toString()}isStillNumeric(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(let e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)}decodeNumeric(t){if(t+7>this.information.getSize()){let e=this.extractNumericValueFromBitArray(t,4);return new Bt(this.information.getSize(),0===e?Bt.FNC1:e-1,Bt.FNC1)}let e=this.extractNumericValueFromBitArray(t,7);return new Bt(t+7,(e-8)/11,(e-8)%11)}extractNumericValueFromBitArray(t,e){return Ft.extractNumericValueFromBitArray(this.information,t,e)}static extractNumericValueFromBitArray(t,e,n){let r=0;for(let o=0;o<n;++o)t.get(e+o)&&(r|=1<<n-o-1);return r}decodeGeneralPurposeField(t,e){this.buffer.setLengthToZero(),null!=e&&this.buffer.append(e),this.current.setPosition(t);let n=this.parseBlocks();return null!=n&&n.isRemaining()?new kt(this.current.getPosition(),this.buffer.toString(),n.getRemainingValue()):new kt(this.current.getPosition(),this.buffer.toString())}parseBlocks(){let t,e;do{let n=this.current.getPosition();if(this.current.isAlpha()?(e=this.parseAlphaBlock(),t=e.isFinished()):this.current.isIsoIec646()?(e=this.parseIsoIec646Block(),t=e.isFinished()):(e=this.parseNumericBlock(),t=e.isFinished()),n===this.current.getPosition()&&!t)break}while(!t);return e.getDecodedInformation()}parseNumericBlock(){for(;this.isStillNumeric(this.current.getPosition());){let t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){let e;return e=t.isSecondDigitFNC1()?new kt(this.current.getPosition(),this.buffer.toString()):new kt(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new Nt(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1()){let t=new kt(this.current.getPosition(),this.buffer.toString());return new Nt(!0,t)}this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new Nt(!1)}parseIsoIec646Block(){for(;this.isStillIsoIec646(this.current.getPosition());){let t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){let t=new kt(this.current.getPosition(),this.buffer.toString());return new Nt(!0,t)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new Nt(!1)}parseAlphaBlock(){for(;this.isStillAlpha(this.current.getPosition());){let t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){let t=new kt(this.current.getPosition(),this.buffer.toString());return new Nt(!0,t)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new Nt(!1)}isStillIsoIec646(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<116)return!0;if(t+8>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,8);return r>=232&&r<253}decodeIsoIec646(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new Lt(t+5,Lt.FNC1);if(e>=5&&e<15)return new Lt(t+5,"0"+(e-5));let n,r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<90)return new Lt(t+7,""+(r+1));if(r>=90&&r<116)return new Lt(t+7,""+(r+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:n="!";break;case 233:n='"';break;case 234:n="%";break;case 235:n="&";break;case 236:n="'";break;case 237:n="(";break;case 238:n=")";break;case 239:n="*";break;case 240:n="+";break;case 241:n=",";break;case 242:n="-";break;case 243:n=".";break;case 244:n="/";break;case 245:n=":";break;case 246:n=";";break;case 247:n="<";break;case 248:n="=";break;case 249:n=">";break;case 250:n="?";break;case 251:n="_";break;case 252:n=" ";break;default:throw new _}return new Lt(t+8,n)}isStillAlpha(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,6);return n>=16&&n<63}decodeAlphanumeric(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new Lt(t+5,Lt.FNC1);if(e>=5&&e<15)return new Lt(t+5,"0"+(e-5));let n,r=this.extractNumericValueFromBitArray(t,6);if(r>=32&&r<58)return new Lt(t+6,""+(r+33));switch(r){case 58:n="*";break;case 59:n=",";break;case 60:n="-";break;case 61:n=".";break;case 62:n="/";break;default:throw new $("Decoding invalid alphanumeric value: "+r)}return new Lt(t+6,n)}isAlphaTo646ToAlphaLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<5&&e+t<this.information.getSize();++e)if(2===e){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0}isAlphaOr646ToNumericLatch(t){if(t+3>this.information.getSize())return!1;for(let e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0}isNumericToAlphaNumericLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0}}class Ut{constructor(t){this.information=t,this.generalDecoder=new Ft(t)}getInformation(){return this.information}getGeneralDecoder(){return this.generalDecoder}}class zt extends Ut{constructor(t){super(t)}encodeCompressedGtin(t,e){t.append("(01)");let n=t.length();t.append("9"),this.encodeCompressedGtinWithoutAI(t,e,n)}encodeCompressedGtinWithoutAI(t,e,n){for(let r=0;r<4;++r){let n=this.getGeneralDecoder().extractNumericValueFromBitArray(e+10*r,10);n/100===0&&t.append("0"),n/10===0&&t.append("0"),t.append(n)}zt.appendCheckDigit(t,n)}static appendCheckDigit(t,e){let n=0;for(let r=0;r<13;r++){let o=t.charAt(r+e).charCodeAt(0)-"0".charCodeAt(0);n+=0===(1&r)?3*o:o}n=10-n%10,10===n&&(n=0),t.append(n)}}zt.GTIN_SIZE=40;class Vt extends zt{constructor(t){super(t)}parseInformation(){let t=new S;t.append("(01)");let e=t.length(),n=this.getGeneralDecoder().extractNumericValueFromBitArray(Vt.HEADER_SIZE,4);return t.append(n),this.encodeCompressedGtinWithoutAI(t,Vt.HEADER_SIZE+4,e),this.getGeneralDecoder().decodeAllCodes(t,Vt.HEADER_SIZE+44)}}Vt.HEADER_SIZE=4;class Ht extends Ut{constructor(t){super(t)}parseInformation(){let t=new S;return this.getGeneralDecoder().decodeAllCodes(t,Ht.HEADER_SIZE)}}Ht.HEADER_SIZE=5;class Wt extends zt{constructor(t){super(t)}encodeCompressedWeight(t,e,n){let r=this.getGeneralDecoder().extractNumericValueFromBitArray(e,n);this.addWeightCode(t,r);let o=this.checkWeight(r),i=1e5;for(let a=0;a<5;++a)o/i===0&&t.append("0"),i/=10;t.append(o)}}class Gt extends Wt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()!=Gt.HEADER_SIZE+Wt.GTIN_SIZE+Gt.WEIGHT_SIZE)throw new I;let t=new S;return this.encodeCompressedGtin(t,Gt.HEADER_SIZE),this.encodeCompressedWeight(t,Gt.HEADER_SIZE+Wt.GTIN_SIZE,Gt.WEIGHT_SIZE),t.toString()}}Gt.HEADER_SIZE=5,Gt.WEIGHT_SIZE=15;class Yt extends Gt{constructor(t){super(t)}addWeightCode(t,e){t.append("(3103)")}checkWeight(t){return t}}class Xt extends Gt{constructor(t){super(t)}addWeightCode(t,e){e<1e4?t.append("(3202)"):t.append("(3203)")}checkWeight(t){return t<1e4?t:t-1e4}}class Zt extends zt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()<Zt.HEADER_SIZE+zt.GTIN_SIZE)throw new I;let t=new S;this.encodeCompressedGtin(t,Zt.HEADER_SIZE);let e=this.getGeneralDecoder().extractNumericValueFromBitArray(Zt.HEADER_SIZE+zt.GTIN_SIZE,Zt.LAST_DIGIT_SIZE);t.append("(392"),t.append(e),t.append(")");let n=this.getGeneralDecoder().decodeGeneralPurposeField(Zt.HEADER_SIZE+zt.GTIN_SIZE+Zt.LAST_DIGIT_SIZE,null);return t.append(n.getNewString()),t.toString()}}Zt.HEADER_SIZE=8,Zt.LAST_DIGIT_SIZE=2;class qt extends zt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()<qt.HEADER_SIZE+zt.GTIN_SIZE)throw new I;let t=new S;this.encodeCompressedGtin(t,qt.HEADER_SIZE);let e=this.getGeneralDecoder().extractNumericValueFromBitArray(qt.HEADER_SIZE+zt.GTIN_SIZE,qt.LAST_DIGIT_SIZE);t.append("(393"),t.append(e),t.append(")");let n=this.getGeneralDecoder().extractNumericValueFromBitArray(qt.HEADER_SIZE+zt.GTIN_SIZE+qt.LAST_DIGIT_SIZE,qt.FIRST_THREE_DIGITS_SIZE);n/100==0&&t.append("0"),n/10==0&&t.append("0"),t.append(n);let r=this.getGeneralDecoder().decodeGeneralPurposeField(qt.HEADER_SIZE+zt.GTIN_SIZE+qt.LAST_DIGIT_SIZE+qt.FIRST_THREE_DIGITS_SIZE,null);return t.append(r.getNewString()),t.toString()}}qt.HEADER_SIZE=8,qt.LAST_DIGIT_SIZE=2,qt.FIRST_THREE_DIGITS_SIZE=10;class Kt extends Wt{constructor(t,e,n){super(t),this.dateCode=n,this.firstAIdigits=e}parseInformation(){if(this.getInformation().getSize()!=Kt.HEADER_SIZE+Kt.GTIN_SIZE+Kt.WEIGHT_SIZE+Kt.DATE_SIZE)throw new I;let t=new S;return this.encodeCompressedGtin(t,Kt.HEADER_SIZE),this.encodeCompressedWeight(t,Kt.HEADER_SIZE+Kt.GTIN_SIZE,Kt.WEIGHT_SIZE),this.encodeCompressedDate(t,Kt.HEADER_SIZE+Kt.GTIN_SIZE+Kt.WEIGHT_SIZE),t.toString()}encodeCompressedDate(t,e){let n=this.getGeneralDecoder().extractNumericValueFromBitArray(e,Kt.DATE_SIZE);if(38400==n)return;t.append("("),t.append(this.dateCode),t.append(")");let r=n%32;n/=32;let o=n%12+1;n/=12;let i=n;i/10==0&&t.append("0"),t.append(i),o/10==0&&t.append("0"),t.append(o),r/10==0&&t.append("0"),t.append(r)}addWeightCode(t,e){t.append("("),t.append(this.firstAIdigits),t.append(e/1e5),t.append(")")}checkWeight(t){return t%1e5}}function Qt(t){try{if(t.get(1))return new Vt(t);if(!t.get(2))return new Ht(t);switch(Ft.extractNumericValueFromBitArray(t,1,4)){case 4:return new Yt(t);case 5:return new Xt(t)}switch(Ft.extractNumericValueFromBitArray(t,1,5)){case 12:return new Zt(t);case 13:return new qt(t)}switch(Ft.extractNumericValueFromBitArray(t,1,7)){case 56:return new Kt(t,"310","11");case 57:return new Kt(t,"320","11");case 58:return new Kt(t,"310","13");case 59:return new Kt(t,"320","13");case 60:return new Kt(t,"310","15");case 61:return new Kt(t,"320","15");case 62:return new Kt(t,"310","17");case 63:return new Kt(t,"320","17")}}catch(e){throw new $("unknown decoder: "+t)}}Kt.HEADER_SIZE=8,Kt.WEIGHT_SIZE=20,Kt.DATE_SIZE=16;class Jt{constructor(t,e,n,r){this.leftchar=t,this.rightchar=e,this.finderpattern=n,this.maybeLast=r}mayBeLast(){return this.maybeLast}getLeftChar(){return this.leftchar}getRightChar(){return this.rightchar}getFinderPattern(){return this.finderpattern}mustBeLast(){return null==this.rightchar}toString(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"}static equals(t,e){return t instanceof Jt&&Jt.equalsOrNull(t.leftchar,e.leftchar)&&Jt.equalsOrNull(t.rightchar,e.rightchar)&&Jt.equalsOrNull(t.finderpattern,e.finderpattern)}static equalsOrNull(t,e){return null===t?null===e:Jt.equals(t,e)}hashCode(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()}}class $t{constructor(t,e,n){this.pairs=t,this.rowNumber=e,this.wasReversed=n}getPairs(){return this.pairs}getRowNumber(){return this.rowNumber}isReversed(){return this.wasReversed}isEquivalent(t){return this.checkEqualitity(this,t)}toString(){return"{ "+this.pairs+" }"}equals(t,e){return t instanceof $t&&this.checkEqualitity(t,e)&&t.wasReversed===e.wasReversed}checkEqualitity(t,e){if(!t||!e)return;let n;return t.forEach((t,r)=>{e.forEach(e=>{t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(n=!0)})}),n}}class te extends Mt{constructor(t){super(...arguments),this.pairs=new Array(te.MAX_PAIRS),this.rows=new Array,this.startEnd=[2],this.verbose=!0===t}decodeRow(t,e,n){this.pairs.length=0,this.startFromEven=!1;try{return te.constructResult(this.decodeRow2pairs(t,e))}catch(r){this.verbose}return this.pairs.length=0,this.startFromEven=!0,te.constructResult(this.decodeRow2pairs(t,e))}reset(){this.pairs.length=0,this.rows.length=0}decodeRow2pairs(t,e){let n,r=!1;for(;!r;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(o){if(o instanceof I){if(!this.pairs.length)throw new I;r=!0}}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(t,!1),n){let t=this.checkRowsBoolean(!1);if(null!=t)return t;if(t=this.checkRowsBoolean(!0),null!=t)return t}throw new I}checkRowsBoolean(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());let e=null;try{e=this.checkRows(new Array,0)}catch(n){this.verbose}return t&&(this.rows=this.rows.reverse()),e}checkRows(t,e){for(let r=e;r<this.rows.length;r++){let e=this.rows[r];this.pairs.length=0;for(let n of t)this.pairs.push(n.getPairs());if(this.pairs.push(e.getPairs()),!te.isValidSequence(this.pairs))continue;if(this.checkChecksum())return this.pairs;let o=new Array(t);o.push(e);try{return this.checkRows(o,r+1)}catch(n){this.verbose}}throw new I}static isValidSequence(t){for(let e of te.FINDER_PATTERN_SEQUENCES){if(t.length>e.length)continue;let n=!0;for(let r=0;r<t.length;r++)if(t[r].getFinderPattern().getValue()!=e[r]){n=!1;break}if(n)return!0}return!1}storeRow(t,e){let n=0,r=!1,o=!1;for(;n<this.rows.length;){let e=this.rows[n];if(e.getRowNumber()>t){o=e.isEquivalent(this.pairs);break}r=e.isEquivalent(this.pairs),n++}o||r||te.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new $t(this.pairs,t,e)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(t,e){for(let n of e)if(n.getPairs().length!==t.length)for(let e of n.getPairs())for(let n of t)if(Jt.equals(e,n))break}static isPartialRow(t,e){for(let n of e){let e=!0;for(let r of t){let t=!1;for(let e of n.getPairs())if(r.equals(e)){t=!0;break}if(!t){e=!1;break}}if(e)return!0}return!1}getRows(){return this.rows}static constructResult(t){let e=Qt(class{static buildBitArray(t){let e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);let n=new y(12*e),r=0,o=t[0].getRightChar().getValue();for(let i=11;i>=0;--i)0!=(o&1<<i)&&n.set(r),r++;for(let i=1;i<t.length;++i){let e=t[i],o=e.getLeftChar().getValue();for(let t=11;t>=0;--t)0!=(o&1<<t)&&n.set(r),r++;if(null!=e.getRightChar()){let t=e.getRightChar().getValue();for(let e=11;e>=0;--e)0!=(t&1<<e)&&n.set(r),r++}}return n}}.buildBitArray(t)).parseInformation(),n=t[0].getFinderPattern().getResultPoints(),r=t[t.length-1].getFinderPattern().getResultPoints(),o=[n[0],n[1],r[0],r[1]];return new B(e,null,null,o,F.RSS_EXPANDED,null)}checkChecksum(){let t=this.pairs.get(0),e=t.getLeftChar(),n=t.getRightChar();if(null==n)return!1;let r=n.getChecksumPortion(),o=2;for(let i=1;i<this.pairs.size();++i){let t=this.pairs.get(i);r+=t.getLeftChar().getChecksumPortion(),o++;let e=t.getRightChar();null!=e&&(r+=e.getChecksumPortion(),o++)}return r%=211,211*(o-4)+r==e.getValue()}static getNextSecondBar(t,e){let n;return t.get(e)?(n=t.getNextUnset(e),n=t.getNextSet(n)):(n=t.getNextSet(e),n=t.getNextUnset(n)),n}retrieveNextPair(t,e,n){let r,o=e.length%2==0;this.startFromEven&&(o=!o);let i=!0,a=-1;do{this.findNextPair(t,e,a),r=this.parseFoundFinderPattern(t,n,o),null==r?a=te.getNextSecondBar(t,this.startEnd[0]):i=!1}while(i);let s,u=this.decodeDataCharacter(t,r,o,!0);if(!this.isEmptyPair(e)&&e[e.length-1].mustBeLast())throw new I;try{s=this.decodeDataCharacter(t,r,o,!1)}catch(c){s=null,this.verbose}return new Jt(u,s,r,!0)}isEmptyPair(t){return 0===t.length}findNextPair(t,e,n){let r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;let o,i=t.getSize();o=n>=0?n:this.isEmptyPair(e)?0:e[e.length-1].getFinderPattern().getStartEnd()[1];let a=e.length%2!=0;this.startFromEven&&(a=!a);let s=!1;for(;o<i&&(s=!t.get(o),s);)o++;let u=0,c=o;for(let l=o;l<i;l++)if(t.get(l)!=s)r[u]++;else{if(3==u){if(a&&te.reverseCounters(r),te.isFinderPattern(r))return this.startEnd[0]=c,void(this.startEnd[1]=l);a&&te.reverseCounters(r),c+=r[0]+r[1],r[0]=r[2],r[1]=r[3],r[2]=0,r[3]=0,u--}else u++;r[u]=1,s=!s}throw new I}static reverseCounters(t){let e=t.length;for(let n=0;n<e/2;++n){let r=t[n];t[n]=t[e-n-1],t[e-n-1]=r}}parseFoundFinderPattern(t,e,n){let r,o,i;if(n){let e=this.startEnd[0]-1;for(;e>=0&&!t.get(e);)e--;e++,r=this.startEnd[0]-e,o=e,i=this.startEnd[1]}else o=this.startEnd[0],i=t.getNextUnset(this.startEnd[1]+1),r=i-this.startEnd[1];let a,s=this.getDecodeFinderCounters();d.arraycopy(s,0,s,1,s.length-1),s[0]=r;try{a=this.parseFinderValue(s,te.FINDER_PATTERNS)}catch(u){return null}return new Dt(a,[o,i],o,i,e)}decodeDataCharacter(t,e,n,r){let o=this.getDataCharacterCounters();for(let C=0;C<o.length;C++)o[C]=0;if(r)te.recordPatternInReverse(t,e.getStartEnd()[0],o);else{te.recordPattern(t,e.getStartEnd()[1],o);for(let t=0,e=o.length-1;t<e;t++,e--){let n=o[t];o[t]=o[e],o[e]=n}}let i=nt.sum(new Int32Array(o))/17,a=(e.getStartEnd()[1]-e.getStartEnd()[0])/15;if(Math.abs(i-a)/a>.3)throw new I;let s=this.getOddCounts(),u=this.getEvenCounts(),c=this.getOddRoundingErrors(),l=this.getEvenRoundingErrors();for(let C=0;C<o.length;C++){let t=1*o[C]/i,e=t+.5;if(e<1){if(t<.3)throw new I;e=1}else if(e>8){if(t>8.7)throw new I;e=8}let n=C/2;0==(1&C)?(s[n]=e,c[n]=t-e):(u[n]=e,l[n]=t-e)}this.adjustOddEvenCounts(17);let f=4*e.getValue()+(n?0:2)+(r?0:1)-1,d=0,h=0;for(let C=s.length-1;C>=0;C--){if(te.isNotA1left(e,n,r)){let t=te.WEIGHTS[f][2*C];h+=s[C]*t}d+=s[C]}let p=0;for(let C=u.length-1;C>=0;C--)if(te.isNotA1left(e,n,r)){let t=te.WEIGHTS[f][2*C+1];p+=u[C]*t}let g=h+p;if(0!=(1&d)||d>13||d<4)throw new I;let m=(13-d)/2,y=te.SYMBOL_WIDEST[m],v=9-y,w=xt.getRSSvalue(s,y,!0),_=xt.getRSSvalue(u,v,!1),b=te.EVEN_TOTAL_SUBSET[m],E=te.GSUM[m];return new Rt(w*b+_+E,g)}static isNotA1left(t,e,n){return!(0==t.getValue()&&e&&n)}adjustOddEvenCounts(t){let e=nt.sum(new Int32Array(this.getOddCounts())),n=nt.sum(new Int32Array(this.getEvenCounts())),r=!1,o=!1;e>13?o=!0:e<4&&(r=!0);let i=!1,a=!1;n>13?a=!0:n<4&&(i=!0);let s=e+n-t,u=1==(1&e),c=0==(1&n);if(1==s)if(u){if(c)throw new I;o=!0}else{if(!c)throw new I;a=!0}else if(-1==s)if(u){if(c)throw new I;r=!0}else{if(!c)throw new I;i=!0}else{if(0!=s)throw new I;if(u){if(!c)throw new I;e<n?(r=!0,a=!0):(o=!0,i=!0)}else if(c)throw new I}if(r){if(o)throw new I;te.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&te.decrement(this.getOddCounts(),this.getOddRoundingErrors()),i){if(a)throw new I;te.increment(this.getEvenCounts(),this.getOddRoundingErrors())}a&&te.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}te.SYMBOL_WIDEST=[7,5,4,3,1],te.EVEN_TOTAL_SUBSET=[4,20,52,104,204],te.GSUM=[0,348,1388,2948,3988],te.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],te.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],te.FINDER_PAT_A=0,te.FINDER_PAT_B=1,te.FINDER_PAT_C=2,te.FINDER_PAT_D=3,te.FINDER_PAT_E=4,te.FINDER_PAT_F=5,te.FINDER_PATTERN_SEQUENCES=[[te.FINDER_PAT_A,te.FINDER_PAT_A],[te.FINDER_PAT_A,te.FINDER_PAT_B,te.FINDER_PAT_B],[te.FINDER_PAT_A,te.FINDER_PAT_C,te.FINDER_PAT_B,te.FINDER_PAT_D],[te.FINDER_PAT_A,te.FINDER_PAT_E,te.FINDER_PAT_B,te.FINDER_PAT_D,te.FINDER_PAT_C],[te.FINDER_PAT_A,te.FINDER_PAT_E,te.FINDER_PAT_B,te.FINDER_PAT_D,te.FINDER_PAT_D,te.FINDER_PAT_F],[te.FINDER_PAT_A,te.FINDER_PAT_E,te.FINDER_PAT_B,te.FINDER_PAT_D,te.FINDER_PAT_E,te.FINDER_PAT_F,te.FINDER_PAT_F],[te.FINDER_PAT_A,te.FINDER_PAT_A,te.FINDER_PAT_B,te.FINDER_PAT_B,te.FINDER_PAT_C,te.FINDER_PAT_C,te.FINDER_PAT_D,te.FINDER_PAT_D],[te.FINDER_PAT_A,te.FINDER_PAT_A,te.FINDER_PAT_B,te.FINDER_PAT_B,te.FINDER_PAT_C,te.FINDER_PAT_C,te.FINDER_PAT_D,te.FINDER_PAT_E,te.FINDER_PAT_E],[te.FINDER_PAT_A,te.FINDER_PAT_A,te.FINDER_PAT_B,te.FINDER_PAT_B,te.FINDER_PAT_C,te.FINDER_PAT_C,te.FINDER_PAT_D,te.FINDER_PAT_E,te.FINDER_PAT_F,te.FINDER_PAT_F],[te.FINDER_PAT_A,te.FINDER_PAT_A,te.FINDER_PAT_B,te.FINDER_PAT_B,te.FINDER_PAT_C,te.FINDER_PAT_D,te.FINDER_PAT_D,te.FINDER_PAT_E,te.FINDER_PAT_E,te.FINDER_PAT_F,te.FINDER_PAT_F]],te.MAX_PAIRS=11;class ee extends Rt{constructor(t,e,n){super(t,e),this.count=0,this.finderPattern=n}getFinderPattern(){return this.finderPattern}getCount(){return this.count}incrementCount(){this.count++}}class ne extends Mt{constructor(){super(...arguments),this.possibleLeftPairs=[],this.possibleRightPairs=[]}decodeRow(t,e,n){const r=this.decodePair(e,!1,t,n);ne.addOrTally(this.possibleLeftPairs,r),e.reverse();let o=this.decodePair(e,!0,t,n);ne.addOrTally(this.possibleRightPairs,o),e.reverse();for(let i of this.possibleLeftPairs)if(i.getCount()>1)for(let t of this.possibleRightPairs)if(t.getCount()>1&&ne.checkChecksum(i,t))return ne.constructResult(i,t);throw new I}static addOrTally(t,e){if(null==e)return;let n=!1;for(let r of t)if(r.getValue()===e.getValue()){r.incrementCount(),n=!0;break}n||t.push(e)}reset(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0}static constructResult(t,e){let n=4537077*t.getValue()+e.getValue(),r=new String(n).toString(),o=new S;for(let u=13-r.length;u>0;u--)o.append("0");o.append(r);let i=0;for(let u=0;u<13;u++){let t=o.charAt(u).charCodeAt(0)-"0".charCodeAt(0);i+=0===(1&u)?3*t:t}i=10-i%10,10===i&&(i=0),o.append(i.toString());let a=t.getFinderPattern().getResultPoints(),s=e.getFinderPattern().getResultPoints();return new B(o.toString(),null,0,[a[0],a[1],s[0],s[1]],F.RSS_14,(new Date).getTime())}static checkChecksum(t,e){let n=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,r=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return r>72&&r--,r>8&&r--,n===r}decodePair(t,e,n,r){try{let o=this.findFinderPattern(t,e),i=this.parseFoundFinderPattern(t,n,e,o),a=null==r?null:r.get(w.NEED_RESULT_POINT_CALLBACK);if(null!=a){let r=(o[0]+o[1])/2;e&&(r=t.getSize()-1-r),a.foundPossibleResultPoint(new ot(r,n))}let s=this.decodeDataCharacter(t,i,!0),u=this.decodeDataCharacter(t,i,!1);return new ee(1597*s.getValue()+u.getValue(),s.getChecksumPortion()+4*u.getChecksumPortion(),i)}catch(o){return null}}decodeDataCharacter(t,e,n){let r=this.getDataCharacterCounters();for(let g=0;g<r.length;g++)r[g]=0;if(n)gt.recordPatternInReverse(t,e.getStartEnd()[0],r);else{gt.recordPattern(t,e.getStartEnd()[1]+1,r);for(let t=0,e=r.length-1;t<e;t++,e--){let n=r[t];r[t]=r[e],r[e]=n}}let o=n?16:15,i=nt.sum(new Int32Array(r))/o,a=this.getOddCounts(),s=this.getEvenCounts(),u=this.getOddRoundingErrors(),c=this.getEvenRoundingErrors();for(let g=0;g<r.length;g++){let t=r[g]/i,e=Math.floor(t+.5);e<1?e=1:e>8&&(e=8);let n=Math.floor(g/2);0===(1&g)?(a[n]=e,u[n]=t-e):(s[n]=e,c[n]=t-e)}this.adjustOddEvenCounts(n,o);let l=0,f=0;for(let g=a.length-1;g>=0;g--)f*=9,f+=a[g],l+=a[g];let d=0,h=0;for(let g=s.length-1;g>=0;g--)d*=9,d+=s[g],h+=s[g];let p=f+3*d;if(n){if(0!==(1&l)||l>12||l<4)throw new I;let t=(12-l)/2,e=ne.OUTSIDE_ODD_WIDEST[t],n=9-e,r=xt.getRSSvalue(a,e,!1),o=xt.getRSSvalue(s,n,!0),i=ne.OUTSIDE_EVEN_TOTAL_SUBSET[t],u=ne.OUTSIDE_GSUM[t];return new Rt(r*i+o+u,p)}{if(0!==(1&h)||h>10||h<4)throw new I;let t=(10-h)/2,e=ne.INSIDE_ODD_WIDEST[t],n=9-e,r=xt.getRSSvalue(a,e,!0),o=xt.getRSSvalue(s,n,!1),i=ne.INSIDE_ODD_TOTAL_SUBSET[t],u=ne.INSIDE_GSUM[t];return new Rt(o*i+r+u,p)}}findFinderPattern(t,e){let n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;let r=t.getSize(),o=!1,i=0;for(;i<r&&(o=!t.get(i),e!==o);)i++;let a=0,s=i;for(let u=i;u<r;u++)if(t.get(u)!==o)n[a]++;else{if(3===a){if(Mt.isFinderPattern(n))return[s,u];s+=n[0]+n[1],n[0]=n[2],n[1]=n[3],n[2]=0,n[3]=0,a--}else a++;n[a]=1,o=!o}throw new I}parseFoundFinderPattern(t,e,n,r){let o=t.get(r[0]),i=r[0]-1;for(;i>=0&&o!==t.get(i);)i--;i++;const a=r[0]-i,s=this.getDecodeFinderCounters(),u=new Int32Array(s.length);d.arraycopy(s,0,u,1,s.length-1),u[0]=a;const c=this.parseFinderValue(u,ne.FINDER_PATTERNS);let l=i,f=r[1];return n&&(l=t.getSize()-1-l,f=t.getSize()-1-f),new Dt(c,[i,r[1]],l,f,e)}adjustOddEvenCounts(t,e){let n=nt.sum(new Int32Array(this.getOddCounts())),r=nt.sum(new Int32Array(this.getEvenCounts())),o=!1,i=!1,a=!1,s=!1;t?(n>12?i=!0:n<4&&(o=!0),r>12?s=!0:r<4&&(a=!0)):(n>11?i=!0:n<5&&(o=!0),r>10?s=!0:r<4&&(a=!0));let u=n+r-e,c=(1&n)===(t?1:0),l=1===(1&r);if(1===u)if(c){if(l)throw new I;i=!0}else{if(!l)throw new I;s=!0}else if(-1===u)if(c){if(l)throw new I;o=!0}else{if(!l)throw new I;a=!0}else{if(0!==u)throw new I;if(c){if(!l)throw new I;n<r?(o=!0,s=!0):(i=!0,a=!0)}else if(l)throw new I}if(o){if(i)throw new I;Mt.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(i&&Mt.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(s)throw new I;Mt.increment(this.getEvenCounts(),this.getOddRoundingErrors())}s&&Mt.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}ne.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],ne.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],ne.OUTSIDE_GSUM=[0,161,961,2015,2715],ne.INSIDE_GSUM=[0,336,1036,1516],ne.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],ne.INSIDE_ODD_WIDEST=[2,4,6,8],ne.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])];class re extends gt{constructor(t,e){super(),this.readers=[],this.verbose=!0===e;const n=t?t.get(w.POSSIBLE_FORMATS):null,r=t&&void 0!==t.get(w.ASSUME_CODE_39_CHECK_DIGIT);n?((n.includes(F.EAN_13)||n.includes(F.UPC_A)||n.includes(F.EAN_8)||n.includes(F.UPC_E))&&this.readers.push(new Tt(t)),n.includes(F.CODE_39)&&this.readers.push(new yt(r)),n.includes(F.CODE_128)&&this.readers.push(new mt),n.includes(F.ITF)&&this.readers.push(new vt),n.includes(F.RSS_14)&&this.readers.push(new ne),n.includes(F.RSS_EXPANDED)&&this.readers.push(new te(this.verbose))):(this.readers.push(new Tt(t)),this.readers.push(new yt),this.readers.push(new Tt(t)),this.readers.push(new mt),this.readers.push(new vt),this.readers.push(new ne),this.readers.push(new te(this.verbose)))}decodeRow(t,e,n){for(let o=0;o<this.readers.length;o++)try{return this.readers[o].decodeRow(t,e,n)}catch(r){}throw new I}reset(){this.readers.forEach(t=>t.reset())}}class oe{constructor(t,e,n){this.ecCodewords=t,this.ecBlocks=[e],n&&this.ecBlocks.push(n)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class ie{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class ae{constructor(t,e,n,r,o,i){this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=n,this.dataRegionSizeRows=r,this.dataRegionSizeColumns=o,this.ecBlocks=i;let a=0;const s=i.getECCodewords(),u=i.getECBlocks();for(let c of u)a+=c.getCount()*(c.getDataCodewords()+s);this.totalCodewords=a}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(t,e){if(0!==(1&t)||0!==(1&e))throw new _;for(let n of ae.VERSIONS)if(n.symbolSizeRows===t&&n.symbolSizeColumns===e)return n;throw new _}toString(){return""+this.versionNumber}static buildVersions(){return[new ae(1,10,10,8,8,new oe(5,new ie(1,3))),new ae(2,12,12,10,10,new oe(7,new ie(1,5))),new ae(3,14,14,12,12,new oe(10,new ie(1,8))),new ae(4,16,16,14,14,new oe(12,new ie(1,12))),new ae(5,18,18,16,16,new oe(14,new ie(1,18))),new ae(6,20,20,18,18,new oe(18,new ie(1,22))),new ae(7,22,22,20,20,new oe(20,new ie(1,30))),new ae(8,24,24,22,22,new oe(24,new ie(1,36))),new ae(9,26,26,24,24,new oe(28,new ie(1,44))),new ae(10,32,32,14,14,new oe(36,new ie(1,62))),new ae(11,36,36,16,16,new oe(42,new ie(1,86))),new ae(12,40,40,18,18,new oe(48,new ie(1,114))),new ae(13,44,44,20,20,new oe(56,new ie(1,144))),new ae(14,48,48,22,22,new oe(68,new ie(1,174))),new ae(15,52,52,24,24,new oe(42,new ie(2,102))),new ae(16,64,64,14,14,new oe(56,new ie(2,140))),new ae(17,72,72,16,16,new oe(36,new ie(4,92))),new ae(18,80,80,18,18,new oe(48,new ie(4,114))),new ae(19,88,88,20,20,new oe(56,new ie(4,144))),new ae(20,96,96,22,22,new oe(68,new ie(4,174))),new ae(21,104,104,24,24,new oe(56,new ie(6,136))),new ae(22,120,120,18,18,new oe(68,new ie(6,175))),new ae(23,132,132,20,20,new oe(62,new ie(8,163))),new ae(24,144,144,22,22,new oe(62,new ie(8,156),new ie(2,155))),new ae(25,8,18,6,16,new oe(7,new ie(1,5))),new ae(26,8,32,6,14,new oe(11,new ie(1,10))),new ae(27,12,26,10,24,new oe(14,new ie(1,16))),new ae(28,12,36,10,16,new oe(18,new ie(1,22))),new ae(29,16,36,14,16,new oe(24,new ie(1,32))),new ae(30,16,48,14,22,new oe(28,new ie(1,49)))]}}ae.VERSIONS=ae.buildVersions();class se{constructor(t){const e=t.getHeight();if(e<8||e>144||0!==(1&e))throw new _;this.version=se.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new O(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(t){const e=t.getHeight(),n=t.getWidth();return ae.getVersionForDimensions(e,n)}readCodewords(){const t=new Int8Array(this.version.getTotalCodewords());let e=0,n=4,r=0;const o=this.mappingBitMatrix.getHeight(),i=this.mappingBitMatrix.getWidth();let a=!1,s=!1,u=!1,c=!1;do{if(n!==o||0!==r||a)if(n!==o-2||0!==r||0===(3&i)||s)if(n!==o+4||2!==r||0!==(7&i)||u)if(n!==o-2||0!==r||4!==(7&i)||c){do{n<o&&r>=0&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,o,i)),n-=2,r+=2}while(n>=0&&r<i);n+=1,r+=3;do{n>=0&&r<i&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,o,i)),n+=2,r-=2}while(n<o&&r>=0);n+=3,r+=1}else t[e++]=255&this.readCorner4(o,i),n-=2,r+=2,c=!0;else t[e++]=255&this.readCorner3(o,i),n-=2,r+=2,u=!0;else t[e++]=255&this.readCorner2(o,i),n-=2,r+=2,s=!0;else t[e++]=255&this.readCorner1(o,i),n-=2,r+=2,a=!0}while(n<o||r<i);if(e!==this.version.getTotalCodewords())throw new _;return t}readModule(t,e,n,r){return t<0&&(t+=n,e+=4-(n+4&7)),e<0&&(e+=r,t+=4-(r+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)}readUtah(t,e,n,r){let o=0;return this.readModule(t-2,e-2,n,r)&&(o|=1),o<<=1,this.readModule(t-2,e-1,n,r)&&(o|=1),o<<=1,this.readModule(t-1,e-2,n,r)&&(o|=1),o<<=1,this.readModule(t-1,e-1,n,r)&&(o|=1),o<<=1,this.readModule(t-1,e,n,r)&&(o|=1),o<<=1,this.readModule(t,e-2,n,r)&&(o|=1),o<<=1,this.readModule(t,e-1,n,r)&&(o|=1),o<<=1,this.readModule(t,e,n,r)&&(o|=1),o}readCorner1(t,e){let n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,1,t,e)&&(n|=1),n<<=1,this.readModule(t-1,2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n}readCorner2(t,e){let n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-4,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n}readCorner3(t,e){let n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-3,t,e)&&(n|=1),n<<=1,this.readModule(1,e-2,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n}readCorner4(t,e){let n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n}extractDataRegion(t){const e=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new u("Dimension of bitMatrix must match the version size");const r=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),i=e/r|0,a=n/o|0,s=new O(a*o,i*r);for(let u=0;u<i;++u){const e=u*r;for(let n=0;n<a;++n){const i=n*o;for(let a=0;a<r;++a){const c=u*(r+2)+1+a,l=e+a;for(let e=0;e<o;++e){const r=n*(o+2)+1+e;if(t.get(r,c)){const t=i+e;s.set(t,l)}}}}}return s}}class ue{constructor(t,e){this.numDataCodewords=t,this.codewords=e}static getDataBlocks(t,e){const n=e.getECBlocks();let r=0;const o=n.getECBlocks();for(let u of o)r+=u.getCount();const i=new Array(r);let a=0;for(let u of o)for(let t=0;t<u.getCount();t++){const t=u.getDataCodewords(),e=n.getECCodewords()+t;i[a++]=new ue(t,new Uint8Array(e))}const s=i[0].codewords.length-n.getECCodewords(),c=s-1;let l=0;for(let u=0;u<c;u++)for(let e=0;e<a;e++)i[e].codewords[u]=t[l++];const f=24===e.getVersionNumber(),d=f?8:a;for(let u=0;u<d;u++)i[u].codewords[s-1]=t[l++];const h=i[0].codewords.length;for(let u=s;u<h;u++)for(let e=0;e<a;e++){const n=f?(e+8)%a:e,r=f&&n>7?u-1:u;i[n].codewords[r]=t[l++]}if(l!==t.length)throw new u;return i}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class ce{constructor(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(t){if(t<1||t>32||t>this.available())throw new u(""+t);let e=0,n=this.bitOffset,r=this.byteOffset;const o=this.bytes;if(n>0){const i=8-n,a=t<i?t:i,s=i-a,u=255>>8-a<<s;e=(o[r]&u)>>s,t-=a,n+=a,8===n&&(n=0,r++)}if(t>0){for(;t>=8;)e=e<<8|255&o[r],r++,t-=8;if(t>0){const i=8-t,a=255>>i<<i;e=e<<t|(o[r]&a)>>i,n+=t}}return this.bitOffset=n,this.byteOffset=r,e}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}!function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"}(z||(z={}));class le{static decode(t){const e=new ce(t),n=new S,r=new S,o=new Array;let i=z.ASCII_ENCODE;do{if(i===z.ASCII_ENCODE)i=this.decodeAsciiSegment(e,n,r);else{switch(i){case z.C40_ENCODE:this.decodeC40Segment(e,n);break;case z.TEXT_ENCODE:this.decodeTextSegment(e,n);break;case z.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,n);break;case z.EDIFACT_ENCODE:this.decodeEdifactSegment(e,n);break;case z.BASE256_ENCODE:this.decodeBase256Segment(e,n,o);break;default:throw new _}i=z.ASCII_ENCODE}}while(i!==z.PAD_ENCODE&&e.available()>0);return r.length()>0&&n.append(r.toString()),new X(t,n.toString(),0===o.length?null:o,null)}static decodeAsciiSegment(t,e,n){let r=!1;do{let o=t.readBits(8);if(0===o)throw new _;if(o<=128)return r&&(o+=128),e.append(String.fromCharCode(o-1)),z.ASCII_ENCODE;if(129===o)return z.PAD_ENCODE;if(o<=229){const t=o-130;t<10&&e.append("0"),e.append(""+t)}else switch(o){case 230:return z.C40_ENCODE;case 231:return z.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:r=!0;break;case 236:e.append("[)>\x1e05\x1d"),n.insert(0,"\x1e\x04");break;case 237:e.append("[)>\x1e06\x1d"),n.insert(0,"\x1e\x04");break;case 238:return z.ANSIX12_ENCODE;case 239:return z.TEXT_ENCODE;case 240:return z.EDIFACT_ENCODE;case 241:break;default:if(254!==o||0!==t.available())throw new _}}while(t.available()>0);return z.ASCII_ENCODE}static decodeC40Segment(t,e){let n=!1;const r=[];let o=0;do{if(8===t.available())return;const i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),r);for(let t=0;t<3;t++){const i=r[t];switch(o){case 0:if(i<3)o=i+1;else{if(!(i<this.C40_BASIC_SET_CHARS.length))throw new _;{const t=this.C40_BASIC_SET_CHARS[i];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}}break;case 1:n?(e.append(String.fromCharCode(i+128)),n=!1):e.append(String.fromCharCode(i)),o=0;break;case 2:if(i<this.C40_SHIFT2_SET_CHARS.length){const t=this.C40_SHIFT2_SET_CHARS[i];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}else switch(i){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new _}o=0;break;case 3:n?(e.append(String.fromCharCode(i+224)),n=!1):e.append(String.fromCharCode(i+96)),o=0;break;default:throw new _}}}while(t.available()>0)}static decodeTextSegment(t,e){let n=!1,r=[],o=0;do{if(8===t.available())return;const i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),r);for(let t=0;t<3;t++){const i=r[t];switch(o){case 0:if(i<3)o=i+1;else{if(!(i<this.TEXT_BASIC_SET_CHARS.length))throw new _;{const t=this.TEXT_BASIC_SET_CHARS[i];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}}break;case 1:n?(e.append(String.fromCharCode(i+128)),n=!1):e.append(String.fromCharCode(i)),o=0;break;case 2:if(i<this.TEXT_SHIFT2_SET_CHARS.length){const t=this.TEXT_SHIFT2_SET_CHARS[i];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}else switch(i){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new _}o=0;break;case 3:if(!(i<this.TEXT_SHIFT3_SET_CHARS.length))throw new _;{const t=this.TEXT_SHIFT3_SET_CHARS[i];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t),o=0}break;default:throw new _}}}while(t.available()>0)}static decodeAnsiX12Segment(t,e){const n=[];do{if(8===t.available())return;const r=t.readBits(8);if(254===r)return;this.parseTwoBytes(r,t.readBits(8),n);for(let t=0;t<3;t++){const r=n[t];switch(r){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(r<14)e.append(String.fromCharCode(r+44));else{if(!(r<40))throw new _;e.append(String.fromCharCode(r+51))}}}}while(t.available()>0)}static parseTwoBytes(t,e,n){let r=(t<<8)+e-1,o=Math.floor(r/1600);n[0]=o,r-=1600*o,o=Math.floor(r/40),n[1]=o,n[2]=r-40*o}static decodeEdifactSegment(t,e){do{if(t.available()<=16)return;for(let n=0;n<4;n++){let n=t.readBits(6);if(31===n){const e=8-t.getBitOffset();return void(8!==e&&t.readBits(e))}0===(32&n)&&(n|=64),e.append(String.fromCharCode(n))}}while(t.available()>0)}static decodeBase256Segment(t,e,n){let r=1+t.getByteOffset();const o=this.unrandomize255State(t.readBits(8),r++);let i;if(i=0===o?t.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(t.readBits(8),r++),i<0)throw new _;const a=new Uint8Array(i);for(let u=0;u<i;u++){if(t.available()<8)throw new _;a[u]=this.unrandomize255State(t.readBits(8),r++)}n.push(a);try{e.append(C.decode(a,A.ISO88591))}catch(s){throw new $("Platform does not support required encoding: "+s.message)}}static unrandomize255State(t,e){const n=t-(149*e%255+1);return n>=0?n:n+256}}le.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],le.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],le.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],le.TEXT_SHIFT2_SET_CHARS=le.C40_SHIFT2_SET_CHARS,le.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class fe{constructor(){this.rsDecoder=new tt(Q.DATA_MATRIX_FIELD_256)}decode(t){const e=new se(t),n=e.getVersion(),r=e.readCodewords(),o=ue.getDataBlocks(r,n);let i=0;for(let u of o)i+=u.getNumDataCodewords();const a=new Uint8Array(i),s=o.length;for(let u=0;u<s;u++){const t=o[u],e=t.getCodewords(),n=t.getNumDataCodewords();this.correctErrors(e,n);for(let r=0;r<n;r++)a[r*s+u]=e[r]}return le.decode(a)}correctErrors(t,e){const n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(r){throw new l}for(let o=0;o<e;o++)t[o]=n[o]}}class de{constructor(t){this.image=t,this.rectangleDetector=new st(this.image)}detect(){const t=this.rectangleDetector.detect();let e=this.detectSolid1(t);if(e=this.detectSolid2(e),e[3]=this.correctTopRight(e),!e[3])throw new I;e=this.shiftToModuleCenter(e);const n=e[0],r=e[1],o=e[2],i=e[3];let a=this.transitionsBetween(n,i)+1,s=this.transitionsBetween(o,i)+1;1===(1&a)&&(a+=1),1===(1&s)&&(s+=1),4*a<7*s&&4*s<7*a&&(a=s=Math.max(a,s));let u=de.sampleGrid(this.image,n,r,o,i,a,s);return new it(u,[n,r,o,i])}static shiftPoint(t,e,n){let r=(e.getX()-t.getX())/(n+1),o=(e.getY()-t.getY())/(n+1);return new ot(t.getX()+r,t.getY()+o)}static moveAway(t,e,n){let r=t.getX(),o=t.getY();return r<e?r-=1:r+=1,o<n?o-=1:o+=1,new ot(r,o)}detectSolid1(t){let e=t[0],n=t[1],r=t[3],o=t[2],i=this.transitionsBetween(e,n),a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,o),u=this.transitionsBetween(o,e),c=i,l=[o,e,n,r];return c>a&&(c=a,l[0]=e,l[1]=n,l[2]=r,l[3]=o),c>s&&(c=s,l[0]=n,l[1]=r,l[2]=o,l[3]=e),c>u&&(l[0]=r,l[1]=o,l[2]=e,l[3]=n),l}detectSolid2(t){let e=t[0],n=t[1],r=t[2],o=t[3],i=this.transitionsBetween(e,o),a=de.shiftPoint(n,r,4*(i+1)),s=de.shiftPoint(r,n,4*(i+1));return this.transitionsBetween(a,e)<this.transitionsBetween(s,o)?(t[0]=e,t[1]=n,t[2]=r,t[3]=o):(t[0]=n,t[1]=r,t[2]=o,t[3]=e),t}correctTopRight(t){let e=t[0],n=t[1],r=t[2],o=t[3],i=this.transitionsBetween(e,o),a=this.transitionsBetween(n,o),s=de.shiftPoint(e,n,4*(a+1)),u=de.shiftPoint(r,n,4*(i+1));i=this.transitionsBetween(s,o),a=this.transitionsBetween(u,o);let c=new ot(o.getX()+(r.getX()-n.getX())/(i+1),o.getY()+(r.getY()-n.getY())/(i+1)),l=new ot(o.getX()+(e.getX()-n.getX())/(a+1),o.getY()+(e.getY()-n.getY())/(a+1));return this.isValid(c)?this.isValid(l)?this.transitionsBetween(s,c)+this.transitionsBetween(u,c)>this.transitionsBetween(s,l)+this.transitionsBetween(u,l)?c:l:c:this.isValid(l)?l:null}shiftToModuleCenter(t){let e=t[0],n=t[1],r=t[2],o=t[3],i=this.transitionsBetween(e,o)+1,a=this.transitionsBetween(r,o)+1,s=de.shiftPoint(e,n,4*a),u=de.shiftPoint(r,n,4*i);i=this.transitionsBetween(s,o)+1,a=this.transitionsBetween(u,o)+1,1===(1&i)&&(i+=1),1===(1&a)&&(a+=1);let c,l,f=(e.getX()+n.getX()+r.getX()+o.getX())/4,d=(e.getY()+n.getY()+r.getY()+o.getY())/4;return e=de.moveAway(e,f,d),n=de.moveAway(n,f,d),r=de.moveAway(r,f,d),o=de.moveAway(o,f,d),s=de.shiftPoint(e,n,4*a),s=de.shiftPoint(s,o,4*i),c=de.shiftPoint(n,e,4*a),c=de.shiftPoint(c,r,4*i),u=de.shiftPoint(r,o,4*a),u=de.shiftPoint(u,n,4*i),l=de.shiftPoint(o,r,4*a),l=de.shiftPoint(l,e,4*i),[s,c,u,l]}isValid(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()}static sampleGrid(t,e,n,r,o,i,a){return ft.getInstance().sampleGrid(t,i,a,.5,.5,i-.5,.5,i-.5,a-.5,.5,a-.5,e.getX(),e.getY(),o.getX(),o.getY(),r.getX(),r.getY(),n.getX(),n.getY())}transitionsBetween(t,e){let n=Math.trunc(t.getX()),r=Math.trunc(t.getY()),o=Math.trunc(e.getX()),i=Math.trunc(e.getY()),a=Math.abs(i-r)>Math.abs(o-n);if(a){let t=n;n=r,r=t,t=o,o=i,i=t}let s=Math.abs(o-n),u=Math.abs(i-r),c=-s/2,l=r<i?1:-1,f=n<o?1:-1,d=0,h=this.image.get(a?r:n,a?n:r);for(let p=n,g=r;p!==o;p+=f){let t=this.image.get(a?g:p,a?p:g);if(t!==h&&(d++,h=t),c+=u,c>0){if(g===i)break;g+=l,c-=s}}return d}}class he{constructor(){this.decoder=new fe}decode(t){let e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!=r&&r.has(w.PURE_BARCODE)){const r=he.extractPureBits(t.getBlackMatrix());e=this.decoder.decode(r),n=he.NO_POINTS}else{const r=new de(t.getBlackMatrix()).detect();e=this.decoder.decode(r.getBits()),n=r.getPoints()}const o=e.getRawBytes(),i=new B(e.getText(),o,8*o.length,n,F.DATA_MATRIX,d.currentTimeMillis()),a=e.getByteSegments();null!=a&&i.putMetadata(Y.BYTE_SEGMENTS,a);const s=e.getECLevel();return null!=s&&i.putMetadata(Y.ERROR_CORRECTION_LEVEL,s),i}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null==e||null==n)throw new I;const r=this.moduleSize(e,t);let o=e[1];const i=n[1];let a=e[0];const s=(n[0]-a+1)/r,u=(i-o+1)/r;if(s<=0||u<=0)throw new I;const c=r/2;o+=c,a+=c;const l=new O(s,u);for(let f=0;f<u;f++){const e=o+f*r;for(let n=0;n<s;n++)t.get(a+n*r,e)&&l.set(n,f)}return l}static moduleSize(t,e){const n=e.getWidth();let r=t[0];const o=t[1];for(;r<n&&e.get(r,o);)r++;if(r===n)throw new I;const i=r-t[0];if(0===i)throw new I;return i}}he.NO_POINTS=[],function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"}(V||(V={}));class pe{constructor(t,e,n){this.value=t,this.stringValue=e,this.bits=n,pe.FOR_BITS.set(n,this),pe.FOR_VALUE.set(t,this)}getValue(){return this.value}getBits(){return this.bits}static fromString(t){switch(t){case"L":return pe.L;case"M":return pe.M;case"Q":return pe.Q;case"H":return pe.H;default:throw new s(t+"not available")}}toString(){return this.stringValue}equals(t){if(!(t instanceof pe))return!1;const e=t;return this.value===e.value}static forBits(t){if(t<0||t>=pe.FOR_BITS.size)throw new u;return pe.FOR_BITS.get(t)}}pe.FOR_BITS=new Map,pe.FOR_VALUE=new Map,pe.L=new pe(V.L,"L",1),pe.M=new pe(V.M,"M",0),pe.Q=new pe(V.Q,"Q",3),pe.H=new pe(V.H,"H",2);class ge{constructor(t){this.errorCorrectionLevel=pe.forBits(t>>3&3),this.dataMask=7&t}static numBitsDiffering(t,e){return m.bitCount(t^e)}static decodeFormatInformation(t,e){const n=ge.doDecodeFormatInformation(t,e);return null!==n?n:ge.doDecodeFormatInformation(t^ge.FORMAT_INFO_MASK_QR,e^ge.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(t,e){let n=Number.MAX_SAFE_INTEGER,r=0;for(const o of ge.FORMAT_INFO_DECODE_LOOKUP){const i=o[0];if(i===t||i===e)return new ge(o[1]);let a=ge.numBitsDiffering(t,i);a<n&&(r=o[1],n=a),t!==e&&(a=ge.numBitsDiffering(e,i),a<n&&(r=o[1],n=a))}return n<=3?new ge(r):null}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getDataMask(){return this.dataMask}hashCode(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask}equals(t){if(!(t instanceof ge))return!1;const e=t;return this.errorCorrectionLevel===e.errorCorrectionLevel&&this.dataMask===e.dataMask}}ge.FORMAT_INFO_MASK_QR=21522,ge.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])];class me{constructor(t){this.ecCodewordsPerBlock=t;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.ecBlocks=n}getECCodewordsPerBlock(){return this.ecCodewordsPerBlock}getNumBlocks(){let t=0;const e=this.ecBlocks;for(const n of e)t+=n.getCount();return t}getTotalECCodewords(){return this.ecCodewordsPerBlock*this.getNumBlocks()}getECBlocks(){return this.ecBlocks}}class ye{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class ve{constructor(t,e){this.versionNumber=t,this.alignmentPatternCenters=e;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];this.ecBlocks=r;let i=0;const a=r[0].getECCodewordsPerBlock(),s=r[0].getECBlocks();for(const u of s)i+=u.getCount()*(u.getDataCodewords()+a);this.totalCodewords=i}getVersionNumber(){return this.versionNumber}getAlignmentPatternCenters(){return this.alignmentPatternCenters}getTotalCodewords(){return this.totalCodewords}getDimensionForVersion(){return 17+4*this.versionNumber}getECBlocksForLevel(t){return this.ecBlocks[t.getValue()]}static getProvisionalVersionForDimension(t){if(t%4!==1)throw new _;try{return this.getVersionForNumber((t-17)/4)}catch(e){throw new _}}static getVersionForNumber(t){if(t<1||t>40)throw new u;return ve.VERSIONS[t-1]}static decodeVersionInformation(t){let e=Number.MAX_SAFE_INTEGER,n=0;for(let r=0;r<ve.VERSION_DECODE_INFO.length;r++){const o=ve.VERSION_DECODE_INFO[r];if(o===t)return ve.getVersionForNumber(r+7);const i=ge.numBitsDiffering(t,o);i<e&&(n=r+7,e=i)}return e<=3?ve.getVersionForNumber(n):null}buildFunctionPattern(){const t=this.getDimensionForVersion(),e=new O(t);e.setRegion(0,0,9,9),e.setRegion(t-8,0,8,9),e.setRegion(0,t-8,9,8);const n=this.alignmentPatternCenters.length;for(let r=0;r<n;r++){const t=this.alignmentPatternCenters[r]-2;for(let o=0;o<n;o++)0===r&&(0===o||o===n-1)||r===n-1&&0===o||e.setRegion(this.alignmentPatternCenters[o]-2,t,5,5)}return e.setRegion(6,9,1,t-17),e.setRegion(9,6,t-17,1),this.versionNumber>6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e}toString(){return""+this.versionNumber}}ve.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),ve.VERSIONS=[new ve(1,new Int32Array(0),new me(7,new ye(1,19)),new me(10,new ye(1,16)),new me(13,new ye(1,13)),new me(17,new ye(1,9))),new ve(2,Int32Array.from([6,18]),new me(10,new ye(1,34)),new me(16,new ye(1,28)),new me(22,new ye(1,22)),new me(28,new ye(1,16))),new ve(3,Int32Array.from([6,22]),new me(15,new ye(1,55)),new me(26,new ye(1,44)),new me(18,new ye(2,17)),new me(22,new ye(2,13))),new ve(4,Int32Array.from([6,26]),new me(20,new ye(1,80)),new me(18,new ye(2,32)),new me(26,new ye(2,24)),new me(16,new ye(4,9))),new ve(5,Int32Array.from([6,30]),new me(26,new ye(1,108)),new me(24,new ye(2,43)),new me(18,new ye(2,15),new ye(2,16)),new me(22,new ye(2,11),new ye(2,12))),new ve(6,Int32Array.from([6,34]),new me(18,new ye(2,68)),new me(16,new ye(4,27)),new me(24,new ye(4,19)),new me(28,new ye(4,15))),new ve(7,Int32Array.from([6,22,38]),new me(20,new ye(2,78)),new me(18,new ye(4,31)),new me(18,new ye(2,14),new ye(4,15)),new me(26,new ye(4,13),new ye(1,14))),new ve(8,Int32Array.from([6,24,42]),new me(24,new ye(2,97)),new me(22,new ye(2,38),new ye(2,39)),new me(22,new ye(4,18),new ye(2,19)),new me(26,new ye(4,14),new ye(2,15))),new ve(9,Int32Array.from([6,26,46]),new me(30,new ye(2,116)),new me(22,new ye(3,36),new ye(2,37)),new me(20,new ye(4,16),new ye(4,17)
2),new me(24,new ye(4,12),new ye(4,13))),new ve(10,Int32Array.from([6,28,50]),new me(18,new ye(2,68),new ye(2,69)),new me(26,new ye(4,43),new ye(1,44)),new me(24,new ye(6,19),new ye(2,20)),new me(28,new ye(6,15),new ye(2,16))),new ve(11,Int32Array.from([6,30,54]),new me(20,new ye(4,81)),new me(30,new ye(1,50),new ye(4,51)),new me(28,new ye(4,22),new ye(4,23)),new me(24,new ye(3,12),new ye(8,13))),new ve(12,Int32Array.from([6,32,58]),new me(24,new ye(2,92),new ye(2,93)),new me(22,new ye(6,36),new ye(2,37)),new me(26,new ye(4,20),new ye(6,21)),new me(28,new ye(7,14),new ye(4,15))),new ve(13,Int32Array.from([6,34,62]),new me(26,new ye(4,107)),new me(22,new ye(8,37),new ye(1,38)),new me(24,new ye(8,20),new ye(4,21)),new me(22,new ye(12,11),new ye(4,12))),new ve(14,Int32Array.from([6,26,46,66]),new me(30,new ye(3,115),new ye(1,116)),new me(24,new ye(4,40),new ye(5,41)),new me(20,new ye(11,16),new ye(5,17)),new me(24,new ye(11,12),new ye(5,13))),new ve(15,Int32Array.from([6,26,48,70]),new me(22,new ye(5,87),new ye(1,88)),new me(24,new ye(5,41),new ye(5,42)),new me(30,new ye(5,24),new ye(7,25)),new me(24,new ye(11,12),new ye(7,13))),new ve(16,Int32Array.from([6,26,50,74]),new me(24,new ye(5,98),new ye(1,99)),new me(28,new ye(7,45),new ye(3,46)),new me(24,new ye(15,19),new ye(2,20)),new me(30,new ye(3,15),new ye(13,16))),new ve(17,Int32Array.from([6,30,54,78]),new me(28,new ye(1,107),new ye(5,108)),new me(28,new ye(10,46),new ye(1,47)),new me(28,new ye(1,22),new ye(15,23)),new me(28,new ye(2,14),new ye(17,15))),new ve(18,Int32Array.from([6,30,56,82]),new me(30,new ye(5,120),new ye(1,121)),new me(26,new ye(9,43),new ye(4,44)),new me(28,new ye(17,22),new ye(1,23)),new me(28,new ye(2,14),new ye(19,15))),new ve(19,Int32Array.from([6,30,58,86]),new me(28,new ye(3,113),new ye(4,114)),new me(26,new ye(3,44),new ye(11,45)),new me(26,new ye(17,21),new ye(4,22)),new me(26,new ye(9,13),new ye(16,14))),new ve(20,Int32Array.from([6,34,62,90]),new me(28,new ye(3,107),new ye(5,108)),new me(26,new ye(3,41),new ye(13,42)),new me(30,new ye(15,24),new ye(5,25)),new me(28,new ye(15,15),new ye(10,16))),new ve(21,Int32Array.from([6,28,50,72,94]),new me(28,new ye(4,116),new ye(4,117)),new me(26,new ye(17,42)),new me(28,new ye(17,22),new ye(6,23)),new me(30,new ye(19,16),new ye(6,17))),new ve(22,Int32Array.from([6,26,50,74,98]),new me(28,new ye(2,111),new ye(7,112)),new me(28,new ye(17,46)),new me(30,new ye(7,24),new ye(16,25)),new me(24,new ye(34,13))),new ve(23,Int32Array.from([6,30,54,78,102]),new me(30,new ye(4,121),new ye(5,122)),new me(28,new ye(4,47),new ye(14,48)),new me(30,new ye(11,24),new ye(14,25)),new me(30,new ye(16,15),new ye(14,16))),new ve(24,Int32Array.from([6,28,54,80,106]),new me(30,new ye(6,117),new ye(4,118)),new me(28,new ye(6,45),new ye(14,46)),new me(30,new ye(11,24),new ye(16,25)),new me(30,new ye(30,16),new ye(2,17))),new ve(25,Int32Array.from([6,32,58,84,110]),new me(26,new ye(8,106),new ye(4,107)),new me(28,new ye(8,47),new ye(13,48)),new me(30,new ye(7,24),new ye(22,25)),new me(30,new ye(22,15),new ye(13,16))),new ve(26,Int32Array.from([6,30,58,86,114]),new me(28,new ye(10,114),new ye(2,115)),new me(28,new ye(19,46),new ye(4,47)),new me(28,new ye(28,22),new ye(6,23)),new me(30,new ye(33,16),new ye(4,17))),new ve(27,Int32Array.from([6,34,62,90,118]),new me(30,new ye(8,122),new ye(4,123)),new me(28,new ye(22,45),new ye(3,46)),new me(30,new ye(8,23),new ye(26,24)),new me(30,new ye(12,15),new ye(28,16))),new ve(28,Int32Array.from([6,26,50,74,98,122]),new me(30,new ye(3,117),new ye(10,118)),new me(28,new ye(3,45),new ye(23,46)),new me(30,new ye(4,24),new ye(31,25)),new me(30,new ye(11,15),new ye(31,16))),new ve(29,Int32Array.from([6,30,54,78,102,126]),new me(30,new ye(7,116),new ye(7,117)),new me(28,new ye(21,45),new ye(7,46)),new me(30,new ye(1,23),new ye(37,24)),new me(30,new ye(19,15),new ye(26,16))),new ve(30,Int32Array.from([6,26,52,78,104,130]),new me(30,new ye(5,115),new ye(10,116)),new me(28,new ye(19,47),new ye(10,48)),new me(30,new ye(15,24),new ye(25,25)),new me(30,new ye(23,15),new ye(25,16))),new ve(31,Int32Array.from([6,30,56,82,108,134]),new me(30,new ye(13,115),new ye(3,116)),new me(28,new ye(2,46),new ye(29,47)),new me(30,new ye(42,24),new ye(1,25)),new me(30,new ye(23,15),new ye(28,16))),new ve(32,Int32Array.from([6,34,60,86,112,138]),new me(30,new ye(17,115)),new me(28,new ye(10,46),new ye(23,47)),new me(30,new ye(10,24),new ye(35,25)),new me(30,new ye(19,15),new ye(35,16))),new ve(33,Int32Array.from([6,30,58,86,114,142]),new me(30,new ye(17,115),new ye(1,116)),new me(28,new ye(14,46),new ye(21,47)),new me(30,new ye(29,24),new ye(19,25)),new me(30,new ye(11,15),new ye(46,16))),new ve(34,Int32Array.from([6,34,62,90,118,146]),new me(30,new ye(13,115),new ye(6,116)),new me(28,new ye(14,46),new ye(23,47)),new me(30,new ye(44,24),new ye(7,25)),new me(30,new ye(59,16),new ye(1,17))),new ve(35,Int32Array.from([6,30,54,78,102,126,150]),new me(30,new ye(12,121),new ye(7,122)),new me(28,new ye(12,47),new ye(26,48)),new me(30,new ye(39,24),new ye(14,25)),new me(30,new ye(22,15),new ye(41,16))),new ve(36,Int32Array.from([6,24,50,76,102,128,154]),new me(30,new ye(6,121),new ye(14,122)),new me(28,new ye(6,47),new ye(34,48)),new me(30,new ye(46,24),new ye(10,25)),new me(30,new ye(2,15),new ye(64,16))
2),new ve(37,Int32Array.from([6,28,54,80,106,132,158]),new me(30,new ye(17,122),new ye(4,123)),new me(28,new ye(29,46),new ye(14,47)),new me(30,new ye(49,24),new ye(10,25)),new me(30,new ye(24,15),new ye(46,16))),new ve(38,Int32Array.from([6,32,58,84,110,136,162]),new me(30,new ye(4,122),new ye(18,123)),new me(28,new ye(13,46),new ye(32,47)),new me(30,new ye(48,24),new ye(14,25)),new me(30,new ye(42,15),new ye(32,16))),new ve(39,Int32Array.from([6,26,54,82,110,138,166]),new me(30,new ye(20,117),new ye(4,118)),new me(28,new ye(40,47),new ye(7,48)),new me(30,new ye(43,24),new ye(22,25)),new me(30,new ye(10,15),new ye(67,16))),new ve(40,Int32Array.from([6,30,58,86,114,142,170]),new me(30,new ye(19,118),new ye(6,119)),new me(28,new ye(18,47),new ye(31,48)),new me(30,new ye(34,24),new ye(34,25)),new me(30,new ye(20,15),new ye(61,16)))],function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"}(H||(H={}));class we{constructor(t,e){this.value=t,this.isMasked=e}unmaskBitMatrix(t,e){for(let n=0;n<e;n++)for(let r=0;r<e;r++)this.isMasked(n,r)&&t.flip(r,n)}}we.values=new Map([[H.DATA_MASK_000,new we(H.DATA_MASK_000,(t,e)=>0===(t+e&1))],[H.DATA_MASK_001,new we(H.DATA_MASK_001,(t,e)=>0===(1&t))],[H.DATA_MASK_010,new we(H.DATA_MASK_010,(t,e)=>e%3===0)],[H.DATA_MASK_011,new we(H.DATA_MASK_011,(t,e)=>(t+e)%3===0)],[H.DATA_MASK_100,new we(H.DATA_MASK_100,(t,e)=>0===(Math.floor(t/2)+Math.floor(e/3)&1))],[H.DATA_MASK_101,new we(H.DATA_MASK_101,(t,e)=>t*e%6===0)],[H.DATA_MASK_110,new we(H.DATA_MASK_110,(t,e)=>t*e%6<3)],[H.DATA_MASK_111,new we(H.DATA_MASK_111,(t,e)=>0===(t+e+t*e%3&1))]]);class _e{constructor(t){const e=t.getHeight();if(e<21||1!==(3&e))throw new _;this.bitMatrix=t}readFormatInformation(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;let t=0;for(let o=0;o<6;o++)t=this.copyBit(o,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(let o=5;o>=0;o--)t=this.copyBit(8,o,t);const e=this.bitMatrix.getHeight();let n=0;const r=e-7;for(let o=e-1;o>=r;o--)n=this.copyBit(8,o,n);for(let o=e-8;o<e;o++)n=this.copyBit(o,8,n);if(this.parsedFormatInfo=ge.decodeFormatInformation(t,n),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new _}readVersion(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;const t=this.bitMatrix.getHeight(),e=Math.floor((t-17)/4);if(e<=6)return ve.getVersionForNumber(e);let n=0;const r=t-11;for(let i=5;i>=0;i--)for(let e=t-9;e>=r;e--)n=this.copyBit(e,i,n);let o=ve.decodeVersionInformation(n);if(null!==o&&o.getDimensionForVersion()===t)return this.parsedVersion=o,o;n=0;for(let i=5;i>=0;i--)for(let e=t-9;e>=r;e--)n=this.copyBit(i,e,n);if(o=ve.decodeVersionInformation(n),null!==o&&o.getDimensionForVersion()===t)return this.parsedVersion=o,o;throw new _}copyBit(t,e,n){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?n<<1|1:n<<1}readCodewords(){const t=this.readFormatInformation(),e=this.readVersion(),n=we.values.get(t.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);const o=e.buildFunctionPattern();let i=!0;const a=new Uint8Array(e.getTotalCodewords());let s=0,u=0,c=0;for(let l=r-1;l>0;l-=2){6===l&&l--;for(let t=0;t<r;t++){const e=i?r-1-t:t;for(let t=0;t<2;t++)o.get(l-t,e)||(c++,u<<=1,this.bitMatrix.get(l-t,e)&&(u|=1),8===c&&(a[s++]=u,c=0,u=0))}i=!i}if(s!==e.getTotalCodewords())throw new _;return a}remask(){if(null===this.parsedFormatInfo)return;const t=we.values[this.parsedFormatInfo.getDataMask()],e=this.bitMatrix.getHeight();t.unmaskBitMatrix(this.bitMatrix,e)}setMirror(t){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=t}mirror(){const t=this.bitMatrix;for(let e=0,n=t.getWidth();e<n;e++)for(let r=e+1,o=t.getHeight();r<o;r++)t.get(e,r)!==t.get(r,e)&&(t.flip(r,e),t.flip(e,r))}}
vendor: 19,844 bytes, line 2
2class be{constructor(t,e){this.numDataCodewords=t,this.codewords=e}static getDataBlocks(t,e,n){if(t.length!==e.getTotalCodewords())throw new u;const r=e.getECBlocksForLevel(n);let o=0;const i=r.getECBlocks();for(const u of i)o+=u.getCount();const a=new Array(o);let s=0;for(const u of i)for(let t=0;t<u.getCount();t++){const t=u.getDataCodewords(),e=r.getECCodewordsPerBlock()+t;a[s++]=new be(t,new Uint8Array(e))}const c=a[0].codewords.length;let l=a.length-1;for(;l>=0&&a[l].codewords.length!==c;)l--;l++;const f=c-r.getECCodewordsPerBlock();let d=0;for(let u=0;u<f;u++)for(let e=0;e<s;e++)a[e].codewords[u]=t[d++];for(let u=l;u<s;u++)a[u].codewords[f]=t[d++];const h=a[0].codewords.length;for(let u=f;u<h;u++)for(let e=0;e<s;e++){const n=e<l?u:u+1;a[e].codewords[n]=t[d++]}return a}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}!function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"}(W||(W={}));class Ee{constructor(t,e,n,r){this.value=t,this.stringValue=e,this.characterCountBitsForVersions=n,this.bits=r,Ee.FOR_BITS.set(r,this),Ee.FOR_VALUE.set(t,this)}static forBits(t){const e=Ee.FOR_BITS.get(t);if(void 0===e)throw new u;return e}getCharacterCountBits(t){const e=t.getVersionNumber();let n;return n=e<=9?0:e<=26?1:2,this.characterCountBitsForVersions[n]}getValue(){return this.value}getBits(){return this.bits}equals(t){if(!(t instanceof Ee))return!1;const e=t;return this.value===e.value}toString(){return this.stringValue}}Ee.FOR_BITS=new Map,Ee.FOR_VALUE=new Map,Ee.TERMINATOR=new Ee(W.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),Ee.NUMERIC=new Ee(W.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),Ee.ALPHANUMERIC=new Ee(W.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),Ee.STRUCTURED_APPEND=new Ee(W.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),Ee.BYTE=new Ee(W.BYTE,"BYTE",Int32Array.from([8,16,16]),4),Ee.ECI=new Ee(W.ECI,"ECI",Int32Array.from([0,0,0]),7),Ee.KANJI=new Ee(W.KANJI,"KANJI",Int32Array.from([8,10,12]),8),Ee.FNC1_FIRST_POSITION=new Ee(W.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),Ee.FNC1_SECOND_POSITION=new Ee(W.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),Ee.HANZI=new Ee(W.HANZI,"HANZI",Int32Array.from([8,10,12]),13);class Ce{static decode(t,e,n,r){const o=new ce(t);let i=new S;const a=new Array;let s=-1,u=-1;try{let t,n=null,c=!1;do{if(o.available()<4)t=Ee.TERMINATOR;else{const e=o.readBits(4);t=Ee.forBits(e)}switch(t){case Ee.TERMINATOR:break;case Ee.FNC1_FIRST_POSITION:case Ee.FNC1_SECOND_POSITION:c=!0;break;case Ee.STRUCTURED_APPEND:if(o.available()<16)throw new _;s=o.readBits(8),u=o.readBits(8);break;case Ee.ECI:const l=Ce.parseECIValue(o);if(n=b.getCharacterSetECIByValue(l),null===n)throw new _;break;case Ee.HANZI:const f=o.readBits(4),d=o.readBits(t.getCharacterCountBits(e));f===Ce.GB2312_SUBSET&&Ce.decodeHanziSegment(o,i,d);break;default:const h=o.readBits(t.getCharacterCountBits(e));switch(t){case Ee.NUMERIC:Ce.decodeNumericSegment(o,i,h);break;case Ee.ALPHANUMERIC:Ce.decodeAlphanumericSegment(o,i,h,c);break;case Ee.BYTE:Ce.decodeByteSegment(o,i,h,n,a,r);break;case Ee.KANJI:Ce.decodeKanjiSegment(o,i,h);break;default:throw new _}}}while(t!==Ee.TERMINATOR)}catch(c){throw new _}return new X(t,i.toString(),0===a.length?null:a,null===n?null:n.toString(),s,u)}static decodeHanziSegment(t,e,n){if(13*n>t.available())throw new _;const r=new Uint8Array(2*n);let o=0;for(;n>0;){const e=t.readBits(13);let i=e/96<<8&4294967295|e%96;i+=i<959?41377:42657,r[o]=i>>8&255,r[o+1]=255&i,o+=2,n--}try{e.append(C.decode(r,A.GB2312))}catch(i){throw new _(i)}}static decodeKanjiSegment(t,e,n){if(13*n>t.available())throw new _;const r=new Uint8Array(2*n);let o=0;for(;n>0;){const e=t.readBits(13);let i=e/192<<8&4294967295|e%192;i+=i<7936?33088:49472,r[o]=i>>8,r[o+1]=i,o+=2,n--}try{e.append(C.decode(r,A.SHIFT_JIS))}catch(i){throw new _(i)}}static decodeByteSegment(t,e,n,r,o,i){if(8*n>t.available())throw new _;const a=new Uint8Array(n);for(let c=0;c<n;c++)a[c]=t.readBits(8);let s;s=null===r?A.guessEncoding(a,i):r.getName();try{e.append(C.decode(a,s))}catch(u){throw new _(u)}o.push(a)}static toAlphaNumericChar(t){if(t>=Ce.ALPHANUMERIC_CHARS.length)throw new _;return Ce.ALPHANUMERIC_CHARS[t]}static decodeAlphanumericSegment(t,e,n,r){const o=e.length();for(;n>1;){if(t.available()<11)throw new _;const r=t.readBits(11);e.append(Ce.toAlphaNumericChar(Math.floor(r/45))),e.append(Ce.toAlphaNumericChar(r%45)),n-=2}if(1===n){if(t.available()<6)throw new _;e.append(Ce.toAlphaNumericChar(t.readBits(6)))}if(r)for(let i=o;i<e.length();i++)"%"===e.charAt(i)&&(i<e.length()-1&&"%"===e.charAt(i+1)?e.deleteCharAt(i+1):e.setCharAt(i,String.fromCharCode(29)))}static decodeNumericSegment(t,e,n){for(;n>=3;){if(t.available()<10)throw new _;const r=t.readBits(10);if(r>=1e3)throw new _;e.append(Ce.toAlphaNumericChar(Math.floor(r/100))),e.append(Ce.toAlphaNumericChar(Math.floor(r/10)%10)),e.append(Ce.toAlphaNumericChar(r%10)),n-=3}if(2===n){if(t.available()<7)throw new _;const n=t.readBits(7);if(n>=100)throw new _;e.append(Ce.toAlphaNumericChar(Math.floor(n/10))),e.append(Ce.toAlphaNumericChar(n%10))}else if(1===n){if(t.available()<4)throw new _;const n=t.readBits(4);if(n>=10)throw new _;e.append(Ce.toAlphaNumericChar(n))}}static parseECIValue(t){const e=t.readBits(8);if(0===(128&e))return 127&e;if(128===(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192===(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new _}}Ce.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Ce.GB2312_SUBSET=1;class Ae{constructor(t){this.mirrored=t}isMirrored(){return this.mirrored}applyMirroredCorrection(t){if(!this.mirrored||null===t||t.length<3)return;const e=t[0];t[0]=t[2],t[2]=e}}class Se{constructor(){this.rsDecoder=new tt(Q.QR_CODE_FIELD_256)}decodeBooleanArray(t,e){return this.decodeBitMatrix(O.parseFromBooleanArray(t),e)}decodeBitMatrix(t,e){const n=new _e(t);let r=null;try{return this.decodeBitMatrixParser(n,e)}catch(o){r=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();const t=this.decodeBitMatrixParser(n,e);return t.setOther(new Ae(!0)),t}catch(o){if(null!==r)throw r;throw o}}decodeBitMatrixParser(t,e){const n=t.readVersion(),r=t.readFormatInformation().getErrorCorrectionLevel(),o=t.readCodewords(),i=be.getDataBlocks(o,n,r);let a=0;for(const c of i)a+=c.getNumDataCodewords();const s=new Uint8Array(a);let u=0;for(const c of i){const t=c.getCodewords(),e=c.getNumDataCodewords();this.correctErrors(t,e);for(let n=0;n<e;n++)s[u++]=t[n]}return Ce.decode(s,n,r,e)}correctErrors(t,e){const n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(r){throw new l}for(let o=0;o<e;o++)t[o]=n[o]}}class Oe extends ot{constructor(t,e,n){super(t,e),this.estimatedModuleSize=n}aboutEquals(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,n){const r=(this.getX()+e)/2,o=(this.getY()+t)/2,i=(this.estimatedModuleSize+n)/2;return new Oe(r,o,i)}}class Ie{constructor(t,e,n,r,o,i,a){this.image=t,this.startX=e,this.startY=n,this.width=r,this.height=o,this.moduleSize=i,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}find(){const t=this.startX,e=this.height,n=t+this.width,r=this.startY+e/2,o=new Int32Array(3),i=this.image;for(let a=0;a<e;a++){const e=r+(0===(1&a)?Math.floor((a+1)/2):-Math.floor((a+1)/2));o[0]=0,o[1]=0,o[2]=0;let s=t;for(;s<n&&!i.get(s,e);)s++;let u=0;for(;s<n;){if(i.get(s,e))if(1===u)o[1]++;else if(2===u){if(this.foundPatternCross(o)){const t=this.handlePossibleCenter(o,e,s);if(null!==t)return t}o[0]=o[2],o[1]=1,o[2]=0,u=1}else o[++u]++;else 1===u&&u++,o[u]++;s++}if(this.foundPatternCross(o)){const t=this.handlePossibleCenter(o,e,n);if(null!==t)return t}}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new I}static centerFromEnd(t,e){return e-t[2]-t[1]/2}foundPatternCross(t){const e=this.moduleSize,n=e/2;for(let r=0;r<3;r++)if(Math.abs(e-t[r])>=n)return!1;return!0}crossCheckVertical(t,e,n,r){const o=this.image,i=o.getHeight(),a=this.crossCheckStateCount;a[0]=0,a[1]=0,a[2]=0;let s=t;for(;s>=0&&o.get(e,s)&&a[1]<=n;)a[1]++,s--;if(s<0||a[1]>n)return NaN;for(;s>=0&&!o.get(e,s)&&a[0]<=n;)a[0]++,s--;if(a[0]>n)return NaN;for(s=t+1;s<i&&o.get(e,s)&&a[1]<=n;)a[1]++,s++;if(s===i||a[1]>n)return NaN;for(;s<i&&!o.get(e,s)&&a[2]<=n;)a[2]++,s++;if(a[2]>n)return NaN;const u=a[0]+a[1]+a[2];return 5*Math.abs(u-r)>=2*r?NaN:this.foundPatternCross(a)?Ie.centerFromEnd(a,s):NaN}handlePossibleCenter(t,e,n){const r=t[0]+t[1]+t[2],o=Ie.centerFromEnd(t,n),i=this.crossCheckVertical(e,o,2*t[1],r);if(!isNaN(i)){const e=(t[0]+t[1]+t[2])/3;for(const t of this.possibleCenters)if(t.aboutEquals(e,i,o))return t.combineEstimate(i,o,e);const n=new Oe(o,i,e);this.possibleCenters.push(n),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(n)}return null}}class Te extends ot{constructor(t,e,n,r){super(t,e),this.estimatedModuleSize=n,this.count=r,void 0===r&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,n){const r=this.count+1,o=(this.count*this.getX()+e)/r,i=(this.count*this.getY()+t)/r,a=(this.count*this.estimatedModuleSize+n)/r;return new Te(o,i,a,r)}}class Me{constructor(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class Re{constructor(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(t){const e=null!==t&&void 0!==t&&void 0!==t.get(w.TRY_HARDER),n=null!==t&&void 0!==t&&void 0!==t.get(w.PURE_BARCODE),r=this.image,o=r.getHeight(),i=r.getWidth();let a=Math.floor(3*o/(4*Re.MAX_MODULES));(a<Re.MIN_SKIP||e)&&(a=Re.MIN_SKIP);let s=!1;const u=new Int32Array(5);for(let l=a-1;l<o&&!s;l+=a){u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0;let t=0;for(let e=0;e<i;e++)if(r.get(e,l))1===(1&t)&&t++,u[t]++;else if(0===(1&t))if(4===t)if(Re.foundPatternCross(u)){if(!0!==this.handlePossibleCenter(u,l,e,n)){u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,t=3;continue}if(a=2,!0===this.hasSkipped)s=this.haveMultiplyConfirmedCenters();else{const t=this.findRowSkip();t>u[2]&&(l+=t-u[2]-a,e=i-1)}t=0,u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0}else u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,t=3;else u[++t]++;else u[t]++;Re.foundPatternCross(u)&&!0===this.handlePossibleCenter(u,l,i,n)&&(a=u[0],this.hasSkipped&&(s=this.haveMultiplyConfirmedCenters()))}const c=this.selectBestPatterns();return ot.orderBestPatterns(c),new Me(c)}static centerFromEnd(t,e){return e-t[4]-t[3]-t[2]/2}static foundPatternCross(t){let e=0;for(let o=0;o<5;o++){const n=t[o];if(0===n)return!1;e+=n}if(e<7)return!1;const n=e/7,r=n/2;return Math.abs(n-t[0])<r&&Math.abs(n-t[1])<r&&Math.abs(3*n-t[2])<3*r&&Math.abs(n-t[3])<r&&Math.abs(n-t[4])<r}getCrossCheckStateCount(){const t=this.crossCheckStateCount;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t}crossCheckDiagonal(t,e,n,r){const o=this.getCrossCheckStateCount();let i=0;const a=this.image;for(;t>=i&&e>=i&&a.get(e-i,t-i);)o[2]++,i++;if(t<i||e<i)return!1;for(;t>=i&&e>=i&&!a.get(e-i,t-i)&&o[1]<=n;)o[1]++,i++;if(t<i||e<i||o[1]>n)return!1;for(;t>=i&&e>=i&&a.get(e-i,t-i)&&o[0]<=n;)o[0]++,i++;if(o[0]>n)return!1;const s=a.getHeight(),u=a.getWidth();for(i=1;t+i<s&&e+i<u&&a.get(e+i,t+i);)o[2]++,i++;if(t+i>=s||e+i>=u)return!1;for(;t+i<s&&e+i<u&&!a.get(e+i,t+i)&&o[3]<n;)o[3]++,i++;if(t+i>=s||e+i>=u||o[3]>=n)return!1;for(;t+i<s&&e+i<u&&a.get(e+i,t+i)&&o[4]<n;)o[4]++,i++;if(o[4]>=n)return!1;const c=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(c-r)<2*r&&Re.foundPatternCross(o)}crossCheckVertical(t,e,n,r){const o=this.image,i=o.getHeight(),a=this.getCrossCheckStateCount();let s=t;for(;s>=0&&o.get(e,s);)a[2]++,s--;if(s<0)return NaN;for(;s>=0&&!o.get(e,s)&&a[1]<=n;)a[1]++,s--;if(s<0||a[1]>n)return NaN;for(;s>=0&&o.get(e,s)&&a[0]<=n;)a[0]++,s--;if(a[0]>n)return NaN;for(s=t+1;s<i&&o.get(e,s);)a[2]++,s++;if(s===i)return NaN;for(;s<i&&!o.get(e,s)&&a[3]<n;)a[3]++,s++;if(s===i||a[3]>=n)return NaN;for(;s<i&&o.get(e,s)&&a[4]<n;)a[4]++,s++;if(a[4]>=n)return NaN;const u=a[0]+a[1]+a[2]+a[3]+a[4];return 5*Math.abs(u-r)>=2*r?NaN:Re.foundPatternCross(a)?Re.centerFromEnd(a,s):NaN}crossCheckHorizontal(t,e,n,r){const o=this.image,i=o.getWidth(),a=this.getCrossCheckStateCount();let s=t;for(;s>=0&&o.get(s,e);)a[2]++,s--;if(s<0)return NaN;for(;s>=0&&!o.get(s,e)&&a[1]<=n;)a[1]++,s--;if(s<0||a[1]>n)return NaN;for(;s>=0&&o.get(s,e)&&a[0]<=n;)a[0]++,s--;if(a[0]>n)return NaN;for(s=t+1;s<i&&o.get(s,e);)a[2]++,s++;if(s===i)return NaN;for(;s<i&&!o.get(s,e)&&a[3]<n;)a[3]++,s++;if(s===i||a[3]>=n)return NaN;for(;s<i&&o.get(s,e)&&a[4]<n;)a[4]++,s++;if(a[4]>=n)return NaN;const u=a[0]+a[1]+a[2]+a[3]+a[4];return 5*Math.abs(u-r)>=r?NaN:Re.foundPatternCross(a)?Re.centerFromEnd(a,s):NaN}handlePossibleCenter(t,e,n,r){const o=t[0]+t[1]+t[2]+t[3]+t[4];let i=Re.centerFromEnd(t,n),a=this.crossCheckVertical(e,Math.floor(i),t[2],o);if(!isNaN(a)&&(i=this.crossCheckHorizontal(Math.floor(i),Math.floor(a),t[2],o),!isNaN(i)&&(!r||this.crossCheckDiagonal(Math.floor(a),Math.floor(i),t[2],o)))){const t=o/7;let e=!1;const n=this.possibleCenters;for(let r=0,o=n.length;r<o;r++){const o=n[r];if(o.aboutEquals(t,a,i)){n[r]=o.combineEstimate(a,i,t),e=!0;break}}if(!e){const e=new Te(i,a,t);n.push(e),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(e)}return!0}return!1}findRowSkip(){if(this.possibleCenters.length<=1)return 0;let t=null;for(const e of this.possibleCenters)if(e.getCount()>=Re.CENTER_QUORUM){if(null!=t)return this.hasSkipped=!0,Math.floor((Math.abs(t.getX()-e.getX())-Math.abs(t.getY()-e.getY()))/2);t=e}return 0}haveMultiplyConfirmedCenters(){let t=0,e=0;const n=this.possibleCenters.length;for(const i of this.possibleCenters)i.getCount()>=Re.CENTER_QUORUM&&(t++,e+=i.getEstimatedModuleSize());if(t<3)return!1;const r=e/n;let o=0;for(const i of this.possibleCenters)o+=Math.abs(i.getEstimatedModuleSize()-r);return o<=.05*e}selectBestPatterns(){const t=this.possibleCenters.length;if(t<3)throw new I;const e=this.possibleCenters;let n;if(t>3){let r=0,o=0;for(const t of this.possibleCenters){const e=t.getEstimatedModuleSize();r+=e,o+=e*e}n=r/t;let i=Math.sqrt(o/t-n*n);e.sort((t,e)=>{const r=Math.abs(e.getEstimatedModuleSize()-n),o=Math.abs(t.getEstimatedModuleSize()-n);return r<o?-1:r>o?1:0});const a=Math.max(.2*n,i);for(let t=0;t<e.length&&e.length>3;t++){const r=e[t];Math.abs(r.getEstimatedModuleSize()-n)>a&&(e.splice(t,1),t--)}}if(e.length>3){let t=0;for(const n of e)t+=n.getEstimatedModuleSize();n=t/e.length,e.sort((t,e)=>{if(e.getCount()===t.getCount()){const r=Math.abs(e.getEstimatedModuleSize()-n),o=Math.abs(t.getEstimatedModuleSize()-n);return r<o?1:r>o?-1:0}return e.getCount()-t.getCount()}),e.splice(3)}return[e[0],e[1],e[2]]}}Re.CENTER_QUORUM=2,Re.MIN_SKIP=3,Re.MAX_MODULES=57;class De{constructor(t){this.image=t}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(t){this.resultPointCallback=null===t||void 0===t?null:t.get(w.NEED_RESULT_POINT_CALLBACK);const e=new Re(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)}processFinderPatternInfo(t){const e=t.getTopLeft(),n=t.getTopRight(),r=t.getBottomLeft(),o=this.calculateModuleSize(e,n,r);if(o<1)throw new I("No pattern found in proccess finder.");const i=De.computeDimension(e,n,r,o),a=ve.getProvisionalVersionForDimension(i),s=a.getDimensionForVersion()-7;let u=null;if(a.getAlignmentPatternCenters().length>0){const t=n.getX()-e.getX()+r.getX(),i=n.getY()-e.getY()+r.getY(),a=1-3/s,c=Math.floor(e.getX()+a*(t-e.getX())),l=Math.floor(e.getY()+a*(i-e.getY()));for(let e=4;e<=16;e<<=1)try{u=this.findAlignmentInRegion(o,c,l,e);break}catch(d){if(!(d instanceof I))throw d}}const c=De.createTransform(e,n,r,u,i),l=De.sampleGrid(this.image,c,i);let f;return f=null===u?[r,e,n]:[r,e,n,u],new it(l,f)}static createTransform(t,e,n,r,o){const i=o-3.5;let a,s,u,c;return null!==r?(a=r.getX(),s=r.getY(),u=i-3,c=u):(a=e.getX()-t.getX()+n.getX(),s=e.getY()-t.getY()+n.getY(),u=i,c=i),ct.quadrilateralToQuadrilateral(3.5,3.5,i,3.5,u,c,3.5,i,t.getX(),t.getY(),e.getX(),e.getY(),a,s,n.getX(),n.getY())}static sampleGrid(t,e,n){return ft.getInstance().sampleGridWithTransform(t,n,n,e)}static computeDimension(t,e,n,r){const o=nt.round(ot.distance(t,e)/r),i=nt.round(ot.distance(t,n)/r);let a=Math.floor((o+i)/2)+7;switch(3&a){case 0:a++;break;case 2:a--;break;case 3:throw new I("Dimensions could be not found.")}return a}calculateModuleSize(t,e,n){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,n))/2}calculateModuleSizeOneWay(t,e){const n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14}sizeOfBlackWhiteBlackRunBothWays(t,e,n,r){let o=this.sizeOfBlackWhiteBlackRun(t,e,n,r),i=1,a=t-(n-t);a<0?(i=t/(t-a),a=0):a>=this.image.getWidth()&&(i=(this.image.getWidth()-1-t)/(a-t),a=this.image.getWidth()-1);let s=Math.floor(e-(r-e)*i);return i=1,s<0?(i=e/(e-s),s=0):s>=this.image.getHeight()&&(i=(this.image.getHeight()-1-e)/(s-e),s=this.image.getHeight()-1),a=Math.floor(t+(a-t)*i),o+=this.sizeOfBlackWhiteBlackRun(t,e,a,s),o-1}sizeOfBlackWhiteBlackRun(t,e,n,r){const o=Math.abs(r-e)>Math.abs(n-t);if(o){let o=t;t=e,e=o,o=n,n=r,r=o}const i=Math.abs(n-t),a=Math.abs(r-e);let s=-i/2;const u=t<n?1:-1,c=e<r?1:-1;let l=0;const f=n+u;for(let d=t,h=e;d!==f;d+=u){const n=o?h:d,u=o?d:h;if(1===l===this.image.get(n,u)){if(2===l)return nt.distance(d,h,t,e);l++}if(s+=a,s>0){if(h===r)break;h+=c,s-=i}}return 2===l?nt.distance(n+u,r,t,e):NaN}findAlignmentInRegion(t,e,n,r){const o=Math.floor(r*t),i=Math.max(0,e-o),a=Math.min(this.image.getWidth()-1,e+o);if(a-i<3*t)throw new I("Alignment top exceeds estimated module size.");const s=Math.max(0,n-o),u=Math.min(this.image.getHeight()-1,n+o);if(u-s<3*t)throw new I("Alignment bottom exceeds estimated module size.");return new Ie(this.image,i,s,a-i,u-s,t,this.resultPointCallback).find()}}class xe{constructor(){this.decoder=new Se}getDecoder(){return this.decoder}decode(t,e){let n,r;if(void 0!==e&&null!==e&&void 0!==e.get(w.PURE_BARCODE)){const o=xe.extractPureBits(t.getBlackMatrix());n=this.decoder.decodeBitMatrix(o,e),r=xe.NO_POINTS}else{const o=new De(t.getBlackMatrix()).detect(e);n=this.decoder.decodeBitMatrix(o.getBits(),e),r=o.getPoints()}n.getOther()instanceof Ae&&n.getOther().applyMirroredCorrection(r);const o=new B(n.getText(),n.getRawBytes(),void 0,r,F.QR_CODE,void 0),i=n.getByteSegments();null!==i&&o.putMetadata(Y.BYTE_SEGMENTS,i);const a=n.getECLevel();return null!==a&&o.putMetadata(Y.ERROR_CORRECTION_LEVEL,a),n.hasStructuredAppend()&&(o.putMetadata(Y.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),o.putMetadata(Y.STRUCTURED_APPEND_PARITY,n.getStructuredAppendParity())
vendor: 1,479 bytes, line 2
2),o}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null===e||null===n)throw new I;const r=this.moduleSize(e,t);let o=e[1],i=n[1],a=e[0],s=n[0];if(a>=s||o>=i)throw new I;if(i-o!==s-a&&(s=a+(i-o),s>=t.getWidth()))throw new I;const u=Math.round((s-a+1)/r),c=Math.round((i-o+1)/r);if(u<=0||c<=0)throw new I;if(c!==u)throw new I;const l=Math.floor(r/2);o+=l,a+=l;const f=a+Math.floor((u-1)*r)-s;if(f>0){if(f>l)throw new I;a-=f}const d=o+Math.floor((c-1)*r)-i;if(d>0){if(d>l)throw new I;o-=d}const h=new O(u,c);for(let p=0;p<c;p++){const e=o+Math.floor(p*r);for(let n=0;n<u;n++)t.get(a+Math.floor(n*r),e)&&h.set(n,p)}return h}static moduleSize(t,e){const n=e.getHeight(),r=e.getWidth();let o=t[0],i=t[1],a=!0,s=0;for(;o<r&&i<n;){if(a!==e.get(o,i)){if(5===++s)break;a=!a}o++,i++}if(o===r||i===n)throw new I;return(o-t[0])/7}}xe.NO_POINTS=new Array;class Ne{PDF417Common(){}static getBitCountSum(t){return nt.sum(t)}static toIntArray(t){if(null==t||!t.length)return Ne.EMPTY_INT_ARRAY;const e=new Int32Array(t.length);let n=0;for(const r of t)e[n++]=r;return e}static getCodeword(t){const e=g.binarySearch(Ne.SYMBOL_TABLE,262143&t);return e<0?-1:(Ne.CODEWORD_TABLE[e]-1)%Ne.NUMBER_OF_CODEWORDS}}Ne.NUMBER_OF_CODEWORDS=929,Ne.MAX_CODEWORDS_IN_BARCODE=Ne.NUMBER_OF_CODEWORDS-1,Ne.MIN_ROWS_IN_BARCODE=3,Ne.MAX_ROWS_IN_BARCODE=90,Ne.MODULES_IN_CODEWORD=17,Ne.MODULES_IN_STOP_PATTERN=18,Ne.BARS_IN_MODULE=8,Ne.EMPTY_INT_ARRAY=new Int32Array([]),Ne
vendor: 18,272 bytes, line 2
2.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),
2Ne
vendor: 12,860 bytes, line 2
2.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700])
vendor: 16,734 bytes, line 2
2;class Pe{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class Le{static detectMultiple(t,e,n){let r=t.getBlackMatrix(),o=Le.detect(n,r);return o.length||(r=r.clone(),r.rotate180(),o=Le.detect(n,r)),new Pe(r,o)}static detect(t,e){const n=new Array;let r=0,o=0,i=!1;for(;r<e.getHeight();){const a=Le.findVertices(e,r,o);if(null!=a[0]||null!=a[3]){if(i=!0,n.push(a),!t)break;null!=a[2]?(o=Math.trunc(a[2].getX()),r=Math.trunc(a[2].getY())):(o=Math.trunc(a[4].getX()),r=Math.trunc(a[4].getY()))}else{if(!i)break;i=!1,o=0;for(const t of n)null!=t[1]&&(r=Math.trunc(Math.max(r,t[1].getY()))),null!=t[3]&&(r=Math.max(r,Math.trunc(t[3].getY())));r+=Le.ROW_STEP}}return n}static findVertices(t,e,n){const r=t.getHeight(),o=t.getWidth(),i=new Array(8);return Le.copyToResult(i,Le.findRowsWithPattern(t,r,o,e,n,Le.START_PATTERN),Le.INDEXES_START_PATTERN),null!=i[4]&&(n=Math.trunc(i[4].getX()),e=Math.trunc(i[4].getY())),Le.copyToResult(i,Le.findRowsWithPattern(t,r,o,e,n,Le.STOP_PATTERN),Le.INDEXES_STOP_PATTERN),i}static copyToResult(t,e,n){for(let r=0;r<n.length;r++)t[n[r]]=e[r]}static findRowsWithPattern(t,e,n,r,o,i){const a=new Array(4);let s=!1;const u=new Int32Array(i.length);for(;r<e;r+=Le.ROW_STEP){let e=Le.findGuardPattern(t,o,r,n,!1,i,u);if(null!=e){for(;r>0;){const a=Le.findGuardPattern(t,o,--r,n,!1,i,u);if(null==a){r++;break}e=a}a[0]=new ot(e[0],r),a[1]=new ot(e[1],r),s=!0;break}}let c=r+1;if(s){let r=0,o=Int32Array.from([Math.trunc(a[0].getX()),Math.trunc(a[1].getX())]);for(;c<e;c++){const e=Le.findGuardPattern(t,o[0],c,n,!1,i,u);if(null!=e&&Math.abs(o[0]-e[0])<Le.MAX_PATTERN_DRIFT&&Math.abs(o[1]-e[1])<Le.MAX_PATTERN_DRIFT)o=e,r=0;else{if(r>Le.SKIPPED_ROW_COUNT_MAX)break;r++}}c-=r+1,a[2]=new ot(o[0],c),a[3]=new ot(o[1],c)}return c-r<Le.BARCODE_MIN_HEIGHT&&g.fill(a,null),a}static findGuardPattern(t,e,n,r,o,i,a){g.fillWithin(a,0,a.length,0);let s=e,u=0;for(;t.get(s,n)&&s>0&&u++<Le.MAX_PIXEL_DRIFT;)s--;let c=s,l=0,f=i.length;for(let h=o;c<r;c++)if(t.get(c,n)!==h)a[l]++;else{if(l===f-1){if(Le.patternMatchVariance(a,i,Le.MAX_INDIVIDUAL_VARIANCE)<Le.MAX_AVG_VARIANCE)return new Int32Array([s,c]);s+=a[0]+a[1],d.arraycopy(a,2,a,0,l-1),a[l-1]=0,a[l]=0,l--}else l++;a[l]=1,h=!h}return l===f-1&&Le.patternMatchVariance(a,i,Le.MAX_INDIVIDUAL_VARIANCE)<Le.MAX_AVG_VARIANCE?new Int32Array([s,c-1]):null}static patternMatchVariance(t,e,n){let r=t.length,o=0,i=0;for(let u=0;u<r;u++)o+=t[u],i+=e[u];if(o<i)return 1/0;let a=o/i;n*=a;let s=0;for(let u=0;u<r;u++){let r=t[u],o=e[u]*a,i=r>o?r-o:o-r;if(i>n)return 1/0;s+=i}return s/o}}Le.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),Le.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),Le.MAX_AVG_VARIANCE=.42,Le.MAX_INDIVIDUAL_VARIANCE=.8,Le.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),Le.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),Le.MAX_PIXEL_DRIFT=3,Le.MAX_PATTERN_DRIFT=5,Le.SKIPPED_ROW_COUNT_MAX=25,Le.ROW_STEP=5,Le.BARCODE_MIN_HEIGHT=10;class ke{constructor(t,e){if(0===e.length)throw new u;this.field=t;let n=e.length;if(n>1&&0===e[0]){let t=1;for(;t<n&&0===e[t];)t++;t===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-t),d.arraycopy(e,t,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return 0===this.coefficients[0]}getCoefficient(t){return this.coefficients[this.coefficients.length-1-t]}evaluateAt(t){if(0===t)return this.getCoefficient(0);if(1===t){let t=0;for(let e of this.coefficients)t=this.field.add(t,e);return t}let e=this.coefficients[0],n=this.coefficients.length;for(let r=1;r<n;r++)e=this.field.add(this.field.multiply(t,e),this.coefficients[r]);return e}add(t){if(!this.field.equals(t.field))throw new u("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;let e=this.coefficients,n=t.coefficients;if(e.length>n.length){let t=e;e=n,n=t}let r=new Int32Array(n.length),o=n.length-e.length;d.arraycopy(n,0,r,0,o);for(let i=o;i<n.length;i++)r[i]=this.field.add(e[i-o],n[i]);return new ke(this.field,r)}subtract(t){if(!this.field.equals(t.field))throw new u("ModulusPolys do not have same ModulusGF field");return t.isZero()?this:this.add(t.negative())}multiply(t){return t instanceof ke?this.multiplyOther(t):this.multiplyScalar(t)}multiplyOther(t){if(!this.field.equals(t.field))throw new u("ModulusPolys do not have same ModulusGF field");if(this.isZero()||t.isZero())return new ke(this.field,new Int32Array([0]));let e=this.coefficients,n=e.length,r=t.coefficients,o=r.length,i=new Int32Array(n+o-1);for(let a=0;a<n;a++){let t=e[a];for(let e=0;e<o;e++)i[a+e]=this.field.add(i[a+e],this.field.multiply(t,r[e]))}return new ke(this.field,i)}negative(){let t=this.coefficients.length,e=new Int32Array(t);for(let n=0;n<t;n++)e[n]=this.field.subtract(0,this.coefficients[n]);return new ke(this.field,e)}multiplyScalar(t){if(0===t)return new ke(this.field,new Int32Array([0]));if(1===t)return this;let e=this.coefficients.length,n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=this.field.multiply(this.coefficients[r],t);return new ke(this.field,n)}multiplyByMonomial(t,e){if(t<0)throw new u;if(0===e)return new ke(this.field,new Int32Array([0]));let n=this.coefficients.length,r=new Int32Array(n+t);for(let o=0;o<n;o++)r[o]=this.field.multiply(this.coefficients[o],e);return new ke(this.field,r)}toString(){let t=new S;for(let e=this.getDegree();e>=0;e--){let n=this.getCoefficient(e);0!==n&&(n<0?(t.append(" - "),n=-n):t.length()>0&&t.append(" + "),0!==e&&1===n||t.append(n),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()}}class Be extends class{add(t,e){return(t+e)%this.modulus}subtract(t,e){return(this.modulus+t-e)%this.modulus}exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}inverse(t){if(0===t)throw new K;return this.expTable[this.modulus-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]}getSize(){return this.modulus}equals(t){return t===this}}{constructor(t,e){super(),this.modulus=t,this.expTable=new Int32Array(t),this.logTable=new Int32Array(t);let n=1;for(let r=0;r<t;r++)this.expTable[r]=n,n=n*e%t;for(let r=0;r<t-1;r++)this.logTable[this.expTable[r]]=r;this.zero=new ke(this,new Int32Array([0])),this.one=new ke(this,new Int32Array([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(t,e){if(t<0)throw new u;if(0===e)return this.zero;let n=new Int32Array(t+1);return n[0]=e,new ke(this,n)}}Be.PDF417_GF=new Be(Ne.NUMBER_OF_CODEWORDS,3);class je{constructor(){this.field=Be.PDF417_GF}decode(t,e,n){let r=new ke(this.field,t),o=new Int32Array(e),i=!1;for(let l=e;l>0;l--){let t=r.evaluateAt(this.field.exp(l));o[e-l]=t,0!==t&&(i=!0)}if(!i)return 0;let a=this.field.getOne();if(null!=n)for(const l of n){let e=this.field.exp(t.length-1-l),n=new ke(this.field,new Int32Array([this.field.subtract(0,e),1]));a=a.multiply(n)}let s=new ke(this.field,o),u=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),s,e),c=u[0],f=u[1],d=this.findErrorLocations(c),h=this.findErrorMagnitudes(f,c,d);for(let p=0;p<d.length;p++){let e=t.length-1-this.field.log(d[p]);if(e<0)throw l.getChecksumInstance();t[e]=this.field.subtract(t[e],h[p])}return d.length}runEuclideanAlgorithm(t,e,n){if(t.getDegree()<e.getDegree()){let n=t;t=e,e=n}let r=t,o=e,i=this.field.getZero(),a=this.field.getOne();for(;o.getDegree()>=Math.round(n/2);){let t=r,e=i;if(r=o,i=a,r.isZero())throw l.getChecksumInstance();o=t;let n=this.field.getZero(),s=r.getCoefficient(r.getDegree()),u=this.field.inverse(s);for(;o.getDegree()>=r.getDegree()&&!o.isZero();){let t=o.getDegree()-r.getDegree(),e=this.field.multiply(o.getCoefficient(o.getDegree()),u);n=n.add(this.field.buildMonomial(t,e)),o=o.subtract(r.multiplyByMonomial(t,e))}a=n.multiply(i).subtract(e).negative()}let s=a.getCoefficient(0);if(0===s)throw l.getChecksumInstance();let u=this.field.inverse(s);return[a.multiply(u),o.multiply(u)]}findErrorLocations(t){let e=t.getDegree(),n=new Int32Array(e),r=0;for(let o=1;o<this.field.getSize()&&r<e;o++)0===t.evaluateAt(o)&&(n[r]=this.field.inverse(o),r++);if(r!==e)throw l.getChecksumInstance();return n}findErrorMagnitudes(t,e,n){let r=e.getDegree(),o=new Int32Array(r);for(let u=1;u<=r;u++)o[r-u]=this.field.multiply(u,e.getCoefficient(u));let i=new ke(this.field,o),a=n.length,s=new Int32Array(a);for(let u=0;u<a;u++){let e=this.field.inverse(n[u]),r=this.field.subtract(0,t.evaluateAt(e)),o=this.field.inverse(i.evaluateAt(e));s[u]=this.field.multiply(r,o)}return s}}class Fe{constructor(t,e,n,r,o){t instanceof Fe?this.constructor_2(t):this.constructor_1(t,e,n,r,o)}constructor_1(t,e,n,r,o){const i=null==e||null==n,a=null==r||null==o;if(i&&a)throw new I;i?(e=new ot(0,r.getY()),n=new ot(0,o.getY())):a&&(r=new ot(t.getWidth()-1,e.getY()),o=new ot(t.getWidth()-1,n.getY())),this.image=t,this.topLeft=e,this.bottomLeft=n,this.topRight=r,this.bottomRight=o,this.minX=Math.trunc(Math.min(e.getX(),n.getX())),this.maxX=Math.trunc(Math.max(r.getX(),o.getX())),this.minY=Math.trunc(Math.min(e.getY(),r.getY())),this.maxY=Math.trunc(Math.max(n.getY(),o.getY()))}constructor_2(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()}static merge(t,e){return null==t?e:null==e?t:new Fe(t.image,t.topLeft,t.bottomLeft,e.topRight,e.bottomRight)}addMissingRows(t,e,n){let r=this.topLeft,o=this.bottomLeft,i=this.topRight,a=this.bottomRight;if(t>0){let e=n?this.topLeft:this.topRight,o=Math.trunc(e.getY()-t);o<0&&(o=0);let a=new ot(e.getX(),o);n?r=a:i=a}if(e>0){let t=n?this.bottomLeft:this.bottomRight,r=Math.trunc(t.getY()+e);r>=this.image.getHeight()&&(r=this.image.getHeight()-1);let i=new ot(t.getX(),r);n?o=i:a=i}return new Fe(this.image,r,o,i,a)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class Ue{constructor(t,e,n,r){this.columnCount=t,this.errorCorrectionLevel=r,this.rowCountUpperPart=e,this.rowCountLowerPart=n,this.rowCount=e+n}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class ze{constructor(){this.buffer=""}static form(t,e){let n=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(t,r,o,i,a,s){if("%%"===t)return"%";if(void 0===e[++n])return;t=i?parseInt(i.substr(1)):void 0;let u,c=a?parseInt(a.substr(1)):void 0;switch(s){case"s":u=e[n];break;case"c":u=e[n][0];break;case"f":u=parseFloat(e[n]).toFixed(t);break;case"p":u=parseFloat(e[n]).toPrecision(t);break;case"e":u=parseFloat(e[n]).toExponential(t);break;case"x":u=parseInt(e[n]).toString(c||16);break;case"d":u=parseFloat(parseInt(e[n],c||10).toPrecision(t)).toFixed(0)}u="object"===typeof u?JSON.stringify(u):(+u).toString(c);let l=parseInt(o),f=o&&o[0]+""==="0"?"0":" ";for(;u.length<l;)u=void 0!==r?u+f:f+u;return u}))}format(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.buffer+=ze.form(t,n)}toString(){return this.buffer}}class Ve{constructor(t){this.boundingBox=new Fe(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}getCodewordNearby(t){let e=this.getCodeword(t);if(null!=e)return e;for(let n=1;n<Ve.MAX_NEARBY_DISTANCE;n++){let r=this.imageRowToCodewordIndex(t)-n;if(r>=0&&(e=this.codewords[r],null!=e))return e;if(r=this.imageRowToCodewordIndex(t)+n,r<this.codewords.length&&(e=this.codewords[r],null!=e))return e}return null}imageRowToCodewordIndex(t){return t-this.boundingBox.getMinY()}setCodeword(t,e){this.codewords[this.imageRowToCodewordIndex(t)]=e}getCodeword(t){return this.codewords[this.imageRowToCodewordIndex(t)]}getBoundingBox(){return this.boundingBox}getCodewords(){return this.codewords}toString(){const t=new ze;let e=0;for(const n of this.codewords)null!=n?t.format("%3d: %3d|%3d%n",e++,n.getRowNumber(),n.getValue()):t.format("%3d:    |   %n",e++);return t.toString()}}Ve.MAX_NEARBY_DISTANCE=5;class He{constructor(){this.values=new Map}setValue(t){t=Math.trunc(t);let e=this.values.get(t);null==e&&(e=0),e++,this.values.set(t,e)}getValue(){let t=-1,e=new Array;for(const[n,r]of this.values.entries()){const o={getKey:()=>n,getValue:()=>r};o.getValue()>t?(t=o.getValue(),e=[],e.push(o.getKey())):o.getValue()===t&&e.push(o.getKey())}return Ne.toIntArray(e)}getConfidence(t){return this.values.get(t)}}class We extends Ve{constructor(t,e){super(t),this._isLeft=e}setRowNumbers(){for(let t of this.getCodewords())null!=t&&t.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(t){let e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);let n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),o=this._isLeft?n.getBottomLeft():n.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(o.getY())),s=-1,u=1,c=0;for(let l=i;l<a;l++){if(null==e[l])continue;let n=e[l],r=n.getRowNumber()-s;if(0===r)c++;else if(1===r)u=Math.max(u,c),c=1,s=n.getRowNumber();else if(r<0||n.getRowNumber()>=t.getRowCount()||r>l)e[l]=null;else{let t;t=u>2?(u-2)*r:r;let o=t>=l;for(let n=1;n<=t&&!o;n++)o=null!=e[l-n];o?e[l]=null:(s=n.getRowNumber(),c=1)}}}getRowHeights(){let t=this.getBarcodeMetadata();if(null==t)return null;this.adjustIncompleteIndicatorColumnRowNumbers(t);let e=new Int32Array(t.getRowCount());for(let n of this.getCodewords())if(null!=n){let t=n.getRowNumber();if(t>=e.length)continue;e[t]++}return e}adjustIncompleteIndicatorColumnRowNumbers(t){let e=this.getBoundingBox(),n=this._isLeft?e.getTopLeft():e.getTopRight(),r=this._isLeft?e.getBottomLeft():e.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),s=-1;for(let u=o;u<i;u++){if(null==a[u])continue;let e=a[u];e.setRowNumberAsRowIndicatorColumn();let n=e.getRowNumber()-s;0===n||(1===n?s=e.getRowNumber():e.getRowNumber()>=t.getRowCount()?a[u]=null:s=e.getRowNumber())}}getBarcodeMetadata(){let t=this.getCodewords(),e=new He,n=new He,r=new He,o=new He;for(let a of t){if(null==a)continue;a.setRowNumberAsRowIndicatorColumn();let t=a.getValue()%30,i=a.getRowNumber();switch(this._isLeft||(i+=2),i%3){case 0:n.setValue(3*t+1);break;case 1:o.setValue(t/3),r.setValue(t%3);break;case 2:e.setValue(t+1)}}if(0===e.getValue().length||0===n.getValue().length||0===r.getValue().length||0===o.getValue().length||e.getValue()[0]<1||n.getValue()[0]+r.getValue()[0]<Ne.MIN_ROWS_IN_BARCODE||n.getValue()[0]+r.getValue()[0]>Ne.MAX_ROWS_IN_BARCODE)return null;let i=new Ue(e.getValue()[0],n.getValue()[0],r.getValue()[0],o.getValue()[0]);return this.removeIncorrectCodewords(t,i),i}removeIncorrectCodewords(t,e){for(let n=0;n<t.length;n++){let r=t[n];if(null==t[n])continue;let o=r.getValue()%30,i=r.getRowNumber();if(i>e.getRowCount())t[n]=null;else switch(this._isLeft||(i+=2),i%3){case 0:3*o+1!==e.getRowCountUpperPart()&&(t[n]=null);break;case 1:Math.trunc(o/3)===e.getErrorCorrectionLevel()&&o%3===e.getRowCountLowerPart()||(t[n]=null);break;case 2:o+1!==e.getColumnCount()&&(t[n]=null)}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+"\n"+super.toString()}}class Ge{constructor(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let t,e=Ne.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e<t);return this.detectionResultColumns}adjustIndicatorColumnRowNumbers(t){null!=t&&t.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)}adjustRowNumbersAndGetCount(){let t=this.adjustRowNumbersByRow();if(0===t)return 0;for(let e=1;e<this.barcodeColumnCount+1;e++){let t=this.detectionResultColumns[e].getCodewords();for(let n=0;n<t.length;n++)null!=t[n]&&(t[n].hasValidRowNumber()||this.adjustRowNumbers(e,n,t))}return t}adjustRowNumbersByRow(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()}
vendor: 19,766 bytes, line 2
2adjustRowNumbersFromBothRI(){if(null==this.detectionResultColumns[0]||null==this.detectionResultColumns[this.barcodeColumnCount+1])return;let t=this.detectionResultColumns[0].getCodewords(),e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let n=0;n<t.length;n++)if(null!=t[n]&&null!=e[n]&&t[n].getRowNumber()===e[n].getRowNumber())for(let e=1;e<=this.barcodeColumnCount;e++){let r=this.detectionResultColumns[e].getCodewords()[n];null!=r&&(r.setRowNumber(t[n].getRowNumber()),r.hasValidRowNumber()||(this.detectionResultColumns[e].getCodewords()[n]=null))}}adjustRowNumbersFromRRI(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;let t=0,e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let n=0;n<e.length;n++){if(null==e[n])continue;let r=e[n].getRowNumber(),o=0;for(let e=this.barcodeColumnCount+1;e>0&&o<this.ADJUST_ROW_NUMBER_SKIP;e--){let i=this.detectionResultColumns[e].getCodewords()[n];null!=i&&(o=Ge.adjustRowNumberIfValid(r,o,i),i.hasValidRowNumber()||t++)}}return t}adjustRowNumbersFromLRI(){if(null==this.detectionResultColumns[0])return 0;let t=0,e=this.detectionResultColumns[0].getCodewords();for(let n=0;n<e.length;n++){if(null==e[n])continue;let r=e[n].getRowNumber(),o=0;for(let e=1;e<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;e++){let i=this.detectionResultColumns[e].getCodewords()[n];null!=i&&(o=Ge.adjustRowNumberIfValid(r,o,i),i.hasValidRowNumber()||t++)}}return t}static adjustRowNumberIfValid(t,e,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(t)?(n.setRowNumber(t),e=0):++e),e}adjustRowNumbers(t,e,n){if(!this.detectionResultColumns[t-1])return;let r=n[e],o=this.detectionResultColumns[t-1].getCodewords(),i=o;null!=this.detectionResultColumns[t+1]&&(i=this.detectionResultColumns[t+1].getCodewords());let a=new Array(14);a[2]=o[e],a[3]=i[e],e>0&&(a[0]=n[e-1],a[4]=o[e-1],a[5]=i[e-1]),e>1&&(a[8]=n[e-2],a[10]=o[e-2],a[11]=i[e-2]),e<n.length-1&&(a[1]=n[e+1],a[6]=o[e+1],a[7]=i[e+1]),e<n.length-2&&(a[9]=n[e+2],a[12]=o[e+2],a[13]=i[e+2]);for(let s of a)if(Ge.adjustRowNumber(r,s))return}static adjustRowNumber(t,e){return null!=e&&!(!e.hasValidRowNumber()||e.getBucket()!==t.getBucket())&&(t.setRowNumber(e.getRowNumber()),!0)}getBarcodeColumnCount(){return this.barcodeColumnCount}getBarcodeRowCount(){return this.barcodeMetadata.getRowCount()}getBarcodeECLevel(){return this.barcodeMetadata.getErrorCorrectionLevel()}setBoundingBox(t){this.boundingBox=t}getBoundingBox(){return this.boundingBox}setDetectionResultColumn(t,e){this.detectionResultColumns[t]=e}getDetectionResultColumn(t){return this.detectionResultColumns[t]}toString(){let t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);let e=new ze;for(let n=0;n<t.getCodewords().length;n++){e.format("CW %3d:",n);for(let t=0;t<this.barcodeColumnCount+2;t++){if(null==this.detectionResultColumns[t]){e.format("    |   ");continue}let r=this.detectionResultColumns[t].getCodewords()[n];null!=r?e.format(" %3d|%3d",r.getRowNumber(),r.getValue()):e.format("    |   ")}e.format("%n")}return e.toString()}}class Ye{constructor(t,e,n,r){this.rowNumber=Ye.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(e),this.bucket=Math.trunc(n),this.value=Math.trunc(r)}hasValidRowNumber(){return this.isValidRowNumber(this.rowNumber)}isValidRowNumber(t){return t!==Ye.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3}setRowNumberAsRowIndicatorColumn(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))}getWidth(){return this.endX-this.startX}getStartX(){return this.startX}getEndX(){return this.endX}getBucket(){return this.bucket}getValue(){return this.value}getRowNumber(){return this.rowNumber}setRowNumber(t){this.rowNumber=t}toString(){return this.rowNumber+"|"+this.value}}Ye.BARCODE_ROW_UNKNOWN=-1;class Xe{static initialize(){for(let t=0;t<Ne.SYMBOL_TABLE.length;t++){let e=Ne.SYMBOL_TABLE[t],n=1&e;for(let r=0;r<Ne.BARS_IN_MODULE;r++){let o=0;for(;(1&e)===n;)o+=1,e>>=1;n=1&e,Xe.RATIOS_TABLE[t]||(Xe.RATIOS_TABLE[t]=new Array(Ne.BARS_IN_MODULE)),Xe.RATIOS_TABLE[t][Ne.BARS_IN_MODULE-r-1]=Math.fround(o/Ne.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(t){let e=Xe.getDecodedCodewordValue(Xe.sampleBitCounts(t));return-1!==e?e:Xe.getClosestDecodedValue(t)}static sampleBitCounts(t){let e=nt.sum(t),n=new Int32Array(Ne.BARS_IN_MODULE),r=0,o=0;for(let i=0;i<Ne.MODULES_IN_CODEWORD;i++){let a=e/(2*Ne.MODULES_IN_CODEWORD)+i*e/Ne.MODULES_IN_CODEWORD;o+t[r]<=a&&(o+=t[r],r++),n[r]++}return n}static getDecodedCodewordValue(t){let e=Xe.getBitValue(t);return-1===Ne.getCodeword(e)?-1:e}static getBitValue(t){let e=0;for(let n=0;n<t.length;n++)for(let r=0;r<t[n];r++)e=e<<1|(n%2===0?1:0);return Math.trunc(e)}static getClosestDecodedValue(t){let e=nt.sum(t),n=new Array(Ne.BARS_IN_MODULE);if(e>1)for(let i=0;i<n.length;i++)n[i]=Math.fround(t[i]/e);let r=rt.MAX_VALUE,o=-1;this.bSymbolTableReady||Xe.initialize();for(let i=0;i<Xe.RATIOS_TABLE.length;i++){let t=0,e=Xe.RATIOS_TABLE[i];for(let o=0;o<Ne.BARS_IN_MODULE;o++){let i=Math.fround(e[o]-n[o]);if(t+=Math.fround(i*i),t>=r)break}t<r&&(r=t,o=Ne.SYMBOL_TABLE[i])}return o}}Xe.bSymbolTableReady=!1,Xe.RATIOS_TABLE=new Array(Ne.SYMBOL_TABLE.length).map(t=>new Array(Ne.BARS_IN_MODULE));class Ze{constructor(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(t){this.segmentIndex=t}getFileId(){return this.fileId}setFileId(t){this.fileId=t}getOptionalData(){return this.optionalData}setOptionalData(t){this.optionalData=t}isLastSegment(){return this.lastSegment}setLastSegment(t){this.lastSegment=t}getSegmentCount(){return this.segmentCount}setSegmentCount(t){this.segmentCount=t}getSender(){return this.sender||null}setSender(t){this.sender=t}getAddressee(){return this.addressee||null}setAddressee(t){this.addressee=t}getFileName(){return this.fileName}setFileName(t){this.fileName=t}getFileSize(){return this.fileSize}setFileSize(t){this.fileSize=t}getChecksum(){return this.checksum}setChecksum(t){this.checksum=t}getTimestamp(){return this.timestamp}setTimestamp(t){this.timestamp=t}}class qe{static parseLong(t){return parseInt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}}class Ke extends a{}Ke.kind="NullPointerException";class Qe extends a{}class Je extends class{writeBytes(t){this.writeBytesOffset(t,0,t.length)}writeBytesOffset(t,e,n){if(null==t)throw new Ke;if(e<0||e>t.length||n<0||e+n>t.length||e+n<0)throw new h;if(0!==n)for(let r=0;r<n;r++)this.write(t[e+r])}flush(){}close(){}}{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(super(),this.count=0,t<0)throw new u("Negative initial size: "+t);this.buf=new Uint8Array(t)}ensureCapacity(t){t-this.buf.length>0&&this.grow(t)}grow(t){let e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new Qe;e=m.MAX_VALUE}this.buf=g.copyOfUint8Array(this.buf,e)}write(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1}writeBytesOffset(t,e,n){if(e<0||e>t.length||n<0||e+n-t.length>0)throw new h;this.ensureCapacity(this.count+n),d.arraycopy(t,e,this.buf,this.count,n),this.count+=n}writeTo(t){t.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return g.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(t){return t?"string"===typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(t){return new String(this.buf).toString()}toString_number(t){return new String(this.buf).toString()}close(){}}function $e(){if("undefined"!==typeof window)return window.BigInt||null;if("undefined"!==typeof t)return t.BigInt||null;if("undefined"!==typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}let tn;function en(t){if("undefined"===typeof tn&&(tn=$e()),null===tn)throw new Error("BigInt is not supported!");return tn(t)}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(G||(G={}));class nn{static decode(t,e){let n=new S(""),r=b.ISO8859_1;n.enableDecoding(r);let o=1,i=t[o++],a=new Ze;for(;o<t[0];){switch(i){case nn.TEXT_COMPACTION_MODE_LATCH:o=nn.textCompaction(t,o,n);break;case nn.BYTE_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH_6:o=nn.byteCompaction(i,t,r,o,n);break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:n.append(t[o++]);break;case nn.NUMERIC_COMPACTION_MODE_LATCH:o=nn.numericCompaction(t,o,n);break;case nn.ECI_CHARSET:b.getCharacterSetECIByValue(t[o++]);break;case nn.ECI_GENERAL_PURPOSE:o+=2;break;case nn.ECI_USER_DEFINED:o++;break;case nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:o=nn.decodeMacroBlock(t,o,a);break;case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case nn.MACRO_PDF417_TERMINATOR:throw new _;default:o--,o=nn.textCompaction(t,o,n)}if(!(o<t.length))throw _.getFormatInstance();i=t[o++]}if(0===n.length())throw _.getFormatInstance();let s=new X(null,n.toString(),null,e);return s.setOther(a),s}static decodeMacroBlock(t,e,n){if(e+nn.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw _.getFormatInstance();let r=new Int32Array(nn.NUMBER_OF_SEQUENCE_CODEWORDS);for(let a=0;a<nn.NUMBER_OF_SEQUENCE_CODEWORDS;a++,e++)r[a]=t[e];n.setSegmentIndex(m.parseInt(nn.decodeBase900toBase10(r,nn.NUMBER_OF_SEQUENCE_CODEWORDS)));let o=new S;e=nn.textCompaction(t,e,o),n.setFileId(o.toString());let i=-1;for(t[e]===nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(i=e+1);e<t[0];)switch(t[e]){case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(t[++e]){case nn.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:let r=new S;e=nn.textCompaction(t,e+1,r),n.setFileName(r.toString());break;case nn.MACRO_PDF417_OPTIONAL_FIELD_SENDER:let o=new S;e=nn.textCompaction(t,e+1,o),n.setSender(o.toString());break;case nn.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:let i=new S;e=nn.textCompaction(t,e+1,i),n.setAddressee(i.toString());break;case nn.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:let a=new S;e=nn.numericCompaction(t,e+1,a),n.setSegmentCount(m.parseInt(a.toString()));break;case nn.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:let s=new S;e=nn.numericCompaction(t,e+1,s),n.setTimestamp(qe.parseLong(s.toString()));break;case nn.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:let u=new S;e=nn.numericCompaction(t,e+1,u),n.setChecksum(m.parseInt(u.toString()));break;case nn.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:let c=new S;e=nn.numericCompaction(t,e+1,c),n.setFileSize(qe.parseLong(c.toString()));break;default:throw _.getFormatInstance()}break;case nn.MACRO_PDF417_TERMINATOR:e++,n.setLastSegment(!0);break;default:throw _.getFormatInstance()}if(-1!==i){let r=e-i;n.isLastSegment()&&r--,n.setOptionalData(g.copyOfRange(t,i,i+r))}return e}static textCompaction(t,e,n){let r=new Int32Array(2*(t[0]-e)),o=new Int32Array(2*(t[0]-e)),i=0,a=!1;for(;e<t[0]&&!a;){let n=t[e++];if(n<nn.TEXT_COMPACTION_MODE_LATCH)r[i]=n/30,r[i+1]=n%30,i+=2;else switch(n){case nn.TEXT_COMPACTION_MODE_LATCH:r[i++]=nn.TEXT_COMPACTION_MODE_LATCH;break;case nn.BYTE_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH_6:case nn.NUMERIC_COMPACTION_MODE_LATCH:case nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case nn.MACRO_PDF417_TERMINATOR:e--,a=!0;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r[i]=nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,n=t[e++],o[i]=n,i++}}return nn.decodeTextCompaction(r,o,i,n),e}static decodeTextCompaction(t,e,n,r){let o=G.ALPHA,i=G.ALPHA,a=0;for(;a<n;){let n=t[a],s="";switch(o){case G.ALPHA:if(n<26)s=String.fromCharCode(65+n);else switch(n){case 26:s=" ";break;case nn.LL:o=G.LOWER;break;case nn.ML:o=G.MIXED;break;case nn.PS:i=o,o=G.PUNCT_SHIFT;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[a]);break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}break;case G.LOWER:if(n<26)s=String.fromCharCode(97+n);else switch(n){case 26:s=" ";break;case nn.AS:i=o,o=G.ALPHA_SHIFT;break;case nn.ML:o=G.MIXED;break;case nn.PS:i=o,o=G.PUNCT_SHIFT;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[a]);break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}break;case G.MIXED:if(n<nn.PL)s=nn.MIXED_CHARS[n];else switch(n){case nn.PL:o=G.PUNCT;break;case 26:s=" ";break;case nn.LL:o=G.LOWER;break;case nn.AL:o=G.ALPHA;break;case nn.PS:i=o,o=G.PUNCT_SHIFT;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[a]);break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}break;case G.PUNCT:if(n<nn.PAL)s=nn.PUNCT_CHARS[n];else switch(n){case nn.PAL:o=G.ALPHA;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[a]);break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}break;case G.ALPHA_SHIFT:if(o=i,n<26)s=String.fromCharCode(65+n);else switch(n){case 26:s=" ";break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}break;case G.PUNCT_SHIFT:if(o=i,n<nn.PAL)s=nn.PUNCT_CHARS[n];else switch(n){case nn.PAL:o=G.ALPHA;break;case nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[a]);break;case nn.TEXT_COMPACTION_MODE_LATCH:o=G.ALPHA}}""!==s&&r.append(s),a++}}static byteCompaction(t,e,n,r,o){let i=new Je,a=0,s=0,u=!1;switch(t){case nn.BYTE_COMPACTION_MODE_LATCH:let t=new Int32Array(6),n=e[r++];for(;r<e[0]&&!u;)switch(t[a++]=n,s=900*s+n,n=e[r++],n){case nn.TEXT_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH:case nn.NUMERIC_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH_6:case nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case nn.MACRO_PDF417_TERMINATOR:r--,u=!0;break;default:if(a%5===0&&a>0){for(let t=0;t<6;++t)i.write(Number(en(s)>>en(8*(5-t))));s=0,a=0}}r===e[0]&&n<nn.TEXT_COMPACTION_MODE_LATCH&&(t[a++]=n);for(let e=0;e<a;e++)i.write(t[e]);break;case nn.BYTE_COMPACTION_MODE_LATCH_6:for(;r<e[0]&&!u;){let t=e[r++];if(t<nn.TEXT_COMPACTION_MODE_LATCH)a++,s=900*s+t;else switch(t){case nn.TEXT_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH:case nn.NUMERIC_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH_6:case nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case nn.MACRO_PDF417_TERMINATOR:r--,u=!0}if(a%5===0&&a>0){for(let t=0;t<6;++t)i.write(Number(en(s)>>en(8*(5-t))));s=0,a=0}}}return o.append(C.decode(i.toByteArray(),n)),r}static numericCompaction(t,e,n){let r=0,o=!1,i=new Int32Array(nn.MAX_NUMERIC_CODEWORDS);for(;e<t[0]&&!o;){let a=t[e++];if(e===t[0]&&(o=!0),a<nn.TEXT_COMPACTION_MODE_LATCH)i[r]=a,r++;else switch(a){case nn.TEXT_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH:case nn.BYTE_COMPACTION_MODE_LATCH_6:case nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case nn.MACRO_PDF417_TERMINATOR:e--,o=!0}(r%nn.MAX_NUMERIC_CODEWORDS===0||a===nn.NUMERIC_COMPACTION_MODE_LATCH||o)&&r>0&&(n.append(nn.decodeBase900toBase10(i,r)),r=0)}return e}static decodeBase900toBase10(t,e){let n=en(0);for(let o=0;o<e;o++)n+=nn.EXP900[e-o-1]*en(t[o]);let r=n.toString();if("1"!==r.charAt(0))throw new _;return r.substring(1)}}nn.TEXT_COMPACTION_MODE_LATCH=900,nn.BYTE_COMPACTION_MODE_LATCH=901,nn.NUMERIC_COMPACTION_MODE_LATCH=902,nn.BYTE_COMPACTION_MODE_LATCH_6=924,nn.ECI_USER_DEFINED=925,nn.ECI_GENERAL_PURPOSE=926,nn.ECI_CHARSET=927,nn.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,nn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,nn.MACRO_PDF417_TERMINATOR=922,nn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,nn.MAX_NUMERIC_CODEWORDS=15,nn.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,nn.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,nn.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,nn.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,nn.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,nn.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,nn.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,nn.PL=25,nn.LL=27,nn.AS=27,nn.ML=28,nn.AL=28,nn.PS=29,nn.PAL=29,nn.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",nn.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",nn.EXP900=$e()?function(){let t=[];t[0]=en(1);let e=en(900);t[1]=e;for(let n=2;n<16;n++)t[n]=t[n-1]*e;return t}():[],nn.NUMBER_OF_SEQUENCE_CODEWORDS=2;class rn{constructor(){}static decode(t,e,n,r,o,i,a){let s,u=new Fe(t,e,n,r,o),c=null,l=null;for(let h=!0;;h=!1){if(null!=e&&(c=rn.getRowIndicatorColumn(t,u,e,!0,i,a)),null!=r&&(l=rn.getRowIndicatorColumn(t,u,r,!1,i,a)),s=rn.merge(c,l),null==s)throw I.getNotFoundInstance();let n=s.getBoundingBox();if(!h||null==n||!(n.getMinY()<u.getMinY()||n.getMaxY()>u.getMaxY()))break;u=n}s.setBoundingBox(u);let f=s.getBarcodeColumnCount()+1;s.setDetectionResultColumn(0,c),s.setDetectionResultColumn(f,l);let d=null!=c;for(let h=1;h<=f;h++){let e,n=d?h:f-h;if(void 0!==s.getDetectionResultColumn(n))continue;e=0===n||n===f?new We(u,0===n):new Ve(u),s.setDetectionResultColumn(n,e);let r=-1,o=r;for(let c=u.getMinY();c<=u.getMaxY();c++){if(r=rn.getStartColumn(s,n,c,d),r<0||r>u.getMaxX()){if(-1===o)continue;r=o}let l=rn.detectCodeword(t,u.getMinX(),u.getMaxX(),d,r,c,i,a);null!=l&&(e.setCodeword(c,l),o=r,i=Math.min(i,l.getWidth()),a=Math.max(a,l.getWidth()))}}return rn.createDecoderResult(s)}static merge(t,e){if(null==t&&null==e)return null;let n=rn.getBarcodeMetadata(t,e);if(null==n)return null;let r=Fe.merge(rn.adjustBoundingBox(t),rn.adjustBoundingBox(e));return new Ge(n,r)}static adjustBoundingBox(t){if(null==t)return null;let e=t.getRowHeights();if(null==e)return null;let n=rn.getMax(e),r=0;for(let a of e)if(r+=n-a,a>0)break;let o=t.getCodewords();for(let a=0;r>0&&null==o[a];a++)r--;let i=0;for(let a=e.length-1;a>=0&&(i+=n-e[a],!(e[a]>0));a--);for(let a=o.length-1;i>0&&null==o[a];a--)i--;return t.getBoundingBox().addMissingRows(r,i,t.isLeft())}static getMax(t){let e=-1;for(let n of t)e=Math.max(e,n);return e}static getBarcodeMetadata(t,e){let n,r;return null==t||null==(n=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(r=e.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n}static getRowIndicatorColumn(t,e,n,r,o,i){let a=new We(e,r);for(let s=0;s<2;s++){let u=0===s?1:-1,c=Math.trunc(Math.trunc(n.getX()));for(let s=Math.trunc(Math.trunc(n.getY()));s<=e.getMaxY()&&s>=e.getMinY();s+=u){let e=rn.detectCodeword(t,0,t.getWidth(),r,c,s,o,i);null!=e&&(a.setCodeword(s,e),c=r?e.getStartX():e.getEndX())}}return a}static adjustCodewordCount(t,e){let n=e[0][1],r=n.getValue(),o=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-rn.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===r.length){if(o<1||o>Ne.MAX_CODEWORDS_IN_BARCODE)throw I.getNotFoundInstance();n.setValue(o)}else r[0]!==o&&n.setValue(o)}static createDecoderResult(t){let e=rn.createBarcodeMatrix(t);rn.adjustCodewordCount(t,e);let n=new Array,r=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),o=[],i=new Array;for(let s=0;s<t.getBarcodeRowCount();s++)for(let a=0;a<t.getBarcodeColumnCount();a++){let u=e[s][a+1].getValue(),c=s*t.getBarcodeColumnCount()+a;0===u.length?n.push(c):1===u.length?r[c]=u[0]:(i.push(c),o.push(u))}let a=new Array(o.length);for(let s=0;s<a.length;s++)a[s]=o[s];return rn.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),r,Ne.toIntArray(n),Ne.toIntArray(i),a)}static createDecoderResultFromAmbiguousValues(t,e,n,r,o){let i=new Int32Array(r.length),a=100;for(;a-- >0;){for(let t=0;t<i.length;t++)e[r[t]]=o[t][i[t]];try{return rn.decodeCodewords(e,t,n)}catch(s){if(!(s instanceof l))throw s}if(0===i.length)throw l.getChecksumInstance();for(let t=0;t<i.length;t++){if(i[t]<o[t].length-1){i[t]++;break}if(i[t]=0,t===i.length-1)throw l.getChecksumInstance()}}throw l.getChecksumInstance()}static createBarcodeMatrix(t){let e=Array.from({length:t.getBarcodeRowCount()},()=>new Array(t.getBarcodeColumnCount()+2));for(let r=0;r<e.length;r++)for(let t=0;t<e[r].length;t++)e[r][t]=new He;let n=0;
vendor: 32,257 bytes, line 2
2for(let r of t.getDetectionResultColumns()){if(null!=r)for(let t of r.getCodewords())if(null!=t){let r=t.getRowNumber();if(r>=0){if(r>=e.length)continue;e[r][n].setValue(t.getValue())}}n++}return e}static isValidBarcodeColumn(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1}static getStartColumn(t,e,n,r){let o=r?1:-1,i=null;if(rn.isValidBarcodeColumn(t,e-o)&&(i=t.getDetectionResultColumn(e-o).getCodeword(n)),null!=i)return r?i.getEndX():i.getStartX();if(i=t.getDetectionResultColumn(e).getCodewordNearby(n),null!=i)return r?i.getStartX():i.getEndX();if(rn.isValidBarcodeColumn(t,e-o)&&(i=t.getDetectionResultColumn(e-o).getCodewordNearby(n)),null!=i)return r?i.getEndX():i.getStartX();let a=0;for(;rn.isValidBarcodeColumn(t,e-o);){e-=o;for(let n of t.getDetectionResultColumn(e).getCodewords())if(null!=n)return(r?n.getEndX():n.getStartX())+o*a*(n.getEndX()-n.getStartX());a++}return r?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()}static detectCodeword(t,e,n,r,o,i,a,s){o=rn.adjustCodewordStartColumn(t,e,n,r,o,i);let u,c=rn.getModuleBitCount(t,e,n,r,o,i);if(null==c)return null;let l=nt.sum(c);if(r)u=o+l;else{for(let t=0;t<c.length/2;t++){let e=c[t];c[t]=c[c.length-1-t],c[c.length-1-t]=e}u=o,o=u-l}if(!rn.checkCodewordSkew(l,a,s))return null;let f=Xe.getDecodedValue(c),d=Ne.getCodeword(f);return-1===d?null:new Ye(o,u,rn.getCodewordBucketNumber(f),d)}static getModuleBitCount(t,e,n,r,o,i){let a=o,s=new Int32Array(8),u=0,c=r?1:-1,l=r;for(;(r?a<n:a>=e)&&u<s.length;)t.get(a,i)===l?(s[u]++,a+=c):(u++,l=!l);return u===s.length||a===(r?n:e)&&u===s.length-1?s:null}static getNumberOfECCodeWords(t){return 2<<t}static adjustCodewordStartColumn(t,e,n,r,o,i){let a=o,s=r?-1:1;for(let u=0;u<2;u++){for(;(r?a>=e:a<n)&&r===t.get(a,i);){if(Math.abs(o-a)>rn.CODEWORD_SKEW_SIZE)return o;a+=s}s=-s,r=!r}return a}static checkCodewordSkew(t,e,n){return e-rn.CODEWORD_SKEW_SIZE<=t&&t<=n+rn.CODEWORD_SKEW_SIZE}static decodeCodewords(t,e,n){if(0===t.length)throw _.getFormatInstance();let r=1<<e+1,o=rn.correctErrors(t,n,r);rn.verifyCodewordCount(t,r);let i=nn.decode(t,""+e);return i.setErrorsCorrected(o),i.setErasures(n.length),i}static correctErrors(t,e,n){if(null!=e&&e.length>n/2+rn.MAX_ERRORS||n<0||n>rn.MAX_EC_CODEWORDS)throw l.getChecksumInstance();return rn.errorCorrection.decode(t,n,e)}static verifyCodewordCount(t,e){if(t.length<4)throw _.getFormatInstance();let n=t[0];if(n>t.length)throw _.getFormatInstance();if(0===n){if(!(e<t.length))throw _.getFormatInstance();t[0]=t.length-e}}static getBitCountForCodeword(t){let e=new Int32Array(8),n=0,r=e.length-1;for(;!((1&t)!==n&&(n=1&t,r--,r<0));)e[r]++,t>>=1;return e}static getCodewordBucketNumber(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)}static getCodewordBucketNumber_number(t){return rn.getCodewordBucketNumber(rn.getBitCountForCodeword(t))}static getCodewordBucketNumber_Int32Array(t){return(t[0]-t[2]+t[4]-t[6]+9)%9}static toString(t){let e=new ze;for(let n=0;n<t.length;n++){e.format("Row %2d: ",n);for(let r=0;r<t[n].length;r++){let o=t[n][r];0===o.getValue().length?e.format("        ",null):e.format("%4d(%2d)",o.getValue()[0],o.getConfidence(o.getValue()[0]))}e.format("%n")}return e.toString()}}rn.CODEWORD_SKEW_SIZE=2,rn.MAX_ERRORS=3,rn.MAX_EC_CODEWORDS=512,rn.errorCorrection=new je;class on{decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=on.decode(t,e,!1);if(null==n||0===n.length||null==n[0])throw I.getNotFoundInstance();return n[0]}decodeMultiple(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return on.decode(t,e,!0)}catch(n){if(n instanceof _||n instanceof l)throw I.getNotFoundInstance();throw n}}static decode(t,e,n){const r=new Array,o=Le.detectMultiple(t,e,n);for(const i of o.getPoints()){const t=rn.decode(o.getBits(),i[4],i[5],i[6],i[7],on.getMinCodewordWidth(i),on.getMaxCodewordWidth(i)),e=new B(t.getText(),t.getRawBytes(),void 0,i,F.PDF_417);e.putMetadata(Y.ERROR_CORRECTION_LEVEL,t.getECLevel());const n=t.getOther();null!=n&&e.putMetadata(Y.PDF417_EXTRA_METADATA,n),r.push(e)}return r.map(t=>t)}static getMaxWidth(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMinWidth(t,e){return null==t||null==e?m.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMaxCodewordWidth(t){return Math.floor(Math.max(Math.max(on.getMaxWidth(t[0],t[4]),on.getMaxWidth(t[6],t[2])*Ne.MODULES_IN_CODEWORD/Ne.MODULES_IN_STOP_PATTERN),Math.max(on.getMaxWidth(t[1],t[5]),on.getMaxWidth(t[7],t[3])*Ne.MODULES_IN_CODEWORD/Ne.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(t){return Math.floor(Math.min(Math.min(on.getMinWidth(t[0],t[4]),on.getMinWidth(t[6],t[2])*Ne.MODULES_IN_CODEWORD/Ne.MODULES_IN_STOP_PATTERN),Math.min(on.getMinWidth(t[1],t[5]),on.getMinWidth(t[7],t[3])*Ne.MODULES_IN_CODEWORD/Ne.MODULES_IN_STOP_PATTERN)))}reset(){}}class an extends a{}an.kind="ReaderException";class sn{constructor(t,e){this.verbose=!0===t,e&&this.setHints(e)}decode(t,e){return e&&this.setHints(e),this.decodeInternal(t)}decodeWithState(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)}setHints(t){this.hints=t;const e=!n(t)&&!0===t.get(w.TRY_HARDER),r=n(t)?null:t.get(w.POSSIBLE_FORMATS),o=new Array;if(!n(r)){const n=r.some(t=>t===F.UPC_A||t===F.UPC_E||t===F.EAN_13||t===F.EAN_8||t===F.CODABAR||t===F.CODE_39||t===F.CODE_93||t===F.CODE_128||t===F.ITF||t===F.RSS_14||t===F.RSS_EXPANDED);n&&!e&&o.push(new re(t,this.verbose)),r.includes(F.QR_CODE)&&o.push(new xe),r.includes(F.DATA_MATRIX)&&o.push(new he),r.includes(F.AZTEC)&&o.push(new pt),r.includes(F.PDF_417)&&o.push(new on),n&&e&&o.push(new re(t,this.verbose))}0===o.length&&(e||o.push(new re(t,this.verbose)),o.push(new xe),o.push(new he),o.push(new pt),o.push(new on),e&&o.push(new re(t,this.verbose))),this.readers=o}reset(){if(null!==this.readers)for(const t of this.readers)t.reset()}decodeInternal(t){if(null===this.readers)throw new an("No readers where selected, nothing can be read.");for(const n of this.readers)try{return n.decode(t,this.hints)}catch(e){if(e instanceof an)continue}throw new I("No MultiFormat Readers were able to detect the code.")}}var un;!function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.MIN_SIZE=3]="MIN_SIZE",t[t.MAX_SIZE=4]="MAX_SIZE",t[t.MARGIN=5]="MARGIN",t[t.PDF417_COMPACT=6]="PDF417_COMPACT",t[t.PDF417_COMPACTION=7]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=9]="AZTEC_LAYERS",t[t.QR_VERSION=10]="QR_VERSION"}(un||(un={}));var cn=un;class ln{constructor(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new q(t,Int32Array.from([1])))}buildGenerator(t){const e=this.cachedGenerators;if(t>=e.length){let n=e[e.length-1];const r=this.field;for(let o=e.length;o<=t;o++){const t=n.multiply(new q(r,Int32Array.from([1,r.exp(o-1+r.getGeneratorBase())])));e.push(t),n=t}}return e[t]}encode(t,e){if(0===e)throw new u("No error correction bytes");const n=t.length-e;if(n<=0)throw new u("No data bytes provided");const r=this.buildGenerator(e),o=new Int32Array(n);d.arraycopy(t,0,o,0,n);let i=new q(this.field,o);i=i.multiplyByMonomial(e,1);const a=i.divide(r)[1].getCoefficients(),s=e-a.length;for(let u=0;u<s;u++)t[n+u]=0;d.arraycopy(a,0,t,n+s,a.length)}}class fn{constructor(){}static applyMaskPenaltyRule1(t){return fn.applyMaskPenaltyRule1Internal(t,!0)+fn.applyMaskPenaltyRule1Internal(t,!1)}static applyMaskPenaltyRule2(t){let e=0;const n=t.getArray(),r=t.getWidth(),o=t.getHeight();for(let i=0;i<o-1;i++){const t=n[i];for(let o=0;o<r-1;o++){const r=t[o];r===t[o+1]&&r===n[i+1][o]&&r===n[i+1][o+1]&&e++}}return fn.N2*e}static applyMaskPenaltyRule3(t){let e=0;const n=t.getArray(),r=t.getWidth(),o=t.getHeight();for(let i=0;i<o;i++)for(let t=0;t<r;t++){const a=n[i];t+6<r&&1===a[t]&&0===a[t+1]&&1===a[t+2]&&1===a[t+3]&&1===a[t+4]&&0===a[t+5]&&1===a[t+6]&&(fn.isWhiteHorizontal(a,t-4,t)||fn.isWhiteHorizontal(a,t+7,t+11))&&e++,i+6<o&&1===n[i][t]&&0===n[i+1][t]&&1===n[i+2][t]&&1===n[i+3][t]&&1===n[i+4][t]&&0===n[i+5][t]&&1===n[i+6][t]&&(fn.isWhiteVertical(n,t,i-4,i)||fn.isWhiteVertical(n,t,i+7,i+11))&&e++}return e*fn.N3}static isWhiteHorizontal(t,e,n){e=Math.max(e,0),n=Math.min(n,t.length);for(let r=e;r<n;r++)if(1===t[r])return!1;return!0}static isWhiteVertical(t,e,n,r){n=Math.max(n,0),r=Math.min(r,t.length);for(let o=n;o<r;o++)if(1===t[o][e])return!1;return!0}static applyMaskPenaltyRule4(t){let e=0;const n=t.getArray(),r=t.getWidth(),o=t.getHeight();for(let a=0;a<o;a++){const t=n[a];for(let n=0;n<r;n++)1===t[n]&&e++}const i=t.getHeight()*t.getWidth();return Math.floor(10*Math.abs(2*e-i)/i)*fn.N4}static getDataMaskBit(t,e,n){let r,o;switch(t){case 0:r=n+e&1;break;case 1:r=1&n;break;case 2:r=e%3;break;case 3:r=(n+e)%3;break;case 4:r=Math.floor(n/2)+Math.floor(e/3)&1;break;case 5:o=n*e,r=(1&o)+o%3;break;case 6:o=n*e,r=(1&o)+o%3&1;break;case 7:o=n*e,r=o%3+(n+e&1)&1;break;default:throw new u("Invalid mask pattern: "+t)}return 0===r}static applyMaskPenaltyRule1Internal(t,e){let n=0;const r=e?t.getHeight():t.getWidth(),o=e?t.getWidth():t.getHeight(),i=t.getArray();for(let a=0;a<r;a++){let t=0,r=-1;for(let s=0;s<o;s++){const o=e?i[a][s]:i[s][a];o===r?t++:(t>=5&&(n+=fn.N1+(t-5)),t=1,r=o)}t>=5&&(n+=fn.N1+(t-5))}return n}}fn.N1=3,fn.N2=3,fn.N3=40,fn.N4=10;class dn{constructor(t,e){this.width=t,this.height=e;const n=new Array(e);for(let r=0;r!==e;r++)n[r]=new Uint8Array(t);this.bytes=n}getHeight(){return this.height}getWidth(){return this.width}get(t,e){return this.bytes[e][t]}getArray(){return this.bytes}setNumber(t,e,n){this.bytes[e][t]=n}setBoolean(t,e,n){this.bytes[e][t]=n?1:0}clear(t){for(const e of this.bytes)g.fill(e,t)}equals(t){if(!(t instanceof dn))return!1;const e=t;if(this.width!==e.width)return!1;if(this.height!==e.height)return!1;for(let n=0,r=this.height;n<r;++n){const t=this.bytes[n],r=e.bytes[n];for(let e=0,n=this.width;e<n;++e)if(t[e]!==r[e])return!1}return!0}toString(){const t=new S;for(let e=0,n=this.height;e<n;++e){const n=this.bytes[e];for(let e=0,r=this.width;e<r;++e)switch(n[e]){case 0:t.append(" 0");break;case 1:t.append(" 1");break;default:t.append("  ")}t.append("\n")}return t.toString()}}class hn{constructor(){this.maskPattern=-1}getMode(){return this.mode}getECLevel(){return this.ecLevel}getVersion(){return this.version}getMaskPattern(){return this.maskPattern}getMatrix(){return this.matrix}toString(){const t=new S;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()}setMode(t){this.mode=t}setECLevel(t){this.ecLevel=t}setVersion(t){this.version=t}setMaskPattern(t){this.maskPattern=t}setMatrix(t){this.matrix=t}static isValidMaskPattern(t){return t>=0&&t<hn.NUM_MASK_PATTERNS}}hn.NUM_MASK_PATTERNS=8;class pn extends a{}pn.kind="WriterException";class gn{constructor(){}static clearMatrix(t){t.clear(255)}static buildMatrix(t,e,n,r,o){gn.clearMatrix(o),gn.embedBasicPatterns(n,o),gn.embedTypeInfo(e,r,o),gn.maybeEmbedVersionInfo(n,o),gn.embedDataBits(t,r,o)}static embedBasicPatterns(t,e){gn.embedPositionDetectionPatternsAndSeparators(e),gn.embedDarkDotAtLeftBottomCorner(e),gn.maybeEmbedPositionAdjustmentPatterns(t,e),gn.embedTimingPatterns(e)}static embedTypeInfo(t,e,n){const r=new y;gn.makeTypeInfoBits(t,e,r);for(let o=0,i=r.getSize();o<i;++o){const t=r.get(r.getSize()-1-o),e=gn.TYPE_INFO_COORDINATES[o],i=e[0],a=e[1];if(n.setBoolean(i,a,t),o<8){const e=n.getWidth()-o-1,r=8;n.setBoolean(e,r,t)}else{const e=8,r=n.getHeight()-7+(o-8);n.setBoolean(e,r,t)}}}static maybeEmbedVersionInfo(t,e){if(t.getVersionNumber()<7)return;const n=new y;gn.makeVersionInfoBits(t,n);let r=17;for(let o=0;o<6;++o)for(let t=0;t<3;++t){const i=n.get(r);r--,e.setBoolean(o,e.getHeight()-11+t,i),e.setBoolean(e.getHeight()-11+t,o,i)}}static embedDataBits(t,e,n){let r=0,o=-1,i=n.getWidth()-1,a=n.getHeight()-1;for(;i>0;){for(6===i&&(i-=1);a>=0&&a<n.getHeight();){for(let o=0;o<2;++o){const s=i-o;if(!gn.isEmpty(n.get(s,a)))continue;let u;r<t.getSize()?(u=t.get(r),++r):u=!1,255!==e&&fn.getDataMaskBit(e,s,a)&&(u=!u),n.setBoolean(s,a,u)}a+=o}o=-o,a+=o,i-=2}if(r!==t.getSize())throw new pn("Not all bits consumed: "+r+"/"+t.getSize())}static findMSBSet(t){return 32-m.numberOfLeadingZeros(t)}static calculateBCHCode(t,e){if(0===e)throw new u("0 polynomial");const n=gn.findMSBSet(e);for(t<<=n-1;gn.findMSBSet(t)>=n;)t^=e<<gn.findMSBSet(t)-n;return t}static makeTypeInfoBits(t,e,n){if(!hn.isValidMaskPattern(e))throw new pn("Invalid mask pattern");const r=t.getBits()<<3|e;n.appendBits(r,5);const o=gn.calculateBCHCode(r,gn.TYPE_INFO_POLY);n.appendBits(o,10);const i=new y;if(i.appendBits(gn.TYPE_INFO_MASK_PATTERN,15),n.xor(i),15!==n.getSize())throw new pn("should not happen but we got: "+n.getSize())}static makeVersionInfoBits(t,e){e.appendBits(t.getVersionNumber(),6);const n=gn.calculateBCHCode(t.getVersionNumber(),gn.VERSION_INFO_POLY);if(e.appendBits(n,12),18!==e.getSize())throw new pn("should not happen but we got: "+e.getSize())}static isEmpty(t){return 255===t}static embedTimingPatterns(t){for(let e=8;e<t.getWidth()-8;++e){const n=(e+1)%2;gn.isEmpty(t.get(e,6))&&t.setNumber(e,6,n),gn.isEmpty(t.get(6,e))&&t.setNumber(6,e,n)}}static embedDarkDotAtLeftBottomCorner(t){if(0===t.get(8,t.getHeight()-8))throw new pn;t.setNumber(8,t.getHeight()-8,1)}static embedHorizontalSeparationPattern(t,e,n){for(let r=0;r<8;++r){if(!gn.isEmpty(n.get(t+r,e)))throw new pn;n.setNumber(t+r,e,0)}}static embedVerticalSeparationPattern(t,e,n){for(let r=0;r<7;++r){if(!gn.isEmpty(n.get(t,e+r)))throw new pn;n.setNumber(t,e+r,0)}}static embedPositionAdjustmentPattern(t,e,n){for(let r=0;r<5;++r){const o=gn.POSITION_ADJUSTMENT_PATTERN[r];for(let i=0;i<5;++i)n.setNumber(t+i,e+r,o[i])}}static embedPositionDetectionPattern(t,e,n){for(let r=0;r<7;++r){const o=gn.POSITION_DETECTION_PATTERN[r];for(let i=0;i<7;++i)n.setNumber(t+i,e+r,o[i])}}static embedPositionDetectionPatternsAndSeparators(t){const e=gn.POSITION_DETECTION_PATTERN[0].length;gn.embedPositionDetectionPattern(0,0,t),gn.embedPositionDetectionPattern(t.getWidth()-e,0,t),gn.embedPositionDetectionPattern(0,t.getWidth()-e,t),gn.embedHorizontalSeparationPattern(0,7,t),gn.embedHorizontalSeparationPattern(t.getWidth()-8,7,t),gn.embedHorizontalSeparationPattern(0,t.getWidth()-8,t),gn.embedVerticalSeparationPattern(7,0,t),gn.embedVerticalSeparationPattern(t.getHeight()-7-1,0,t),gn.embedVerticalSeparationPattern(7,t.getHeight()-7,t)}static maybeEmbedPositionAdjustmentPatterns(t,e){if(t.getVersionNumber()<2)return;const n=t.getVersionNumber()-1,r=gn.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n];for(let o=0,i=r.length;o!==i;o++){const t=r[o];if(t>=0)for(let n=0;n!==i;n++){const o=r[n];o>=0&&gn.isEmpty(e.get(o,t))&&gn.embedPositionAdjustmentPattern(o-2,t-2,e)}}}}gn.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),gn.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),gn.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),gn.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),gn.VERSION_INFO_POLY=7973,gn.TYPE_INFO_POLY=1335,gn.TYPE_INFO_MASK_PATTERN=21522;class mn{constructor(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class yn{constructor(){}static calculateMaskPenalty(t){return fn.applyMaskPenaltyRule1(t)+fn.applyMaskPenaltyRule2(t)+fn.applyMaskPenaltyRule3(t)+fn.applyMaskPenaltyRule4(t)}static encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=yn.DEFAULT_BYTE_MODE_ENCODING;const o=null!==n&&void 0!==n.get(cn.CHARACTER_SET);o&&(r=n.get(cn.CHARACTER_SET).toString());const i=this.chooseMode(t,r),a=new y;if(i===Ee.BYTE&&(o||yn.DEFAULT_BYTE_MODE_ENCODING!==r)){const t=b.getCharacterSetECIByName(r);void 0!==t&&this.appendECI(t,a)}this.appendModeInfo(i,a);const s=new y;let u;if(this.appendBytes(t,i,s,r),null!==n&&void 0!==n.get(cn.QR_VERSION)){const t=Number.parseInt(n.get(cn.QR_VERSION).toString(),10);u=ve.getVersionForNumber(t);const r=this.calculateBitsNeeded(i,a,s,u);if(!this.willFit(r,u,e))throw new pn("Data too big for requested version")}else u=this.recommendVersion(e,i,a,s);const c=new y;c.appendBitArray(a);const l=i===Ee.BYTE?s.getSizeInBytes():t.length;this.appendLengthInfo(l,u,i,c),c.appendBitArray(s);const f=u.getECBlocksForLevel(e),d=u.getTotalCodewords()-f.getTotalECCodewords();this.terminateBits(d,c);const h=this.interleaveWithECBytes(c,u.getTotalCodewords(),d,f.getNumBlocks()),p=new hn;p.setECLevel(e),p.setMode(i),p.setVersion(u);const g=u.getDimensionForVersion(),m=new dn(g,g),v=this.chooseMaskPattern(h,e,u,m);return p.setMaskPattern(v),gn.buildMatrix(h,e,u,v,m),p.setMatrix(m),p}static recommendVersion(t,e,n,r){const o=this.calculateBitsNeeded(e,n,r,ve.getVersionForNumber(1)),i=this.chooseVersion(o,t),a=this.calculateBitsNeeded(e,n,r,i);return this.chooseVersion(a,t)}static calculateBitsNeeded(t,e,n,r){return e.getSize()+t.getCharacterCountBits(r)+n.getSize()}static getAlphanumericCode(t){return t<yn.ALPHANUMERIC_TABLE.length?yn.ALPHANUMERIC_TABLE[t]:-1}static chooseMode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(b.SJIS.getName()===e&&this.isOnlyDoubleByteKanji(t))return Ee.KANJI;let n=!1,r=!1;for(let o=0,i=t.length;o<i;++o){const e=t.charAt(o);if(yn.isDigit(e))n=!0;else{if(-1===this.getAlphanumericCode(e.charCodeAt(0)))return Ee.BYTE;r=!0}}return r?Ee.ALPHANUMERIC:n?Ee.NUMERIC:Ee.BYTE}static isOnlyDoubleByteKanji(t){let e;try{e=C.encode(t,b.SJIS)}catch(r){return!1}const n=e.length;if(n%2!==0)return!1;for(let o=0;o<n;o+=2){const t=255&e[o];if((t<129||t>159)&&(t<224||t>235))return!1}return!0}static chooseMaskPattern(t,e,n,r){let o=Number.MAX_SAFE_INTEGER,i=-1;for(let a=0;a<hn.NUM_MASK_PATTERNS;a++){gn.buildMatrix(t,e,n,a,r);let s=this.calculateMaskPenalty(r);s<o&&(o=s,i=a)}return i}static chooseVersion(t,e){for(let n=1;n<=40;n++){const r=ve.getVersionForNumber(n);if(yn.willFit(t,r,e))return r}throw new pn("Data too big")}static willFit(t,e,n){return e.getTotalCodewords()-e.getECBlocksForLevel(n).getTotalECCodewords()>=(t+7)/8}static terminateBits(t,e){const n=8*t;if(e.getSize()>n)throw new pn("data bits cannot fit in the QR Code"+e.getSize()+" > "+n);for(let i=0;i<4&&e.getSize()<n;++i)e.appendBit(!1);const r=7&e.getSize();if(r>0)for(let i=r;i<8;i++)e.appendBit(!1);const o=t-e.getSizeInBytes();for(let i=0;i<o;++i)e.appendBits(0===(1&i)?236:17,8);if(e.getSize()!==n)throw new pn("Bits size does not equal capacity")}static getNumDataBytesAndNumECBytesForBlockID(t,e,n,r,o,i){if(r>=n)throw new pn("Block ID too large");const a=t%n,s=n-a,u=Math.floor(t/n),c=u+1,l=Math.floor(e/n),f=l+1,d=u-l,h=c-f;if(d!==h)throw new pn("EC bytes mismatch");if(n!==s+a)throw new pn("RS blocks mismatch");if(t!==(l+d)*s+(f+h)*a)throw new pn("Total bytes mismatch");r<s?(o[0]=l,i[0]=d):(o[0]=f,i[0]=h)}static interleaveWithECBytes(t,e,n,r){if(t.getSizeInBytes()!==n)throw new pn("Number of bits and data bytes does not match");let o=0,i=0,a=0;const s=new Array;for(let c=0;c<r;++c){const u=new Int32Array(1),l=new Int32Array(1);yn.getNumDataBytesAndNumECBytesForBlockID(e,n,r,c,u,l);const f=u[0],d=new Uint8Array(f);t.toBytes(8*o,d,0,f);const h=yn.generateECBytes(d,l[0]);s.push(new mn(d,h)),i=Math.max(i,f),a=Math.max(a,h.length),o+=u[0]}if(n!==o)throw new pn("Data bytes does not match offset");const u=new y;for(let c=0;c<i;++c)for(const t of s){const e=t.getDataBytes();c<e.length&&u.appendBits(e[c],8)}for(let c=0;c<a;++c)for(const t of s){const e=t.getErrorCorrectionBytes();c<e.length&&u.appendBits(e[c],8)}if(e!==u.getSizeInBytes())throw new pn("Interleaving error: "+e+" and "+u.getSizeInBytes()+" differ.");return u}static generateECBytes(t,e){const n=t.length,r=new Int32Array(n+e);for(let i=0;i<n;i++)r[i]=255&t[i];new ln(Q.QR_CODE_FIELD_256).encode(r,e);const o=new Uint8Array(e);for(let i=0;i<e;i++)o[i]=r[n+i];return o}static appendModeInfo(t,e){e.appendBits(t.getBits(),4)}static appendLengthInfo(t,e,n,r){const o=n.getCharacterCountBits(e);if(t>=1<<o)throw new pn(t+" is bigger than "+((1<<o)-1));r.appendBits(t,o)}static appendBytes(t,e,n,r){switch(e){case Ee.NUMERIC:yn.appendNumericBytes(t,n);break;case Ee.ALPHANUMERIC:yn.appendAlphanumericBytes(t,n);break;case Ee.BYTE:yn.append8BitBytes(t,n,r);break;case Ee.KANJI:yn.appendKanjiBytes(t,n);break;default:throw new pn("Invalid mode: "+e)}}static getDigit(t){return t.charCodeAt(0)-48}static isDigit(t){const e=yn.getDigit(t);return e>=0&&e<=9}static appendNumericBytes(t,e){const n=t.length;let r=0;for(;r<n;){const o=yn.getDigit(t.charAt(r));if(r+2<n){const n=yn.getDigit(t.charAt(r+1)),i=yn.getDigit(t.charAt(r+2));e.appendBits(100*o+10*n+i,10),r+=3}else if(r+1<n){const n=yn.getDigit(t.charAt(r+1));e.appendBits(10*o+n,7),r+=2}else e.appendBits(o,4),r++}}static appendAlphanumericBytes(t,e){const n=t.length;let r=0;for(;r<n;){const o=yn.getAlphanumericCode(t.charCodeAt(r));if(-1===o)throw new pn;if(r+1<n){const n=yn.getAlphanumericCode(t.charCodeAt(r+1));if(-1===n)throw new pn;e.appendBits(45*o+n,11),r+=2}else e.appendBits(o,6),r++}}static append8BitBytes(t,e,n){let r;try{r=C.encode(t,n)}catch(o){throw new pn(o)}for(let i=0,a=r.length;i!==a;i++){const t=r[i];e.appendBits(t,8)}}static appendKanjiBytes(t,e){let n;try{n=C.encode(t,b.SJIS)}catch(o){throw new pn(o)}const r=n.length;for(let i=0;i<r;i+=2){const t=(255&n[i])<<8&4294967295|255&n[i+1];let r=-1;if(t>=33088&&t<=40956?r=t-33088:t>=57408&&t<=60351&&(r=t-49472),-1===r)throw new pn("Invalid byte sequence");const o=192*(r>>8)+(255&r);e.appendBits(o,13)}}static appendECI(t,e){e.appendBits(Ee.ECI.getBits(),4),e.appendBits(t.getValue(),8)}}yn.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),yn.DEFAULT_BYTE_MODE_ENCODING=b.UTF8.getName();class vn{write(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(0===t.length)throw new u("Found empty contents");if(e<0||n<0)throw new u("Requested dimensions are too small: "+e+"x"+n);let o=pe.L,i=vn.QUIET_ZONE_SIZE;null!==r&&(void 0!==r.get(cn.ERROR_CORRECTION)&&(o=pe.fromString(r.get(cn.ERROR_CORRECTION).toString())),void 0!==r.get(cn.MARGIN)&&(i=Number.parseInt(r.get(cn.MARGIN).toString(),10)));const a=yn.encode(t,o,r);return this.renderResult(a,e,n,i)}writeToDom(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;"string"===typeof t&&(t=document.querySelector(t));const i=this.write(e,n,r,o);t&&t.appendChild(i)}renderResult(t,e,n,r){const o=t.getMatrix();if(null===o)throw new $;const i=o.getWidth(),a=o.getHeight(),s=i+2*r,u=a+2*r,c=Math.max(e,s),l=Math.max(n,u),f=Math.min(Math.floor(c/s),Math.floor(l/u)),d=Math.floor((c-i*f)/2),h=Math.floor((l-a*f)/2),p=this.createSVGElement(c,l);for(let g=0,m=h;g<a;g++,m+=f)for(let t=0,e=d;t<i;t++,e+=f)if(1===o.get(t,g)){const t=this.createSvgRectElement(e,m,f,f);p.appendChild(t)}return p}createSVGElement(t,e){const n=document.createElementNS(vn.SVG_NS,"svg");return n.setAttributeNS(null,"height",t.toString()),n.setAttributeNS(null,"width",e.toString()),n}createSvgRectElement(t,e,n,r){const o=document.createElementNS(vn.SVG_NS,"rect");return o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",e.toString()),o.setAttributeNS(null,"height",n.toString()),o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"fill","#000000"),o}}vn.QUIET_ZONE_SIZE=4,vn.SVG_NS="http://www.w3.org/2000/svg";class wn{encode(t,e,n,r,o){if(0===t.length)throw new u("Found empty contents");if(e!==F.QR_CODE)throw new u("Can only encode QR_CODE, but got "+e);if(n<0||r<0)throw new u("Requested dimensions are too small: ".concat(n,"x").concat(r));let i=pe.L,a=wn.QUIET_ZONE_SIZE;null!==o&&(void 0!==o.get(cn.ERROR_CORRECTION)&&(i=pe.fromString(o.get(cn.ERROR_CORRECTION).toString())),void 0!==o.get(cn.MARGIN)&&(a=Number.parseInt(o.get(cn.MARGIN).toString(),10)));const s=yn.encode(t,i,o);return wn.renderResult(s,n,r,a)}static renderResult(t,e,n,r){const o=t.getMatrix();if(null===o)throw new $;const i=o.getWidth(),a=o.getHeight(),s=i+2*r,u=a+2*r,c=Math.max(e,s),l=Math.max(n,u),f=Math.min(Math.floor(c/s),Math.floor(l/u)),d=Math.floor((c-i*f)/2),h=Math.floor((l-a*f)/2),p=new O(c,l);for(let g=0,m=h;g<a;g++,m+=f)for(let t=0,e=d;t<i;t++,e+=f)1===o.get(t,g)&&p.setRegion(e,m,f,f);return p}}wn.QUIET_ZONE_SIZE=4;class _n extends R{constructor(t,e,n,r,o,i,a,s){if(super(i,a),this.yuvData=t,this.dataWidth=e,this.dataHeight=n,this.left=r,this.top=o,r+i>e||o+a>n)throw new u("Crop rectangle does not fit within image data.");s&&this.reverseHorizontal(i,a)}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const n=this.getWidth();(null===e||void 0===e||e.length<n)&&(e=new Uint8ClampedArray(n));const r=(t+this.top)*this.dataWidth+this.left;return d.arraycopy(this.yuvData,r,e,0,n),e}getMatrix(){const t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.yuvData;const n=t*e,r=new Uint8ClampedArray(n);let o=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return d.arraycopy(this.yuvData,o,r,0,n),r;for(let i=0;i<e;i++){const e=i*t;d.arraycopy(this.yuvData,o,r,e,t),o+=this.dataWidth}return r}isCropSupported(){return!0}crop(t,e,n,r){return new _n(this.yuvData,this.dataWidth,this.dataHeight,this.left+t,this.top+e,n,r,!1)}renderThumbnail(){const t=this.getWidth()/_n.THUMBNAIL_SCALE_FACTOR,e=this.getHeight()/_n.THUMBNAIL_SCALE_FACTOR,n=new Int32Array(t*e),r=this.yuvData;let o=this.top*this.dataWidth+this.left;for(let i=0;i<e;i++){const e=i*t;for(let i=0;i<t;i++){const t=255&r[o+i*_n.THUMBNAIL_SCALE_FACTOR];n[e+i]=4278190080|65793*t}o+=this.dataWidth*_n.THUMBNAIL_SCALE_FACTOR}return n}getThumbnailWidth(){return this.getWidth()/_n.THUMBNAIL_SCALE_FACTOR}getThumbnailHeight(){return this.getHeight()/_n.THUMBNAIL_SCALE_FACTOR}reverseHorizontal(t,e){const n=this.yuvData;for(let r=0,o=this.top*this.dataWidth+this.left;r<e;r++,o+=this.dataWidth){const e=o+t/2;for(let r=o,i=o+t-1;r<e;r++,i--){const t=n[r];n[r]=n[i],n[i]=t}}}invert(){return new D(this)}}_n.THUMBNAIL_SCALE_FACTOR=2;class bn extends R{constructor(t,e,n,r,o,i,a){if(super(e,n),this.dataWidth=r,this.dataHeight=o,this.left=i,this.top=a,4===t.BYTES_PER_ELEMENT){const r=e*n,o=new Uint8ClampedArray(r);for(let e=0;e<r;e++){const n=t[e],r=n>>16&255,i=n>>7&510,a=255&n;o[e]=(r+i+a)/4&255}this.luminances=o}else this.luminances=t;if(void 0===r&&(this.dataWidth=e),void 0===o&&(this.dataHeight=n),void 0===i&&(this.left=0),void 0===a&&(this.top=0),this.left+e>this.dataWidth||this.top+n>this.dataHeight)throw new u("Crop rectangle does not fit within image data.")}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const n=this.getWidth();(null===e||void 0===e||e.length<n)&&(e=new Uint8ClampedArray(n));const r=(t+this.top)*this.dataWidth+this.left;return d.arraycopy(this.luminances,r,e,0,n),e}getMatrix(){const t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.luminances;const n=t*e,r=new Uint8ClampedArray(n);let o=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return d.arraycopy(this.luminances,o,r,0,n),r;for(let i=0;i<e;i++){const e=i*t;d.arraycopy(this.luminances,o,r,e,t),o+=this.dataWidth}return r}isCropSupported(){return!0}crop(t,e,n,r){return new bn(this.luminances,n,r,this.dataWidth,this.dataHeight,this.left+t,this.top+e)}invert(){return new D(this)}}class En extends b{static forName(t){return this.getCharacterSetECIByName(t)}}class Cn{}Cn.ISO_8859_1=b.ISO8859_1;class An{isCompact(){return this.compact}setCompact(t){this.compact=t}getSize(){return this.size}setSize(t){this.size=t}getLayers(){return this.layers}setLayers(t){this.layers=t}getCodeWords(){return this.codeWords}setCodeWords(t){this.codeWords=t}getMatrix(){return this.matrix}setMatrix(t){this.matrix=t}}class Sn{static singletonList(t){return[t]}static min(t,e){return t.sort(e)[0]}}class On extends class{constructor(t){this.previous=t}getPrevious(){return this.previous}}{constructor(t,e,n){super(t),this.value=e,this.bitCount=n}appendTo(t,e){t.appendBits(this.value,this.bitCount)}add(t,e){return new On(this,t,e)}addBinaryShift(t,e){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new On(this,t,e)}toString(){let t=this.value&(1<<this.bitCount)-1;return t|=1<<this.bitCount,"<"+m.toBinaryString(t|1<<this.bitCount).substring(1)+">"}}class In extends On{constructor(t,e,n){super(t,0,0),this.binaryShiftStart=e,this.binaryShiftByteCount=n}appendTo(t,e){for(let n=0;n<this.binaryShiftByteCount;n++)(0===n||31===n&&this.binaryShiftByteCount<=62)&&(t.appendBits(31,5),this.binaryShiftByteCount>62?t.appendBits(this.binaryShiftByteCount-31,16):0===n?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+n],8)}addBinaryShift(t,e){return new In(this,t,e)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}function Tn(t,e,n){return new On(t,e,n)}const Mn=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],Rn=new On(null,0,0),Dn=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,65638
vendor: 12,734 bytes, line 2
20,656382,656381,0])],xn=function(t){for(let e of t)g.fill(e,-1);return t[0][4]=0,t[1][4]=0,t[1][0]=28,t[3][4]=0,t[2][4]=0,t[2][0]=15,t}(g.createInt32Array(6,6));class Nn{constructor(t,e,n,r){this.token=t,this.mode=e,this.binaryShiftByteCount=n,this.bitCount=r}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(t,e){let n=this.bitCount,r=this.token;if(t!==this.mode){let e=Dn[this.mode][t];r=Tn(r,65535&e,e>>16),n+=e>>16}let o=2===t?4:5;return r=Tn(r,e,o),new Nn(r,t,0,n+o)}shiftAndAppend(t,e){let n=this.token,r=2===this.mode?4:5;return n=Tn(n,xn[this.mode][t],r),n=Tn(n,e,5),new Nn(n,this.mode,0,this.bitCount+r+5)}addBinaryShiftChar(t){let e=this.token,n=this.mode,r=this.bitCount;if(4===this.mode||2===this.mode){let t=Dn[n][0];e=Tn(e,65535&t,t>>16),r+=t>>16,n=0}let o=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,i=new Nn(e,n,this.binaryShiftByteCount+1,r+o);return 2078===i.binaryShiftByteCount&&(i=i.endBinaryShift(t+1)),i}endBinaryShift(t){if(0===this.binaryShiftByteCount)return this;let e=this.token;return e=function(t,e,n){return new In(t,e,n)}(e,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new Nn(e,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(t){let e=this.bitCount+(Dn[this.mode][t.mode]>>16);return this.binaryShiftByteCount<t.binaryShiftByteCount?e+=Nn.calculateBinaryShiftCost(t)-Nn.calculateBinaryShiftCost(this):this.binaryShiftByteCount>t.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(e+=10),e<=t.bitCount}toBitArray(t){let e=[];for(let r=this.endBinaryShift(t.length).token;null!==r;r=r.getPrevious())e.unshift(r);let n=new y;for(const r of e)r.appendTo(n,t);return n}toString(){return A.format("%s bits=%d bytes=%d",Mn[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0}}Nn.INITIAL_STATE=new Nn(Rn,0,0,0);const Pn=function(t){const e=A.getCharCode(" "),n=A.getCharCode("."),r=A.getCharCode(",");t[0][e]=1;const o=A.getCharCode("Z"),i=A.getCharCode("A");for(let d=i;d<=o;d++)t[0][d]=d-i+2;t[1][e]=1;const a=A.getCharCode("z"),s=A.getCharCode("a");for(let d=s;d<=a;d++)t[1][d]=d-s+2;t[2][e]=1;const u=A.getCharCode("9"),c=A.getCharCode("0");for(let d=c;d<=u;d++)t[2][d]=d-c+2;t[2][r]=12,t[2][n]=13;const l=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"];for(let d=0;d<l.length;d++)t[3][A.getCharCode(l[d])]=d;const f=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(let d=0;d<f.length;d++)A.getCharCode(f[d])>0&&(t[4][A.getCharCode(f[d])]=d);return t}(g.createInt32Array(5,256));class Ln{constructor(t){this.text=t}encode(){const t=A.getCharCode(" "),e=A.getCharCode("\n");let n=Sn.singletonList(Nn.INITIAL_STATE);for(let r=0;r<this.text.length;r++){let o,i=r+1<this.text.length?this.text[r+1]:0;switch(this.text[r]){case A.getCharCode("\r"):o=i===e?2:0;break;case A.getCharCode("."):o=i===t?3:0;break;case A.getCharCode(","):o=i===t?4:0;break;case A.getCharCode(":"):o=i===t?5:0;break;default:o=0}o>0?(n=Ln.updateStateListForPair(n,r,o),r++):n=this.updateStateListForChar(n,r)}return Sn.min(n,(t,e)=>t.getBitCount()-e.getBitCount()).toBitArray(this.text)}updateStateListForChar(t,e){const n=[];for(let r of t)this.updateStateForChar(r,e,n);return Ln.simplifyStates(n)}updateStateForChar(t,e,n){let r=255&this.text[e],o=Pn[t.getMode()][r]>0,i=null;for(let a=0;a<=4;a++){let s=Pn[a][r];if(s>0){if(null==i&&(i=t.endBinaryShift(e)),!o||a===t.getMode()||2===a){const t=i.latchAndAppend(a,s);n.push(t)}if(!o&&xn[t.getMode()][a]>=0){const t=i.shiftAndAppend(a,s);n.push(t)}}}if(t.getBinaryShiftByteCount()>0||0===Pn[t.getMode()][r]){let r=t.addBinaryShiftChar(e);n.push(r)}}static updateStateListForPair(t,e,n){const r=[];for(let o of t)this.updateStateForPair(o,e,n,r);return this.simplifyStates(r)}static updateStateForPair(t,e,n,r){let o=t.endBinaryShift(e);if(r.push(o.latchAndAppend(4,n)),4!==t.getMode()&&r.push(o.shiftAndAppend(4,n)),3===n||4===n){let t=o.latchAndAppend(2,16-n).latchAndAppend(2,1);r.push(t)}if(t.getBinaryShiftByteCount()>0){let n=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);r.push(n)}}static simplifyStates(t){let e=[];for(const n of t){let t=!0;for(const r of e){if(r.isBetterThanOrEqualTo(n)){t=!1;break}n.isBetterThanOrEqualTo(r)&&(e=e.filter(t=>t!==r))}t&&e.push(n)}return e}}class kn{constructor(){}static encodeBytes(t){return kn.encode(t,kn.DEFAULT_EC_PERCENT,kn.DEFAULT_AZTEC_LAYERS)}static encode(t,e,n){let r,o,i,a,s,c=new Ln(t).encode(),l=m.truncDivision(c.getSize()*e,100)+11,f=c.getSize()+l;if(n!==kn.DEFAULT_AZTEC_LAYERS){if(r=n<0,o=Math.abs(n),o>(r?kn.MAX_NB_BITS_COMPACT:kn.MAX_NB_BITS))throw new u(A.format("Illegal value %s for layers",n));i=kn.totalBitsInLayer(o,r),a=kn.WORD_SIZE[o];let t=i-i%a;if(s=kn.stuffBits(c,a),s.getSize()+l>t)throw new u("Data to large for user specified layer");if(r&&s.getSize()>64*a)throw new u("Data to large for user specified layer")}else{a=0,s=null;for(let t=0;;t++){if(t>kn.MAX_NB_BITS)throw new u("Data too large for an Aztec code");if(r=t<=3,o=r?t+1:t,i=kn.totalBitsInLayer(o,r),f>i)continue;null!=s&&a===kn.WORD_SIZE[o]||(a=kn.WORD_SIZE[o],s=kn.stuffBits(c,a));let e=i-i%a;if(!(r&&s.getSize()>64*a)&&s.getSize()+l<=e)break}}let d,h=kn.generateCheckWords(s,i,a),p=s.getSize()/a,g=kn.generateModeMessage(r,o,p),y=(r?11:14)+4*o,v=new Int32Array(y);if(r){d=y;for(let t=0;t<v.length;t++)v[t]=t}else{d=y+1+2*m.truncDivision(m.truncDivision(y,2)-1,15);let t=m.truncDivision(y,2),e=m.truncDivision(d,2);for(let n=0;n<t;n++){let r=n+m.truncDivision(n,15);v[t-n-1]=e-r-1,v[t+n]=e+r+1}}let w=new O(d);for(let u=0,m=0;u<o;u++){let t=4*(o-u)+(r?9:12);for(let e=0;e<t;e++){let n=2*e;for(let r=0;r<2;r++)h.get(m+n+r)&&w.set(v[2*u+r],v[2*u+e]),h.get(m+2*t+n+r)&&w.set(v[2*u+e],v[y-1-2*u-r]),h.get(m+4*t+n+r)&&w.set(v[y-1-2*u-r],v[y-1-2*u-e]),h.get(m+6*t+n+r)&&w.set(v[y-1-2*u-e],v[2*u+r])}m+=8*t}if(kn.drawModeMessage(w,r,d,g),r)kn.drawBullsEye(w,m.truncDivision(d,2),5);else{kn.drawBullsEye(w,m.truncDivision(d,2),7);for(let t=0,e=0;t<m.truncDivision(y,2)-1;t+=15,e+=16)for(let n=1&m.truncDivision(d,2);n<d;n+=2)w.set(m.truncDivision(d,2)-e,n),w.set(m.truncDivision(d,2)+e,n),w.set(n,m.truncDivision(d,2)-e),w.set(n,m.truncDivision(d,2)+e)}let _=new An;return _.setCompact(r),_.setSize(d),_.setLayers(o),_.setCodeWords(p),_.setMatrix(w),_}static drawBullsEye(t,e,n){for(let r=0;r<n;r+=2)for(let n=e-r;n<=e+r;n++)t.set(n,e-r),t.set(n,e+r),t.set(e-r,n),t.set(e+r,n);t.set(e-n,e-n),t.set(e-n+1,e-n),t.set(e-n,e-n+1),t.set(e+n,e-n),t.set(e+n,e-n+1),t.set(e+n,e+n-1)}static generateModeMessage(t,e,n){let r=new y;return t?(r.appendBits(e-1,2),r.appendBits(n-1,6),r=kn.generateCheckWords(r,28,4)):(r.appendBits(e-1,5),r.appendBits(n-1,11),r=kn.generateCheckWords(r,40,4)),r}static drawModeMessage(t,e,n,r){let o=m.truncDivision(n,2);if(e)for(let i=0;i<7;i++){let e=o-3+i;r.get(i)&&t.set(e,o-5),r.get(i+7)&&t.set(o+5,e),r.get(20-i)&&t.set(e,o+5),r.get(27-i)&&t.set(o-5,e)}else for(let i=0;i<10;i++){let e=o-5+i+m.truncDivision(i,5);r.get(i)&&t.set(e,o-7),r.get(i+10)&&t.set(o+7,e),r.get(29-i)&&t.set(e,o+7),r.get(39-i)&&t.set(o-7,e)}}static generateCheckWords(t,e,n){let r=t.getSize()/n,o=new ln(kn.getGF(n)),i=m.truncDivision(e,n),a=kn.bitsToWords(t,n,i);o.encode(a,i-r);let s=e%n,u=new y;u.appendBits(0,s);for(const c of Array.from(a))u.appendBits(c,n);return u}static bitsToWords(t,e,n){let r,o,i=new Int32Array(n);for(r=0,o=t.getSize()/e;r<o;r++){let n=0;for(let o=0;o<e;o++)n|=t.get(r*e+o)?1<<e-o-1:0;i[r]=n}return i}static getGF(t){switch(t){case 4:return Q.AZTEC_PARAM;case 6:return Q.AZTEC_DATA_6;case 8:return Q.AZTEC_DATA_8;case 10:return Q.AZTEC_DATA_10;case 12:return Q.AZTEC_DATA_12;default:throw new u("Unsupported word size "+t)}}static stuffBits(t,e){let n=new y,r=t.getSize(),o=(1<<e)-2;for(let i=0;i<r;i+=e){let a=0;for(let n=0;n<e;n++)(i+n>=r||t.get(i+n))&&(a|=1<<e-1-n);(a&o)===o?(n.appendBits(a&o,e),i--):0===(a&o)?(n.appendBits(1|a,e),i--):n.appendBits(a,e)}return n}static totalBitsInLayer(t,e){return((e?88:112)+16*t)*t}}kn.DEFAULT_EC_PERCENT=33,kn.DEFAULT_AZTEC_LAYERS=0,kn.MAX_NB_BITS=32,kn.MAX_NB_BITS_COMPACT=4,kn.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]);class Bn{encode(t,e,n,r){return this.encodeWithHints(t,e,n,r,null)}encodeWithHints(t,e,n,r,o){let i=Cn.ISO_8859_1,a=kn.DEFAULT_EC_PERCENT,s=kn.DEFAULT_AZTEC_LAYERS;return null!=o&&(o.has(cn.CHARACTER_SET)&&(i=En.forName(o.get(cn.CHARACTER_SET).toString())),o.has(cn.ERROR_CORRECTION)&&(a=m.parseInt(o.get(cn.ERROR_CORRECTION).toString())),o.has(cn.AZTEC_LAYERS)&&(s=m.parseInt(o.get(cn.AZTEC_LAYERS).toString()))),Bn.encodeLayers(t,e,n,r,i,a,s)}static encodeLayers(t,e,n,r,o,i,a){if(e!==F.AZTEC)throw new u("Can only encode AZTEC, but got "+e);let s=kn.encode(A.getBytes(t,o),i,a);return Bn.renderResult(s,n,r)}static renderResult(t,e,n){let r=t.getMatrix();if(null==r)throw new $;let o=r.getWidth(),i=r.getHeight(),a=Math.max(e,o),s=Math.max(n,i),u=Math.min(a/o,s/i),c=(a-o*u)/2,l=(s-i*u)/2,f=new O(a,s);for(let d=0,h=l;d<i;d++,h+=u)for(let t=0,e=c;t<o;t++,e+=u)r.get(t,d)&&f.setRegion(e,h,u,u);return f}}e.AbstractExpandedDecoder=Ut,e.ArgumentException=s,e.ArithmeticException=K,e.AztecCode=An,e.AztecCodeReader=pt,e.AztecCodeWriter=Bn,e.AztecDecoder=et,e.AztecDetector=ht,e.AztecDetectorResult=at,e.AztecEncoder=kn,e.AztecHighLevelEncoder=Ln,e.AztecPoint=dt,e.BarcodeFormat=F,e.Binarizer=f,e.BinaryBitmap=c,e.BitArray=y,e.BitMatrix=O,e.BitSource=ce,e.BrowserAztecCodeReader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;super(new pt,t)}},e.BrowserBarcodeReader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,e=arguments.length>1?arguments[1]:void 0;super(new re(e),t,e)}},e.BrowserCodeReader=k,e.BrowserDatamatrixCodeReader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;super(new he,t)}},e.BrowserMultiFormatReader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;const n=new sn;n.setHints(t),super(n,e)}decodeBitmap(t){return this.reader.decodeWithState(t)}},e.BrowserPDF417Reader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;super(new on,t)}},e.BrowserQRCodeReader=class extends k{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;super(new xe,t)}},e.BrowserQRCodeSvgWriter=vn,e.CharacterSetECI=b,e.ChecksumException=l,e.Code128Reader=mt,e.Code39Reader=yt,e.DataMatrixDecodedBitStreamParser=le,e.DataMatrixReader=he,e.DecodeHintType=w,e.DecoderResult=X,e.DefaultGridSampler=lt,e.DetectorResult=it,e.EAN13Reader=At,e.EncodeHintType=cn,e.Exception=a,e.FormatException=_,e.GenericGF=Q,e.GenericGFPoly=q,e.GlobalHistogramBinarizer=T,e.GridSampler=ut,e.GridSamplerInstance=ft,e.HTMLCanvasElementLuminanceSource=x,e.HybridBinarizer=M,e.ITFReader=vt,e.IllegalArgumentException=u,e.IllegalStateException=$,e.InvertedLuminanceSource=D,e.LuminanceSource=R,e.MathUtils=nt,e.MultiFormatOneDReader=re,e.MultiFormatReader=sn,e.MultiFormatWriter=class{encode(t,e,n,r,o){let i;switch(e){case F.QR_CODE:i=new wn;break;default:throw new u("No encoder available for format "+e)}return i.encode(t,e,n,r,o)}},e.NotFoundException=I,e.OneDReader=gt,e.PDF417DecodedBitStreamParser=nn,e.PDF417DecoderErrorCorrection=je,e.PDF417Reader=on,e.PDF417ResultMetadata=Ze,e.PerspectiveTransform=ct,e.PlanarYUVLuminanceSource=_n,e.QRCodeByteMatrix=dn,e.QRCodeDataMask=we,e.QRCodeDecodedBitStreamParser=Ce,e.QRCodeDecoderErrorCorrectionLevel=pe,e.QRCodeDecoderFormatInformation=ge,e.QRCodeEncoder=yn,e.QRCodeEncoderQRCode=hn,e.QRCodeMaskUtil=fn,e.QRCodeMatrixUtil=gn,e.QRCodeMode=Ee,e.QRCodeReader=xe,e.QRCodeVersion=ve,e.QRCodeWriter=wn,e.RGBLuminanceSource=bn,e.RSS14Reader=ne,e.RSSExpandedReader=te,e.ReaderException=an,e.ReedSolomonDecoder=tt,e.ReedSolomonEncoder=ln,e.ReedSolomonException=J,e.Result=B,e.ResultMetadataType=Y,e.ResultPoint=ot,e.StringUtils=A,e.UnsupportedOperationException=E,e.VideoInputDevice=N,e.WhiteRectangleDetector=st,e.WriterException=pn,e.ZXingArrays=g,e.ZXingCharset=En,e.ZXingInteger=m,e.ZXingStandardCharsets=Cn,e.ZXingStringBuilder=S,e.ZXingStringEncoding=C,e.ZXingSystem=d,e.createAbstractExpandedDecoder=Qt,Object.defineProperty(e,"__esMo
2dule",{value:!0})})(e)}).call(this,n(71))},7709:function(t,e,n){"use strict";var r=n(1);var o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},s=function(t){function e(){var t,n,r;o(this,e);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(t){var e=t.visibleStartIndex,n=t.visibleStopIndex;r._lastRenderedStartIndex=e,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(e,n)},r._setRef=function(t){r._listRef=t},a(r,n)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"resetloadMoreItemsCache",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],t&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){0}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(t,e){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,u=void 0===s?15:s,c=function(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,o=t.startIndex,i=t.stopIndex,a=[],s=null,u=null,c=o;c<=i;c++){e(c)?null!==u&&(a.push(s,u),s=u=null):(u=c,null===s&&(s=c))}if(null!==u){for(var l=Math.min(Math.max(u,s+r-1),n-1),f=u+1;f<=l&&!e(f);f++)u=f;a.push(s,u)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var d=a[0]-1;if(e(d))break;a[0]=d}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,t-u),stopIndex:Math.min(o-1,e+u)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(t,e){return c[e]!==t})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(t){for(var e=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=t[r],i=t[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,o=t.stopIndex;return!(r>n||o<e)}({lastRenderedStartIndex:e._lastRenderedStartIndex,lastRenderedStopIndex:e._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==e._listRef)return;"function"===typeof e._listRef.resetAfterIndex?e._listRef.resetAfterIndex(o,!0):("function"===typeof e._listRef._getItemStyleCache&&e._listRef._getItemStyleCache(-1),e._listRef.forceUpdate())}}))},o=0;o<t.length;o+=2)r(o)}}]),e}(r.PureComponent);e.a=s},7710:function(t,e,n){var r;globalThis,r=()=>(()=>{"use strict";var t={949(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(515),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t,e,n=null!==(t=this.expression)&&void 0!==t?t:"";if("@reboot"===n)return e=["@reboot","","","","","",""];if(n.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},t.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"}[t];if(!e)throw new Error("Unknown special expression.");return e},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),n=0;n<e.length;n++)if(e[n].includes(",")){var r=e[n].split(",").map((function(t){return t.trim()})).filter((function(t){return""!==t})).map((function(t){return isNaN(Number(t))?t:Number(t)})).filter((function(t){return null!==t&&""!==t}));0===r.length&&r.push("*"),r.sort((function(t,e){return null!==t&&null!==e?t-e:0})),e[n]=r.map((function(t){return null!==t?t.toString():""})).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("");else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.validateOnlyExpectedCharactersFound(t[0],"0-9,\\-*/"),this.validateOnlyExpectedCharactersFound(t[1],"0-9,\\-*/"),this.validateOnlyExpectedCharactersFound(t[2],"0-9,\\-*/"),this.validateOnlyExpectedCharactersFound(t[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(t[4],"0-9,\\-*/"),this.validateOnlyExpectedCharactersFound(t[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(t[6],"0-9,\\-*/"),this.validateAnyRanges(t)},t.prototype.validateAnyRanges=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.validateOnlyExpectedCharactersFound=function(t,e){var n=t.match(new RegExp("[^".concat(e,"]+"),"gi"));
vendor: 8,692 bytes, line 2
2if(n&&n.length)throw new Error("Expression contains invalid values: '".concat(n.toString(),"'"))},t}();e.CronParser=o},333(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(823),o=n(949),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,l=r.monthStartIndexZero,f=void 0!==l&&l,d=r.use24HourTimeFormat,h=r.trimHoursLeadingZero,p=void 0!==h&&h,g=r.locale,m=void 0===g?null:g,y=r.logicalAndDayFields,v={throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:d,trimHoursLeadingZero:p,locale:m,logicalAndDayFields:void 0!==y&&y};return v.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported."),new t(e,v).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t,e,n="";try{var r=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=r.parse(),"@reboot"===this.expressionParts[0])return(null===(e=(t=this.i18n).atReboot)||void 0===e?void 0:e.call(t))||"Run once, at startup";var i=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),s=this.getMonthDescription();n+=i+a+this.getDayOfWeekDescription()+s+this.getYearDescription(),n=(n=this.transformVerbosity(n,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+n.substr(1)}catch(u){if(this.options.throwExceptionOnParseError)throw"".concat(u);n=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return n},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),l=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===l)return i;i&&l&&(i+=", "),i+=l}else{var f=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,f[0],""),this.formatTime(o,f[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){var o,i;try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():"0"==r?(null===(i=(o=t.i18n).onTheHour)||void 0===i?void 0:i.call(o))||t.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(a){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=0,o=[];e.split("/")[0].split(",").forEach((function(t){var e=t.split("-");2===e.length&&o.push({value:e[1],index:n+1}),n+=e.length}));var i=0;return this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){var n=o.find((function(t){return t.value===e&&t.index===i}))&&"0"!==t.expressionParts[1];return i++,n?t.formatTime(e,"59",""):t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}))},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var i=parseInt(o),a=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[i]:e[i];if(n.indexOf("#")>-1){var s=null,u=n.substring(n.indexOf("#")+1),c=n.substring(0,n.indexOf("#"));switch(u){case"1":s=t.i18n.first(c);break;case"2":s=t.i18n.second(c);break;case"3":s=t.i18n.third(c);break;case"4":s=t.i18n.fourth(c);break;case"5":s=t.i18n.fifth(c)}a=s+" "+a}return a}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),o=e.substring(0,e.indexOf("#"));n=t.i18n.commaOnThe(r,o).trim()+t.i18n.spaceX0OfTheMonth()}else n=e.indexOf("L")>-1?t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L","")):"*"!=t.expressionParts[3]?t.options.logicalAndDayFields?t.i18n.commaOnlyOnX0(e):t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e);return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,l=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||l)if(l){for(var f=t.split(","),d="",h=0;h<f.length;h++)if(h>0&&f.length>
vendor: 6,261 bytes, line 2
22&&(d+=",",h<f.length-1&&(d+=" ")),h>0&&f.length>1&&(h==f.length-1||2==f.length)&&(d+="".concat(this.i18n.spaceAnd()," ")),f[h].indexOf("/")>-1||f[h].indexOf("-")>-1){var p=f[h].indexOf("-")>-1&&-1==f[h].indexOf("/"),g=this.getSegmentDescription(f[h],e,n,o,p?this.i18n.commaX0ThroughX1:i,a);p&&(g=g.replace(", ","")),d+=g}else if(u){var m=this.getSegmentDescription(f[h],e,n,o,i,a);m&&m.startsWith(", ")&&(m=m.substring(2)),d+=m}else d+=n(f[h]);s=u?d:r.StringUtilities.format(a(t),d)}else if(u){if(f=t.split("/"),s=r.StringUtilities.format(o(f[1]),f[1]),f[0].indexOf("-")>-1){var y=this.generateRangeSegmentDescription(f[0],i,n);0!=y.indexOf(", ")&&(s+=", "),s+=y}else if(-1==f[0].indexOf("*")){var v=r.StringUtilities.format(a(f[0]),n(f[0]));v=v.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t)+0,o=parseInt(e)+0;o>=60?(o-=60,r+=1):o<0&&(o+=60,r-=1),r>=24?r-=24:r<0&&(r=24+r);var i="",a=!1;this.options.use24HourTimeFormat||(i=(a=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var s="";n&&(s=":".concat(("00"+n).substring(n.length)));var u=r.toString(),c=("00"+u).substring(u.length),l=o.toString(),f=("00"+l).substring(l.length),d=this.options.trimHoursLeadingZero?u:c;return"".concat(a?i:"").concat(d,":").concat(f).concat(s).concat(a?"":i)},t.prototype.transformVerbosity=function(t,e){if(!e&&(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var o=r[n],i=o[0],a=o[1];t=t.replace(new RegExp(i,"g"),a)}return t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},747(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(486),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},486(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days in a month"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t.prototype.atReboot=function(){return"Run once, at startup"},t.prototype.onTheHour=function(){return"on the hour"},t}();e.en=n},515(t,e){function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},823(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(333),o=n(747);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})(),t.exports=r()},7711:function(t,e,n){var r,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let o of s(e))c.call(t,o)||o===n||i(t,o,{get:()=>e[o],enumerable:!(r=a(e,o))||r.enumerable});return t},f={};((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})(f,{default:()=>g}),t.exports=(r=f,l(i({},"__esModule",{value:!0}),r));var d=((t,e,n)=>(n=null!=t?o(u(t)):{},l(!e&&t&&t.__esModule?n:i(n,"default",{value:t,enumerable:!0}),t)))(n(7712)),h=n(7714);const p=d.default[d.default.length-1];var g=(0,h.createReactPlayer)(d.default,p)},7712:function(t,e,n){Object.create;var r,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),u=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let u of a(e))s.call(t,u)||u===n||o(t,u,{get:()=>e[u],enumerable:!(r=i(e,u))||r.enumerable});return t},c={};((t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})})(c,{default:()=>d}),t.exports=(r=c,u(o({},"__esModule",{value:!0}),r));var l=n(757),f=n(778),d=[{key:"youtube",name:"YouTube",canPlay:f.canPlay.youtube,lazyPlayer:(0,l.lazy)(()=>n.e(17).then(n.t.bind(null,7888,7)))},{key:"soundcloud",name:"SoundCloud",canPlay:f.canPlay.soundcloud,lazyPlayer:(0,l.lazy)(()=>n.e(11).then(n.t.bind(null,7889,7)))},{key:"vimeo",name:"Vimeo",canPlay:f.canPlay.vimeo,lazyPlayer:(0,l.lazy)(()=>n.e(15).then(n.t.bind(null,7890,7)))},{key:"mux",name:"Mux",canPlay:f.canPlay.mux,lazyPlayer:(0,l.lazy)(()=>n.e(9).then(n.t.bind(null,7891,7)))},{key:"facebook",name:"Facebook",canPlay:f.canPlay.facebook,lazyPlayer:(0,l.lazy)(()=>n.e(5).then(n.t.bind(null,7892,7)))},{key:"streamable",name:"Streamable",canPlay:f.canPlay.streamable,lazyPlayer:(0,l.lazy)(()=>n.e(12).then(n.t.bind(null,7893,7)))},{key:"wistia",name:"Wistia",canPlay:f.canPlay.wistia,lazyPlayer:(0,l.lazy)(()=>n.e(16).then(n.t.bind(null,7894,7)))},{key:"twitch",name:"Twitch",canPlay:f.canPlay.twitch,lazyPlayer:(0,l.lazy)(()=>n.e(13).then(n.t.bind(null,7895,7)))},{key:"dailymotion",name:"DailyMotion",canPlay:f.canPlay.dailymotion,lazyPlayer:(0,l.lazy)(()=>n.e(4).then(n.t.bind(null,7896,7)))},{key:"mixcloud",name:"Mixcloud",canPlay:f.canPlay.mixcloud,lazyPlayer:(0,l.lazy)(()=>n.e(8).then(n.t.bind(null,7897,7)))}
2,{key:"vidyard",name:"Vidyard",canPlay:f.canPlay.vidyard,lazyPlayer:(0,l.lazy)(()=>n.e(14).then(n.t.bind(null,7898,7)))},{key:"kaltura",name:"Kaltura",canPlay:f.canPlay.kaltura,lazyPlayer:(0,l.lazy)(()=>n.e(7).then(n.t.bind(null,7899,7)))},{key:"file",name:"FilePlayer",canPlay:f.canPlay.file,canEnablePIP:t=>f.canPlay.file(t)&&(document.pictureInPictureEnabled||(0,l.supportsWebKitPresentationMode)())&&!f.AUDIO_EXTENSIONS.test(t),lazyPlayer:(0,l.lazy)(()=>n.e(6).then(n.t.bind(null,7900,7)))}]},7713:function(t,e){function n(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function r(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof e&&(o=e,e={}),e=e||{},o=o||function(){},a.type=e.type||"text/javascript",a.charset=e.charset||"utf8",a.async=!("async"in e)||!!e.async,a.src=t,e.attrs&&function(t,e){for(var n in e)t.setAttribute(n,e[n])}(a,e.attrs),e.text&&(a.text=""+e.text),("onload"in a?n:r)(a,o),a.onload||n(a,o),i.appendChild(a)}}
2,7714:function(t,e,n){(function(e){var r,o=n(156),i=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,f=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let o of u(e))l.call(t,o)||o===n||a(t,o,{get:()=>e[o],enumerable:!(r=s(e,o))||r.enumerable});return t},d=(t,e,n)=>(n=null!=t?i(c(t)):{},f(!e&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)),h=(t,e,n)=>(((t,e,n)=>{e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!==typeof e?e+"":e,n),n),p={};((t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})})(p,{createReactPlayer:()=>T}),t.exports=(r=p,f(a({},"__esModule",{value:!0}),r));var g=d(n(1)),m=d(n(1573)),y=d(n(1118)),v=d(n(1093)),w=n(1574),_=n(757),b=d(n(7715));const E=(0,_.lazy)(()=>n.e(10).then(n.t.bind(null,7901,7))),C="undefined"!==typeof window&&window.document&&"undefined"!==typeof document,A="undefined"!==typeof e&&e.window&&e.window.document,S=Object.keys(w.propTypes),O=C||A?g.Suspense:()=>null,I=[],T=(t,e)=>{var n;return n=class extends g.Component{constructor(){var n;super(...arguments),n=this,h(this,"state",{showPreview:!!this.props.light}),h(this,"references",{wrapper:t=>{this.wrapper=t},player:t=>{this.player=t}}),h(this,"handleClickPreview",t=>{this.setState({showPreview:!1}),this.props.onClickPreview(t)}),h(this,"showPreview",()=>{this.setState({showPreview:!0})}),h(this,"getDuration",()=>this.player?this.player.getDuration():null),h(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),h(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),h(this,"getInternalPlayer",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(t):null})),h(this,"seekTo",(t,e,n)=>{if(!this.player)return null;this.player.seekTo(t,e,n)}),h(this,"handleReady",()=>{this.props.onReady(this)}),h(this,"getActivePlayer",(0,y.default)(n=>{for(const e of[...I,...t])if(e.canPlay(n))return e;return e||null})),h(this,"getConfig",(0,y.default)((t,e)=>{const{config:n}=this.props;return m.default.all([w.defaultProps.config,w.defaultProps.config[e]||{},n,n[e]||{}])})),h(this,"getAttributes",(0,y.default)(t=>(0,_.omit)(this.props,S))),h(this,"renderActivePlayer",t=>{if(!t)return null;const e=this.getActivePlayer(t);if(!e)return null;const n=this.getConfig(t,e.key);return g.default.createElement(b.default,o(o({},this.props),{},{key:e.key,ref:this.references.player,config:n,activePlayer:e.lazyPlayer||e,onReady:this.handleReady}))})}shouldComponentUpdate(t,e){return!(0,v.default)(this.props,t)||!(0,v.default)(this.state,e)}componentDidUpdate(t){const{light:e}=this.props;!t.light&&e&&this.setState({showPreview:!0}),t.light&&!e&&this.setState({showPreview:!1})}renderPreview(t){if(!t)return null;const{light:e,playIcon:n,previewTabIndex:r,oEmbedUrl:o,previewAriaLabel:i}=this.props;return g.default.createElement(E,{url:t,light:e,playIcon:n,previewTabIndex:r,previewAriaLabel:i,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){const{url:t,style:e,width:n,height:r,fallback:i,wrapper:a}=this.props,{showPreview:s}=this.state,u=this.getAttributes(t),c="string"===typeof a?this.references.wrapper:void 0;return g.default.createElement(a,o({ref:c,style:o(o({},e),{},{width:n,height:r})},u),g.default.createElement(O,{fallback:i},s?this.renderPreview(t):this.renderActivePlayer(t)))}},h(n,"displayName","ReactPlayer"),h(n,"propTypes",w.propTypes),h(n,"defaultProps",w.defaultProps),h(n,"addCustomPlayer",t=>{I.push(t)}),h(n,"removeCustomPlayers",()=>{I.length=0}),h(n,"canPlay",e=>{for(const n of[...I,...t])if(n.canPlay(e))return!0;return!1}),h(n,"canEnablePIP",e=>{for(const n of[...I,...t])if(n.canEnablePIP&&n.canEnablePIP(e))return!0;return!1}),n}}).call(this,n(71))},7715:function(t,e,n){var r,o=n(156),i=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,f=(t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let o of u(e))l.call(t,o)||o===n||a(t,o,{get:()=>e[o],enumerable:!(r=s(e,o))||r.enumerable});return t},d=(t,e,n)=>(n=null!=t?i(c(t)):{},f(!e&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)),h=(t,e,n)=>(((t,e,n)=>{e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!==typeof e?e+"":e,n),n),p={};((t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})})(p,{default:()=>w}),t.exports=(r=p,f(a({},"__esModule",{value:!0}),r));var g=d(n(1)),m=d(n(1093)),y=n(1574),v=n(757);class w extends g.Component{constructor(){var t;super(...arguments),t=this,h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",t=>{this.player||(this.player=t,this.player.load(this.props.url)),this.progress()}),h(this,"getInternalPlayer",t=>this.player?this.player[t]:null),h(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,e=this.getSecondsLoaded(),n=this.getDuration();if(n){const r={playedSeconds:t,played:t/n};null!==e&&(r.loadedSeconds=e,r.loaded=e/n),r.playedSeconds===this.prevPlayed&&r.loadedSeconds===this.prevLoaded||this.props.onProgress(r),this.prevPlayed=r.playedSeconds,this.prevLoaded=r.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),h(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:e,volume:n,muted:r}=this.props;t(),r||null===n||this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):e&&this.player.play(),this.handleDurationCheck()}),h(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:e,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==n&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),e(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),h(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),h(this,"handleEnded",()=>{const{activePlayer:t,loop:e,onEnded:n}=this.props;t.loopOnEnded&&e&&this.seekTo(0),e||(this.isPlaying=!1,n())}),h(this,"handleError",(function(){t.isLoading=!1,t.props.onError(...arguments)})),h(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),h(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
2)),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:e,playing:n,volume:r,muted:o,playbackRate:i,pip:a,loop:s,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,m.default)(t.url,e)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,v.isMediaStream)(e))return console.warn("ReactPlayer: the attempt to load ".concat(e," is being deferred until the player has loaded")),void(this.loadOnReady=e);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(e,this.isReady)}t.playing||!n||this.isPlaying||this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==r&&null!==r&&this.player.setVolume(r),t.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==r&&setTimeout(()=>this.player.setVolume(r)))),t.playbackRate!==i&&this.player.setPlaybackRate&&this.player.setPlaybackRate(i),t.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,e,n){if(!this.isReady)return void(0!==t&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},5e3)));if(e?"fraction"===e:t>0&&t<1){const e=this.player.getDuration();return e?void this.player.seekTo(e*t,n):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?g.default.createElement(t,o(o({},this.props),{},{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}h(w,"displayName","Player"),h(w,"propTypes",y.propTypes),h(w,"defaultProps",y.defaultProps)},7716:function(t,e,n){t.exports=function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var a={exports:{}};!function(t){"undefined"!==typeof window&&function(e){var n=e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype,r=e.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),o=r&&e.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),i=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,s=(r||i)&&e.atob&&e.ArrayBuffer&&e.Uint8Array&&function(t){var e,n,s,u,c,l,f,d,h;if(!(e=t.match(a)))throw new Error("invalid data URI");for(n=e[2]?e[1]:"text/plain"+(e[3]||";charset=US-ASCII"),s=!!e[4],u=t.slice(e[0].length),c=s?atob(u):decodeURIComponent(u),l=new ArrayBuffer(c.length),f=new Uint8Array(l),d=0;d<c.length;d+=1)f[d]=c.charCodeAt(d);return r?new Blob([o?f:l],{type:n}):((h=new i).append(l),h.getBlob(n))};e.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(t,e,r){var o=this;setTimeout((function(){r&&n.toDataURL&&s?t(s(o.toDataURL(e,r))):t(o.mozGetAsFile("blob",e))}))}:n.toDataURL&&s&&(n.msToBlob?n.toBlob=function(t,e,r){var o=this;setTimeout((function(){(e&&"image/png"!==e||r)&&n.toDataURL&&s?t(s(o.toDataURL(e,r))):t(o.msToBlob(e))}))}:n.toBlob=function(t,e,n){var r=this;setTimeout((function(){t(s(r.toDataURL(e,n)))}
2))})),t.exports?t.exports=s:e.dataURLtoBlob=s}(window)}(a);var s=a.exports,u={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},c="undefined"!==typeof window&&"undefined"!==typeof window.document?window:{},l=function(t){return t>0&&t<1/0},f=Array.prototype.slice;function d(t){return Array.from?Array.from(t):f.call(t)}var h=/^image\/.+$/;function p(t){return h.test(t)}var g=String.fromCharCode,m=c.btoa;function y(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(g.apply(null,d(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(m(n.join("")))}function v(t){var e,n=new DataView(t);try{var r,o,i;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){o=s;break}s+=1}if(o){var u=o+10;if("Exif"===function(t,e,n){var r,o="";for(n+=e,r=e;r<n;r+=1)o+=g(t.getUint8(r));return o}(n,o+4,4)){var c=n.getUint16(u);if(((r=18761===c)||19789===c)&&42===n.getUint16(u+2,r)){var l=n.getUint32(u+4,r);l>=8&&(i=u+l)}}}if(i){var f,d,h=n.getUint16(i,r);for(d=0;d<h;d+=1)if(f=i+12*d+2,274===n.getUint16(f,r)){f+=8,e=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(p){e=1}return e}var w=/\.\d*(?:0|9){12}\d*$/;function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return w.test(t)?Math.round(t*e)/e:t}function b(t){var e=t.aspectRatio,n=t.height,r=t.width,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=l(r),a=l(n);if(i&&a){var s=n*e;("contain"===o||"none"===o)&&s>r||"cover"===o&&s<r?n=r/e:r=n*e}else i?n=r/e:a&&(r=n*e);return{width:r,height:n}}
2var E=c.ArrayBuffer,C=c.FileReader,A=c.URL||c.webkitURL,S=/\.\w+$/,O=c.Compressor;return function(){function t(n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.file=n,this.exif=[],this.image=new Image,this.options=e(e({},u),r),this.aborted=!1,this.result=null,this.init()}var r,i,a;return r=t,a=[{key:"noConflict",value:function(){return window.Compressor=O,t}},{key:"setDefaults",value:function(t){o(u,t)}}],(i=[{key:"init",value:function(){var t=this,e=this.file,n=this.options;if(r=e,"undefined"!==typeof Blob&&(r instanceof Blob||"[object Blob]"===Object.prototype.toString.call(r))){var r,i=e.type;if(p(i))if(A&&C){E||(n.checkOrientation=!1,n.retainExif=!1);var a="image/jpeg"===i,s=a&&n.checkOrientation,u=a&&n.retainExif;if(!A||s||u){var c=new C;this.reader=c,c.onload=function(n){var r=n.target.result,a={},c=1;s&&(c=v(r))>1&&o(a,function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(c)),u&&(t.exif=function(t){for(var e=d(new Uint8Array(t)),n=e.length,r=[],o=0;o+3<n;){var i=e[o],a=e[o+1];if(255===i&&218===a)break;if(255===i&&216===a)o+=2;else{var s=o+(256*e[o+2]+e[o+3])+2,u=e.slice(o,s);r.push(u),o=s}}return r.reduce((function(t,e){return 255===e[0]&&225===e[1]?t.concat(e):t}),[])}(r)),a.url=s||u?!A||c>1?y(r,i):A.createObjectURL(e):r,t.load(a)},c.onabort=function(){t.fail(new Error("Aborted to read the image with FileReader."))},c.onerror=function(){t.fail(new Error("Failed to read the image with FileReader."))},c.onloadend=function(){t.reader=null},s||u?c.readAsArrayBuffer(e):c.readAsDataURL(e)}else this.load({url:A.createObjectURL(e)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(t){var n=this,r=this.file,o=this.image;o.onload=function(){n.draw(e(e({},t),{},{naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight}))},o.onabort=function(){n.fail(new Error("Aborted to load the image."))},o.onerror=function(){n.fail(new Error("Failed to load the image."))},c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent)&&(o.crossOrigin="anonymous"),o.alt=r.name,o.src=t.url}},{key:"draw",value:function(t){var e=this,n=t.naturalWidth,r=t.naturalHeight,o=t.rotate,i=void 0===o?0:o,a=t.scaleX,u=void 0===a?1:a,c=t.scaleY,f=void 0===c?1:c,h=this.file,g=this.image,m=this.options,v=document.createElement("canvas"),w=v.getContext("2d"),E=Math.abs(i)%180===90,A=("contain"===m.resize||"cover"===m.resize)&&l(m.width)&&l(m.height),S=Math.max(m.maxWidth,0)||1/0,O=Math.max(m.maxHeight,0)||1/0,I=Math.max(m.minWidth,0)||0,T=Math.max(m.minHeight,0)||0,M=n/r,R=m.width,D=m.height;if(E){var x=[O,S];S=x[0],O=x[1];var N=[T,I];I=N[0],T=N[1];var P=[D,R];R=P[0],D=P[1]}A&&(M=R/D);var L=b({aspectRatio:M,width:S,height:O},"contain");S=L.width,O=L.height;var k=b({aspectRatio:M,width:I,height:T},"cover");if(I=k.width,T=k.height,A){var B=b({aspectRatio:M,width:R,height:D},m.resize);R=B.width,D=B.height}else{var j=b({aspectRatio:M,width:R,height:D}),F=j.width;R=void 0===F?n:F;var U=j.height;D=void 0===U?r:U}var z=-(R=Math.floor(_(Math.min(Math.max(R,I),S))))/2,V=-(D=Math.floor(_(Math.min(Math.max(D,T),O))))/2,H=R,W=D,G=[];if(A){var Y,X,Z,q,K=b({aspectRatio:M,width:n,height:r},{contain:"cover",cover:"contain"}[m.resize]);Z=K.width,q=K.height,Y=(n-Z)/2,X=(r-q)/2,G.push(Y,X,Z,q)}if(G.push(z,V,H,W),E){var Q=[D,R];R=Q[0],D=Q[1]}v.width=R,v.height=D,p(m.mimeType)||(m.mimeType=h.type);var J="transparent";h.size>m.convertSize&&m.convertTypes.indexOf(m.mimeType)>=0&&(m.mimeType="image/jpeg");var $="image/jpeg"===m.mimeType;if($&&(J="#fff"),w.fillStyle=J,w.fillRect(0,0,R,D),m.beforeDraw&&m.beforeDraw.call(this,w,v),!this.aborted&&(w.save(),w.translate(R/2,D/2),w.rotate(i*Math.PI/180),w.scale(u,f),w.drawImage.apply(w,[g].concat(G)),w.restore(
2),m.drew&&m.drew.call(this,w,v),!this.aborted)){var tt=function(t){if(!e.aborted){var o=function(t){return e.done({naturalWidth:n,naturalHeight:r,result:t})};if(t&&$&&m.retainExif&&e.exif&&e.exif.length>0){var i=function(t){return o(s(y(function(t,e){var n=d(new Uint8Array(t));if(255!==n[2]||224!==n[3])return t;var r=256*n[4]+n[5],o=[255,216].concat(e,n.slice(4+r));return new Uint8Array(o)}(t,e.exif),m.mimeType)))};if(t.arrayBuffer)t.arrayBuffer().then(i).catch((function(){e.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))}));else{var a=new C;e.reader=a,a.onload=function(t){var e=t.target;i(e.result)},a.onabort=function(){e.fail(new Error("Aborted to read the compressed image with FileReader."))},a.onerror=function(){e.fail(new Error("Failed to read the compressed image with FileReader."))},a.onloadend=function(){e.reader=null},a.readAsArrayBuffer(t)}}else o(t)}};v.toBlob?v.toBlob(tt,m.mimeType,m.quality):tt(s(v.toDataURL(m.mimeType,m.quality)))}}},{key:"done",value:function(t){var e=t.naturalWidth,n=t.naturalHeight,r=t.result,o=this.file,i=this.image,a=this.options;if(A&&0===i.src.indexOf("blob:")&&A.revokeObjectURL(i.src),r)if(a.strict&&!a.retainExif&&r.size>o.size&&a.mimeType===o.type&&!(a.width>e||a.height>n||a.minWidth>e||a.minHeight>n||a.maxWidth<e||a.maxHeight<n))r=o;else{var s=new Date;r.lastModified=s.getTime(),r.lastModifiedDate=s,r.name=o.name,r.name&&r.type!==o.type&&(r.name=r.name.replace(S,function(t){var e=p(t)?t.substr(6):"";return"jpeg"===e&&(e="jpg"),".".concat(e)}(r.type)))}else r=o;this.result=r,a.success&&a.success.call(this,r)}},{key:"fail",value:function(t){var e=this.options;if(!e.error)throw t;e.error.call(this,t)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}])&&n(r.prototype,i),a&&n(r,a),Object.defineProperty(r,"prototype",{writable:!1}),t}()}()},7717:function(t,e,n){var r=n(7718),o=n(7719),i=o;i.v1=r,i.v4=o,t.exports=i},7718:function(t,e,n){var r,o,i=n(1576),a=n(1577),s=0,u=0;t.exports=function(t,e,n){var c=e&&n||0,l=e||[],f=(t=t||{}).node||r,d=void 0!==t.clockseq?t.clockseq:o;if(null==f||null==d){var h=i();null==f&&(f=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=o=16383&(h[6]<<8|h[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:u+1,m=p-s+(g-u)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||p>s)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=g,o=d;var y=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var v=p/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var w=0;w<6;++w)l[c+w]=f[w];return e||a(l)}},7719:function(t,e,n){var r=n(1576),o=n(1577);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},7720:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r,o=n(1),i=n.n(o);function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(){}function u(t){return!!(t||"").match(/\d/)}function c(t){return null===t||void 0===t}function l(t){return c(t)||function(t){return"number"===typeof t&&isNaN(t)}(t)||"number"===typeof t&&!isFinite(t)}function f(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function d(t){var e=Object(o.useRef)(t);return e.current=t,Object(o.useRef)((function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.current.apply(e,t)})).current}function h(t,e){void 0===e&&(e=!0);var n="-"===t[0],r=n&&e,o=(t=t.replace("-","")).split(".");
2return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function p(t,e,n){for(var r="",o=n?"0":"",i=0;i<=e-1;i++)r+=t[i]||o;return r}function g(t,e){return Array(e+1).join(t)}function m(t){var e=t+"",n="-"===e[0]?"-":"";n&&(e=e.substring(1));var r=e.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+g("0",Math.abs(a))+o:a>=s?o+=g("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function y(t,e,n){if(-1!==["","-"].indexOf(t))return t;var r=(-1!==t.indexOf(".")||n)&&e,o=h(t),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,u=parseFloat("0."+(a||"0")),c=(a.length<=e?"0."+a:u.toFixed(e)).split("."),l=i;return i&&Number(c[0])&&(l=i.split("").reverse().reduce((function(t,e,n){return t.length>n?(Number(t[0])+Number(e)).toString()+t.substring(1,t.length):e+t}),c[0])),""+(s?"-":"")+l+(r?".":"")+p(c[1]||"",e,n)}function v(t,e){if(t.value=t.value,null!==t){if(t.createTextRange){var n=t.createTextRange();return n.move("character",e),n.select(),!0}return t.selectionStart||0===t.selectionStart?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}!function(t){t.event="event",t.props="prop"}(r||(r={}));var w=function(t){var e,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return e&&r.length===e.length&&r.every((function(t,n){return t===e[n]}))?n:(e=r,n=t.apply(void 0,r))}}((function(t,e){for(var n=0,r=0,o=t.length,i=e.length;t[n]===e[n]&&n<o;)n++;for(;t[o-1-r]===e[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}));function _(t){return Math.max(t.selectionStart,t.selectionEnd)}function b(t){return{from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""}}function E(t){var e=t.currentValue,n=t.formattedValue,r=t.currentValueIndex,o=t.formattedValueIndex;return e[r]===n[o]}function C(t,e,n,r){var o,i,a,s=t.length;if(o=e,i=0,a=s,e=Math.min(Math.max(o,i),a),"left"===r){for(;e>=0&&!n[e];)e--;-1===e&&(e=n.indexOf(!0))}else{for(;e<=s&&!n[e];)e++;e>s&&(e=n.lastIndexOf(!0))}return-1===e&&(e=s),e}function A(t){for(var e=Array.from({length:t.length+1}).map((function(){return!0})),n=0,r=e.length;n<r;n++)e[n]=Boolean(u(t[n])||u(t[n-1]));return e}function S(t,e,n,i,a,u){void 0===u&&(u=s);var f=d((function(t,e){var n,r;return l(t)?(r="",n=""):"number"===typeof t||e?(r="number"===typeof t?m(t):t,n=i(r)):(r=a(t,void 0),n=i(r)),{formattedValue:n,numAsString:r}})),h=Object(o.useState)((function(){return f(c(t)?e:t,n)})),p=h[0],g=h[1],y=d((function(t,e){t.formattedValue!==p.formattedValue&&g({formattedValue:t.formattedValue,numAsString:t.value}),u(t,e)})),v=t,w=n;c(t)&&(v=p.numAsString,w=!0);var _=f(v,w);return Object(o.useMemo)((function(){g(_)}),[_.formattedValue]),Object(o.useEffect)((function(){if(!c(e)&&c(t)&&""!==p.formattedValue){var n=parseFloat(p.numAsString);y({formattedValue:p.formattedValue,value:p.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:r.props})}}),[]),[p,y]}function O(t){return t.replace(/[^0-9]/g,"")}function I(t){return t}function T(t){var e=t.type;void 0===e&&(e="text");var n=t.displayType;void 0===n&&(n="input");var c=t.customInput,l=t.renderText,f=t.getInputRef,d=t.format;void 0===d&&(d=I);var h=t.removeFormatting;void 0===h&&(h=O);var p=t.defaultValue,g=t.valueIsNumericString,m=t.onValueChange,y=t.isAllowed,b=t.onChange;void 0===b&&(b=s);var T=t.onKeyDown;void 0===T&&(T=s);var M=t.onMouseUp;void 0===M&&(M=s);var R=t.onFocus;void 0===R&&(R=s);var D=t.onBlur;void 0===D&&(D=s);var x=t.value,N=t.getCaretBoundary;void 0===N&&(N=A);var P=t.isValidInputCharacter;void 0===P&&(P=u);var L=t.isCharacterSame,k=a(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),B=S(x,p,Boolean(g),d,h,m),j=B[0],F=j.formattedValue,U=j.numAsString,z=B[1],V=Object(o.useRef)(),H=Object(o.useRef)({formattedValue:F,numAsString:U}),W=function(t,e){H.current={formattedValue:t.formattedValue,numAsString:t.value},z(t,e)},G=Object(o.useState)(!1),Y=G[0],X=G[1],Z=Object(o.useRef)(null),q=Object(o.useRef)({setCaretTimeout:null,focusTimeout:null});Object(o.useEffect)((function(){return X(!0),function(){clearTimeout(q.current.setCaretTimeout),clearTimeout(q.current.focusTimeout)}}),[]);var K=d,Q=function(t,e){var n=parseFloat(e);return{formattedValue:t,value:e,floatValue:isNaN(n)?void 0:n}},J=function(t,e,n){0===t.selectionStart&&t.selectionEnd===t.value.length||(v(t,e),q.current.setCaretTimeout=setTimeout((function(){t.value===n&&t.selectionStart!==e&&v(t,e)}),0))},$=function(t,e,n){return C(t,e,N(t),n)},tt=function(t,e,n){var r=N(e),o=function(t,e,n,r,o,i,a){void 0===a&&(a=E);var s=o.findIndex((function(t){return t})),u=t.slice(0,s);e||n.startsWith(u)||(e=u,n=u+n,r+=u.length);for(var c=n.length,l=t.length,f={},d=new Array(c),h=0;h<c;h++){d[h]=-1;for(var p=0,g=l;p<g;p++){if(a({currentValue:n,lastValue:e,formattedValue:t,currentValueIndex:h,formattedValueIndex:p})&&!0!==f[p]){d[h]=p,f[p]=!0;break}}}for(var m=r;m<c&&(-1===d[m]||!i(n[m]));)m++;var y=m===c||-1===d[m]?l:d[m];for(m=r-1;m>0&&-1===d[m];)m--;var v=-1===m||-1===d[m]?0:d[m]+1;return v>y?y:r-v<y-r?v:y}
2(e,F,t,n,r,P,L);return o=C(e,o,r)};Object(o.useEffect)((function(){var t=H.current,e=t.formattedValue,n=t.numAsString;F===e&&U===n||W(Q(F,U),{event:void 0,source:r.props})}),[F,U]);var et=Z.current?_(Z.current):void 0;("undefined"!==typeof window?o.useLayoutEffect:o.useEffect)((function(){var t=Z.current;if(F!==H.current.formattedValue&&t){var e=tt(H.current.formattedValue,F,et);t.value=F,J(t,e,F)}}),[F]);var nt=function(t,e,n){var r=e.target,o=V.current?function(t,e){var n=Math.min(t.selectionStart,e);return{from:{start:n,end:t.selectionEnd},to:{start:n,end:e}}}(V.current,r.selectionEnd):w(F,t),i=Object.assign(Object.assign({},o),{lastValue:F}),a=h(t,i),s=K(a);if(a=h(s,void 0),y&&!y(Q(s,a))){var u=e.target,c=_(u),l=tt(t,F,c);return u.value=F,J(u,l,F),!1}return function(t){var e=t.formattedValue;void 0===e&&(e="");var n,r=t.input,o=t.source,i=t.event,a=t.numAsString;if(r){var s=t.inputValue||r.value,u=_(r);r.value=e,void 0!==(n=tt(s,e,u))&&J(r,n,e)}e!==F&&W(Q(e,a),{event:i,source:o})}({formattedValue:s,numAsString:a,inputValue:t,event:e,source:n,input:e.target}),!0},rt=function(t,e){void 0===e&&(e=0);var n=t.selectionStart,r=t.selectionEnd;V.current={selectionStart:n,selectionEnd:r+e}},ot=!Y||"undefined"===typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",it=Object.assign({inputMode:ot},k,{type:e,value:F,onChange:function(t){var e=t.target.value;nt(e,t,r.event)&&b(t),V.current=void 0},onKeyDown:function(t){var e,n=t.target,r=t.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?e=Math.max(o-1,0):"ArrowRight"===r?e=Math.min(o+1,a.length):"Delete"===r&&(e=o);var s=0;"Delete"===r&&o===i&&(s=1);var u="ArrowLeft"===r||"ArrowRight"===r;if(void 0===e||o!==i&&!u)return T(t),void rt(n,s);var c=e;u?(c=$(a,e,"ArrowLeft"===r?"left":"right"))!==e&&t.preventDefault():"Delete"!==r||P(a[e])?"Backspace"!==r||P(a[e])||(c=$(a,e,"left")):c=$(a,e,"right");c!==e&&J(n,c,a),T(t),rt(n,s)},onMouseUp:function(t){var e=t.target,n=function(){var t=e.selectionStart,n=e.selectionEnd,r=e.value;if(void 0===r&&(r=""),t===n){var o=$(r,t);o!==t&&J(e,o,r)}};n(),requestAnimationFrame((function(){n()})),M(t),rt(e)},onFocus:function(t){t.persist&&t.persist();var e=t.target,n=t.currentTarget;Z.current=e,q.current.focusTimeout=setTimeout((function(){var r=e.selectionStart,o=e.selectionEnd,i=e.value;void 0===i&&(i="");var a=$(i,r);a===r||0===r&&o===i.length||J(e,a,i),R(Object.assign(Object.assign({},t),{currentTarget:n}))}),0)},onBlur:function(t){Z.current=null,clearTimeout(q.current.focusTimeout),clearTimeout(q.current.setCaretTimeout),D(t)}});if("text"===n)return l?i.a.createElement(i.a.Fragment,null,l(F,k)||null):i.a.createElement("span",Object.assign({},k,{ref:f}),F);if(c){var at=c;return i.a.createElement(at,Object.assign({},it,{ref:f}))}return i.a.createElement("input",Object.assign({},it,{ref:f}))}function M(t,e){var n=e.decimalScale,r=e.fixedDecimalScale,o=e.prefix;void 0===o&&(o="");var i=e.suffix;void 0===i&&(i="");var a=e.allowNegative,s=e.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===t||"-"===t)return t;var u=R(e),c=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==t.indexOf(".")||n&&r,d=h(t,a),g=d.beforeDecimal,m=d.afterDecimal,y=d.addNegation;return void 0!==n&&(m=p(m,n,!!r)),c&&(g=function(t,e,n){var r=function(t){switch(t){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=t.search(/[1-9]/);return o=-1===o?t.length:o,t.substring(0,o)+t.substring(o,t.length).replace(r,"$1"+e)}(g,c,s)),o&&(g=o+g),i&&(m+=i),y&&(g="-"+g),t=g+(f&&l||"")+m}function R(t){var e=t.decimalSeparator;void 0===e&&(e=".");var n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}function D(t,e,n){var r;void 0===e&&(e=b(t));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=e.from,l=e.to,d=l.start,p=l.end,g=R(n),m=g.allowedDecimalSeparators,y=g.decimalSeparator,v=t[p]===y;if(u(t)&&(t===i||t===a)&&""===e.lastValue)return t;if(p-d===1&&-1!==m.indexOf(t[d])){var w=0===s?"":y;t=t.substring(0,d)+w+t.substring(d+1,t.length)}var _=function(t,e,n){var r=!1,o=!1;i.startsWith("-")?r=!1:t.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&t.length===a.length?r=!1:"-"===t[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(t=t.substring(s),e-=s,n-=s),{value:t,start:e,end:n,hasNegation:r}},E=_(t,d,p),C=E.hasNegation;t=(r=E).value,d=r.start,p=r.end;var A=_(e.lastValue,c.start,c.end),S=A.start,O=A.end,I=A.value,T=t.
2substring(d,p);!(t.length&&I.length&&(S>I.length-a.length||O<i.length))||T&&a.startsWith(T)||(t=I);var M=0;t.startsWith(i)?M+=i.length:d<i.length&&(M=d),p-=M;var D=(t=t.substring(M)).length,x=t.length-a.length;t.endsWith(a)?D=x:(p>x||p>t.length-a.length)&&(D=p),t=t.substring(0,D);var N=(t=((t=function(t,e){void 0===t&&(t="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(t),i=r.test(t);return t=t.replace(/-/g,""),o&&!i&&e&&(t="-"+t),t}(C?"-"+t:t,o)).match(function(t,e){return new RegExp("(^-)|[0-9]|"+f(t),e?"g":void 0)}(y,!0))||[]).join("")).indexOf(y),P=h(t=t.replace(new RegExp(f(y),"g"),(function(t,e){return e===N?".":""})),o),L=P.beforeDecimal,k=P.afterDecimal,B=P.addNegation;return l.end-l.start<c.end-c.start&&""===L&&v&&!parseFloat(k)&&(t=B?"-":""),t}function x(t){(t=function(t){var e=R(t),n=e.thousandSeparator,r=e.decimalSeparator,o=t.prefix;void 0===o&&(o="");var i=t.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n        Decimal separator can't be same as thousand separator.\n        thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n        decimalSeparator: '+r+" (default value for decimalSeparator is .)\n     ");return o.startsWith("-")&&i&&(console.error("\n      Prefix can't start with '-' when allowNegative is true.\n      prefix: "+o+"\n      allowNegative: "+i+"\n    "),i=!1),Object.assign(Object.assign({},t),{allowNegative:i})}(t)).decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle;var e=t.suffix,n=t.allowNegative,o=t.allowLeadingZeros,i=t.onKeyDown;void 0===i&&(i=s);var f=t.onBlur;void 0===f&&(f=s);var d=t.thousandSeparator,h=t.decimalScale,p=t.fixedDecimalScale,g=t.prefix;void 0===g&&(g="");var _=t.defaultValue,b=t.value,E=t.valueIsNumericString,C=t.onValueChange,A=a(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),O=R(t),I=O.decimalSeparator,T=O.allowedDecimalSeparators,x=function(e){return M(e,t)},N=function(e,n){return D(e,n,t)},P=c(b)?_:b,L=null!==E&&void 0!==E?E:function(t,e,n){return""===t||!(null===e||void 0===e?void 0:e.match(/\d/))&&!(null===n||void 0===n?void 0:n.match(/\d/))&&"string"===typeof t&&!isNaN(Number(t))}(P,g,e);c(b)?c(_)||(L=L||"number"===typeof _):L=L||"number"===typeof b;var k=function(t){return l(t)?t:("number"===typeof t&&(t=m(t)),L&&"number"===typeof h?y(t,h,Boolean(p)):t)},B=S(k(b),k(_),Boolean(L),x,N,C),j=B[0],F=j.numAsString,U=j.formattedValue,z=B[1];return Object.assign(Object.assign({},A),{value:U,valueIsNumericString:!1,isValidInputCharacter:function(t){return t===I||u(t)},isCharacterSame:function(t){var e=t.currentValue,n=t.lastValue,r=t.formattedValue,o=t.currentValueIndex,i=t.formattedValueIndex,a=e[o],s=r[i],u=w(n,e).to,c=function(t){return N(t).indexOf(".")+g.length};return!(0===b&&p&&h&&e[u.start]===I&&c(e)<o&&c(r)>i)&&(!!(o>=u.start&&o<u.end&&T&&T.includes(a)&&s===I)||a===s)},onValueChange:z,format:x,removeFormatting:N,getCaretBoundary:function(e){return function(t,e){var n=e.prefix;void 0===n&&(n="");var r=e.suffix;void 0===r&&(r="");var o=Array.from({length:t.length+1}).map((function(){return!0})),i="-"===t[0];o.fill(!1,0,Math.min(n.length+(i?1:0),t.length));var a=t.length;return o.fill(!1,a-r.length+1,a+1),o}(e,t)},onKeyDown:function(t){var e=t.target,r=t.key,o=e.selectionStart,a=e.selectionEnd,s=e.value;if(void 0===s&&(s=""),("Backspace"===r||"Delete"===r)&&a<g.length&&"-"!==s)t.preventDefault();else if(o===a){"Backspace"===r&&"-"===s[0]&&o===g.length+1&&n&&v(e,1),h&&p&&("Backspace"===r&&s[o-1]===I?(v(e,o-1),t.preventDefault()):"Delete"===r&&s[o]===I&&t.preventDefault()),(null===T||void 0===T?void 0:T.includes(r))&&s[o]===I&&v(e,o+1);var u=!0===d?",":d;"Backspace"===r&&s[o-1]===u&&v(e,o-1),"Delete"===r&&s[o]===u&&v(e,o+1),i(t)}else i(t)},onBlur:function(e){var n=F;if(n.match(/\d/g)||(n=""),o||(n=function(t){if(!t)return t;var e="-"===t[0];e&&(t=t.substring(1,t.length));var n=t.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(e?"-":"")+r+(o?"."+o:"")}(n)),p&&h&&(n=y(n,h,p)),n!==F){var i=M(n,t);z({formattedValue:i,value:n,floatValue:parseFloat(n)},{event:e,source:r.event})}f(e)}})}function N(t){var e=x(t);return i.a.createElement(T,Object.assign({},e))}},7721:function(t,e,n){"use strict";function r(t){return t&&"object"===typeof t&&"default"in t?t.default:t}var o=n(33),i=r(n(1)),a=n(46),s=r(n(4)),u=r(n(231)),c=r(n(51));function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function f(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e)}
2function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var p=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).history=a.createBrowserHistory(e.props),e}return f(e,t),e.prototype.render=function(){return i.createElement(o.Router,{history:this.history,children:this.props.children})},e}(i.Component);p.propTypes={basename:s.string,children:s.node,forceRefresh:s.bool,getUserConfirmation:s.func,keyLength:s.number},p.prototype.componentDidMount=function(){u(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")};var g=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).history=a.createHashHistory(e.props),e}return f(e,t),e.prototype.render=function(){return i.createElement(o.Router,{history:this.history,children:this.props.children})},e}(i.Component);g.propTypes={basename:s.string,children:s.node,getUserConfirmation:s.func,hashType:s.oneOf(["hashbang","noslash","slash"])},g.prototype.componentDidMount=function(){u(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")};var m=function(t,e){return"function"===typeof t?t(e):t},y=function(t,e){return"string"===typeof t?a.createLocation(t,null,null,e):t},v=function(t){return t},w=i.forwardRef;"undefined"===typeof w&&(w=v);var _=w((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,a=h(t,["innerRef","navigate","onClick"]),s=a.target,u=l({},a,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return u.ref=v!==w&&e||n,i.createElement("a",u)}));_.displayName="LinkAnchor";var b=w((function(t,e){var n=t.component,r=void 0===n?_:n,s=t.replace,u=t.to,f=t.innerRef,d=h(t,["component","replace","to","innerRef"]);return i.createElement(o.__RouterContext.Consumer,null,(function(t){t||c(!1,"You should not use <Link> outside a <Router>");var n=t.history,o=y(m(u,t.location),t.location),h=o?n.createHref(o):"",p=l({},d,{href:h,navigate:function(){var e=m(u,t.location),r=a.createPath(t.location)===a.createPath(y(e));(s||r?n.replace:n.push)(e)}});return v!==w?p.ref=e||f:p.innerRef=f,i.createElement(r,p)}))})),E=s.oneOfType([s.string,s.object,s.func]),C=s.oneOfType([s.string,s.func,s.shape({current:s.any})]);b.displayName="Link",b.propTypes={innerRef:C,onClick:s.func,replace:s.bool,target:s.string,to:E.isRequired};var A=function(t){return t},S=i.forwardRef;"undefined"===typeof S&&(S=A);var O=S((function(t,e){var n=t["aria-current"],r=void 0===n?"page":n,a=t.activeClassName,s=void 0===a?"active":a,u=t.activeStyle,f=t.className,d=t.exact,p=t.isActive,g=t.location,v=t.sensitive,w=t.strict,_=t.style,E=t.to,C=t.innerRef,O=h(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(o.__RouterContext.Consumer,null,(function(t){t||c(!1,"You should not use <NavLink> outside a <Router>");var n=g||t.location,a=y(m(E,n),n),h=a.pathname,I=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=I?o.matchPath(n.pathname,{path:I,exact:d,sensitive:v,strict:w}):null,M=!!(p?p(T,n):T),R="function"===typeof f?f(M):f,D="function"===typeof _?_(M):_;M&&(R=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(R,s),D=l({},D,u));var x=l({"aria-current":M&&r||null,className:R,style:D,to:a},O);return A!==S?x.ref=e||C:x.innerRef=C,i.createElement(b,x)}))}));O.displayName="NavLink";var I=s.oneOf(["page","step","location","date","time","true","false"]);
2O.propTypes=l({},b.propTypes,{"aria-current":I,activeClassName:s.string,activeStyle:s.object,className:s.oneOfType([s.string,s.func]),exact:s.bool,isActive:s.func,location:s.object,sensitive:s.bool,strict:s.bool,style:s.oneOfType([s.object,s.func])}),Object.defineProperty(e,"MemoryRouter",{enumerable:!0,get:function(){return o.MemoryRouter}}),Object.defineProperty(e,"Prompt",{enumerable:!0,get:function(){return o.Prompt}}),Object.defineProperty(e,"Redirect",{enumerable:!0,get:function(){return o.Redirect}}),Object.defineProperty(e,"Route",{enumerable:!0,get:function(){return o.Route}}),Object.defineProperty(e,"Router",{enumerable:!0,get:function(){return o.Router}}),Object.defineProperty(e,"StaticRouter",{enumerable:!0,get:function(){return o.StaticRouter}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return o.Switch}}),Object.defineProperty(e,"generatePath",{enumerable:!0,get:function(){return o.generatePath}}),Object.defineProperty(e,"matchPath",{enumerable:!0,get:function(){return o.matchPath}}),Object.defineProperty(e,"useHistory",{enumerable:!0,get:function(){return o.useHistory}}),Object.defineProperty(e,"useLocation",{enumerable:!0,get:function(){return o.useLocation}}),Object.defineProperty(e,"useParams",{enumerable:!0,get:function(){return o.useParams}}),Object.defineProperty(e,"useRouteMatch",{enumerable:!0,get:function(){return o.useRouteMatch}}),Object.defineProperty(e,"withRouter",{enumerable:!0,get:function(){return o.withRouter}}),e.BrowserRouter=p,e.HashRouter=g,e.Link=b,e.NavLink=O},7722:function(t,e,n){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=90)}([function(t,e,n){var r=n(68);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(68);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(9).default,o=n(150);t.exports=function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(38);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}
vendor: 29,328 bytes, line 2
2,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(146)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e){function n(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(46),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(151);function o(){return t.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=r(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(102),o=n(108);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(91),o=n(134)((function(t,e,n){r(t,e,n)}));t.exports=o},function(t,e,n){var r=n(152),o=n(153),i=n(66),a=n(154);t.exports=function(t){return r(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(19),o=n(104),i=n(105),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,n){var r=n(60),o=n(29);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},function(t,e,n){var r=n(8).Symbol;t.exports=r},function(t,e,n){var r=n(61),o=n(132),i=n(26);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){var r=n(92),o=n(93),i=n(94),a=n(95),s=n(96);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(23);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(14)(Object,"create");t.exports=r},function(t,e,n){var r=n(117);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(28),o=n(56);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(14)(n(8),"Map");t.exports=r},function(t,e,n){var r=n(17),o=n(10);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(50);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(124);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(55)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(126),o=n(11),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){var r=n(8),o=n(128),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u}).call(this,n(30)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(46),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(30)(t))},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(61),o=n(159),i=n(26);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(163),o=n(75),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(166),o=n(27),i=n(167),a=n(168),s=n(169),u=n(17),c=n(47),l=c(r),f=c(o),d=c(i),h=c(a),p=c(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||i&&"[object Promise]"!=g(i.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){var r=n(12),o=n(180),i=n(181),a=n(184);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(17),o=n(11);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(21),o=n(97),i=n(98),a=n(99),s=n(100),u=n(101);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(103))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(109),o=n(116),i=n(118),a=n(119),s=n(120);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(29),o=n(23);t.exports=function(t,e,n){(void 0!==n&&!o(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e,n){var r=n(14),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){(function(t){var r=n(8),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(30)(t))},function(t,e,n){var r=n(31);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(125),o=n(32),i=n(33);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(17),o=n(32),i=n(11),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},function(t,e,n){var r=n(129),o=n(36),i=n(37),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(29),o=n(23),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(131),o=n(34),i=n(12),a=n(35),s=n(62),u=n(58),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),d=!n&&!l&&!f&&u(t),h=n||l||f||d,p=h?r(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(136),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),u=Array(s);++a<s;)u[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(137),o=n(139)(r);t.exports=o},function(t,e,n){var r=n(67);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(9).default,o=n(145);t.exports=function(t){var e=o(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(71);function o(){var e,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(t,o,i,a){var s=o&&o.prototype instanceof l?o:l,u=Object.create(s.prototype);return r(u,"_invoke",function(t,r,o){var i,a,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,s=e,d.n=n,c}};function h(t,r){for(a=t,s=r,n=0;!f&&u&&!o&&n<l.length;n++){var o,i=l[n],h=d.p,p=i[2];t>3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=t<2&&h<i[1])?(a=0,d.v=r,d.n=i[1]):h<p&&(o=t<3||i[0]>r||r>p)&&(i[4]=t,i[5]=r,d.n=p,a=0))}if(o||t>1)return c;throw f=!0,r}return function(o,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),a=l,s=p;(n=a<2?e:s)||!f;){i||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(u=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((n=(f=d.n<0)?s:t.call(r,d))!==c)break}catch(t){i=e,a=1,s=t}finally{u=1}}return{value:n,done:f}}}(t,i,a),!0),u}var c={};function l(){}function f(){}function d(){}n=Object.getPrototypeOf;var h=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),p=d.prototype=l.prototype=Object.create(h);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=d,r(p,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(t.exports=o=function(){return{w:u,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t.exports=n=function(t,e,r,o){function i(e,r){n(t,e,(function(t){return this._invoke(e,r,t)}))}e?a?a(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,o,i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(70),o=n(73);t.exports=function(t,e,n,i,a){return new o(r().w(t,e,n,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(69),o=n(71);t.exports=function t(e,n){function i(t,o,a,s){try{var u=e[t](o),c=u.value;return c instanceof r?n.resolve(c.v).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):n.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}catch(t){s(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),o(this,"_invoke",(function(t,e,r){function o(){return new n((function(e,n){i(t,r,e,n)}))}return a=a?a.then(o,o):o()}),!0)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(41),o=n(32),i=n(40),a=n(75),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e,n){var r=n(41),o=n(12);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e,n){var r=n(77),o=n(76),i=n(20);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(44);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(142),o=n(143),i=n(66),a=n(144);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(155);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(74),o=n(156),i=n(179),a=n(43),s=n(18),u=n(190),c=n(191),l=n(78),f=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=a(e,t),c||(c=e.length>1),e})),s(t,l(t),n),c&&(n=o(n,7,u));for(var f=e.length;f--;)i(n,e[f]);return n}));t.exports=f},function(t,e,n){var r=n(1),o=n(38),i=n(195),a=n(196);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,function(t,e,n){t.exports=n(198)},function(t,e,n){var r=n(45),o=n(49),i=n(121),a=n(123),s=n(10),u=n(20),c=n(59);t.exports=function t(e,n,l,f,d){e!==n&&i(n,(function(i,u){if(d||(d=new r),s(i))a(e,n,u,l,t,f,d);else{var h=f?f(c(e,u),i,u+"",e,n,d):void 0;void 0===h&&(h=i),o(e,u,h)}}),u)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(22),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(22);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(22);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(22);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(21);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(21),o=n(27),i=n(48);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(28),o=n(106),i=n(10),a=n(47),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:s).test(a(t))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(19),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,o=n(107),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(8)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(110),o=n(21),i=n(27);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(111),o=n(112),i=n(113),a=n(114),s=n(115);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(24);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(24),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(24),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(24);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(25);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(25);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(25);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(25);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(122)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===n(i[u],u,i))break}return e}}},function(t,e,n){var r=n(49),o=n(51),i=n(52),a=n(53),s=n(54),u=n(34),c=n(12),l=n(127),f=n(35),d=n(28),h=n(10),p=n(57),g=n(58),m=n(59),y=n(130);t.exports=function(t,e,n,v,w,_,b){var E=m(t,n),C=m(e,n),A=b.get(C);if(A)r(t,n,A);else{var S=_?_(E,C,n+"",t,e,b):void 0,O=void 0===S;if(O){var I=c(C),T=!I&&f(C),M=!I&&!T&&g(C);S=C,I||T||M?c(E)?S=E:l(E)?S=a(E):T?(O=!1,S=o(C,!0)):M?(O=!1,S=i(C,!0)):S=[]:p(C)||u(C)?(S=E,u(E)?S=y(E):h(E)&&!d(E)||(S=s(C))):O=!1}O&&(b.set(C,S),w(S,C,v,_,b),b.delete(C)),r(t,n,S)}}},function(t,e,n){var r=n(8).Uint8Array;t.exports=r},function(t,e,n){var r=n(10),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(17),o=n(11);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(26),o=n(11);t.exports=function(t){return o(t)&&r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(17),o=n(56),i=n(11),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(18),o=n(20);t.exports=function(t){return r(t,o(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(10),o=n(33),i=n(133),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(135),o=n(140);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},function(t,e,n){var r=n(63),o=n(64),i=n(65);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(138),o=n(50),i=n(63),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(23),o=n(26),i=n(62),a=n(10);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?o(n)&&i(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e){"undefined"!=typeof window&&(window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)})),"function"!=typeof Math.imul&&(Math.imul=function(t,e){var n=65535&t,r=65535&e;return n*r+((t>>>16&65535)*r+n*(e>>>16&65535)<<16>>>0)|0}),"function"!=typeof Object.assign&&(Object.assign=function(t){"use strict";if(null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!==r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e})},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(9).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(69),o=n(70),i=n(147),a=n(72),s=n(73),u=n(148),c=n(149);function l(){"use strict";var e=o(),n=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,h[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,c(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,o){return e.w(p(t),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,o){return(d(e)?a:i)(p(t),e,n,r,o)},keys:u,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(72);t.exports=function(t,e,n,o,i){var a=r(t,e,n,o,i);return a.next().then((function(t){return t.done?t.value:a.next()}))},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(9).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(1);t.exports=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(67);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(45),o=n(157),i=n(60),a=n(158),s=n(161),u=n(51),c=n(53),l=n(162),f=n(164),d=n(165),h=n(78),p=n(42),g=n(170),m=n(171),y=n(54),v=n(12),w=n(35),_=n(175),b=n(10),E=n(177),C=n(39),A=n(20),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array
2]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,O,I,T,M){var R,D=1&n,x=2&n,N=4&n;if(O&&(R=T?O(e,I,T,M):O(e)),void 0!==R)return R;if(!b(e))return e;var P=v(e);if(P){if(R=g(e),!D)return c(e,R)}else{var L=p(e),k="[object Function]"==L||"[object GeneratorFunction]"==L;if(w(e))return u(e,D);if("[object Object]"==L||"[object Arguments]"==L||k&&!T){if(R=x||k?{}:y(e),!D)return x?f(e,s(R,e)):l(e,a(R,e))}else{if(!S[L])return T?e:{};R=m(e,L,D)}}M||(M=new r);var B=M.get(e);if(B)return B;M.set(e,R),E(e)?e.forEach((function(r){R.add(t(r,n,O,r,e,M))})):_(e)&&e.forEach((function(r,o){R.set(o,t(r,n,O,o,e,M))}));var j=P?void 0:(N?x?h:d:x?A:C)(e);return o(j||e,(function(r,o){j&&(r=e[o=r]),i(R,o,t(r,n,O,o,e,M))})),R}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(18),o=n(39);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(33),o=n(160),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(55)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(18),o=n(20);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(18),o=n(40);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){var r=n(18),o=n(76);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(77),o=n(40),i=n(39);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(14)(n(8),"DataView");t.exports=r},function(t,e,n){var r=n(14)(n(8),"Promise");t.exports=r},function(t,e,n){var r=n(14)(n(8),"Set");t.exports=r},function(t,e,n){var r=n(14)(n(8),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(31),o=n(172),i=n(173),a=n(174),s=n(52);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(31);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(19),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){var r=n(176),o=n(36),i=n(37),a=i&&i.isMap,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(42),o=n(11);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(178),o=n(36),i=n(37),a=i&&i.isSet,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(42),o=n(11);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},function(t,e,n){var r=n(43),o=n(186),i=n(187),a=n(79);t.exports=function(t,e){return e=r(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e,n){var r=n(12),o=n(44),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(182),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(183);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(48);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
vendor: 115,800 bytes, line 2
2var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(185);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(19),o=n(74),i=n(12),a=n(44),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(188),o=n(189);t.exports=function(t,e){return e.length<2?t:r(t,o(e,0,-1))}},function(t,e,n){var r=n(43),o=n(79);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(57);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(192),o=n(64),i=n(65);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e,n){var r=n(193);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(41),o=n(194);t.exports=function t(e,n,i,a,s){var u=-1,c=e.length;for(i||(i=o),s||(s=[]);++u<c;){var l=e[u];n>0&&i(l)?n>1?t(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(19),o=n(34),i=n(12),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(197),o=n(38);t.exports=function(t,e,n){if(r())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var a=new(t.bind.apply(t,i));return n&&o(a,n.prototype),a},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t.exports=n=function(){return!!e},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"BarcodeDecoder",(function(){return Cr})),n.d(e,"Readers",(function(){return a})),n.d(e,"CameraAccess",(function(){return Zr})),n.d(e,"ImageDebug",(function(){return $e})),n.d(e,"ImageWrapper",(function(){return Ze})),n.d(e,"ResultCollector",(function(){return qr}));var r={};n.r(r),n.d(r,"create",(function(){return E})),n.d(r,"clone",(function(){return C})),n.d(r,"copy",(function(){return A})),n.d(r,"identity",(function(){return S})),n.d(r,"fromValues",(function(){return O})),n.d(r,"set",(function(){return I})),n.d(r,"transpose",(function(){return T})),n.d(r,"invert",(function(){return M})),n.d(r,"adjoint",(function(){return R})),n.d(r,"determinant",(function(){return D})),n.d(r,"multiply",(function(){return x})),n.d(r,"rotate",(function(){return N})),n.d(r,"scale",(function(){return P})),n.d(r,"fromRotation",(function(){return L})),n.d(r,"fromScaling",(function(){return k})),n.d(r,"str",(function(){return B})),n.d(r,"frob",(function(){return j})),n.d(r,"LDU",(function(){return F})),n.d(r,"add",(function(){return U})),n.d(r,"subtract",(function(){return z})),n.d(r,"exactEquals",(function(){return V})),n.d(r,"equals",(function(){return H})),n.d(r,"multiplyScalar",(function(){return W})),n.d(r,"multiplyScalarAndAdd",(function(){return G})),n.d(r,"mul",(function(){return Y})),n.d(r,"sub",(function(){return X}));var o={};n.r(o),n.d(o,"create",(function(){return Z})),n.d(o,"clone",(function(){return q})),n.d(o,"fromValues",(function(){return K})),n.d(o,"copy",(function(){return Q})),n.d(o,"set",(function(){return J})),n.d(o,"add",(function(){return $})),n.d(o,"subtract",(function(){return tt})),n.d(o,"multiply",(function(){return et})),n.d(o,"divide",(function(){return nt})),n.d(o,"ceil",(function(){return rt})),n.d(o,"floor",(function(){return ot})),n.d(o,"min",(function(){return it})),n.d(o,"max",(function(){return at})),n.d(o,"round",(function(){return st})),n.d(o,"scale",(function(){return ut})),n.d(o,"scaleAndAdd",(function(){return ct})),n.d(o,"distance",(function(){return lt})),n.d(o,"squaredDistance",(function(){return ft})),n.d(o,"length",(function(){return dt})),n.d(o,"squaredLength",(function(){return ht})),n.d(o,"negate",(function(){return pt})),n.d(o,"inverse",(function(){return gt})),n.d(o,"normalize",(function(){return mt})),n.d(o,"dot",(function(){return yt})),n.d(o,"cross",(function(){return vt})),n.d(o,"lerp",(function(){return wt})),n.d(o,"random",(function(){return _t})),n.d(o,"transformMat2",(function(){return bt})),n.d(o,"transformMat2d",(function(){return Et})),n.d(o,"transformMat3",(function(){return Ct})),n.d(o,"transformMat4",(function(){return At})),n.d(o,"rotate",(function(){return St})),n.d(o,"angle",(function(){return Ot})),n.d(o,"signedAngle",(function(){return It})),n.d(o,"zero",(function(){return Tt})),n.d(o,"str",(function(){return Mt})),n.d(o,"exactEquals",(function(){return Rt})),n.d(o,"equals",(function(){return Dt})),n.d(o,"len",(function(){return Nt})),n.d(o,"sub",(function(){return Pt})),n.d(o,"mul",(function(){return Lt})),n.d(o,"div",(function(){return kt})),n.d(o,"dist",(function(){return Bt})),n.d(o,"sqrDist",(function(){return jt})),n.d(o,"sqrLen",(function(){return Ft})),n.d(o,"forEach",(function(){return Ut}));var i={};n.r(i),n.d(i,"create",(function(){return zt})),n.d(i,"clone",(function(){return Vt})),n.d(i,"length",(function(){return Ht})),n.d(i,"fromValues",(function(){return Wt})),n.d(i,"copy",(function(){return Gt})),n.d(i,"set",(function(){return Yt})),n.d(i,"add",(function(){return Xt})),n.d(i,"subtract",(function(){return Zt})),n.d(i,"multiply",(function(){return qt})),n.d(i,"divide",(function(){return Kt})),n.d(i,"ceil",(function(){return Qt})),n.d(i,"floor",(function(){return Jt})),n.d(i,"min",(function(){return $t})),n.d(i,"max",(function(){return te})),n.d(i,"round",(function(){return ee})),n.d(i,"scale",(function(){return ne})),n.d(i,"scaleAndAdd",(function(){return re})),n.d(i,"distance",(function(){return oe})),n.d(i,"squaredDistance",(function(){return ie})),n.d(i,"squaredLength",(function(){return ae})),n.d(i,"negate",(function(){return se})),n.d(i,"inverse",(function(){return ue})),n.d(i,"normalize",(function(){return ce})),n.d(i,"dot",(function(){return le})),n.d(i,"cross",(function(){return fe})),n.d(i,"lerp",(function(){return de})),n.d(i,"slerp",(function(){return he})),n.d(i,"hermite",(function(){return pe})),n.d(i,"bezier",(function(){return ge})),n.d(i,"random",(function(){return me})),n.d(i,"transformMat4",(function(){return ye})),n.d(i,"transformMat3",(function(){return ve})),n.d(i,"transformQuat",(function(){return we})),n.d(i,"rotateX",(function(){return _e})),n.d(i,"rotateY",(function(){return be})),n.d(i,"rotateZ",(function(){return Ee})),n.d(i,"angle",(function(){return Ce})),n.d(i,"zero",(function(){return Ae})),n.d(i,"str",(function(){return Se})),n.d(i,"exactEquals",(function(){return Oe})),n.d(i,"equals",(function(){return Ie})),n.d(i,"sub",(function(){return Te})),n.d(i,"mul",(function(){return Me})),n.d(i,"div",(function(){return Re})),n.d(i,"dist",(function(){return De})),n.d(i,"sqrDist",(function(){return xe})),n.d(i,"len",(function(){return Ne})),n.d(i,"sqrLen",(function(){return Pe})),n.d(i,"forEach",(function(){return Le}));var a={};n.r(a),n.d(a,"BarcodeReader",(function(){return cn})),n.d(a,"TwoOfFiveReader",(function(){return gn})),n.d(a,"NewCodabarReader",(function(){return _n})),n.d(a,"Code128Reader",(function(){return En})),n.d(a,"Code32Reader",(function(){return Nn})),n.d(a,"Code39Reader",(function(){return Rn})),n.d(a,"Code39VINReader",(function(){return Bn})),n.d(a,"Code93Reader",(function(){return zn})),n.d(a,"EAN2Reader",(function(){return Qn})),n.d(a,"EAN5Reader",(function(){return tr})),n.d(a,"EAN8Reader",(function(){return nr})),n.d(a,"EANReader",(function(){return qn})),n.d(a,"I2of5Reader",(function(){return rr})),n.d(a,"PharmacodeReader",(function(){return cr})),n.d(a,"UPCEReader",(function(){return hr})),n.d(a,"UPCReader",(function(){return gr}));var s=n(9),u=n.n(s),c=n(15),l=n.n(c),f=(n(141),n(80)),d=n.n(f),h=n(2),p=n.n(h),g=n(3),m=n.n(g),y=n(0),v=n.n(y),w="undefined"!=typeof Float32Array?Float32Array:Array,_=Math.random;function b(t){return t>=0?Math.round(t):t%.5==0?Math.floor(t):Math.round(t)}function E(){var t=new w(4);return w!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function C(t){var e=new w(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function A(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function S(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function O(t,e,n,r){var o=new w(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function I(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function T(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function M(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=n*i-o*r;return a?(a=1/a,t[0]=i*a,t[1]=-r*a,t[2]=-o*a,t[3]=n*a,t):null}function R(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function D(t){return t[0]*t[3]-t[2]*t[1]}function x(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*s+i*u,t[1]=o*s+a*u,t[2]=r*c+i*l,t[3]=o*c+a*l,t}function N(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=o*u+a*s,t[2]=r*-s+i*u,t[3]=o*-s+a*u,t}function P(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=o*s,t[2]=i*u,t[3]=a*u,t}function L(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t}function k(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function B(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function j(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3])}function F(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]}function U(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function z(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function V(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function H(t,e){var n=t[0],r=t[1],o=t[2],i=t[3],a=e[0],s=e[1],u=e[2],c=e[3];return Math.abs(n-a)<=1e-6*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=1e-6*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-u)<=1e-6*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=1e-6*Math.max(1,Math.abs(i),Math.abs(c))}function W(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function G(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}Math.PI,Math.PI;var Y=x,X=z;function Z(){var t=new w(2);return w!=Float32Array&&(t[0]=0,t[1]=0),t}function q(t){var e=new w(2);return e[0]=t[0],e[1]=t[1],e}function K(t,e){var n=new w(2);return n[0]=t,n[1]=e,n}function Q(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t,e,n){return t[0]=e,t[1]=n,t}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function tt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function et(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function nt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function rt(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function ot(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function it(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function at(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function st(t,e){return t[0]=b(e[0]),t[1]=b(e[1]),t}function ut(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ct(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function lt(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function ft(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function dt(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function ht(t){var e=t[0],n=t[1];return e*e+n*n}function pt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function gt(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function mt(t,e){var n=e[0],r=e[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t}function yt(t,e){return t[0]*e[0]+t[1]*e[1]}function vt(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function wt(t,e,n,r){var o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t}function _t(t,e){e=void 0===e?1:e;var n=2*_()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function bt(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t}function Et(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t}function Ct(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t}function At(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t}function St(t,e,n,r){var o=e[0]-n[0],i=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=o*s-i*a+n[0],t[1]=o*a+i*s+n[1],t}function Ot(t,e){var n=t[0],r=t[1],o=e[0],i=e[1];return Math.abs(Math.atan2(r*o-n*i,n*o+r*i))}function It(t,e){var n=t[0],r=t[1],o=e[0],i=e[1];return Math.atan2(n*i-r*o,n*o+r*i)}function Tt(t){return t[0]=0,t[1]=0,t}function Mt(t){return"vec2("+t[0]+", "+t[1]+")"}function Rt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Dt(t,e){var n=t[0],r=t[1],o=e[0],i=e[1];return Math.abs(n-o)<=1e-6*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-i)<=1e-6*Math.max(1,Math.abs(r),Math.abs(i))}var xt,Nt=dt,Pt=tt,Lt=et,kt=nt,Bt=lt,jt=ft,Ft=ht,Ut=(xt=Z(),function(t,e,n,r,o,i){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)xt[0]=t[a],xt[1]=t[a+1],o(xt,xt,i),t[a]=xt[0],t[a+1]=xt[1];return t});function zt(){var t=new w(3);return w!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Vt(t){var e=new w(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ht(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function Wt(t,e,n){var r=new w(3);return r[0]=t,r[1]=e,r[2]=n,r}function Gt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Yt(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function Xt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Zt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function qt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Kt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function Qt(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function Jt(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function $t(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function te(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function ee(t,e){return t[0]=b(e[0]),t[1]=b(e[1]),t[2]=b(e[2]),t}function ne(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function re(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function oe(t,e){var n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function ie(t,e){var n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function ae(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function se(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function ue(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function ce(t,e){var n=e[0],r=e[1],o=e[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function le(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function fe(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],u=n[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function de(t,e,n,r){var o=e[0],i=e[1],a=e[2];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t[2]=a+r*(n[2]-a),t}function he(t,e,n,r){var o=Math.acos(Math.min(Math.max(le(e,n),-1),1)),i=Math.sin(o),a=Math.sin((1-r)*o)/i,s=Math.sin(r*o)/i;return t[0]=a*e[0]+s*n[0],t[1]=a*e[1]+s*n[1],t[2]=a*e[2]+s*n[2],t}function pe(t,e,n,r,o,i){var a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=e[0]*s+n[0]*u+r[0]*c+o[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+o[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+o[2]*l,t}function ge(t,e,n,r,o,i){var a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,f=3*u*a,d=u*i;return t[0]=e[0]*c+n[0]*l+r[0]*f+o[0]*d,t[1]=e[1]*c+n[1]*l+r[1]*f+o[1]*d,t[2]=e[2]*c+n[2]*l+r[2]*f+o[2]*d,t}function me(t,e){e=void 0===e?1:e;var n=2*_()*Math.PI,r=2*_()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function ye(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[3]*r+n[7]*o+n[11]*i+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*o+n[8]*i+n[12])/a,t[1]=(n[1]*r+n[5]*o+n[9]*i+n[13])/a,t[2]=(n[2]*r+n[6]*o+n[10]*i+n[14])/a,t}function ve(t,e,n){var r=e[0],o=e[1],i=e[2];return t[0]=r*n[0]+o*n[3]+i*n[6],t[1]=r*n[1]+o*n[4]+i*n[7],t[2]=r*n[2]+o*n[5]+i*n[8],t}function we(t,e,n){var r=n[0],o=n[1],i=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=o*c-i*u,f=i*s-r*c,d=r*u-o*s;return l+=l,f+=f,d+=d,t[0]=s+a*l+o*d-i*f,t[1]=u+a*f+i*l-r*d,t[2]=c+a*d+r*f-o*l,t}function _e(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function be(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function Ee(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function Ce(t,e){var n=t[0],r=t[1],o=t[2],i=e[0],a=e[1],s=e[2],u=Math.sqrt((n*n+r*r+o*o)*(i*i+a*a+s*s)),c=u&&le(t,e)/u;return Math.acos(Math.min(Math.max(c,-1),1))}function Ae(t){return t[0]=0,t[1]=0,t[2]=0,t}function Se(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Oe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Ie(t,e){var n=t[0],r=t[1],o=t[2],i=e[0],a=e[1],s=e[2];return Math.abs(n-i)<=1e-6*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=1e-6*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-s)<=1e-6*Math.max(1,Math.abs(o),Math.abs(s))}var Te=Zt,Me=qt,Re=Kt,De=oe,xe=ie,Ne=Ht,Pe=ae,Le=function(){var t=zt();return function(e,n,r,o,i,a){var s,u;for(n||(n=3),r||(r=0),u=o?Math.min(o*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],i(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),ke=function(t,e){t.fill(e)},Be=function(t){for(var e=0,n=0;n<t.length;n++)t[n]>t[e]&&(e=n);return e},je=function(t){for(var e=t.length,n=0;e--;)n+=t[e];return n},Fe=function(t,e){var n=[],r={rad:0,vec:o.clone([0,0])},i={};function a(t){i[t.id]=t,n.push(t)}function s(){var t,e=0;for(t=0;t<n.length;t++)e+=n[t].rad;r.rad=e/n.length,r.vec=o.clone([Math.cos(r.rad),Math.sin(r.rad)])}return a(t),s(),{add:function(t){i[t.id]||(a(t),s())},fits:function(t){return Math.abs(o.dot(t.point.vec,r.vec))>e},getPoints:function(){return n},getCenter:function(){return r}}},Ue=function(t,e,n){return{rad:t[n],point:t,id:e}};function ze(t,e){return{x:t,y:e,toVec2:function(){return o.clone([this.x,this.y])},toVec3:function(){return i.clone([this.x,this.y,1])},round:function(){return this.x=this.x>0?Math.floor(this.x+.5):Math.floor(this.x-.5),this.y=this.y>0?Math.floor(this.y+.5):Math.floor(this.y-.5),this}}}function Ve(t,e){e||(e=8);for(var n=t.data,r=n.length,o=8-e,i=new Int32Array(1<<e);r--;)i[n[r]>>o]++;return i}function He(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],n=t[0],r=t[1],o=t[2],i=o*r,a=i*(1-Math.abs(n/60%2-1)),s=o-i,u=0,c=0,l=0;return n<60?(u=i,c=a):n<120?(u=a,c=i):n<180?(c=i,l=a):n<240?(c=a,l=i):n<300?(u=a,l=i):n<360&&(u=i,l=a),e[0]=255*(u+s)|0,e[1]=255*(c+s)|0,e[2]=255*(l+s)|0,e}function We(t){if(!Number.isFinite(t)||t<1)return[];for(var e=[],n=[],r=Math.sqrt(t),o=1;o<=r;o++)t%o==0&&(n.push(o),o!==t/o&&e.unshift(Math.floor(t/o)));return n.concat(e)}function Ge(t,e){var n,r=We(e.x),o=We(e.y),i=Math.max(e.x,e.y),a=function(t,e){for(var n=0,r=0,o=[];n<t.length&&r<e.length;)t[n]===e[r]?(o.push(t[n]),n++,r++):t[n]>e[r]?r++:n++;return o}(r,o),s=[8,10,15,20,32,60,80],u={"x-small":5,small:4,medium:3,large:2,"x-large":1},c=u[t]||u.medium,l=s[c],f=Math.floor(i/l);function d(t){for(var e=0,n=t[Math.floor(t.length/2)];e<t.length-1&&t[e]<f;)e++;return e>0&&(n=Math.abs(t[e]-f)>Math.abs(t[e-1]-f)?t[e-1]:t[e]),f/n<s[c+1]/s[c]&&f/n>s[c-1]/s[c]?{x:n,y:n}:null}return(n=d(a))||(n=d(We(i)))||(n=d(We(f*l))),n||(n={x:Math.max(1,e.x),y:Math.max(1,e.y)}),n}var Ye={top:function(t,e){return"%"===t.unit?Math.floor(e.height*(t.value/100)):null},right:function(t,e){return"%"===t.unit?Math.floor(e.width-e.width*(t.value/100)):null},bottom:function(t,e){return"%"===t.unit?Math.floor(e.height-e.height*(t.value/100)):null},left:function(t,e){return"%"===t.unit?Math.floor(e.width*(t.value/100)):null}};function Xe(t){if(t<0)throw new Error("expected positive number, received ".concat(t))}var Ze=m()((function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uint8Array,o=arguments.length>3?arguments[3]:void 0;p()(this,t),v()(this,"data",void 0),v()(this,"size",void 0),v()(this,"indexMapping",void 0),n?this.data=n:(this.data=new r(e.x*e.y),o&&ke(this.data,0)),this.size=e}),[{key:"inImageWithBorder",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Xe(e),t.x>=0&&t.y>=0&&t.x<this.size.x+2*e&&t.y<this.size.y+2*e}},{key:"subImageAsCopy",value:function(t,e){Xe(e.x),Xe(e.y);for(var n=t.size,r=n.x,o=n.y,i=0;i<r;i++)for(var a=0;a<o;a++)t.data[a*r+i]=this.data[(e.y+a)*this.size.x+e.x+i];return t}},{key:"get",value:function(t,e){return this.data[e*this.size.x+t]}},{key:"getSafe",value:function(t,e){if(!this.indexMapping){this.indexMapping={x:[],y:[]};for(var n=0;n<this.size.x;n++)this.indexMapping.x[n]=n,this.indexMapping.x[n+this.size.x]=n;for(var r=0;r<this.size.y;r++)this.indexMapping.y[r]=r,this.indexMapping.y[r+this.size.y]=r}return this.data[this.indexMapping.y[e+this.size.y]*this.size.x+this.indexMapping.x[t+this.size.x]]}},{key:"set",value:function(t,e,n){return this.data[e*this.size.x+t]=n,delete this.indexMapping,this}},{key:"zeroBorder",value:function(){for(var t=this.size,e=t.x,n=t.y,r=0;r<e;r++)this.data[r]=this.data[(n-1)*e+r]=0;for(var o=1;o<n-1;o++)this.data[o*e]=this.data[o*e+(e-1)]=0;return delete this.indexMapping,this}},{key:"moments",value:function(t){var e,n,r,i,a,s,u,c,l,f,d=this.data,h=this.size.y,p=this.size.x,g=[],m=[],y=Math.PI,v=y/4;if(t<=0)return m;for(a=0;a<t;a++)g[a]={m00:0,m01:0,m10:0,m11:0,m02:0,m20:0,theta:0,rad:0};for(n=0;n<h;n++)for(i=n*n,e=0;e<p;e++)(r=d[n*p+e])>0&&((s=g[r-1]).m00+=1,s.m01+=n,s.m10+=e,s.m11+=e*n,s.m02+=i,s.m20+=e*e);for(a=0;a<t;a++)s=g[a],isNaN(s.m00)||0===s.m00||(c=s.m10/s.m00,l=s.m01/s.m00,u=s.m11/s.m00-c*l,f=(s.m02/s.m00-l*l-(s.m20/s.m00-c*c))/(2*u),f=.5*Math.atan(f)+(u>=0?v:-v)+y,s.theta=(180*f/y+90)%180-90,s.theta<0&&(s.theta+=180),s.rad=f>y?f-y:f,s.vec=o.clone([Math.cos(f),Math.sin(f)]),m.push(s));return m}},{key:"getAsRGBA",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=new Uint8ClampedArray(4*this.size.x*this.size.y),n=0;n<this.size.y;n++)for(var r=0;r<this.size.x;r++){var o=n*this.size.x+r,i=this.get(r,n)*t;e[4*o+0]=i,e[4*o+1]=i,e[4*o+2]=i,e[4*o+3]=255}return e}},{key:"show",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;console.warn("* imagewrapper show getcontext 2d");var n=t.getContext("2d");if(!n)throw new Error("Unable to get canvas context");var r=n.getImageData(0,0,t.width,t.height),o=this.getAsRGBA(e);t.width=this.size.x,t.height=this.size.y;var i=new ImageData(o,r.width,r.height);n.putImageData(i,0,0)}},{key:"overlay",value:function(t,e,n){var r=e<0||e>360?360:e,o=[0,1,1],i=[0,0,0],a=[255,255,255],s=[0,0,0];console.warn("* imagewrapper overlay getcontext 2d");var u=t.getContext("2d");if(!u)throw new Error("Unable to get canvas context");for(var c=u.getImageData(n.x,n.y,this.size.x,this.size.y),l=c.data,f=this.data.length;f--;){o[0]=this.data[f]*r;var h=4*f,p=o[0]<=0?a:o[0]>=360?s:He(o,i),g=d()(p,3);l[h]=g[0],l[h+1]=g[1],l[h+2]=g[2],l[h+3]=255}u.putImageData(c,n.x,n.y)}}]),qe=n(7),Ke=n.n(qe),Qe=n(6),Je=n.n(Qe),$e={drawRect:function(t,e,n,r){n.strokeStyle=r.color,n.fillStyle=r.color,n.lineWidth=r.lineWidth||1,n.beginPath(),n.strokeRect(t.x,t.y,e.x,e.y)},drawPath:function(t,e,n,r){n.strokeStyle=r.color,n.fillStyle=r.color,n.lineWidth=r.lineWidth,n.beginPath(),n.moveTo(t[0][e.x],t[0][e.y]);for(var o=1;o<t.length;o++)n.lineTo(t[o][e.x],t[o][e.y]);n.closePath(),n.stroke()},drawImage:function(t,e,n){var r=n.getImageData(0,0,e.x,e.y),o=r.data,i=o.length,a=t.length;if(i/a!=4)return!1;for(;a--;){var s=t[a];o[--i]=255,o[--i]=s,o[--i]=s,o[--i]=s}return n.putImageData(r,0,0),!0}},tn=n(4),en=n.n(tn),nn=n(1),rn=n.n(nn),on=n(5),an=n.n(on),sn=function(t){return t[t.Forward=1]="Forward",t[t.Reverse=-1]="Reverse",t}({}),un=m()((function t(e,n){p()(this,t),v()(this,"_row",[]),v()(this,"config",{}),v()(this,"supplements",[]),v()(this,"SINGLE_CODE_ERROR",0),v()(this,"FORMAT","unknown"),v()(this,"CONFIG_KEYS",{}),this._row=[],this.config=e||{},n&&(this.supplements=n)}),[{key:"_nextUnset",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;n<t.length;n++)if(!t[n])return n;return t.length}},{key:"_matchPattern",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.SINGLE_CODE_ERROR||1,r=0,o=0,i=0,a=0,s=0,u=0,c=0,l=0;l<t.length;l++)i+=t[l],a+=e[l];if(i<a)return Number.MAX_VALUE;n*=s=i/a;for(var f=0;f<t.length;f++){if(u=t[f],c=e[f]*s,(o=Math.abs(u-c)/c)>n)return Number.MAX_VALUE;r+=o}return r/a}},{key:"_nextSet",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;n<t.length;n++)if(t[n])return n;return t.length}},{key:"_correctBars",value:function(t,e,n){for(var r=n.length,o=0;r--;)(o=t[n[r]]*(1-(1-e)/2))>1&&(t[n[r]]=o)}},{key:"decodePattern",value:function(t){this._row=t;var e=this.decode();return null===e?(this._row.reverse(),(e=this.decode())&&(e.direction=sn.Reverse,e.start=this._row.length-e.start,e.end=this._row.length-e.end)):e.direction=sn.Forward,e&&(e.format=this.FORMAT),e}},{key:"_matchRange",value:function(t,e,n){var r;for(r=t=t<0?0:t;r<e;r++)if(this._row[r]!==n)return!1;return!0}},{key:"_fillCounters",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._nextUnset(this._row),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row.length,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[],o=0;r[o]=0;for(var i=t;i<e;i++)this._row[i]^(n?1:0)?r[o]++:(r[++o]=1,n=!n);return r}},{key:"_toCounters",value:function(t,e){var n=e.length,r=this._row.length,o=!this._row[t],i=0;ke(e,0);for(var a=t;a<r;a++)if(this._row[a]^(o?1:0))e[i]++;else{if(++i===n)break;e[i]=1,o=!o}return e}},{key:"decodeImage",value:function(t){return null}}],[{key:"Exception",get:function(){return{StartNotFoundException:"Start-Info was not found!",CodeNotFoundException:"Code could not be found!",PatternNotFoundException:"Pattern could not be found!"}}}]);v()(un,"adjacentLineValidationMatches",0);var cn=un;function ln(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var fn=[3,1,3,1,1,1],dn=[3,1,1,1,3],hn=[[1,1,3,3,1],[3,1,1,1,3],[1,3,1,1,3],[3,3,1,1,1],[1,1,3,1,3],[3,1,3,1,1],[1,3,3,1,1],[1,1,1,3,3],[3,1,1,3,1],[1,3,1,3,1]],pn=fn.reduce((function(t,e){return t+e}),0),gn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=ln(this,e,[].concat(r)),v()(t,"barSpaceRatio",[1,1]),v()(t,"FORMAT","2of5"),v()(t,"SINGLE_CODE_ERROR",.78),v()(t,"AVG_CODE_ERROR",.3),t}return an()(e,t),m()(e,[{key:"_findPattern",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=[],i=0,a={error:Number.MAX_VALUE,code:-1,start:0,end:0},s=0,u=0,c=this.AVG_CODE_ERROR;e||(e=this._nextSet(this._row));for(var l=0;l<t.length;l++)o[l]=0;for(var f=e;f<this._row.length;f++)if(this._row[f]^(n?1:0))o[i]++;else{if(i===o.length-1){s=0;for(var d=0;d<o.length;d++)s+=o[d];if((u=this._matchPattern(o,t))<c)return a.error=u,a.start=f-s,a.end=f,a;if(!r)return null;for(var h=0;h<o.length-2;h++)o[h]=o[h+2];o[o.length-2]=0,o[o.length-1]=0,i--}else i++;o[i]=1,n=!n}return null}},{key:"_findStart",value:function(){for(var t=null,e=this._nextSet(this._row),n=1,r=0;!t;){if(!(t=this._findPattern(fn,e,!1,!0)))return null;if(n=Math.floor((t.end-t.start)/pn),(r=t.start-5*n)>=0&&this._matchRange(r,t.start,0))return t;e=t.end,t=null}return t}},{key:"_verifyTrailingWhitespace",value:function(t){var e=t.end+(t.end-t.start)/2;return e<this._row.length&&this._matchRange(t.end,e,0)?t:null}},{key:"_findEnd",value:function(){this._row.reverse();var t=this._nextSet(this._row),e=this._findPattern(dn,t,!1,!0);if(this._row.reverse(),null===e)return null;var n=e.start;return e.start=this._row.length-e.end,e.end=this._row.length-n,null!==e?this._verifyTrailingWhitespace(e):null}},{key:"_verifyCounterLength",value:function(t){return t.length%10==0}},{key:"_decodeCode",value:function(t){for(var e=this.AVG_CODE_ERROR,n={error:Number.MAX_VALUE,code:-1,start:0,end:0},r=0;r<hn.length;r++){var o=this._matchPattern(t,hn[r]);o<n.error&&(n.code=r,n.error=o)}return n.error<e?n:null}},{key:"_decodePayload",value:function(t,e,n){for(var r=0,o=t.length,i=[0,0,0,0,0],a=null;r<o;){for(var s=0;s<5;s++)i[s]=t[r]*this.barSpaceRatio[0],r+=2;if(!(a=this._decodeCode(i)))return null;e.push("".concat(a.code)),n.push(a)}return a}},{key:"decode",value:function(t,e){var n=this._findStart();if(!n)return null;var r=this._findEnd();if(!r)return null;var o=this._fillCounters(n.end,r.start,!1);if(!this._verifyCounterLength(o))return null;var i=[];i.push(n);var a=[];return this._decodePayload(o,a,i)?a.length<5?null:(i.push(r),{code:a.join(""),start:n.start,end:r.end,startInfo:n,decodedCodes:i,format:this.FORMAT}):null}}])}(cn);function mn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var yn=[48,49,50,51,52,53,54,55,56,57,45,36,58,47,46,43,65,66,67,68],vn=[3,6,9,96,18,66,33,36,48,72,12,24,69,81,84,21,26,41,11,14],wn=[26,41,11,14],_n=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=mn(this,e,[].concat(r)),v()(t,"_counters",[]),v()(t,"FORMAT","codabar"),t}return an()(e,t),m()(e,[{key:"_computeAlternatingThreshold",value:function(t,e){for(var n=Number.MAX_VALUE,r=0,o=0,i=t;i<e;i+=2)(o=this._counters[i])>r&&(r=o),o<n&&(n=o);return(n+r)/2|0}},{key:"_toPattern",value:function(t){var e=t+7;if(e>this._counters.length)return-1;for(var n=this._computeAlternatingThreshold(t,e),r=this._computeAlternatingThreshold(t+1,e),o=64,i=0,a=0,s=0;s<7;s++)i=0==(1&s)?n:r,this._counters[t+s]>i&&(a|=o),o>>=1;return a}},{key:"_isStartEnd",value:function(t){for(var e=0;e<wn.length;e++)if(wn[e]===t)return!0;return!1}},{key:"_sumCounters",value:function(t,e){for(var n=0,r=t;r<e;r++)n+=this._counters[r];return n}},{key:"_findStart",value:function(){for(var t=this._nextUnset(this._row),e=1;e<this._counters.length;e++){var n=this._toPattern(e);if(-1!==n&&this._isStartEnd(n))return{start:t+=this._sumCounters(0,e),end:t+this._sumCounters(e,e+8),startCounter:e,endCounter:e+8}}return null}},{key:"_patternToChar",value:function(t){for(var e=0;e<vn.length;e++)if(vn[e]===t)return String.fromCharCode(yn[e]);return null}},{key:"_calculatePatternLength",value:function(t){for(var e=0,n=t;n<t+7;n++)e+=this._counters[n];return e}},{key:"_verifyWhitespace",value:function(t,e){return(t-1<=0||this._counters[t-1]>=this._calculatePatternLength(t)/2)&&(e+8>=this._counters.length||this._counters[e+7]>=this._calculatePatternLength(e)/2)}},{key:"_charToPattern",value:function(t){for(var e=t.charCodeAt(0),n=0;n<yn.length;n++)if(yn[n]===e)return vn[n];return 0}},{key:"_thresholdResultPattern",value:function(t,e){for(var n,r={space:{narrow:{size:0,counts:0,min:0,max:Number.MAX_VALUE},wide:{size:0,counts:0,min:0,max:Number.MAX_VALUE}},bar:{narrow:{size:0,counts:0,min:0,max:Number.MAX_VALUE},wide:{size:0,counts:0,min:0,max:Number.MAX_VALUE}}},o=e,i=0;i<t.length;i++){n=this._charToPattern(t[i]);for(var a=6;a>=0;a--){var s=2==(1&a)?r.bar:r.space,u=1==(1&n)?s.wide:s.narrow;u.size+=this._counters[o+a],u.counts++,n>>=1}o+=8}return["space","bar"].forEach((function(t){var e=r[t];e.wide.min=Math.floor((e.narrow.size/e.narrow.counts+e.wide.size/e.wide.counts)/2),e.narrow.max=Math.ceil(e.wide.min),e.wide.max=Math.ceil((2*e.wide.size+1.5)/e.wide.counts)})),r}},{key:"_validateResult",value:function(t,e){for(var n,r=this._thresholdResultPattern(t,e),o=e,i=0;i<t.length;i++){n=this._charToPattern(t[i]);for(var a=6;a>=0;a--){var s=0==(1&a)?r.bar:r.space,u=1==(1&n)?s.wide:s.narrow,c=this._counters[o+a];if(c<u.min||c>u.max)return!1;n>>=1}o+=8}return!0}},{key:"decode",value:function(t,e){if(this._counters=this._fillCounters(),!(e=this._findStart()))return null;var n,r=e.startCounter,o=[];do{if((n=this._toPattern(r))<0)return null;var i=this._patternToChar(n);if(null===i)return null;if(o.push(i),r+=8,o.length>1&&this._isStartEnd(n))break}while(r<this._counters.length);if(o.length-2<4||!this._isStartEnd(n))return null;if(!this._verifyWhitespace(e.startCounter,r-8))return null;if(!this._validateResult(o,e.startCounter))return null;r=r>this._counters.length?this._counters.length:r;var a=e.start+this._sumCounters(e.startCounter,r-8);return{code:o.join(""),start:e.start,end:a,startInfo:e,decodedCodes:o,format:this.FORMAT}}}])}(cn);function bn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var En=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=bn(this,e,[].concat(r)),v()(t,"CODE_SHIFT",98),v()(t,"CODE_C",99),v()(t,"CODE_B",100),v()(t,"CODE_A",101),v()(t,"FNC1",102),v()(t,"START_CODE_A",103),v()(t,"START_CODE_B",104),v()(t,"START_CODE_C",105),v()(t,"STOP_CODE",106),v()(t,"FNC1_CHAR",String.fromCharCode(29)),v()(t,"CODE_PATTERN",[[2,1,2,2,2,2],[2,2,2,1,2,2],[2,2,2,2,2,1],[1,2,1,2,2,3],[1,2,1,3,2,2],[1,3,1,2,2,2],[1,2,2,2,1,3],[1,2,2,3,1,2],[1,3,2,2,1,2],[2,2,1,2,1,3],[2,2,1,3,1,2],[2,3,1,2,1,2],[1,1,2,2,3,2],[1,2,2,1,3,2],[1,2,2,2,3,1],[1,1,3,2,2,2],[1,2,3,1,2,2],[1,2,3,2,2,1],[2,2,3,2,1,1],[2,2,1,1,3,2],[2,2,1,2,3,1],[2,1,3,2,1,2],[2,2,3,1,1,2],[3,1,2,1,3,1],[3,1,1,2,2,2],[3,2,1,1,2,2],[3,2,1,2,2,1],[3,1,2,2,1,2],[3,2,2,1,1,2],[3,2,2,2,1,1],[2,1,2,1,2,3],[2,1,2,3,2,1],[2,3,2,1,2,1],[1,1,1,3,2,3],[1,3,1,1,2,3],[1,3,1,3,2,1],[1,1,2,3,1,3],[1,3,2,1,1,3],[1,3,2,3,1,1],[2,1,1,3,1,3],[2,3,1,1,1,3],[2,3,1,3,1,1],[1,1,2,1,3,3],[1,1,2,3,3,1],[1,3,2,1,3,1],[1,1,3,1,2,3],[1,1,3,3,2,1],[1,3,3,1,2,1],[3,1,3,1,2,1],[2,1,1,3,3,1],[2,3,1,1,3,1],[2,1,3,1,1,3],[2,1,3,3,1,1],[2,1,3,1,3,1],[3,1,1,1,2,3],[3,1,1,3,2,1],[3,3,1,1,2,1],[3,1,2,1,1,3],[3,1,2,3,1,1],[3,3,2,1,1,1],[3,1,4,1,1,1],[2,2,1,4,1,1],[4,3,1,1,1,1],[1,1,1,2,2,4],[1,1,1,4,2,2],[1,2,1,1,2,4],[1,2,1,4,2,1],[1,4,1,1,2,2],[1,4,1,2,2,1],[1,1,2,2,1,4],[1,1,2,4,1,2],[1,2,2,1,1,4],[1,2,2,4,1,1],[1,4,2,1,1,2],[1,4,2,2,1,1],[2,4,1,2,1,1],[2,2,1,1,1,4],[4,1,3,1,1,1],[2,4,1,1,1,2],[1,3,4,1,1,1],[1,1,1,2,4,2],[1,2,1,1,4,2],[1,2,1,2,4,1],[1,1,4,2,1,2],[1,2,4,1,1,2],[1,2,4,2,1,1],[4,1,1,2,1,2],[4,2,1,1,1,2],[4,2,1,2,1,1],[2,1,2,1,4,1],[2,1,4,1,2,1],[4,1,2,1,2,1],[1,1,1,1,4,3],[1,1,1,3,4,1],[1,3,1,1,4,1],[1,1,4,1,1,3],[1,1,4,3,1,1],[4,1,1,1,1,3],[4,1,1,3,1,1],[1,1,3,1,4,1],[1,1,4,1,3,1],[3,1,1,1,4,1],[4,1,1,1,3,1],[2,1,1,4,1,2],[2,1,1,2,1,4],[2,1,1,2,3,2],[2,3,3,1,1,1,2]]),v()(t,"SINGLE_CODE_ERROR",.64),v()(t,"AVG_CODE_ERROR",.3),v()(t,"FORMAT","code_128"),v()(t,"MODULE_INDICES",{bar:[0,2,4],space:[1,3,5]}),t}return an()(e,t),m()(e,[{key:"_decodeCode",value:function(t,e){for(var n={error:Number.MAX_VALUE,code:-1,start:t,end:t,correction:{bar:1,space:1}},r=[0,0,0,0,0,0],o=t,i=!this._row[o],a=0,s=o;s<this._row.length;s++)if(this._row[s]^(i?1:0))r[a]++;else{if(a===r.length-1){e&&this._correct(r,e);for(var u=0;u<this.CODE_PATTERN.length;u++){var c=this._matchPattern(r,this.CODE_PATTERN[u]);c<n.error&&(n.code=u,n.error=c)}return n.end=s,-1===n.code||n.error>this.AVG_CODE_ERROR?null:(this.CODE_PATTERN[n.code]&&(n.correction.bar=this.calculateCorrection(this.CODE_PATTERN[n.code],r,this.MODULE_INDICES.bar),n.correction.space=this.calculateCorrection(this.CODE_PATTERN[n.code],r,this.MODULE_INDICES.space)),n)}r[++a]=1,i=!i}return null}},{key:"_correct",value:function(t,e){this._correctBars(t,e.bar,this.MODULE_INDICES.bar),this._correctBars(t,e.space,this.MODULE_INDICES.space)}},{key:"_findStart",value:function(){for(var t=[0,0,0,0,0,0],e=this._nextSet(this._row),n={error:Number.MAX_VALUE,code:-1,start:0,end:0,correction:{bar:1,space:1}},r=!1,o=0,i=e;i<this._row.length;i++)if(this._row[i]^(r?1:0))t[o]++;else{if(o===t.length-1){for(var a=t.reduce((function(t,e){return t+e}),0),s=this.START_CODE_A;s<=this.START_CODE_C;s++){var u=this._matchPattern(t,this.CODE_PATTERN[s]);u<n.error&&(n.code=s,n.error=u)}if(n.error<this.AVG_CODE_ERROR)return n.start=i-a,n.end=i,n.correction.bar=this.calculateCorrection(this.CODE_PATTERN[n.code],t,this.MODULE_INDICES.bar),n.correction.space=this.calculateCorrection(this.CODE_PATTERN[n.code],t,this.MODULE_INDICES.space),n;for(var c=0;c<4;c++)t[c]=t[c+2];t[4]=0,t[5]=0,o--}else o++;t[o]=1,r=!r}return null}},{key:"decode",value:function(t,e){var n=this,r=this._findStart();if(null===r)return null;var o={code:r.code,start:r.start,end:r.end,correction:{bar:r.correction.bar,space:r.correction.space}},i=[];i.push(o);for(var a=o.code,s=function(t){switch(t){case n.START_CODE_A:return n.CODE_A;case n.START_CODE_B:return n.CODE_B;case n.START_CODE_C:return n.CODE_C;default:return null}}(o.code),u=!1,c=!1,l=c,f=!0,d=0,h=[],p=[];!u;){if(l=c,c=!1,null!==(o=this._decodeCode(o.end,o.correction)))switch(o.code!==this.STOP_CODE&&(f=!0),o.code!==this.STOP_CODE&&(h.push(o.code),a+=++d*o.code),i.push(o),s){case this.CODE_A:if(o.code<64)p.push(String.fromCharCode(32+o.code));else if(o.code<96)p.push(String.fromCharCode(o.code-64));else switch(o.code!==this.STOP_CODE&&(f=!1),o.code){case this.CODE_SHIFT:c=!0,s=this.CODE_B;break;case this.CODE_B:s=this.CODE_B;break;case this.CODE_C:s=this.CODE_C;break;case this.FNC1:p.push(this.FNC1_CHAR);break;case this.STOP_CODE:u=!0}break;case this.CODE_B:if(o.code<96)p.push(String.fromCharCode(32+o.code));else switch(o.code!==this.STOP_CODE&&(f=!1),o.code){case this.CODE_SHIFT:c=!0,s=this.CODE_A;break;case this.CODE_A:s=this.CODE_A;break;case this.CODE_C:s=this.CODE_C;break;case this.FNC1:p.push(this.FNC1_CHAR);break;case this.STOP_CODE:u=!0}break;case this.CODE_C:if(o.code<100)p.push(o.code<10?"0"+o.code:o.code);else switch(o.code!==this.STOP_CODE&&(f=!1),o.code){case this.CODE_A:s=this.CODE_A;break;case this.CODE_B:s=this.CODE_B;break;case this.FNC1:p.push(this.FNC1_CHAR);break;case this.STOP_CODE:u=!0}}else u=!0;l&&(s=s===this.CODE_A?this.CODE_B:this.CODE_A)}return null===o?null:(o.end=this._nextUnset(this._row,o.end),this._verifyTrailingWhitespace(o)?(a-=d*h[h.length-1])%103!==h[h.length-1]?null:p.length?(f&&p.splice(p.length-1,1),{code:p.join(""),start:r.start,end:o.end,codeset:s,startInfo:r,decodedCodes:i,endInfo:o,format:this.FORMAT}):null:null)}},{key:"_verifyTrailingWhitespace",value:function(t){var e;return(e=t.end+(t.end-t.start)/2)<this._row.length&&this._matchRange(t.end,e,0)?t:null}},{key:"calculateCorrection",value:function(t,e,n){for(var r=n.length,o=0,i=0;r--;)i+=t[n[r]],o+=e[n[r]];return i/o}}])}(cn),Cn=n(13),An=n.n(Cn),Sn=n(16),On=n.n(Sn);function In(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var Tn=new Uint16Array(On()("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *$/+%").map((function(t){return t.charCodeAt(0)}))),Mn=new Uint16Array([52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,148,168,162,138,42]),Rn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=In(this,e,[].concat(r)),v()(t,"FORMAT","code_39"),t}return an()(e,t),m()(e,[{key:"_findStart",value:function(){for(var t=this._nextSet(this._row),e=t,n=new Uint16Array([0,0,0,0,0,0,0,0,0]),r=0,o=!1,i=t;i<this._row.length;i++)if(this._row[i]^(o?1:0))n[r]++;else{if(r===n.length-1){if(148===this._toPattern(n)){var a=Math.floor(Math.max(0,e-(i-e)/4));if(this._matchRange(a,e,0))return{start:e,end:i}}e+=n[0]+n[1];for(var s=0;s<7;s++)n[s]=n[s+2];n[7]=0,n[8]=0,r--}else r++;n[r]=1,o=!o}return null}},{key:"_toPattern",value:function(t){for(var e=t.length,n=0,r=e,o=0;r>3;){n=this._findNextWidth(t,n),r=0;for(var i=0,a=0;a<e;a++)t[a]>n&&(i|=1<<e-1-a,r++,o+=t[a]);if(3===r){for(var s=0;s<e&&r>0;s++)if(t[s]>n&&(r--,2*t[s]>=o))return-1;return i}}return-1}},{key:"_findNextWidth",value:function(t,e){for(var n=Number.MAX_VALUE,r=0;r<t.length;r++)t[r]<n&&t[r]>e&&(n=t[r]);return n}},{key:"_patternToChar",value:function(t){for(var e=0;e<Mn.length;e++)if(Mn[e]===t)return String.fromCharCode(Tn[e]);return null}},{key:"_verifyTrailingWhitespace",value:function(t,e,n){var r=je(n);return 3*(e-t-r)>=r}},{key:"decode",value:function(){var t=new Uint16Array([0,0,0,0,0,0,0,0,0]),e=[],n=this._findStart();if(!n)return null;var r,o,i=this._nextSet(this._row,n.end);do{t=this._toCounters(i,t);var a=this._toPattern(t);if(a<0)return null;if(null===(r=this._patternToChar(a)))return null;e.push(r),o=i,i+=je(t),i=this._nextSet(this._row,i)}while("*"!==r);return e.pop(),e.length&&this._verifyTrailingWhitespace(o,i,t)?{code:e.join(""),start:n.start,end:i,startInfo:n,decodedCodes:e,format:this.FORMAT}:null}}])}(cn);function Dn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var xn=/[AEIO]/g,Nn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=Dn(this,e,[].concat(r)),v()(t,"FORMAT","code_32_reader"),t}return an()(e,t),m()(e,[{key:"_decodeCode32",value:function(t){if(/[^0-9BCDFGHJKLMNPQRSTUVWXYZ]/.test(t))return null;for(var e=0,n=0;n<t.length;n++)e=32*e+"0123456789BCDFGHJKLMNPQRSTUVWXYZ".indexOf(t[n]);var r="".concat(e);return r.length<9&&(r=("000000000"+r).slice(-9)),"A"+r}},{key:"_checkChecksum",value:function(t){return!!t}},{key:"decode",value:function(){var t,n,r,o=(t=e,n=this,"function"==typeof(r=An()(rn()(t.prototype),"decode",n))?function(t){return r.apply(n,t)}:r)([]);if(!o)return null;var i=o.code;if(!i)return null;if(i=i.replace(xn,""),!this._checkChecksum(i))return null;var a=this._decodeCode32(i);return a?(o.code=a,o):null}}])}(Rn);function Pn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var Ln=/[IOQ]/g,kn=/[A-Z0-9]{17}/,Bn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=Pn(this,e,[].concat(r)),v()(t,"FORMAT","code_39_vin"),t}return an()(e,t),m()(e,[{key:"_checkChecksum",value:function(t){return!!t}},{key:"decode",value:function(){var t,n,r,o=(t=e,n=this,"function"==typeof(r=An()(rn()(t.prototype),"decode",n))?function(t){return r.apply(n,t)}:r)([]);if(!o)return null;var i=o.code;return i&&(i=i.replace(Ln,"")).match(kn)&&this._checkChecksum(i)?(o.code=i,o):null}}])}(Rn);function jn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var Fn=new Uint16Array(On()("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*").map((function(t){return t.charCodeAt(0)}))),Un=new Uint16Array([276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350]),zn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=jn(this,e,[].concat(r)),v()(t,"FORMAT","code_93"),t}return an()(e,t),m()(e,[{key:"_patternToChar",value:function(t){for(var e=0;e<Un.length;e++)if(Un[e]===t)return String.fromCharCode(Fn[e]);return null}},{key:"_toPattern",value:function(t){for(var e=t.length,n=t.reduce((function(t,e){return t+e}),0),r=0,o=0;o<e;o++){var i=Math.round(9*t[o]/n);if(i<1||i>4)return-1;if(0==(1&o))for(var a=0;a<i;a++)r=r<<1|1;else r<<=i}return r}},{key:"_findStart",value:function(){for(var t=this._nextSet(this._row),e=t,n=new Uint16Array([0,0,0,0,0,0]),r=0,o=!1,i=t;i<this._row.length;i++)if(this._row[i]^(o?1:0))n[r]++;else{if(r===n.length-1){if(350===this._toPattern(n)){var a=Math.floor(Math.max(0,e-(i-e)/4));if(this._matchRange(a,e,0))return{start:e,end:i}}e+=n[0]+n[1];for(var s=0;s<4;s++)n[s]=n[s+2];n[4]=0,n[5]=0,r--}else r++;n[r]=1,o=!o}return null}},{key:"_verifyEnd",value:function(t,e){return!(t===e||!this._row[e])}},{key:"_decodeExtended",value:function(t){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];if(o>="a"&&o<="d"){if(r>e-2)return null;var i=t[++r],a=i.charCodeAt(0),s=void 0;switch(o){case"a":if(!(i>="A"&&i<="Z"))return null;s=String.fromCharCode(a-64);break;case"b":if(i>="A"&&i<="E")s=String.fromCharCode(a-38);else if(i>="F"&&i<="J")s=String.fromCharCode(a-11);else if(i>="K"&&i<="O")s=String.fromCharCode(a+16);else if(i>="P"&&i<="S")s=String.fromCharCode(a+43);else{if(!(i>="T"&&i<="Z"))return null;s=String.fromCharCode(127)}break;case"c":if(i>="A"&&i<="O")s=String.fromCharCode(a-32);else{if("Z"!==i)return null;s=":"}break;case"d":if(!(i>="A"&&i<="Z"))return null;s=String.fromCharCode(a+32);break;default:return console.warn("* code_93_reader _decodeExtended hit default case, this may be an error",s),null}n.push(s)}else n.push(o)}return n}},{key:"_matchCheckChar",value:function(t,e,n){var r=t.slice(0,e),o=r.length,i=r.reduce((function(t,e,r){return t+((-1*r+(o-1))%n+1)*Fn.indexOf(e.charCodeAt(0))}),0);return Fn[i%47]===t[e].charCodeAt(0)}},{key:"_verifyChecksums",value:function(t){return this._matchCheckChar(t,t.length-2,20)&&this._matchCheckChar(t,t.length-1,15)}},{key:"decode",value:function(t,e){if(!(e=this._findStart()))return null;var n,r,o=new Uint16Array([0,0,0,0,0,0]),i=[],a=this._nextSet(this._row,e.end);do{o=this._toCounters(a,o);var s=this._toPattern(o);if(s<0)return null;if(null===(r=this._patternToChar(s)))return null;i.push(r),n=a,a+=je(o),a=this._nextSet(this._row,a)}while("*"!==r);return i.pop(),i.length&&this._verifyEnd(n,a)&&this._verifyChecksums(i)?(i=i.slice(0,i.length-2),null===(i=this._decodeExtended(i))?null:{code:i.join(""),start:e.start,end:a,startInfo:e,decodedCodes:i,format:this.FORMAT}):null}}])}(cn);function Vn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vn(Object(n),!0).forEach((function(e){v()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Wn=[1,1,1],Gn=[1,1,1,1,1],Yn=[1,1,2],Xn=[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2],[1,1,2,3],[1,2,2,2],[2,2,1,2],[1,1,4,1],[2,3,1,1],[1,3,2,1],[4,1,1,1],[2,1,3,1],[3,1,2,1],[2,1,1,3]],Zn=[0,11,13,14,19,25,28,21,22,26],qn=function(t){function e(t,n){var r;return p()(this,e),r=function(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}(this,e,[l()({supplements:[]},t),n]),v()(r,"FORMAT","ean_13"),v()(r,"SINGLE_CODE_ERROR",.7),v()(r,"STOP_PATTERN",[1,1,1]),r}return an()(e,t),m()(e,[{key:"_findPattern",value:function(t,e,n,r){var o=new Array(t.length).fill(0),i={error:Number.MAX_VALUE,start:0,end:0},a=0;e||(e=this._nextSet(this._row));for(var s=!1,u=e;u<this._row.length;u++)if(this._row[u]^(n?1:0))o[a]+=1;else{if(a===o.length-1){var c=this._matchPattern(o,t);if(c<.48&&i.error&&c<i.error)return s=!0,i.error=c,i.start=u-o.reduce((function(t,e){return t+e}),0),i.end=u,i;if(r){for(var l=0;l<o.length-2;l++)o[l]=o[l+2];o[o.length-2]=0,o[o.length-1]=0,a--}}else a++;o[a]=1,n=!n}return s?i:null}},{key:"_decodeCode",value:function(t,e){var n=[0,0,0,0],r=t,o={error:Number.MAX_VALUE,code:-1,start:t,end:t},i=!this._row[r],a=0;e||(e=Xn.length);for(var s=r;s<this._row.length;s++)if(this._row[s]^(i?1:0))n[a]++;else{if(a===n.length-1){for(var u=0;u<e;u++){var c=this._matchPattern(n,Xn[u]);o.end=s,c<o.error&&(o.code=u,o.error=c)}return o.error>.48?null:o}n[++a]=1,i=!i}return null}},{key:"_findStart",value:function(){for(var t=this._nextSet(this._row),e=null;!e;){if(!(e=this._findPattern(Wn,t,!1,!0)))return null;var n=e.start-(e.end-e.start);if(n>=0&&this._matchRange(n,e.start,0))return e;t=e.end,e=null}return null}},{key:"_calculateFirstDigit",value:function(t){for(var e=0;e<Zn.length;e++)if(t===Zn[e])return e;return null}},{key:"_decodePayload",value:function(t,e,n){for(var r=Hn({},t),o=0,i=0;i<6;i++){if(!(r=this._decodeCode(r.end)))return null;r.code>=10?(r.code-=10,o|=1<<5-i):o|=0<<5-i,e.push(r.code),n.push(r)}var a=this._calculateFirstDigit(o);if(null===a)return null;e.unshift(a);var s=this._findPattern(Gn,r.end,!0,!1);if(null===s||!s.end)return null;n.push(s);for(var u=0;u<6;u++){if(!(s=this._decodeCode(s.end,10)))return null;n.push(s),e.push(s.code)}return s}},{key:"_verifyTrailingWhitespace",value:function(t){var e=t.end+(t.end-t.start);return e<this._row.length&&this._matchRange(t.end,e,0)?t:null}},{key:"_findEnd",value:function(t,e){var n=this._findPattern(this.STOP_PATTERN,t,e,!1);return null!==n?this._verifyTrailingWhitespace(n):null}},{key:"_checksum",value:function(t){for(var e=0,n=t.length-2;n>=0;n-=2)e+=t[n];e*=3;for(var r=t.length-1;r>=0;r-=2)e+=t[r];return e%10==0}},{key:"_decodeExtensions",value:function(t){var e=this._nextSet(this._row,t),n=this._findPattern(Yn,e,!1,!1);if(null===n)return null;for(var r=0;r<this.supplements.length;r++)try{var o=this.supplements[r].decode(this._row,n.end);if(null!==o)return{code:o.code,start:e,startInfo:n,end:o.end,decodedCodes:o.decodedCodes,format:this.supplements[r].FORMAT}}catch(t){console.error("* decodeExtensions error in ",this.supplements[r],": ",t)}return null}},{key:"decode",value:function(t,e){var n=new Array,r=new Array,o={},i=this._findStart();if(!i)return null;var a={start:i.start,end:i.end};if(r.push(a),!(a=this._decodePayload(a,n,r)))return null;if(!(a=this._findEnd(a.end,!1)))return null;if(r.push(a),!this._checksum(n))return null;if(this.supplements.length>0){var s=this._decodeExtensions(a.end);if(!s)return null;if(!s.decodedCodes)return null;var u=s.decodedCodes[s.decodedCodes.length-1],c={start:u.start+((u.end-u.start)/2|0),end:u.end};if(!this._verifyTrailingWhitespace(c))return null;o={supplement:s,code:n.join("")+s.code}}return Hn(Hn({code:n.join(""),start:i.start,end:a.end,startInfo:i,decodedCodes:r},o),{},{format:this.FORMAT})}}])}(cn);function Kn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var Qn=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=Kn(this,e,[].concat(r)),v()(t,"FORMAT","ean_2"),t}return an()(e,t),m()(e,[{key:"decode",value:function(t,e){t&&(this._row=t);var n=0,r=e,o=this._row.length,i=[],a=[],s=null;if(void 0===r)return null;for(var u=0;u<2&&r<o;u++){if(!(s=this._decodeCode(r)))return null;a.push(s),i.push(s.code%10),s.code>=10&&(n|=1<<1-u),1!==u&&(r=this._nextSet(this._row,s.end),r=this._nextUnset(this._row,r))}if(2!==i.length||parseInt(i.join(""))%4!==n)return null;var c=this._findStart();return{code:i.join(""),decodedCodes:a,end:s.end,format:this.FORMAT,startInfo:c,start:c.start}}}])}(qn);function Jn(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var $n=[24,20,18,17,12,6,3,10,9,5],tr=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=Jn(this,e,[].concat(r)),v()(t,"FORMAT","ean_5"),t}return an()(e,t),m()(e,[{key:"decode",value:function(t,e){if(void 0===e)return null;t&&(this._row=t);for(var n=0,r=e,o=this._row.length,i=null,a=[],s=[],u=0;u<5&&r<o;u++){if(!(i=this._decodeCode(r)))return null;s.push(i),a.push(i.code%10),i.code>=10&&(n|=1<<4-u),4!==u&&(r=this._nextSet(this._row,i.end),r=this._nextUnset(this._row,r))}if(5!==a.length)return null;if(function(t){for(var e=t.length,n=0,r=e-2;r>=0;r-=2)n+=t[r];n*=3;for(var o=e-1;o>=0;o-=2)n+=t[o];return(n*=3)%10}(a)!==function(t){for(var e=0;e<10;e++)if(t===$n[e])return e;return null}(n))return null;var c=this._findStart();return{code:a.join(""),decodedCodes:s,end:i.end,format:this.FORMAT,startInfo:c,start:c.start}}}])}(qn);function er(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var nr=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=er(this,e,[].concat(r)),v()(t,"FORMAT","ean_8"),t}return an()(e,t),m()(e,[{key:"_decodePayload",value:function(t,e,n){for(var r=t,o=0;o<4;o++){if(!(r=this._decodeCode(r.end,10)))return null;e.push(r.code),n.push(r)}if(null===(r=this._findPattern(Gn,r.end,!0,!1)))return null;n.push(r);for(var i=0;i<4;i++){if(!(r=this._decodeCode(r.end,10)))return null;n.push(r),e.push(r.code)}return r}}])}(qn),rr=function(t){function e(t){var n;return p()(this,e),n=function(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}(this,e,[l()({normalizeBarSpaceWidth:!1},t)]),v()(n,"barSpaceRatio",[1,1]),v()(n,"SINGLE_CODE_ERROR",.78),v()(n,"AVG_CODE_ERROR",.38),v()(n,"START_PATTERN",[1,1,1,1]),v()(n,"STOP_PATTERN",[1,1,3]),v()(n,"CODE_PATTERN",[[1,1,3,3,1],[3,1,1,1,3],[1,3,1,1,3],[3,3,1,1,1],[1,1,3,1,3],[3,1,3,1,1],[1,3,3,1,1],[1,1,1,3,3],[3,1,1,3,1],[1,3,1,3,1]]),v()(n,"MAX_CORRECTION_FACTOR",5),v()(n,"FORMAT","i2of5"),t.normalizeBarSpaceWidth&&(n.SINGLE_CODE_ERROR=.38,n.AVG_CODE_ERROR=.09),n.config=t,en()(n,n)}return an()(e,t),m()(e,[{key:"_matchPattern",value:function(t,n){if(this.config.normalizeBarSpaceWidth){for(var r=[0,0],o=[0,0],i=[0,0],a=this.MAX_CORRECTION_FACTOR,s=1/a,u=0;u<t.length;u++)r[u%2]+=t[u],o[u%2]+=n[u];i[0]=o[0]/r[0],i[1]=o[1]/r[1],i[0]=Math.max(Math.min(i[0],a),s),i[1]=Math.max(Math.min(i[1],a),s),this.barSpaceRatio=i;for(var c=0;c<t.length;c++)t[c]*=this.barSpaceRatio[c%2]}return(l=e,f=this,"function"==typeof(d=An()(rn()(l.prototype),"_matchPattern",f))?function(t){return d.apply(f,t)}:d)([t,n]);var l,f,d}},{key:"_findPattern",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=new Array(t.length).fill(0),i=0,a={error:Number.MAX_VALUE,start:0,end:0},s=this.AVG_CODE_ERROR;n=n||!1,r=r||!1,e||(e=this._nextSet(this._row));for(var u=e;u<this._row.length;u++)if(this._row[u]^(n?1:0))o[i]++;else{if(i===o.length-1){var c=o.reduce((function(t,e){return t+e}),0),l=this._matchPattern(o,t);if(l<s)return a.error=l,a.start=u-c,a.end=u,a;if(!r)return null;for(var f=0;f<o.length-2;f++)o[f]=o[f+2];o[o.length-2]=0,o[o.length-1]=0,i--}else i++;o[i]=1,n=!n}return null}},{key:"_findStart",value:function(){for(var t=0,e=this._nextSet(this._row),n=null,r=1;!n;){if(!(n=this._findPattern(this.START_PATTERN,e,!1,!0)))return null;if(r=Math.floor((n.end-n.start)/4),(t=n.start-10*r)>=0&&this._matchRange(t,n.start,0))return n;e=n.end,n=null}return null}},{key:"_verifyTrailingWhitespace",value:function(t){var e=t.end+(t.end-t.start)/2;return e<this._row.length&&this._matchRange(t.end,e,0)?t:null}},{key:"_findEnd",value:function(){this._row.reverse();var t=this._findPattern(this.STOP_PATTERN);if(this._row.reverse(),null===t)return null;var e=t.start;return t.start=this._row.length-t.end,t.end=this._row.length-e,null!==t?this._verifyTrailingWhitespace(t):null}},{key:"_decodePair",value:function(t){for(var e=[],n=0;n<t.length;n++){var r=this._decodeCode(t[n]);if(!r)return null;e.push(r)}return e}},{key:"_decodeCode",value:function(t){for(var e=this.AVG_CODE_ERROR,n={error:Number.MAX_VALUE,code:-1,start:0,end:0},r=0;r<this.CODE_PATTERN.length;r++){var o=this._matchPattern(t,this.CODE_PATTERN[r]);o<n.error&&(n.code=r,n.error=o)}return n.error<e?n:null}},{key:"_decodePayload",value:function(t,e,n){for(var r=0,o=t.length,i=[[0,0,0,0,0],[0,0,0,0,0]],a=null;r<o;){for(var s=0;s<5;s++)i[0][s]=t[r]*this.barSpaceRatio[0],i[1][s]=t[r+1]*this.barSpaceRatio[1],r+=2;if(!(a=this._decodePair(i)))return null;for(var u=0;u<a.length;u++)e.push(a[u].code+""),n.push(a[u])}return a}},{key:"_verifyCounterLength",value:function(t){return t.length%10==0}},{key:"decode",value:function(t,e){var n=new Array,r=new Array,o=this._findStart();if(!o)return null;r.push(o);var i=this._findEnd();if(!i)return null;var a=this._fillCounters(o.end,i.start,!1);return this._verifyCounterLength(a)&&this._decodePayload(a,n,r)?n.length%2!=0||n.length<6?null:(r.push(i),{code:n.join(""),start:o.start,end:i.end,startInfo:o,decodedCodes:r,format:this.FORMAT}):null}}])}(cn);function or(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ir(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ir(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ar(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var sr=[2,2.5,3],ur=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p()(this,e),t=ar(this,e,[n]),v()(t,"FORMAT","pharmacode"),v()(t,"SINGLE_CODE_ERROR",.7),v()(t,"AVG_CODE_ERROR",.48),t}return an()(e,t),m()(e,[{key:"_findStart",value:function(){for(var t=0;t<this._row.length;){var e=this._nextSet(this._row,t);if(e>=this._row.length)return null;for(var n=e;n<this._row.length&&this._row[n];)n++;var r=n-e;if(r<5)t=n+1;else{var o=e-Math.max(2*r,20);if(o<0)t=n+1;else if(this._matchRange(o,e,0)){var i=Math.max(10*r,50),a=this._nextSet(this._row,n);if(a>=this._row.length)t=n+1;else{if(!(a-n>i))return{start:e,end:n};t=n+1}}else t=n+1}}return null}},{key:"_smoothBarWidths",value:function(t){if(t.length<=2)return t;for(var e=t.slice(),n=1;n<e.length-1;n++){var r=e[n-1],o=e[n],i=[r,o,e[n+1]].sort((function(t,e){return t-e}))[1],a=Math.abs(o-i);a>0&&a<=3&&(e[n]=i)}return e}},{key:"_extractBarsAndSpaces",value:function(t){for(var e=[],n=[],r=t,o=0,i=!1;r<this._row.length&&this._row[r];)o++,r++;if(0===o)return null;for(e.push(o),o=0;r<this._row.length&&!this._row[r];)o++,r++;if(0===o||r>=this._row.length)return null;n.push(o);for(var a=6*(e[0]<n[0]?e[0]:.8*n[0]),s=2.5*n[0];r<this._row.length&&e.length<16;){for(o=0;r<this._row.length&&this._row[r];)o++,r++;if(0===o)break;e.push(o),o=0;for(var u=r;r<this._row.length&&!this._row[r];)o++,r++;if(0===o)break;if(o>=a){i=!0,r=u;break}if(e.length>=2&&o>=s){i=!0,r=u;break}if(r>=this._row.length){i=!0,r=u;break}n.push(o),n.length>=2&&(s=n.reduce((function(t,e){return t+e}),0)/n.length*2)}return i?e.length<2||e.length>16||n.length!==e.length-1?null:this._validateSpaces(n)&&this._validateBarSizeCount(e)?{bars:this._smoothBarWidths(e),spaces:n,end:r}:null:null}},{key:"_validateBarSizeCount",value:function(t){if(0===t.length)return!1;var e,n=[],r=or(t);try{for(r.s();!(e=r.n()).done;){var o,i=e.value,a=!1,s=or(n);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=u.reduce((function(t,e){return t+e}),0)/u.length;if(Math.abs(i-c)<=.35*c){u.push(i),a=!0;break}}}catch(t){s.e(t)}finally{s.f()}a||n.push([i])}}catch(t){r.e(t)}finally{r.f()}return!(n.length>2)}},{key:"_validateSpaces",value:function(t){if(0===t.length)return!0;var e=t.reduce((function(t,e){return t+e}),0)/t.length;if(0===e)return!1;var n=t.reduce((function(t,n){return t+Math.pow(n-e,2)}),0)/t.length;return Math.sqrt(n)/e<=.35}},{key:"_validateBarRatios",value:function(t,e){var n=t.reduce((function(t,e){return t+e}),0)/t.length,r=t.reduce((function(t,e){return t+Math.abs(e-n)}),0)/t.length;if((0===n?0:r/n)<=.1){var o=e.length>0?e.reduce((function(t,e){return t+e}),0)/e.length:0;return o>0&&o/n<.7?{narrowWidth:n/2.5,wideRatio:2.5}:{narrowWidth:n,wideRatio:2}}var i=Array.from(new Set(t.slice().sort((function(t,e){return t-e}))));if(i.length<2)return{narrowWidth:t.reduce((function(t,e){return t+e}),0)/t.length,wideRatio:2};for(var a=[],s=0;s<i.length-1;s++){var u,c=(i[s]+i[s+1])/2,l=[],f=[],d=or(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;h<c?l.push(h):f.push(h)}}catch(t){d.e(t)}finally{d.f()}if(0!==l.length&&0!==f.length){for(var p=l.reduce((function(t,e){return t+e}),0)/l.length,g=f.reduce((function(t,e){return t+e}),0)/f.length,m=g/p,y=sr[0],v=Math.abs(m-y),w=0,_=sr;w<_.length;w++){var b=_[w],E=Math.abs(m-b);E<v&&(v=E,y=b)}a.push({threshold:c,narrowBars:l,wideBars:f,avgN:p,avgW:g,ratio:m,ratioDiff:v,matchedRatio:y})}}a.sort((function(t,e){return t.ratioDiff-e.ratioDiff}));for(var C=0,A=a;C<A.length;C++){var S=A[C],O=.05*S.matchedRatio;if(!(Math.abs(S.ratio-S.matchedRatio)>O)){var I,T=.15*S.avgN,M=.15*S.avgW,R=!0,D=or(S.narrowBars);try{for(D.s();!(I=D.n()).done;){var x=I.value;if(Math.abs(x-S.avgN)>T){R=!1;break}}}catch(t){D.e(t)}finally{D.f()}if(R){var N,P=or(S.wideBars);try{for(P.s();!(N=P.n()).done;){var L=N.value;if(Math.abs(L-S.avgW)>M){R=!1;break}}}catch(t){P.e(t)}finally{P.f()}if(R)return{narrowWidth:S.avgN,wideRatio:S.matchedRatio}}}}return null}},{key:"_validatePeriodicity",value:function(t,e){if(t.length>0){var n=t.reduce((function(t,e){return t+e}),0)/t.length,r=t.reduce((function(t,e){return t+Math.pow(e-n,2)}),0)/t.length,o=Math.sqrt(r);if((0!==n?o/n:0)>.65)return!1}if(e.length>0){var i=e.reduce((function(t,e){return t+e}),0)/e.length,a=e.reduce((function(t,e){return t+Math.pow(e-i,2)}),0)/e.length,s=Math.sqrt(a);if((0!==i?s/i:0)>.55)return!1}return!0}},{key:"_validateQuietZones",value:function(t,e,n){var r=1*e;if(t.start>=2&&t.start<r)return!1;var o=this._row.length-n;return o<6||!(o<r)}},{key:"_decodeBars",value:function(t,e){for(var n=1.6*(null!=e?e:Math.min.apply(Math,On()(t))),r=0,o=t.slice().reverse(),i=0;i<o.length;i++)r+=o[i]>n?Math.pow(2,i+1):Math.pow(2,i);for(var a="",s=o.length-1;s>=0;s--)a+=o[s]>n?"W":"N";return{value:r,pattern:a}}},{key:"_verifyTrailingWhitespace",value:function(t,e){var n=Math.min(t+2*e,this._row.length);return this._matchRange(t,n,0)}},{key:"_validatePatternConsistency",value:function(t,e){for(var n=t.start,r=0,o=0,i=0,a=[-2,-1,1,2];i<a.length;i++){var s=n+a[i];if(!(s<0||s>=this._row.length)){o++;var u=this._extractBarsAndSpaces(s);if(u&&u.bars.length===e.length){for(var c=!0,l=0;l<e.length;l++)if(Math.abs(u.bars[l]-e[l])/Math.max(e[l],1)>.25){c=!1;break}c&&r++}}}return o>0&&r>=.5*o}},{key:"decode",value:function(t,e){var n=this._findStart();if(!n)return null;if(n.start>.5*this._row.length)return null;var r=this._extractBarsAndSpaces(n.start);if(!r)return null;var o=r.bars,i=r.spaces,a=r.end;if(o.reduce((function(t,e){return t+e}),0)+i.reduce((function(t,e){return t+e}),0)<20)return null;if(this._row.length-a<0)return null;if(!this._validateSpaces(i))return null;if(!this._validatePeriodicity(o,i))return null;if(!this._validatePatternConsistency(n,o))return null;var s=this._validateBarRatios(o,i);if(!s)return null;if(!this._validateQuietZones(n,s.narrowWidth,a))return null;var u=this._decodeBars(o,s.narrowWidth);if(!u)return null;var c=u.value;if(c<3||c>131070)return null;var l=o.reduce((function(t,e){return t+e}),0)/o.length;this._verifyTrailingWhitespace(a,l);var f=o.map((function(t,e){return{code:t>1.6*Math.min.apply(Math,On()(o))?1:0,start:0,end:0,error:0}}));return{code:c.toString(),start:n.start,end:a,startInfo:n,decodedCodes:f,pattern:u.pattern,format:this.FORMAT}}}])}(cn);v()(ur,"adjacentLineValidationMatches",1);var cr=ur;function lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fr(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}function dr(t,e,n,r){var o=An()(rn()(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}var hr=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=fr(this,e,[].concat(r)),v()(t,"CODE_FREQUENCY",[[56,52,50,49,44,38,35,42,41,37],[7,11,13,14,19,25,28,21,22,26]]),v()(t,"STOP_PATTERN",[1/6*7,1/6*7,1/6*7,1/6*7,1/6*7,1/6*7]),v()(t,"FORMAT","upc_e"),t}return an()(e,t),m()(e,[{key:"_decodePayload",value:function(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(n),!0).forEach((function(e){v()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),o=0,i=0;i<6;i++){if(!(r=this._decodeCode(r.end)))return null;r.code>=10&&(r.code=r.code-10,o|=1<<5-i),e.push(r.code),n.push(r)}return this._determineParity(o,e)?r:null}},{key:"_determineParity",value:function(t,e){for(var n=0;n<this.CODE_FREQUENCY.length;n++)for(var r=0;r<this.CODE_FREQUENCY[n].length;r++)if(t===this.CODE_FREQUENCY[n][r])return e.unshift(n),e.push(r),!0;return!1}},{key:"_convertToUPCA",value:function(t){var e=[t[0]],n=t[t.length-2];return(e=n<=2?e.concat(t.slice(1,3)).concat([n,0,0,0,0]).concat(t.slice(3,6)):3===n?e.concat(t.slice(1,4)).concat([0,0,0,0,0]).concat(t.slice(4,6)):4===n?e.concat(t.slice(1,5)).concat([0,0,0,0,0,t[5]]):e.concat(t.slice(1,6)).concat([0,0,0,0,n])).push(t[t.length-1]),e}},{key:"_checksum",value:function(t){return dr(e,"_checksum",this,3)([this._convertToUPCA(t)])}},{key:"_findEnd",value:function(t,n){return dr(e,"_findEnd",this,3)([t,!0])}},{key:"_verifyTrailingWhitespace",value:function(t){var e=t.end+(t.end-t.start)/2;return e<this._row.length&&this._matchRange(t.end,e,0)?t:null}}])}(qn);function pr(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}var gr=function(t){function e(){var t;p()(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=pr(this,e,[].concat(r)),v()(t,"FORMAT","upc_a"),t}return an()(e,t),m()(e,[{key:"decode",value:function(t,e){var n=qn.prototype.decode.call(this);return n&&n.code&&13===n.code.length&&"0"===n.code.charAt(0)?(n.code=n.code.substring(1),n):null}}])}(qn),mr={},yr=1,vr=-1;mr.getBarcodeLine=function(t,e,n){var r,o,i,a,s,u=0|e.x,c=0|e.y,l=0|n.x,f=0|n.y,d=Math.abs(f-c)>Math.abs(l-u),h=[],p=t.data,g=t.size.x,m=255,y=0;function v(t,e){s=p[e*g+t],m=s<m?s:m,y=s>y?s:y,h.push(s)}d&&(i=u,u=c,c=i,i=l,l=f,f=i),u>l&&(i=u,u=l,l=i,i=c,c=f,f=i);var w=l-u,_=Math.abs(f-c);r=w/2|0,o=c;var b=c<f?1:-1;for(a=u;a<l;a++)d?v(o,a):v(a,o),(r-=_)<0&&(o+=b,r+=w);return{line:h,min:m,max:y}},mr.toBinaryLine=function(t){var e,n,r,o,i,a,s=t.min,u=t.max,c=t.line,l=s+(u-s)/2,f=[],d=(u-s)/12,h=-d;for(r=c[0]>l?yr:vr,f.push({pos:0,val:c[0]}),i=0;i<c.length-2;i++)r!==(o=(e=c[i+1]-c[i])+(n=c[i+2]-c[i+1])<h&&c[i+1]<1.5*l?vr:e+n>d&&c[i+1]>.5*l?yr:r)&&(f.push({pos:i,val:c[i]}),r=o);for(f.push({pos:c.length,val:c[c.length-1]}),a=f[0].pos;a<f[1].pos;a++)c[a]=c[a]>l?0:1;for(i=1;i<f.length-1;i++)for(d=f[i+1].val>f[i].val?f[i].val+(f[i+1].val-f[i].val)/3*2|0:f[i+1].val+(f[i].val-f[i+1].val)/3|0,a=f[i].pos;a<f[i+1].pos;a++)c[a]=c[a]>d?0:1;return{line:c,threshold:d}},mr.debug={printFrequency:function(t,e){var n,r=e.getContext("2d");for(e.width=t.length,e.height=256,r.beginPath(),r.strokeStyle="blue",n=0;n<t.length;n++)r.moveTo(n,255),r.lineTo(n,255-t[n]);r.stroke(),r.closePath()},printPattern:function(t,e){var n,r=e.getContext("2d");for(e.width=t.length,r.fillColor="black",n=0;n<t.length;n++)1===t[n]&&r.fillRect(n,0,1,100)}};var wr=mr;function _r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return br(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function br(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Er={code_128_reader:En,ean_reader:qn,ean_5_reader:tr,ean_2_reader:Qn,ean_8_reader:nr,code_39_reader:Rn,code_39_vin_reader:Bn,codabar_reader:_n,upc_reader:gr,upc_e_reader:hr,i2of5_reader:rr,"2of5_reader":gn,code_93_reader:zn,code_32_reader:Nn,pharmacode_reader:cr},Cr={registerReader:function(t,e){Er[t]=e},create:function(t,e){var n=[];function r(){t.readers.forEach((function(t){var e,r={},o=[];"object"===u()(t)?(e=t.format,r=t.config):"string"==typeof t&&(e=t),r.supplements&&(o=r.supplements.map((function(t){return new Er[t]})));try{var i=new Er[e](r,o);n.push(i)}catch(t){throw console.error("* Error constructing reader ",e,t),t}}))}function o(t){var r,o=null,i=wr.getBarcodeLine(e,t[0],t[1]);wr.toBinaryLine(i);var a=-1;for(r=0;r<n.length&&null===o;r++)"function"==typeof n[r].setImageWrapper&&n[r].setImageWrapper(e),null!==(o=n[r].decodePattern(i.line))&&(a=r);return null===o||a>=0&&n[a]instanceof cr&&!function(t,e,n,r){var o=Math.round(t[1].y),i=e.start,a=n.constructor,s=a&&a.adjacentLineValidationMatches||0;if(s<=0)return!0;for(var u=0,c=!1,l=0,f=[1,2,3];l<f.length;l++){var d=f[l];if(c)break;for(var h=0,p=[-1,1];h<p.length;h++){var g=p[h];if(c)break;var m=o+d*g;if(!(m<0||m>=r.size.y)){var y={x:t[0].x,y:m},v={x:t[1].x,y:m};try{var w=wr.getBarcodeLine(r,y,v);wr.toBinaryLine(w),n._row=w.line;var _=n._findStart();if(null!==_&&_.start===i&&++u>=s){c=!0;break}}catch(t){}}}}return u>=s}(t,o,n[a],e)?null:{codeResult:o,barcodeLine:i}}function i(t){return a.apply(this,arguments)}function a(){return(a=Ke()(Je.a.mark((function t(e){var r,o,i,a,s;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=null,o=_r(n),t.prev=1,o.s();case 2:if((i=o.n()).done){t.next=5;break}if(!(a=i.value).decodeImage){t.next=4;break}return t.next=3,a.decodeImage(e);case 3:if(!(r=t.sent)){t.next=4;break}return t.abrupt("continue",5);case 4:t.next=2;break;case 5:t.next=7;break;case 6:t.prev=6,s=t.catch(1),o.e(s);case 7:return t.prev=7,o.f(),t.finish(7);case 8:return t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,null,[[1,6,7,8]])})))).apply(this,arguments)}function s(t){var n,r,i=function(t){return Math.sqrt(Math.pow(Math.abs(t[1].y-t[0].y),2)+Math.pow(Math.abs(t[1].x-t[0].x),2))}(n=function(t){return[{x:(t[1][0]-t[0][0])/2+t[0][0],y:(t[1][1]-t[0][1])/2+t[0][1]},{x:(t[3][0]-t[2][0])/2+t[2][0],y:(t[3][1]-t[2][1])/2+t[2][1]}]}(t)),a=Math.atan2(n[1].y-n[0].y,n[1].x-n[0].x);return null===(n=function(t,n,r){function o(e){var r=e*Math.sin(n),o=e*Math.cos(n);t[0].y-=r,t[0].x-=o,t[1].y+=r,t[1].x+=o}for(o(r);r>1&&(!e.inImageWithBorder(t[0])||!e.inImageWithBorder(t[1]));)o(-(r-=Math.ceil(r/2)));return t}(n,a,Math.floor(.1*i)))?null:(null===(r=o(n))&&(r=function(t,e,n){var r,i,a,s=Math.sqrt(Math.pow(t[1][0]-t[0][0],2)+Math.pow(t[1][1]-t[0][1],2)),u=null,c=Math.sin(n),l=Math.cos(n);for(r=1;r<16&&null===u;r++)a={y:(i=s/16*r*(r%2==0?-1:1))*c,x:i*l},e[0].y+=a.x,e[0].x-=a.y,e[1].y+=a.x,e[1].x-=a.y,u=o(e);return u}(t,n,a)),null===r?null:{codeResult:r.codeResult,line:n,angle:a,pattern:r.barcodeLine.line,threshold:r.barcodeLine.threshold})}return r(),{decodeFromBoundingBox:function(t){return s(t)},decodeFromBoundingBoxes:function(e){var n,r,o=[],i=t.multiple;for(n=0;n<e.length;n++){var a=e[n];if((r=s(a)||{}).box=a,i)o.push(r);else if(r.codeResult)return r}return{barcodes:o}},decodeFromImage:function(t){return Ke()(Je.a.mark((function e(){var n;return Je.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i(t);case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})))()},registerReader:function(t,e){if(Er[t])throw new Error("cannot register existing reader",t);Er[t]=e},setReaders:function(e){t.readers=e,n.length=0,r()}}}},Ar=function(){var t={};function e(e){return t[e]||(t[e]={subscribers:[]}),t[e]}function n(t,e){t.async?setTimeout((function(){t.callback(e)}),4):t.callback(e)}function r(t,n,r){var o;if("function"==typeof n)o={callback:n,async:r};else if(!(o=n).callback)throw new Error("Callback was not specified on options");e(t).subscribers.push(o)}return{subscribe:function(t,e,n){return r(t,e,n)},publish:function(t,r){var o=e(t),i=o.subscribers;i.filter((function(t){return!!t.once})).forEach((function(t){n(t,r)})),o.subscribers=i.filter((function(t){return!t.once})),o.subscribers.forEach((function(t){n(t,r)}))},once:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r(t,{callback:e,async:n,once:!0})},unsubscribe:function(n,r){if(n){var o=e(n);o.subscribers=o&&r?o.subscribers.filter((function(t){return t.callback!==r})):[]}else t={}}}}(),Sr=n(81),Or=n.n(Sr),Ir=n(82),Tr=n.n(Ir),Mr=n(83),Rr=function(t){function e(t,n){var r;return p()(this,e),r=function(t,e,n){return e=rn()(e),en()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],rn()(t).constructor):e.apply(t,n))}(this,e,[t]),v()(r,"code",void 0),r.code=n,Object.setPrototypeOf(r,e.prototype),r}return an()(e,t),m()(e,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,code:this.code}}}])}(n.n(Mr)()(Error)),Dr="This may mean that the user has declined camera access, or the browser does not support media APIs. If you are running in iOS, you must use Safari.";function xr(){try{return navigator.mediaDevices.enumerateDevices()}catch(e){var t=new Rr("enumerateDevices is not defined. ".concat(Dr),-1);return Promise.reject(t)}}function Nr(t){try{return navigator.mediaDevices.getUserMedia(t)}catch(t){var e=new Rr("getUserMedia is not defined. ".concat(Dr),-1);return Promise.reject(e)}}var Pr,Lr=["deviceId"];function kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kr(Object(n),!0).forEach((function(e){v()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jr(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Fr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ur(t){return new Promise((function(e,n){var r=10;!function o(){r>0?t.videoWidth>10&&t.videoHeight>10?e():window.setTimeout(o,500):n(new Rr("Unable to play video stream. Is webcam working?",-1)),r--}()}))}function zr(t,e){return Vr.apply(this,arguments)}function Vr(){return(Vr=Ke()(Je.a.mark((function t(e,n){var r;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Nr(n);case 1:if(r=t.sent,Pr=r,!e){t.next=2;break}return e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e.srcObject=r,e.addEventListener("loadedmetadata",(function(){e.play().catch((function(t){console.warn("* Error while trying to play video stream:",t)}))})),t.abrupt("return",Ur(e));case 2:return t.abrupt("return",Promise.resolve());case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Hr(t){var e=Tr()(t,["facing","minAspectRatio","maxAspectRatio"]);return void 0!==t.minAspectRatio&&t.minAspectRatio>0&&(e.aspectRatio=t.minAspectRatio),void 0!==t.facing&&(e.facingMode=t.facing),e}function Wr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Hr(t);return e&&e.deviceId&&e.facingMode&&delete e.facingMode,Promise.resolve({audio:!1,video:e})}function Gr(){return(Gr=Ke()(Je.a.mark((function t(e){var n,r,o,i,a,s,u,c,l,f;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,xr();case 1:if(n=t.sent,r=n.filter((function(t){return"videoinput"===t.kind})),e){t.next=2;break}return t.abrupt("return",r);case 2:o=[],(i=Hr(e)).deviceId,a=Or()(i,Lr),s=jr(r),t.prev=3,s.s();case 4:if((u=s.n()).done){t.next=9;break}return c=u.value,t.prev=5,l={audio:!1,video:Br(Br({},a),{},{deviceId:{exact:c.deviceId}})},t.next=6,Nr(l);case 6:t.sent.getTracks().forEach((function(t){return t.stop()})),o.push(c),t.next=8;break;case 7:t.prev=7,t.catch(5);case 8:t.next=4;break;case 9:t.next=11;break;case 10:t.prev=10,f=t.catch(3),s.e(f);case 11:return t.prev=11,s.f(),t.finish(11);case 12:return t.abrupt("return",o);case 13:case"end":return t.stop()}}),t,null,[[3,10,11,12],[5,7]])})))).apply(this,arguments)}function Yr(){if(!Pr)return null;var t=Pr.getVideoTracks();return t&&null!=t&&t.length?t[0]:null}var Xr={requestedVideoElement:null,request:function(t,e){return Ke()(Je.a.mark((function n(){var r;return Je.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Xr.requestedVideoElement=t,n.next=1,Wr(e);case 1:return r=n.sent,n.abrupt("return",zr(t,r));case 2:case"end":return n.stop()}}),n)})))()},release:function(){var t=Pr&&Pr.getVideoTracks();return null!==Xr.requestedVideoElement&&Xr.requestedVideoElement.pause(),new Promise((function(e){setTimeout((function(){t&&t.length&&t.forEach((function(t){return t.stop()})),Pr=null,Xr.requestedVideoElement=null,e()}),0)}))},enumerateVideoDevices:function(t){return Gr.apply(this,arguments)},getActiveStream:function(){var t;return null!==(t=Pr)&&void 0!==t?t:null},getActiveStreamLabel:function(){var t=Yr();return t?t.label:""},getActiveTrack:Yr,disableTorch:function(){return Ke()(Je.a.mark((function t(){var e,n;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=Yr())){t.next=4;break}return t.prev=1,t.next=2,e.applyConstraints({advanced:[{torch:!1}]});case 2:t.next=4;break;case 3:throw t.prev=3,(n=t.catch(1))instanceof OverconstrainedError&&console.warn("quagga2/CameraAccess: Torch not supported on this device"),n;case 4:case"end":return t.stop()}}),t,null,[[1,3]])})))()},enableTorch:function(){return Ke()(Je.a.mark((function t(){var e,n;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=Yr())){t.next=4;break}return t.prev=1,t.next=2,e.applyConstraints({advanced:[{torch:!0}]});case 2:t.next=4;break;case 3:throw t.prev=3,(n=t.catch(1))instanceof OverconstrainedError&&console.warn("quagga2/CameraAccess: Torch not supported on this device"),n;case 4:case"end":return t.stop()}}),t,null,[[1,3]])})))()}},Zr=Xr,qr={create:function(t){var e,n=document.createElement("canvas"),r=n.getContext("2d",{willReadFrequently:!!t.willReadFrequently}),o=[],i=null!==(e=t.capacity)&&void 0!==e?e:20,a=!0===t.capture;function s(e){return!!i&&e&&!function(t,e){return e&&e.some((function(e){return Object.keys(e).every((function(n){return e[n]===t[n]}))}))}(e,t.blacklist)&&function(t,e){return"function"!=typeof e||e(t)}(e,t.filter)}return{addResult:function(t,e,u){var c={};s(u)&&(i--,c.codeResult=u,a&&(n.width=e.x,n.height=e.y,$e.drawImage(t,e,r),c.frame=n.toDataURL()),o.push(c))},getResults:function(){return o}}}},Kr={inputStream:{type:"LiveStream",constraints:{width:640,height:480,facingMode:"environment"},area:{top:"0%",right:"0%",left:"0%",bottom:"0%"},singleChannel:!1},locate:!0,canvas:{createOverlay:!0},decoder:{readers:["code_128_reader"]},locator:{halfSample:!0,patchSize:"medium"}},Qr=Math.PI/180,Jr={create:function(t,e){var n,r={},o=t.getConfig(),i=ze(t.getRealWidth(),t.getRealHeight()),a=t.getCanvasSize(),s=ze(t.getWidth(),t.getHeight()),u=t.getTopRight(),c=u.x,l=u.y,f=null,d=null,h=o.willReadFrequently;function p(t,e,n,r,o){var i=Math.floor(r),a=Math.floor(o),s=Math.min(i+1,e-1),u=Math.min(a+1,n-1),c=r-i,l=o-a;return(t[a*e+i]*(1-c)+t[a*e+s]*c)*(1-l)+(t[u*e+i]*(1-c)+t[u*e+s]*c)*l}return(n=e||document.createElement("canvas")).width=a.x,n.height=a.y,f=n.getContext("2d",{willReadFrequently:!!h}),d=new Uint8Array(s.x*s.y),r.attachData=function(t){d=t},r.getData=function(){return d},r.grab=function(){var e=o.halfSample,r=t.getFrame(),u=r,h=0;if(u){if(function(t,e,n){t.width!==e.x&&(t.width=e.x),t.height!==e.y&&(t.height=e.y)}(n,a,o.debug),"ImageStream"===o.type&&(u=r.img,r.tags&&r.tags.orientation))switch(r.tags.orientation){case 6:h=90*Qr;break;case 8:h=-90*Qr}if(0!==h?(f.translate(a.x/2,a.y/2),f.rotate(h),f.drawImage(u,-a.y/2,-a.x/2,a.y,a.x),f.rotate(-h),f.translate(-a.x/2,-a.y/2)):f.drawImage(u,0,0,a.x,a.y),e)!function(t,e,n){for(var r,o=0,i=e.x,a=Math.floor(t.length/4),s=e.x/2,u=0,c=e.x;i<a;){for(r=0;r<s;r++)n[u]=(.299*t[4*o+0]+.587*t[4*o+1]+.114*t[4*o+2]+(.299*t[4*(o+1)+0]+.587*t[4*(o+1)+1]+.114*t[4*(o+1)+2])+(.299*t[4*i+0]+.587*t[4*i+1]+.114*t[4*i+2])+(.299*t[4*(i+1)+0]+.587*t[4*(i+1)+1]+.114*t[4*(i+1)+2]))/4,u++,o+=2,i+=2;o+=c,i+=c}}(f.getImageData(c,l,s.x,s.y).data,s,d);else{var g=document.createElement("canvas");g.width=i.x,g.height=i.y;var m=g.getContext("2d");0!==h?(m.translate(i.x/2,i.y/2),m.rotate(h),m.drawImage(u,-i.y/2,-i.x/2,i.y,i.x)):m.drawImage(u,0,0,i.x,i.y);var y=m.getImageData(0,0,i.x,i.y).data,v=new Uint8Array(i.x*i.y);!function(t,e,n){var r=t.length/4|0;if(n&&!0===n.singleChannel)for(var o=0;o<r;o++){var i=t[4*o+3];e[o]=0===i?255:t[4*o+0]}else for(var a=0;a<r;a++){var s=t[4*a+3];e[a]=0===s?255:.299*t[4*a+0]+.587*t[4*a+1]+.114*t[4*a+2]}}(y,v,o);for(var w=new Uint8Array(a.x*a.y),_=i.x/a.x,b=i.y/a.y,E=0;E<a.y;E++)for(var C=0;C<a.x;C++){var A=C*_,S=E*b;w[E*a.x+C]=0|p(v,i.x,i.y,A,S)}for(var O=0;O<s.y;O++)for(var I=0;I<s.x;I++){var T=(O+l)*a.x+(I+c);d[O*s.x+I]=w[T]}}return!0}return!1},r.getSize=function(){return s},r}},$r=Jr,to={274:"orientation"},eo=Object.keys(to).map((function(t){return to[t]}));function no(t){return new Promise((function(e){var n=new FileReader;n.onload=function(t){return e(t.target.result)},n.readAsArrayBuffer(t)}))}function ro(t){return new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="blob",r.onreadystatechange=function(){r.readyState!==XMLHttpRequest.DONE||200!==r.status&&0!==r.status||e(this.response)},r.onerror=n,r.send()}))}function oo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo,n=new DataView(t),r=t.byteLength,o=e.reduce((function(t,e){var n=Object.keys(to).filter((function(t){return to[t]===e}))[0];return n&&(t[n]=e),t}),{}),i=2;if(255!==n.getUint8(0)||216!==n.getUint8(1))return!1;for(;i<r;){if(255!==n.getUint8(i))return!1;if(225===n.getUint8(i+1))return io(n,i+4,o);i+=2+n.getUint16(i+2)}return!1}function io(t,e,n){if("Exif"!==function(t,e,n){for(var r="",o=e;o<e+4;o++)r+=String.fromCharCode(t.getUint8(o));return r}(t,e))return!1;var r,o=e+6;if(18761===t.getUint16(o))r=!1;else{if(19789!==t.getUint16(o))return!1;r=!0}if(42!==t.getUint16(o+2,!r))return!1;var i=t.getUint32(o+4,!r);return!(i<8)&&function(t,e,n,r,o){for(var i=t.getUint16(n,!o),a={},s=0;s<i;s++){var u=n+12*s+2,c=r[t.getUint16(u,!o)];c&&(a[c]=ao(t,u,0,0,o))}return a}(t,0,o+i,n,r)}function ao(t,e,n,r,o){var i=t.getUint16(e+2,!o),a=t.getUint32(e+4,!o);switch(i){case 3:if(1===a)return t.getUint16(e+8,!o)}return null}function so(t,e){return"".concat(t,"image-").concat(e.toString().padStart(3,"0"),".jpg")}var uo={};function co(t,e){t.onload=function(){e.loaded(this)},t.onerror=function(){e.loaded(this)}}uo.load=function(t,e,n,r,o,i){var a,s,u,c=new Array(r),l=new Array(c.length);if(!1===o)c[0]=t;else for(a=0;a<c.length;a++)u=n+a,c[a]=so(t,u);for(l.notLoaded=[],l.addImage=function(t){l.notLoaded.push(t)},l.loaded=function(n){for(var r=l.notLoaded,i=0;i<r.length;i++)if(r[i]===n){r.splice(i,1);for(var a=0;a<c.length;a++){var s=encodeURI(c[a].substr(c[a].lastIndexOf("/")));if(-1!==n.src.lastIndexOf(s)){l[a]={img:n};break}}break}0===r.length&&(!1===o?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return/^blob:/i.test(t)?ro(t).then(no).then((function(t){return oo(t,e)})):Promise.resolve(null)}(t,["orientation"]).then((function(t){l[0].tags=t,e(l)})).catch((function(t){e(l)})):e(l))},a=0;a<c.length;a++)s=new Image,l.addImage(s),co(s,l),s.src=c[a]};var lo,fo,ho,po,go,mo,yo,vo,wo,_o,bo,Eo,Co=uo,Ao={createVideoStream:function(t){console.warn("**** InputStreamBrowser createVideoStream");var e,n,r=null,o=["canrecord","ended"],i={},a={x:0,y:0,type:"Point"},s={x:0,y:0,type:"XYSize"},u={getRealWidth:function(){return t.videoWidth},getRealHeight:function(){return t.videoHeight},getWidth:function(){return e},getHeight:function(){return n},setWidth:function(t){e=t},setHeight:function(t){n=t},setInputStream:function(t){r=t,this.setAttribute("src",void 0!==t.src?t.src:"")},ended:function(){return t.ended},getConfig:function(){return r},setAttribute:function(e,n){t&&t.setAttribute(e,n)},pause:function(){t.pause()},play:function(){t.play()},setCurrentTime:function(t){var e;"LiveStream"!==(null===(e=r)||void 0===e?void 0:e.type)&&this.setAttribute("currentTime",t.toString())},addEventListener:function(e,n,r){-1!==o.indexOf(e)?(i[e]||(i[e]=[]),i[e].push(n)):t.addEventListener(e,n,r)},clearEventHandlers:function(){o.forEach((function(e){var n=i[e];n&&n.length>0&&n.forEach((function(n){t.removeEventListener(e,n)}))}))},trigger:function(o,a){var c,l,f,d,h,p=i[o];if("canrecord"===o&&(d=t.videoWidth,h=t.videoHeight,e=null!==(l=r)&&void 0!==l&&l.size?d/h>1?r.size:Math.floor(d/h*r.size):d,n=null!==(f=r)&&void 0!==f&&f.size?d/h>1?Math.floor(h/d*r.size):r.size:h,s.x=e,s.y=n),p&&p.length>0)for(c=0;c<p.length;c++)p[c].apply(u,a)},setTopRight:function(t){a.x=t.x,a.y=t.y},getTopRight:function(){return a},setCanvasSize:function(t){s.x=t.x,s.y=t.y},getCanvasSize:function(){return s},getFrame:function(){return t}};return u},createLiveStream:function(t){console.warn("**** InputStreamBrowser createLiveStream"),t&&t.setAttribute("autoplay","true");var e=Ao.createVideoStream(t);return e.ended=function(){return!1},e},createImageStream:function(){var t,e,n=null,r=0,o=0,i=0,a=!0,s=!1,u=null,c=0,l=null,f=!1,d=["canrecord","ended"],h={},p={x:0,y:0,type:"Point"},g={x:0,y:0,type:"XYSize"};function m(t,e){var n,r=h[t];if(r&&r.length>0)for(n=0;n<r.length;n++)r[n].apply(y,e)}var y={trigger:m,getWidth:function(){return t},getHeight:function(){return e},setWidth:function(e){t=e},setHeight:function(t){e=t},getRealWidth:function(){return r},getRealHeight:function(){return o},setInputStream:function(a){var f;n=a,!1===a.sequence?(l=a.src,c=1):(l=a.src,c=a.length),s=!1,Co.load(l,(function(a){var c,l;if(u=a,a[0].tags&&a[0].tags.orientation)switch(a[0].tags.orientation){case 6:case 8:r=a[0].img.height,o=a[0].img.width;break;default:r=a[0].img.width,o=a[0].img.height}else r=a[0].img.width,o=a[0].img.height;t=null!==(c=n)&&void 0!==c&&c.size?r/o>1?n.size:Math.floor(r/o*n.size):r,e=null!==(l=n)&&void 0!==l&&l.size?r/o>1?Math.floor(o/r*n.size):n.size:o,g.x=t,g.y=e,s=!0,i=0,setTimeout((function(){m("canrecord",[])}),0)}),1,c,null===(f=n)||void 0===f?void 0:f.sequence,n)},ended:function(){return f},setAttribute:function(){},getConfig:function(){return n},pause:function(){a=!0},play:function(){a=!1},setCurrentTime:function(t){i=t},addEventListener:function(t,e){-1!==d.indexOf(t)&&(h[t]||(h[t]=[]),h[t].push(e))},clearEventHandlers:function(){Object.keys(h).forEach((function(t){return delete h[t]}))},setTopRight:function(t){p.x=t.x,p.y=t.y},getTopRight:function(){return p},setCanvasSize:function(t){g.x=t.x,g.y=t.y},getCanvasSize:function(){return g},getFrame:function(){var t,e;return s?(a||(t=null===(e=u)||void 0===e?void 0:e[i],i<c-1?i++:setTimeout((function(){f=!0,m("ended",[])}),0)),t):null}};return y}},So=Ao,Oo={searchDirections:[[0,1],[1,1],[1,0],[1,-1],[0,-1],[-1,-1],[-1,0],[-1,1]],create:function(t,e){var n,r=t.data,o=e.data,i=this.searchDirections,a=t.size.x;function s(t,e,s,u){var c,l,f;for(c=0;c<i.length;c++){if(l=t.cy+i[t.dir][0],f=t.cx+i[t.dir][1],r[n=l*a+f]===e&&(0===o[n]||o[n]===s))return o[n]=s,t.cy=l,t.cx=f,!0;0===o[n]&&(o[n]=u),t.dir=(t.dir+1)%8}return!1}function u(t,e,n){return{dir:n,x:t,y:e,next:null,prev:null}}return{trace:function(t,e,n,r){return s(t,e,n,r)},contourTracing:function(e,n,r,o,i){return function(e,n,r,o,i){var a,c,l,f=null,d={cx:n,cy:e,dir:0};if(s(d,o,r,i)){a=f=u(n,e,d.dir),l=d.dir,(c=u(d.cx,d.cy,0)).prev=a,a.next=c,c.next=null,a=c;var h=t.size.x*t.size.y,p=0;do{d.dir=(d.dir+6)%8,s(d,o,r,i),l!==d.dir?(a.dir=d.dir,(c=u(d.cx,d.cy,0)).prev=a,a.next=c,c.next=null,a=c):(a.dir=l,a.x=d.cx,a.y=d.cy),l=d.dir}while((d.cx!==n||d.cy!==e)&&++p<h);f.prev=a.prev,a.prev.next=f}return f}(e,n,r,o,i)}}}},Io={createContour2D:function(){return{dir:null,index:null,firstVertex:null,insideContours:null,nextpeer:null,prevpeer:null}},CONTOUR_DIR:{CW_DIR:0,CCW_DIR:1,UNKNOWN_DIR:2},DIR:{OUTSIDE_EDGE:-32767,INSIDE_EDGE:-32766},create:function(t,e){var n=t.data,r=e.data,o=t.size.x,i=t.size.y,a=Oo.create(t,e);return{rasterize:function(t){var e,s,u,c,l,f,d,h,p,g,m,y,v=[],w=0;for(y=0;y<400;y++)v[y]=0;for(v[0]=n[0],p=null,f=1;f<i-1;f++)for(c=0,s=v[0],l=1;l<o-1;l++)if(0===r[m=f*o+l])if((e=n[m])!==s){if(0===c)v[u=w+1]=e,s=e,null!==(d=a.contourTracing(f,l,u,e,Io.DIR.OUTSIDE_EDGE))&&(w++,c=u,(h=Io.createContour2D()).dir=Io.CONTOUR_DIR.CW_DIR,h.index=c,h.firstVertex=d,h.nextpeer=p,h.insideContours=null,null!==p&&(p.prevpeer=h),p=h);else if(null!==(d=a.contourTracing(f,l,Io.DIR.INSIDE_EDGE,e,c))){for((h=Io.createContour2D()).firstVertex=d,h.insideContours=null,h.dir=0===t?Io.CONTOUR_DIR.CCW_DIR:Io.CONTOUR_DIR.CW_DIR,h.index=t,g=p;null!==g&&g.index!==c;)g=g.nextpeer;null!==g&&(h.nextpeer=g.insideContours,null!==g.insideContours&&(g.insideContours.prevpeer=h),g.insideContours=h)}}else r[m]=c;else r[m]===Io.DIR.OUTSIDE_EDGE||r[m]===Io.DIR.INSIDE_EDGE?(c=0,s=r[m]===Io.DIR.INSIDE_EDGE?n[m]:v[0]):s=v[c=r[m]];for(g=p;null!==g;)g.index=t,g=g.nextpeer;return{cc:p,count:w}},debug:{drawContour:function(t,e){var n,r,o,i=t.getContext("2d"),a=e;for(i.strokeStyle="red",i.fillStyle="red",i.lineWidth=1,n=null!==a?a.insideContours:null;null!==a;){switch(null!==n?(r=n,n=n.nextpeer):(r=a,n=null!==(a=a.nextpeer)?a.insideContours:null),r.dir){case Io.CONTOUR_DIR.CW_DIR:i.strokeStyle="red";break;case Io.CONTOUR_DIR.CCW_DIR:i.strokeStyle="blue";break;case Io.CONTOUR_DIR.UNKNOWN_DIR:i.strokeStyle="green"}o=r.firstVertex,i.beginPath(),i.moveTo(o.x,o.y);do{o=o.next,i.lineTo(o.x,o.y)}while(o!==r.firstVertex);i.stroke()}}}}}},To=Io,Mo={ctx:{binary:null},dom:{binary:null}},Ro={x:0,y:0};function Do(t){var e,n,i,a,s,u,c,l=wo.size.x,f=wo.size.y,d=-wo.size.x,h=-wo.size.y;for(e=0,n=0;n<t.length;n++)e+=(a=t[n]).rad;for((e=(180*(e/=t.length)/Math.PI+90)%180-90)<0&&(e+=180),e=(180-e)*Math.PI/180,s=r.copy(r.create(),[Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e)]),n=0;n<t.length;n++)for(a=t[n],i=0;i<4;i++)o.transformMat2(a.box[i],a.box[i],s);for(n=0;n<t.length;n++)for(a=t[n],i=0;i<4;i++)a.box[i][0]<l&&(l=a.box[i][0]),a.box[i][0]>d&&(d=a.box[i][0]),a.box[i][1]<f&&(f=a.box[i][1]),a.box[i][1]>h&&(h=a.box[i][1]);for(u=[[l,f],[d,f],[d,h],[l,h]],c=lo.halfSample?2:1,s=r.invert(s,s),i=0;i<4;i++)o.transformMat2(u[i],u[i],s);for(i=0;i<4;i++)o.scale(u[i],u[i],c);return u}function xo(t,e){wo.subImageAsCopy(po,ze(t,e)),Eo.skeletonize()}function No(t,e,n,r){var i,a,s,u,c=[],l=[],f=Math.ceil(_o.x/3);if(t.length>=2){for(i=0;i<t.length;i++)t[i].m00>f&&c.push(t[i]);if(c.length>=2){for(s=function(t){var e=function(t,e,n){var r,o,i,a,s=0,u=0,c=[];for(r=0;r<1;r++)c[r]={score:0,item:null};for(r=0;r<t.length;r++)if((o=n.apply(this,[t[r]]))>u)for((i=c[s]).score=o,i.item=t[r],u=Number.MAX_VALUE,a=0;a<1;a++)c[a].score<u&&(u=c[a].score,s=a);return c}(function(t,e,n){var r,o,i,a,s=[];function u(t){var e=!1;for(o=0;o<s.length;o++)(i=s[o]).fits(t)&&(i.add(t),e=!0);return e}for(n||(n="rad"),r=0;r<t.length;r++)u(a=Ue(t[r],r,n))||s.push(Fe(a,.9));return s}(t),0,(function(t){return t.getPoints().length})),n=[],r=[];if(1===e.length){n=e[0].item.getPoints();for(var o=0;o<n.length;o++)r.push(n[o].point)}return r}(c),a=0,i=0;i<s.length;i++){var d,h;a+=null!==(d=null===(h=s[i])||void 0===h?void 0:h.rad)&&void 0!==d?d:0}s.length>1&&s.length>=c.length/4*3&&s.length>t.length/4&&(a/=s.length,u={index:e[1]*Ro.x+e[0],pos:{x:n,y:r},box:[o.clone([n,r]),o.clone([n+po.size.x,r]),o.clone([n+po.size.x,r+po.size.y]),o.clone([n,r+po.size.y])],moments:s,rad:a,vec:o.clone([Math.cos(a),Math.sin(a)])},l.push(u))}}return l}var Po=function(){lo.halfSample&&function(t,e){for(var n=t.data,r=t.size.x,o=e.data,i=0,a=r,s=n.length,u=r/2,c=0;a<s;){for(var l=0;l<u;l++)o[c]=Math.floor((n[i]+n[i+1]+n[a]+n[a+1])/4),c++,i+=2,a+=2;i+=r,a+=r}}(bo,fo),function(t,e){var n=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,r=8-n;function o(t,n){for(var r=0,o=t;o<=n;o++)r+=e[o];return r}function i(t,n){for(var r=0,o=t;o<=n;o++)r+=o*e[o];return r}function a(){var r,a,s,u,c=[0],l=(1<<n)-1;e=Ve(t,n);for(var f=1;f<l;f++)0===(s=(r=o(0,f))*(a=o(f+1,l)))&&(s=1),u=i(0,f)*a-i(f+1,l)*r,c[f]=u*u/s;return Be(c)}var s=a();return s<<r}(t);!function(t,e,n){n||(n=t);for(var r=t.data,o=r.length,i=n.data;o--;)i[o]=r[o]<e?1:0}(t,n,e)}(fo,wo),wo.zeroBorder();var t=function(){var t,e,n,r,o,i,a=[];for(t=0;t<Ro.x;t++)for(e=0;e<Ro.y;e++)xo(n=po.size.x*t,r=po.size.y*e),ho.zeroBorder(),ke(go.data,0),i=To.create(ho,go).rasterize(0),o=go.moments(i.count),a=a.concat(No(o,[t,e],n,r));return a}();if(t.length<Ro.x*Ro.y*.05)return null;var e=function(t){var e,n,r=0,i=0;function a(){var t;for(t=0;t<yo.data.length;t++)if(0===yo.data[t]&&1===mo.data[t])return t;return yo.data.length}function s(t){var e,n,i,a,u,c=t%yo.size.x,l=t/yo.size.x|0;if(t<yo.data.length)for(i=vo.data[t],yo.data[t]=r,u=0;u<Oo.searchDirections.length;u++)n=l+Oo.searchDirections[u][0],e=c+Oo.searchDirections[u][1],a=n*yo.size.x+e,0!==mo.data[a]?0===yo.data[a]&&Math.abs(o.dot(vo.data[a].vec,i.vec))>.95&&s(a):yo.data[a]=Number.MAX_VALUE}for(ke(mo.data,0),ke(yo.data,0),ke(vo.data,null),e=0;e<t.length;e++)n=t[e],vo.data[n.index]=n,mo.data[n.index]=1;for(mo.zeroBorder();(i=a())<yo.data.length;)r++,s(i);return r}(t);if(e<1)return null;var n=function(t){var e,n,r=[];for(e=0;e<t;e++)r.push(0);for(n=yo.data.length;n--;)yo.data[n]>0&&r[yo.data[n]-1]++;return(r=r.map((function(t,e){return{val:t,label:e+1}}))).sort((function(t,e){return e.val-t.val})),r.filter((function(t){return t.val>=5}))}(e);return 0===n.length?null:function(t,e){var n,r,o,i,a=[],s=[];for(n=0;n<t.length;n++){for(r=yo.data.length,a.length=0;r--;)yo.data[r]===t[n].label&&(o=vo.data[r],a.push(o));(i=Do(a))&&s.push(i)}return s}(n)},Lo=function(t,e){var n,r,o=t.getWidth(),i=t.getHeight(),a=e.halfSample?.5:1;t.getConfig().area&&(r=function(t,e,n){var r={width:t,height:e},o=Object.keys(n).reduce((function(t,e){if(!Ye[e])return t;var o=function(t){return{value:parseFloat(t),unit:(t.indexOf("%"),t.length,"%")}}(n[e]),i=Ye[e](o,r);return t[e]=i,t}),{});return{sx:o.left,sy:o.top,sw:o.right-o.left,sh:o.bottom-o.top}}(o,i,t.getConfig().area),t.setTopRight({x:r.sx,y:r.sy}),t.setCanvasSize({x:o,y:i}),o=r.sw,i=r.sh);var s={x:Math.floor(o*a),y:Math.floor(i*a)};if(n=Ge(e.patchSize,s),t.setWidth(Math.max(Math.floor(Math.floor(s.x/n.x)*(1/a)*n.x),n.x)),t.setHeight(Math.max(Math.floor(Math.floor(s.y/n.y)*(1/a)*n.y),n.y)),t.getWidth()%n.x==0&&t.getHeight()%n.y==0)return!0;throw new Error("Image dimensions do not comply with the current settings: Width (".concat(o," )and height (").concat(i,") must a multiple of ").concat(n.x))},ko=m()((function t(){p()(this,t),v()(this,"config",void 0),v()(this,"inputStream",void 0),v()(this,"framegrabber",void 0),v()(this,"inputImageWrapper",void 0),v()(this,"stopped",!1),v()(this,"initAborted",!1),v()(this,"boxSize",void 0),v()(this,"resultCollector",void 0),v()(this,"decoder",void 0),v()(this,"workerPool",[]),v()(this,"onUIThread",!0),v()(this,"canvasContainer",new jo)})),Bo=m()((function t(){p()(this,t),v()(this,"image",void 0),v()(this,"overlay",void 0)})),jo=m()((function t(){p()(this,t),v()(this,"ctx",void 0),v()(this,"dom",void 0),this.ctx=new Bo,this.dom=new Bo}));function Fo(t){if("undefined"==typeof document)return null;if(t instanceof HTMLElement&&t.nodeName&&1===t.nodeType)return t;var e="string"==typeof t?t:"#interactive.viewport";return document.querySelector(e)}function Uo(t,e,n){var r=function(t,e){var n=document.querySelector(t);return n||((n=document.createElement("canvas")).className=e),n}(t,e),o=r.getContext("2d",{willReadFrequently:n.willReadFrequently});return{canvas:r,context:o}}function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(n),!0).forEach((function(e){v()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ho=[];function Wo(t){return Vo(Vo({},t),{},{inputStream:Vo(Vo({},t.inputStream),{},{target:null})})}function Go(t){if(t){var e=t().default;if(!e)return void self.postMessage({event:"error",message:"Quagga could not be created"})}var n;function r(t){self.postMessage({event:"processed",imageData:n.data,result:t},[n.data.buffer])}function o(){self.postMessage({event:"initialized",imageData:n.data},[n.data.buffer])}self.onmessage=function(t){if("init"===t.data.cmd){var i=t.data.config;i.numOfWorkers=0,n=new e.ImageWrapper({x:t.data.size.x,y:t.data.size.y},new Uint8Array(t.data.imageData)),e.init(i,o,n),e.onProcessed(r)}else"process"===t.data.cmd?(n.data=new Uint8Array(t.data.imageData),e.start()):"setReaders"===t.data.cmd?e.setReaders(t.data.readers):"registerReader"===t.data.cmd&&e.registerReader(t.data.name,t.data.reader)}}function Yo(t,e,n){var r,o,i=("undefined"!=typeof __factorySource__&&(o=__factorySource__),r=new Blob(["("+Go.toString()+")("+o+");"],{type:"text/javascript"}),window.URL.createObjectURL(r)),a={worker:new Worker(i),imageData:new Uint8Array(e.getWidth()*e.getHeight()),busy:!0};a.worker.onmessage=function(t){"initialized"===t.data.event?(URL.revokeObjectURL(i),a.busy=!1,a.imageData=new Uint8Array(t.data.imageData),n(a)):"processed"===t.data.event?(a.imageData=new Uint8Array(t.data.imageData),a.busy=!1,"undefined"!=typeof publishResult&&publishResult(t.data.result,a.imageData)):t.data.event},a.worker.postMessage({cmd:"init",size:{x:e.getWidth(),y:e.getHeight()},imageData:a.imageData,config:Wo(t)},[a.imageData.buffer])}function Xo(t,e,n,r){var o=t-Ho.length;if(0===o&&r)r();else if(o<0)Ho.slice(o).forEach((function(t){t.worker.terminate()})),Ho=Ho.slice(0,o),r&&r();else{var i=function(e){Ho.push(e),Ho.length>=t&&r&&r()};if(e)for(var a=0;a<o;a++)Yo(e,n,i)}}function Zo(t,e,n){for(var r=t.length;r--;)t[r][0]+=e,t[r][1]+=n}function qo(t,e,n){t[0].x+=e,t[0].y+=n,t[1].x+=e,t[1].y+=n}var Ko=function(){return m()((function t(){var e=this;p()(this,t),v()(this,"context",new ko),v()(this,"canRecord",(function(t){var n;e.context.initAborted?t(new Error("Initialization was aborted")):e.context.config?e.context.inputStream?(Lo(e.context.inputStream,null===(n=e.context.config)||void 0===n?void 0:n.locator),e.initCanvas(),e.context.framegrabber=$r.create(e.context.inputStream,e.context.canvasContainer.dom.image),void 0===e.context.config.numOfWorkers&&(e.context.config.numOfWorkers=0),Xo(e.context.config.numOfWorkers,e.context.config,e.context.inputStream,(function(){var n;0===(null===(n=e.context.config)||void 0===n?void 0:n.numOfWorkers)&&e.initializeData(),e.ready(t)}))):t(new Error("Input stream not initialized")):t(new Error("Configuration not initialized"))})),v()(this,"update",(function(){if(e.context.onUIThread){var t,n=(o=e.context.framegrabber,Ho.length?!!(i=Ho.filter((function(t){return!t.busy}))[0])&&(o.attachData(i.imageData),o.grab()&&(i.busy=!0,i.worker.postMessage({cmd:"process",imageData:i.imageData},[i.imageData.buffer])),!0):null);n||(e.context.framegrabber.attachData(null===(t=e.context.inputImageWrapper)||void 0===t?void 0:t.data),e.context.framegrabber.grab()&&(n||e.locateAndDecode()))}else{var r;e.context.framegrabber.attachData(null===(r=e.context.inputImageWrapper)||void 0===r?void 0:r.data),e.context.framegrabber.grab(),e.locateAndDecode()}var o,i})),v()(this,"_cachedStyleValues",void 0),v()(this,"_resolvedStyle",void 0)}),[{key:"initBuffers",value:function(t){if(this.context.config){var e=function(t,e,n){var r=e||new Ze({x:t.getWidth(),y:t.getHeight(),type:"XYSize"}),i=[o.clone([0,0]),o.clone([0,r.size.y]),o.clone([r.size.x,r.size.y]),o.clone([r.size.x,0])];return function(t,e){lo=e,bo=t,function(){fo=lo.halfSample?new Ze({x:bo.size.x/2|0,y:bo.size.y/2|0}):bo,_o=Ge(lo.patchSize,fo.size),Ro.x=fo.size.x/_o.x|0,Ro.y=fo.size.y/_o.y|0,wo=new Ze(fo.size,void 0,Uint8Array,!1),go=new Ze(_o,void 0,Array,!0);var t=_o.x*_o.y*4,e=Math.max(65536,Math.pow(2,Math.ceil(Math.log2(t)))),n=new ArrayBuffer(e);po=new Ze(_o,new Uint8Array(n,0,_o.x*_o.y)),ho=new Ze(_o,new Uint8Array(n,_o.x*_o.y*3,_o.x*_o.y),void 0,!0),Eo=function(t,e,n){"use asm";var r=new t.Uint8Array(n),o=e.size|0,i=t.Math.imul;function a(t,e){t=t|0;e=e|0;var n=0;var i=0;var a=0;var s=0;var u=0;var c=0;var l=0;var f=0;for(n=1;(n|0)<(o-1|0);n=n+1|0){f=f+o|0;for(i=1;(i|0)<(o-1|0);i=i+1|0){s=f-o|0;u=f+o|0;c=i-1|0;l=i+1|0;a=(r[t+s+c|0]|0)+(r[t+s+l|0]|0)+(r[t+f+i|0]|0)+(r[t+u+c|0]|0)+(r[t+u+l|0]|0)|0;if((a|0)==(5|0)){r[e+f+i|0]=1}else{r[e+f+i|0]=0}}}}function s(t,e,n){t=t|0;e=e|0;n=n|0;var a=0;a=i(o,o)|0;while((a|0)>0){a=a-1|0;r[n+a|0]=(r[t+a|0]|0)-(r[e+a|0]|0)|0}}function u(t,e,n){t=t|0;e=e|0;n=n|0;var a=0;a=i(o,o)|0;while((a|0)>0){a=a-1|0;r[n+a|0]=r[t+a|0]|0|(r[e+a|0]|0)|0}}function c(t){t=t|0;var e=0;var n=0;n=i(o,o)|0;while((n|0)>0){n=n-1|0;e=(e|0)+(r[t+n|0]|0)|0}return e|0}function l(t,e){t=t|0;e=e|0;var n=0;n=i(o,o)|0;while((n|0)>0){n=n-1|0;r[t+n|0]=e}}function f(t,e){t=t|0;e=e|0;var n=0;var i=0;var a=0;var s=0;var u=0;var c=0;var l=0;var f=0;for(n=1;(n|0)<(o-1|0);n=n+1|0){f=f+o|0;for(i=1;(i|0)<(o-1|0);i=i+1|0){s=f-o|0;u=f+o|0;c=i-1|0;l=i+1|0;a=(r[t+s+c|0]|0)+(r[t+s+l|0]|0)+(r[t+f+i|0]|0)+(r[t+u+c|0]|0)+(r[t+u+l|0]|0)|0;if((a|0)>(0|0)){r[e+f+i|0]=1}else{r[e+f+i|0]=0}}}}function d(t,e){t=t|0;e=e|0;var n=0;n=i(o,o)|0;while((n|0)>0){n=n-1|0;r[e+n|0]=r[t+n|0]|0}}function h(t){t=t|0;var e=0;var n=0;for(e=0;(e|0)<(o-1|0);e=e+1|0){r[t+e|0]=0;r[t+n|0]=0;n=n+o-1|0;r[t+n|0]=0;n=n+1|0}for(e=0;(e|0)<(o|0);e=e+1|0){r[t+n|0]=0;n=n+1|0}}function p(){var t=0;var e=0;var n=0;var r=0;var p=0;var g=0;e=i(o,o)|0;n=e+e|0;r=n+e|0;l(r,0);h(t);do{a(t,e);f(e,n);s(t,n,n);u(r,n,r);d(e,t);p=c(t)|0;g=(p|0)==0|0}while(!g)}return{skeletonize:p}}({Math:Math,Uint8Array:Uint8Array},{size:_o.x},n),vo=new Ze({x:fo.size.x/po.size.x|0,y:fo.size.y/po.size.y|0},void 0,Array,!0),mo=new Ze(vo.size,void 0,void 0,!0),yo=new Ze(vo.size,void 0,Int32Array,!0)}(),function(){if(!lo.useWorker&&"undefined"!=typeof document){Mo.dom.binary=document.createElement("canvas"),Mo.dom.binary.className="binaryBuffer";var t=!!lo.willReadFrequently;Mo.ctx.binary=Mo.dom.binary.getContext("2d",{willReadFrequently:t}),Mo.dom.binary.width=wo.size.x,Mo.dom.binary.height=wo.size.y}}()}(r,n),{inputImageWrapper:r,boxSize:i}}(this.context.inputStream,t,this.context.config.locator),n=e.inputImageWrapper,r=e.boxSize;this.context.inputImageWrapper=n,this.context.boxSize=r}}},{key:"initializeData",value:function(t){this.context.config&&(this.initBuffers(t),this.context.decoder=Cr.create(this.context.config.decoder,this.context.inputImageWrapper))}},{key:"getViewPort",value:function(){return this.context.config&&this.context.config.inputStream?Fo(this.context.config.inputStream.target):null}},{key:"ready",value:function(t){this.context.inputStream.play(),t()}},{key:"initCanvas",value:function(){var t=function(t){var e,n,r,o,i,a,s,u,c,l,f=Fo(null==t||null===(e=t.config)||void 0===e||null===(n=e.inputStream)||void 0===n?void 0:n.target),d=null==t||null===(r=t.config)||void 0===r||null===(o=r.inputStream)||void 0===o?void 0:o.type;if(!d)return null;var h=!1!==(null==t||null===(i=t.config)||void 0===i||null===(a=i.canvas)||void 0===a?void 0:a.createOverlay),p=function(t,e){var n=e.willReadFrequently,r=e.createOverlay,o=e.debug;if("undefined"!=typeof document){var i=Uo("canvas.imgBuffer","imgBuffer",{willReadFrequently:n,debug:o});i.canvas.width=t.x,i.canvas.height=t.y;var a={canvas:null,context:null};if(r){var s=Uo("canvas.drawingBuffer","drawingBuffer",{willReadFrequently:n,debug:o});s.canvas.width=t.x,s.canvas.height=t.y,a=s}return{dom:{image:i.canvas,overlay:a.canvas},ctx:{image:i.context,overlay:a.context}}}return null}(t.inputStream.getCanvasSize(),{willReadFrequently:!(null==t||null===(s=t.config)||void 0===s||null===(u=s.inputStream)||void 0===u||!u.willReadFrequently),createOverlay:h,debug:null==t||null===(c=t.config)||void 0===c||null===(l=c.locator)||void 0===l?void 0:l.debug});if(!p)return{dom:{image:null,overlay:null},ctx:{image:null,overlay:null}};var g=p.dom;return"undefined"!=typeof document&&f&&("ImageStream"!==d||f.contains(g.image)||f.appendChild(g.image),g.overlay&&!f.contains(g.overlay)&&f.appendChild(g.overlay)),p}(this.context);if(t){var e=t.ctx,n=t.dom;this.context.canvasContainer.dom.image=n.image,this.context.canvasContainer.dom.overlay=n.overlay,this.context.canvasContainer.ctx.image=e.image,this.context.canvasContainer.ctx.overlay=e.overlay}}},{key:"initInputStream",value:function(t){if(this.context.config&&this.context.config.inputStream){var e=this.context.config.inputStream,n=e.type,r=e.constraints,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"LiveStream",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;switch(t){case"VideoStream":var r=document.createElement("video");return{video:r,inputStream:n.createVideoStream(r)};case"ImageStream":return{inputStream:n.createImageStream()};case"LiveStream":var o=null;return e&&((o=e.querySelector("video"))||(o=document.createElement("video"),e.appendChild(o))),{video:o,inputStream:n.createLiveStream(o)};default:return console.error("* setupInputStream invalid type ".concat(t)),{video:null,inputStream:null}}}(n,this.getViewPort(),So),i=o.video,a=o.inputStream;"LiveStream"===n&&i&&Zr.request(i,r).then((function(){return a.trigger("canrecord")})).catch((function(e){return t(e)})),a&&(a.setAttribute("preload","auto"),a.setInputStream(this.context.config.inputStream),a.addEventListener("canrecord",this.canRecord.bind(void 0,t))),this.context.inputStream=a}}},{key:"getBoundingBoxes",value:function(){var t;return null!==(t=this.context.config)&&void 0!==t&&t.locate?Po():[[o.clone(this.context.boxSize[0]),o.clone(this.context.boxSize[1]),o.clone(this.context.boxSize[2]),o.clone(this.context.boxSize[3])]]}},{key:"transformResult",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=this.context.inputStream.getTopRight(),o=r.x,i=r.y;if((0!==o||0!==i)&&(t.barcodes&&t.barcodes.forEach((function(t){return e.transformResult(t,n)})),t.line&&2===t.line.length&&qo(t.line,o,i),t.box&&!n.has(t.box)&&(Zo(t.box,o,i),n.add(t.box)),t.boxes&&t.boxes.length>0))for(var a=0;a<t.boxes.length;a++)n.has(t.boxes[a])||(Zo(t.boxes[a],o,i),n.add(t.boxes[a]))}},{key:"addResult",value:function(t,e){var n=this;e&&this.context.resultCollector&&(t.barcodes?t.barcodes.filter((function(t){return t.codeResult})).forEach((function(t){return n.addResult(t,e)})):t.codeResult&&this.context.resultCollector.addResult(e,this.context.inputStream.getCanvasSize(),t.codeResult))}},{key:"hasCodeResult",value:function(t){return!(!t||!(t.barcodes?t.barcodes.some((function(t){return t.codeResult})):t.codeResult))}},{key:"publishResult",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=n;n&&this.context.onUIThread&&(this.transformResult(n),this.addResult(n,r),o=(null==n||null===(e=n.barcodes)||void 0===e?void 0:e.length)>0?n.barcodes:n),Ar.publish("processed",o),this.hasCodeResult(n)&&Ar.publish("detected",o);var i=this.context.config;i&&!1===i.locate&&null!==(t=i.inputStream)&&void 0!==t&&t.area&&this.drawScannerArea()}},{key:"locateAndDecode",value:(e=Ke()(Je.a.mark((function t(){var e,n,r,o,i,a;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this.getBoundingBoxes())){t.next=3;break}return t.next=1,this.context.decoder.decodeFromBoundingBoxes(e);case 1:if(a=t.sent){t.next=2;break}a={};case 2:(r=a).boxes=e,this.publishResult(r,null===(n=this.context.inputImageWrapper)||void 0===n?void 0:n.data),t.next=5;break;case 3:return t.next=4,this.context.decoder.decodeFromImage(this.context.inputImageWrapper);case 4:(o=t.sent)?this.publishResult(o,null===(i=this.context.inputImageWrapper)||void 0===i?void 0:i.data):this.publishResult();case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"startContinuousUpdate",value:function(){var t,e=this,n=null,r=1e3/((null===(t=this.context.config)||void 0===t?void 0:t.frequency)||60);this.context.stopped=!1;var o=this.context,i=function(t){n=n||t,o.stopped||(t>=n&&(n+=r,e.update()),window.requestAnimationFrame(i))};i(performance.now())}},{key:"start",value:function(){var t,e;this.context.onUIThread&&"LiveStream"===(null===(t=this.context.config)||void 0===t||null===(e=t.inputStream)||void 0===e?void 0:e.type)?this.startContinuousUpdate():this.update()}},{key:"stop",value:(t=Ke()(Je.a.mark((function t(){var e,n;return Je.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.context.stopped=!0,this.context.framegrabber||(this.context.initAborted=!0),Xo(0),null===(e=this.context.config)||void 0===e||!e.inputStream||"LiveStream"!==this.context.config.inputStream.type){t.next=2;break}return t.next=1,Zr.release();case 1:null===(n=this.context.inputStream)||void 0===n||n.clearEventHandlers();case 2:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"setReaders",value:function(t){this.context.decoder&&this.context.decoder.setReaders(t),function(t){Ho.forEach((function(e){return e.worker.postMessage({cmd:"setReaders",readers:t})}))}(t)}},{key:"registerReader",value:function(t,e){Cr.registerReader(t,e),this.context.decoder&&this.context.decoder.registerReader(t,e),function(t,e){Ho.forEach((function(n){return n.worker.postMessage({cmd:"registerReader",name:t,reader:e})}))}(t,e)}},{key:"drawScannerArea",value:function(){var t,e,n,r=null===(t=this.context.config)||void 0===t||null===(e=t.inputStream)||void 0===e?void 0:e.area;if(r){var o=this.context.canvasContainer.ctx.overlay;if(o&&!1===(null===(n=this.context.config)||void 0===n?void 0:n.locate)&&(void 0!==r.borderColor&&""!==r.borderColor||void 0!==r.borderWidth&&r.borderWidth>0||void 0!==r.backgroundColor&&""!==r.backgroundColor)&&this.context.boxSize){var i=this.context.inputStream.getTopRight(),a=i.x,s=i.y,u=this.context.boxSize,c=u[0],l=u[1],f=u[3],d=c[0]+a,h=c[1]+s,p=f[0]-c[0],g=l[1]-c[1];if(!this._cachedStyleValues||this._cachedStyleValues.borderColor!==r.borderColor||this._cachedStyleValues.borderWidth!==r.borderWidth||this._cachedStyleValues.backgroundColor!==r.backgroundColor){var m,y;this._cachedStyleValues={borderColor:r.borderColor,borderWidth:r.borderWidth,backgroundColor:r.backgroundColor};var v=void 0!==r.borderColor||void 0!==r.borderWidth,w=null!==(m=r.borderColor)&&void 0!==m?m:"rgba(0, 255, 0, 0.5)",_=v?null!==(y=r.borderWidth)&&void 0!==y?y:2:0,b=r.backgroundColor;this._resolvedStyle={color:w,width:_,bg:b}}var E=this._resolvedStyle;
2E.bg&&(o.fillStyle=E.bg,o.fillRect(d,h,p,g)),E.width>0&&(o.strokeStyle=E.color,o.lineWidth=E.width,o.strokeRect(d,h,p,g))}}}}]);var t,e}(),Qo=new Ko,Jo=Qo.context,$o={init:function(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo;return e||(r=new Promise((function(t,n){e=function(e){e?n(e):t()}}))),o.context.initAborted=!1,o.context.config=l()({},Kr,t),o.context.config.numOfWorkers>0&&(o.context.config.numOfWorkers=0),n?(o.context.onUIThread=!1,o.initializeData(n),e&&e()):o.initInputStream(e),r},start:function(t,e){var n;if(t)return e||(n=new Promise((function(t,n){e=function(e){e?n(e):t()}}))),this.init(t,(function(t){if(t)e(t);else try{Qo.start(),e()}catch(t){e(t)}})),n;if(!Jo.framegrabber)throw new Error("start() was called before init() completed. Call init() first, or call start(config) to combine init and start.");return Qo.start()},stop:function(){return Qo.stop()},pause:function(){Jo.stopped=!0},onDetected:function(t){t&&("function"==typeof t||"object"===u()(t)&&t.callback)&&Ar.subscribe("detected",t)},offDetected:function(t){Ar.unsubscribe("detected",t)},onProcessed:function(t){t&&("function"==typeof t||"object"===u()(t)&&t.callback)&&Ar.subscribe("processed",t)},offProcessed:function(t){Ar.unsubscribe("processed",t)},setReaders:function(t){t&&Qo.setReaders(t)},registerReader:function(t,e){t&&e&&Qo.registerReader(t,e)},registerResultCollector:function(t){t&&"function"==typeof t.addResult&&(Jo.resultCollector=t)},get canvas(){return Jo.canvasContainer},drawScannerArea:function(){return Qo.drawScannerArea()},decodeSingle:function(t,e){var n=this,r=new Ko;return(t=l()({inputStream:{type:"ImageStream",sequence:!1,size:800,src:t.src},numOfWorkers:1,locator:{halfSample:!1}},t)).numOfWorkers>0&&(t.numOfWorkers=0),t.numOfWorkers>0&&("undefined"==typeof Blob||"undefined"==typeof Worker)&&(console.warn("* no Worker and/or Blob support - forcing numOfWorkers to 0"),t.numOfWorkers=0),new Promise((function(o,i){try{n.init(t,(function(){Jo.canvasContainer=r.context.canvasContainer,Ar.once("processed",(function(t){r.stop(),e&&e.call(null,t),o(t)}),!0),r.start()}),null,r)}catch(t){i(t)}}))},get default(){return $o},Readers:a,CameraAccess:Zr,ImageDebug:$e,ImageWrapper:Ze,ResultCollector:qr};e.default=$o}]).default},7723:function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var r=n(1),o=n.n(r),i=n(953),a=n(735),s=n.n(a),u=n(790),c=n.n(u),l=n(936),f=n.n(l),d=n(727),h=n(1170),p=n(1022),g=n(775),m=n(1168),y=n(1166),v=n(730),w=n(723),_=n(862),b=n(788),E=["type","layout","connectNulls","ref"],C=["key"];function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t){return function(t){if(Array.isArray(t))return R(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,B(r.key),r)}}function N(t,e,n){return e=P(e),function(t,e){if(e&&("object"===A(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],P(t).constructor):e.apply(t,n))}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
2function L(t,e){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function k(t,e,n){return(e=B(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}var j=function(t){function e(){var t;D(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k(t=N(this,e,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),k(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),k(t,"getStrokeDasharray",(function(n,r,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(r,n);for(var a=Math.floor(n/i),s=n%i,u=r-n,c=[],l=0,f=0;l<o.length;f+=o[l],++l)if(f+o[l]>s){c=[].concat(M(o.slice(0,l)),[s-f]);break}var d=c.length%2===0?[0,u]:[u];return[].concat(M(e.repeat(o,a)),M(c),d).map((function(t){return"".concat(t,"px")})).join(", ")})),k(t,"id",Object(v.k)("recharts-line-")),k(t,"pathRef",(function(e){t.mainCurve=e})),k(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),k(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!==0?[].concat(M(t),[0]):t,r=[],o=0;o<e;++o)r=[].concat(M(r),M(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(o.a.isValidElement(t))n=o.a.cloneElement(t,e);else if(s()(t))n=t(e);else{var r=e.key,i=S(e,C),a=Object(d.a)("recharts-line-dot","boolean"!==typeof t?t.className:"");n=o.a.createElement(p.a,O({key:r},i,{className:a}))}return n}}],(r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,s=n.layout,u=n.children,c=Object(w.b)(u,y.a);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Object(b.v)(t.payload,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o.a.createElement(g.a,f,c.map((function(t){return o.a.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:r,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,s=i.points,u=i.dataKey,c=Object(w.a)(this.props,!1),l=Object(w.a)(a,!0),f=s.map((function(t,n){var r=T(T(T({key:"dot-".concat(n),r:3},c),l),{},{index:n,cx:t.x,cy:t.y,value:t.value,dataKey:u,payload:t.payload,points:s});return e.renderDotItem(a,r)})),d={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return o.a.createElement(g.a,O({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,a=i.type,s=i.layout,u=i.connectNulls,c=(i.ref,S(i,E)),l=T(T(T({},Object(w.a)(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:a,layout:s,connectNulls:u});return o.a.createElement(h.a,O({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,a=r.points,s=r.strokeDasharray,u=r.isAnimationActive,c=r.animationBegin,l=r.animationDuration,f=r.animationEasing,d=r.animationId,h=r.animateNewValues,p=r.width,g=r.height,m=this.state,y=m.prevPoints,w=m.totalLength;return o.a.createElement(i.a,{begin:c,duration:l,isActive:u,easing:f,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(y){var i=y.length/a.length,u=a.map((function(t,e){var n=Math.floor(e*i);if(y[n]){var r=y[n],a=Object(v.f)(r.x,t.x),s=Object(v.f)(r.y,t.y);return T(T({},t),{},{x:a(o),y:s(o)})}if(h){var u=Object(v.f)(2*p,t.x),c=Object(v.f)(g/2,t.y);return T(T({},t),{}
2,{x:u(o),y:c(o)})}return T(T({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var c,l=Object(v.f)(0,w)(o);if(s){var f="".concat(s).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));c=n.getStrokeDasharray(l,w,f)}else c=n.generateSimpleStrokeDasharray(w,l);return n.renderCurveStatically(a,t,e,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!f()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,a=e.className,s=e.xAxis,u=e.yAxis,l=e.top,f=e.left,h=e.width,p=e.height,y=e.isAnimationActive,v=e.id;if(n||!i||!i.length)return null;var _=this.state.isAnimationFinished,b=1===i.length,E=Object(d.a)("recharts-line",a),C=s&&s.allowDataOverflow,A=u&&u.allowDataOverflow,S=C||A,O=c()(v)?this.id:v,I=null!==(t=Object(w.a)(r,!1))&&void 0!==t?t:{r:3,strokeWidth:2},T=I.r,M=void 0===T?3:T,R=I.strokeWidth,D=void 0===R?2:R,x=(Object(w.f)(r)?r:{}).clipDot,N=void 0===x||x,P=2*M+D;return o.a.createElement(g.a,{className:E},C||A?o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"clipPath-".concat(O)},o.a.createElement("rect",{x:C?f:f-h/2,y:A?l:l-p/2,width:C?h:2*h,height:A?p:2*p})),!N&&o.a.createElement("clipPath",{id:"clipPath-dots-".concat(O)},o.a.createElement("rect",{x:f-P/2,y:l-P/2,width:h+P,height:p+P}))):null,!b&&this.renderCurve(S,O),this.renderErrorBar(S,O),(b||r)&&this.renderDots(S,N,O),(!y||_)&&m.a.renderCallByParent(this.props,i))}}])&&x(n.prototype,r),a&&x(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.PureComponent);k(j,"displayName","Line"),k(j,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_.a.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),k(j,"getComposedData",(function(t){var e=t.props,n=t.xAxis,r=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,s=t.bandSize,u=t.displayedData,l=t.offset,f=e.layout;return T({points:u.map((function(t,e){var u=Object(b.v)(t,a);return"horizontal"===f?{x:Object(b.k)({axis:n,ticks:o,bandSize:s,entry:t,index:e}),y:c()(u)?null:r.scale(u),value:u,payload:t}:{x:c()(u)?null:n.scale(u),y:Object(b.k)({axis:r,ticks:i,bandSize:s,entry:t,index:e}),value:u,payload:t}})),layout:f},l)}))},7724:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7725);Object.defineProperty(e,"withScriptjs",{enumerable:!0,get:function(){return _(r).default}});var o=n(7779);Object.defineProperty(e,"withGoogleMap",{enumerable:!0,get:function(){return _(o).default}});var i=n(7780);Object.defineProperty(e,"GoogleMap",{enumerable:!0,get:function(){return _(i).default}});var a=n(7799);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return _(a).default}});var s=n(7800);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return _(s).default}});var u=n(7801);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return _(u).default}});var c=n(7802);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return _(c).default}});var l=n(7803);Object.defineProperty(e,"Rectangle",{enumerable:!0,get:function(){return _(l).default}});var f=n(7804);Object.defineProperty(e,"InfoWindow",{enumerable:!0,get:function(){return _(f).default}});var d=n(7805);Object.defineProperty(e,"OverlayView",{enumerable:!0,get:function(){return _(d).default}});var h=n(7817);Object.defineProperty(e,"GroundOverlay",{enumerable:!0,get:function(){return _(h).default}});var p=n(7818);Object.defineProperty(e,"DirectionsRenderer",{enumerable:!0,get:function(){return _(p).default}});var g=n(7819);Object.defineProperty(e,"FusionTablesLayer",{enumerable:!0,get:function(){return _(g).default}});var m=n(7820);Object.defineProperty(e,"KmlLayer",{enumerable:!0,get:function(){return _(m).default}});var y=n(7821);Object.defineProperty(e,"TrafficLayer",{enumerable:!0,get:function(){return _(y).default}});var v=n(7822);Object.defineProperty(e,"StreetViewPanorama",{enumerable:!0,get:function(){return _(v).default}});var w=n(7823);function _(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"BicyclingLayer",{enumerable:!0,get:function(){return _(w).default}})},7725:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(1586)),o=g(n(750)),i=g(n(751)),a=g(n(752)),s=g(n(753)),u=g(n(754)),c=g(n(1033));e.withScriptjs=m;var l=g(n(901)),f=g(n(1612)),d=n(1613),h=g(n(4)),p=g(n(1));function g(t){return t&&t.__esModule?t:{default:t}}function m(t){var e=p.default.createFactory(t),g=function(t){function d(){var t,e,n,r;(0,i.default)(this,d);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return e=n=(0,s.default)(this,(t=d.__proto__||(0,o.default)(d)).call.apply(t,[this].concat(u))),n.state={loadingState:"NONE"},n.isUnmounted=!1,n.handleLoaded=(0,c.default)(n.handleLoaded,n),r=e,(0,s.default)(n,r)}return(0,u.default)(d,t),(0,a.default)(d,[{key:"handleLoaded",value:function(){this.isUnmounted||this.setState({loadingState:"LOADED"})}},{key:"componentWillMount",value:function(){var t=this.props,e=t.loadingElement,n=t.googleMapURL;(0,l.default)(!!e&&!!n,"Required props loadingElement or googleMapURL is missing. You need to provide both of them.")}},{key:"componentDidMount",value:function(){"NONE"===this.state.loadingState&&f.default&&(this.setState({loadingState:"BEGIN"}),n(7778)(this.props.googleMapURL,this.handleLoaded))}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0}},{key:"render",value:function(){var t=this.props,n=t.loadingElement,o=(t.googleMapURL,(0,r.default)(t,["loadingElement","googleMapURL"]));return"LOADED"===this.state.loadingState?e(o):n}}]),d}(p.default.PureComponent);return g.displayName="withScriptjs("+(0,d.getDisplayName)(t)+")",g.propTypes={loadingElement:h.default.node.isRequired,googleMapURL:h.default.string.isRequired},g}e.default=m},7726:function(t,e,n){n(7727),t.exports=n(787).Object.getPrototypeOf},7727:function(t,e,n){var r=n(948),o=n(1587);n(7728)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},7728:function(t,e,n){var r=n(836),o=n(787),i=n(899);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},7729:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},7730:function(t,e,n){n(7731);var r=n(787).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},7731:function(t,e,n){var r=n(836);r(r.S+r.F*!n(838),"Object",{defineProperty:n(837).f})},7732:function(t,e,n){t.exports={default:n(7733),__esModule:!0}},7733:function(t,e,n){n(1592),n(7740),t.exports=n(1211).f("iterator")},7734:function(t,e,n){var r=n(1206),o=n(1201);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},7735:function(t,e,n){"use strict";var r=n(1207),o=n(949),i=n(1210),a={};n(896)(a,n(808)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},7736:function(t,e,n){var r=n(837),o=n(897),i=n(1031);t.exports=n(838)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},7737:function(t,e,n){var r=n(900),o=n(1597),i=n(7738);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},7738:function(t,e,n){var r=n(1206),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},7739:function(t,e,n){var r=n(835).document;t.exports=r&&r.documentElement},7740:function(t,e,n){n(7741);for(var r=n(835),o=n(896),i=n(950),a=n(808)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&o(f,a,c),i[c]=i.Array}},7741:function(t,e,n){"use strict";var r=n(7742),o=n(7743),i=n(950),a=n(900);t.exports=n(1593)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},7742:function(t,e){t.exports=function(){}},7743:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},7744:function(t,e,n){t.exports={default:n(7745),__esModule:!0}},7745:function(t,e,n){n(7746),n(7751),n(7752),n(7753),t.exports=n(787).Symbol},7746:function(t,e,n){"use strict";var r=n(835),o=n(865),i=n(838),a=n(836),s=n(1594),u=n(7747).KEY,c=n(899),l=n(1203),f=n(1210),d=n(1030),h=n(808),p=n(1211),g=n(1212),m=n(7748),y=n(7749),v=n(897),w=n(898),_=n(948),b=n(900),E=n(1205),C=n(949),A=n(1207),S=n(7750),O=n(1599),I=n(1213),T=n(837),M=n(1031),R=O.f,D=T.f,x=S.f,N=r.Symbol,P=r.JSON,L=P&&P.stringify,k=h("_hidden"),B=h("toPrimitive"),j={}.propertyIsEnumerable,F=l("symbol-registry"),U=l("symbols"),z=l("op-symbol
2s"),V=Object.prototype,H="function"==typeof N&&!!I.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,Y=i&&c((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=R(V,e);r&&delete V[e],D(t,e,n),r&&t!==V&&D(V,e,r)}:D,X=function(t){var e=U[t]=A(N.prototype);return e._k=t,e},Z=H&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},q=function(t,e,n){return t===V&&q(z,e,n),v(t),e=E(e,!0),v(n),o(U,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:C(0,!1)})):(o(t,k)||D(t,k,C(1,{})),t[k][e]=!0),Y(t,e,n)):D(t,e,n)},K=function(t,e){v(t);for(var n,r=m(e=b(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},Q=function(t){var e=j.call(this,t=E(t,!0));return!(this===V&&o(U,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,k)&&this[k][t])||e)},J=function(t,e){if(t=b(t),e=E(e,!0),t!==V||!o(U,e)||o(z,e)){var n=R(t,e);return!n||!o(U,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=x(b(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==k||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===V,r=x(n?z:b(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(V,e)||i.push(U[e]);return i};H||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(z,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),Y(this,t,C(1,n))};return i&&G&&Y(V,t,{configurable:!0,set:e}),X(t)}).prototype,"toString",(function(){return this._k})),O.f=J,T.f=q,n(1598).f=S.f=$,n(1032).f=Q,I.f=tt,i&&!n(1029)&&s(V,"propertyIsEnumerable",Q,!0),p.f=function(t){return X(h(t))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=M(h.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=N(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):K(A(t),e)},defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var it=c((function(){I.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return I.f(_(t))}}),P&&a(a.S+a.F*(!H||c((function(){var t=N();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(w(e)||void 0!==t)&&!Z(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,L.apply(P,r)}}),N.prototype[B]||n(896)(N.prototype,B,N.prototype.valueOf),f(N,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},7747:function(t,e,n){var r=n(1030)("meta"),o=n(898),i=n(865),a=n(837).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(899)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},7748:function(t,e,n){var r=n(1031),o=n(1213),i=n(1032);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},7749:function(t,e,n){var r=n(1208);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7750:function(t,e,n){var r=n(900),o=n(1598).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(e){return a.slice()}}(t):o(r(t))}},7751:function(t,e){},7752:function(t,e,n){n(1212)("asyncIterator")},7753:function(t,e,n){n(1212)("observable")},7754:function(t,e,n){t.exports={default:n(7755),__esModule:!0}},7755:function(t,e,n){n(7756),t.exports=n(787).Object.setPrototypeOf},7756:function(t,e,n){var r=n(836);r(r.S,"Object",{setPrototypeOf:n(7757).set})},7757:function(t,e,n){var r=n(898),o=n(897),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(1204)(Function.call,n(1599).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},7758:function(t,e,n){t.exports={default:n(7759),__esModule:!0}},7759:function(t,e,n){n(7760);var r=n(787).Object;t.exports=function(t,e){return r.create(t,e)}},7760:function(t,e,n){var r=n(836);r(r.S,"Object",{create:n(1207)})},7761:function(t,e,n){var r=n(1600),o=n(7762),i=n(7763),a=n(1602),s=n(7774),u=n(1606),c=n(7775),l=n(1609),f=n(1610),d=n(1520),h=Math.max;t.exports=function(t,e,n,p,g,m,y,v){var w=2&e;if(!w&&"function"!=typeof t)throw new TypeError("Expected a function");var _=p?p.length:0;if(_||(e&=-97,p=g=void 0),y=void 0===y?y:h(d(y),0),v=void 0===v?v:d(v),_-=g?g.length:0,64&e){var b=p,E=g;p=g=void 0}var C=w?void 0:u(t),A=[t,e,n,p,g,b,E,m,y,v];if(C&&c(A,C),t=A[0],e=A[1],n=A[2],p=A[3],g=A[4],!(v=A[9]=void 0===A[9]?w?0:t.length:h(A[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||16==e?i(t,e,v):32!=e&&33!=e||g.length?a.apply(void 0,A):s(t,e,n,p);else var S=o(t,e,n);return f((C?r:l)(S,A),t,e)}},7762:function(t,e,n){var r=n(1034),o=n(774);t.exports=function(t,e,n){var i=1&e,a=r(t);return function e(){var r=this&&this!==o&&this instanceof e?a:t;return r.apply(i?n:this,arguments)}}}
2,7763:function(t,e,n){var r=n(1145),o=n(1034),i=n(1602),a=n(1605),s=n(1217),u=n(1035),c=n(774);t.exports=function(t,e,n){var l=o(t);return function o(){for(var f=arguments.length,d=Array(f),h=f,p=s(o);h--;)d[h]=arguments[h];var g=f<3&&d[0]!==p&&d[f-1]!==p?[]:u(d,p);if((f-=g.length)<n)return a(t,e,i,o.placeholder,void 0,d,g,void 0,void 0,n-f);var m=this&&this!==c&&this instanceof o?l:t;return r(m,this,d)}}},7764:function(t,e){t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},7765:function(t,e,n){var r=n(1215),o=n(1606),i=n(7766),a=n(7768);t.exports=function(t){var e=i(t),n=a[e];if("function"!=typeof n||!(e in r.prototype))return!1;if(t===n)return!0;var s=o(n);return!!s&&t===s[0]}},7766:function(t,e,n){var r=n(7767),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],i=o.call(r,e)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==t)return a.name}return e}},7767:function(t,e){t.exports={}},7768:function(t,e,n){var r=n(1215),o=n(1607),i=n(1216),a=n(749),s=n(804),u=n(7769),c=Object.prototype.hasOwnProperty;function l(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof o)return t;if(c.call(t,"__wrapped__"))return u(t)}return new o(t)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l},7769:function(t,e,n){var r=n(1215),o=n(1607),i=n(1608);t.exports=function(t){if(t instanceof r)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=i(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},7770:function(t,e){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){var e=t.match(n);return e?e[1].split(r):[]}},7771:function(t,e){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var r=e.length;if(!r)return t;var o=r-1;return e[o]=(r>1?"& ":"")+e[o],e=e.join(r>2?", ":" "),t.replace(n,"{\n/* [wrapped with "+e+"] */\n")}},7772:function(t,e,n){var r=n(1611),o=n(1517),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(i,(function(n){var r="_."+n[0];e&n[1]&&!o(t,r)&&t.push(r)})),t.sort()}}
2,7773:function(t,e,n){var r=n(1608),o=n(1007),i=Math.min;t.exports=function(t,e){for(var n=t.length,a=i(e.length,n),s=r(t);a--;){var u=e[a];t[a]=o(u,n)?s[u]:void 0}return t}},7774:function(t,e,n){var r=n(1145),o=n(1034),i=n(774);t.exports=function(t,e,n,a){var s=1&e,u=o(t);return function e(){for(var o=-1,c=arguments.length,l=-1,f=a.length,d=Array(f+c),h=this&&this!==i&&this instanceof e?u:t;++l<f;)d[l]=a[l];for(;c--;)d[l++]=arguments[++o];return r(h,s?n:this,d)}}},7775:function(t,e,n){var r=n(1603),o=n(1604),i=n(1035),a=Math.min;t.exports=function(t,e){var n=t[1],s=e[1],u=n|s,c=u<131,l=128==s&&8==n||128==s&&256==n&&t[7].length<=e[8]||384==s&&e[7].length<=e[8]&&8==n;if(!c&&!l)return t;1&s&&(t[2]=e[2],u|=1&n?0:4);var f=e[3];if(f){var d=t[3];t[3]=d?r(d,f,e[4]):f,t[4]=d?i(t[3],"__lodash_placeholder__"):e[4]}return(f=e[5])&&(d=t[5],t[5]=d?o(d,f,e[6]):f,t[6]=d?i(t[5],"__lodash_placeholder__"):e[6]),(f=e[7])&&(t[7]=f),128&s&&(t[8]=null==t[8]?e[8]:a(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=u,t}},7776:function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);t.exports=function t(e,n,f){if("string"!==typeof n){if(l){var d=c(n);d&&d!==l&&t(e,d,f)}var h=a(n);s&&(h=h.concat(s(n)));for(var p=0;p<h.length;++p){var g=h[p];if(!r[g]&&!o[g]&&(!f||!f[g])){var m=u(n,g);try{i(e,g,m)}catch(y){}}}return e}return e}},7777:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.createChangeEmitter=function(){var t=[],e=t;function n(){e===t&&(e=t.slice())}return{listen:function(t){if("function"!==typeof t)throw new Error("Expected listener to be a function.");var r=!0;return n(),e.push(t),function(){if(r){r=!1,n();var o=e.indexOf(t);e.splice(o,1)}}},emit:function(){for(var n=t=e,r=0;r<n.length;r++)n[r].apply(n,arguments)}}}},7778:function(t,e,n){var r,o,i;i=function(){var t,e,n=document,r=n.getElementsByTagName("head")[0],o={},i={},a={},s={};function u(t,e){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return 1}function c(t,e){u(t,(function(t){return e(t),1}))}function l(e,n,r){e=e.push?e:[e];var d=n&&n.call,h=d?n:r,p=d?e.join(""):n,g=e.length;function m(t){return t.call?t():o[t]}function y(){if(!--g)for(var t in o[p]=1,h&&h(),a)u(t.split("|"),m)&&!c(a[t],m)&&(a[t]=[])}return setTimeout((function(){c(e,(function e(n,r){return null===n?y():(r||/^https?:\/\//.test(n)||!t||(n=-1===n.indexOf(".js")?t+n+".js":t+n),s[n]?(p&&(i[p]=1),2==s[n]?y():setTimeout((function(){e(n,!0)}),0)):(s[n]=1,p&&(i[p]=1),void f(n,y)))}))}),0),l}function f(t,o){var i,a=n.createElement("script");a.onload=a.onerror=a.onreadystatechange=function(){a.readyState&&!/^c|loade/.test(a.readyState)||i||(a.onload=a.onreadystatechange=null,i=1,s[t]=2,o())},a.async=1,a.src=e?t+(-1===t.indexOf("?")?"?":"&")+e:t,r.insertBefore(a,r.lastChild)}return l.get=f,l.order=function(t,e,n){!function r(o){o=t.shift(),t.length?l(o,r):l(o,e,n)}()},l.path=function(e){t=e},l.urlArgs=function(t){e=t},l.ready=function(t,e,n){t=t.push?t:[t];var r,i=[];return!c(t,(function(t){o[t]||i.push(t)}))&&u(t,(function(t){return o[t]}))?e():(r=t.join("|"),a[r]=a[r]||[],a[r].push(e),n&&n(i)),l},l.done=function(t){l([null],t)},l},t.exports?t.exports=i():void 0===(o="function"===typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o)},7779:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(1586)),o=y(n(758)),i=y(n(750)),a=y(n(751)),s=y(n(752)),u=y(n(753)),c=y(n(754)),l=y(n(1033));e.withGoogleMap=v;var f=y(n(1614)),d=y(n(901)),h=n(1613),p=y(n(4)),g=y(n(1)),m=n(759);function y(t){return t&&t.__esModule?t:{default:t}}function v(t){var e=g.default.createFactory(t),n=function(t){function n(){var t,e,r,o;(0,a.default)(this,n);for(var s=arguments.length,c=Array(s),f=0;f<s;f++)c[f]=arguments[f];return e=r=(0,u.default)(this,(t=n.__proto__||(0,i.default)(n)).call.apply(t,[this].concat(c))),r.state={map:null},r.handleComponentMount=(0,l.default)(r.handleComponentMount,r),o=e,(0,u.default)(r,o)}return(0,c.default)(n,t),(0,s.default)(n,[{key:"getChildContext",value:function(){return(0,o.default)({},m.MAP,this.state.map)}},{key:"componentWillMount",value:function(){var t=this.props,e=t.containerElement,n=t.mapElement;(0,d.default)(!!e&&!!n,"Required props containerElement or mapElement is missing. You need to provide both of them.\n The `google.maps.Map` instance will be initialized on mapElement and it's wrapped by containerElement.\nYou need to provide both of them since Google Map requires the DOM to have height when initialized.")}},{key:"handleComponentMount",value:function(t){if(!this.state.map&&null!==t){(0,f.default)("undefined"!==typeof google,"Make sure you've put a <script> tag in your <head> element to load Google Maps JavaScript API v3.\n If you're looking for built-in supp
2ort to load it for you, use the \"async/ScriptjsLoader\" instead.\n See https://github.com/tomchentw/react-google-maps/pull/168");var e=new google.maps.Map(t);this.setState({map:e})}}},{key:"render",value:function(){var t=this.props,n=t.containerElement,o=t.mapElement,i=(0,r.default)(t,["containerElement","mapElement"]);return this.state.map?g.default.cloneElement(n,{},g.default.cloneElement(o,{ref:this.handleComponentMount}),g.default.createElement("div",null,e(i))):g.default.cloneElement(n,{},g.default.cloneElement(o,{ref:this.handleComponentMount}),g.default.createElement("div",null))}}]),n}(g.default.PureComponent);return n.displayName="withGoogleMap("+(0,h.getDisplayName)(t)+")",n.propTypes={containerElement:p.default.node.isRequired,mapElement:p.default.node.isRequired},n.childContextTypes=(0,o.default)({},m.MAP,p.default.object),n}e.default=v},778:function(t,e,n){var r,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u={};((t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})})(u,{AUDIO_EXTENSIONS:()=>A,DASH_EXTENSIONS:()=>I,FLV_EXTENSIONS:()=>T,HLS_EXTENSIONS:()=>O,MATCH_URL_DAILYMOTION:()=>_,MATCH_URL_FACEBOOK:()=>p,MATCH_URL_FACEBOOK_WATCH:()=>g,MATCH_URL_KALTURA:()=>C,MATCH_URL_MIXCLOUD:()=>b,MATCH_URL_MUX:()=>h,MATCH_URL_SOUNDCLOUD:()=>f,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>w,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>E,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>y,MATCH_URL_YOUTUBE:()=>l,VIDEO_EXTENSIONS:()=>S,canPlay:()=>R}),t.exports=(r=u,((t,e,n,r)=>{if(e&&"object"===typeof e||"function"===typeof e)for(let u of a(e))s.call(t,u)||u===n||o(t,u,{get:()=>e[u],enumerable:!(r=i(e,u))||r.enumerable});return t})(o({},"__esModule",{value:!0}),r));var c=n(757);const l=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,f=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,h=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,p=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,g=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,y=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,w=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,_=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,b=/mixcloud\.com\/([^/]+\/[^/]+)/,E=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,C=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,A=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,S=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,O=/\.(m3u8)($|\?)/i,I=/\.(mpd)($|\?)/i,T=/\.(flv)($|\?)/i,M=t=>{if(t instanceof Array){for(const e of t){if("string"===typeof e&&M(e))return!0;if(M(e.src))return!0}return!1}return!(!(0,c.isMediaStream)(t)&&!(0,c.isBlobUrl)(t))||(A.test(t)||S.test(t)||O.test(t)||I.test(t)||T.test(t))},R={youtube:t=>t instanceof Array?t.every(t=>l.test(t)):l.test(t),soundcloud:t=>f.test(t)&&!A.test(t),vimeo:t=>d.test(t)&&!S.test(t)&&!O.test(t),mux:t=>h.test(t),facebook:t=>p.test(t)||g.test(t),streamable:t=>m.test(t),wistia:t=>y.test(t),twitch:t=>v.test(t)||w.test(t),dailymotion:t=>_.test(t),mixcloud:t=>b.test(t),vidyard:t=>E.test(t),kaltura:t=>C.test(t),file:M}},7780:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GoogleMap=e.Map=void 0;var r=g(n(758)),o=g(n(7781)),i=g(n(750)),a=g(n(751)),s=g(n(753)),u=g(n(752)),c=g(n(754)),l=g(n(901)),f=g(n(1)),d=g(n(4)),h=n(767),p=n(759);function g(t){return t&&t.__esModule?t:{default:t}}var m=e.Map=function(t){function e(t,n){(0,a.default)(this,e);var r=(0,s.default)(this,(e.__proto__||(0,i.default)(e)).call(this,t,n));return(0,l.default)(!!r.context[p.MAP],"Did you wrap <GoogleMap> component with withGoogleMap() HOC?"),(0,h.construct)(y.propTypes,w,r.props,r.context[p.MAP]),r}return(0,c.default)(e,t),(0,u.default)(e,[{key:"fitBounds",value:function(){var t;return(t=this.context[p.MAP]).fitBounds.apply(t,arguments)}},{key:"panBy",value:function(){var t;return(t=this.context[p.MAP]).panBy.apply(t,arguments)}},{key:"panTo",value:function(){var t;return(t=this.context[p.MAP]).panTo.apply(t,arguments)}},{key:"panToBounds",value:function(){var t;return(t=this.context[p.MAP]).panToBounds.apply(t,arguments)}}
2]),(0,u.default)(e,[{key:"componentDidMount",value:function(){(0,h.componentDidMount)(this,this.context[p.MAP],v)}},{key:"componentDidUpdate",value:function(t){(0,h.componentDidUpdate)(this,this.context[p.MAP],v,w,t)}},{key:"componentWillUnmount",value:function(){(0,h.componentWillUnmount)(this)}},{key:"render",value:function(){var t=this.props.children;return f.default.createElement("div",null,t)}},{key:"getBounds",value:function(){return this.context[p.MAP].getBounds()}},{key:"getCenter",value:function(){return this.context[p.MAP].getCenter()}},{key:"getClickableIcons",value:function(){return this.context[p.MAP].getClickableIcons()}},{key:"getDiv",value:function(){return this.context[p.MAP].getDiv()}},{key:"getHeading",value:function(){return this.context[p.MAP].getHeading()}},{key:"getMapTypeId",value:function(){return this.context[p.MAP].getMapTypeId()}},{key:"getProjection",value:function(){return this.context[p.MAP].getProjection()}},{key:"getStreetView",value:function(){return this.context[p.MAP].getStreetView()}},{key:"getTilt",value:function(){return this.context[p.MAP].getTilt()}},{key:"getZoom",value:function(){return this.context[p.MAP].getZoom()}}]),e}(f.default.PureComponent);m.displayName="GoogleMap",m.propTypes={defaultExtraMapTypes:d.default.arrayOf(d.default.arrayOf(d.default.any)),defaultCenter:d.default.any,defaultClickableIcons:d.default.bool,defaultHeading:d.default.number,defaultMapTypeId:d.default.any,defaultOptions:d.default.any,defaultStreetView:d.default.any,defaultTilt:d.default.number,defaultZoom:d.default.number,center:d.default.any,clickableIcons:d.default.bool,heading:d.default.number,mapTypeId:d.default.any,options:d.default.any,streetView:d.default.any,tilt:d.default.number,zoom:d.default.number,onDblClick:d.default.func,onDragEnd:d.default.func,onDragStart:d.default.func,onMapTypeIdChanged:d.default.func,onMouseMove:d.default.func,onMouseOut:d.default.func,onMouseOver:d.default.func,onRightClick:d.default.func,onTilesLoaded:d.default.func,onBoundsChanged:d.default.func,onCenterChanged:d.default.func,onClick:d.default.func,onDrag:d.default.func,onHeadingChanged:d.default.func,onIdle:d.default.func,onProjectionChanged:d.default.func,onResize:d.default.func,onTiltChanged:d.default.func,onZoomChanged:d.default.func},m.contextTypes=(0,r.default)({},p.MAP,d.default.object);var y=e.GoogleMap=m;e.default=m;var v={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},w={extraMapTypes:function(t,e){e.forEach((function(e){var n;return(n=t.mapTypes).set.apply(n,(0,o.default)(e))}))},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}}},7781:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(7782),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},7782:function(t,e,n){t.exports={default:n(7783),__esModule:!0}},7783:function(t,e,n){n(1592),n(7784),t.exports=n(787).Array.from},7784:function(t,e,n){"use strict";var r=n(1204),o=n(836),i=n(948),a=n(7785),s=n(7786),u=n(1597),c=n(7787),l=n(7788);o(o.S+o.F*!n(7790)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,d=i(t),h="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,y=0,v=l(d);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==v||h==Array&&s(v))for(n=new h(e=u(d.length));e>y;y++)c(n,y,m?g(d[y],y):d[y]);else for(f=v.call(d),n=new h;!(o=f.next()).done;y++)c(n,y,m?a(f,g,[o.value,y],!0):o.value);return n.length=y,n}})},7785:function(t,e,n){var r=n(897);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},7786:function(t,e,n){var r=n(950),o=n(808)("iterator"),i=Array.prototype;
2t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},7787:function(t,e,n){"use strict";var r=n(837),o=n(949);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},7788:function(t,e,n){var r=n(7789),o=n(808)("iterator"),i=n(950);t.exports=n(787).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},7789:function(t,e,n){var r=n(1208),o=n(808)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},7790:function(t,e,n){var r=n(808)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},t(i)}catch(a){}return n}},7791:function(t,e,n){var r=n(7792),o=n(931),i=n(791),a=n(7793),s=n(749);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,i(e,4),n,c,o)}},7792:function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},7793:function(t,e){t.exports=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}},7794:function(t,e,n){var r=n(1611),o=n(931),i=n(7795),a=n(749);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},7795:function(t,e,n){var r=n(830);t.exports=function(t){return"function"==typeof t?t:r}},7796:function(t,e,n){var r=n(1510)("toLowerCase");t.exports=r},7797:function(t,e,n){var r=n(7798),o=n(1427);t.exports=function(t,e){return null!=t&&o(t,e,r)}},7798:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},7799:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Circle=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.Circle=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.Circle;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.CIRCLE,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.CIRCLE],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.CIRCLE],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.CIRCLE];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[d.CIRCLE].getBounds()}},{key:"getCenter",value:function(){return this.state[d.CIRCLE].getCenter()}},{key:"getDraggable",value:function(){return this.state[d.CIRCLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[d.CIRCLE].getEditable()}},{key:"getRadius",value:function(){return this.state[d.CIRCLE].getRadius()}},{key:"getVisible",value:function(){return this.state[d.CIRCLE].getVisible()}}]),e}(c.default.PureComponent);p.propTypes={defaultCenter:l.default.any,defaultDraggable:l.default.bool,defaultEditable:l.default.bool,defaultOptions:l.default.any,defaultRadius:l.default.number,defaultVisible:l.default.bool,center:l.default.any,draggable:l.default.bool,editable:l.default.bool,options:l.default.any,radius:l.default.number,visible:l.default.bool,onDblClick:l.default.func,onDragEnd:l.default.func,onDragStart:l.default.func,onMouseDown:l.default.func,onMouseMove:l.default.func,onMouseOut:l.default.func,onMouseOver:l.default.func,onMouseUp:l.default.func,onRightClick:l.default.func,onCenterChanged:l.default.func,onClick:l.default.func,onDrag:l.default.func,onRadiusChanged:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onRadiusChanged:"radius_changed"},m={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}}},7800:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.Marker=void 0;var r,o=p(n(758)),i=p(n(750)),a=p(n(751)),s=p(n(752)),u=p(n(753)),c=p(n(754)),l=p(n(1)),f=p(n(4)),d=n(767),h=n(759);function p(t){return t&&t.__esModule?t:{default:t}}var g=e.Marker=function(t){function e(t,n){(0,a.default)(this,e);var r=(0,u.default)(this,(e.__proto__||(0,i.default)(e)).call(this,t,n)),s=new google.maps.Marker;(0,d.construct)(e.propTypes,y,r.props,s);var c=r.context[h.MARKER_CLUSTERER];return c?c.addMarker(s,!!r.props.noRedraw):s.setMap(r.context[h.MAP]),r.state=(0,o.default)({},h.MARKER,s),r}return(0,c.default)(e,t),(0,s.default)(e,[{key:"getChildContext",value:function(){return(0,o.default)({},h.ANCHOR,this.context[h.ANCHOR]||this.state[h.MARKER])}},{key:"componentDidMount",value:function(){(0,d.componentDidMount)(this,this.state[h.MARKER],m)}},{key:"componentDidUpdate",value:function(t){(0,d.componentDidUpdate)(this,this.state[h.MARKER],m,y,t)}},{key:"componentWillUnmount",value:function(){(0,d.componentWillUnmount)(this);var t=this.state[h.MARKER];if(t){var e=this.context[h.MARKER_CLUSTERER];e&&e.removeMarker(t,!!this.props.noRedraw),t.setMap(null)}}},{key:"render",value:function(){var t=this.props.children;return l.default.createElement("div",null,t)}},{key:"getAnimation",value:function(){return this.state[h.MARKER].getAnimation()}},{key:"getClickable",value:function(){return this.state[h.MARKER].getClickable()}},{key:"getCursor",value:function(){return this.state[h.MARKER].getCursor()}},{key:"getDraggable",value:function(){return this.state[h.MARKER].getDraggable()}},{key:"getIcon",value:function(){return this.state[h.MARKER].getIcon()}},{key:"getLabel",value:function(){return this.state[h.MARKER].getLabel()}},{key:"getOpacity",value:function(){return this.state[h.MARKER].getOpacity()}},{key:"getPlace",value:function(){return this.state[h.MARKER].getPlace()}},{key:"getPosition",value:function(){return this.state[h.MARKER].getPosition()}},{key:"getShape",value:function(){return this.state[h.MARKER].getShape()}},{key:"getTitle",value:function(){return this.state[h.MARKER].getTitle()}},{key:"getVisible",value:function(){return this.state[h.MARKER].getVisible()}},{key:"getZIndex",value:function(){return this.state[h.MARKER].getZIndex()}}]),e}(l.default.PureComponent);g.propTypes={noRedraw:f.default.bool,defaultAnimation:f.default.any,defaultClickable:f.default.bool,defaultCursor:f.default.string,defaultDraggable:f.default.bool,defaultIcon:f.default.any,defaultLabel:f.default.any,defaultOpacity:f.default.number,defaultOptions:f.default.any,defaultPlace:f.default.any,defaultPosition:f.default.any,defaultShape:f.default.any,defaultTitle:f.default.string,defaultVisible:f.default.bool,defaultZIndex:f.default.number,animation:f.default.any,clickable:f.default.bool,cursor:f.default.string,draggable:f.default.bool,icon:f.default.any,label:f.default.any,opacity:f.default.number,options:f.default.any,place:f.default.any,position:f.default.any,shape:f.default.any,title:f.default.string,visible:f.default.bool,zIndex:f.default.number,onDblClick:f.default.func,onDragEnd:f.default.func,onDragStart:f.default.func,onMouseDown:f.default.func,onMouseOut:f.default.func,onMouseOver:f.default.func,onMouseUp:f.default.func,onRightClick:f.default.func,onAnimationChanged:f.default.func,onClick:f.default.func,onClickableChanged:f.default.func,onCursorChanged:f.default.func,onDrag:f.default.func,onDraggableChanged:f.default.func,onFlatChanged:f.default.func,onIconChanged:f.default.func,onPositionChanged:f.default.func,onShapeChanged:f.default.func,onTitleChanged:f.default.func,onVisibleChanged:f.default.func,onZindexChanged:f.default.func},g.contextTypes=(r={},(0,o.default)(r,h.MAP,f.default.object),(0,o.default)(r,h.MARKER_CLUSTERER,f.default.object),r),g.childContextTypes=(0,o.default)({},h.ANCHOR,f.default.object),e.default=g;var m={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDrag:"drag",onDraggableChanged:"draggable_changed",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onPositionChanged:"position_changed",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},y={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},place:function(t,e){t.setPlace(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}}},7801:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.Polyline=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.Polyline=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.Polyline;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.POLYLINE,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.POLYLINE],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.POLYLINE],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.POLYLINE];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[d.POLYLINE].getDraggable()}},{key:"getEditable",value:function(){return this.state[d.POLYLINE].getEditable()}},{key:"getPath",value:function(){return this.state[d.POLYLINE].getPath()}},{key:"getVisible",value:function(){return this.state[d.POLYLINE].getVisible()}}]),e}(c.default.PureComponent);p.propTypes={defaultDraggable:l.default.bool,defaultEditable:l.default.bool,defaultOptions:l.default.any,defaultPath:l.default.any,defaultVisible:l.default.bool,draggable:l.default.bool,editable:l.default.bool,options:l.default.any,path:l.default.any,visible:l.default.bool,onDblClick:l.default.func,onDragEnd:l.default.func,onDragStart:l.default.func,onMouseDown:l.default.func,onMouseMove:l.default.func,onMouseOut:l.default.func,onMouseOver:l.default.func,onMouseUp:l.default.func,onRightClick:l.default.func,onClick:l.default.func,onDrag:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},m={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}}},7802:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Polygon=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.Polygon=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.Polygon;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.POLYGON,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.POLYGON],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.POLYGON],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.POLYGON];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[d.POLYGON].getDraggable()}},{key:"getEditable",value:function(){return this.state[d.POLYGON].getEditable()}},{key:"getPath",value:function(){return this.state[d.POLYGON].getPath()}},{key:"getPaths",value:function(){return this.state[d.POLYGON].getPaths()}},{key:"getVisible",value:function(){return this.state[d.POLYGON].getVisible()}}]),e}(c.default.PureComponent);p.propTypes={defaultDraggable:l.default.bool,defaultEditable:l.default.bool,defaultOptions:l.default.any,defaultPath:l.default.any,defaultPaths:l.default.any,defaultVisible:l.default.bool,draggable:l.default.bool,editable:l.default.bool,options:l.default.any,path:l.default.any,paths:l.default.any,visible:l.default.bool,onDblClick:l.default.func,onDragEnd:l.default.func,onDragStart:l.default.func,onMouseDown:l.default.func,onMouseMove:l.default.func,onMouseOut:l.default.func,onMouseOver:l.default.func,onMouseUp:l.default.func,onRightClick:l.default.func,onClick:l.default.func,onDrag:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},m={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}}},7803:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.Rectangle=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.Rectangle=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.Rectangle;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.RECTANGLE,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.RECTANGLE],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.RECTANGLE],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.RECTANGLE];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[d.RECTANGLE].getBounds()}},{key:"getDraggable",value:function(){return this.state[d.RECTANGLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[d.RECTANGLE].getEditable()}},{key:"getVisible",value:function(){return this.state[d.RECTANGLE].getVisible()}}]),e}(c.default.PureComponent);p.propTypes={defaultBounds:l.default.any,defaultDraggable:l.default.bool,defaultEditable:l.default.bool,defaultOptions:l.default.any,defaultVisible:l.default.bool,bounds:l.default.any,draggable:l.default.bool,editable:l.default.bool,options:l.default.any,visible:l.default.bool,onDblClick:l.default.func,onDragEnd:l.default.func,onDragStart:l.default.func,onMouseDown:l.default.func,onMouseMove:l.default.func,onMouseOut:l.default.func,onMouseOver:l.default.func,onMouseUp:l.default.func,onRightClick:l.default.func,onBoundsChanged:l.default.func,onClick:l.default.func,onDrag:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onBoundsChanged:"bounds_changed",onClick:"click",onDrag:"drag"},m={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}}},7804:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InfoWindow=void 0;var r,o=y(n(758)),i=y(n(750)),a=y(n(751)),s=y(n(752)),u=y(n(753)),c=y(n(754)),l=y(n(901)),f=y(n(1612)),d=y(n(1)),h=y(n(40)),p=y(n(4)),g=n(767),m=n(759);function y(t){return t&&t.__esModule?t:{default:t}}var v=e.InfoWindow=function(t){function e(t,n){(0,a.default)(this,e);var r=(0,u.default)(this,(e.__proto__||(0,i.default)(e)).call(this,t,n)),s=new google.maps.InfoWindow;return(0,g.construct)(e.propTypes,b,r.props,s),s.setMap(r.context[m.MAP]),r.state=(0,o.default)({},m.INFO_WINDOW,s),r}return(0,c.default)(e,t),(0,s.default)(e,[{key:"componentWillMount",value:function(){f.default&&!this.containerElement&&d.default.version.match(/^16/)&&(this.containerElement=document.createElement("div"))}},{key:"componentDidMount",value:function(){if((0,g.componentDidMount)(this,this.state[m.INFO_WINDOW],_),d.default.version.match(/^16/))return this.state[m.INFO_WINDOW].setContent(this.containerElement),void w(this.state[m.INFO_WINDOW],this.context[m.ANCHOR]);var t=document.createElement("div");h.default.unstable_renderSubtreeIntoContainer(this,d.default.Children.only(this.props.children),t),this.state[m.INFO_WINDOW].setContent(t),w(this.state[m.INFO_WINDOW],this.context[m.ANCHOR])}},{key:"componentDidUpdate",value:function(t){(0,g.componentDidUpdate)(this,this.state[m.INFO_WINDOW],_,b,t),d.default.version.match(/^16/)||this.props.children!==t.children&&h.default.unstable_renderSubtreeIntoContainer(this,d.default.Children.only(this.props.children),this.state[m.INFO_WINDOW].getContent())}},{key:"componentWillUnmount",value:function(){(0,g.componentWillUnmount)(this);var t=this.state[m.INFO_WINDOW];t&&(!d.default.version.match(/^16/)&&t.getContent()&&h.default.unmountComponentAtNode(t.getContent()),t.setMap(null))}},{key:"render",value:function(){return!!d.default.version.match(/^16/)&&h.default.createPortal(d.default.Children.only(this.props.children),this.containerElement)}},{key:"getPosition",value:function(){return this.state[m.INFO_WINDOW].getPosition()}},{key:"getZIndex",value:function(){return this.state[m.INFO_WINDOW].getZIndex()}}]),e}(d.default.PureComponent);v.propTypes={defaultOptions:p.default.any,defaultPosition:p.default.any,defaultZIndex:p.default.number,options:p.default.any,position:p.default.any,zIndex:p.default.number,onCloseClick:p.default.func,onDomReady:p.default.func,onContentChanged:p.default.func,onPositionChanged:p.default.func,onZindexChanged:p.default.func},v.contextTypes=(r={},(0,o.default)(r,m.MAP,p.default.object),(0,o.default)(r,m.ANCHOR,p.default.object),r),e.default=v;var w=function(t,e){e?t.open(t.getMap(),e):t.getPosition()?t.open(t.getMap()):(0,l.default)(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},_={onCloseClick:"closeclick",onDomReady:"domready",onContentChanged:"content_changed",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},b={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}}},7805:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayView=void 0;var r,o=b(n(7806)),i=b(n(758)),a=b(n(750)),s=b(n(751)),u=b(n(752)),c=b(n(753)),l=b(n(754)),f=b(n(7811)),d=b(n(7813)),h=b(n(1033)),p=b(n(901)),g=b(n(1)),m=b(n(40)),y=b(n(4)),v=n(767),w=n(7816),_=n(759);function b(t){return t&&t.__esModule?t:{default:t}}var E=e.OverlayView=function(t){function e(t,n){(0,s.default)(this,e);var r=(0,c.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t,n)),o=new google.maps.OverlayView;return o.onAdd=(0,h.default)(r.onAdd,r),o.draw=(0,h.default)(r.draw,r),o.onRemove=(0,h.default)(r.onRemove,r),r.onPositionElement=(0,h.default)(r.onPositionElement,r),o.setMap(r.context[_.MAP]),r.state=(0,i.default)({},_.OVERLAY_VIEW,o),r}return(0,l.default)(e,t),(0,u.default)(e,[{key:"onAdd",value:function(){this.containerElement=document.createElement("div"),this.containerElement.style.position="absolute"}},{key:"draw",value:function(){var t=this.props.mapPaneName;(0,p.default)(!!t,"OverlayView requires either props.mapPaneName or props.defaultMapPaneName but got %s",t),this.state[_.OVERLAY_VIEW].getPanes()[t].appendChild(this.containerElement),m.default.unstable_renderSubtreeIntoContainer(this,g.default.Children.only(this.props.children),this.containerElement,this.onPositionElement)}},{key:"onPositionElement",value:function(){var t=this.state[_.OVERLAY_VIEW].getProjection(),e=(0,o.default)({x:0,y:0},(0,w.getOffsetOverride)(this.containerElement,this.props)),n=(0,w.getLayoutStyles)(t,e,this.props);(0,d.default)(this.containerElement.style,n)}},{key:"onRemove",value:function(){this.containerElement.parentNode.removeChild(this.containerElement),m.default.unmountComponentAtNode(this.containerElement),this.containerElement=null}},{key:"componentDidMount",value:function(){(0,v.componentDidMount)(this,this.state[_.OVERLAY_VIEW],C)}},{key:"componentDidUpdate",value:function(t){(0,v.componentDidUpdate)(this,this.state[_.OVERLAY_VIEW],C,A,t),(0,f.default)(this.state[_.OVERLAY_VIEW].draw)}},{key:"componentWillUnmount",value:function(){(0,v.componentWillUnmount)(this);var t=this.state[_.OVERLAY_VIEW];t&&(t.setMap(null),t.onAdd=null,t.draw=null,t.onRemove=null)}},{key:"render",value:function(){return!1}},{key:"getPanes",value:function(){return this.state[_.OVERLAY_VIEW].getPanes()}},{key:"getProjection",value:function(){return this.state[_.OVERLAY_VIEW].getProjection()}}]),e}(g.default.PureComponent);E.FLOAT_PANE="floatPane",E.MAP_PANE="mapPane",E.MARKER_LAYER="markerLayer",E.OVERLAY_LAYER="overlayLayer",E.OVERLAY_MOUSE_TARGET="overlayMouseTarget",E.propTypes={mapPaneName:y.default.string,position:y.default.object,bounds:y.default.object,children:y.default.node.isRequired,getPixelPositionOffset:y.default.func},E.contextTypes=(r={},(0,i.default)(r,_.MAP,y.default.object),(0,i.default)(r,_.ANCHOR,y.default.object),r),e.default=E;var C={},A={}},7806:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(7807),i=(r=o)&&r.__esModule?r:{default:r};e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},7807:function(t,e,n){t.exports={default:n(7808),__esModule:!0}},7808:function(t,e,n){n(7809),t.exports=n(787).Object.assign},7809:function(t,e,n){var r=n(836);r(r.S+r.F,"Object",{assign:n(7810)})},7810:function(t,e,n){"use strict";var r=n(838),o=n(1031),i=n(1213),a=n(1032),s=n(948),u=n(1596),c=Object.assign;t.exports=!c||n(899)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,d=a.f;c>l;)for(var h,p=u(arguments[l++]),g=f?o(p).concat(f(p)):o(p),m=g.length,y=0;m>y;)h=g[y++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:c},7811:function(t,e,n){var r=n(7812),o=n(1008),i=n(1132),a=o((function(t,e,n){return r(t,i(e)||0,n)}));t.exports=a},7812:function(t,e){t.exports=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}},7813:function(t,e,n){var r=n(1615),o=n(7814),i=n(7815),a=n(884),s=n(1421),u=n(93
20),c=Object.prototype.hasOwnProperty,l=i((function(t,e){if(s(e)||a(e))o(e,u(e),t);else for(var n in e)c.call(e,n)&&r(t,n,e[n])}));t.exports=l},7814:function(t,e,n){var r=n(1615),o=n(1167);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},7815:function(t,e,n){var r=n(1008),o=n(929);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},7816:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(735),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){return new e(t.lat,t.lng)}function s(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function u(t,e,n){return t instanceof e?t:n(t,e)}e.getOffsetOverride=function(t,e){var n=e.getPixelPositionOffset;return(0,i.default)(n)?n(t.offsetWidth,t.offsetHeight):{}},e.getLayoutStyles=function(t,e,n){if(n.bounds){var r=u(n.bounds,google.maps.LatLngBounds,s);return function(t,e,n){var r=t.fromLatLngToDivPixel(n.getNorthEast()),o=t.fromLatLngToDivPixel(n.getSouthWest
2());if(r&&o)return{left:o.x+e.x+"px",top:r.y+e.y+"px",width:r.x-o.x-e.x+"px",height:o.y-r.y-e.y+"px"};return{left:"-9999px",top:"-9999px"}}(t,e,r)}var o=u(n.position,google.maps.LatLng,a);return function(t,e,n){var r=t.fromLatLngToDivPixel(n);if(r){var o=r.x,i=r.y;return{left:o+e.x+"px",top:i+e.y+"px"}}return{left:"-9999px",top:"-9999px"}}(t,e,o)}},7817:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GroundOverlay=void 0;var r=p(n(758)),o=p(n(750)),i=p(n(751)),a=p(n(752)),s=p(n(753)),u=p(n(754)),c=p(n(1614)),l=p(n(1)),f=p(n(4)),d=n(767),h=n(759);function p(t){return t&&t.__esModule?t:{default:t}}var g=e.GroundOverlay=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n));(0,c.default)(!t.url||!t.bounds,"\nFor GroundOveray, url and bounds are passed in to constructor and are immutable\n after iinstantiated. This is the behavior of Google Maps JavaScript API v3 (\n See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay)\n Hence, use the corresponding two props provided by `react-google-maps`.\n They're prefixed with _default_ (defaultUrl, defaultBounds).\n\n In some cases, you'll need the GroundOverlay component to reflect the changes\n of url and bounds. You can leverage the React's key property to remount the\n component. Typically, just `key={url}` would serve your need.\n See https://github.com/tomchentw/react-google-maps/issues/655\n");var u=new google.maps.GroundOverlay(t.defaultUrl||t.url,t.defaultBounds||t.bounds);return(0,d.construct)(e.propTypes,y,a.props,u),u.setMap(a.context[h.MAP]),a.state=(0,r.default)({},h.GROUND_LAYER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,d.componentDidMount)(this,this.state[h.GROUND_LAYER],m)}},{key:"componentDidUpdate",value:function(t){(0,d.componentDidUpdate)(this,this.state[h.GROUND_LAYER],m,y,t)}},{key:"componentWillUnmount",value:function(){(0,d.componentWillUnmount)(this);var t=this.state[h.GROUND_LAYER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[h.GROUND_LAYER].getBounds()}},{key:"getOpacity",value:function(){return this.state[h.GROUND_LAYER].getOpacity()}},{key:"getUrl",value:function(){return this.state[h.GROUND_LAYER].getUrl()}}]),e}(l.default.PureComponent);g.propTypes={defaultUrl:f.default.string,defaultBounds:f.default.object,url:f.default.string,bounds:f.default.object,defaultOpacity:f.default.number,opacity:f.default.number,onDblClick:f.default.func,onClick:f.default.func},g.contextTypes=(0,r.default)({},h.MAP,f.default.object),e.default=g;var m={onDblClick:"dblclick",onClick:"click"},y={opacity:function(t,e){t.setOpacity(e)}}},7818:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionsRenderer=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.DirectionsRenderer=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.DirectionsRenderer;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.DIRECTIONS_RENDERER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.DIRECTIONS_RENDERER],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.DIRECTIONS_RENDERER],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.DIRECTIONS_RENDERER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDirections",value:function(){return this.state[d.DIRECTIONS_RENDERER].getDirections()}},{key:"getPanel",value:function(){return this.state[d.DIRECTIONS_RENDERER].getPanel()}},{key:"getRouteIndex",value:function(){return this.state[d.DIRECTIONS_RENDERER].getRouteIndex()}}]),e}(c.default.PureComponent);p.propTypes={defaultDirections:l.default.any,defaultOptions:l.default.any,defaultPanel:l.default.any,defaultRouteIndex:l.default.number,directions:l.default.any,options:l.default.any,panel:l.default.any,routeIndex:l.default.number,onDirectionsChanged:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDirectionsChanged:"directions_changed"},m={directions:function(t,e){t.setDirections(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}}},7819:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.FusionTablesLayer=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.FusionTablesLayer=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.FusionTablesLayer;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.FUSION_TABLES_LAYER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.FUSION_TABLES_LAYER],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.FUSION_TABLES_LAYER],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.FUSION_TABLES_LAYER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}}]),e}(c.default.PureComponent);p.propTypes={defaultOptions:l.default.any,options:l.default.any,onClick:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onClick:"click"},m={options:function(t,e){t.setOptions(e)}}},7820:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KmlLayer=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.KmlLayer=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.KmlLayer;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.KML_LAYER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.KML_LAYER],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.KML_LAYER],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.KML_LAYER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDefaultViewport",value:function(){return this.state[d.KML_LAYER].getDefaultViewport()}},{key:"getMetadata",value:function(){return this.state[d.KML_LAYER].getMetadata()}},{key:"getStatus",value:function(){return this.state[d.KML_LAYER].getStatus()}},{key:"getUrl",value:function(){return this.state[d.KML_LAYER].getUrl()}},{key:"getZIndex",value:function(){return this.state[d.KML_LAYER].getZIndex()}}]),e}(c.default.PureComponent);p.propTypes={defaultOptions:l.default.any,defaultUrl:l.default.string,defaultZIndex:l.default.number,options:l.default.any,url:l.default.string,zIndex:l.default.number,onDefaultViewportChanged:l.default.func,onClick:l.default.func,onStatusChanged:l.default.func},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={onDefaultViewportChanged:"defaultviewport_changed",onClick:"click",onStatusChanged:"status_changed"},m={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}}},7821:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrafficLayer=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.TrafficLayer=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.TrafficLayer;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.TRAFFIC_LAYER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.TRAFFIC_LAYER],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.TRAFFIC_LAYER],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.TRAFFIC_LAYER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}}]),e}(c.default.PureComponent);p.propTypes={defaultOptions:l.default.any,options:l.default.any},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={},m={options:function(t,e){t.setOptions(e)}}},7822:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.StreetViewPanorama=void 0;var r=p(n(758)),o=p(n(750)),i=p(n(751)),a=p(n(752)),s=p(n(753)),u=p(n(754)),c=p(n(901)),l=p(n(1)),f=p(n(4)),d=n(767),h=n(759);function p(t){return t&&t.__esModule?t:{default:t}}var g=e.StreetViewPanorama=function(t){function e(t,n){(0,i.default)(this,e);var r=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n));return(0,c.default)(!!r.context[h.MAP],"Did you render <StreetViewPanorama> as a child of <GoogleMap> with withGoogleMap() HOC?"),(0,d.construct)(e.propTypes,y,r.props,r.context[h.MAP].getStreetView()),r}return(0,u.default)(e,t),(0,a.default)(e,[{key:"getChildContext",value:function(){return(0,r.default)({},h.MAP,this.context[h.MAP].getStreetView())}},{key:"componentDidMount",value:function(){(0,d.componentDidMount)(this,this.context[h.MAP].getStreetView(),m)}},{key:"componentDidUpdate",value:function(t){(0,d.componentDidUpdate)(this,this.context[h.MAP].getStreetView(),m,y,t)}},{key:"componentWillUnmount",value:function(){(0,d.componentWillUnmount)(this);var t=this.context[h.MAP].getStreetView();t&&t.setVisible(!1)}},{key:"render",value:function(){var t=this.props.children;return l.default.createElement("div",null,t)}},{key:"getLinks",value:function(){return this.context[h.MAP].getLinks()}},{key:"getLocation",value:function(){return this.context[h.MAP].getLocation()}},{key:"getMotionTracking",value:function(){return this.context[h.MAP].getMotionTracking()}},{key:"getPano",value:function(){return this.context[h.MAP].getPano()}},{key:"getPhotographerPov",value:function(){return this.context[h.MAP].getPhotographerPov()}},{key:"getPosition",value:function(){return this.context[h.MAP].getPosition()}},{key:"getPov",value:function(){return this.context[h.MAP].getPov()}},{key:"getStatus",value:function(){return this.context[h.MAP].getStatus()}},{key:"getVisible",value:function(){return this.context[h.MAP].getVisible()}},{key:"getZoom",value:function(){return this.context[h.MAP].getZoom()}}]),e}(l.default.PureComponent);g.propTypes={defaultLinks:f.default.any,defaultMotionTracking:f.default.bool,defaultOptions:f.default.any,defaultPano:f.default.string,defaultPosition:f.default.any,defaultPov:f.default.any,defaultVisible:f.default.bool,defaultZoom:f.default.number,links:f.default.any,motionTracking:f.default.bool,options:f.default.any,pano:f.default.string,position:f.default.any,pov:f.default.any,visible:f.default.bool,zoom:f.default.number,onCloseClick:f.default.func,onPanoChanged:f.default.func,onPositionChanged:f.default.func,onPovChanged:f.default.func,onResize:f.default.func,onStatusChanged:f.default.func,onVisibleChanged:f.default.func,onZoomChanged:f.default.func},g.contextTypes=(0,r.default)({},h.MAP,f.default.object),g.childContextTypes=(0,r.default)({},h.MAP,f.default.object),e.default=g;var m={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},y={links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}}},7823:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BicyclingLayer=void 0;var r=h(n(758)),o=h(n(750)),i=h(n(751)),a=h(n(752)),s=h(n(753)),u=h(n(754)),c=h(n(1)),l=h(n(4)),f=n(767),d=n(759);function h(t){return t&&t.__esModule?t:{default:t}}var p=e.BicyclingLayer=function(t){function e(t,n){(0,i.default)(this,e);var a=(0,s.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n)),u=new google.maps.BicyclingLayer;return(0,f.construct)(e.propTypes,m,a.props,u),u.setMap(a.context[d.MAP]),a.state=(0,r.default)({},d.BICYCLING_LAYER,u),a}return(0,u.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){(0,f.componentDidMount)(this,this.state[d.BICYCLING_LAYER],g)}},{key:"componentDidUpdate",value:function(t){(0,f.componentDidUpdate)(this,this.state[d.BICYCLING_LAYER],g,m,t)}},{key:"componentWillUnmount",value:function(){(0,f.componentWillUnmount)(this);var t=this.state[d.BICYCLING_LAYER];t&&t.setMap(null)}},{key:"render",value:function(){return!1}}]),e}(c.default.PureComponent);p.propTypes={},p.contextTypes=(0,r.default)({},d.MAP,l.default.object),e.default=p;var g={},m={}},787:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},7903:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return r}
vendor: 7,212 bytes, line 2
2)),function(t){t[t.QR_CODE=0]="QR_CODE",t[t.AZTEC=1]="AZTEC",t[t.CODABAR=2]="CODABAR",t[t.CODE_39=3]="CODE_39",t[t.CODE_93=4]="CODE_93",t[t.CODE_128=5]="CODE_128",t[t.DATA_MATRIX=6]="DATA_MATRIX",t[t.MAXICODE=7]="MAXICODE",t[t.ITF=8]="ITF",t[t.EAN_13=9]="EAN_13",t[t.EAN_8=10]="EAN_8",t[t.PDF_417=11]="PDF_417",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={}));var o,i,a=new Map([[r.QR_CODE,"QR_CODE"],[r.AZTEC,"AZTEC"],[r.CODABAR,"CODABAR"],[r.CODE_39,"CODE_39"],[r.CODE_93,"CODE_93"],[r.CODE_128,"CODE_128"],[r.DATA_MATRIX,"DATA_MATRIX"],[r.MAXICODE,"MAXICODE"],[r.ITF,"ITF"],[r.EAN_13,"EAN_13"],[r.EAN_8,"EAN_8"],[r.PDF_417,"PDF_417"],[r.RSS_14,"RSS_14"],[r.RSS_EXPANDED,"RSS_EXPANDED"],[r.UPC_A,"UPC_A"],[r.UPC_E,"UPC_E"],[r.UPC_EAN_EXTENSION,"UPC_EAN_EXTENSION"]]);function s(t){return Object.values(r).includes(t)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.URL=1]="URL"}(o||(o={})),function(t){t[t.SCAN_TYPE_CAMERA=0]="SCAN_TYPE_CAMERA",t[t.SCAN_TYPE_FILE=1]="SCAN_TYPE_FILE"}(i||(i={}));var u,c=function(){function t(){}return t.GITHUB_PROJECT_URL="https://github.com/mebjas/html5-qrcode",t.SCAN_DEFAULT_FPS=2,t.DEFAULT_DISABLE_FLIP=!1,t.DEFAULT_REMEMBER_LAST_CAMERA_USED=!0,t.DEFAULT_SUPPORTED_SCAN_TYPE=[i.SCAN_TYPE_CAMERA,i.SCAN_TYPE_FILE],t}(),l=function(){function t(t,e){this.format=t,this.formatName=e}return t.prototype.toString=function(){return this.formatName},t.create=function(e){if(!a.has(e))throw"".concat(e," not in html5QrcodeSupportedFormatsTextMap");return new t(e,a.get(e))},t}(),f=function(){function t(){}return t.createFromText=function(t){return{decodedText:t,result:{text:t}}},t.createFromQrcodeResult=function(t){return{decodedText:t.text,result:t}},t}();!function(t){t[t.UNKWOWN_ERROR=0]="UNKWOWN_ERROR",t[t.IMPLEMENTATION_ERROR=1]="IMPLEMENTATION_ERROR",t[t.NO_CODE_FOUND_ERROR=2]="NO_CODE_FOUND_ERROR"}(u||(u={}));var d=function(){function t(){}return t.createFrom=function(t){return{errorMessage:t,type:u.UNKWOWN_ERROR}},t}(),h=function(){function t(t){this.verbose=t}return t.prototype.log=function(t){this.verbose},t.prototype.warn=function(t){this.verbose&&console.warn(t)},t.prototype.logError=function(t,e){(this.verbose||!0===e)&&console.error(t)},t.prototype.logErrors=function(t){if(0===t.length)throw"Logger#logError called without arguments";this.verbose&&console.error(t)},t}();function p(t){return"undefined"===typeof t||null===t}var g,m=function(){function t(){}return t.codeParseError=function(t){return"QR code parse error, error = ".concat(t)},t.errorGettingUserMedia=function(t){return"Error getting userMedia, error = ".concat(t)},t.onlyDeviceSupportedError=function(){return"The device doesn't support navigator.mediaDevices , only supported cameraIdOrConfig in this case is deviceId parameter (string)."},t.cameraStreamingNotSupported=function(){return"Camera streaming not supported by the browser."},t.unableToQuerySupportedDevices=function(){return"Unable to query supported devices, unknown error."},t.insecureContextCameraQueryError=function(){return"Camera access is only supported in secure context like https or localhost."},t.scannerPaused=function(){return"Scanner paused"},t}(),y=function(){function t(){}return t.scanningStatus=function(){return"Scanning"},t.idleStatus=function(){return"Idle"},t.errorStatus=function(){return"Error"},t.permissionStatus=function(){return"Permission"},t.noCameraFoundErrorStatus=function(){return"No Cameras"},t.lastMatch=function(t){return"Last Match: ".concat(t)},t.codeScannerTitle=function(){return"Code Scanner"},t.cameraPermissionTitle=function(){return"Request Camera Permissions"},t.cameraPermissionRequesting=function(){return"Requesting camera permissions..."},t.noCameraFound=function(){return"No camera found"},t.scanButtonStopScanningText=function(){return"Stop Scanning"},t.scanButtonStartScanningText=function(){return"Start Scanning"},t.torchOnButton=function(){return"Switch On Torch"},t.torchOffButton=function(){return"Switch Off Torch"},t.torchOnFailedMessage=function(){return"Failed to turn on torch"},t.torchOffFailedMessage=function(){return"Failed to turn off torch"},t.scanButtonScanningStarting=function(){return"Launching Camera..."},t.textIfCameraScanSelected=function(){return"Scan an Image File"},t.textIfFileScanSelected=function(){return"Scan using camera directly"},t.selectCamera=function(){return"Select Camera"},t.fileSelectionChooseImage=function(){return"Choose Image"},t.fileSelectionChooseAnother=function(){return"Choose Another"},t.fileSelectionNoImageSelected=function(){return"No image choosen"},t.anonymousCameraPrefix=function(){return"Anonymous Camera"},t.dragAndDropMessage=function(){return"Or drop an image to scan"},t.dragAndDropMessageOnlyImages=function(){return"Or drop an image to scan (other files not supported)"},t.zoom=function(){return"zoom"},t.loadingImage=function(){return"Loading image..."},t.cameraScanAltText=function(){return"Camera based scan"},t.fileScanAltText=function(){return"Fule based scan"},t}(),v=function(){function t(){}return t.poweredBy=function(){return"Powered by "},t.reportIssues=function(){return"Report issues"},t}(),w=function(){function t(){}return t.isMediaStreamConstraintsValid=function(t,e){if("object"!==typeof t){var n=typeof t;return e.logError("videoConstraints should be of type object, the "+"object passed is of type ".concat(n,"."),!0),!1}for(var r=new Set(["autoGainControl","channelCount","echoCancellation","latency","noiseSuppression","sampleRate","sampleSize","volume"]),o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];if(r.has(a))return e.logError("".concat(a," is not supported videoConstaints."),!0),!1}return!0},t}(),_=n(7708),b=function(){function t(t,e,n){if(this.formatMap=new Map([[r.QR_CODE,_.BarcodeFormat.QR_CODE],[r.AZTEC,_.BarcodeFormat.AZTEC],[r.CODABAR,_.BarcodeFormat.CODABAR],[r.CODE_39,_.BarcodeFormat.CODE_39],[r.CODE_93,_.BarcodeFormat.CODE_93],[r.CODE_128,_.BarcodeFormat.CODE_128],[r.DATA_MATRIX,_.BarcodeFormat.DATA_MATRIX],[r.MAXICODE,_.BarcodeFormat.MAXICODE],[r.ITF,_.BarcodeFormat.ITF],[r.EAN_13,_.BarcodeFormat.EAN_13],[r.EAN_8,_.BarcodeFormat.EAN_8],[r.PDF_417,_.BarcodeFormat.PDF_417],[r.RSS_14,_.BarcodeFormat.RSS_14],[r.RSS_EXPANDED,_.BarcodeFormat.RSS_EXPANDED],[r.UPC_A,_.BarcodeFormat.UPC_A],[r.UPC_E,_.BarcodeFormat.UPC_E],[r.UPC_EAN_EXTENSION,_.BarcodeFormat.UPC_EAN_EXTENSION]]),this.reverseFormatMap=this.createReverseFormatMap(),!_)throw"Use html5qrcode.min.js without edit, ZXing not found.";this.verbose=e,this.logger=n;var o=this.createZXingFormats(t),i=new Map;i.set(_.DecodeHintType.POSSIBLE_FORMATS,o),i.set(_.DecodeHintType.TRY_HARDER,!1),this.hints=i}return t.prototype.decodeAsync=function(t){var e=this;return new Promise((function(n,r){try{n(e.decode(t))}catch(o){r(o)}}))},t.prototype.decode=function(t){var e=new _.MultiFormatReader(this.verbose,this.hints),n=new _.HTMLCanvasElementLuminanceSource(t),r=new _.BinaryBitmap(new _.HybridBinarizer(n)),o=e.decode(r);return{text:o.text,format:l.create(this.toHtml5QrcodeSupportedFormats(o.format)),debugData:this.createDebugData()}},t.prototype.createReverseFormatMap=function(){var t=new Map;
2return this.formatMap.forEach((function(e,n,r){t.set(e,n)})),t},t.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have ".concat(t);return this.reverseFormatMap.get(t)},t.prototype.createZXingFormats=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];this.formatMap.has(o)?e.push(this.formatMap.get(o)):this.logger.logError("".concat(o," is not supported by")+"ZXingHtml5QrcodeShim")}return e},t.prototype.createDebugData=function(){return{decoderName:"zxing-js"}},t}(),E=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},C=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},A=function(){function t(e,n,o){if(this.formatMap=new Map([[r.QR_CODE,"qr_code"],[r.AZTEC,"aztec"],[r.CODABAR,"codabar"],[r.CODE_39,"code_39"],[r.CODE_93,"code_93"],[r.CODE_128,"code_128"],[r.DATA_MATRIX,"data_matrix"],[r.ITF,"itf"],[r.EAN_13,"ean_13"],[r.EAN_8,"ean_8"],[r.PDF_417,"pdf417"],[r.UPC_A,"upc_a"],[r.UPC_E,"upc_e"]]),this.reverseFormatMap=this.createReverseFormatMap(),!t.isSupported())throw"Use html5qrcode.min.js without edit, Use BarcodeDetectorDelegate only if it isSupported();";this.verbose=n,this.logger=o;var i=this.createBarcodeDetectorFormats(e);if(this.detector=new BarcodeDetector(i),!this.detector)throw"BarcodeDetector detector not supported"}return t.isSupported=function(){return"BarcodeDetector"in window&&"undefined"!==typeof new BarcodeDetector({formats:["qr_code"]})},t.prototype.decodeAsync=function(t){return E(this,void 0,void 0,(function(){var e,n;return C(this,(function(r){switch(r.label){case 0:return[4,this.detector.detect(t)];case 1:if(!(e=r.sent())||0===e.length)throw"No barcode or QR code detected.";return[2,{text:(n=this.selectLargestBarcode(e)).rawValue,format:l.create(this.toHtml5QrcodeSupportedFormats(n.format)),debugData:this.createDebugData()}]}}))}))},t.prototype.selectLargestBarcode=function(t){for(var e=null,n=0,r=0,o=t;r<o.length;r++){var i=o[r],a=i.boundingBox.width*i.boundingBox.height;a>n&&(n=a,e=i)}if(!e)throw"No largest barcode found";return e},t.prototype.createBarcodeDetectorFormats=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];this.formatMap.has(o)?e.push(this.formatMap.get(o)):this.logger.warn("".concat(o," is not supported by")+"BarcodeDetectorDelegate")}return{formats:e}},t.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have ".concat(t);return this.reverseFormatMap.get(t)},t.prototype.createReverseFormatMap=function(){var t=new Map;return this.formatMap.forEach((function(e,n,r){t.set(e,n)})),t},t.prototype.createDebugData=function(){return{decoderName:"BarcodeDetector"}},t}(),S=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},O=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},I=function(){function t(t,e,n,r){this.EXECUTIONS_TO_REPORT_PERFORMANCE=100,this.executions=0,this.executionResults=[],this.wasPrimaryDecoderUsedInLastDecode=!1,this.verbose=n,e&&A.isSupported()?(this.primaryDecoder=new A(t,n,r),this.secondary
vendor: 17,409 bytes, line 2
2Decoder=new b(t,n,r)):this.primaryDecoder=new b(t,n,r)}return t.prototype.decodeAsync=function(t){return S(this,void 0,void 0,(function(){var e;return O(this,(function(n){switch(n.label){case 0:e=performance.now(),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.getDecoder().decodeAsync(t)];case 2:return[2,n.sent()];case 3:return this.possiblyLogPerformance(e),[7];case 4:return[2]}}))}))},t.prototype.decodeRobustlyAsync=function(t){return S(this,void 0,void 0,(function(){var e,n;return O(this,(function(r){switch(r.label){case 0:e=performance.now(),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,this.primaryDecoder.decodeAsync(t)];case 2:return[2,r.sent()];case 3:if(n=r.sent(),this.secondaryDecoder)return[2,this.secondaryDecoder.decodeAsync(t)];throw n;case 4:return this.possiblyLogPerformance(e),[7];case 5:return[2]}}))}))},t.prototype.getDecoder=function(){return this.secondaryDecoder?!1===this.wasPrimaryDecoderUsedInLastDecode?(this.wasPrimaryDecoderUsedInLastDecode=!0,this.primaryDecoder):(this.wasPrimaryDecoderUsedInLastDecode=!1,this.secondaryDecoder):this.primaryDecoder},t.prototype.possiblyLogPerformance=function(t){if(this.verbose){var e=performance.now()-t;this.executionResults.push(e),this.executions++,this.possiblyFlushPerformanceReport()}},t.prototype.possiblyFlushPerformanceReport=function(){if(!(this.executions<this.EXECUTIONS_TO_REPORT_PERFORMANCE)){for(var t=0,e=0,n=this.executionResults;e<n.length;e++){t+=n[e]}this.executionResults.length;this.executions=0,this.executionResults=[]}},t}(),T=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},R=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},D=function(){function t(t,e){this.name=t,this.track=e}return t.prototype.isSupported=function(){return!!this.track.getCapabilities&&this.name in this.track.getCapabilities()},t.prototype.apply=function(t){var e={};e[this.name]=t;var n={advanced:[e]};return this.track.applyConstraints(n)},t.prototype.value=function(){var t=this.track.getSettings();return this.name in t?t[this.name]:null},t}(),x=function(t){function e(e){return t.call(this,"zoom",e)||this}return T(e,t),e}(function(t){function e(e,n){return t.call(this,e,n)||this}return T(e,t),e.prototype.min=function(){return this.getCapabilities().min},e.prototype.max=function(){return this.getCapabilities().max},e.prototype.step=function(){return this.getCapabilities().step},e.prototype.apply=function(t){var e={};e[this.name]=t;var n={advanced:[e]};return this.track.applyConstraints(n)},e.prototype.getCapabilities=function(){this.failIfNotSupported();var t=this.track.getCapabilities()[this.name];return{min:t.min,max:t.max,step:t.step}},e.prototype.failIfNotSupported=function(){if(!this.isSupported())throw new Error("".concat(this.name," capability not supported"))},e}(D)),N=function(t){function e(e){return t.call(this,"torch",e)||this}return T(e,t),e}(D),P=function(){function t(t){this.track=t}return t.prototype.zoomFeature=function(){return new x(this.track)},t.prototype.torchFeature=function(){return new N(this.track)},t}(),L=function(){function t(t,e,n){this.isClosed=!1,this.parentElement=t,this.mediaStream=e,this.callbacks=n,this.surface=this.createVideoElement(this.parentElement.clientWidth),t.append(this.surface)}return t.prototype.createVideoElement=function(t){var e=document.createElement("video");return e.style.width="".concat(t,"px"),e.style.display="block",e.muted=!0,e.setAttribute("muted","true"),e.playsInline=!0,e},t.prototype.setupSurface=function(){var t=this;this.surface.onabort=function(){throw"RenderedCameraImpl video surface onabort() called"},this.surface.onerror=function(){throw"RenderedCameraImpl video surface onerror() called"};var e=function(){var n=t.surface.clientWidth,r=t.surface.clientHeight;t.callbacks.onRenderSurfaceReady(n,r),t.surface.removeEventListener("playing",e)};this.surface.addEventListener("playing",e),this.surface.srcObject=this.mediaStream,this.surface.play()},t.create=function(e,n,r,o){return M(this,void 0,void 0,(function(){var i,a;return R(this,(function(s){switch(s.label){case 0:return i=new t(e,n,o),r.aspectRatio?(a={aspectRatio:r.aspectRatio},[4,i.getFirstTrackOrFail().applyConstraints(a)]):[3,2];case 1:s.sent(),s.label=2;case 2:return i.setupSurface(),[2,i]}}))}))},t.prototype.failIfClosed=function(){if(this.isClosed)throw"The RenderedCamera has already been closed."},t.prototype.getFirstTrackOrFail=function(){if(this.failIfClosed(),0===this.mediaStream.getVideoTracks().length)throw"No video tracks found";return this.mediaStream.getVideoTracks()[0]},t.prototype.pause=function(){this.failIfClosed(),this.surface.pause()},t.prototype.resume=function(t){this.failIfClosed();var e=this,n=function(){setTimeout(t,200),e.surface.removeEventListener("playing",n)};this.surface.addEventListener("playing",n),this.surface.play()},t.prototype.isPaused=function(){return this.failIfClosed(),this.surface.paused},t.prototype.getSurface=function(){return this.failIfClosed(),this.surface},t.prototype.getRunningTrackCapabilities=function(){return this.getFirstTrackOrFail().getCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getFirstTrackOrFail().getSettings()},t.prototype.applyVideoConstraints=function(t){return M(this,void 0,void 0,(function(){return R(this,(function(e){if("aspectRatio"in t)throw"Changing 'aspectRatio' in run-time is not yet supported.";return[2,this.getFirstTrackOrFail().applyConstraints(t)]}))}))},t.prototype.close=function(){if(this.isClosed)return Promise.resolve();var t=this;return new Promise((function(e,n){var r=t.mediaStream.getVideoTracks().length,o=0;t.mediaStream.getVideoTracks().forEach((function(n){t.mediaStream.removeTrack(n),n.stop(),++o>=r&&(t.isClosed=!0,t.parentElement.removeChild(t.surface),e())}))}))},t.prototype.getCapabilities=function(){return new P(this.getFirstTrackOrFail())},t}(),k=function(){function t(t){this.mediaStream=t}return t.prototype.render=function(t,e,n){return M(this,void 0,void 0,(function(){return R(this,(function(r){return[2,L.create(t,this.mediaStream,e,n)]}))}))},t.create=function(e){return M(this,void 0,void 0,(function(){var n;return R(this,(function(r){switch(r.label){case 0:if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return n={audio:!1,video:e},[4,navigator.mediaDevices.getUserMedia(n)];case 1:return[2,new t(r.sent())]}}))}))},t}(),B=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},j=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},F=function(){function t(){}return t.failIfNotSupported=function(){return B(this,void 0,void 0,(function(){return j(this,(function(e){if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return[2,new t]}))}))},t.prototype.create=function(t){return B(this,void 0,void 0,(function(){return j(this,(function(e){return[2,k.create(t)]}))}))},t}(),U=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},z=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},V=function(){function t(){}return t.retrieve=function(){if(navigator.mediaDevices)return t.getCamerasFromMediaDevices();var e=MediaStreamTrack;return MediaStreamTrack&&e.getSources?t.getCamerasFromMediaStreamTrack():t.rejectWithError()},t.rejectWithError=function(){var e=m.unableToQuerySupportedDevices();return t.isHttpsOrLocalhost()||(e=m.insecureContextCameraQueryError()),Promise.reject(e)},t.isHttpsOrLocalhost=function(){if("https:"===location.protocol)return!0;var t=location.host.split(":")[0];return"127.0.0.1"===t||"localhost"===t},t.getCamerasFromMediaDevices=function(){return U(this,void 0,void 0,(function(){var t,e,n,r,o,i,a;return z(this,(function(s){switch(s.label){case 0:return t=function(t){for(var e=0,n=t.getVideoTracks();e<n.length;e++){var r=n[e];r.enabled=!1,r.stop(),t.removeTrack(r)}},[4,navigator.mediaDevices.getUserMedia({audio:!1,video:!0})];case 1:return e=s.sent(),[4,navigator.mediaDevices.enumerateDevices()];case 2:for(n=s.sent(),r=[],o=0,i=n;o<i.length;o++)"videoinput"===(a=i[o]).kind&&r.push({id:a.deviceId,label:a.label});return t(e),[2,r]}}))}))},t.getCamerasFromMediaStreamTrack=function(){return new Promise((function(t,e){MediaStreamTrack.getSources((function(e){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];"video"===i.kind&&n.push({id:i.id,label:i.label})}t(n)}))}))},t}();!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.NOT_STARTED=1]="NOT_STARTED",t[t.SCANNING=2]="SCANNING",t[t.PAUSED=3]="PAUSED"}(g||(g={}));var H,W=function(){function t(){this.state=g.NOT_STARTED,this.onGoingTransactionNewState=g.UNKNOWN}return t.prototype.directTransition=function(t){this.failIfTransitionOngoing(),this.validateTransition(t),this.state=t},t.prototype.startTransition=function(t){return this.failIfTransitionOngoing(),this.validateTransition(t),this.onGoingTransactionNewState=t,this},t.prototype.execute=function(){if(this.onGoingTransactionNewState===g.UNKNOWN)throw"Transaction is already cancelled, cannot execute().";var t=this.onGoingTransactionNewState;this.onGoingTransactionNewState=g.UNKNOWN,this.directTransition(t)},t.prototype.cancel=function(){if(this.onGoingTransactionNewState===g.UNKNOWN)throw"Transaction is already cancelled, cannot cancel().";this.onGoingTransactionNewState=g.UNKNOWN},t.prototype.getState=function(){return this.state},t.prototype.failIfTransitionOngoing=function(){if(this.onGoingTransactionNewState!==g.UNKNOWN)throw"Cannot transition to a new state, already under transition"},t.prototype.validateTransition=function(t){switch(this.state){case g.UNKNOWN:throw"Transition from unknown is not allowed";case g.NOT_STARTED:this.failIfNewStateIs(t,[g.PAUSED]);break;case g.SCANNING:case g.PAUSED:}},t.prototype.failIfNewStateIs=function(t,e){for(var n=0,r=e;n<r.length;n++){if(t===r[n])throw"Cannot transition from ".concat(this.state," to ").concat(t)}},t}(),G=function(){function t(t){this.stateManager=t}return t.prototype.startTransition=function(t){return this.stateManager.startTransition(t)},t.prototype.directTransition=function(t){this.stateManager.directTransition(t)},t.prototype.getState=function(){return this.stateManager.getState()},t.prototype.canScanFile=function(){return this.stateManager.getState()===g.NOT_STARTED},t.prototype.isScanning=function(){return this.stateManager.getState()!==g.NOT_STARTED},t.prototype.isStrictlyScanning=function(){return this.stateManager.getState()===g.SCANNING},t.prototype.isPaused=function(){return this.stateManager.getState()===g.PAUSED},t}(),Y=function(){function t(){}return t.create=function(){return new G(new W)},t}(),X=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return X(e,t),e.DEFAULT_WIDTH=300,e.DEFAULT_WIDTH_OFFSET=2,e.FILE_SCAN_MIN_HEIGHT=300,e.FILE_SCAN_HIDDEN_CANVAS_PADDING=100,e.MIN_QR_BOX_SIZE=50,e.SHADED_LEFT=1,e.SHADED_RIGHT=2,e.SHADED_TOP=3,e.SHADED_BOTTOM=4,e.SHADED_REGION_ELEMENT_ID="qr-shaded-region",e.VERBOSE=!1,e.BORDER_SHADER_DEFAULT_COLOR="#ffffff",e.BORDER_SHADER_MATCH_COLOR="rgb(90, 193, 56)",e}(c),q=function(){function t(t,e){this.logger=e,this.fps=Z.SCAN_DEFAULT_FPS,t?(t.fps&&(this.fps=t.fps),this.disableFlip=!0===t.disableFlip,this.qrbox=t.qrbox,this.aspectRatio=t.aspectRatio,this.videoConstraints=t.videoConstraints):this.disableFlip=Z.DEFAULT_DISABLE_FLIP}return t.prototype.isMediaStreamConstraintsValid=function(){return this.videoConstraints?w.isMediaStreamConstraintsValid(this.videoConstraints,this.logger):(this.logger.logError("Empty videoConstraints",!0),!1)},t.prototype.isShadedBoxEnabled=function(){return!p(this.qrbox)},t.create=function(e,n){return new t(e,n)},t}(),K=function(){function t(t,e){if(this.element=null,this.canvasElement=null,this.scannerPausedUiElement=null,this.hasBorderShaders=null,this.borderShaders=null,this.qrMatch=null,this.renderedCamera=null,this.qrRegion=null,this.context=null,this.lastScanImageFile=null,this.isScanning=!1,!document.getElementById(t))throw"HTML Element with id=".concat(t," not found");var n;this.elementId=t,this.verbose=!1,"boolean"==typeof e?this.verbose=!0===e:e&&(n=e,this.verbose=!0===n.verbose,n.experimentalFeatures),this.logger=new h(this.verbose),this.qrcode=new I(this.getSupportedFormats(e),this.getUseBarCodeDetectorIfSupported(n),this.verbose,this.logger),this.foreverScanTimeout,this.shouldScan=!0,this.stateManagerProxy=Y.create()}return t.prototype.start=function(t,e,n,r){var o,i=this;if(!t)throw"cameraIdOrConfig is required";if(!n||"function"!=typeof n)throw"qrCodeSuccessCallback is required and should be a function.";o=r||(this.verbose?this.logger.log:function(){});var a=q.create(e,this.logger);this.clearElement();var s=!1;a.videoConstraints&&(a.isMediaStreamConstraintsValid()?s=!0:this.logger.logError("'videoConstraints' is not val
2id 'MediaStreamConstraints, it will be ignored.'",!0));var u=s,c=document.getElementById(this.elementId);c.clientWidth?c.clientWidth:Z.DEFAULT_WIDTH;c.style.position="relative",this.shouldScan=!0,this.element=c;var l=this,f=this.stateManagerProxy.startTransition(g.SCANNING);return new Promise((function(e,r){var s=u?a.videoConstraints:l.createVideoConstraints(t);if(!s)return f.cancel(),void r("videoConstraints should be defined");var c={};u&&!a.aspectRatio||(c.aspectRatio=a.aspectRatio);var d={onRenderSurfaceReady:function(t,e){l.setupUi(t,e,a),l.isScanning=!0,l.foreverScan(a,n,o)}};F.failIfNotSupported().then((function(t){t.create(s).then((function(t){return t.render(i.element,c,d).then((function(t){l.renderedCamera=t,f.execute(),e(null)})).catch((function(t){f.cancel(),r(t)}))})).catch((function(t){f.cancel(),r(m.errorGettingUserMedia(t))}))})).catch((function(t){f.cancel(),r(m.cameraStreamingNotSupported())}))}))},t.prototype.pause=function(t){if(!this.stateManagerProxy.isStrictlyScanning())throw"Cannot pause, scanner is not scanning.";this.stateManagerProxy.directTransition(g.PAUSED),this.showPausedState(),(p(t)||!0!==t)&&(t=!1),t&&this.renderedCamera&&this.renderedCamera.pause()},t.prototype.resume=function(){if(!this.stateManagerProxy.isPaused())throw"Cannot result, scanner is not paused.";if(!this.renderedCamera)throw"renderedCamera doesn't exist while trying resume()";var t=this,e=function(){t.stateManagerProxy.directTransition(g.SCANNING),t.hidePausedState()};this.renderedCamera.isPaused()?this.renderedCamera.resume((function(){e()})):e()},t.prototype.getState=function(){return this.stateManagerProxy.getState()},t.prototype.stop=function(){var t=this;if(!this.stateManagerProxy.isScanning())throw"Cannot stop, scanner is not running or paused.";var e=this.stateManagerProxy.startTransition(g.NOT_STARTED);this.shouldScan=!1,this.foreverScanTimeout&&clearTimeout(this.foreverScanTimeout);var n=this;return this.renderedCamera.close().then((function(){return n.renderedCamera=null,n.element&&(n.element.removeChild(n.canvasElement),n.canvasElement=null),function(){if(t.element){var e=document.getElementById(Z.SHADED_REGION_ELEMENT_ID);e&&t.element.removeChild(e)}}(),n.qrRegion&&(n.qrRegion=null),n.context&&(n.context=null),e.execute(),n.hidePausedState(),n.isScanning=!1,Promise.resolve()}))},t.prototype.scanFile=function(t,e){return this.scanFileV2(t,e).then((function(t){return t.decodedText}))},t.prototype.scanFileV2=function(t,e){var n=this;if(!t||!(t instanceof File))throw"imageFile argument is mandatory and should be instance of File. Use 'event.target.files[0]'.";if(p(e)&&(e=!0),!this.stateManagerProxy.canScanFile())throw"Cannot start file scan - ongoing camera scan";return new Promise((function(r,o){n.possiblyCloseLastScanImageFile(),n.clearElement(),n.lastScanImageFile=URL.createObjectURL(t);var i=new Image;i.onload=function(){var t=i.width,a=i.height,s=document.getElementById(n.elementId),u=s.clientWidth?s.clientWidth:Z.DEFAULT_WIDTH,c=Math.max(s.clientHeight?s.clientHeight:a,Z.FILE_SCAN_MIN_HEIGHT),l=n.computeCanvasDrawConfig(t,a,u,c);if(e){var d=n.createCanvasElement(u,c,"qr-canvas-visible");d.style.display="inline-block",s.appendChild(d);var h=d.getContext("2d");if(!h)throw"Unable to get 2d context from canvas";h.canvas.width=u,h.canvas.height=c,h.drawImage(i,0,0,t,a,l.x,l.y,l.width,l.height)}var p=Z.FILE_SCAN_HIDDEN_CANVAS_PADDING,g=Math.max(i.width,l.width),m=Math.max(i.height,l.height),y=g+2*p,v=m+2*p,w=n.createCanvasElement(y,v);s.appendChild(w);var _=w.getContext("2d");if(!_)throw"Unable to get 2d context from canvas";_.canvas.width=y,_.canvas.height=v,_.drawImage(i,0,0,t,a,p,p,g,m);try{n.qrcode.decodeRobustlyAsync(w).then((function(t){r(f.createFromQrcodeResult(t))})).catch(o)}catch(b){o("QR code parse error, error = ".concat(b))}},i.onerror=o,i.onabort=o,i.onstalled=o,i.onsuspend=o,i.src=URL.createObjectURL(t)}))},t.prototype.clear=function(){this.clearElement()},t.getCameras=function(){return V.retrieve()},t.prototype.getRunningTrackCapabilities=function(){return this.getRenderedCameraOrFail().getRunningTrackCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getRenderedCameraOrFail().getRunningTrackSettings()},t.prototype.getRunningTrackCameraCapabilities=function(){return this.getRenderedCameraOrFail().getCapabilities()},t.prototype.applyVideoConstraints=function(t){if(!t)throw"videoConstaints is required argument.";if(!w.isMediaStreamConstraintsValid(t,this.logger))throw"invalid videoConstaints passed, check logs for more details";return this.getRenderedCameraOrFail().applyVideoConstraints(t)},t.prototype.getRenderedCameraOrFail=function(){if(null==this.renderedCamera)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";return this.renderedCamera}
vendor: 4,487 bytes, line 2
2,t.prototype.getSupportedFormats=function(t){var e=[r.QR_CODE,r.AZTEC,r.CODABAR,r.CODE_39,r.CODE_93,r.CODE_128,r.DATA_MATRIX,r.MAXICODE,r.ITF,r.EAN_13,r.EAN_8,r.PDF_417,r.RSS_14,r.RSS_EXPANDED,r.UPC_A,r.UPC_E,r.UPC_EAN_EXTENSION];if(!t||"boolean"==typeof t)return e;if(!t.formatsToSupport)return e;if(!Array.isArray(t.formatsToSupport))throw"configOrVerbosityFlag.formatsToSupport should be undefined or an array.";if(0===t.formatsToSupport.length)throw"Atleast 1 formatsToSupport is needed.";for(var n=[],o=0,i=t.formatsToSupport;o<i.length;o++){var a=i[o];s(a)?n.push(a):this.logger.warn("Invalid format: ".concat(a," passed in config, ignoring."))}if(0===n.length)throw"None of formatsToSupport match supported values.";return n},t.prototype.getUseBarCodeDetectorIfSupported=function(t){if(p(t))return!0;if(!p(t.useBarCodeDetectorIfSupported))return!1!==t.useBarCodeDetectorIfSupported;if(p(t.experimentalFeatures))return!0;var e=t.experimentalFeatures;return!!p(e.useBarCodeDetectorIfSupported)||!1!==e.useBarCodeDetectorIfSupported},t.prototype.validateQrboxSize=function(t,e,n){var r=this,o=n.qrbox;this.validateQrboxConfig(o);var i,a=this.toQrdimensions(t,e,o),s=function(t){if(t<Z.MIN_QR_BOX_SIZE)throw"minimum size of 'config.qrbox' dimension value is"+" ".concat(Z.MIN_QR_BOX_SIZE,"px.")};s(a.width),s(a.height),a.width=((i=a.width)>t&&(r.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),i=t),i)},t.prototype.validateQrboxConfig=function(t){if("number"!==typeof t&&"function"!==typeof t&&(void 0===t.width||void 0===t.height))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},t.prototype.toQrdimensions=function(t,e,n){if("number"===typeof n)return{width:n,height:n};if("function"===typeof n)try{return n(t,e)}catch(r){throw new Error("qrbox config was passed as a function but it failed with unknown error"+r)}return n},t.prototype.setupUi=function(t,e,n){n.isShadedBoxEnabled()&&this.validateQrboxSize(t,e,n);var r=p(n.qrbox)?{width:t,height:e}:n.qrbox;this.validateQrboxConfig(r);var o=this.toQrdimensions(t,e,r);o.height>e&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var i=n.isShadedBoxEnabled()&&o.height<=e,a={x:0,y:0,width:t,height:e},s=i?this.getShadedRegionBounds(t,e,o):a,u=this.createCanvasElement(s.width,s.height),c=u.getContext("2d",{willReadFrequently:!0});c.canvas.width=s.width,c.canvas.height=s.height,this.element.append(u),i&&this.possiblyInsertShadingElement(this.element,t,e,o),this.createScannerPausedUiElement(this.element),this.qrRegion=s,this.context=c,this.canvasElement=u},t.prototype.createScannerPausedUiElement=function(t){var e=document.createElement("div");e.innerText=m.scannerPaused(),e.style.display="none",e.style.position="absolute",e.style.top="0px",e.style.zIndex="1",e.style.background="rgba(9, 9, 9, 0.46)",e.style.color="#FFECEC",e.style.textAlign="center",e.style.width="100%",t.appendChild(e),this.scannerPausedUiElement=e},t.prototype.scanContext=function(t,e){var n=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then((function(e){return t(e.text,f.createFromQrcodeResult(e)),n.possiblyUpdateShaders(!0),!0})).catch((function(t){n.possiblyUpdateShaders(!1);var r=m.codeParseError(t);return e(r,d.createFrom(r)),!1}))},t.prototype.foreverScan=function(t,e,n){var r=this;if(this.shouldScan&&this.renderedCamera){var o=this.renderedCamera.getSurface(),i=o.videoWidth/o.clientWidth,a=o.videoHeight/o.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var s=this.qrRegion.width*i,u=this.qrRegion.height*a,c=this.qrRegion.x*i,l=this.qrRegion.y*a;this.context.drawImage(o,c,l,s,u,0,0,this.qrRegion.width,this.qrRegion.height);var f=function(){r.foreverScanTimeout=setTimeout((function(){r.foreverScan(t,e,n)}),r.getTimeoutFps(t.fps))};this.scanContext(e,n).then((function(o){o||!0===t.disableFlip?f():(r.context.translate(r.context.canvas.width,0),r.context.scale(-1,1),r.scanContext(e,n).finally((function(){f()})))})).catch((function(t){r.logger.logError("Error happend while scanning context",t),f()}))}},t.prototype.createVideoConstraints=function(t){if("string"==typeof t)return{deviceId:{exact:t}};if("object"==typeof t){var e={user:!0,environment:!0},n=function(t){if(t in e)return!0;
2throw"config has invalid 'facingMode' value = "+"'".concat(t,"'")},r=Object.keys(t);if(1!==r.length)throw"'cameraIdOrConfig' object should have exactly 1 key,"+" if passed as an object, found ".concat(r.length," keys");var o=Object.keys(t)[0];if("facingMode"!==o&&"deviceId"!==o)throw"Only '".concat("facingMode","' and '").concat("deviceId","' ")+" are supported for 'cameraIdOrConfig'";if("facingMode"!==o){var i=t.deviceId;if("string"==typeof i)return{deviceId:i};if("object"==typeof i){if("exact"in i)return{deviceId:{exact:i["".concat("exact")]}};throw"'deviceId' should be string or object with"+" ".concat("exact"," as key.")}throw"Invalid type of 'deviceId' = ".concat(typeof i)}var a=t.facingMode;if("string"==typeof a){if(n(a))return{facingMode:a}}else{if("object"!=typeof a)throw"Invalid type of 'facingMode' = ".concat(typeof a);if(!("exact"in a))throw"'facingMode' should be string or object with"+" ".concat("exact"," as key.");if(n(a["".concat("exact")]))return{facingMode:{exact:a["".concat("exact")]}}}}throw"Invalid type of 'cameraIdOrConfig' = ".concat(typeof t)},t.prototype.computeCanvasDrawConfig=function(t,e,n,r){if(t<=n&&e<=r)return{x:(n-t)/2,y:(r-e)/2,width:t,height:e};var o=t,i=e;return t>n&&(e*=n/t,t=n),e>r&&(t*=r/e,e=r),this.logger.log("Image downsampled from "+"".concat(o,"X").concat(i)+" to ".concat(t,"X").concat(e,".")),this.computeCanvasDrawConfig(t,e,n,r)},t.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},t.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach((function(e){e.style.backgroundColor=t?Z.BORDER_SHADER_MATCH_COLOR:Z.BORDER_SHADER_DEFAULT_COLOR})),this.qrMatch=t)},t.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},t.prototype.createCanvasElement=function(t,e,n){var r=t,o=e,i=document.createElement("canvas");return i.style.width="".concat(r,"px"),i.style.height="".concat(o,"px"),i.style.display="none",i.id=p(n)?"qr-canvas":n,i},t.prototype.getShadedRegionBounds=function(t,e,n){if(n.width>t||n.height>e)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-n.width)/2,y:(e-n.height)/2,width:n.width,height:n.height}},t.prototype.possiblyInsertShadingElement=function(t,e,n,r){if(!(e-r.width<1||n-r.height<1)){var o=document.createElement("div");o.style.position="absolute";var i=(e-r.width)/2,a=(n-r.height)/2;if(o.style.borderLeft="".concat(i,"px solid rgba(0, 0, 0, 0.48)"),o.style.borderRight="".concat(i,"px solid rgba(0, 0, 0, 0.48)"),o.style.borderTop="".concat(a,"px solid rgba(0, 0, 0, 0.48)"),o.style.borderBottom="".concat(a,"px solid rgba(0, 0, 0, 0.48)"),o.style.boxSizing="border-box",o.style.top="0px",o.style.bottom="0px",o.style.left="0px",o.style.right="0px",o.id="".concat(Z.SHADED_REGION_ELEMENT_ID),e-r.width<11||n-r.height<11)this.hasBorderShaders=!1;else{this.insertShaderBorders(o,40,5,-5,null,0,!0),this.insertShaderBorders(o,40,5,-5,null,0,!1),this.insertShaderBorders(o,40,5,null,-5,0,!0),this.insertShaderBorders(o,40,5,null,-5,0,!1),this.insertShaderBorders(o,5,45,-5,null,-5,!0),this.insertShaderBorders(o,5,45,null,-5,-5,!0),this.insertShaderBorders(o,5,45,-5,null,-5,!1),this.insertShaderBorders(o,5,45,null,-5,-5,!1),this.hasBorderShaders=!0}t.append(o)}},t.prototype.insertShaderBorders=function(t,e,n,r,o,i,a){var s=document.createElement("div");s.style.position="absolute",s.style.backgroundColor=Z.BORDER_SHADER_DEFAULT_COLOR,s.style.width="".concat(e,"px"),s.style.height="".concat(n,"px"),null!==r&&(s.style.top="".concat(r,"px")),null!==o&&(s.style.bottom="".concat(o,"px")),a?s.style.left="".concat(i,"px"):s.style.right="".concat(i,"px"),this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(s),t.appendChild(s)},t.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},t.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},t.prototype.getTimeoutFps=function(t){return 1e3/t},t}(),Q="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NjAgNDYwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NjAgNDYwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjMwIDBDMTAyLjk3NSAwIDAgMTAyLjk3NSAwIDIzMHMxMDIuOTc1IDIzMCAyMzAgMjMwIDIzMC0x
2MDIuOTc0IDIzMC0yMzBTMzU3LjAyNSAwIDIzMCAwem0zOC4zMzMgMzc3LjM2YzAgOC42NzYtNy4wMzQgMTUuNzEtMTUuNzEgMTUuNzFoLTQzLjEwMWMtOC42NzYgMC0xNS43MS03LjAzNC0xNS43MS0xNS43MVYyMDIuNDc3YzAtOC42NzYgNy4wMzMtMTUuNzEgMTUuNzEtMTUuNzFoNDMuMTAxYzguNjc2IDAgMTUuNzEgNy4wMzMgMTUuNzEgMTUuNzFWMzc3LjM2ek0yMzAgMTU3Yy0yMS41MzkgMC0zOS0xNy40NjEtMzktMzlzMTcuNDYxLTM5IDM5LTM5IDM5IDE3LjQ2MSAzOSAzOS0xNy40NjEgMzktMzkgMzl6Ii8+PC9zdmc+",J=function(){function t(){}return t.createDefault=function(){return{hasPermission:!1,lastUsedCameraId:null}},t}(),$=function(){function t(){this.data=J.createDefault();var e=localStorage.getItem(t.LOCAL_STORAGE_KEY);e?this.data=JSON.parse(e):this.reset()}return t.prototype.hasCameraPermissions=function(){return this.data.hasPermission},t.prototype.getLastUsedCameraId=function(){return this.data.lastUsedCameraId},t.prototype.setHasPermission=function(t){this.data.hasPermission=t,this.flush()},t.prototype.setLastUsedCameraId=function(t){this.data.lastUsedCameraId=t,this.flush()},t.prototype.resetLastUsedCameraId=function(){this.data.lastUsedCameraId=null,this.flush()},t.prototype.reset=function(){this.data=J.createDefault(),this.flush()},t.prototype.flush=function(){localStorage.setItem(t.LOCAL_STORAGE_KEY,JSON.stringify(this.data))},t.LOCAL_STORAGE_KEY="HTML5_QRCODE_DATA",t}(),tt=function(){function t(){this.infoDiv=document.createElement("div")}return t.prototype.renderInto=function(t){this.infoDiv.style.position="absolute",this.infoDiv.style.top="10px",this.infoDiv.style.right="10px",this.infoDiv.style.zIndex="2",this.infoDiv.style.display="none",this.infoDiv.style.padding="5pt",this.infoDiv.style.border="1px solid #171717",this.infoDiv.style.fontSize="10pt",this.infoDiv.style.background="rgb(0 0 0 / 69%)",this.infoDiv.style.borderRadius="5px",this.infoDiv.style.textAlign="center",this.infoDiv.style.fontWeight="400",this.infoDiv.style.color="white",this.infoDiv.innerText=v.poweredBy();var e=document.createElement("a");e.innerText="ScanApp",e.href="https://scanapp.org",e.target="new",e.style.color="white",this.infoDiv.appendChild(e);var n=document.createElement("br"),r=document.createElement("br");this.infoDiv.appendChild(n),this.infoDiv.appendChild(r);var o=document.createElement("a");o.innerText=v.reportIssues(),o.href="https://github.com/mebjas/html5-qrcode/issues",o.target="new",o.style.color="white",this.infoDiv.appendChild(o),t.appendChild(this.infoDiv)},t.prototype.show=function(){this.infoDiv.style.display="block"},t.prototype.hide=function(){this.infoDiv.style.display="none"},t}(),et=function(){function t(t,e){this.isShowingInfoIcon=!0,this.onTapIn=t,this.onTapOut=e,this.infoIcon=document.createElement("img")}return t.prototype.renderInto=function(t){var e=this;this.infoIcon.alt="Info icon",this.infoIcon.src=Q,this.infoIcon.style.position="absolute",this.infoIcon.style.top="4px",this.infoIcon.style.right="4px",this.infoIcon.style.opacity="0.6",this.infoIcon.style.cursor="pointer",this.infoIcon.style.zIndex="2",this.infoIcon.style.width="16px",this.infoIcon.style.height="16px",this.infoIcon.onmouseover=function(t){return e.onHoverIn()},this.infoIcon.onmouseout=function(t){return e.onHoverOut()},this.infoIcon.onclick=function(t){return e.onClick()},t.appendChild(this.infoIcon)},t.prototype.onHoverIn=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="1")},t.prototype.onHoverOut=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="0.6")},t.prototype.onClick=function(){this.isShowingInfoIcon?(this.isShowingInfoIcon=!1,this.onTapIn(),this.infoIcon.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAQgAAAEIBarqQRAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE1SURBVDiNfdI7S0NBEAXgLya1otFgpbYSbISAgpXYi6CmiH9KCAiChaVga6OiWPgfRDQ+0itaGVNosXtluWwcuMzePfM4M3sq8lbHBubwg1dc4m1E/J/N4ghDPOIsfk/4xiEao5KX0McFljN4C9d4QTPXuY99jP3DsIoDPGM6BY5i5yI5R7O4q+ImFkJY2DCh3cAH2klyB+9J1xUMMAG7eCh1a+Mr+k48b5diXrFVwwLuS+BJ9MfR7+G0FHOHhTHhnXNWS87VDF4pcnfQK4Ep7XScNLmPTZgURNKKYENYWDpzW1BhscS1WHS8CDgURFJQrWcoF3c13KKbgg1BYQfy8xZWEzTTw1QZbAoKu8FqJnktdu5hcVSHmchiILzzuaDQvjBzV2m8yohCE1jHfPx/xhU+y4G/D75ELlRJsSYAAAAASUVORK5CYII=",this.infoIcon.style.opacity="1"):(this.isShowingInfoIcon=!0,this.onTapOut(),this.infoIcon.src=
vendor: 27,922 bytes, line 2
2Q,this.infoIcon.style.opacity="0.6")},t}(),nt=function(){function t(){var t=this;this.infoDiv=new tt,this.infoIcon=new et((function(){t.infoDiv.show()}),(function(){t.infoDiv.hide()}))}return t.prototype.renderInto=function(t){this.infoDiv.renderInto(t),this.infoIcon.renderInto(t)},t}(),rt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},ot=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},it=function(){function t(){}return t.hasPermissions=function(){return rt(this,void 0,void 0,(function(){var t,e,n,r;return ot(this,(function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.enumerateDevices()];case 1:for(t=o.sent(),e=0,n=t;e<n.length;e++)if("videoinput"===(r=n[e]).kind&&r.label)return[2,!0];return[2,!1]}}))}))},t}(),at=function(){function t(t){this.supportedScanTypes=this.validateAndReturnScanTypes(t)}return t.prototype.getDefaultScanType=function(){return this.supportedScanTypes[0]},t.prototype.hasMoreThanOneScanType=function(){return this.supportedScanTypes.length>1},t.prototype.isCameraScanRequired=function(){for(var e=0,n=this.supportedScanTypes;e<n.length;e++){var r=n[e];if(t.isCameraScanType(r))return!0}return!1},t.isCameraScanType=function(t){return t===i.SCAN_TYPE_CAMERA},t.isFileScanType=function(t){return t===i.SCAN_TYPE_FILE},t.prototype.validateAndReturnScanTypes=function(t){if(!t||0===t.length)return c.DEFAULT_SUPPORTED_SCAN_TYPE;var e=c.DEFAULT_SUPPORTED_SCAN_TYPE.length;if(t.length>e)throw"Max ".concat(e," values expected for ")+"supportedScanTypes";for(var n=0,r=t;n<r.length;n++){var o=r[n];if(!c.DEFAULT_SUPPORTED_SCAN_TYPE.includes(o))throw"Unsupported scan type ".concat(o)}return t},t}(),st=function(){function t(){}return t.ALL_ELEMENT_CLASS="html5-qrcode-element",t.CAMERA_PERMISSION_BUTTON_ID="html5-qrcode-button-camera-permission",t.CAMERA_START_BUTTON_ID="html5-qrcode-button-camera-start",t.CAMERA_STOP_BUTTON_ID="html5-qrcode-button-camera-stop",t.TORCH_BUTTON_ID="html5-qrcode-button-torch",t.CAMERA_SELECTION_SELECT_ID="html5-qrcode-select-camera",t.FILE_SELECTION_BUTTON_ID="html5-qrcode-button-file-selection",t.ZOOM_SLIDER_ID="html5-qrcode-input-range-zoom",t.SCAN_TYPE_CHANGE_ANCHOR_ID="html5-qrcode-anchor-scan-type-change",t.TORCH_BUTTON_CLASS_TORCH_ON="html5-qrcode-button-torch-on",t.TORCH_BUTTON_CLASS_TORCH_OFF="html5-qrcode-button-torch-off",t}(),ut=function(){function t(){}return t.createElement=function(t,e){var n=document.createElement(t);return n.id=e,n.classList.add(st.ALL_ELEMENT_CLASS),"button"===t&&n.setAttribute("type","button"),n},t}(),ct=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},lt=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},ft=function(){function t(t,e,n){this.isTorchOn=!1,this.torchCapability=t,this.buttonController=e,this.onTorchActionFailureCallback=n}return t.prototype.isTorchEnabled=function(){return this.isTorchOn},t.prototype.flipState=function(){return ct(this,void 0,void 0,(function(){var t,e;return lt(this,(function(n){switch(n.label){case 0:this.buttonController.disable(),t=!this.isTorchOn,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.torchCapability.apply(t)];case 2:return n.sent(),this.updateUiBasedOnLatestSettings(this.torchCapability.value(),t),[3,4];case 3:return e=n.sent(),this.propagateFailure(t,e),this.buttonController.enable(),[3,4];case 4:return[2]}}))}))},t.prototype.updateUiBasedOnLatestSettings=function(t,e){t===e?(this.buttonController.setText(e?y.torchOffButton():y.torchOnButton()),this.isTorchOn=e):this.propagateFailure(e),this.buttonController.enable()},t.prototype.propagateFailure=function(t,e){var n=t?y.torchOnFailedMessage():y.torchOffFailedMessage();e&&(n+="; Error = "+e),this.onTorchActionFailureCallback(n)},t.prototype.reset=function(){this.isTorchOn=!1},t}(),dt=function(){function t(t,e){this.onTorchActionFailureCallback=e,this.torchButton=ut.createElement("button",st.TORCH_BUTTON_ID),this.torchController=new ft(t,this,e)}return t.prototype.render=function(t,e){var n=this;this.torchButton.innerText=y.torchOnButton(),this.torchButton.style.display=e.display,this.torchButton.style.marginLeft=e.marginLeft;var r=this;this.torchButton.addEventListener("click",(function(t){return ct(n,void 0,void 0,(function(){return lt(this,(function(t){switch(t.label){case 0:return[4,r.torchController.flipState()];case 1:return t.sent(),r.torchController.isTorchEnabled()?(r.torchButton.classList.remove(st.TORCH_BUTTON_CLASS_TORCH_OFF),r.torchButton.classList.add(st.TORCH_BUTTON_CLASS_TORCH_ON)):(r.torchButton.classList.remove(st.TORCH_BUTTON_CLASS_TORCH_ON),r.torchButton.classList.add(st.TORCH_BUTTON_CLASS_TORCH_OFF)),[2]}}))}))})),t.appendChild(this.torchButton)},t.prototype.updateTorchCapability=function(t){this.torchController=new ft(t,this,this.onTorchActionFailureCallback)},t.prototype.getTorchButton=function(){return this.torchButton},t.prototype.hide=function(){this.torchButton.style.display="none"},t.prototype.show=function(){this.torchButton.style.display="inline-block"},t.prototype.disable=function(){this.torchButton.disabled=!0},t.prototype.enable=function(){this.torchButton.disabled=!1},t.prototype.setText=function(t){this.torchButton.innerText=t},t.prototype.reset=function(){this.torchButton.innerText=y.torchOnButton(),this.torchController.reset()},t.create=function(e,n,r,o){var i=new t(n,o);return i.render(e,r),i},t}(),ht=function(){function t(t,e,n){this.fileBasedScanRegion=this.createFileBasedScanRegion(),this.fileBasedScanRegion.style.display=e?"block":"none",t.appendChild(this.fileBasedScanRegion);var r=document.createElement("label");r.setAttribute("for",this.getFileScanInputId()),r.style.display="inline-block",this.fileBasedScanRegion.appendChild(r),this.fileSelectionButton=ut.createElement("button",st.FILE_SELECTION_BUTTON_ID),this.setInitialValueToButton(),this.fileSelectionButton.addEventListener("click",(function(t){r.click()})),r.append(this.fileSelectionButton),this.fileScanInput=ut.createElement("input",this.getFileScanInputId()),this.fileScanInput.type="file",this.fileScanInput.accept="image/*",this.fileScanInput.style.display="none",r.appendChild(this.fileScanInput);var o=this;this.fileScanInput.addEventListener("change",(function(t){if(null!=t&&null!=t.target){var e=t.target;if(!e.files||0!==e.files.length){var r=e.files[0],i=r.name;o.setImageNameToButton(i),n(r)}}}));var i=this.createDragAndDropMessage();this.fileBasedScanRegion.appendChild(i),this.fileBasedScanRegion.addEventListener("dragenter",(function(t){o.fileBasedScanRegion.style.border=o.fileBasedScanRegionActiveBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("dragleave",(function(t){o.fileBasedScanRegion.style.border=o.fileBasedScanRegionDefaultBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("dragover",(function(t){o.fileBasedScanRegion.style.border=o.fileBasedScanRegionActiveBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("drop",(function(t){t.stopPropagation(),t.preventDefault(),o.fileBasedScanRegion.style.border=o.fileBasedScanRegionDefaultBorder();var e=t.dataTransfer;if(e){var r=e.files;if(!r||0===r.length)return;for(var a=!1,s=0;s<r.length;++s){var u=r.item(s);if(u){if(u.type.match(/image.*/)){a=!0;var c=u.name;o.setImageNameToButton(c),n(u),i.innerText=y.dragAndDropMessage();break}}}a||(i.innerText=y.dragAndDropMessageOnlyImages())}}))}return t.prototype.hide=function(){this.fileBasedScanRegion.style.display="none",this.fileScanInput.disabled=!0},t.prototype.show=function(){this.fileBasedScanRegion.style.display="block",this.fileScanInput.disabled=!1},t.prototype.isShowing=function(){return"block"===this.fileBasedScanRegion.style.display},t.prototype.resetValue=function(){this.fileScanInput.value="",this.setInitialValueToButton()},t.prototype.createFileBasedScanRegion=function(){var t=document.createElement("div");return t.style.textAlign="center",t.style.margin="auto",t.style.width="80%",t.style.maxWidth="600px",t.style.border=this.fileBasedScanRegionDefaultBorder(),t.style.padding="10px",t.style.marginBottom="10px",t},t.prototype.fileBasedScanRegionDefaultBorder=function(){return"6px dashed #ebebeb"},t.prototype.fileBasedScanRegionActiveBorder=function(){return"6px dashed rgb(153 151 151)"},t.prototype.createDragAndDropMessage=function(){var t=document.createElement("div");return t.innerText=y.dragAndDropMessage(),t.style.fontWeight="400",t},t.prototype.setImageNameToButton=function(t){if(t.length>20){var e=t.substring(0,8),n=t.length,r=t.substring(n-8,n);t="".concat(e,"....").concat(r)}var o=y.fileSelectionChooseAnother()+" - "+t;this.fileSelectionButton.innerText=o},t.prototype.setInitialValueToButton=function(){var t=y.fileSelectionChooseImage()+" - "+y.fileSelectionNoImageSelected();this.fileSelectionButton.innerText=t},t.prototype.getFileScanInputId=function(){return"html5-qrcode-private-filescan-input"},t.create=function(e,n,r){return new t(e,n,r)},t}(),pt=function(){function t(t){this.selectElement=ut.createElement("select",st.CAMERA_SELECTION_SELECT_ID),this.cameras=t,this.options=[]}return t.prototype.render=function(t){var e=document.createElement("span");e.style.marginRight="10px";var n=this.cameras.length;if(0===n)throw new Error("No cameras found");if(1===n)e.style.display="none";else{var r=y.selectCamera();e.innerText="".concat(r," (").concat(this.cameras.length,")  ")}for(var o=1,i=0,a=this.cameras;i<a.length;i++){var s=a[i],u=s.id,c=null==s.label?u:s.label;c&&""!==c||(c=[y.anonymousCameraPrefix(),o++].join(" "));var l=document.createElement("option");l.value=u,l.innerText=c,this.options.push(l),this.selectElement.appendChild(l)}e.appendChild(this.selectElement),t.appendChild(e)},t.prototype.disable=function(){this.selectElement.disabled=!0},t.prototype.isDisabled=function(){return!0===this.selectElement.disabled},t.prototype.enable=function(){this.selectElement.disabled=!1},t.prototype.getValue=function(){return this.selectElement.value},t.prototype.hasValue=function(t){for(var e=0,n=this.options;e<n.length;e++){if(n[e].value===t)return!0}return!1},t.prototype.setValue=function(t){if(!this.hasValue(t))throw new Error("".concat(t," is not present in the camera list."));this.selectElement.value=t},t.prototype.hasSingleItem=function(){return 1===this.cameras.length},t.prototype.numCameras=function(){return this.cameras.length},t.create=function(e,n){var r=new t(n);return r.render(e),r},t}(),gt=function(){function t(){this.onChangeCallback=null,this.zoomElementContainer=document.createElement("div"),this.rangeInput=ut.createElement("input",st.ZOOM_SLIDER_ID),this.rangeInput.type="range",this.rangeText=document.createElement("span"),this.rangeInput.min="1",this.rangeInput.max="5",this.rangeInput.value="1",this.rangeInput.step="0.1"}return t.prototype.render=function(t,e){this.zoomElementContainer.style.display=e?"block":"none",this.zoomElementContainer.style.padding="5px 10px",this.zoomElementContainer.style.textAlign="center",t.appendChild(this.zoomElementContainer),this.rangeInput.style.display="inline-block",this.rangeInput.style.width="50%",this.rangeInput.style.height="5px",this.rangeInput.style.background="#d3d3d3",this.rangeInput.style.outline="none",this.rangeInput.style.opacity="0.7";var n=y.zoom();this.rangeText.innerText="".concat(this.rangeInput.value,"x ").concat(n),this.rangeText.style.marginRight="10px";var r=this;this.rangeInput.addEventListener("input",(function(){return r.onValueChange()})),this.rangeInput.addEventListener("change",(function(){return r.onValueChange()})),this.zoomElementContainer.appendChild(this.rangeInput),this.zoomElementContainer.appendChild(this.rangeText)},t.prototype.onValueChange=function(){var t=y.zoom();this.rangeText.innerText="".concat(this.rangeInput.value,"x ").concat(t),this.onChangeCallback&&this.onChangeCallback(parseFloat(this.rangeInput.value))},t.prototype.setValues=function(t,e,n,r){this.rangeInput.min=t.toString(),this.rangeInput.max=e.toString(),this.rangeInput.step=r.toString(),this.rangeInput.value=n.toString(),this.onValueChange()},t.prototype.show=function(){this.zoomElementContainer.style.display="block"},t.prototype.hide=function(){this.zoomElementContainer.style.display="none"},t.prototype.setOnCameraZoomValueChangeCallback=function(t){this.onChangeCallback=t},t.prototype.removeOnCameraZoomValueChangeCallback=function(){this.onChangeCallback=null},t.create=function(e,n){var r=new t;return r.render(e,n),r},t}();!function(t){t[t.STATUS_DEFAULT=0]="STATUS_DEFAULT",t[t.STATUS_SUCCESS=1]="STATUS_SUCCESS",t[t.STATUS_WARNING=2]="STATUS_WARNING",t[t.STATUS_REQUESTING_PERMISSION=3]="STATUS_REQUESTING_PERMISSION"}(H||(H={}));!function(){function t(t,e,n){if(this.lastMatchFound=null,this.cameraScanImage=null,this.fileScanImage=null,this.fileSelectionUi=null,this.elementId=t,this.config=this.createConfig(e),this.verbose=!0===n,!document.getElementById(t))throw"HTML Element with id=".concat(t," not found");this.scanTypeSelector=new at(this.config.supportedScanTypes),this.currentScanType=this.scanTypeSelector.getDefaultScanType(),this.sectionSwapAllowed=!0,this.logger=new h(this.verbose),this.persistedDataManager=new $,!0!==e.rememberLastUsedCamera&&this.persistedDataManager.reset()}t.prototype.render=function(t,e){var n=this;this.lastMatchFound=null,this.qrCodeSuccessCallback=function(e,r){if(t)t(e,r);else{if(n.lastMatchFound===e)return;n.lastMatchFound=e,n.setHeaderMessage(y.lastMatch(e),H.STATUS_SUCCESS)}},this.qrCodeErrorCallback=function(t,n){e&&e(t,n)};var r,o,i=document.getElementById(this.elementId);if(!i)throw"HTML Element with id=".concat(this.elementId," not found");i.innerHTML="",this.createBasicLayout(i),this.html5Qrcode=new K(this.getScanRegionId(),(r=this.config,o=this.verbose,{formatsToSupport:r.formatsToSupport,useBarCodeDetectorIfSupported:r.useBarCodeDetectorIfSupported,experimentalFeatures:r.experimentalFeatures,verbose:o}))},t.prototype.pause=function(t){(p(t)||!0!==t)&&(t=!1),this.getHtml5QrcodeOrFail().pause(t)},t.prototype.resume=function(){this.getHtml5QrcodeOrFail().resume()},t.prototype.getState=function(){return this.getHtml5QrcodeOrFail().getState()},t.prototype.clear=function(){var t=this,e=function(){var e=document.getElementById(t.elementId);e&&(e.innerHTML="",t.resetBasicLayout(e))};return this.html5Qrcode?new Promise((function(n,r){t.html5Qrcode?t.html5Qrcode.isScanning?t.html5Qrcode.stop().then((function(r){t.html5Qrcode?(t.html5Qrcode.clear(),e(),n()):n()})).catch((function(e){t.verbose&&t.logger.logError("Unable to stop qrcode scanner",e),r(e)})):(t.html5Qrcode.clear(),e(),n()):n()})):Promise.resolve()},t.prototype.getRunningTrackCapabilities=function(){return this.getHtml5QrcodeOrFail().getRunningTrackCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getHtml5QrcodeOrFail().getRunningTrackSettings()},t.prototype.applyVideoConstraints=function(t){return this.getHtml5QrcodeOrFail().applyVideoConstraints(t)},t.prototype.getHtml5QrcodeOrFail=function(){if(!this.html5Qrcode)throw"Code scanner not initialized.";return this.html5Qrcode},t.prototype.createConfig=function(t){return t?(t.fps||(t.fps=c.SCAN_DEFAULT_FPS),t.rememberLastUsedCamera!==!c.DEFAULT_REMEMBER_LAST_CAMERA_USED&&(t.rememberLastUsedCamera=c.DEFAULT_REMEMBER_LAST_CAMERA_USED),t.supportedScanTypes||(t.supportedScanTypes=c.DEFAULT_SUPPORTED_SCAN_TYPE),t):{fps:c.SCAN_DEFAULT_FPS,rememberLastUsedCamera:c.DEFAULT_REMEMBER_LAST_CAMERA_USED,supportedScanTypes:c.DEFAULT_SUPPORTED_SCAN_TYPE}},t.prototype.createBasicLayout=function(t){t.style.position="relative",t.style.padding="0px",t.style.border="1px solid silver",this.createHeader(t);var e=document.createElement("div"),n=this.getScanRegionId();e.id=n,e.style.width="100%",e.style.minHeight="100px",e.style.textAlign="center",t.appendChild(e),at.isCameraScanType(this.currentScanType)?this.insertCameraScanImageToScanRegion():this.insertFileScanImageToScanRegion();var r=document.createElement("div"),o=this.getDashboardId();r.id=o,r.style.width="100%",t.appendChild(r),this.setupInitialDashboard(r)},t.prototype.resetBasicLayout=function(t){t.style.border="none"},t.prototype.setupInitialDashboard=function(t){this.createSection(t),this.createSectionControlPanel(),this.scanTypeSelector.hasMoreThanOneScanType()&&this.createSectionSwap()},t.prototype.createHeader=function(t){var e=document.createElement("div");e.style.textAlign="left",e.style.margin="0px",t.appendChild(e),(new nt).renderInto(e);var n=document.createElement("div");n.id=this.getHeaderMessageContainerId(),n.style.display="none",n.style.textAlign="center",n.style.fontSize="14px",n.style.padding="2px 10px",n.style.margin="4px",n.style.borderTop="1px solid #f6f6f6",e.appendChild(n)},t.prototype.createSection=function(t){var e=document.createElement("div");e.id=this.getDashboardSectionId(),e.style.width="100%",e.style.padding="10px 0px 10px 0px",e.style.textAlign="left",t.appendChild(e)},t.prototype.createCameraListUi=function(t,e,n){var r=this;r.showHideScanTypeSwapLink(!1),r.setHeaderMessage(y.cameraPermissionRequesting());var o=function(){n||r.createPermissionButton(t,e)};K.getCameras().then((function(n){r.persistedDataManager.setHasPermission(!0),r.showHideScanTypeSwapLink(!0),r.resetHeaderMessage(),n&&n.length>0?(t.removeChild(e),r.renderCameraSelection(n)):(r.setHeaderMessage(y.noCameraFound(),H.STATUS_WARNING),o())})).catch((function(t){r.persistedDataManager.setHasPermission(!1),n?n.disabled=!1:o(),r.setHeaderMessage(t,H.STATUS_WARNING),r.showHideScanTypeSwapLink(!0)}))},t.prototype.createPermissionButton=function(t,e){var n=this,r=ut.createElement("button",this.getCameraPermissionButtonId());r.innerText=y.cameraPermissionTitle(),r.addEventListener("click",(function(){r.disabled=!0,n.createCameraListUi(t,e,r)})),e.appendChild(r)},t.prototype.createPermissionsUi=function(t,e){var n=this;at.isCameraScanType(this.currentScanType)&&this.persistedDataManager.hasCameraPermissions()?it.hasPermissions().then((function(r){r?n.createCameraListUi(t,e):(n.persistedDataManager.setHasPermission(!1),n.createPermissionButton(t,e))})).catch((function(r){n.persistedDataManager.setHasPermission(!1),n.createPermissionButton(t,e)})):this.createPermissionButton(t,e)},t.prototype.createSectionControlPanel=function(){var t=document.getElementById(this.getDashboardSectionId()),e=document.createElement("div");t.appendChild(e);var n=document.createElement("div");n.id=this.getDashboardSectionCameraScanRegionId(),n.style.display=at.isCameraScanType(this.currentScanType)?"block":"none",e.appendChild(n);var r=document.createElement("div");r.style.textAlign="center",n.appendChild(r),this.scanTypeSelector.isCameraScanRequired()&&this.createPermissionsUi(n,r),this.renderFileScanUi(e)},t.prototype.renderFileScanUi=function(t){var e=at.isFileScanType(this.currentScanType),n=this;this.fileSelectionUi=ht.create(t,e,(function(t){if(!n.html5Qrcode)throw"html5Qrcode not defined";at.isFileScanType(n.currentScanType)&&(n.setHeaderMessage(y.loadingImage()),n.html5Qrcode.scanFileV2(t,!0).then((function(t){n.resetHeaderMessage(),n.qrCodeSuccessCallback(t.decodedText,t)})).catch((function(t){n.setHeaderMessage(t,H.STATUS_WARNING),n.qrCodeErrorCallback(t,d.createFrom(t))})))}))},t.prototype.renderCameraSelection=function(t){var e=this,n=this,r=document.getElementById(this.getDashboardSectionCameraScanRegionId());r.style.textAlign="center";var o=gt.create(r,!1),i=pt.create(r,t),a=document.createElement("span"),s=ut.createElement("button",st.CAMERA_START_BUTTON_ID);s.innerText=y.scanButtonStartScanningText(),a.appendChild(s);var u,c=ut.createElement("button",st.CAMERA_STOP_BUTTON_ID);c.innerText=y.scanButtonStopScanningText(),c.style.display="none",c.disabled=!0,a.appendChild(c);r.appendChild(a);var l=function(t){t||(s.style.display="none"),s.innerText=y.scanButtonStartScanningText(),s.style.opacity="1",s.disabled=!1,t&&(s.style.display="inline-block")};if(s.addEventListener("click",(function(t){s.innerText=y.scanButtonScanningStarting(),i.disable(),s.disabled=!0,s.style.opacity="0.5",e.scanTypeSelector.hasMoreThanOneScanType()&&n.showHideScanTypeSwapLink(!1),n.resetHeaderMessage();var r,f=i.getValue();n.persistedDataManager.setLastUsedCameraId(f),n.html5Qrcode.start(f,(r=n.config,{fps:r.fps,qrbox:r.qrbox,aspectRatio:r.aspectRatio,disableFlip:r.disableFlip,videoConstraints:r.videoConstraints}),n.qrCodeSuccessCallback,n.qrCodeErrorCallback).then((function(t){c.disabled=!1,c.style.display="inline-block",l(!1);var r=n.html5Qrcode.getRunningTrackCameraCapabilities();!0===e.config.showTorchButtonIfSupported&&function(t){t.torchFeature().isSupported()?(u?u.updateTorchCapability(t.torchFeature()):u=dt.create(a,t.torchFeature(),{display:"none",marginLeft:"5px"},(function(t){n.setHeaderMessage(t,H.STATUS_WARNING)})),u.show()):u&&u.hide()}(r),!0===e.config.showZoomSliderIfSupported&&function(t){var n=t.zoomFeature();if(n.isSupported()){o.setOnCameraZoomValueChangeCallback((function(t){n.apply(t)}));var r,i,a,s=1;e.config.defaultZoomValueIfSupported&&(s=e.config.defaultZoomValueIfSupported),r=s,i=n.min(),a=n.max(),s=r>a?a:r<i?i:r,o.setValues(n.min(),n.max(),s,n.step()),o.show()}}(r)})).catch((function(t){n.showHideScanTypeSwapLink(!0),i.enable(),l(!0),n.setHeaderMessage(t,H.STATUS_WARNING)}))})),i.hasSingleItem()&&s.click(),c.addEventListener("click",(function(t){if(!n.html5Qrcode)throw"html5Qrcode not defined";c.disabled=!0,n.html5Qrcode.stop().then((function(t){e.scanTypeSelector.hasMoreThanOneScanType()&&n.showHideScanTypeSwapLink(!0),i.enable(),s.disabled=!1,c.style.display="none",s.style.display="inline-block",u&&(u.reset(),u.hide()),o.removeOnCameraZoomValueChangeCallback(),o.hide(),n.insertCameraScanImageToScanRegion()})).catch((function(t){c.disabled=!1,n.setHeaderMessage(t,H.STATUS_WARNING)}))})),n.persistedDataManager.getLastUsedCameraId()){var f=n.persistedDataManager.getLastUsedCameraId();i.hasValue(f)?(i.setValue(f),s.click()):n.persistedDataManager.resetLastUsedCameraId()}},t.prototype.createSectionSwap=function(){var t=this,e=y.textIfCameraScanSelected(),n=y.textIfFileScanSelected(),r=document.getElementById(this.getDashboardSectionId()),o=document.createElement("div");o.style.textAlign="center";var a=ut.createElement("span",this.getDashboardSectionSwapLinkId());a.style.textDecoration="underline",a.style.cursor="pointer",a.innerText=at.isCameraScanType(this.currentScanType)?e:n,a.addEventListener("click",(function(){t.sectionSwapAllowed?(t.resetHeaderMessage(),t.fileSelectionUi.resetValue(),t.sectionSwapAllowed=!1,at.isCameraScanType(t.currentScanType)?(t.clearScanRegion(),t.getCameraScanRegion().style.display="none",t.fileSelectionUi.show(),a.innerText=n,t.currentScanType=i.SCAN_TYPE_FILE,t.insertFileScanImageToScanRegion()):(t.clearScanRegion(),t.getCameraScanRegion().style.display="block",t.fileSelectionUi.hide(),a.innerText=e,t.currentScanType=i.SCAN_TYPE_CAMERA,t.insertCameraScanImageToScanRegion(),t.startCameraScanIfPermissionExistsOnSwap()),t.sectionSwapAllowed=!0):t.verbose&&t.logger.logError("Section swap called when not allowed")})),o.appendChild(a),r.appendChild(o)},t.prototype.startCameraScanIfPermissionExistsOnSwap=function(){var t=this,e=this;this.persistedDataManager.hasCameraPermissions()&&it.hasPermissions().then((function(n){if(n){var r=document.getElementById(e.getCameraPermissionButtonId());if(!r)throw t.logger.logError("Permission button not found, fail;"),"Permission button not found";r.click()}else e.persistedDataManager.setHasPermission(!1)})).catch((function(t){e.persistedDataManager.setHasPermission(!1)}))},t.prototype.resetHeaderMessage=function(){document.getElementById(this.getHeaderMessageContainerId()).style.display="none"},t.prototype.setHeaderMessage=function(t,e){e||(e=H.STATUS_DEFAULT);var n=this.getHeaderMessageDiv();switch(n.innerText=t,n.style.display="block",e){case H.STATUS_SUCCESS:n.style.background="rgba(106, 175, 80, 0.26)",n.style.color="#477735";break;case H.STATUS_WARNING:n.style.background="rgba(203, 36, 49, 0.14)",n.style.color="#cb2431";break;case H.STATUS_DEFAULT:default:n.style.background="rgba(0, 0, 0, 0)",n.style.color="rgb(17, 17, 17)"}},t.prototype.showHideScanTypeSwapLink=function(t){this.scanTypeSelector.hasMoreThanOneScanType()&&(!0!==t&&(t=!1),this.sectionSwapAllowed=t,this.getDashboardSectionSwapLink().style.display=t?"inline-block":"none")},t.prototype.insertCameraScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.cameraScanImage)return e.innerHTML="<br>",void e.appendChild(this.cameraScanImage);this.cameraScanImage=new Image,this.cameraScanImage.onload=function(n){e.innerHTML="<br>",e.appendChild(t.cameraScanImage)},this.cameraScanImage.width=64,this.cameraScanImage.style.opacity="0.8",this.cameraScanImage.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzEuNjQzIDM3MS42NDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3MS42NDMgMzcxLjY0MyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBkPSJNMzExLjU5NiAxOTAuMTg5Yy03LjQ0MS05LjM0Ny0xOC40MDMtMTYuMjA2LTMyLjc0My0yMC41MjJWMzBjMC0xNi41NDItMTMuNDU4LTMwLTMwLTMwSDEyNS4wODRjLTE2LjU0MiAwLTMwIDEzLjQ1OC0zMCAzMHYxMjAuMTQzaC04LjI5NmMtMTYuNTQyIDAtMzAgMTMuNDU4LTMwIDMwdjEuMzMzYTI5LjgwNCAyOS44MDQgMCAwIDAgNC42MDMgMTUuOTM5Yy03LjM0IDUuNDc0LTEyLjEwMyAxNC4yMjEtMTIuMTAzIDI0LjA2MXYxLjMzM2MwI
2DkuODQgNC43NjMgMTguNTg3IDEyLjEwMyAyNC4wNjJhMjkuODEgMjkuODEgMCAwIDAtNC42MDMgMTUuOTM4djEuMzMzYzAgMTYuNTQyIDEzLjQ1OCAzMCAzMCAzMGg4LjMyNGMuNDI3IDExLjYzMSA3LjUwMyAyMS41ODcgMTcuNTM0IDI2LjE3Ny45MzEgMTAuNTAzIDQuMDg0IDMwLjE4NyAxNC43NjggNDUuNTM3YTkuOTg4IDkuOTg4IDAgMCAwIDguMjE2IDQuMjg4IDkuOTU4IDkuOTU4IDAgMCAwIDUuNzA0LTEuNzkzYzQuNTMzLTMuMTU1IDUuNjUtOS4zODggMi40OTUtMTMuOTIxLTYuNzk4LTkuNzY3LTkuNjAyLTIyLjYwOC0xMC43Ni0zMS40aDgyLjY4NWMuMjcyLjQxNC41NDUuODE4LjgxNSAxLjIxIDMuMTQyIDQuNTQxIDkuMzcyIDUuNjc5IDEzLjkxMyAyLjUzNCA0LjU0Mi0zLjE0MiA1LjY3Ny05LjM3MSAyLjUzNS0xMy45MTMtMTEuOTE5LTE3LjIyOS04Ljc4Ny0zNS44ODQgOS41ODEtNTcuMDEyIDMuMDY3LTIuNjUyIDEyLjMwNy0xMS43MzIgMTEuMjE3LTI0LjAzMy0uODI4LTkuMzQzLTcuMTA5LTE3LjE5NC0xOC42NjktMjMuMzM3YTkuODU3IDkuODU3IDAgMCAwLTEuMDYxLS40ODZjLS40NjYtLjE4Mi0xMS40MDMtNC41NzktOS43NDEtMTUuNzA2IDEuMDA3LTYuNzM3IDE0Ljc2OC04LjI3MyAyMy43NjYtNy42NjYgMjMuMTU2IDEuNTY5IDM5LjY5OCA3LjgwMyA0Ny44MzYgMTguMDI2IDUuNzUyIDcuMjI1IDcuNjA3IDE2LjYyMyA1LjY3MyAyOC43MzMtLjQxMyAyLjU4NS0uODI0IDUuMjQxLTEuMjQ1IDcuOTU5LTUuNzU2IDM3LjE5NC0xMi45MTkgODMuNDgzLTQ5Ljg3IDExNC42NjEtNC4yMjEgMy41NjEtNC43NTYgOS44Ny0xLjE5NCAxNC4wOTJhOS45OCA5Ljk4IDAgMCAwIDcuNjQ4IDMuNTUxIDkuOTU1IDkuOTU1IDAgMCAwIDYuNDQ0LTIuMzU4YzQyLjY3Mi0zNi4wMDUgNTAuODAyLTg4LjUzMyA1Ni43MzctMTI2Ljg4OC40MTUtMi42ODQuODIxLTUuMzA5IDEuMjI5LTcuODYzIDIuODM0LTE3LjcyMS0uNDU1LTMyLjY0MS05Ljc3Mi00NC4zNDV6bS0yMzIuMzA4IDQyLjYyYy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM2MwLTUuNTE0IDQuNDg2LTEwIDEwLTEwaDE1djIxLjMzM2gtMTV6bS0yLjUtNTIuNjY2YzAtNS41MTQgNC40ODYtMTAgMTAtMTBoNy41djIxLjMzM2gtNy41Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM3ptMTcuNSA5My45OTloLTcuNWMtNS41MTQgMC0xMC00LjQ4Ni0xMC0xMHYtMS4zMzNjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGg3LjV2MjEuMzMzem0zMC43OTYgMjguODg3Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi04LjI3MWg5MS40NTdjLS44NTEgNi42NjgtLjQzNyAxMi43ODcuNzMxIDE4LjI3MWgtODIuMTg4em03OS40ODItMTEzLjY5OGMtMy4xMjQgMjAuOTA2IDEyLjQyNyAzMy4xODQgMjEuNjI1IDM3LjA0IDUuNDQxIDIuOTY4IDcuNTUxIDUuNjQ3IDcuNzAxIDcuMTg4LjIxIDIuMTUtMi41NTMgNS42ODQtNC40NzcgNy4yNTEtLjQ4Mi4zNzgtLjkyOS44LTEuMzM1IDEuMjYxLTYuOTg3IDcuOTM2LTExLjk4MiAxNS41Mi0xNS40MzIgMjIuNjg4aC05Ny41NjRWMzBjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGgxMjMuNzY5YzUuNTE0IDAgMTAgNC40ODYgMTAgMTB2MTM1LjU3OWMtMy4wMzItLjM4MS02LjE1LS42OTQtOS4zODktLjkxNC0yNS4xNTktMS42OTQtNDIuMzcgNy43NDgtNDQuODk4IDI0LjY2NnoiLz48cGF0aCBkPSJNMTc5LjEyOSA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXpNMTcyLjYyOSAxNDIuODZoLTEyLjU2VjEzMC44YTUgNSAwIDEgMC0xMCAwdjE3LjA2MWE1IDUgMCAwIDAgNSA1aDE3LjU2YTUgNSAwIDEgMCAwLTEwLjAwMXpNMjE2LjU2OCA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXptLTUgMjQuMDYxaC0xNC4wNlY5My4xNjdoMTQuMDZ2MTQuMDYxek0yMTEuNjY5IDEyNS45MzZIMTk3LjQxYTUgNSAwIDAgMC01IDV2MTQuMjU3YTUgNSAwIDAgMCA1IDVoMTQuMjU5YTUgNSAwIDAgMCA1LTV2LTE0LjI1N2E1IDUgMCAwIDAtNS01eiIvPjwvc3ZnPg==",this.cameraScanImage.alt=y.cameraScanAltText()},t.prototype.insertFileScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.fileScanImage)return e.innerHTML="<br>",void e.appendChild(this.fileScanImage);this.fileScanImage=new Image,this.fileScanImage.onload=function(n){e.innerHTML="<br>",e.appendChild(t.fileScanImage)},this.fileScanImage.width=64,this.fileScanImage.style.opacity="0.8",this.fileScanImage.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1OS4wMTggNTkuMDE4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OS4wMTggNTkuMDE4IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJtNTguNzQxIDU0LjgwOS01Ljk2OS02LjI0NGExMC43NCAxMC43NCAwIDAgMCAyLjgyLTcuMjVjMC01Ljk1My00Ljg0My0xMC43OTYtMTAuNzk2LTEwLjc5NlMzNCAzNS4zNjEgMzQgNDEuMzE0IDM4Ljg0MyA1Mi4xMSA0NC43OTYgNTIuMTFjMi40NDEgMCA0LjY4OC0uODI0IDYuNDk5LTIuMTk2bDYuMDAxIDYuMjc3YS45OTguOTk4IDAgMCAwIDEuNDE0LjAzMiAxIDEgMCAwIDAgLjAzMS0xLjQxNHpNMzYgNDEuMzE0YzAtNC44NSAzLjk0Ni04Ljc5NiA4Ljc5Ni04Ljc5NnM4Ljc5NiAzLjk0NiA4Ljc5NiA4Ljc5Ni0zLjk0NiA4Ljc5Ni04Ljc5NiA4Ljc5NlMzNiA0Ni4xNjQgMzYgNDEuMzE0ek0xMC40MzEgMTYuMDg4YzAgMy4wNyAyLjQ5OCA1LjU2OCA1LjU2OSA1LjU2OHM1LjU2OS0yLjQ5OCA1LjU2OS01LjU2OGMwLTMuMDcxLTIuNDk4LTUuNTY5LTUuNTY5LTUuNTY5cy01LjU2OSAyLjQ5OC01LjU2OSA1LjU2OXptOS4xMzggMGMwIDEuOTY4LTEuNjAyIDMuNTY4LTMuNTY5IDMuNTY4cy0zLjU2OS0xLjYwMS0zLjU2OS0zLjU2OCAxLjYwMi0zLjU2OSAzLjU2OS0zLjU2OSAzLjU2OSAxLjYwMSAzLjU2OSAzLjU2OXoiLz48cGF0aCBkPSJtMzAuODgyIDI4Ljk4NyA5LjE4LTEwLjA1NCAxMS4yNjIgMTAuMzIzYTEgMSAwIDAgMCAxLjM1MS0xLjQ3
2NWwtMTItMTFhMSAxIDAgMCAwLTEuNDE0LjA2M2wtOS43OTQgMTAuNzI3LTQuNzQzLTQuNzQzYTEuMDAzIDEuMDAzIDAgMCAwLTEuMzY4LS4wNDRMNi4zMzkgMzcuNzY4YTEgMSAwIDEgMCAxLjMyMiAxLjUwMWwxNi4zMTMtMTQuMzYyIDcuMzE5IDcuMzE4YS45OTkuOTk5IDAgMSAwIDEuNDE0LTEuNDE0bC0xLjgyNS0xLjgyNHoiLz48cGF0aCBkPSJNMzAgNDYuNTE4SDJ2LTQyaDU0djI4YTEgMSAwIDEgMCAyIDB2LTI5YTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQ0YTEgMSAwIDAgMCAxIDFoMjlhMSAxIDAgMSAwIDAtMnoiLz48L3N2Zz4=",this.fileScanImage.alt=y.fileScanAltText()},t.prototype.clearScanRegion=function(){document.getElementById(this.getScanRegionId()).innerHTML=""},t.prototype.getDashboardSectionId=function(){return"".concat(this.elementId,"__dashboard_section")},t.prototype.getDashboardSectionCameraScanRegionId=function(){return"".concat(this.elementId,"__dashboard_section_csr")},t.prototype.getDashboardSectionSwapLinkId=function(){return st.SCAN_TYPE_CHANGE_ANCHOR_ID},t.prototype.getScanRegionId=function(){return"".concat(this.elementId,"__scan_region")},t.prototype.getDashboardId=function(){return"".concat(this.elementId,"__dashboard")},t.prototype.getHeaderMessageContainerId=function(){return"".concat(this.elementId,"__header_message")},t.prototype.getCameraPermissionButtonId=function(){return st.CAMERA_PERMISSION_BUTTON_ID},t.prototype.getCameraScanRegion=function(){return document.getElementById(this.getDashboardSectionCameraScanRegionId())},t.prototype.getDashboardSectionSwapLink=function(){return document.getElementById(this.getDashboardSectionSwapLinkId())},t.prototype.getHeaderMessageDiv=function(){return document.getElementById(this.getHeaderMessageContainerId())}}()},7908:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(29);const o=Object(r.e)("Dialog",{web:()=>n.e(36).then(n.bind(null,7928)).then(t=>new t.DialogWeb)})},7910:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(29);const o=Object(r.e)("Printer",{web:()=>n.e(43).then(n.bind(null,7927)).then(t=>new t.PrinterWeb)})},7922:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1240),o=n(7723),i=n(1584),a=n(1585),s=n(887),u=Object(r.a)({chartName:"LineChart",GraphicalChild:o.a,axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:a.a}],formatAxisMap:s.b})},7923:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var r=n(1),o=n.n(r),i=n(735),a=n.n(i),s=n(856),u=n(730),c=n(723),l=n(788),f=n(1636),d=n(1200),h=n(958),p=["x1","y1","x2","y2","key"],g=["offset"];function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(){return(_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function b(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var E=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,r=t.x,i=t.y,a=t.width,s=t.height,u=t.ry;return o.a.createElement("rect",{x:r,y:i,ry:u,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function C(t,e){var n;if(o.a.isValidElement(t))n=o.a.cloneElement(t,e);else if(a()(t))n=t(e);else{var r=e.x1,i=e.y1,s=e.x2,u=e.y2,l=e.key,f=b(e,p),d=Object(c.a)(f,!1),h=(d.offset,b(d,g));n=o.a.createElement("line",_({},h,{x1:r,y1:i,x2:s,y2:u,fill:"none",key:l}))}return n}function A(t){var e=t.x,n=t.width,r=t.horizontal,i=void 0===r||r,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(r,o){var a=v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o});return C(i,a)}));return o.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function S(t){var e=t.y,n=t.height,r=t.vertical,i=void 0===r||r,a=t.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(r,o){var a=v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o});return C(i,a)}));return o.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function O(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,i=t.y,a=t.width,s=t.height,u=t.horizontalPoints,c=t.horizontal;if(!(void 0===c||c)||!e||!e.length)return null;var l=u.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==l[0]&&l.unshift(0);var f=l.map((function(t,u){var c=!l[u+1]?i+s-t:l[u+1]-t;if(c<=0)return null;var f=u%e.length;return o.a.createElement("rect",{key:"react-".concat(u),y:t,x:r,height:c,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function I(t){var e=t.vertical,n=void 0===e||e,r=t.verticalFill,i=t.fillOpacity,a=t.x,s=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!n||!r||!r.length)return null;var f=l.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==f[0]&&f.unshift(0);var d=f.map((function(t,e){var n=!f[e+1]?a+u-t:f[e+1]-t;if(n<=0)return null;var l=e%r.length;return o.a.createElement("rect",{key:"react-".concat(e),x:t,y:s,width:n,height:c,stroke:"none",fill:r[l],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return o.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var T=function(t,e){var n=t.xAxis,r=t.width,o=t.height,i=t.offset;return Object(l.l)(Object(f.a)(v(v(v({},d.a.defaultProps),n),{}
2,{ticks:Object(l.s)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,e)},M=function(t,e){var n=t.yAxis,r=t.width,o=t.height,i=t.offset;return Object(l.l)(Object(f.a)(v(v(v({},d.a.defaultProps),n),{},{ticks:Object(l.s)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,e)},R={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function D(t){var e,n,r,i,c,l,f=Object(h.d)(),d=Object(h.c)(),p=Object(h.f)(),g=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:R.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:R.fill,horizontal:null!==(r=t.horizontal)&&void 0!==r?r:R.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:R.horizontalFill,vertical:null!==(c=t.vertical)&&void 0!==c?c:R.vertical,verticalFill:null!==(l=t.verticalFill)&&void 0!==l?l:R.verticalFill,x:Object(u.h)(t.x)?t.x:p.left,y:Object(u.h)(t.y)?t.y:p.top,width:Object(u.h)(t.width)?t.width:p.width,height:Object(u.h)(t.height)?t.height:p.height}),y=g.x,w=g.y,b=g.width,C=g.height,D=g.syncWithTicks,x=g.horizontalValues,N=g.verticalValues,P=Object(h.b)(),L=Object(h.j)();if(!Object(u.h)(b)||b<=0||!Object(u.h)(C)||C<=0||!Object(u.h)(y)||y!==+y||!Object(u.h)(w)||w!==+w)return null;var k=g.verticalCoordinatesGenerator||T,B=g.horizontalCoordinatesGenerator||M,j=g.horizontalPoints,F=g.verticalPoints;if((!j||!j.length)&&a()(B)){var U=x&&x.length,z=B({yAxis:L?v(v({},L),{},{ticks:U?x:L.ticks}):void 0,width:f,height:d,offset:p},!!U||D);Object(s.a)(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(m(z),"]")),Array.isArray(z)&&(j=z)}if((!F||!F.length)&&a()(k)){var V=N&&N.length,H=k({xAxis:P?v(v({},P),{},{ticks:V?N:P.ticks}):void 0,width:f,height:d,offset:p},!!V||D);Object(s.a)(Array.isArray(H),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(m(H),"]")),Array.isArray(H)&&(F=H)}return o.a.createElement("g",{className:"recharts-cartesian-grid"},o.a.createElement(E,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),o.a.createElement(A,_({},g,{offset:p,horizontalPoints:j,xAxis:P,yAxis:L})),o.a.createElement(S,_({},g,{offset:p,verticalPoints:F,xAxis:P,yAxis:L})),o.a.createElement(O,_({},g,{horizontalPoints:j})),o.a.createElement(I,_({},g,{verticalPoints:F})))}D.displayName="CartesianGrid"},7924:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1240),o=n(1643),i=n(1584),a=n(1585),s=n(887),u=Object(r.a)({chartName:"BarChart",GraphicalChild:o.a,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.a},{axisType:"yAxis",AxisComp:a.a}],formatAxisMap:s.b})},808:function(t,e,n){var r=n(1203)("wks"),o=n(1030),i=n(835).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},834:function(t,e,n){"use strict";var r=n(1578),o=n.n(r);n.d(e,"a",(function(){return o.a}));var i=n(1197),a=n.n(i);n.d(e,"b",(function(){return a.a}));var s=n(1579),u=n.n(s);n.d(e,"c",(function(){return u.a}));var c=n(1580),l=n.n(c);n.d(e,"d",(function(){return l.a}));var f=n(1027),d=n.n(f);n.d(e,"e",(function(){return d.a}));var h=n(873),p=n.n(h);n.d(e,"f",(function(){return p.a}));var g=n(1581),m=n.n(g);n.d(e,"g",(function(){return m.a}));var y=n(920),v=n.n(y);n.d(e,"h",(function(){return v.a}));var w=n(947),_=n.n(w);n.d(e,"i",(function(){return _.a}));var b=n(1072),E=n.n(b);n.d(e,"j",(function(){return E.a}));var C=n(1582),A=n.n(C);n.d(e,"k",(function(){return A.a}));var S=n(1583),O=n.n(S);n.d(e,"l",(function(){return O.a}));var I=n(755),T=n.n(I);n.d(e,"m",(function(){return T.a}))},835:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},836:function(t,e,n){var r=n(835),o=n(787),i=n(1204),a=n(896),s=n(865),u=function(t,e,n){var c,l,f,d=t&u.F,h=t&u.G,p=t&u.S,g=t&u.P,m=t&u.B,y=t&u.W,v=h?o:o[e]||(o[e]={}),w=v.prototype,_=h?r:p?r[e]:(r[e]||{}).prototype;
2for(c in h&&(n=e),n)(l=!d&&_&&void 0!==_[c])&&s(v,c)||(f=l?_[c]:n[c],v[c]=h&&"function"!=typeof _[c]?n[c]:m&&l?i(f,r):y&&_[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((v.virtual||(v.virtual={}))[c]=f,t&u.R&&w&&!w[c]&&a(w,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},837:function(t,e,n){var r=n(897),o=n(1588),i=n(1205),a=Object.defineProperty;e.f=n(838)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},838:function(t,e,n){t.exports=!n(899)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},865:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},895:function(t,e,n){var r,o;"undefined"!=typeof self&&self,t.exports=(r=n(1),o=n(40),function(){"use strict";var t={328:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PrintContextConsumer=e.PrintContext=void 0;var r=n(496),o=Object.prototype.hasOwnProperty.call(r,"createContext");e.PrintContext=o?r.createContext({}):null,e.PrintContextConsumer=e.PrintContext?e.PrintContext.Consumer:function(){return null}},428:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ReactToPrint=void 0;var r=n(316),o=n(496),i=n(190),a=n(328),s=n(940),u=function(t){function e(){var e=t.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return e.startPrint=function(t){var n=e.props,r=n.onAfterPrint,o=n.onPrintError,i=n.print,a=n.documentTitle;setTimeout((function(){var n,s;if(t.contentWindow)if(t.contentWindow.focus(),i)i(t).then((function(){return null==r?void 0:r()})).then((function(){return e.handleRemoveIframe()})).catch((function(t){o?o("print",t):e.logMessages(["An error was thrown by the specified `print` function"])}));else{if(t.contentWindow.print){var u=null!==(s=null===(n=t.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",c=t.ownerDocument.title;a&&(t.ownerDocument.title=a,t.contentDocument&&(t.contentDocument.title=a)),t.contentWindow.print(),a&&(t.ownerDocument.title=c,t.contentDocument&&(t.contentDocument.title=u))}else e.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),e.handleRemoveIframe()}else e.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},e.triggerPrint=function(t){var n=e.props,r=n.onBeforePrint,o=n.onPrintError;if(r){var i=r();i&&"function"==typeof i.then?i.then((function(){e.startPrint(t)})).catch((function(t){o&&o("onBeforePrint",t)})):e.startPrint(t)}else e.startPrint(t)},e.handlePrint=function(t){var n=e.props,o=n.bodyClass,a=n.content,s=n.copyStyles,u=n.fonts,c=n.pageStyle,l=n.nonce,f="function"==typeof t?t():null;if(f&&"function"==typeof a&&e.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),f||"function"!=typeof a||(f=a()),void 0!==f)if(null!==f){var d=document.createElement("iframe");d.width="".concat(document.documentElement.clientWidth,"px"),d.height="".concat(document.documentElement.clientHeight,"px"),d.style.position="absolute",d.style.top="-".concat(document.documentElement.clientHeight+100,"px"),d.style.left="-".concat(document.documentElement.clientWidth+100,"px"),d.id="printWindow",d.srcdoc="<!DOCTYPE html>";var h=(0,i.findDOMNode)(f);if(h){var p=h.cloneNode(!0),g=p instanceof Text,m=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),y=g?[]:p.querySelectorAll("img"),v=g?[]:p.querySelectorAll("video"),w=u?u.length:0;e.numResourcesToLoad=m.length+y.length+v.length+w,e.resourcesLoaded=[],e.resourcesErrored=[];var _=function(t,n){e.resourcesLoaded.includes(t)?e.logMessages(["Tried to mark a resource that has already been handled",t],"debug"):(n?(e.logMessages(r.__spreadArray(['"react-to-
2print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),e.resourcesErrored.push(t)):e.resourcesLoaded.push(t),e.resourcesLoaded.length+e.resourcesErrored.length===e.numResourcesToLoad&&e.triggerPrint(d))};d.onload=function(){var t,n,i,a;d.onload=null;var f=d.contentDocument||(null===(n=d.contentWindow)||void 0===n?void 0:n.document);if(f){f.body.appendChild(p),u&&((null===(i=d.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(a=d.contentWindow)||void 0===a?void 0:a.FontFace)?u.forEach((function(t){var e=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});d.contentDocument.fonts.add(e),e.loaded.then((function(){_(e)})).catch((function(t){_(e,["Failed loading the font:",e,"Load error:",t])}))})):(u.forEach((function(t){return _(t)})),e.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var m="function"==typeof c?c():c;if("string"!=typeof m)e.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof m,'". Styles from `pageStyle` will not be applied.')]);else{var w=f.createElement("style");l&&(w.setAttribute("nonce",l),f.head.setAttribute("nonce",l)),w.appendChild(f.createTextNode(m)),f.head.appendChild(w)}if(o&&(t=f.body.classList).add.apply(t,r.__spreadArray([],r.__read(o.split(" ")),!1)),!g){for(var b=g?[]:h.querySelectorAll("canvas"),E=f.querySelectorAll("canvas"),C=0;C<b.length;++C){var A=b[C],S=E[C].getContext("2d");S&&S.drawImage(A,0,0)}var O=function(t){var e=y[t],n=e.getAttribute("src");if(n){var r=new Image;r.onload=function(){return _(e)},r.onerror=function(t,n,r,o,i){return _(e,["Error loading <img>",e,"Error",i])},r.src=n}else _(e,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',e])};for(C=0;C<y.length;C++)O(C);var I=function(t){var e=v[t];e.preload="auto";var n=e.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return _(e)},r.onerror=function(t,r,o,i,a){return _(e,["Error loading video poster",n,"for video",e,"Error:",a])},r.src=n}else e.readyState>=2?_(e):(e.onloadeddata=function(){return _(e)},e.onerror=function(t,n,r,o,i){return _(e,["Error loading video",e,"Error",i])},e.onstalled=function(){return _(e,["Loading video stalled, skipping",e])})};for(C=0;C<v.length;C++)I(C);var T="input",M=h.querySelectorAll(T),R=f.querySelectorAll(T);for(C=0;C<M.length;C++)R[C].value=M[C].value;var D="input[type=checkbox],input[type=radio]",x=h.querySelectorAll(D),N=f.querySelectorAll(D);for(C=0;C<x.length;C++)N[C].checked=x[C].checked;var P="select",L=h.querySelectorAll(P),k=f.querySelectorAll(P);for(C=0;C<L.length;C++)k[C].value=L[C].value}if(s)for(var B=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),j=function(t,n){var r=B[t];if("style"===r.tagName.toLowerCase()){var o=f.createElement(r.tagName),i=r.sheet;if(i){var a="";try{for(var s=i.cssRules.length,u=0;u<s;++u)"string"==typeof i.cssRules[u].cssText&&(a+="".concat(i.cssRules[u].cssText,"\r\n"))}catch(t){e.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}o.setAttribute("id","react-to-print-".concat(t)),l&&o.setAttribute("nonce",l),o.appendChild(f.createTextNode(a)),f.head.appendChild(o)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))e.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),_(r);else{for(var c=f.createElement(r.tagName),d=(u=0,r.attributes.length);u<d;++u){var h=r.attributes[u];h&&c.setAttribute(h.nodeName,h.nodeValue||"")}c.onload=function(){return _(c)},c.onerror=function(t,e,n,r,o){return _(c,["Failed to load",c,"Error:",o])},l&&c.setAttribute("nonce",l),f.head.appendChild(c)}
2else e.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),_(r)},F=(C=0,B.length);C<F;++C)j(C)}0!==e.numResourcesToLoad&&s||e.triggerPrint(d)},e.handleRemoveIframe(!0),document.body.appendChild(d)}else e.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else e.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else e.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},e.handleRemoveIframe=function(t){var n=e.props.removeAfterPrint;if(t||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},e.logMessages=function(t,n){void 0===n&&(n="error"),e.props.suppressErrors||("error"===n?console.error(t):"warning"===n&&console.warn(t))},e}return r.__extends(e,t),e.prototype.handleClick=function(t,e){var n=this,r=this.props,o=r.onBeforeGetContent,i=r.onPrintError;if(o){var a=o();a&&"function"==typeof a.then?a.then((function(){return n.handlePrint(e)})).catch((function(t){i&&i("onBeforeGetContent",t)})):this.handlePrint(e)}else this.handlePrint(e)},e.prototype.render=function(){var t=this.props,e=t.children,n=t.trigger;if(n)return o.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!a.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return o.createElement(a.PrintContext.Provider,{value:r},e)},e.defaultProps=s.defaultProps,e}(o.Component);e.ReactToPrint=u},940:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0,e.defaultProps={copyStyles:!0,pageStyle:"\n        @page {\n            /* Remove browser default header (title) and footer (url) */\n            margin: 0;\n        }\n        @media print {\n            body {\n                /* Tell browsers to print background colors */\n                -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n                color-adjust: exact; /* Firefox */\n            }\n        }\n    ",removeAfterPrint:!1,suppressErrors:!1}},892:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=void 0;var r=n(316),o=n(496),i=n(428),a=n(940),s=n(860),u=Object.prototype.hasOwnProperty.call(o,"useMemo")&&Object.prototype.hasOwnProperty.call(o,"useCallback");e.useReactToPrint=function(t){if(!u)return t.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var e=o.useMemo((function(){return new i.ReactToPrint(r.__assign(r.__assign({},a.defaultProps),t))}),[t]);return o.useCallback((function(t,n){return(0,s.wrapCallbackWithArgs)(e,e.handleClick,n)(t)}),[e])}},860:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCallbackWithArgs=void 0;var r=n(316);e.wrapCallbackWithArgs=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.apply(t,r.__spreadArray(r.__spreadArray([],r.__read(o),!1),r.__read(n),!1))}}},496:function(t){t.exports=r},190:function(t){t.exports=o},316:function(t,e,n){n.r(e),n.d(e,{__addDisposableResource:function(){return P},__assign:function(){return i},__asyncDelegator:function(){return S},__asyncGenerator:function(){return A},__asyncValues:function(){return O},__await:function(){return C},__awaiter:function(){return p},__classPrivateFieldGet:function(){return D},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return x},__createBinding:function(){return m},__decorate:function(){return s},__disposeResources:function(){return k},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return g},__importDefault:function(){return R},__importStar:function(){return M}
vendor: 9,742 bytes, line 2
2,__makeTemplateObject:function(){return I},__metadata:function(){return h},__param:function(){return u},__propKey:function(){return f},__read:function(){return w},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return _},__spreadArray:function(){return E},__spreadArrays:function(){return b},__values:function(){return v}});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e,n,r,o,i){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!e&&t?r.static?t:t.prototype:null,f=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,h=n.length-1;h>=0;h--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(t||null))};var m=(0,n[h])("accessor"===u?{get:f.get,set:f.set}:f[c],p);if("accessor"===u){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(f.get=s),(s=a(m.set))&&(f.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===u?o.unshift(s):f[c]=s)}l&&Object.defineProperty(l,r.name,f),d=!0}function l(t,e,n){for(var r=arguments.length>2,o=0;o<e.length;o++)n=r?e[o].call(t,n):e[o].call(t);return r?n:void 0}function f(t){return"symbol"==typeof t?t:"".concat(t)}function d(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function h(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function g(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var m=Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function y(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||m(e,t,n)}function v(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(w(arguments[e]));return t}function b(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function E(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function C(t){return this instanceof C?(this.v=t,this):new C(t)}function A(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof C?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function S(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:C(t[r](e)),done:!1}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=v(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,o,(e=t[n](e)).done,e.value)}))}}}function I(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function M(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&m(e,t,n);return T(e,t),e}function R(t){return t&&t.__esModule?t:{default:t}}function D(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function x(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n}function N(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function P(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var L="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function k(t){function e(e){t.error=t.hasError?new L(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function n(){for(;t.stack.length;){var r=t.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}()}e.default={__extends:o,__assign:i,__rest:a,__decorate:s,__param:u,__metadata:h,__awaiter:p,__generator:g,__createBinding:m,__exportStar:y,__values:v,__read:w,__spread:_,__spreadArrays:b,__spreadArray:E,__await:C,__asyncGenerator:A,__asyncDelegator:S,__asyncValues:O,__makeTemplateOb
2ject:I,__importStar:M,__importDefault:R,__classPrivateFieldGet:D,__classPrivateFieldSet:x,__classPrivateFieldIn:N,__addDisposableResource:P,__disposeResources:k}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=t.ReactToPrint=t.PrintContextConsumer=void 0;var e=n(328);Object.defineProperty(t,"PrintContextConsumer",{enumerable:!0,get:function(){return e.PrintContextConsumer}});var r=n(428);Object.defineProperty(t,"ReactToPrint",{enumerable:!0,get:function(){return r.ReactToPrint}});var o=n(892);Object.defineProperty(t,"useReactToPrint",{enumerable:!0,get:function(){return o.useReactToPrint}});var a=n(428);t.default=a.ReactToPrint}(),i}())},896:function(t,e,n){var r=n(837),o=n(949);t.exports=n(838)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},897:function(t,e,n){var r=n(898);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},898:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},899:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},900:function(t,e,n){var r=n(1596),o=n(1201);t.exports=function(t){return r(o(t))}},901:function(t,e,n){"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},947:function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1)),i=(0,r(n(715)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Edit");e.default=i},948:function(t,e,n){var r=n(1201);t.exports=function(t){return Object(r(t))}},949:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},950:function(t,e){t.exports={}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.