(self.webpackChunk=self.webpackChunk||[]).push([[72879],{84567:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(94184),o=r.n(n),i=r(95860),a=r(67294),s=r(53124),l=r(98866),u=r(65223);var c=a.createContext(null),f=r(63185),d=r(45353),p=r(17415),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,className:g,rootClassName:v,children:m,indeterminate:y=!1,style:b,onMouseEnter:w,onMouseLeave:C,skipGroup:E=!1,disabled:P}=e,O=h(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:x,direction:S,checkbox:T}=a.useContext(s.E_),A=a.useContext(c),{isFormItemInput:R}=a.useContext(u.aM),M=a.useContext(l.Z),N=null!==(r=(null==A?void 0:A.disabled)||P)&&void 0!==r?r:M,L=a.useRef(O.value);a.useEffect((()=>{null==A||A.registerValue(O.value)}),[]),a.useEffect((()=>{if(!E)return O.value!==L.current&&(null==A||A.cancelValue(L.current),null==A||A.registerValue(O.value),L.current=O.value),()=>null==A?void 0:A.cancelValue(O.value)}),[O.value]);const B=x("checkbox",n),[k,_]=(0,f.ZP)(B),I=Object.assign({},O);A&&!E&&(I.onChange=function(){O.onChange&&O.onChange.apply(O,arguments),A.toggleOption&&A.toggleOption({label:m,value:O.value})},I.name=A.name,I.checked=A.value.includes(O.value));const j=o()(`${B}-wrapper`,{[`${B}-rtl`]:"rtl"===S,[`${B}-wrapper-checked`]:I.checked,[`${B}-wrapper-disabled`]:N,[`${B}-wrapper-in-form-item`]:R},null==T?void 0:T.className,g,v,_),D=o()({[`${B}-indeterminate`]:y},p.A,_),U=y?"mixed":void 0;return k(a.createElement(d.Z,{component:"Checkbox",disabled:N},a.createElement("label",{className:j,style:Object.assign(Object.assign({},null==T?void 0:T.style),b),onMouseEnter:w,onMouseLeave:C},a.createElement(i.Z,Object.assign({"aria-checked":U},I,{prefixCls:B,className:D,disabled:N,ref:t})),void 0!==m&&a.createElement("span",null,m))))};var v=a.forwardRef(g),m=r(74902),y=r(10366),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{defaultValue:r,children:n,options:i=[],prefixCls:l,className:u,rootClassName:d,style:p,onChange:h}=e,g=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:w,direction:C}=a.useContext(s.E_),[E,P]=a.useState(g.value||r||[]),[O,x]=a.useState([]);a.useEffect((()=>{"value"in g&&P(g.value||[])}),[g.value]);const S=a.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),T=w("checkbox",l),A=`${T}-group`,[R,M]=(0,f.ZP)(T),N=(0,y.Z)(g,["value","disabled"]),L=i.length?S.map((e=>a.createElement(v,{prefixCls:T,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:E.includes(e.value),onChange:e.onChange,className:`${A}-item`,style:e.style,title:e.title},e.label))):n,B={toggleOption:e=>{const t=E.indexOf(e.value),r=(0,m.Z)(E);-1===t?r.push(e.value):r.splice(t,1),"value"in g||P(r),null==h||h(r.filter((e=>O.includes(e))).sort(((e,t)=>S.findIndex((t=>t.value===e))-S.findIndex((e=>e.value===t)))))},value:E,disabled:g.disabled,name:g.name,registerValue:e=>{x((t=>[].concat((0,m.Z)(t),[e])))},cancelValue:e=>{x((t=>t.filter((t=>t!==e))))}},k=o()(A,{[`${A}-rtl`]:"rtl"===C},u,d,M);return R(a.createElement("div",Object.assign({className:k,style:p},N,{ref:t}),a.createElement(c.Provider,{value:B},L)))},C=a.forwardRef(w);var E=a.memo(C);const P=v;P.Group=E,P.__ANT_CHECKBOX=!0;var O=P},85418:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(56153),o=r(94184),i=r.n(o),a=r(67294),s=r(64582),l=r(71577),u=r(53124),c=r(93421),f=r(4173),d=r(66748),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:r,direction:o}=a.useContext(u.E_),{prefixCls:h,type:g="default",danger:v,disabled:m,loading:y,onClick:b,htmlType:w,children:C,className:E,menu:P,arrow:O,autoFocus:x,overlay:S,trigger:T,align:A,open:R,onOpenChange:M,placement:N,getPopupContainer:L,href:B,icon:k=a.createElement(s.Z,null),title:_,buttonsRender:I=(e=>e),mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:U,overlayStyle:z,destroyPopupOnHide:Z,dropdownRender:F}=e,Y=p(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),$=r("dropdown",h),H=`${$}-button`,[V,K]=(0,d.Z)($),J={menu:P,arrow:O,autoFocus:x,align:A,disabled:m,trigger:m?[]:T,onOpenChange:M,getPopupContainer:L||t,mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:U,overlayStyle:z,destroyPopupOnHide:Z,dropdownRender:F},{compactSize:q,compactItemClassnames:W}=(0,f.ri)($,o),Q=i()(H,W,E,K);"overlay"in e&&(J.overlay=S),"open"in e&&(J.open=R),J.placement="placement"in e?N:"rtl"===o?"bottomLeft":"bottomRight";const G=a.createElement(l.ZP,{type:g,danger:v,disabled:m,loading:y,onClick:b,htmlType:w,href:B,title:_},C),X=a.createElement(l.ZP,{type:g,danger:v,icon:k}),[ee,te]=I([G,X]);return V(a.createElement(c.Z.Compact,Object.assign({className:Q,size:q,block:!0},Y),ee,a.createElement(n.Z,Object.assign({},J),te)))};h.__ANT_BUTTON=!0;var g=h;const v=n.Z;v.Button=g;var m=v},11486:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(94184),o=r.n(n),i=r(67294),a=r(53124),s=r(65223),l=r(47673);var u=e=>{const{getPrefixCls:t,direction:r}=(0,i.useContext)(a.E_),{prefixCls:n,className:u}=e,c=t("input-group",n),f=t("input"),[d,p]=(0,l.ZP)(f),h=o()(c,{[`${c}-lg`]:"large"===e.size,[`${c}-sm`]:"small"===e.size,[`${c}-compact`]:e.compact,[`${c}-rtl`]:"rtl"===r},p,u),g=(0,i.useContext)(s.aM),v=(0,i.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return d(i.createElement("span",{className:h,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:v},e.children)))},c=r(82586),f=r(87462),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=r(44327),h=function(e,t){return i.createElement(p.Z,(0,f.Z)({},e,{ref:t,icon:d}))};var g=i.forwardRef(h),v=r(43481),m=r(10366),y=r(17799),b=r(72922),w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);oe?i.createElement(v.Z,null):i.createElement(g,null),E={click:"onClick",hover:"onMouseOver"};var P=i.forwardRef(((e,t)=>{const{visibilityToggle:r=!0}=e,n="object"==typeof r&&void 0!==r.visible,[s,l]=(0,i.useState)((()=>!!n&&r.visible)),u=(0,i.useRef)(null);i.useEffect((()=>{n&&l(r.visible)}),[n,r]);const f=(0,b.Z)(u),d=()=>{const{disabled:t}=e;t||(s&&f(),l((e=>{var t;const n=!e;return"object"==typeof r&&(null===(t=r.onVisibleChange)||void 0===t||t.call(r,n)),n})))},{className:p,prefixCls:h,inputPrefixCls:g,size:v}=e,P=w(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=i.useContext(a.E_),x=O("input",g),S=O("input-password",h),T=r&&(t=>{const{action:r="click",iconRender:n=C}=e,o=E[r]||"",a=n(s),l={[o]:d,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),l)})(S),A=o()(S,p,{[`${S}-${v}`]:!!v}),R=Object.assign(Object.assign({},(0,m.Z)(P,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:A,prefixCls:x,suffix:T});return v&&(R.size=v),i.createElement(c.Z,Object.assign({ref:(0,y.sQ)(t,u)},R))})),O=r(42480),x=r(96159),S=r(71577),T=r(98675),A=r(4173),R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,inputPrefixCls:n,className:s,size:l,suffix:u,enterButton:f=!1,addonAfter:d,loading:p,disabled:h,onSearch:g,onChange:v,onCompositionStart:m,onCompositionEnd:b}=e,w=R(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:E}=i.useContext(a.E_),P=i.useRef(!1),M=C("input-search",r),N=C("input",n),{compactSize:L}=(0,A.ri)(M,E),B=(0,T.Z)((e=>{var t;return null!==(t=null!=l?l:L)&&void 0!==t?t:e})),k=i.useRef(null),_=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},I=e=>{var t,r;g&&g(null===(r=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===r?void 0:r.value,e,{source:"input"})},j="boolean"==typeof f?i.createElement(O.Z,null):null,D=`${M}-button`;let U;const z=f||{},Z=z.type&&!0===z.type.__ANT_BUTTON;U=Z||"button"===z.type?(0,x.Tm)(z,Object.assign({onMouseDown:_,onClick:e=>{var t,r;null===(r=null===(t=null==z?void 0:z.props)||void 0===t?void 0:t.onClick)||void 0===r||r.call(t,e),I(e)},key:"enterButton"},Z?{className:D,size:B}:{})):i.createElement(S.ZP,{className:D,type:f?"primary":void 0,size:B,disabled:h,key:"enterButton",onMouseDown:_,onClick:I,loading:p,icon:j},f),d&&(U=[U,(0,x.Tm)(d,{key:"addonAfter"})]);const F=o()(M,{[`${M}-rtl`]:"rtl"===E,[`${M}-${B}`]:!!B,[`${M}-with-button`]:!!f},s);return i.createElement(c.Z,Object.assign({ref:(0,y.sQ)(k,t),onPressEnter:e=>{P.current||p||I(e)}},w,{size:B,onCompositionStart:e=>{P.current=!0,null==m||m(e)},onCompositionEnd:e=>{P.current=!1,null==b||b(e)},prefixCls:N,addonAfter:U,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),v&&v(e)},className:F,disabled:h}))})),N=r(96330);const L=c.Z;L.Group=u,L.Search=M,L.TextArea=N.Z,L.Password=P;var B=L},93421:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(67294),o=r(94184),i=r.n(o),a=r(37419),s=r(53124),l=r(4173);const u=n.createContext({latestIndex:0}),c=u.Provider;var f=e=>{let{className:t,index:r,children:o,split:i,style:a}=e;const{latestIndex:s}=n.useContext(u);return null==o?null:n.createElement(n.Fragment,null,n.createElement("div",{className:t,style:a},o),r{var r,o;const{getPrefixCls:l,space:u,direction:v}=n.useContext(s.E_),{size:m=(null==u?void 0:u.size)||"small",align:y,className:b,rootClassName:w,children:C,direction:E="horizontal",prefixCls:P,split:O,style:x,wrap:S=!1,classNames:T,styles:A}=e,R=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,N]=Array.isArray(m)?m:[m,m],L=p(N),B=p(M),k=h(N),_=h(M),I=(0,a.Z)(C,{keepEmpty:!0}),j=void 0===y&&"horizontal"===E?"center":y,D=l("space",P),[U,z]=(0,d.Z)(D),Z=i()(D,null==u?void 0:u.className,z,`${D}-${E}`,{[`${D}-rtl`]:"rtl"===v,[`${D}-align-${j}`]:j,[`${D}-gap-row-${N}`]:L,[`${D}-gap-col-${M}`]:B},b,w),F=i()(`${D}-item`,null!==(r=null==T?void 0:T.item)&&void 0!==r?r:null===(o=null==u?void 0:u.classNames)||void 0===o?void 0:o.item);let Y=0;const $=I.map(((e,t)=>{var r,o;null!=e&&(Y=t);const i=e&&e.key||`${F}-${t}`;return n.createElement(f,{className:F,key:i,index:t,split:O,style:null!==(r=null==A?void 0:A.item)&&void 0!==r?r:null===(o=null==u?void 0:u.styles)||void 0===o?void 0:o.item},e)})),H=n.useMemo((()=>({latestIndex:Y})),[Y]);if(0===I.length)return null;const V={};return S&&(V.flexWrap="wrap"),!B&&_&&(V.columnGap=M),!L&&k&&(V.rowGap=N),U(n.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),x)},R),n.createElement(c,{value:H},$)))}));const m=v;m.Compact=l.ZP;var y=m},68351:function(e,t,r){"use strict";var n=r(67294),o=r(8745),i=r(45741),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);on.createElement(l,Object.assign({},e,{picker:"time",mode:void 0,ref:t})))),c=n.forwardRef(((e,t)=>{var{addon:r,renderExtraFooter:o}=e,i=a(e,["addon","renderExtraFooter"]);const l=n.useMemo((()=>o||(r||void 0)),[r,o]);return n.createElement(s,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:l}))}));const f=(0,o.Z)(c,"picker");c._InternalPanelDoNotUseOrYouWillBeFired=f,c.RangePicker=u,c._InternalPanelDoNotUseOrYouWillBeFired=f,t.Z=c},43481:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=r(44327),s=function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},20640:function(e,t,r){"use strict";var n=r(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,l,u,c=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},65987:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var o={},i={};i[r]=0;var a,s,l,u,c,f,d,p=t.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(l in s=(a=p.pop()).value,u=a.cost,c=e[s]||{})c.hasOwnProperty(l)&&(f=u+c[l],d=i[l],(void 0===i[l]||d>f)&&(i[l]=f,p.push(l,f),o[l]=s));if(void 0!==n&&void 0===i[n]){var h=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var o=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,o={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},5826:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},92592:function(e,t,r){var n=r(47138),o=r(95115),i=r(6907),a=r(93776);function s(e,t,r,i,a){var s=[].slice.call(arguments,1),l=s.length,u="function"==typeof s[l-1];if(!u&&!n())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=t,t=i=void 0):2!==l||t.getContext||(i=r,r=t,t=void 0),new Promise((function(n,a){try{var s=o.create(r,i);n(e(s,t,i))}catch(e){a(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=r,r=t,t=i=void 0):3===l&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0));try{var c=o.create(r,i);a(null,e(c,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,r){return a.render(e,r)}))},47138:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:function(e,t,r){var n=r(10242).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,r=n(e),o=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7],a=1;a>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e,t,r){var n=r(99131);function o(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=n.alloc(e*e),this.reservedBit=n.alloc(e*e)}o.prototype.set=function(e,t,r,n){var o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)},o.prototype.get=function(e,t){return this.data[e*this.size+t]},o.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},o.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=o},43424:function(e,t,r){var n=r(99131),o=r(76910);function i(e){this.mode=o.BYTE,this.data=n.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,r=this.data.length;t=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},76526:function(e,t,r){var n=r(10242).getSymbolSize;t.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},2103:function(e,t,r){var n=r(10242),o=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var r=e.bit<<3|t,i=r<<10;n.getBCHDigit(i)-o>=0;)i^=1335<=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=i},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,n=3,o=40,i=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,o=0,i=0,a=null,s=null,l=0;l=5&&(n+=r+(o-5)),a=c,o=1),(c=e.get(u,l))===s?i++:(i>=5&&(n+=r+(i-5)),s=c,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}return n},t.getPenaltyN2=function(e){for(var t=e.size,r=0,o=0;o=10&&(1488===n||93===n)&&r++,i=i<<1&2047|e.get(s,a),s>=10&&(1488===i||93===i)&&r++}return r*o},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,n=0;n=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},41085:function(e,t,r){var n=r(76910);function o(e){this.mode=n.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);var o=this.data.length-t;o>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*o+1))},e.exports=o},26143:function(e,t,r){var n=r(99131),o=r(69729);t.mul=function(e,t){for(var r=n.alloc(e.length+t.length-1),i=0;i=0;){for(var i=r[0],a=0;a>n&1),n<6?e.set(n,8,o,!0):n<8?e.set(n+1,8,o,!0):e.set(i-15+n,8,o,!0),n<8?e.set(8,i-n-1,o,!0):n<9?e.set(8,15-n-1+1,o,!0):e.set(8,15-n-1,o,!0);e.set(i-8,8,1,!0)}function b(e,t,r){var i=new a;r.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(i)}));var s=8*(o.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var l=(s-i.getLengthInBits())/8,u=0;u=0&&s<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===s||6===s)||s>=2&&s<=4&&l>=2&&l<=4?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0))}(w,t),function(e){for(var t=e.size,r=8;r=7&&function(e,t){for(var r,n,o,i=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+i-8-3,o=1==(a>>s&1),e.set(r,n,o,!0),e.set(n,r,o,!0)}(w,t),function(e,t){for(var r=e.size,n=-1,o=r-1,i=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var l=0;l<2;l++)if(!e.isReserved(o,s-l)){var u=!1;a>>i&1)),e.set(o,s-l,u),-1==--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(w,h),isNaN(n)&&(n=c.getBestMask(w,y.bind(null,w,r))),c.applyMask(n,w),y(w,r,n),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var r,n,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),r=p.from(t.version),n=c.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),w(e,r,a,n)}},52882:function(e,t,r){var n=r(99131),o=r(26143),i=r(48764).lW;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=i.concat([e,t],e.length+this.degree),a=o.mod(r,this.genPoly),s=this.degree-a.length;if(s>0){var l=n.alloc(this.degree);return a.copy(l,s),l}return a},e.exports=a},7007:function(e,t){var r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,r){var n=r(76910),o=r(41085),i=r(8260),a=r(43424),s=r(35442),l=r(7007),u=r(10242),c=r(65987);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){for(var n,o=[];null!==(n=e.exec(r));)o.push({data:n[0],index:n.index,mode:t,length:n[0].length});return o}function p(e){var t,r,o=d(l.NUMERIC,n.NUMERIC,e),i=d(l.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=d(l.BYTE,n.BYTE,e),r=d(l.KANJI,n.KANJI,e)):(t=d(l.BYTE_KANJI,n.BYTE,e),r=[]),o.concat(i,t,r).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case n.NUMERIC:return o.getBitsLength(e);case n.ALPHANUMERIC:return i.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function g(e,t){var r,l=n.getBestModeForData(e);if((r=n.from(t,l))!==n.BYTE&&r.bit=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},10242:function(e,t){var r,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,r){var n=r(10242),o=r(35393),i=r(64908),a=r(76910),s=r(43114),l=r(5826),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var r=0;return e.forEach((function(e){var n=c(e.mode,t);r+=n+e.getBitsLength()})),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);var i=8*(n.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(r===a.MIXED)return i;var l=i-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){var n,o=i.from(r,i.M);if(l(e)){if(e.length>1)return function(e,r){for(var n=1;n<=40;n++)if(f(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,o);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(var o=1;o<=40;o++)if(r<=t.getCapacity(o,n,e))return o}(n.mode,n.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;n.getBCHDigit(t)-u>=0;)t^=7973<':"",f="0&&u>0&&e[l-1]||(n+=a?i("M",u+r,.5+c+r):i("m",o,0),o=0,a=!1),u+1',d='viewBox="0 0 '+u+" "+u+'"',p=''+c+f+"\n";return"function"==typeof r&&r(null,p),p}},89653:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){var n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){for(var o=r.modules.size,i=r.modules.data,a=t.getScale(o,n),s=Math.floor((o+2*n.margin)*a),l=n.margin*a,u=[n.color.light,n.color.dark],c=0;c=l&&f>=l&&c=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function s(e,t){var r;return i.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=i.prototype:(null===(r=e)&&(r=new i(t)),r.length=t),r}function l(e,t){var r=s(e,t<0?0:0|a(t));if(!i.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function f(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:c(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,r){void 0===t||void 0===r&&"string"==typeof t?(r=this.length,t=0):isFinite(t)&&(t|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,r,n){return function(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}(c(t,e.length-r),e,r,n)}(this,e,t,r)},i.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o