This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
CMS/1.Software/UI/gateway-ui/ui/dist/js/chunk-vendors.089a9f71.js

23 lines
1.7 MiB
JavaScript
Raw Permalink Normal View History

2024-11-19 09:19:21 +00:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"009a":function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return y}));var o=n("1444"),r=n("2ee4"),a=2,i=.16,l=.05,c=.05,s=.15,u=5,d=4,p=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function b(e){var t=e.r,n=e.g,r=e.b,a=Object(o["h"])(t,n,r);return{h:360*a.h,s:a.s,v:a.v}}function f(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Object(o["f"])(t,n,r,!1))}function v(e,t,n){var o=n/100,r={r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b};return r}function h(e,t,n){var o;return o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-a*t:Math.round(e.h)+a*t:n?Math.round(e.h)+a*t:Math.round(e.h)-a*t,o<0?o+=360:o>=360&&(o-=360),o}function g(e,t,n){return 0===e.h&&0===e.s?e.s:(o=n?e.s-i*t:t===d?e.s+i:e.s+l*t,o>1&&(o=1),n&&t===u&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function m(e,t,n){var o;return o=n?e.v+c*t:e.v-s*t,o>1&&(o=1),Number(o.toFixed(2))}function O(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Object(r["a"])(e),a=u;a>0;a-=1){var i=b(o),l=f(Object(r["a"])({h:h(i,a,!0),s:g(i,a,!0),v:m(i,a,!0)}));n.push(l)}n.push(f(o));for(var c=1;c<=d;c+=1){var s=b(o),O=f(Object(r["a"])({h:h(s,c),s:g(s,c),v:m(s,c)}));n.push(O)}return"dark"===t.theme?p.map((function(e){var o=e.index,a=e.opacity,i=f(v(Object(r["a"])(t.backgroundColor||"#141414"),Object(r["a"])(n[o]),100*a));return i})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},j={},w={};Object.keys(y).forEach((function(e){j[e]=O(y[e]),j[e].primary=j[e][5],w[e]=O(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));j.red,j.volcano;var x=j.gold,S=(j.orange,j.yellow,j.lime,j.green,j.cyan,j.blue);j.geekblue,j.purple,j.magenta,j.grey},"00ee":function(e,t,n){"use strict";var o=n("b622"),r=o("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},"01c2":function(e,t,n){"use strict";const o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t["a"]=o},"04f8":function(e,t,n){"use strict";var o=n("2d00"),r=n("d039"),a=n("da84"),i=a.String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},"06cf":function(e,t,n){"use strict";var o=n("83ab"),r=n("c65b"),a=n("d1e7"),i=n("5c6c"),l=n("fc6a"),c=n("a04b"),s=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=l(e),t=c(t),u)try{return d(e,t)}catch(n){}if(s(e,t))return i(!r(a.f,e,t),e[t])}},"07fa":function(e,t,n){"use strict";var o=n("50c4");e.exports=function(e){return o(e.length)}},"0bb5":function(e,t,n){"use strict";var o="4.0.3";t["a"]=o},"0c35":function(e,t,n){"use strict";var o=n("7a23"),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r,i=n("b3f0");function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t){var n=l({},e,t
/*!
* vue-router v4.2.4
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
const r="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const i=Object.assign;function l(e,t){const n={};for(const o in t){const r=t[o];n[o]=s(r)?r.map(e):e(r)}return n}const c=()=>{},s=Array.isArray;const u=/\/$/,d=e=>e.replace(u,"");function p(e,t,n="/"){let o,r={},a="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(o=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),r=e(a)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=y(null!=o?o:t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:r,hash:i}}function b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function f(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function v(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&h(t.matched[o],n.matched[r])&&g(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function h(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function g(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!m(e[n],t[n]))return!1;return!0}function m(e,t){return s(e)?O(e,t):s(t)?O(t,e):e===t}function O(e,t){return s(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}function y(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let a,i,l=n.length-1;for(a=0;a<o.length;a++)if(i=o[a],"."!==i){if(".."!==i)break;l>1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(a-(a===o.length?1:0)).join("/")}var j,w;(function(e){e["pop"]="pop",e["push"]="push"})(j||(j={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(w||(w={}));function x(e){if(!e)if(r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),d(e)}const S=/^[^#]+#/;function C(e,t){return e.replace(S,"#")+t}function k(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const $=()=>({left:window.pageXOffset,top:window.pageYOffset});function M(e){let t;if("el"in e){const n=e.el,o="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=k(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function E(e,t){const n=history.state?history.state.position-t:-1;return n+e}const I=new Map;function P(e,t){I.set(e,t)}function T(e){const t=I.get(e);return I.delete(e),t}let A=()=>location.protocol+"//"+location.host;function B(e,t){const{pathname:n,search:o,hash:r}=t,a=e.indexOf("#");if(a>-1){let t=r.includes(e.slice(a))?e.slice(a).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),f(n,"")}const i=f(n,e);return i+o+r}function D(e,t,n,o){let r=[],a=[],l=null;const c=({state:a})=>{const i=B(e,location),c=n.value,s=t.value;let u=0;if(a){if(n.value=i,t.value=a,l&&l===c)return void(l=null);u=s?a.position-s.position:0}else o(i);r.forEach(e=>{e(n.value,c,{delta:u,type:j.pop,direction:u?u>0?w.forward:w.back:w.unknown})})};function s(){l=n.value}function u(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return a.push(t),t}function d(){const{history:e}=window;e.state&&e.replaceState(i({},e.state,{scroll:$()}),"")}function p(){for(const e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:u,destroy:p}}function R(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?$():null}}function z(e){const{history:t,location:n}=window,o={value:B(e,n)},r={value:t.state};function a(o,a,i){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l)
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,o,r){var a,i,l=8*r-o-1,c=(1<<l)-1,s=c>>1,u=-7,d=n?r-1:0,p=n?-1:1,b=e[t+d];for(d+=p,a=b&(1<<-u)-1,b>>=-u,u+=l;u>0;a=256*a+e[t+d],d+=p,u-=8);for(i=a&(1<<-u)-1,a>>=-u,u+=o;u>0;i=256*i+e[t+d],d+=p,u-=8);if(0===a)a=1-s;else{if(a===c)return i?NaN:1/0*(b?-1:1);i+=Math.pow(2,o),a-=s}return(b?-1:1)*i*Math.pow(2,a-o)},t.write=function(e,t,n,o,r,a){var i,l,c,s=8*a-r-1,u=(1<<s)-1,d=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:a-1,f=o?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),t+=i+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(i++,c/=2),i+d>=u?(l=0,i=u):i+d>=1?(l=(t*c-1)*Math.pow(2,r),i+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,r),i=0));r>=8;e[n+b]=255&l,b+=f,l/=256,r-=8);for(i=i<<r|l,s+=r;s>0;e[n+b]=255&i,b+=f,i/=256,s-=8);e[n+b-f]|=128*v}},"94ca":function(e,t,n){"use strict";var o=n("d039"),r=n("1626"),a=/#|\.prototype\./,i=function(e,t){var n=c[l(e)];return n===u||n!==s&&(r(t)?o(t):!!t)},l=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"95aa":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("7a23");function r(e){if(!Object(o["v"])(e))return Object(o["L"])(e);const t=new Proxy({},{get(t,n,o){return Reflect.get(e.value,n,o)},set(t,n,o){return e.value[n]=o,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Object(o["L"])(t)}},"96d9":function(e,t,n){"use strict";var o=n("7a23"),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=r,i=n("b3f0");function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t){var n=l({},e,t.attrs);return Object(o["o"])(i["a"],l({},n,{icon:a}),null)};s.displayName="ExclamationCircleOutlined",s.inheritAttrs=!1;t["a"]=s},"97e1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}));var o=n("c31d"),r=n("64aa");let a=Object(o["a"])({},r["a"].Modal);function i(e){a=e?Object(o["a"])(Object(o["a"])({},a),e):Object(o["a"])({},r["a"].Modal)}function l(){return a}},"98a7":function(e,t,n){"use strict";function o(){return!1}t["a"]=o},"9b1f":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="month",t="quarter";return function(n,o){var r=o.prototype;r.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=r.add;r.add=function(n,o){return n=Number(n),this.$utils().p(o)===t?this.add(3*n,e):a.bind(this)(n,o)};var i=r.startOf;r.startOf=function(n,o){var r=this.$utils(),a=!!r.u(o)||o;if(r.p(n)===t){var l=this.quarter()-1;return a?this.month(3*l).startOf(e).startOf("day"):this.month(3*l+2).endOf(e).endOf("day")}return i.bind(this)(n,o)}}}))},"9b83":function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d}));var o=n("c31d");const r={overflo
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var o=n("1fb5"),r=n("9152"),a=n("e3db");function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function l(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return b(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,n,o):"string"===typeof t?f(e,t,n):g(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t,n,o){return d(t),t<=0?c(e,t):void 0!==n?"string"===typeof o?c(e,t).fill(n,o):c(e,t).fill(n):c(e,t)}function b(e,t){if(d(t),e=c(e,t<0?0:0|m(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|y(t,n);e=c(e,o);var r=e.write(t,n);return r!==o&&(e=e.slice(0,r)),e}function v(e,t){var n=t.length<0?0:0|m(t.length);e=c(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function h(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=v(e,t),e}function g(e,t){if(s.isBuffer(t)){var n=0|m(t.length);return e=c(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):v(e,t);if("Buffer"===t.type&&a(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function O(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(o)return q(e).length;t=(""+t).toLowerCase(),o=!0}}function j(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return z(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function w(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function x(e,t,n,o,r){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=s.from(t,o)),s.isBuffer(t))retu
/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/
var e6;(function(e){class t{static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,o){let i,l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=c&&c<=s&&s<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(i=c;;i++){const n=8*t.getNumDataCodewords(i,o),r=a.getTotalBits(e,i);if(r<=n){l=r;break}if(i>=s)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&l<=8*t.getNumDataCodewords(i,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(i),p);for(const e of t.getData())p.push(e)}r(p.length==l);const b=8*t.getNumDataCodewords(i,o);r(p.length<=b),n(0,Math.min(4,b-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.length<b;t^=253)n(t,8,p);const f=[];while(8*f.length<p.length)f.push(0);return p.forEach((e,t)=>f[t>>>3]|=e<<7-(7&t)),new t(i,o,f,u)}constructor(e,n,o,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const i=[];for(let t=0;t<this.size;t++)i.push(!1);for(let t=0;t<this.size;t++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(o);if(this.drawCodewords(l),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}r(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let o=0;o<t;o++)0==n&&0==o||0==n&&o==t-1||n==t-1&&0==o||this.drawAlignmentPattern(e[n],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let o=0;o<10;o++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);r(a>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(a,r));this.setFunctionModule(8,7,o(a,6)),this.setFunctionModule(8,8,o(a,7)),this.setFunctionModule(7,8,o(a,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(a,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(a,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(a,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,a=Math.floor(n/3);this.setFunctionModule(r,a,e),this.setFunctionModule(a,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),a=e+o,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,o=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],l=Math.floor(t.getNumRawDataModules(n)/8),c=a-l%a,s=Math.floor(l/a),u=[],d=t.reedSolomonComputeDivisor(i);for
//# sourceMappingURL=chunk-vendors.089a9f71.js.map