UNPKG

mincu-debug-tools

Version:

[Mincu - 南大家园 WEB JS API](https://github.com/ncuhome/mincu)

8 lines 53.7 kB
var W,p,Ye,Ge,Y,qe,Qe,Ze,ne={},Xe=[],un=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function R(t,e){for(var n in e)t[n]=e[n];return t}function et(t){var e=t.parentNode;e&&e.removeChild(t)}function G(t,e,n){var r,i,o,a={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?W.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)a[o]===void 0&&(a[o]=t.defaultProps[o]);return q(t,a,r,i,null)}function q(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Ye:i};return i==null&&p.vnode!=null&&p.vnode(o),o}function sn(){return{current:null}}function U(t){return t.children}function M(t,e){this.props=t,this.context=e}function $(t,e){if(e==null)return t.__?$(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?$(t):null}function tt(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return tt(t)}}function me(t){(!t.__d&&(t.__d=!0)&&Y.push(t)&&!re.__r++||Qe!==p.debounceRendering)&&((Qe=p.debounceRendering)||qe)(re)}function re(){for(var t;re.__r=Y.length;)t=Y.sort(function(e,n){return e.__v.__b-n.__v.__b}),Y=[],t.some(function(e){var n,r,i,o,a,u;e.__d&&(a=(o=(n=e).__v).__e,(u=n.__P)&&(r=[],(i=R({},o)).__v=o.__v+1,ve(u,o,i,n.__n,u.ownerSVGElement!==void 0,o.__h!=null?[a]:null,r,a==null?$(o):a,o.__h),st(r,o),o.__e!=a&&tt(o)))})}function nt(t,e,n,r,i,o,a,u,s,f){var c,y,_,l,d,w,b,h=r&&r.__k||Xe,v=h.length;for(n.__k=[],c=0;c<e.length;c++)if((l=n.__k[c]=(l=e[c])==null||typeof l=="boolean"?null:typeof l=="string"||typeof l=="number"||typeof l=="bigint"?q(null,l,null,null,l):Array.isArray(l)?q(U,{children:l},null,null,null):l.__b>0?q(l.type,l.props,l.key,null,l.__v):l)!=null){if(l.__=n,l.__b=n.__b+1,(_=h[c])===null||_&&l.key==_.key&&l.type===_.type)h[c]=void 0;else for(y=0;y<v;y++){if((_=h[y])&&l.key==_.key&&l.type===_.type){h[y]=void 0;break}_=null}ve(t,l,_=_||ne,i,o,a,u,s,f),d=l.__e,(y=l.ref)&&_.ref!=y&&(b||(b=[]),_.ref&&b.push(_.ref,null,l),b.push(y,l.__c||d,l)),d!=null?(w==null&&(w=d),typeof l.type=="function"&&l.__k===_.__k?l.__d=s=rt(l,s,t):s=ot(t,l,_,h,d,s),typeof n.type=="function"&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=t&&(s=$(_))}for(n.__e=w,c=v;c--;)h[c]!=null&&(typeof n.type=="function"&&h[c].__e!=null&&h[c].__e==n.__d&&(n.__d=$(r,c+1)),lt(h[c],h[c]));if(b)for(c=0;c<b.length;c++)ct(b[c],b[++c],b[++c])}function rt(t,e,n){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,e=typeof r.type=="function"?rt(r,e,n):ot(n,r,r,i,r.__e,e));return e}function Q(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Q(n,e)}):e.push(t)),e}function ot(t,e,n,r,i,o){var a,u,s;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(i),a=null;else{for(u=o,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==i)break e;t.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function cn(t,e,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in e||oe(t,o,null,n[o],r);for(o in e)i&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===e[o]||oe(t,o,e[o],n[o],r)}function it(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||un.test(e)?n:n+"px"}function oe(t,e,n,r,i){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||it(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||it(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?ut:at,o):t.removeEventListener(e,o?ut:at,o);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function at(t){this.l[t.type+!1](p.event?p.event(t):t)}function ut(t){this.l[t.type+!0](p.event?p.event(t):t)}function ve(t,e,n,r,i,o,a,u,s){var f,c,y,_,l,d,w,b,h,v,m,g=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(s=n.__h,u=e.__e=n.__e,e.__h=null,o=[u]),(f=p.__b)&&f(e);try{e:if(typeof g=="function"){if(b=e.props,h=(f=g.contextType)&&r[f.__c],v=f?h?h.props.value:f.__:r,n.__c?w=(c=e.__c=n.__c).__=c.__E:("prototype"in g&&g.prototype.render?e.__c=c=new g(b,v):(e.__c=c=new M(b,v),c.constructor=g,c.render=fn),h&&h.sub(c),c.props=b,c.state||(c.state={}),c.context=v,c.__n=r,y=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),g.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=R({},c.__s)),R(c.__s,g.getDerivedStateFromProps(b,c.__s))),_=c.props,l=c.state,y)g.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==_&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,v),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,v)===!1||e.__v===n.__v){c.props=b,c.state=c.__s,e.__v!==n.__v&&(c.__d=!1),c.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(E){E&&(E.__=e)}),c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,v),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(_,l,d)})}c.context=v,c.props=b,c.state=c.__s,(f=p.__r)&&f(e),c.__d=!1,c.__v=e,c.__P=t,f=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(r=R(R({},r),c.getChildContext())),y||c.getSnapshotBeforeUpdate==null||(d=c.getSnapshotBeforeUpdate(_,l)),m=f!=null&&f.type===U&&f.key==null?f.props.children:f,nt(t,Array.isArray(m)?m:[m],e,n,r,i,o,a,u,s),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),w&&(c.__E=c.__=null),c.__e=!1}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=ln(n.__e,e,n,r,i,o,a,s);(f=p.diffed)&&f(e)}catch(E){e.__v=null,(s||o!=null)&&(e.__e=u,e.__h=!!s,o[o.indexOf(u)]=null),p.__e(E,e,n)}}function st(t,e){p.__c&&p.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){p.__e(r,n.__v)}})}function ln(t,e,n,r,i,o,a,u){var s,f,c,y=n.props,_=e.props,l=e.type,d=0;if(l==="svg"&&(i=!0),o!=null){for(;d<o.length;d++)if((s=o[d])&&"setAttribute"in s==!!l&&(l?s.localName===l:s.nodeType===3)){t=s,o[d]=null;break}}if(t==null){if(l===null)return document.createTextNode(_);t=i?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l,_.is&&_),o=null,u=!1}if(l===null)y===_||u&&t.data===_||(t.data=_);else{if(o=o&&W.call(t.childNodes),f=(y=n.props||ne).dangerouslySetInnerHTML,c=_.dangerouslySetInnerHTML,!u){if(o!=null)for(y={},d=0;d<t.attributes.length;d++)y[t.attributes[d].name]=t.attributes[d].value;(c||f)&&(c&&(f&&c.__html==f.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(cn(t,_,y,i,u),c)e.__k=[];else if(d=e.props.children,nt(t,Array.isArray(d)?d:[d],e,n,r,i&&l!=="foreignObject",o,a,o?o[0]:n.__k&&$(n,0),u),o!=null)for(d=o.length;d--;)o[d]!=null&&et(o[d]);u||("value"in _&&(d=_.value)!==void 0&&(d!==y.value||d!==t.value||l==="progress"&&!d)&&oe(t,"value",d,y.value,!1),"checked"in _&&(d=_.checked)!==void 0&&d!==t.checked&&oe(t,"checked",d,y.checked,!1))}return t}function ct(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){p.__e(r,n)}}function lt(t,e,n){var r,i;if(p.unmount&&p.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ct(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){p.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&lt(r[i],e,typeof t.type!="function");n||t.__e==null||et(t.__e),t.__e=t.__d=void 0}function fn(t,e,n){return this.constructor(t,n)}function ft(t,e,n){var r,i,o;p.__&&p.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],ve(e,t=(!r&&n||e).__k=G(U,null,[t]),i||ne,ne,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?W.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r),st(o,t)}function _t(t,e){ft(t,e,_t)}function _n(t,e,n){var r,i,o,a=R({},t.props);for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o];return arguments.length>2&&(a.children=arguments.length>3?W.call(arguments,2):n),q(t.type,a,r||t.key,i||t.ref,null)}function dn(t,e){var n={__c:e="__cC"+Ze++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(me)},this.sub=function(a){i.push(a);var u=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),u&&u.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}W=Xe.slice,p={__e:function(t,e){for(var n,r,i;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(t)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t),i=n.__d),i)return n.__E=n}catch(o){t=o}throw t}},Ye=0,Ge=function(t){return t!=null&&t.constructor===void 0},M.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=R({},this.state),typeof t=="function"&&(t=t(R({},n),this.props)),t&&R(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),me(this))},M.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),me(this))},M.prototype.render=U,Y=[],qe=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,re.__r=0,Ze=0;var hn=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",render:ft,hydrate:_t,createElement:G,h:G,Fragment:U,createRef:sn,get isValidElement(){return Ge},Component:M,cloneElement:_n,createContext:dn,toChildArray:Q,get options(){return p}}),z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function gn(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}var ie={},pn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},A={};let we;const yn=[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];A.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 e*4+17};A.getSymbolTotalCodewords=function(e){return yn[e]};A.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};A.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');we=e};A.isKanjiModeEnabled=function(){return typeof we!="undefined"};A.toSJIS=function(e){return we(e)};var ae={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.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: "+n)}}t.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(ae);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(let n=0;n<e;n++)this.putBit((t>>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var mn=ht;function Z(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Z.prototype.set=function(t,e,n,r){const i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)};Z.prototype.get=function(t,e){return this.data[t*this.size+e]};Z.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n};Z.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var vn=Z,gt={};(function(t){const e=A.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),a=o===145?26:Math.ceil((o-13)/(2*i-2))*2,u=[o-7];for(let s=1;s<i-1;s++)u[s]=u[s-1]-a;return u.push(6),u.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),a=o.length;for(let u=0;u<a;u++)for(let s=0;s<a;s++)u===0&&s===0||u===0&&s===a-1||u===a-1&&s===0||i.push([o[u],o[s]]);return i}})(gt);var pt={};const wn=A.getSymbolSize,yt=7;pt.getPositions=function(e){const n=wn(e);return[[0,0],[n-yt,0],[0,n-yt]]};var mt={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let a=0,u=0,s=0,f=null,c=null;for(let y=0;y<o;y++){u=s=0,f=c=null;for(let _=0;_<o;_++){let l=i.get(y,_);l===f?u++:(u>=5&&(a+=e.N1+(u-5)),f=l,u=1),l=i.get(_,y),l===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=l,s=1)}u>=5&&(a+=e.N1+(u-5)),s>=5&&(a+=e.N1+(s-5))}return a},t.getPenaltyN2=function(i){const o=i.size;let a=0;for(let u=0;u<o-1;u++)for(let s=0;s<o-1;s++){const f=i.get(u,s)+i.get(u,s+1)+i.get(u+1,s)+i.get(u+1,s+1);(f===4||f===0)&&a++}return a*e.N2},t.getPenaltyN3=function(i){const o=i.size;let a=0,u=0,s=0;for(let f=0;f<o;f++){u=s=0;for(let c=0;c<o;c++)u=u<<1&2047|i.get(f,c),c>=10&&(u===1488||u===93)&&a++,s=s<<1&2047|i.get(c,f),c>=10&&(s===1488||s===93)&&a++}return a*e.N3},t.getPenaltyN4=function(i){let o=0;const a=i.data.length;for(let s=0;s<a;s++)o+=i.data[s];return Math.abs(Math.ceil(o*100/a/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(i+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return i*o%2+i*o%3==0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2==0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const a=o.size;for(let u=0;u<a;u++)for(let s=0;s<a;s++)o.isReserved(s,u)||o.xor(s,u,n(i,s,u))},t.getBestMask=function(i,o){const a=Object.keys(t.Patterns).length;let u=0,s=1/0;for(let f=0;f<a;f++){o(f),t.applyMask(f,i);const c=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(f,i),c<s&&(s=c,u=f)}return u}})(mt);var ue={};const D=ae,se=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ce=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ue.getBlocksCount=function(e,n){switch(n){case D.L:return se[(e-1)*4+0];case D.M:return se[(e-1)*4+1];case D.Q:return se[(e-1)*4+2];case D.H:return se[(e-1)*4+3];default:return}};ue.getTotalCodewordsCount=function(e,n){switch(n){case D.L:return ce[(e-1)*4+0];case D.M:return ce[(e-1)*4+1];case D.Q:return ce[(e-1)*4+2];case D.H:return ce[(e-1)*4+3];default:return}};var vt={},le={};const X=new Uint8Array(512),fe=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)X[n]=e,fe[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)X[n]=X[n-255]})();le.log=function(e){if(e<1)throw new Error("log("+e+")");return fe[e]};le.exp=function(e){return X[e]};le.mul=function(e,n){return e===0||n===0?0:X[fe[e]+fe[n]]};(function(t){const e=le;t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let a=0;a<r.length;a++)for(let u=0;u<i.length;u++)o[a+u]^=e.mul(r[a],i[u]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const a=o[0];for(let s=0;s<i.length;s++)o[s]^=e.mul(i[s],a);let u=0;for(;u<o.length&&o[u]===0;)u++;o=o.slice(u)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(vt);const wt=vt;function be(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}be.prototype.initialize=function(e){this.degree=e,this.genPoly=wt.generateECPolynomial(this.degree)};be.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=wt.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var bn=be,bt={},L={},Ee={};Ee.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var N={};const Et="[0-9]+",En="[A-Z $%*+\\-./:]+";let ee="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ee=ee.replace(/u/g,"\\u");const Cn="(?:(?![A-Z0-9 $%*+\\-./:]|"+ee+`)(?:.|[\r ]))+`;N.KANJI=new RegExp(ee,"g");N.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");N.BYTE=new RegExp(Cn,"g");N.NUMERIC=new RegExp(Et,"g");N.ALPHANUMERIC=new RegExp(En,"g");const Sn=new RegExp("^"+ee+"$"),An=new RegExp("^"+Et+"$"),Tn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");N.testKanji=function(e){return Sn.test(e)};N.testNumeric=function(e){return An.test(e)};N.testAlphanumeric=function(e){return Tn.test(e)};(function(t){const e=Ee,n=N;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,a){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?o.ccBits[0]:a<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.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: "+i)}}t.from=function(o,a){if(t.isValid(o))return o;try{return r(o)}catch{return a}}})(L);(function(t){const e=A,n=ue,r=ae,i=L,o=Ee,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=e.getBCHDigit(a);function s(_,l,d){for(let w=1;w<=40;w++)if(l<=t.getCapacity(w,d,_))return w}function f(_,l){return i.getCharCountIndicator(_,l)+4}function c(_,l){let d=0;return _.forEach(function(w){d+=f(w.mode,l)+w.getBitsLength()}),d}function y(_,l){for(let d=1;d<=40;d++)if(c(_,d)<=t.getCapacity(d,l,i.MIXED))return d}t.from=function(l,d){return o.isValid(l)?parseInt(l,10):d},t.getCapacity=function(l,d,w){if(!o.isValid(l))throw new Error("Invalid QR Code version");typeof w=="undefined"&&(w=i.BYTE);const b=e.getSymbolTotalCodewords(l),h=n.getTotalCodewordsCount(l,d),v=(b-h)*8;if(w===i.MIXED)return v;const m=v-f(w,l);switch(w){case i.NUMERIC:return Math.floor(m/10*3);case i.ALPHANUMERIC:return Math.floor(m/11*2);case i.KANJI:return Math.floor(m/13);case i.BYTE:default:return Math.floor(m/8)}},t.getBestVersionForData=function(l,d){let w;const b=r.from(d,r.M);if(Array.isArray(l)){if(l.length>1)return y(l,b);if(l.length===0)return 1;w=l[0]}else w=l;return s(w.mode,w.getLength(),b)},t.getEncodedBits=function(l){if(!o.isValid(l)||l<7)throw new Error("Invalid QR Code version");let d=l<<12;for(;e.getBCHDigit(d)-u>=0;)d^=a<<e.getBCHDigit(d)-u;return l<<12|d}})(bt);var Ct={};const Ce=A,St=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Pn=1<<14|1<<12|1<<10|1<<4|1<<1,At=Ce.getBCHDigit(St);Ct.getEncodedBits=function(e,n){const r=e.bit<<3|n;let i=r<<10;for(;Ce.getBCHDigit(i)-At>=0;)i^=St<<Ce.getBCHDigit(i)-At;return(r<<10|i)^Pn};var Tt={};const Bn=L;function H(t){this.mode=Bn.NUMERIC,this.data=t.toString()}H.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};H.prototype.getLength=function(){return this.data.length};H.prototype.getBitsLength=function(){return H.getBitsLength(this.data.length)};H.prototype.write=function(e){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),e.put(i,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),e.put(i,o*3+1))};var Mn=H;const Nn=L,Se=["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"," ","$","%","*","+","-",".","/",":"];function V(t){this.mode=Nn.ALPHANUMERIC,this.data=t}V.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};V.prototype.getLength=function(){return this.data.length};V.prototype.getBitsLength=function(){return V.getBitsLength(this.data.length)};V.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Se.indexOf(this.data[n])*45;r+=Se.indexOf(this.data[n+1]),e.put(r,11)}this.data.length%2&&e.put(Se.indexOf(this.data[n]),6)};var In=V,Rn=function(e){for(var n=[],r=e.length,i=0;i<r;i++){var o=e.charCodeAt(i);if(o>=55296&&o<=56319&&r>i+1){var a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(o=(o-55296)*1024+a-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const kn=Rn,Dn=L;function j(t){this.mode=Dn.BYTE,this.data=new Uint8Array(kn(t))}j.getBitsLength=function(e){return e*8};j.prototype.getLength=function(){return this.data.length};j.prototype.getBitsLength=function(){return j.getBitsLength(this.data.length)};j.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)};var Ln=j;const On=L,Un=A;function J(t){this.mode=On.KANJI,this.data=t}J.getBitsLength=function(e){return e*13};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=Un.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var zn=J,Pt={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},a={};a[r]=0;var u=e.PriorityQueue.make();u.push(r,0);for(var s,f,c,y,_,l,d,w,b;!u.empty();){s=u.pop(),f=s.value,y=s.cost,_=n[f]||{};for(c in _)_.hasOwnProperty(c)&&(l=_[c],d=y+l,w=a[c],b=typeof a[c]=="undefined",(b||w>d)&&(a[c]=d,u.push(c,d),o[c]=f))}if(typeof i!="undefined"&&typeof a[i]=="undefined"){var h=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Pt);(function(t){const e=L,n=Mn,r=In,i=Ln,o=zn,a=N,u=A,s=Pt.exports;function f(h){return unescape(encodeURIComponent(h)).length}function c(h,v,m){const g=[];let E;for(;(E=h.exec(m))!==null;)g.push({data:E[0],index:E.index,mode:v,length:E[0].length});return g}function y(h){const v=c(a.NUMERIC,e.NUMERIC,h),m=c(a.ALPHANUMERIC,e.ALPHANUMERIC,h);let g,E;return u.isKanjiModeEnabled()?(g=c(a.BYTE,e.BYTE,h),E=c(a.KANJI,e.KANJI,h)):(g=c(a.BYTE_KANJI,e.BYTE,h),E=[]),v.concat(m,g,E).sort(function(S,P){return S.index-P.index}).map(function(S){return{data:S.data,mode:S.mode,length:S.length}})}function _(h,v){switch(v){case e.NUMERIC:return n.getBitsLength(h);case e.ALPHANUMERIC:return r.getBitsLength(h);case e.KANJI:return o.getBitsLength(h);case e.BYTE:return i.getBitsLength(h)}}function l(h){return h.reduce(function(v,m){const g=v.length-1>=0?v[v.length-1]:null;return g&&g.mode===m.mode?(v[v.length-1].data+=m.data,v):(v.push(m),v)},[])}function d(h){const v=[];for(let m=0;m<h.length;m++){const g=h[m];switch(g.mode){case e.NUMERIC:v.push([g,{data:g.data,mode:e.ALPHANUMERIC,length:g.length},{data:g.data,mode:e.BYTE,length:g.length}]);break;case e.ALPHANUMERIC:v.push([g,{data:g.data,mode:e.BYTE,length:g.length}]);break;case e.KANJI:v.push([g,{data:g.data,mode:e.BYTE,length:f(g.data)}]);break;case e.BYTE:v.push([{data:g.data,mode:e.BYTE,length:f(g.data)}])}}return v}function w(h,v){const m={},g={start:{}};let E=["start"];for(let C=0;C<h.length;C++){const S=h[C],P=[];for(let k=0;k<S.length;k++){const B=S[k],K=""+C+k;P.push(K),m[K]={node:B,lastCount:0},g[K]={};for(let ye=0;ye<E.length;ye++){const I=E[ye];m[I]&&m[I].node.mode===B.mode?(g[I][K]=_(m[I].lastCount+B.length,B.mode)-_(m[I].lastCount,B.mode),m[I].lastCount+=B.length):(m[I]&&(m[I].lastCount=B.length),g[I][K]=_(B.length,B.mode)+4+e.getCharCountIndicator(B.mode,v))}}E=P}for(let C=0;C<E.length;C++)g[E[C]].end=0;return{map:g,table:m}}function b(h,v){let m;const g=e.getBestModeForData(h);if(m=e.from(v,g),m!==e.BYTE&&m.bit<g.bit)throw new Error('"'+h+'" cannot be encoded with mode '+e.toString(m)+`. Suggested mode is: `+e.toString(g));switch(m===e.KANJI&&!u.isKanjiModeEnabled()&&(m=e.BYTE),m){case e.NUMERIC:return new n(h);case e.ALPHANUMERIC:return new r(h);case e.KANJI:return new o(h);case e.BYTE:return new i(h)}}t.fromArray=function(v){return v.reduce(function(m,g){return typeof g=="string"?m.push(b(g,null)):g.data&&m.push(b(g.data,g.mode)),m},[])},t.fromString=function(v,m){const g=y(v,u.isKanjiModeEnabled()),E=d(g),C=w(E,m),S=s.find_path(C.map,"start","end"),P=[];for(let k=1;k<S.length-1;k++)P.push(C.table[S[k]].node);return t.fromArray(l(P))},t.rawSplit=function(v){return t.fromArray(y(v,u.isKanjiModeEnabled()))}})(Tt);const _e=A,Ae=ae,Fn=mn,$n=vn,Hn=gt,Vn=pt,Te=mt,Pe=ue,jn=bn,de=bt,Jn=Ct,xn=L,Be=Tt;function Kn(t,e){const n=t.size,r=Vn.getPositions(e);for(let i=0;i<r.length;i++){const o=r[i][0],a=r[i][1];for(let u=-1;u<=7;u++)if(!(o+u<=-1||n<=o+u))for(let s=-1;s<=7;s++)a+s<=-1||n<=a+s||(u>=0&&u<=6&&(s===0||s===6)||s>=0&&s<=6&&(u===0||u===6)||u>=2&&u<=4&&s>=2&&s<=4?t.set(o+u,a+s,!0,!0):t.set(o+u,a+s,!1,!0))}}function Wn(t){const e=t.size;for(let n=8;n<e-8;n++){const r=n%2==0;t.set(n,6,r,!0),t.set(6,n,r,!0)}}function Yn(t,e){const n=Hn.getPositions(e);for(let r=0;r<n.length;r++){const i=n[r][0],o=n[r][1];for(let a=-2;a<=2;a++)for(let u=-2;u<=2;u++)a===-2||a===2||u===-2||u===2||a===0&&u===0?t.set(i+a,o+u,!0,!0):t.set(i+a,o+u,!1,!0)}}function Gn(t,e){const n=t.size,r=de.getEncodedBits(e);let i,o,a;for(let u=0;u<18;u++)i=Math.floor(u/3),o=u%3+n-8-3,a=(r>>u&1)==1,t.set(i,o,a,!0),t.set(o,i,a,!0)}function Me(t,e,n){const r=t.size,i=Jn.getEncodedBits(e,n);let o,a;for(o=0;o<15;o++)a=(i>>o&1)==1,o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function qn(t,e){const n=t.size;let r=-1,i=n-1,o=7,a=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let s=0;s<2;s++)if(!t.isReserved(i,u-s)){let f=!1;a<e.length&&(f=(e[a]>>>o&1)==1),t.set(i,u-s,f),o--,o===-1&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function Qn(t,e,n){const r=new Fn;n.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),xn.getCharCountIndicator(s.mode,t)),s.write(r)});const i=_e.getSymbolTotalCodewords(t),o=Pe.getTotalCodewordsCount(t,e),a=(i-o)*8;for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const u=(a-r.getLengthInBits())/8;for(let s=0;s<u;s++)r.put(s%2?17:236,8);return Zn(r,t,e)}function Zn(t,e,n){const r=_e.getSymbolTotalCodewords(e),i=Pe.getTotalCodewordsCount(e,n),o=r-i,a=Pe.getBlocksCount(e,n),u=r%a,s=a-u,f=Math.floor(r/a),c=Math.floor(o/a),y=c+1,_=f-c,l=new jn(_);let d=0;const w=new Array(a),b=new Array(a);let h=0;const v=new Uint8Array(t.buffer);for(let S=0;S<a;S++){const P=S<s?c:y;w[S]=v.slice(d,d+P),b[S]=l.encode(w[S]),d+=P,h=Math.max(h,P)}const m=new Uint8Array(r);let g=0,E,C;for(E=0;E<h;E++)for(C=0;C<a;C++)E<w[C].length&&(m[g++]=w[C][E]);for(E=0;E<_;E++)for(C=0;C<a;C++)m[g++]=b[C][E];return m}function Xn(t,e,n,r){let i;if(Array.isArray(t))i=Be.fromArray(t);else if(typeof t=="string"){let f=e;if(!f){const c=Be.rawSplit(t);f=de.getBestVersionForData(c,n)}i=Be.fromString(t,f||40)}else throw new Error("Invalid data");const o=de.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(` The chosen QR Code version cannot contain this amount of data. Minimum version required to store current data is: `+o+`. `);const a=Qn(e,n,i),u=_e.getSymbolSize(e),s=new $n(u);return Kn(s,e),Wn(s),Yn(s,e),Me(s,n,0),e>=7&&Gn(s,e),qn(s,a),isNaN(r)&&(r=Te.getBestMask(s,Me.bind(null,s,n))),Te.applyMask(r,s),Me(s,n,r),{modules:s,version:e,errorCorrectionLevel:n,maskPattern:r,segments:i}}dt.create=function(e,n){if(typeof e=="undefined"||e==="")throw new Error("No input text");let r=Ae.M,i,o;return typeof n!="undefined"&&(r=Ae.from(n.errorCorrectionLevel,Ae.M),i=de.from(n.version),o=Te.from(n.maskPattern),n.toSJISFunc&&_e.setToSJISFunction(n.toSJISFunc)),Xn(e,i,r,o)};var Bt={},Ne={};(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,a=r.scale||4;return{width:o,scale:o?4:a,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const o=t.getScale(r,i);return Math.floor((r+i.margin*2)*o)},t.qrToImageData=function(r,i,o){const a=i.modules.size,u=i.modules.data,s=t.getScale(a,o),f=Math.floor((a+o.margin*2)*s),c=o.margin*s,y=[o.color.light,o.color.dark];for(let _=0;_<f;_++)for(let l=0;l<f;l++){let d=(_*f+l)*4,w=o.color.light;if(_>=c&&l>=c&&_<f-c&&l<f-c){const b=Math.floor((_-c)/s),h=Math.floor((l-c)/s);w=y[u[b*a+h]?1:0]}r[d++]=w.r,r[d++]=w.g,r[d++]=w.b,r[d]=w.a}}})(Ne);(function(t){const e=Ne;function n(i,o,a){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=a,o.width=a,o.style.height=a+"px",o.style.width=a+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,a,u){let s=u,f=a;typeof s=="undefined"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(f=r()),s=e.getOptions(s);const c=e.getImageWidth(o.modules.size,s),y=f.getContext("2d"),_=y.createImageData(c,c);return e.qrToImageData(_.data,o,s),n(y,f,c),y.putImageData(_,0,0),f},t.renderToDataURL=function(o,a,u){let s=u;typeof s=="undefined"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const f=t.render(o,a,s),c=s.type||"image/png",y=s.rendererOpts||{};return f.toDataURL(c,y.quality)}})(Bt);var Mt={};const er=Ne;function Nt(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Ie(t,e,n){let r=t+e;return typeof n!="undefined"&&(r+=" "+n),r}function tr(t,e,n){let r="",i=0,o=!1,a=0;for(let u=0;u<t.length;u++){const s=Math.floor(u%e),f=Math.floor(u/e);!s&&!o&&(o=!0),t[u]?(a++,u>0&&s>0&&t[u-1]||(r+=o?Ie("M",s+n,.5+f+n):Ie("m",i,0),i=0,o=!1),s+1<e&&t[u+1]||(r+=Ie("h",a),a=0)):i++}return r}Mt.render=function(e,n,r){const i=er.getOptions(n),o=e.modules.size,a=e.modules.data,u=o+i.margin*2,s=i.color.light.a?"<path "+Nt(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",f="<path "+Nt(i.color.dark,"stroke")+' d="'+tr(a,o,i.margin)+'"/>',c='viewBox="0 0 '+u+" "+u+'"',y=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",_='<svg xmlns="http://www.w3.org/2000/svg" '+y+c+' shape-rendering="crispEdges">'+s+f+`</svg> `;return typeof r=="function"&&r(null,_),_};const nr=pn,Re=dt,It=Bt,rr=Mt;function ke(t,e,n,r,i){const o=[].slice.call(arguments,1),a=o.length,u=typeof o[a-1]=="function";if(!u&&!nr())throw new Error("Callback required as last argument");if(u){if(a<2)throw new Error("Too few arguments provided");a===2?(i=n,n=e,e=r=void 0):a===3&&(e.getContext&&typeof i=="undefined"?(i=r,r=void 0):(i=r,r=n,n=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(n=e,e=r=void 0):a===2&&!e.getContext&&(r=n,n=e,e=void 0),new Promise(function(s,f){try{const c=Re.create(n,r);s(t(c,e,r))}catch(c){f(c)}})}try{const s=Re.create(n,r);i(null,t(s,e,r))}catch(s){i(s)}}ie.create=Re.create;ie.toCanvas=ke.bind(null,It.render);ie.toDataURL=ke.bind(null,It.renderToDataURL);ie.toString=ke.bind(null,function(t,e,n){return rr.render(t,n)});var De,T,Rt,Le=0,Oe=[],kt=p.__b,Dt=p.__r,Lt=p.diffed,Ot=p.__c,Ut=p.unmount;function zt(t,e){p.__h&&p.__h(T,t,Le||e),Le=0;var n=T.__H||(T.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function or(t){return Le=1,ir($t,t)}function ir(t,e,n){var r=zt(De++,2);return r.t=t,r.__c||(r.__=[n?n(e):$t(void 0,e),function(i){var o=r.t(r.__[0],i);r.__[0]!==o&&(r.__=[o,r.__[1]],r.__c.setState({}))}],r.__c=T),r.__}function ar(t,e){var n=zt(De++,3);!p.__s&&sr(n.__H,e)&&(n.__=t,n.__H=e,T.__H.__h.push(n))}function ur(){var t;for(Oe.sort(function(e,n){return e.__v.__b-n.__v.__b});t=Oe.pop();)if(t.__P)try{t.__H.__h.forEach(he),t.__H.__h.forEach(Ue),t.__H.__h=[]}catch(e){t.__H.__h=[],p.__e(e,t.__v)}}p.__b=function(t){T=null,kt&&kt(t)},p.__r=function(t){Dt&&Dt(t),De=0;var e=(T=t.__c).__H;e&&(e.__h.forEach(he),e.__h.forEach(Ue),e.__h=[])},p.diffed=function(t){Lt&&Lt(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Oe.push(e)!==1&&Rt===p.requestAnimationFrame||((Rt=p.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(o),Ft&&cancelAnimationFrame(r),setTimeout(n)},o=setTimeout(i,100);Ft&&(r=requestAnimationFrame(i))})(ur)),T=null},p.__c=function(t,e){e.some(function(n){try{n.__h.forEach(he),n.__h=n.__h.filter(function(r){return!r.__||Ue(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],p.__e(r,n.__v)}}),Ot&&Ot(t,e)},p.unmount=function(t){Ut&&Ut(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{he(r)}catch(i){e=i}}),e&&p.__e(e,n.__v))};var Ft=typeof requestAnimationFrame=="function";function he(t){var e=T,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),T=e}function Ue(t){var e=T;t.__c=t.__(),T=e}function sr(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function $t(t,e){return typeof e=="function"?e(t):e}function cr(t,e){for(var n in e)t[n]=e[n];return t}function Ht(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Vt(t){this.props=t}(Vt.prototype=new M).isPureReactComponent=!0,Vt.prototype.shouldComponentUpdate=function(t,e){return Ht(this.props,t)||Ht(this.state,e)};var jt=p.__b;p.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),jt&&jt(t)};var lr=p.__e;p.__e=function(t,e,n){if(t.then){for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}lr(t,e,n)};var Jt=p.unmount;function ze(){this.__u=0,this.t=null,this.__b=null}function xt(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function ge(){this.u=null,this.o=null}p.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Jt&&Jt(t)},(ze.prototype=new M).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=xt(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var f=r.state.__e;r.__v.__k[0]=function y(_,l,d){return _&&(_.__v=null,_.__k=_.__k&&_.__k.map(function(w){return y(w,l,d)}),_.__c&&_.__c.__P===l&&(_.__e&&d.insertBefore(_.__e,_.__d),_.__c.__e=!0,_.__c.__P=d)),_}(f,f.__c.__P,f.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},s=e.__h===!0;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},ze.prototype.componentWillUnmount=function(){this.t=[]},ze.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function o(a,u,s){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),a.__c.__H=null),(a=cr({},a)).__c!=null&&(a.__c.__P===s&&(a.__c.__P=u),a.__c=null),a.__k=a.__k&&a.__k.map(function(f){return o(f,u,s)})),a}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__e&&G(U,null,t.fallback);return i&&(i.__h=null),[G(U,null,e.__e?null:t.children),i]};var Kt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};(ge.prototype=new M).__e=function(t){var e=this,n=xt(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Kt(e,t,r)):i()};n?n(o):o()}},ge.prototype.render=function(t){this.u=null,this.o=new Map;var e=Q(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Kt(t,n,e)})};var fr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,_r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dr=typeof document!="undefined",hr=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(M.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Wt=p.event;function gr(){}function pr(){return this.cancelBubble}function yr(){return this.defaultPrevented}p.event=function(t){return Wt&&(t=Wt(t)),t.persist=gr,t.isPropagationStopped=pr,t.isDefaultPrevented=yr,t.nativeEvent=t};var Yt={configurable:!0,get:function(){return this.class}},Gt=p.vnode;p.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var o in r={},n){var a=n[o];dr&&o==="children"&&e==="noscript"||o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!hr(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():i&&_r.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),r[o]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Q(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),t.props=r,n.class!=n.className&&(Yt.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Yt))}t.$$typeof=fr,Gt&&Gt(t)};var qt=p.__r;p.__r=function(t){qt&&qt(t)};function Fe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function $e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var mr=typeof window!="undefined",Qt=function(t,e){return new URLSearchParams(t).get(e)},vr=function(t){var e=window.location,n=or(function(){return Qt(e.search,t)}),r=n[0],i=n[1];return ar(function(){var o=function(){i(Qt(e.search,t))};return Fe(window,"popstate",o),Fe(window,"pushstate",o),Fe(window,"replacestate",o),function(){$e(window,"popstate",o),$e(window,"pushstate",o),$e(window,"replacestate",o)}},[]),r},wr=function(){return null},$r=mr?vr:wr,br=gn(hn),Er,Cr,Zt=br,Sr=0;function Xt(t,e,n,r,i){var o,a,u={};for(a in e)a=="ref"?o=e[a]:u[a]=e[a];var s={type:t,props:u,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Sr,__source:r,__self:i};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)u[a]===void 0&&(u[a]=o[a]);return Zt.options.vnode&&Zt.options.vnode(s),s}Cr=Xt,Er=Xt;var Ar={},F={},He={};Object.defineProperty(He,"__esModule",{value:!0});var O;(function(t){t[t.infinity=0]="infinity",t[t.minusInfinity=1]="minusInfinity",t[t.minusZero=2]="minusZero"})(O||(O={}));function Tr(t){return 1/t==-1/0}He.default={type:"Arithmetic",shouldTransform:function(t,e){return t==="number"&&(e===1/0||e===-1/0||Tr(e))},toSerializable:function(t){return t===1/0?O.infinity:t===-1/0?O.minusInfinity:O.minusZero},fromSerializable:function(t){return t===O.infinity?1/0:t===O.minusInfinity?-1/0:t===O.minusZero?-0:t}};var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default={type:"Function",shouldTransform:function(t,e){return typeof e=="function"},toSerializable:function(t){var e="";try{e=t.toString().substring(e.indexOf("{")+1,e.lastIndexOf("}"))}catch{}return{name:t.name,body:e,proto:Object.getPrototypeOf(t).constructor.name}},fromSerializable:function(t){try{var e=function(){};return typeof t.name=="string"&&Object.defineProperty(e,"name",{value:t.name,writable:!1}),typeof t.body=="string"&&Object.defineProperty(e,"body",{value:t.body,writable:!1}),typeof t.proto=="string"&&(e.constructor={name:t.proto}),e}catch{return t}}};var je={},Je=z&&z.__assign||function(){return Je=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Je.apply(this,arguments)};Object.defineProperty(je,"__esModule",{value:!0});je.default={type:"Map",shouldTransform:function(t,e){return e&&e.constructor&&e.constructor.name==="Map"},toSerializable:function(t){var e={};return t.forEach(function(n,r){var i=typeof r=="object"?JSON.stringify(r):r;e[i]=n}),{name:"Map",body:e,proto:Object.getPrototypeOf(t).constructor.name}},fromSerializable:function(t){var e=t.body,n=Je({},e);return typeof t.proto=="string"&&(n.constructor={name:t.proto}),n}};var xe={};Object.defineProperty(xe,"__esModule",{value:!0});var Ke="@t",en="@r",tn=/^#*@(t|r)$/,te=function(){var e=eval;return e("this")}(),nn=typeof ArrayBuffer=="function",rn=typeof Map=="function",on=typeof Set=="function",Pr=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],an=Array.prototype.slice,Br={serialize:function(t){return JSON.stringify(t)},deserialize:function(t){return JSON.parse(t)}},Mr=function(){function t(e,n){this.references=e,this.transforms=n,this.circularCandidates=[],this.circularCandidatesDescrs=[],this.circularRefCount=0}return t._createRefMark=function(e){var n=Object.create(null);return n[en]=e,n},t.prototype._createCircularCandidate=function(e,n,r){this.circularCandidates.push(e),this.circularCandidatesDescrs.push({parent:n,key:r,refIdx:-1})},t.prototype._applyTransform=function(e,n,r,i){var o=Object.create(null),a=i.toSerializable(e);return typeof a=="object"&&this._createCircularCandidate(e,n,r),o[Ke]=i.type,o.data=this._handleValue(function(){return a},n,r),o},t.prototype._handleArray=function(e){for(var n=[],r=function(a){n[a]=i._handleValue(function(){return e[a]},n,a)},i=this,o=0;o<e.length;o++)r(o);return n},t.prototype._handlePlainObject=function(e){var n,r,i=Object.create(null),o=function(f){if(Reflect.has(e,f)){var c=tn.test(f)?"#"+f:f;i[c]=a._handleValue(function(){return e[f]},i,c)}},a=this;for(var u in e)o(u);var s=(r=(n=e==null?void 0:e.__proto__)===null||n===void 0?void 0:n.constructor)===null||r===void 0?void 0:r.name;return s&&s!=="Object"&&(i.constructor={name:s}),i},t.prototype._handleObject=function(e,n,r){return this._createCircularCandidate(e,n,r),Array.isArray(e)?this._handleArray(e):this._handlePlainObject(e)},t.prototype._ensureCircularReference=function(e){var n=this.circularCandidates.indexOf(e);if(n>-1){var r=this.circularCandidatesDescrs[n];return r.refIdx===-1&&(r.refIdx=r.parent?++this.circularRefCount:0),t._createRefMark(r.refIdx)}return null},t.prototype._handleValue=function(e,n,r){try{var i=e(),o=typeof i,a=o==="object"&&i!==null;if(a){var u=this._ensureCircularReference(i);if(u)return u}for(var s=0,f=this.transforms;s<f.length;s++){var c=f[s];if(c.shouldTransform(o,i))return this._applyTransform(i,n,r,c)}return a?this._handleObject(i,n,r):i}catch(y){try{return this._handleValue(function(){return y instanceof Error?y:new Error(y)},n,r)}catch{return null}}},t.prototype.transform=function(){for(var e=this,n=[this._handleValue(function(){return e.references},null,null)],r=0,i=this.circularCandidatesDescrs;r<i.length;r++){var o=i[r];o.refIdx>0&&(n[o.refIdx]=o.parent[o.key],o.parent[o.key]=t._createRefMark(o.refIdx))}return n},t}(),Nr=function(){function t(e,n){this.activeTransformsStack=[],this.visitedRefs=Object.create(null),this.references=e,this.transformMap=n}return t.prototype._handlePlainObject=function(e){var n=Object.create(null);"constructor"in e&&(!e.constructor||typeof e.constructor.name!="string")&&(e.constructor={name:"Object"});for(var r in e)e.hasOwnProperty(r)&&(this._handleValue(e[r],e,r),tn.test(r)&&(n[r.substring(1)]=e[r],delete e[r]));for(var i in n)e[i]=n[i]},t.prototype._handleTransformedObject=function(e,n,r){var i=e[Ke],o=this.transformMap[i];if(!o)throw new Error(`Can't find transform for "`+i+'" type.');this.activeTransformsStack.push(e),this._handleValue(e.data,e,"data"),this.activeTransformsStack.pop(),n[r]=o.fromSerializable(e.data)},t.prototype._handleCircularSelfRefDuringTransform=function(e,n,r){var i=this.references;Object.defineProperty(n,r,{val:void 0,configurable:!0,enumerable:!0,get:function(){return this.val===void 0&&(this.val=i[e]),this.val},set:function(o){this.val=o}})},t.prototype._handleCircularRef=function(e,n,r){this.activeTransformsStack.includes(this.references[e])?this._handleCircularSelfRefDuringTransform(e,n,r):(this.visitedRefs[e]||(this.visitedRefs[e]=!0,this._handleValue(this.references[e],this.references,e)),n[r]=this.references[e])},t.prototype._handleValue=function(e,n,r){if(!(typeof e!="object"||e===null)){var i=e[en];if(i!==void 0)this._handleCircularRef(i,n,r);else if(e[Ke])this._handleTransformedObject(e,n,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)this._handleValue(e[o],e,o);else this._handlePlainObject(e)}},t.prototype.transform=function(){return this.visitedRefs[0]=!0,this._handleValue(this.references[0],this.references,0),this.references[0]},t}(),Ir=[{type:"[[NaN]]",shouldTransform:function(t,e){return t==="number"&&isNaN(e)},toSerializable:function(){return""},fromSerializable:function(){return NaN}},{type:"[[undefined]]",shouldTransform:function(t){return t==="undefined"},toSerializable:function(){return""},fromSerializable:function(){}},{type:"[[Date]]",shouldTransform:function(t,e){return e instanceof Date},toSerializable:function(t){return t.getTime()},fromSerializable:function(t){var e=new Date;return e.setTime(t),e}},{type:"[[RegExp]]",should