text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6618d78"],{"0196":function(t,e,r){var n=r("5a88"),o=r("bbf0");function i(t){this.mode=o.BYTE,this.data=n.from(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)},t.exports=i},"0425":function(t,e){var r="[0-9]+",n="[A-Z $%*+\\-./:]+",o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");var i="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";e.KANJI=new RegExp(o,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp(n,"g");var a=new RegExp("^"+o+"$"),s=new RegExp("^"+r+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return a.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return u.test(t)}},"0d7d":function(t,e,r){"use strict";r("55ee")},"10b0":function(t,e,r){"use strict";var n={single_source_shortest_paths:function(t,e,r){var o={},i={};i[e]=0;var a,s,u,l,c,f,d,h,g,m=n.PriorityQueue.make();m.push(e,0);while(!m.empty())for(u in a=m.pop(),s=a.value,l=a.cost,c=t[s]||{},c)c.hasOwnProperty(u)&&(f=c[u],d=l+f,h=i[u],g="undefined"===typeof i[u],(g||h>d)&&(i[u]=d,m.push(u,d),o[u]=s));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var v=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(v)}return o},extract_shortest_path_from_predecessor_list:function(t,e){var r=[],n=e;while(n)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var o=n.single_source_shortest_paths(t,e,r);return n.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var e,r=n.PriorityQueue,o={};for(e in t=t||{},r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},2732:function(t,e,r){var n=r("5a88"),o=r("699e");e.mul=function(t,e){for(var r=n.alloc(t.length+e.length-1),i=0;i<t.length;i++)for(var a=0;a<e.length;a++)r[i+a]^=o.mul(t[i],e[a]);return r},e.mod=function(t,e){var r=n.from(t);while(r.length-e.length>=0){for(var i=r[0],a=0;a<e.length;a++)r[a]^=o.mul(e[a],i);var s=0;while(s<r.length&&0===r[s])s++;r=r.slice(s)}return r},e.generateECPolynomial=function(t){for(var r=n.from([1]),i=0;i<t;i++)r=e.mul(r,[1,o.exp(i)]);return r}},"27a3":function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},"291e":function(t,e,r){t.exports=r.p+"img/timer.a996f2f0.svg"},"2f3a":function(t,e,r){var n=r("bbf0"),o=r("7bf0");function i(t){this.mode=n.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=o.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=i},"34fc":function(t,e,r){var n=r("7a43"),o=[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],i=[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];e.getBlocksCount=function(t,e){switch(e){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}}},4006:function(t,e,r){var n=r("45be");function o(t,e){var r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function i(t,e,r){var n=t+e;return"undefined"!==typeof r&&(n+=" "+r),n}function a(t,e,r){for(var n="",o=0,a=!1,s=0,u=0;u<t.length;u++){var l=Math.floor(u%e),c=Math.floor(u/e);l||a||(a=!0),t[u]?(s++,u>0&&l>0&&t[u-1]||(n+=a?i("M",l+r,.5+c+r):i("m",o,0),o=0,a=!1),l+1<e&&t[u+1]||(n+=i("h",s),s=0)):o++}return n}e.render=function(t,e,r){var i=n.getOptions(e),s=t.modules.size,u=t.modules.data,l=s+2*i.margin,c=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",f="<path "+o(i.color.dark,"stroke")+' d="'+a(u,s,i.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',h=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",g='<svg xmlns="http://www.w3.org/2000/svg" '+h+d+' shape-rendering="crispEdges">'+c+f+"</svg>\n";return"function"===typeof r&&r(null,g),g}},4146:function(t,e,r){var n=r("45be");function o(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function i(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,r){var a=r,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=i()),a=n.getOptions(a);var u=n.getImageWidth(t.modules.size,a),l=s.getContext("2d"),c=l.createImageData(u,u);return n.qrToImageData(c.data,t,a),o(l,s,u),l.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){var o=n;"undefined"!==typeof o||r&&r.getContext||(o=r,r=void 0),o||(o={});var i=e.render(t,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},"45be":function(t,e){function r(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");var r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){var n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(var o=r.modules.size,i=r.modules.data,a=e.getScale(o,n),s=Math.floor((o+2*n.margin)*a),u=n.margin*a,l=[n.color.light,n.color.dark],c=0;c<s;c++)for(var f=0;f<s;f++){var d=4*(c*s+f),h=n.color.light;if(c>=u&&f>=u&&c<s-u&&f<s-u){var g=Math.floor((c-u)/a),m=Math.floor((f-u)/a);h=l[i[g*o+m]?1:0]}t[d++]=h.r,t[d++]=h.g,t[d++]=h.b,t[d]=h.a}}},"55ee":function(t,e,r){},"577e":function(t,e,r){var n=r("5a88");function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=n.alloc(t*t),this.reservedBit=n.alloc(t*t)}o.prototype.set=function(t,e,r,n){var o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},o.prototype.get=function(t,e){return this.data[t*this.size+e]},o.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},o.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=o},"5a88":function(t,e,r){"use strict";var n=r("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}a.TYPED_ARRAY_SUPPORT=o();var i=a.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function a(t,e,r){return a.TYPED_ARRAY_SUPPORT||this instanceof a?"number"===typeof t?c(this,t):w(this,t,e,r):new a(t,e,r)}function s(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function u(t){return t!==t}function l(t,e){var r;return a.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=a.prototype):(r=t,null===r&&(r=new a(e)),r.length=e),r}function c(t,e){var r=l(t,e<0?0:0|s(e));if(!a.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)r[n]=0;return r}function f(t,e){var r=0|v(e),n=l(t,r),o=n.write(e);return o!==r&&(n=n.slice(0,o)),n}function d(t,e){for(var r=e.length<0?0:0|s(e.length),n=l(t,r),o=0;o<r;o+=1)n[o]=255&e[o];return n}function h(t,e,r,n){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),a.TYPED_ARRAY_SUPPORT?o.__proto__=a.prototype:o=d(t,o),o}function g(t,e){if(a.isBuffer(e)){var r=0|s(e.length),n=l(t,r);return 0===n.length||e.copy(n,0,0,r),n}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||u(e.length)?l(t,0):d(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function v(t){if(a.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var e=t.length;return 0===e?0:m(t).length}function p(t,e,r,n){for(var o=0;o<n;++o){if(o+r>=e.length||o>=t.length)break;e[o+r]=t[o]}return o}function b(t,e,r,n){return p(m(e,t.length-r),t,r,n)}function w(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"===typeof e?f(t,e,r):g(t,e)}a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),a.prototype.write=function(t,e,r){void 0===e||void 0===r&&"string"===typeof e?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return b(this,t,e,r)},a.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),a.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=a.prototype;else{var o=e-t;r=new a(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},a.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},a.prototype.fill=function(t,e,r){if("string"===typeof t){if("string"===typeof e?(e=0,r=this.length):"string"===typeof r&&(r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var i=a.isBuffer(t)?t:new a(t),s=i.length;for(o=0;o<r-e;++o)this[o+e]=i[o%s]}return this},a.concat=function(t,e){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l(null,0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var o=c(null,e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!a.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o},a.byteLength=v,a.prototype._isBuffer=!0,a.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports.alloc=function(t){var e=new a(t);return e.fill(0),e},t.exports.from=function(t){return new a(t)}},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},"699e":function(t,e,r){var n=r("5a88"),o=n.alloc(512),i=n.alloc(256);(function(){for(var t=1,e=0;e<255;e++)o[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(e=255;e<512;e++)o[e]=o[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return o[t]},e.mul=function(t,e){return 0===t||0===e?0:o[i[t]+i[e]]}},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r={N1:3,N2:3,N3:40,N4:10};function n(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,o=0,i=0,a=null,s=null,u=0;u<e;u++){o=i=0,a=s=null;for(var l=0;l<e;l++){var c=t.get(u,l);c===a?o++:(o>=5&&(n+=r.N1+(o-5)),a=c,o=1),c=t.get(l,u),c===s?i++:(i>=5&&(n+=r.N1+(i-5)),s=c,i=1)}o>=5&&(n+=r.N1+(o-5)),i>=5&&(n+=r.N1+(i-5))}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,o=0;o<e-1;o++)for(var i=0;i<e-1;i++){var a=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==a&&0!==a||n++}return n*r.N2},e.getPenaltyN3=function(t){for(var e=t.size,n=0,o=0,i=0,a=0;a<e;a++){o=i=0;for(var s=0;s<e;s++)o=o<<1&2047|t.get(a,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(s,a),s>=10&&(1488===i||93===i)&&n++}return n*r.N3},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,o=0;o<n;o++)e+=t.data[o];var i=Math.abs(Math.ceil(100*e/n/5)-10);return i*r.N4},e.applyMask=function(t,e){for(var r=e.size,o=0;o<r;o++)for(var i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,n(t,i,o))},e.getBestMask=function(t,r){for(var n=Object.keys(e.Patterns).length,o=0,i=1/0,a=0;a<n;a++){r(a),e.applyMask(a,t);var s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),s<i&&(i=s,o=a)}return o}},"7a43":function(t,e){function r(t){if("string"!==typeof t)throw new Error("Param is not a string");var r=t.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch(o){return n}}},"7ba0":function(t,e){function r(){this.buffer=[],this.length=0}r.prototype={get:function(t){var e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1===(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=r},"7bf0":function(t,e){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];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){var e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof r},e.toSJIS=function(t){return r(t)}},"8d23":function(t,e,r){var n=r("5a88"),o=r("2732"),i=r("1c35").Buffer;function a(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},a.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=n.alloc(this.degree),r=i.concat([t,e],t.length+this.degree),a=o.mod(r,this.genPoly),s=this.degree-a.length;if(s>0){var u=n.alloc(this.degree);return a.copy(u,s),u}return a},t.exports=a},"924f":function(t,e,r){var n=r("7bf0").getSymbolSize,o=7;e.getPositions=function(t){var e=n(t);return[[0,0],[e-o,0],[0,e-o]]}},"92df":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.room?r("div",{staticClass:"room-info"},[r("div",{staticClass:"chat-header"},[r("v-container",{attrs:{fluid:""}},[r("div",{staticClass:"room-name no-upper"},[t._v(t._s(t.$t("room_info.title")))]),r("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.$navigation&&t.$navigation.canPop(),expression:"$navigation && $navigation.canPop()"}],staticClass:"header-button-left",attrs:{text:""},on:{click:function(e){return e.stopPropagation(),t.$navigation.pop(e)}}},[r("v-icon",[t._v("arrow_back")]),r("span",[t._v(t._s(t.$t("menu.back")))])],1),r("v-btn",{staticClass:"header-button-right filled-button me-3",attrs:{color:"black",depressed:""},on:{click:function(e){e.stopPropagation(),t.showLeaveConfirmation=!0}}},[t._v("👋 "+t._s(t.$t("room_info.leave_room")))])],1)],1),r("div",{staticClass:"members ma-3 pa-3 mt-0 pt-0 text-center"},[r("v-avatar",{staticClass:"room-avatar"},[t.roomAvatar?r("v-img",{attrs:{src:t.roomAvatar}}):r("span",{staticClass:"white--text headline"},[t._v(t._s(t.roomName.substring(0,1).toUpperCase()))])],1),r("div",{staticClass:"name"},[t._v(t._s(t.roomName))]),r("div",{staticClass:"topic"},[t._v(t._s(t.roomTopic))]),r("div",{staticClass:"created-by"},[t._v(" "+t._s(t.$t("room_info.created_by",{user:t.creator}))+" ")])],1),r("v-expand-transition",[r("v-container",{directives:[{name:"show",rawName:"v-show",value:t.publicRoomLink,expression:"publicRoomLink"}],staticClass:"pa-0",attrs:{fluid:""}},[r("v-row",{staticClass:"qr-container ma-3",attrs:{cols:"12"}},[r("v-col",{attrs:{cols:"auto"}},[r("canvas",{ref:"roomQr",staticClass:"qr",attrs:{id:"room-qr"}})]),r("v-col",{attrs:{"align-self":"center"}},[r("div",{staticClass:"link"},[t._v(t._s(t.publicRoomLink))])])],1),r("v-row",{staticClass:"mt-0 pt-0",attrs:{align:"center"}},[r("v-col",{staticClass:"mt-0 pt-0",attrs:{align:"center"}},[t.publicRoomLinkCopied?r("v-btn",{staticClass:"filled-button link-copied-in-place",staticStyle:{"min-width":"180px"},attrs:{color:"#DEE6FF",depressed:""}},[t._v(t._s(t.$t("room_info.link_copied")))]):r("v-btn",{staticClass:"filled-button",staticStyle:{"min-width":"180px"},attrs:{color:"black",depressed:""},on:{click:function(e){return e.stopPropagation(),t.copyRoomLink(e)}}},[t._v(t._s(t.$t("room_info.copy_link")))])],1)],1)],1)],1),r("v-card",{staticClass:"account ma-3",attrs:{flat:""}},[r("v-card-title",{staticClass:"h2"},[t._v(t._s(t.$t("room_info.permissions")))]),r("v-card-text",[t.roomJoinRule?r("v-select",{staticClass:"mt-4",attrs:{color:"grey",disabled:!t.userCanChangeJoinRule||t.updatingJoinRule,items:t.joinRules,"item-value":"id"},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[r("v-icon",{staticClass:"me-2",attrs:{color:"black"}},[t._v(t._s(n.icon))]),t._v(" "+t._s(n.text)+" ")]}},{key:"item",fn:function(e){var n=e.item,o=e.attrs,i=e.on;return[r("v-list-item",t._g(t._b({scopedSlots:t._u([{key:"default",fn:function(e){var o=e.active;return[r("v-list-item-avatar",[r("v-icon",{attrs:{color:"black"}},[t._v(t._s(n.icon))])],1),r("v-list-item-content",[r("v-list-item-title",{domProps:{textContent:t._s(n.text)}})],1),r("v-list-item-action",[o?r("v-btn",{attrs:{icon:""}},[r("v-icon",{attrs:{color:"grey lighten-1"}},[t._v("check")])],1):t._e()],1)]}}],null,!0)},"v-list-item",o,!1),i))]}}],null,!1,2437036762),model:{value:t.roomJoinRule,callback:function(e){t.roomJoinRule=e},expression:"roomJoinRule"}}):t._e()],1)],1),r("v-card",{staticClass:"members ma-3",attrs:{flat:""}},[r("v-card-title",{staticClass:"h2"},[t._v(t._s(t.$t("room_info.members"))),r("v-spacer"),r("div",[t._v(t._s(t.memberCount))])],1),r("v-card-text",[t._l(t.joinedMembers,(function(e,n){return r("div",{directives:[{name:"show",rawName:"v-show",value:t.showAllMembers||n<5,expression:"showAllMembers || index < 5"}],key:e.userId,staticClass:"member ma-2",on:{click:function(r){return t.toggleMemberExpanded(e)}}},[r("v-avatar",{staticClass:"avatar",attrs:{size:"32",color:"grey"}},[t.memberAvatar(e)?r("img",{attrs:{src:t.memberAvatar(e)}}):r("span",{staticClass:"white--text headline"},[t._v(t._s(e.name.substring(0,1).toUpperCase()))])]),t._v(" "+t._s(e.userId==t.$matrix.currentUserId?t.$t("room_info.user_you",{user:e.user?e.user.displayName:e.name}):t.$t("room_info.user",{user:e.user?e.user.displayName:e.name}))+" "),t.expandedMembers.includes(e)?r("DeviceList",{attrs:{member:e}}):t._e()],1)})),r("div",{staticClass:"show-all",on:{click:function(e){t.showAllMembers=!t.showAllMembers}}},[t._v(" "+t._s(t.showAllMembers?t.$t("room_info.hide_all"):t.$t("room_info.show_all"))+" ")])],2)],1),r("div",{staticClass:"members ma-3 pa-3 text-center"},[t.userCanPurgeRoom?r("v-btn",{staticClass:"filled-button",attrs:{color:"red",depressed:""},on:{click:function(e){e.stopPropagation(),t.showPurgeConfirmation=!0}}},[t._v(t._s(t.$t("room_info.purge")))]):t._e()],1),r("div",{staticClass:"build-version"},[t._v(" "+t._s(t.$t("room_info.version_info",{version:t.buildVersion}))+" ")]),r("LeaveRoomDialog",{attrs:{show:t.showLeaveConfirmation,room:t.room},on:{close:function(e){t.showLeaveConfirmation=!1}}}),r("PurgeRoomDialog",{attrs:{show:t.showPurgeConfirmation,room:t.room},on:{close:function(e){t.showPurgeConfirmation=!1}}})],1):t._e()},o=[],i=(r("b0c0"),r("a434"),r("d3b7"),r("dd2a")),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-dialog",{directives:[{name:"show",rawName:"v-show",value:t.room,expression:"room"}],staticClass:"ma-0 pa-0",attrs:{width:"80%"},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}},[-1==t.timeout?n("div",{staticClass:"dialog-content text-center"},[[n("v-img",{attrs:{contain:"",height:"28",src:r("edbd")}}),n("h2",{staticClass:"dialog-title"},[t._v(t._s(t.$t("purge_room.title")))]),n("div",{staticClass:"dialog-text"},[t._v(" "+t._s(t.$t("purge_room.info"))+" ")]),n("div",{staticClass:"dialog-text"},[t._v(" "+t._s(t.status)+" ")])],n("v-container",{attrs:{fluid:""}},[n("v-row",{attrs:{cols:"12"}},[n("v-col",{attrs:{cols:"6"}},[n("v-btn",{staticClass:"text-button",attrs:{depressed:"",text:"",block:"",disabled:t.isPurging},on:{click:function(e){t.showDialog=!1}}},[t._v(t._s(t.$t("menu.cancel")))])],1),n("v-col",{attrs:{cols:"6",align:"center"}},[n("v-btn",{staticClass:"filled-button",attrs:{color:"red",depressed:"",block:"",disabled:t.isPurging},on:{click:function(e){return e.stopPropagation(),t.onPurgeRoom()}}},[t._v(t._s(t.$t("purge_room.button")))])],1)],1)],1)],2):t._e(),t.timeout>=0&&!t.isPurging?n("div",{staticClass:"dialog-content text-center"},[[n("v-img",{staticClass:"d-inline-block me-2",attrs:{contain:"",width:"20",src:r("291e")}}),t._v(t._s(t.$t("purge_room.n_seconds",{seconds:t.timeout}))+" "),n("h2",{staticClass:"dialog-title"},[t._v(t._s(t.$t("purge_room.self_destruct")))]),n("div",{staticClass:"dialog-text"},[t._v(" "+t._s(t.$t("purge_room.notified"))+" ")]),n("div",{staticClass:"dialog-text"},[t._v(" "+t._s(t.status)+" ")])],n("v-container",{attrs:{fluid:""}},[n("v-row",{attrs:{cols:"12"}},[n("v-col",{attrs:{cols:"12"}},[n("v-btn",{staticClass:"text-button",attrs:{depressed:"",text:"",block:"",disabled:t.isPurging},on:{click:t.undo}},[t._v(t._s(t.$t("menu.undo")))])],1)],1)],1)],2):t._e(),t.isPurging?n("div",{staticClass:"dialog-content text-center"},[n("h2",{staticClass:"dialog-title"},[t._v(t._s(t.$t("purge_room.deleting")))]),n("div",{staticClass:"dialog-text"},[t._v(" "+t._s(t.status)+" ")])]):t._e()])},s=[],u=r("241d"),l={name:"LeaveRoomDialog",mixins:[u["a"]],props:{show:{type:Boolean,default:function(){return!1}}},data:function(){return{timeout:-1,timeoutTimer:null,showDialog:!1,isPurging:!1,status:null}},watch:{show:{handler:function(t,e){this.showDialog=t}},showDialog:function(){this.showDialog||this.$emit("close")}},methods:{undo:function(){this.timeoutTimer&&(clearInterval(this.timeoutTimer),this.timeoutTimer=null),this.timeout=-1,this.$matrix.matrixClient.sendStateEvent(this.room.roomId,"im.keanu.room_deletion_notice",{status:"cancel"}),this.showDialog=!1},onPurgeRoom:function(){var t=this;this.$matrix.matrixClient.sendStateEvent(this.room.roomId,"im.keanu.room_deletion_notice",{status:"delete"}),this.timeout=30,this.timeoutTimer=setInterval((function(){t.timeout=t.timeout-1,0==t.timeout&&(clearInterval(t.timeoutTimer),t.timeoutTimer=null,t.onDoPurgeRoom())}),1e3)},onDoPurgeRoom:function(){var t=this;this.isPurging=!0,this.$matrix.purgeRoom(this.room.roomId,this.onPurgeStatus).then((function(){t.showDialog=!1,console.log("Purged room"),t.$navigation.push({name:"Home",params:{roomId:null}},-1)})).catch((function(e){console.error("Error purging",e),t.status=t.$t("room.purge_failed")})).finally((function(){t.isPurging=!1}))},onPurgeStatus:function(t){this.status=t}}},c=l,f=(r("eef7"),r("2877")),d=r("6544"),h=r.n(d),g=r("8336"),m=r("62ad"),v=r("a523"),p=r("169a"),b=r("adda"),w=r("0fd9"),y=Object(f["a"])(c,a,s,!1,null,null,null),_=y.exports;h()(y,{VBtn:g["a"],VCol:m["a"],VContainer:v["a"],VDialog:p["a"],VImg:b["a"],VRow:w["a"]});var C=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-list",{attrs:{dense:""},nativeOn:{click:function(e){return e.stopPropagation(),t.nullEvent(e)}}},[r("v-subheader",[t._v(t._s(t.$t("device_list.title")))]),r("v-list-item-group",{attrs:{color:"primary"}},t._l(t.devices,(function(e){return r("v-list-item",{key:e.deviceId,attrs:{value:e.deviceId},scopedSlots:t._u([{key:"default",fn:function(n){var o=n.active;return[r("v-list-item-content",[r("v-list-item-title",[t._v(t._s(t.displayName(e)))]),r("v-list-item-subtitle",[t._v(t._s(t.verificationStatus(e)))])],1),o?r("v-list-item-action",[r("v-btn",{attrs:{icon:""}},[r("v-icon",{attrs:{color:e.isBlocked()?"red":e.isVerified()?"green":"grey lighten-1"}},[t._v("verified_user")])],1)],1):t._e()]}}],null,!0)})})),1)],1)},E=[],R={name:"DeviceList",props:{member:{type:Object,default:function(){return{}}}},data:function(){return{devices:[]}},watch:{member:{immediate:!0,handler:function(t,e){var r=this;this.updateDevices(),t&&this.$matrix.matrixClient.downloadKeys([t.userId]).then((function(){r.updateDevices()}))}}},methods:{updateDevices:function(){this.member?this.devices=this.$matrix.matrixClient.getStoredDevicesForUser(this.member.userId):this.devices=[]},displayName:function(t){var e=t.deviceId;return t.getDisplayName()&&(e+=" - "+t.getDisplayName()),e},verificationStatus:function(t){return t.isBlocked()?this.$t("device_list.blocked"):t.isVerified()?this.$t("device_list.verified"):this.$t("device_list.not_verified")},nullEvent:function(){}}},A=R,P=r("132d"),x=r("8860"),I=r("da13"),B=r("1800"),T=r("5d23"),N=r("1baa"),M=r("e0c7"),L=Object(f["a"])(A,C,E,!1,null,null,null),k=L.exports;h()(L,{VBtn:g["a"],VIcon:P["a"],VList:x["a"],VListItem:I["a"],VListItemAction:B["a"],VListItemContent:T["a"],VListItemGroup:N["a"],VListItemSubtitle:T["b"],VListItemTitle:T["c"],VSubheader:M["a"]});var S=r("d055"),$=r.n(S),D={name:"RoomInfo",mixins:[u["a"]],components:{LeaveRoomDialog:i["a"],PurgeRoomDialog:_,DeviceList:k},data:function(){return{memberCount:null,user:null,displayName:"",showAllMembers:!1,showLeaveConfirmation:!1,showPurgeConfirmation:!1,expandedMembers:[],buildVersion:"",updatingJoinRule:!1,publicRoomLinkCopied:!1,joinRules:[{id:"public",text:this.$t("room_info.join_public"),icon:"link"},{id:"invite",text:this.$t("room_info.join_invite"),icon:"person_add"}]}},mounted:function(){this.$matrix.on("Room.timeline",this.onEvent),this.updateMemberCount(),this.user=this.$matrix.matrixClient.getUser(this.$matrix.currentUserId),this.displayName=this.user.displayName,this.updateQRCode();var t=r("fc20").default;console.log("Version",t),this.buildVersion=t},destroyed:function(){this.$matrix.off("Room.timeline",this.onEvent)},computed:{creator:function(){if(this.room){var t=this.room.currentState.getStateEvents("m.room.create","");if(!t)return console.warn("Room "+this.roomId+" does not have an m.room.create event"),"";var e=t.getContent().creator,r=this.room.getMember(e);return r?r.user?r.user.displayName:r.name:e}return""},joinedMembers:function(){if(!this.room)return[];var t=this.$matrix.currentUserId;return this.room.getJoinedMembers().sort((function(e,r){if(e.userId==t)return-1;if(r.userId==t)return 1;var n=e.user?e.user.displayName:e.name,o=r.user?r.user.displayName:r.name;return n.localeCompare(o)}))}},watch:{room:{handler:function(t,e){console.log("RoomInfo: Current room changed"),this.updateMemberCount(),this.updateQRCode()}}},methods:{onEvent:function(t){t.getRoomId()===this.roomId&&"m.room.member"==t.getType()&&this.updateMemberCount()},updateMemberCount:function(){this.room?this.memberCount=this.room.getJoinedMemberCount():this.memberCount=null},updateQRCode:function(){var t=this.publicRoomLink,e=this.$refs.roomQr;t&&e&&$.a.toCanvas(e,t,{type:"image/png",margin:1,width:60},(function(t){t?console.error(t):console.log("success!")}))},memberAvatar:function(t){return t?t.getAvatarUrl(this.$matrix.matrixClient.getHomeserverUrl(),40,40,"scale",!0):null},viewProfile:function(){this.$navigation.push({name:"Profile"},1)},copyRoomLink:function(){var t=this;this.$copyText(this.publicRoomLink).then((function(e){t.publicRoomLinkCopied=!0,setInterval((function(){t.publicRoomLinkCopied=!1}),3e3)}),(function(t){console.log(t)}))},toggleMemberExpanded:function(t){var e=this.expandedMembers.indexOf(t);e>-1?this.expandedMembers.splice(e,1):this.expandedMembers.push(t)},setRoomJoinRule:function(t){var e=this,r=this.$matrix.matrixClient;if(this.room&&r&&t!=this.getRoomJoinRule()){this.updatingJoinRule=!0;var n=Promise.resolve();n.then((function(){r.sendStateEvent(e.room.roomId,"m.room.join_rules",{join_rule:t},"")})).then((function(){r.sendStateEvent(e.room.roomId,"m.room.guest_access",{guest_access:"forbidden"},"")})).catch((function(t){console.error(t)})).finally((function(){e.updatingJoinRule=!1,e.updateQRCode()}))}}}},U=D,V=(r("0d7d"),r("8212")),Y=r("b0af"),J=r("99d9"),F=r("0789"),O=r("8270"),j=r("b974"),z=r("2fa4"),H=Object(f["a"])(U,n,o,!1,null,null,null);e["default"]=H.exports;h()(H,{VAvatar:V["a"],VBtn:g["a"],VCard:Y["a"],VCardText:J["b"],VCardTitle:J["c"],VCol:m["a"],VContainer:v["a"],VExpandTransition:F["a"],VIcon:P["a"],VImg:b["a"],VListItem:I["a"],VListItemAction:B["a"],VListItemAvatar:O["a"],VListItemContent:T["a"],VListItemTitle:T["c"],VRow:w["a"],VSelect:j["a"],VSpacer:z["a"]})},9582:function(t,e,r){var n=r("7bf0"),o=1335,i=21522,a=n.getBCHDigit(o);e.getEncodedBits=function(t,e){var r=t.bit<<3|e,s=r<<10;while(n.getBCHDigit(s)-a>=0)s^=o<<n.getBCHDigit(s)-a;return(r<<10|s)^i}},"9d94":function(t,e,r){var n=r("bbf0"),o=["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 i(t){this.mode=n.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var r=45*o.indexOf(this.data[e]);r+=o.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=i},aa63:function(t,e,r){var n=r("5a88"),o=r("7bf0"),i=r("7a43"),a=r("7ba0"),s=r("577e"),u=r("d6c0"),l=r("924f"),c=r("7903"),f=r("34fc"),d=r("8d23"),h=r("c8aa"),g=r("9582"),m=r("bbf0"),v=r("befa"),p=r("e3db");function b(t,e){for(var r=t.size,n=l.getPositions(e),o=0;o<n.length;o++)for(var i=n[o][0],a=n[o][1],s=-1;s<=7;s++)if(!(i+s<=-1||r<=i+s))for(var u=-1;u<=7;u++)a+u<=-1||r<=a+u||(s>=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?t.set(i+s,a+u,!0,!0):t.set(i+s,a+u,!1,!0))}function w(t){for(var e=t.size,r=8;r<e-8;r++){var n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function y(t,e){for(var r=u.getPositions(e),n=0;n<r.length;n++)for(var o=r[n][0],i=r[n][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?t.set(o+a,i+s,!0,!0):t.set(o+a,i+s,!1,!0)}function _(t,e){for(var r,n,o,i=t.size,a=h.getEncodedBits(e),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+i-8-3,o=1===(a>>s&1),t.set(r,n,o,!0),t.set(n,r,o,!0)}function C(t,e,r){var n,o,i=t.size,a=g.getEncodedBits(e,r);for(n=0;n<15;n++)o=1===(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}function E(t,e){for(var r=t.size,n=-1,o=r-1,i=7,a=0,s=r-1;s>0;s-=2){6===s&&s--;while(1){for(var u=0;u<2;u++)if(!t.isReserved(o,s-u)){var l=!1;a<e.length&&(l=1===(e[a]>>>i&1)),t.set(o,s-u,l),i--,-1===i&&(a++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}}function R(t,e,r){var n=new a;r.forEach((function(e){n.put(e.mode.bit,4),n.put(e.getLength(),m.getCharCountIndicator(e.mode,t)),e.write(n)}));var i=o.getSymbolTotalCodewords(t),s=f.getTotalCodewordsCount(t,e),u=8*(i-s);n.getLengthInBits()+4<=u&&n.put(0,4);while(n.getLengthInBits()%8!==0)n.putBit(0);for(var l=(u-n.getLengthInBits())/8,c=0;c<l;c++)n.put(c%2?17:236,8);return A(n,t,e)}function A(t,e,r){for(var i=o.getSymbolTotalCodewords(e),a=f.getTotalCodewordsCount(e,r),s=i-a,u=f.getBlocksCount(e,r),l=i%u,c=u-l,h=Math.floor(i/u),g=Math.floor(s/u),m=g+1,v=h-g,p=new d(v),b=0,w=new Array(u),y=new Array(u),_=0,C=n.from(t.buffer),E=0;E<u;E++){var R=E<c?g:m;w[E]=C.slice(b,b+R),y[E]=p.encode(w[E]),b+=R,_=Math.max(_,R)}var A,P,x=n.alloc(i),I=0;for(A=0;A<_;A++)for(P=0;P<u;P++)A<w[P].length&&(x[I++]=w[P][A]);for(A=0;A<v;A++)for(P=0;P<u;P++)x[I++]=y[P][A];return x}function P(t,e,r,n){var i;if(p(t))i=v.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");var a=e;if(!a){var u=v.rawSplit(t);a=h.getBestVersionForData(u,r)}i=v.fromString(t,a||40)}var l=h.getBestVersionForData(i,r);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else e=l;var f=R(e,r,i),d=o.getSymbolSize(e),g=new s(d);return b(g,e),w(g),y(g,e),C(g,r,0),e>=7&&_(g,e),E(g,f),isNaN(n)&&(n=c.getBestMask(g,C.bind(null,g,r))),c.applyMask(n,g),C(g,r,n),{modules:g,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");var r,n,a=i.M;return"undefined"!==typeof e&&(a=i.from(e.errorCorrectionLevel,i.M),r=h.from(e.version),n=c.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),P(t,r,a,n)}},b22e:function(t,e,r){},bbf0:function(t,e,r){var n=r("27a3"),o=r("0425");function i(t){if("string"!==typeof t)throw new Error("Param is not a string");var r=t.toLowerCase();switch(r){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return i(t)}catch(n){return r}}},befa:function(t,e,r){var n=r("bbf0"),o=r("dd7e"),i=r("9d94"),a=r("0196"),s=r("2f3a"),u=r("0425"),l=r("7bf0"),c=r("10b0");function f(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){var n,o=[];while(null!==(n=t.exec(r)))o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function h(t){var e,r,o=d(u.NUMERIC,n.NUMERIC,t),i=d(u.ALPHANUMERIC,n.ALPHANUMERIC,t);l.isKanjiModeEnabled()?(e=d(u.BYTE,n.BYTE,t),r=d(u.KANJI,n.KANJI,t)):(e=d(u.BYTE_KANJI,n.BYTE,t),r=[]);var a=o.concat(i,e,r);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function g(t,e){switch(e){case n.NUMERIC:return o.getBitsLength(t);case n.ALPHANUMERIC:return i.getBitsLength(t);case n.KANJI:return s.getBitsLength(t);case n.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){var r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function v(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];switch(o.mode){case n.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:f(o.data)}]);break;case n.BYTE:e.push([{data:o.data,mode:n.BYTE,length:f(o.data)}])}}return e}function p(t,e){for(var r={},o={start:{}},i=["start"],a=0;a<t.length;a++){for(var s=t[a],u=[],l=0;l<s.length;l++){var c=s[l],f=""+a+l;u.push(f),r[f]={node:c,lastCount:0},o[f]={};for(var d=0;d<i.length;d++){var h=i[d];r[h]&&r[h].node.mode===c.mode?(o[h][f]=g(r[h].lastCount+c.length,c.mode)-g(r[h].lastCount,c.mode),r[h].lastCount+=c.length):(r[h]&&(r[h].lastCount=c.length),o[h][f]=g(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,e))}}i=u}for(d=0;d<i.length;d++)o[i[d]]["end"]=0;return{map:o,table:r}}function b(t,e){var r,u=n.getBestModeForData(t);if(r=n.from(e,u),r!==n.BYTE&&r.bit<u.bit)throw new Error('"'+t+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u));switch(r!==n.KANJI||l.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new o(t);case n.ALPHANUMERIC:return new i(t);case n.KANJI:return new s(t);case n.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,r){for(var n=h(t,l.isKanjiModeEnabled()),o=v(n),i=p(o,r),a=c.find_path(i.map,"start","end"),s=[],u=1;u<a.length-1;u++)s.push(i.table[a[u]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(h(t,l.isKanjiModeEnabled()))}},c8aa:function(t,e,r){var n=r("7bf0"),o=r("34fc"),i=r("7a43"),a=r("bbf0"),s=r("27a3"),u=r("e3db"),l=7973,c=n.getBCHDigit(l);function f(t,r,n){for(var o=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))return o}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){var r=0;return t.forEach((function(t){var n=d(t.mode,e);r+=n+t.getBitsLength()})),r}function g(t,r){for(var n=1;n<=40;n++){var o=h(t,n);if(o<=e.getCapacity(n,r,a.MIXED))return n}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof r&&(r=a.BYTE);var i=n.getSymbolTotalCodewords(t),u=o.getTotalCodewordsCount(t,e),l=8*(i-u);if(r===a.MIXED)return l;var c=l-d(r,t);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,e){var r,n=i.from(e,i.M);if(u(t)){if(t.length>1)return g(t,n);if(0===t.length)return 1;r=t[0]}else r=t;return f(r.mode,r.getLength(),n)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");var e=t<<12;while(n.getBCHDigit(e)-c>=0)e^=l<<n.getBCHDigit(e)-c;return t<<12|e}},d055:function(t,e,r){var n=r("67dd"),o=r("aa63"),i=r("4146"),a=r("4006");function s(t,e,r,i,a){var s=[].slice.call(arguments,1),u=s.length,l="function"===typeof s[u-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){if(u<1)throw new Error("Too few arguments provided");return 1===u?(r=e,e=i=void 0):2!==u||e.getContext||(i=r,r=e,e=void 0),new Promise((function(n,a){try{var s=o.create(r,i);n(t(s,e,i))}catch(u){a(u)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=r,r=e,e=i=void 0):3===u&&(e.getContext&&"undefined"===typeof a?(a=i,i=void 0):(a=i,i=r,r=e,e=void 0));try{var c=o.create(r,i);a(null,t(c,e,i))}catch(f){a(f)}}e.create=o.create,e.toCanvas=s.bind(null,i.render),e.toDataURL=s.bind(null,i.renderToDataURL),e.toString=s.bind(null,(function(t,e,r){return a.render(t,r)}))},d6c0:function(t,e,r){var n=r("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7],a=1;a<e-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){for(var r=[],n=e.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(var a=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||r.push([n[i],n[a]]);return r}},dd7e:function(t,e,r){var n=r("bbf0");function o(t){this.mode=n.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%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(t){var e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);var o=this.data.length-e;o>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*o+1))},t.exports=o},e3db:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},edbd:function(t,e,r){t.exports=r.p+"img/trash_black.f9f2685a.svg"},eef7:function(t,e,r){"use strict";r("b22e")},fc20:function(t,e,r){"use strict";r.r(e),e["default"]="debug"}}]);
  //# sourceMappingURL=chunk-a6618d78.a7ccf46a.js.map