2 lines
1.2 MiB
Plaintext
Vendored
2 lines
1.2 MiB
Plaintext
Vendored
/*! For license information please see app.js.LICENSE.txt */
|
||
(()=>{var t,e,n,a,r={4325:t=>{t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var a=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,o,s=String(r(e)),l=a(n),c=s.length;return l<0||l>=c?t?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):i:t?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var a=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?a(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var a=n("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var a=n("3a38"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?r(t+e,0):i(t,e)}},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var a=n("f772");t.exports=function(t,e){if(!a(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!a(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var a=n("f772"),r=n("e53d").document,i=a(r)&&a(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),r=n("32e9"),i=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),h=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!h||!p||"replace"===t&&!u||"split"===t&&!f){var m=/./[d],g=n(o,d,""[t],(function(t,e,n,a,r){return e.exec===l?h&&!r?{done:!0,value:m.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}})),v=g[0],b=g[1];a(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var a=n("d3f4"),r=n("7726").document,i=a(r)&&a(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:i?a(e):"Object"==(o=a(e))&&"function"==typeof e.callee?"Arguments":o}},"241e":function(t,e,n){var a=n("25eb");t.exports=function(t){return Object(a(t))}},"25eb":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"28a5":function(t,e,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),o=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),f=Math.min,d=[].push,h="split",p="length",m="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));n("214f")("split",2,(function(t,e,n,u){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(r,t,e);for(var i,o,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");(i=c.call(v,r))&&!((o=v[m])>f&&(l.push(r.slice(f,i.index)),i[p]>1&&i.index<r[p]&&d.apply(l,i.slice(1)),s=i[0][p],f=o,l[p]>=h));)v[m]===i.index&&v[m]++;return f===r[p]?!s&&v.test("")||l.push(""):l.push(r.slice(f)),l[p]>h?l.slice(0,h):l}:"0"[h](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r,a):b.call(String(r),n,a)},function(t,e){var a=u(b,t,this,e,b!==n);if(a.done)return a.value;var c=r(t),d=String(this),h=i(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),_=new h(v?c:"^(?:"+c.source+")",m),y=void 0===e?g:e>>>0;if(0===y)return[];if(0===d.length)return null===l(_,d)?[d]:[];for(var w=0,x=0,k=[];x<d.length;){_.lastIndex=v?x:0;var A,S=l(_,v?d:d.slice(x));if(null===S||(A=f(s(_.lastIndex+(v?0:x)),d.length))===w)x=o(d,x,p);else{if(k.push(d.slice(w,x)),k.length===y)return k;for(var C=1;C<=S.length-1;C++)if(k.push(S[C]),k.length===y)return k;x=w=A}}return k.push(d.slice(w)),k}]}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var a=n("7726"),r=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(i(n,o)||r(n,o,t[e]?""+t[e]:c.join(String(e)))),t===a?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2b4c":function(t,e,n){var a=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=o&&i[t]||(o?i:r)("Symbol."+t))}).store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),r=n("d2c8"),i="includes";a(a.P+a.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var a=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"335c":function(t,e,n){var a=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var a=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return a.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var a=n("335c"),r=n("25eb");t.exports=function(t){return a(r(t))}},"3a38":function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},4588:function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var a=n("cb7c"),r=n("9def"),i=n("0390"),o=n("5f1b");n("214f")("match",1,(function(t,e,n,s){return[function(n){var a=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,a):new RegExp(n)[e](String(a))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=a(t),c=String(this);if(!l.global)return o(l,c);var u=l.unicode;l.lastIndex=0;for(var f,d=[],h=0;null!==(f=o(l,c));){var p=String(f[0]);d[h]=p,""===p&&(l.lastIndex=i(c,r(l.lastIndex),u)),h++}return 0===h?null:d}]}))},5147:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(t){}}return!0}},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var a,r,i=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c="lastIndex",u=(a=/a/,r=/b*/g,o.call(a,"a"),o.call(r,"a"),0!==a[c]||0!==r[c]),f=void 0!==/()??/.exec("")[1];(u||f)&&(l=function(t){var e,n,a,r,l=this;return f&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),u&&(e=l[c]),a=o.call(l,t),u&&a&&(l[c]=l.global?a.index+a[0].length:e),f&&a&&a.length>1&&s.call(a[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(a[r]=void 0)})),a}),t.exports=l},5537:function(t,e,n){var a=n("8378"),r=n("7726"),i="__core-js_shared__",o=r[i]||(r[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var a=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return a[t]||(a[t]=r(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var a=n("36c3"),r=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,o){var s,l=a(e),c=r(l.length),u=i(o,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var a=n("7726"),r=n("8378"),i=n("32e9"),o=n("2aba"),s=n("9b43"),l="prototype",c=function(t,e,n){var u,f,d,h,p=t&c.F,m=t&c.G,g=t&c.S,v=t&c.P,b=t&c.B,_=m?a:g?a[e]||(a[e]={}):(a[e]||{})[l],y=m?r:r[e]||(r[e]={}),w=y[l]||(y[l]={});for(u in m&&(n=e),n)d=((f=!p&&_&&void 0!==_[u])?_:n)[u],h=b&&f?s(d,a):v&&"function"==typeof d?s(Function.call,d):d,_&&o(_,u,d,t&c.U),y[u]!=d&&i(y,u,h),v&&w[u]!=d&&(w[u]=d)};a.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"626a":function(t,e,n){var a=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},"63b6":function(t,e,n){var a=n("e53d"),r=n("584a"),i=n("d864"),o=n("35e8"),s=n("07e3"),l="prototype",c=function(t,e,n){var u,f,d,h=t&c.F,p=t&c.G,m=t&c.S,g=t&c.P,v=t&c.B,b=t&c.W,_=p?r:r[e]||(r[e]={}),y=_[l],w=p?a:m?a[e]:(a[e]||{})[l];for(u in p&&(n=e),n)(f=!h&&w&&void 0!==w[u])&&s(_,u)||(d=f?w[u]:n[u],_[u]=p&&"function"!=typeof w[u]?n[u]:v&&f?i(d,a):b&&w[u]==d?function(t){var e=function(e,n,a){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,a)}return t.apply(this,arguments)};return e[l]=t[l],e}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((_.virtual||(_.virtual={}))[u]=d,t&c.R&&y&&!y[u]&&o(y,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),r=n("be13");t.exports=function(t){return a(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var a=n("d3f4");t.exports=function(t,e){if(!a(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!a(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var a=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?r(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8378:function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var a=n("cb7c"),r=n("c69a"),i=n("6a99"),o=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9306:function(t,e,n){"use strict";var a=n("c3a1"),r=n("9aa9"),i=n("355d"),o=n("241e"),s=n("335c"),l=Object.assign;t.exports=!l||n("294c")((function(){var t={},e={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=a}))?function(t,e){for(var n=o(t),l=arguments.length,c=1,u=r.f,f=i.f;l>c;)for(var d,h=s(arguments[c++]),p=u?a(h).concat(u(h)):a(h),m=p.length,g=0;m>g;)f.call(h,d=p[g++])&&(n[d]=h[d]);return n}:l},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var a=n("d8e8");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,r){return t.call(e,n,a,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),r=Array.prototype;null==r[a]&&n("32e9")(r,a,{}),t.exports=function(t){r[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a3c3:function(t,e,n){var a=n("63b6");a(a.S+a.F,"Object",{assign:n("9306")})},aae3:function(t,e,n){var a=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},b447:function(t,e,n){var a=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(a(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var a=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,o){var s,l=a(e),c=r(l.length),u=i(o,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c3a1:function(t,e,n){var a=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return a(t,r)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},cb7c:function(t,e,n){var a=n("d3f4");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},d2c8:function(t,e,n){var a=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,n){var a=n("79aa");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,r){return t.call(e,n,a,r)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var a=n("e4ae"),r=n("794b"),i=n("1bc3"),o=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var a=n("584a"),r=n("e53d"),i="__core-js_shared__",o=r[i]||(r[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e4ae:function(t,e,n){var a=n("f772");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var a=n("07e3"),r=n("36c3"),i=n("5b4e")(!1),o=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=o&&a(s,n)&&c.push(n);for(;e.length>l;)a(s,n=e[l++])&&(~i(c,n)||c.push(n));return c}},ebd6:function(t,e,n){var a=n("cb7c"),r=n("d8e8"),i=n("2b4c")("species");t.exports=function(t,e){var n,o=a(t).constructor;return void 0===o||null==(n=a(o)[i])?e:r(n)}},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var a;(n.r(e),"undefined"!=typeof window)&&((a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]));n("4917"),n("28a5");var r=n("5176"),i=n.n(r);n("6762"),n("2fdb");function o(t,e,n,a,r,i,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}var s=o({name:"SingleOtpInput",props:{value:{type:String},separator:{type:String},focus:{type:Boolean},inputClasses:{type:String},shouldAutoFocus:{type:Boolean},inputType:{type:String,default:function(){return"tel"}},isLastChild:{type:Boolean}},data:function(){return{model:this.value||""}},mounted:function(){this.$refs.input&&this.focus&&this.shouldAutoFocus&&this.$refs.input.focus()},watch:{value:function(t,e){t!==e&&(this.model=t)},focus:function(t,e){e!==t&&this.$refs.input&&this.focus&&(this.$refs.input.focus(),this.$refs.input.select())}},methods:{handleOnChange:function(){return this.model.length>1&&(this.model=this.model.slice(0,1)),this.$emit("on-change",this.model)},handleOnKeyDown:function(t){var e=t||window.event,n=e.which?e.which:e.keyCode;this.isCodeNumeric(n)||8===n||86===n||46===n?this.$emit("on-keydown",t):e.preventDefault()},isCodeNumeric:function(t){return t>=48&&t<=57||t>=96&&t<=105},handleOnPaste:function(t){return this.$emit("on-paste",t)},handleOnFocus:function(){return this.$refs.input.select(),this.$emit("on-focus")},handleOnBlur:function(){return this.$emit("on-blur")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"flex","align-items":"center"}},["checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(e){var n=t.model,a=e.target,r=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.model=n.concat([null])):i>-1&&(t.model=n.slice(0,i).concat(n.slice(i+1)))}else t.model=r}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:"radio"},domProps:{checked:t._q(t.model,null)},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(e){t.model=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:t.inputType},domProps:{value:t.model},on:{input:[function(e){e.target.composing||(t.model=e.target.value)},t.handleOnChange],keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur}}),!t.isLastChild&&t.separator?n("span",[n("span",{domProps:{innerHTML:t._s(t.separator)}})]):t._e()])}),[],!1,null,null,null).exports,l=o({name:"OtpInput",components:{SingleOtpInput:s},props:{numInputs:{default:4},separator:{type:String,default:"**"},inputClasses:{type:String},inputType:{type:String,validator:function(t){return["number","tel","password"].includes(t)}},shouldAutoFocus:{type:Boolean,default:!1}},data:function(){return{activeInput:0,otp:[],oldOtp:[]}},methods:{handleOnFocus:function(t){this.activeInput=t},handleOnBlur:function(){this.activeInput=-1},checkFilledAllInputs:function(){return this.otp.join("").length===this.numInputs?this.$emit("on-complete",this.otp.join("")):"Wait until the user enters the required number of characters"},focusInput:function(t){this.activeInput=Math.max(Math.min(this.numInputs-1,t),0)},focusNextInput:function(){this.focusInput(this.activeInput+1)},focusPrevInput:function(){this.focusInput(this.activeInput-1)},changeCodeAtFocus:function(t){this.oldOtp=i()([],this.otp),this.$set(this.otp,this.activeInput,t),this.oldOtp.join("")!==this.otp.join("")&&(this.$emit("on-change",this.otp.join("")),this.checkFilledAllInputs())},handleOnPaste:function(t){t.preventDefault();var e=t.clipboardData.getData("text/plain").slice(0,this.numInputs-this.activeInput).split("");if("number"===this.inputType&&!e.join("").match(/^\d+$/))return"Invalid pasted data";var n=this.otp.slice(0,this.activeInput).concat(e);return this.$set(this,"otp",n.slice(0,this.numInputs)),this.focusInput(n.slice(0,this.numInputs).length),this.checkFilledAllInputs()},handleOnChange:function(t){this.changeCodeAtFocus(t),this.focusNextInput()},clearInput:function(){this.otp.length>0&&this.$emit("on-change",""),this.otp=[],this.activeInput=0},handleOnKeyDown:function(t){switch(t.keyCode){case 8:t.preventDefault(),this.changeCodeAtFocus(""),this.focusPrevInput();break;case 46:t.preventDefault(),this.changeCodeAtFocus("");break;case 37:t.preventDefault(),this.focusPrevInput();break;case 39:t.preventDefault(),this.focusNextInput()}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"flex"}},["password"===t.inputType?n("input",{staticStyle:{display:"none"},attrs:{autocomplete:"off",name:"hidden",type:"text"}}):t._e(),t._l(t.numInputs,(function(e,a){return n("SingleOtpInput",{key:a,attrs:{focus:t.activeInput===a,value:t.otp[a],separator:t.separator,"input-type":t.inputType,"input-classes":t.inputClasses,"is-last-child":a===t.numInputs-1,"should-auto-focus":t.shouldAutoFocus},on:{"on-change":t.handleOnChange,"on-keydown":t.handleOnKeyDown,"on-paste":t.handleOnPaste,"on-focus":function(e){return t.handleOnFocus(a)},"on-blur":t.handleOnBlur}})}))],2)}),[],!1,null,null,null),c=l.exports;e.default=c}})},6598:(t,e,n)=>{"use strict";var a={};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(a),n.d(a,{hasBrowserEnv:()=>Te,hasStandardBrowserEnv:()=>Pe,hasStandardBrowserWebWorkerEnv:()=>Le,navigator:()=>Ne,origin:()=>Oe});var i={hideModal:function(t){$(t).modal("hide")},isLogin:function(){return!!localStorage["Access Token"]},log:function(t){config.debug&&console.log(t)},notify:function(t){var e=arguments.length>2?arguments[2]:void 0,n=5e3,a="info",r="fa fa-info";switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info"){case"error":a="danger",r="fa fa-warning";break;case"loading":n=0,r="fa fa-refresh fa-spin";break;case"success":a="success",r="fa fa-check";break;case"progress":$.notifyClose(),n=0,t="<label>".concat(t,'</label>\n\t\t\t\t\t\t\t<div class="progress">\n\t\t\t\t\t\t\t\t<div class="progress-bar progress-bar-green" role="progressbar" aria-valuenow="').concat(e,'" aria-valuemin="0" aria-valuemax="100" style="width: ').concat(e,'%">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>'),r="fa fa-refresh fa-spin"}return $.notify({message:t,icon:r},{type:a,delay:n,placement:{from:"top",align:"center"}})},setAuthorization:function(){axios.defaults.headers.common.Authorization=localStorage["Access Token"],$.ajaxSetup({headers:{Authorization:localStorage["Access Token"]}})},setTitle:function(t){$("title").text(t)},getErrorMessage:function(t,e){var n="";switch(e){case 200:n=t.message;break;case 422:if(!(t="string"==typeof t?JSON.parse(t):t)){n="Sila semak semula input anda.";break}if(t.errors&&"object"===r(t.errors)){for(var a in t.errors){var i=t.errors[a];Array.isArray(i)?i.forEach((function(t){n+=t+"<br/>"})):"string"==typeof i&&(n+=i+"<br/>")}break}if("string"==typeof t.message){n=t.message;break}if("object"===r(t))for(var o in t){var s=t[o];Array.isArray(s)?s.forEach((function(t){n+=t+"<br/>"})):"string"==typeof s&&(n+=s+"<br/>")}break;case 401:n="You need to login first.";break;default:n="An error occured."}return n},showModal:function(t){$(t).modal("show")},showResult:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"axios";this.log(t);var a=function(t){return"success"==t.status};if("axios"==n){if("success"!=e){var r=t.response?t.response.status:500,i=this.getErrorMessage(t.response.data,r);return this.notify(i,"error"),r}if(a(t.data))return this.notify(t.data.message,"success"),!0;this.notify(t.data.message,"error")}else if("ajax"==n)if("success"==e){if(a(t))return this.notify(t.message,"success"),!0;this.notify(t.message,"error")}else if("error"==e){r=t.status,i=this.getErrorMessage(t.responseText,r);return this.notify(i,"error"),r}}},o={baseURL:config.baseURL,API:config.API,storageURL:config.storageURL,elections:[],election:{},user:{},positions:[],position:{},partylists:[],partylist:{},voters:{},voter:{},nominees:[],nominee:{},admins:[],information:{},result:[],results:[],last_update:new Date};const s={data:function(){return{util:i,data:o}}};const l={data:function(){return{loading:!1}},methods:{login:function(){var t=this;this.startLoading();var e=document.getElementById("no_kp").value.trim();axios.post(config.API+"voter/login",{no_kp:e,send_otp:!1}).then((function(e){t.stopLoading(),t.util.showResult(e,"success")&&t.$router.push({name:"Voter Verify",params:{nokp:e.data.nokp,notel:e.data.notel,debug_otp:e.data.debug_otp||null}})})).catch((function(e){t.stopLoading(),t.util.showResult(e,"error")}))},startLoading:function(){this.loading=!0},stopLoading:function(){this.loading=!1}}};var c=n(5072),u=n.n(c),f=n(1180),d={insert:"head",singleton:!1};u()(f.A,d);f.A.locals;var h=n(4486);const p=(0,h.A)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center align-items-center min-vh-100 bg-gradient"},[e("div",{staticClass:"card shadow-lg rounded-lg border-primary",staticStyle:{width:"100%","max-width":"400px",padding:"30px"}},[t._m(0),t._v(" "),e("div",{staticClass:"card-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[t._m(1),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("span",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status","aria-hidden":"true"}}):t._e(),t._v("\n\t\t\tMasuk\n\t\t ")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mb-4"},[e("img",{staticClass:"logo-img",staticStyle:{"max-width":"250px",height:"auto"},attrs:{src:"/images/MyKoPKB-logo.png",alt:"Logo"}}),t._v(" "),e("h4",{staticClass:"mt-3"},[t._v("Selamat Datang ke Portal MyKoPKB")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"no_kp"}},[t._v("Sila Masukkan No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"no_kp",name:"no_kp",placeholder:"Masukkan No. Kad Pengenalan Tanpa Dash (-)",required:""}})])}],!1,null,"279fce7c",null).exports;const m={data:function(){return{loading:!1,otpSent:!1,otpSending:!1,debugOtp:null}},computed:{showDebugOtp:function(){return!1},phoneLastFour:function(){var t=String(this.$route.params.notel||"").replace(/\D/g,"");return t.length>=4?t.slice(-4):t.length?t:"----"}},methods:{handleOnComplete:function(t){console.log("OTP completed: ",t),this.$refs.submitbtn.disabled=!1},handleOnChange:function(t){console.log("OTP changed: ",t),this.$refs.submitbtn.disabled=!0},handleClearInput:function(){this.$refs.otpInput.clearInput()},requestOtp:function(){this.sendOtp({isResend:!1})},resendVerify:function(){this.sendOtp({isResend:!0})},sendOtp:function(t){var e=this,n=t&&t.isResend;this.otpSending=!0,axios.post(config.API+"voter/login",{no_kp:this.$route.params.nokp,send_otp:!0}).then((function(t){e.util.showResult(t,"success")&&(e.otpSent=!0,t.data.debug_otp&&(e.debugOtp=t.data.debug_otp),n&&e.$refs.otpInput&&e.$refs.otpInput.clearInput(),e.$nextTick((function(){e.$refs.submitbtn&&(e.$refs.submitbtn.disabled=!0)})))})).catch((function(t){e.util.showResult(t,"error")})).then((function(){e.otpSending=!1}))},startLoading:function(){this.util.notify("Logging in","loading"),this.loading=!0},stopLoading:function(){$.notifyClose(),this.loading=!1},login:function(){var t=this;if(!this.loading&&this.otpSent){var e=this;this.startLoading(),console.log("OTP INPUT : ");var n=this.mergeOTP(this.$refs.otpInput.otp);console.log(n),axios.post(config.API+"voter/verify",{no_kp:this.$route.params.nokp,token:n}).then((function(n){e.stopLoading(),t.util.showResult(n,"success")&&(localStorage["Access Token"]="Bearer ".concat(n.data.token),t.util.setAuthorization(),e.$router.push({name:"Voter Home"}))})).catch((function(n){e.stopLoading(),t.util.showResult(n,"error")}))}},mergeOTP:function(t){return t.join("")}}},g=m;var v=n(2390),b={insert:"head",singleton:!1};u()(v.A,b);v.A.locals;const _=(0,h.A)(g,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-5 col-md-offset-3"},[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[e("a",{on:{click:function(e){return t.$router.go(-1)}}},[t._v("Kembali")]),t._v(" "),e("h4",{staticClass:"text-center"},[t._v("Kod Verifikasi!")])]),t._v(" "),e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("div",{staticClass:"m-4"},[t.otpSent?[e("span",[t._v("Sila masukkan kod pengesahan yang dihantar ke nombor berakhir:")]),t._v(" "),e("br"),e("b",[t._v("+6 •••• •••• "+t._s(t.phoneLastFour))])]:[e("span",[t._v("Sila sahkan nombor telefon anda. Kod akan dihantar ke nombor berakhir:")]),t._v(" "),e("br"),e("b",[t._v("+6 •••• •••• "+t._s(t.phoneLastFour))])],t._v(" "),e("p",{staticClass:"text-muted small",staticStyle:{"margin-top":"12px","margin-bottom":"0"}},[t._v("\n Jika nombor ini tidak betul atau anda tidak menerima OTP, sila pergi ke kaunter IT.\n ")])],2),t._v(" "),t.otpSent&&t.showDebugOtp?e("div",{staticClass:"alert alert-info",staticStyle:{"margin-bottom":"20px"}},[t._v("\n OTP local development: "),e("b",[t._v(t._s(t.debugOtp))])]):t._e(),t._v(" "),t.otpSent?t._e():e("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[e("button",{staticClass:"btn btn-primary form-control",attrs:{type:"button",disabled:t.otpSending},on:{click:t.requestOtp}},[t.otpSending?e("span",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status","aria-hidden":"true"}}):t._e(),t._v("\n Hantar OTP ke nombor ini\n ")])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.otpSent,expression:"otpSent"}],staticClass:"justify-content-center d-flex",staticStyle:{"margin-top":"20px","margin-bottom":"20px",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},[e("v-otp-input",{ref:"otpInput",attrs:{"input-classes":"otp-input",separator:"-","num-inputs":6,"should-auto-focus":!0,"is-input-num":!0},on:{"on-change":t.handleOnChange,"on-complete":t.handleOnComplete}})],1),t._v(" "),t.otpSent?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("a",{on:{click:t.resendVerify}},[t._v("Hantar Kembali OTP!")])]):t._e(),t._v(" "),t.otpSent?e("div",{staticClass:"form-group"},[e("input",{ref:"submitbtn",staticClass:"btn btn-primary form-control",attrs:{type:"submit",value:"Sahkan & Teruskan",disabled:""}})]):t._e()])])])])}),[],!1,null,null,null).exports;const y={data:function(){return{loading:!0}},created:function(){this.refreshInfo()},computed:{breadcrumbs:function(){var t=this.$route.name;return"Voter Home"===t?[{label:"Laman Utama",to:null,active:!0}]:[{label:"Laman Utama",to:{name:"Voter Home"},active:!1},{label:{"Voter Home":"Laman Utama","Voter Calon":"Maklumat Calon",Mat:"MAT",Vote:"Undian",Result:"Keputusan",Attendance:"Daftar MAT",Zoom:"Pautan Mesyuarat",penyata:"Penyata Ahli"}[t]||t||"Halaman",to:null,active:!0}]}},methods:{logout:function(){var t=this;this.util.setAuthorization(),axios.post(config.API+"voter/logout").catch((function(){})).finally((function(){localStorage.clear(),t.$router.push({name:"Voter Login"})}))},hasVoted:function(){return this.data.result.length>0},refreshInfo:function(){var t=this;this.util.setAuthorization(),axios.get(config.API+"election/information").then((function(e){console.log(e),t.loading=!1,t.data.election=e.data.election,t.data.nominees=e.data.nominee,t.data.partylists=e.data.partylist,t.data.positions=e.data.position,t.data.user=e.data.voter,t.data.result=e.data.result})).catch((function(e){t.loading=!1,401==t.util.showResult(e,"error")&&t.$router.push({name:"Voter Login"})}))}}};var w=n(1175),x={insert:"head",singleton:!1};u()(w.A,x);w.A.locals;const k=(0,h.A)(y,(function(){var t=this,e=t._self._c;return e("div",[t.loading?e("div",{staticClass:"container"},[t._m(1)]):e("div",[e("nav",{staticClass:"navbar navbar-default navbar-fixed-top floating-header logo-header",attrs:{id:"nav"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"navbar-header logo-section"},[t._m(0),t._v(" "),e("a",{staticClass:"navbar-brand",attrs:{href:t.data.baseURL}},[e("img",{attrs:{src:"/images/mykopkb.png",border:"0",width:"150",height:"auto",alt:"MyKoPKB Logo"}})])]),t._v(" "),e("div",{staticClass:"collapse navbar-collapse",attrs:{id:"myNavbar"}},[e("ul",{staticClass:"nav navbar-nav voter-nav-main"}),t._v(" "),e("ul",{staticClass:"nav navbar-right navbar-nav"},[e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"fa fa-user"}),t._v(" "+t._s(t.data.user.name)+" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("li",{on:{click:function(e){return t.logout()}}},[e("a",[t._v("Log Keluar")])])])])])])])]),t._v(" "),e("div",{staticClass:"voter-main"},[e("div",{staticClass:"voter-breadcrumb-wrap"},[e("div",{staticClass:"container-fluid"},[e("ol",{staticClass:"breadcrumb voter-breadcrumb"},t._l(t.breadcrumbs,(function(n,a){return e("li",{key:a,class:{active:n.active}},[n.to?e("router-link",{attrs:{to:n.to}},[t._v(t._s(n.label))]):e("span",[t._v(t._s(n.label))])],1)})),0)])]),t._v(" "),e("router-view")],1)])])}),[function(){var t=this,e=t._self._c;return e("button",{staticClass:"navbar-toggle",attrs:{type:"button","data-toggle":"collapse","data-target":"#myNavbar"}},[e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"})])},function(){var t=this._self._c;return t("div",{staticClass:"jumbotron"},[t("h1",[this._v("Loading "),t("i",{staticClass:"fa fa-refresh fa-spin"})])])}],!1,null,"998f8fb8",null).exports;var A=n(6129),S=n.n(A);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function E(){E=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new O(a||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,i,o,s){var l=f(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==C(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function T(e,n,a){var r=d;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=N(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===d)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=f(e,n,a);if("normal"===c.type){if(r=a.done?m:h,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function N(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=f(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(C(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=R,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:R(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function T(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}const N={data:function(){return{noKp:"",claimLoading:!1,claimCode:"",claimExpiresAt:"",claimError:"",matLinkUrl:"https://linktr.ee/kopkb"}},computed:{canProceedToVote:function(){var t,e=null===(t=this.data)||void 0===t?void 0:t.user;return!(!e||0===Number(e.kehadiran))&&(1!==Number(e.kehadiran)||Boolean(e.fizikal_registration_verified_at))},quickLinks:function(){var t,e,n=(null===(t=this.data)||void 0===t?void 0:t.user)||{},a=(null===(e=this.data)||void 0===e?void 0:e.election)||{},r=n.no_anggota,i=[{key:"calon",title:"Maklumat Calon",desc:"Senarai calon dan profil penuh mengikut jawatan",icon:"fa-users",route:{name:"Voter Calon"},variant:"home-cta-link--indigo",external:!1},{key:"mat28",title:"MAT KE-28",desc:"Pautan luar ke maklumat mesyuarat dan sumber berkaitan",icon:"fa-globe",href:this.matLinkUrl,variant:"home-cta-link--violet",external:!0},{key:"attendance",title:"Daftar MAT",desc:"Daftar kehadiran fizikal atau maya",icon:"fa-pencil-square-o",route:{name:"Attendance"},variant:"home-cta-link--teal",external:!1}];return 2===Number(a.status)&&!this.hasVoted()&&this.canProceedToVote&&i.push({key:"vote",title:"Undian",desc:"Undi calon pilihan anda",icon:"fa-check-square-o",route:{name:"Vote"},variant:"home-cta-link--rose",external:!1}),0!==Number(n.kehadiran)&&i.push({key:"zoom",title:"Pautan Mesyuarat",desc:"Sambung ke mesyuarat dalam talian",icon:"fa-video-camera",route:{name:"Zoom"},variant:"home-cta-link--cyan",external:!1}),i.push({key:"penyata",title:"Penyata Ahli",desc:"Lihat dan kemaskini penyata ahli",icon:"fa-file-text-o",route:{name:"penyata",params:{no_anggota:r}},variant:"home-cta-link--amber",external:!1}),i},canGenerateClaimCode:function(){var t;return 1===Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.kehadiran)&&this.hasVoted()},kehadiranLabel:function(){var t,e=Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.kehadiran);return 1===e?"Kehadiran Fizikal":2===e?"Kehadiran Maya":"Belum daftar kehadiran"},memberRows:function(){var t,e=(null===(t=this.data)||void 0===t?void 0:t.user)||{},n=function(t){return null==t||""===t?"—":String(t).replace(/\B(?=(\d{3})+(?!\d))/g,",")};return[{icon:"fa-user",label:"Nama",value:e.name||"—"},{icon:"fa-credit-card",label:"No. Kad Pengenalan",value:e.no_kp||"—"},{icon:"fa-barcode",label:"No. Anggota",value:e.no_anggota||"—"},{icon:"fa-building",label:"Unit",value:e.unit||"—"},{icon:"fa-line-chart",label:"Saham",value:"RM "+n(e.saham)},{icon:"fa-money",label:"Yuran",value:"RM "+n(e.yuran)}]}},mounted:function(){this.syncBarcodeFromUser()},watch:{"data.user.no_kp":function(){this.syncBarcodeFromUser()}},methods:{syncBarcodeFromUser:function(){var t,e=this;null!==(t=this.data)&&void 0!==t&&null!==(t=t.user)&&void 0!==t&&t.no_kp&&(this.noKp=this.data.user.no_kp,this.$nextTick((function(){return e.generateBarcode()})))},generateBarcode:function(){this.noKp&&S()("#barcode",this.noKp,{format:"CODE128",width:1.3,height:30,displayValue:!1})},hasVoted:function(){return Array.isArray(this.data.result)&&this.data.result.length>0},generateClaimCode:function(){var t,e=this;return(t=E().mark((function t(){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.claimLoading){t.next=2;break}return t.abrupt("return");case 2:return e.claimError="",e.claimLoading=!0,t.prev=4,e.util.setAuthorization(),t.next=8,axios.post(config.API+"allowance/code",{method:"cash"});case 8:(n=t.sent)&&n.data&&"success"===n.data.status?(e.claimCode=n.data.code||"",e.claimExpiresAt=n.data.expires_at||"",e.util.notify(n.data.message||"Kod dijana.","success")):(e.claimError=n&&n.data&&n.data.message?n.data.message:"Gagal menjana kod.",e.util.notify(e.claimError,"error")),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(4),e.claimError=t.t0&&t.t0.response&&t.t0.response.data&&t.t0.response.data.message?t.t0.response.data.message:t.t0&&t.t0.message?t.t0.message:"Gagal menjana kod.",t.t0&&t.t0.response?e.util.showResult(t.t0,"error"):e.util.notify(e.claimError,"error");case 16:return t.prev=16,e.claimLoading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[4,12,16,19]])})),function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){T(i,a,r,o,s,"next",t)}function s(t){T(i,a,r,o,s,"throw",t)}o(void 0)}))})()}}},P=N;var L=n(4490),O={insert:"head",singleton:!1};u()(L.A,O);L.A.locals;const R=(0,h.A)(P,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"voter-home-page container-fluid"},[e("div",{staticClass:"row home-hero-row"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"home-section-container home-hero-section"},[e("section",{staticClass:"home-hero-wrap"},[t._m(0),t._v(" "),e("div",{staticClass:"hero-banner-caption home-hero-caption"},[e("div",{staticClass:"hero-banner-kicker"},[t._v("Portal Pengundian")]),t._v(" "),e("h1",{staticClass:"hero-banner-title"},[t._v("Maklumat Anggota")]),t._v(" "),t._m(1),t._v(" "),e("div",{staticClass:"home-hero-badges"},[e("span",{staticClass:"home-badge home-badge--location"},[e("i",{staticClass:"fa fa-map-marker"}),t._v(" "+t._s(t.kehadiranLabel)+"\n ")]),t._v(" "),e("span",{staticClass:"home-badge",class:t.hasVoted()?"home-badge--ok":"home-badge--pending"},[e("i",{staticClass:"fa",class:t.hasVoted()?"fa-check-circle":"fa-clock-o"}),t._v("\n "+t._s(t.hasVoted()?"Sudah mengundi":"Belum mengundi")+"\n ")])])])])])])]),t._v(" "),e("div",{staticClass:"row home-quick-links-row"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"home-section-container"},[t._m(2),t._v(" "),e("div",{staticClass:"home-quick-links-grid"},t._l(t.quickLinks,(function(n){return e("div",{key:n.key,staticClass:"home-quick-link-wrap"},[n.external?e("a",{staticClass:"home-cta-link",class:n.variant,attrs:{href:n.href,target:"_blank",rel:"noopener noreferrer"}},[e("span",{staticClass:"home-cta-icon"},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("span",{staticClass:"home-cta-body"},[e("span",{staticClass:"home-cta-title"},[t._v(t._s(n.title))]),t._v(" "),e("span",{staticClass:"home-cta-desc"},[t._v(t._s(n.desc))])]),t._v(" "),t._m(3,!0)]):e("router-link",{staticClass:"home-cta-link",class:n.variant,attrs:{to:n.route}},[e("span",{staticClass:"home-cta-icon"},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("span",{staticClass:"home-cta-body"},[e("span",{staticClass:"home-cta-title"},[t._v(t._s(n.title))]),t._v(" "),e("span",{staticClass:"home-cta-desc"},[t._v(t._s(n.desc))])]),t._v(" "),e("span",{staticClass:"home-cta-chevron",attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"fa fa-angle-right"})])])],1)})),0)])])]),t._v(" "),e("div",{staticClass:"row home-content-row"},[e("div",{staticClass:"col-xs-12 col-md-6 home-column home-column--primary"},[e("div",{staticClass:"home-section-container"},[t._m(4),t._v(" "),e("div",{staticClass:"member-info-card home-member-card home-member-card--in-section"},t._l(t.memberRows,(function(n){return e("div",{key:n.label,staticClass:"member-field"},[e("span",{staticClass:"member-field-icon",attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("div",{staticClass:"member-field-body"},[e("span",{staticClass:"member-field-label"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"member-field-value"},[t._v(t._s(n.value))])])])})),0)])]),t._v(" "),e("div",{staticClass:"col-xs-12 col-md-6 home-column home-column--secondary"},[e("div",{staticClass:"home-section-container home-section-container--claim"},[t._m(5),t._v(" "),e("div",{staticClass:"home-claim-card"},[t.canGenerateClaimCode?e("div",{staticClass:"home-claim-active"},[e("p",{staticClass:"home-claim-hint"},[t._v("\n Tunjukkan kod ini kepada petugas di kaunter untuk pengesahan bayaran tunai.\n ")]),t._v(" "),t.claimError?e("div",{staticClass:"alert alert-danger home-claim-alert"},[t._v("\n "+t._s(t.claimError)+"\n ")]):t._e(),t._v(" "),t.claimCode?e("div",{staticClass:"home-claim-code-box"},[e("div",{staticClass:"home-claim-code"},[t._v(t._s(t.claimCode))]),t._v(" "),e("div",{staticClass:"home-claim-expiry"},[t._v("\n Tamat tempoh: "),e("strong",[t._v(t._s(t.claimExpiresAt||"—"))])])]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block home-claim-btn",attrs:{type:"button",disabled:t.claimLoading},on:{click:function(e){return t.generateClaimCode()}}},[e("i",{staticClass:"fa fa-refresh",class:{"fa-spin":t.claimLoading}}),t._v("\n "+t._s(t.claimLoading?" Menjana...":t.claimCode?" Jana Semula Kod":" Jana Kod Tuntutan")+"\n ")])]):e("div",{staticClass:"home-claim-locked"},[t._m(6),t._v(" "),t._m(7)])])]),t._v(" "),e("div",{staticClass:"home-section-container home-section-container--kad"},[t._m(8),t._v(" "),e("div",{staticClass:"home-kad-wrap"},[e("div",{staticClass:"kad-keahlian"},[e("div",{staticClass:"member-card-vertical"},[t._v("MEMBER CARD")]),t._v(" "),t._m(9),t._v(" "),e("div",{staticClass:"kad-content"},[e("img",{staticClass:"watermark",attrs:{src:"images/KOPKB_Final.png",alt:""}}),t._v(" "),e("div",{staticClass:"member-details"},[e("div",{staticClass:"detail-item"},[e("span",{staticClass:"detail-label"},[t._v("NAMA:")]),t._v(" "),e("span",{staticClass:"detail-value"},[t._v(t._s(t.data.user.name))])]),t._v(" "),e("div",{staticClass:"detail-item"},[e("span",{staticClass:"detail-label"},[t._v("NO KAD PENGENALAN:")]),t._v(" "),e("span",{staticClass:"detail-value"},[t._v(t._s(t.data.user.no_kp))])]),t._v(" "),e("div",{staticClass:"detail-item"},[e("span",{staticClass:"detail-label"},[t._v("NO ANGGOTA:")]),t._v(" "),e("span",{staticClass:"detail-value"},[t._v(t._s(t.data.user.no_anggota))])]),t._v(" "),e("div",{staticClass:"detail-item"},[e("span",{staticClass:"detail-label"},[t._v("UNIT:")]),t._v(" "),e("span",{staticClass:"detail-value"},[t._v(t._s(t.data.user.unit))])]),t._v(" "),e("div",{staticClass:"detail-item detail-item--barcode"},[e("svg",{staticClass:"detail-value",attrs:{id:"barcode"}},[t._v(t._s(t.data.user.no_kp))])])])])])])])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"hero-banner home-hero-banner"},[t("img",{staticClass:"hero-banner-image",attrs:{src:"/images/banner-mat28-new.jpg",alt:"Banner"}}),this._v(" "),t("div",{staticClass:"home-hero-banner-shine",attrs:{"aria-hidden":"true"}})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"hero-banner-subtitle"},[t._v("\n Semak butiran keahlian anda. Gunakan\n "),e("strong",{staticClass:"home-hero-strong"},[t._v("pautan pantas")]),t._v(" di bawah untuk navigasi pantas ke halaman utama\n portal.\n ")])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-th-large"})]),this._v("\n Pautan Pantas\n ")])},function(){var t=this._self._c;return t("span",{staticClass:"home-cta-chevron",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-external-link"})])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-list-alt"})]),this._v("\n Butiran Keahlian\n ")])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon home-section-heading-icon--teal",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-ticket"})]),this._v("\n Kod Tuntutan Elaun\n ")])},function(){var t=this._self._c;return t("div",{staticClass:"home-claim-locked-icon"},[t("i",{staticClass:"fa fa-lock"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"home-claim-locked-text"},[t._v("\n Kod tuntutan hanya tersedia untuk kehadiran "),e("strong",[t._v("Fizikal")]),t._v(" selepas anda\n "),e("strong",[t._v("selesai mengundi")]),t._v(".\n ")])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-credit-card"})]),this._v("\n Kad Ahli Digital\n ")])},function(){var t=this._self._c;return t("div",{staticClass:"kad-logo"},[t("img",{staticClass:"kad-logo-img",attrs:{src:"/images/logo_kad.png",alt:"Logo"}})])}],!1,null,null,null).exports;function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function F(t,e,n){var a;return a=function(t,e){if("object"!=I(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=I(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==I(a)?a:a+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const D={data:function(){return{nomineeViewed:{},showNomineeModal:!1}},methods:{viewNomineeDetails:function(t){this.nomineeViewed=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.nomineeViewed.photo=this.createBase64ImageUrl(t.photo),this.showNomineeModal=!0},closeNomineeModal:function(){this.showNomineeModal=!1},createBase64ImageUrl:function(t){return"data:image/jpeg;base64,".concat(t)}}},j=D;var B=n(491),U={insert:"head",singleton:!1};u()(B.A,U);B.A.locals;var z=(0,h.A)(j,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"voter-nominees-page row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-xs-12 page-column"},[e("div",{staticClass:"page-section-heading"},[t._v("Maklumat Calon")]),t._v(" "),e("div",{staticClass:"nominee-page-intro"},[t._v("\n Tekan gambar atau baris calon untuk melihat maklumat penuh.\n ")]),t._v(" "),t._l(t.data.positions,(function(n){return e("div",{key:n.id,staticClass:"panel panel-primary nominee-panel"},[e("div",{staticClass:"panel-heading nominee-panel-heading"},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"nominee-panel-badge"},[t._v("Senarai Calon")])]),t._v(" "),e("div",{staticClass:"panel-body table-responsive nominee-panel-body"},[e("table",{staticClass:"table table-hover nominee-table",attrs:{id:"table-nominee"}},[t._m(0,!0),t._v(" "),e("tbody",[t._l(t.data.nominees,(function(a,r){return a.position_id==n.id?e("tr",{key:a.id,staticClass:"nominee-row",on:{click:function(e){return t.viewNomineeDetails(a)}}},[e("td",[e("img",{staticClass:"thumbnail nominee-thumb",attrs:{src:t.createBase64ImageUrl(a.photo)}})]),t._v(" "),e("td",[t._v(t._s(a.no_calon))]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v(t._s(a.no_anggota))]),t._v(" "),e("td",[t._v(t._s(a.unit))])]):t._e()})),t._v(" "),t.data.nominees.some((function(t){return t.position_id==n.id}))?t._e():e("tr",[e("td",{staticClass:"nominee-empty-state",attrs:{colspan:"5"}},[t._v("Tiada calon untuk jawatan ini.")])])],2)])])])}))],2),t._v(" "),t.showNomineeModal?e("div",{staticClass:"modal-backdrop nominee-modal-backdrop",on:{click:function(e){return e.target!==e.currentTarget?null:t.closeNomineeModal.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog",attrs:{id:"view-nominee-modal"}},[e("div",{staticClass:"modal-content nominee-modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body nominee-modal-body"},[e("div",{staticClass:"photo-section"},[e("div",{staticClass:"nominee-photo-card"},[e("img",{staticClass:"thumbnail nominee-viewed-photo",attrs:{src:t.nomineeViewed.photo}}),t._v(" "),e("div",{staticClass:"nominee-photo-meta"},[e("div",{staticClass:"nominee-name"},[t._v(t._s(t.nomineeViewed.name))]),t._v(" "),e("div",{staticClass:"nominee-subtitle"},[t._v("\n Calon No. "+t._s(t.nomineeViewed.no_calon||"-")+"\n ")])])])]),t._v(" "),e("div",{staticClass:"detail-section"},[e("div",{staticClass:"nominee-summary-grid"},[e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Nama")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.name||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Unit")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.unit||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Umur")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.umur||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Jawatan Sekarang")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.jawatan_sekarang||"-"))])])]),t._v(" "),e("div",{staticClass:"nominee-section-card"},[e("div",{staticClass:"section-title"},[t._v("Taraf Pendidikan")]),t._v(" "),t.nomineeViewed.education&&t.nomineeViewed.education.length?e("ol",{staticClass:"detail-list"},t._l(t.nomineeViewed.education,(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0):e("p",{staticClass:"detail-empty"},[t._v("Tiada maklumat pendidikan.")])]),t._v(" "),e("div",{staticClass:"nominee-section-card"},[e("div",{staticClass:"section-title"},[t._v("Pengalaman Kerja")]),t._v(" "),t.nomineeViewed.experience&&t.nomineeViewed.experience.length?e("ol",{staticClass:"detail-list"},t._l(t.nomineeViewed.experience,(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0):e("p",{staticClass:"detail-empty"},[t._v("Tiada maklumat pengalaman kerja.")])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-success",on:{click:t.closeNomineeModal}},[t._v("Tutup")])])])])]):t._e()])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")])])])},function(){var t=this._self._c;return t("div",{staticClass:"modal-header"},[t("div",[t("h5",{staticClass:"modal-title"},[this._v("Maklumat Calon")])])])}],!1,null,null,null);const H=z.exports;function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}var W,K,V,G;const Y=(W={methods:{navigateToURL:function(){window.open("https://linktr.ee/kopkb","_blank")}},created:function(){},data:function(){return{x:{}}},computed:{header:function(){return this.x.name+" for "+this.getPosition(this.x.position_id)}}},V=function(){return{imageUrl:"/images/linktree-kopkb.jpg"}},G=function(t,e){if("object"!=q(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=q(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(K="data","string"),(K="symbol"==q(G)?G:G+"")in W?Object.defineProperty(W,K,{value:V,enumerable:!0,configurable:!0,writable:!0}):W[K]=V,W);var X=n(5387),J={insert:"head",singleton:!1};u()(X.A,J);X.A.locals;const Z=(0,h.A)(Y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-12"},[e("div",[e("img",{staticClass:"background-img",attrs:{src:t.imageUrl,alt:"background-img"},on:{click:t.navigateToURL}})]),t._v(" "),e("hr"),t._v(" "),t._m(0)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-2 text-muted text-center",staticStyle:{"font-weight":"bold"}},[t._v("\n Tekan pada gambar untuk ke "),e("span",{staticStyle:{color:"#007bff"}},[t._v("Linktree")])])}],!1,null,null,null).exports;const Q={created:function(){for(var t in(this.data.result.length>0||2!=this.data.election.status)&&this.$router.push({name:"Voter Home"}),this.data.positions)this.selected.push({position_id:this.data.positions[t].id,nominee_id:[]})},data:function(){return{selected:[],name:{},selectedNominees:{},max:1}},computed:{allSelectedNomineeIds:function(){for(var t=[],e=0;e<this.selected.length;e++)for(var n=this.selected[e]&&Array.isArray(this.selected[e].nominee_id)?this.selected[e].nominee_id:[],a=0;a<n.length;a++)t.push(n[a]);return t},disabledCheckboxes:function(){var t=this,e=this.allSelectedNomineeIds;return this.data.nominees.map((function(n){return!e.includes(n.id)&&t.checkDisabled()}))}},methods:{totalSelectedCount:function(){return this.allSelectedNomineeIds.length},selectedEntryForPosition:function(t){for(var e=0;e<this.selected.length;e++)if(String(this.selected[e].position_id)===String(t))return this.selected[e];return null},test:function(){console.log("tab"),this.util.showModal("#vote-modal")},submit:function(){if(this.totalSelectedCount()===this.max){var t=this;this.util.notify("Submitting your vote, please wait...","loading"),console.log(this.selected);var e={vote:this.selected};axios.post(config.API+"election/vote",e).then((function(e){$.notifyClose(),e&&e.data&&"string"==typeof e.data.message&&e.data.message&&t.util.notify(e.data.message,"success"),t.util.showResult(e,"success")&&(t.data.result=e.data.result,t.$router.push({name:"Voter Home"}),$(".modal").modal("hide"))})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))}else this.util.notify("Sila pastikan anda memilih (".concat(this.max,") orang calon."),"error")},hasNullVote:function(){console.log("null"+this.selectedNominees);var t=this.selectedNominees;for(var e in t)if(null==t[e].nominee_id)return this.util.notify("You must vote on all position","error"),!0;return!1},reset:function(){var t=this.selectedNominees;for(var e in t)$("#"+t[e].nominee_id).selected(!1),t[e].nominee_id=null},vote:function(t,e){var n=this.selectedEntryForPosition(t);if(n){var a=n.nominee_id.indexOf(e);if(-1===a){if(this.totalSelectedCount()>=this.max)return void this.util.notify("Boleh mengundi (".concat(this.max,") calon sahaja!"),"warning");n.nominee_id.push(e)}else n.nominee_id.splice(a,1)}},getSelectedNomineeName:function(t){return this.getNominee(t)},getNomineeNo:function(t){var e=this.data.nominees.find((function(e){return e.id===t}));return e?e.no_calon:""},getName:function(t){this.data.positions;var e=this.selected;for(var n in e)if(e[n].position_id==t)return this.getNominee(e[n].nominee_id);return""},getNominee:function(t){this.data.positions;var e=this.data.nominees;for(var n in e)if(e[n].id==t)return e[n].name;return""},getPartylist:function(t){var e=this.data.partylists;for(var n in e)if(e[n].id==t)return e[n].name;return"No Partylist"},view:function(t){this.x=this.data.nominees[t],this.util.showModal("#nominee-information-modal")},createBase64ImageUrl:function(t){return"data:image/png;base64,"+t},checkUndi:function(){this.totalSelectedCount()<=0?this.util.notify("Sila pastikan anda memilih (1) orang calon.","error"):this.util.showModal("#vote-modal")},checkDisabled:function(){if(this.totalSelectedCount()>=this.max)return!0}}},tt=Q;var et=n(8203),nt={insert:"head",singleton:!1};u()(et.A,nt);et.A.locals;var at=(0,h.A)(tt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-page row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-4 vote-sidebar-column"},[e("div",{staticClass:"vote-summary-card"},[e("div",{staticClass:"vote-section-kicker"},[t._v("Ringkasan Undian")]),t._v(" "),e("h4",{staticClass:"vote-page-title"},[t._v("UNDIAN CALON ANGGOTA LEMBAGA")]),t._v(" "),e("p",{staticClass:"vote-page-subtitle"},[t._v("Semak calon yang telah dipilih sebelum menghantar undi anda.")]),t._v(" "),t._m(0),t._v(" "),e("ul",{staticClass:"list-group vote-summary-list"},[e("li",{staticClass:"list-group-item vote-summary-item"},[e("div",{staticClass:"vote-position-name"},[t._v("Calon Dipilih")]),t._v(" "),t.allSelectedNomineeIds.length?e("div",{staticClass:"vote-selected-list"},t._l(t.allSelectedNomineeIds,(function(n){return e("div",{key:n,staticClass:"vote-selected-item"},[e("span",{staticClass:"vote-selected-badge"},[t._v("#"+t._s(t.getNomineeNo(n)))]),t._v(" "),e("span",[t._v(t._s(t.getSelectedNomineeName(n)))])])})),0):e("div",{staticClass:"vote-empty-selection"},[t._v("\n\t\t\t\t\t\tBelum ada calon dipilih.\n\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"list-group-item vote-summary-action"},[e("button",{staticClass:"btn btn-success btn-block vote-submit-button",on:{click:function(e){return t.checkUndi()}}},[t._v("UNDI")])])])])]),t._v(" "),e("div",{staticClass:"col-md-8 vote-content-column"},[t._m(1),t._v(" "),t._l(t.data.positions,(function(n){return e("div",{key:n.id,staticClass:"panel panel-info vote-panel"},[e("div",{staticClass:"panel-heading vote-panel-heading"},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"vote-panel-badge"},[t._v("Calon Aktif")])]),t._v(" "),e("div",{staticClass:"panel-body table-responsive vote-panel-body"},[e("table",{staticClass:"table table-hover vote-table"},[t._m(2,!0),t._v(" "),e("tbody",t._l(t.data.nominees,(function(a,r){return a.position_id==n.id?e("tr",{key:a.id,staticClass:"vote-row"},[e("td",{staticClass:"vote-checkbox-cell"},[e("input",{attrs:{type:"checkbox",id:a.id,disabled:t.disabledCheckboxes[r]},on:{change:function(e){return t.vote(n.id,a.id)}}})]),t._v(" "),e("td",[t._v(t._s(a.no_calon))]),t._v(" "),e("td",[e("img",{staticClass:"thumbnail vote-nominee-photo",attrs:{src:t.createBase64ImageUrl(a.photo)},on:{click:function(e){return t.view(t.i)}}})]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v(t._s(a.unit))])]):t._e()})),0)])])])}))],2),t._v(" "),e("div",{staticClass:"modal fade app-modal vote-confirm-modal",attrs:{id:"vote-modal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content vote-modal-content"},[t._m(3),t._v(" "),e("div",{staticClass:"modal-body vote-modal-body"},[e("h5",{staticClass:"vote-modal-note"},[t._v("Nota: Sila pastikan anda telah membuat undian dengan betul.")]),t._v(" "),t.allSelectedNomineeIds.length?e("div",{staticClass:"vote-modal-selection"},[e("div",{staticClass:"vote-modal-selection-title"},[t._v("Calon dipilih")]),t._v(" "),t._l(t.allSelectedNomineeIds,(function(n){return e("div",{key:n,staticClass:"vote-selected-item"},[e("span",{staticClass:"vote-selected-badge"},[t._v("#"+t._s(t.getNomineeNo(n)))]),t._v(" "),e("span",[t._v(t._s(t.getSelectedNomineeName(n)))])])}))],2):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer vote-modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("Hantar")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-limit-pill"},[t._v("\n\t\t\t\tAnda hanya boleh memilih "),e("b",[t._v("satu (1) orang calon")]),t._v(" sahaja.\n\t\t\t")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-content-header"},[e("div",[e("div",{staticClass:"vote-section-kicker"},[t._v("Senarai Calon")]),t._v(" "),e("h4",{staticClass:"vote-content-title"},[t._v("Pilih Calon Anda")])]),t._v(" "),e("div",{staticClass:"alert alert-warning vote-alert",attrs:{role:"alert"}},[t._v("\n\t\t\t\tAnda hanya boleh memilih "),e("b",[t._v("satu (1) orang calon")]),t._v(" sahaja.\n\t\t\t")])])},function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("No. Calon")]),t._v(" "),e("th"),t._v(" "),e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("Unit")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header vote-modal-header"},[e("div",[e("div",{staticClass:"vote-section-kicker"},[t._v("Pengesahan")]),t._v(" "),e("h5",{staticClass:"modal-title vote-modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Sahkan Undian Anda")])]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])}],!1,null,"dacd1498",null);const rt=at.exports;const it={data:function(){return{results:[{position_id:6,nominee_id:1,votes:2},{position_id:8,nominee_id:6,votes:2},{position_id:7,nominee_id:5,votes:2},{position_id:7,nominee_id:4,votes:1},{position_id:6,nominee_id:2,votes:1},{position_id:8,nominee_id:7,votes:1}]}},created:function(){this.refreshResults(),this.$nextTick((function(){this.initChart()}))},watch:{position_id:function(){this.initChart()}},methods:{refreshResults:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"election/result").then((function(e){$.notifyClose(),console.log(e),t.data.results=e.data,t.data.last_update=new Date,t.initChart()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},initChart:function(){$.plot($("#chart"),this.datas,{series:{pie:{show:!0,innerRadius:.5}}})},getPosition:function(t){var e=this.data.positions;for(var n in e)if(t==e[n].id)return e[n].name;return""},getNominee:function(t){var e=this.data.nominees;for(var n in e)if(t==e[n].id)return e[n].name;return""},getVotes:function(t){var e=this.data.results;for(var n in e)if(e[n].nominee_id==t)return e[n].votes;return 0}},computed:{last_update:function(){var t=this.data.last_update;return t.toDateString()+" "+t.toLocaleTimeString()},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:this.data.positions[0].id},datas:function(){var t=[],e=this.data.nominees;for(var n in e)if(e[n].position_id==this.position_id){var a=[];a.label=e[n].name,a.data=[[1,this.getVotes(e[n].id)]],t.push(a)}return t}}},ot=it;var st=(0,h.A)(ot,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-4"},[e("h4",[t._v("Jawatan")]),e("hr"),t._v(" "),e("ul",{staticClass:"list-group"},[t._l(t.data.positions,(function(n){return e("router-link",{key:n.id,staticClass:"list-group-item",class:{active:n.id==t.position_id},attrs:{tag:"li",to:{query:{position_id:n.id}},exact:"",replace:""}},[t._v("\n\t\t\t\t"+t._s(n.name)+"\n\t\t\t")])})),t._v(" "),e("li",{staticClass:"list-group-item"},[e("center",[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.refreshResults()}}},[t._v("\n\t\t\t\t\t\tKemaskini Keputusan "),e("i",{staticClass:"fa fa-refresh"})])])],1)],2)]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("h4",[t._v("Results")]),e("hr"),t._v(" "),e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[t._v(t._s(t.getPosition(t.position_id))+" - Results as of : "+t._s(t.last_update))]),t._v(" "),t._m(0)])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"panel-body"},[t("div",{staticStyle:{height:"300px",width:"300px"},attrs:{id:"chart"}})])}],!1,null,null,null);const lt=st.exports;const ct={data:function(){return{loading:!1,userSubmitted:!1,selectedKehadiran:"0"}},mounted:function(){if(this.data&&this.data.user&&0==this.data.user.kehadiran){var t=document.getElementById("kehadiran");t&&(this.selectedKehadiran=t.value||"0")}},computed:{electionVotingActive:function(){var t=this.data&&this.data.election;return!(!t||void 0===t.status||null===t.status)&&2===Number(t.status)},canProceedToVote:function(){var t=this.data&&this.data.user;return!(!t||0===Number(t.kehadiran))&&(1!==Number(t.kehadiran)||Boolean(t.fizikal_registration_verified_at))}},methods:{onPhysicalGateCodeInput:function(t){var e=t.target,n=e.value.toUpperCase();if(e.value!==n){var a=e.selectionStart,r=e.selectionEnd;e.value=n,null!=a&&null!=r&&e.setSelectionRange(a,r)}},reloadAttendanceState:function(){location.reload()},edit:function(){if(!this.loading)if("0"!==document.getElementById("kehadiran").value){this.loading=!0;var t=this;this.util.notify("Adding Attendance","loading"),axios.put(config.API+"attendance/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(location.reload(),t.$router.push({name:"Vote"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error")}))}else this.util.notify(" Sila pilih jenis kehadiran anda sebelum meneruskan.","error")}}};var ut=n(1156),ft={insert:"head",singleton:!1};u()(ut.A,ft);ut.A.locals;const dt=(0,h.A)(ct,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"attendance-page row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-12"},[t._m(0),t._v(" "),e("form",{staticClass:"attendance-card",attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[t._m(1),t._v(" "),e("div",{staticClass:"attendance-info-grid"},[e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"name",readonly:"",required:""},domProps:{value:t.data.user.name}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"no_kp",readonly:"",required:""},domProps:{value:t.data.user.no_kp}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"no_anggota"}},[t._v("No. Anggota")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"no_anggota",readonly:"",required:""},domProps:{value:t.data.user.no_anggota}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"unit",readonly:"",required:""},domProps:{value:t.data.user.unit}})])]),t._v(" "),0===Number(t.data.user.kehadiran)?[e("div",{staticClass:"form-group attendance-choice-box"},[e("label",{attrs:{for:"kehadiran"}},[t._v("Kehadiran")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedKehadiran,expression:"selectedKehadiran"}],staticClass:"form-control attendance-select",attrs:{id:"kehadiran",name:"kehadiran",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedKehadiran=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"0"}},[t._v("Sila Pilih :")]),t._v(" "),e("option",{attrs:{value:"1"}},[t._v("Fizikal")]),t._v(" "),e("option",{attrs:{value:"2"}},[t._v("Maya")])]),t._v(" "),e("small",{staticClass:"form-text text-muted attendance-helper-text"},[t._v("\n Sila pilih kehadiran (Maya/Fizikal) kemudian klik “SAYA TERIMA”.\n ")])]),t._v(" "),"1"===t.selectedKehadiran?e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"physical_gate_code"}},[t._v("Kod skrin kaunter pendaftaran")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"physical_gate_code",id:"physical_gate_code",autocomplete:"off",autocapitalize:"characters",inputmode:"text",placeholder:"8 aksara, semak skrin di kaunter",maxlength:"64"},on:{input:t.onPhysicalGateCodeInput}}),t._v(" "),e("small",{staticClass:"form-text text-muted attendance-helper-text"},[t._v("\n Kod berputar setiap minit — masukkan kod semasa yang dipaparkan di kaunter sebelum\n menghantar.\n ")])]):t._e(),t._v(" "),t._m(2)]:t._e(),t._v(" "),e("div",{staticClass:"text-center mt-4 attendance-action-area"},[0!=t.data.user.kehadiran&&t.canProceedToVote?e("div",{staticClass:"attendance-success-card"},[e("div",{staticClass:"attendance-success-kicker"},[t._v("Kehadiran Disahkan")]),t._v(" "),e("p",{staticClass:"attendance-success-text"},[t._v("Kehadiran anda telah disahkan secara")]),t._v(" "),e("h5",{staticClass:"attendance-success-mode"},[t._v("\n "+t._s(1==t.data.user.kehadiran?"FIZIKAL":"MAYA")+"\n ")]),t._v(" "),e("router-link",{staticClass:"btn btn-warning attendance-vote-button",attrs:{to:{name:"Vote"}}},[t._v("\n Undi Sekarang\n ")])],1):0==t.data.user.kehadiran||t.canProceedToVote?t.electionVotingActive?e("button",{staticClass:"btn btn-lg btn-success attendance-submit-button",attrs:{type:"submit"}},[t._v("\n DAFTAR KEHADIRAN\n ")]):e("div",{staticClass:"alert alert-info text-left attendance-voting-notice"},[t._m(4),t._v(" "),t._m(5)]):e("div",{staticClass:"attendance-pending-card"},[e("div",{staticClass:"attendance-pending-kicker"},[t._v("Menunggu pengesahan")]),t._v(" "),t._m(3),t._v(" "),e("p",{staticClass:"attendance-pending-hint"},[t._v("\n Selepas pengesahan, butang mengundi akan dipaparkan di sini. Semak semula halaman ini\n selepas beberapa ketika.\n ")]),t._v(" "),e("button",{staticClass:"btn btn-default attendance-refresh-button",attrs:{type:"button"},on:{click:t.reloadAttendanceState}},[t._v("\n Muat semula\n ")])])])],2)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"attendance-hero"},[e("div",{staticClass:"attendance-section-kicker"},[t._v("Pengesahan Kehadiran")]),t._v(" "),e("h4",{staticClass:"attendance-page-title"},[t._v("Sahkan Kehadiran Mesyuarat Agung")]),t._v(" "),e("p",{staticClass:"attendance-page-subtitle"},[t._v("\n Sila semak maklumat anda, pilih kaedah kehadiran, dan sahkan penyertaan sebelum meneruskan.\n ")]),t._v(" "),e("a",{staticClass:"attendance-download-button",attrs:{href:"https://drive.google.com/uc?export=download&id=1O5DVDIbGy-w0bejV6RqtJGIty-_5LJD8",target:"_blank"}},[t._v("\n Muat Turun Etika Mesyuarat Agung\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attendance-card-header"},[e("div",[e("div",{staticClass:"attendance-section-kicker"},[t._v("Maklumat Anggota")]),t._v(" "),e("h5",{staticClass:"attendance-card-title"},[t._v("Butiran Kehadiran")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"alert alert-info mt-4 small attendance-info-notice"},[e("p",[e("strong",[t._v("*")]),t._v(" Pendaftaran akan dibuka dari "),e("strong",[t._v("jam 7.00 pagi hingga 10.00 pagi (25\n April\n 2025)")]),t._v(".")]),t._v(" "),e("p",[e("strong",[t._v("*")]),t._v(" Elaun kehadiran berjumlah "),e("strong",[t._v("RM300.00 (secara fizikal)")]),t._v(" akan\n diberikan secara TUNAI selepas mesyuarat. "),e("br"),t._v("\n Manakala "),e("strong",[t._v("RM150.00 (secara atas talian)")]),t._v(" akan dikreditkan ke akaun anggota\n yang\n hadir penuh.\n ")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"attendance-pending-text"},[t._v("\n Kehadiran "),e("strong",[t._v("fizikal")]),t._v(" anda telah direkod. Sila pergi ke kaunter pendaftaran\n untuk\n mengesahkan pendaftaran sebelum anda boleh mengundi.\n ")])},function(){var t=this._self._c;return t("p",{staticClass:"attendance-voting-notice__title"},[t("strong",[this._v("Butang “DAFTAR KEHADIRAN” belum\n tersedia")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"attendance-voting-notice__body"},[t._v("\n Buat masa ini proses undian / mesyuarat "),e("strong",[t._v("belum bermula")]),t._v(".\n ")])}],!1,null,null,null).exports;const ht={data:function(){return{imageUrl:"https://th.bing.com/th/id/OIP.TGLvYXfe4xq5MTZe4UnTDgHaEy?w=255&h=180&c=7&r=0&o=5&dpr=1.8&pid=1.7",meetingUrl:"https://meet.google.com/paa-tpck-ssq"}},methods:{navigateToURL:function(){window.open(this.meetingUrl,"_blank")}}};var pt=n(7932),mt={insert:"head",singleton:!1};u()(pt.A,mt);pt.A.locals;const gt=(0,h.A)(ht,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row col-md-10 col-md-offset-1 zoom-page"},[e("div",{staticClass:"col-md-12"},[t._m(0),t._v(" "),e("div",{staticClass:"zoom-main-card"},[e("div",{staticClass:"centered-container zoom-image-section"},[e("div",{staticClass:"image-container zoom-image-card"},[e("img",{staticClass:"zoom-image",attrs:{src:t.imageUrl,alt:"meeting apps"}})])]),t._v(" "),e("div",{staticClass:"centered-container zoom-content-section"},[e("div",{staticClass:"zoom-meeting-badge"},[t._v("\n KoPKB KALI KE-28/2024\n ")]),t._v(" "),e("h4",{staticClass:"zoom-content-title"},[t._v("Google Meet Rasmi")]),t._v(" "),e("p",{staticClass:"zoom-content-text"},[t._v("\n Pastikan anda telah mendaftar kehadiran dan bersedia dengan sambungan internet yang stabil sebelum menyertai\n mesyuarat.\n ")]),t._v(" "),e("div",{staticClass:"zoom-action-panel"},[e("button",{staticClass:"btn-interactive",attrs:{type:"button"},on:{click:t.navigateToURL}},[e("i",{staticClass:"fa fa-video-camera"}),t._v(" Klik pada pautan berikut\n ")]),t._v(" "),e("div",{staticClass:"zoom-link-note"},[t._v("\n Pautan akan dibuka terus ke sesi mesyuarat rasmi.\n ")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"zoom-hero-card"},[e("div",{staticClass:"zoom-section-kicker"},[t._v("Pautan Mesyuarat")]),t._v(" "),e("h3",{staticClass:"zoom-title"},[t._v("SELAMAT DATANG KE MESYUARAT AGUNG TAHUNAN")]),t._v(" "),e("p",{staticClass:"zoom-subtitle"},[t._v("\n Sertai Mesyuarat Agung Tahunan KoPKB kali ke-28/2024 melalui pautan rasmi di bawah.\n ")])])}],!1,null,"530ce8b2",null).exports;function vt(t,e){return function(){return t.apply(e,arguments)}}var bt=n(5606);const{toString:_t}=Object.prototype,{getPrototypeOf:yt}=Object,{iterator:wt,toStringTag:xt}=Symbol,kt=(At=Object.create(null),t=>{const e=_t.call(t);return At[e]||(At[e]=e.slice(8,-1).toLowerCase())});var At;const St=t=>(t=t.toLowerCase(),e=>kt(e)===t),Ct=t=>e=>typeof e===t,{isArray:Et}=Array,Tt=Ct("undefined");function Nt(t){return null!==t&&!Tt(t)&&null!==t.constructor&&!Tt(t.constructor)&&Ot(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Pt=St("ArrayBuffer");const Lt=Ct("string"),Ot=Ct("function"),Rt=Ct("number"),It=t=>null!==t&&"object"==typeof t,Mt=t=>{if("object"!==kt(t))return!1;const e=yt(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||xt in t||wt in t)},Ft=St("Date"),Dt=St("File"),jt=St("Blob"),Bt=St("FileList"),Ut=St("URLSearchParams"),[zt,Ht,qt,Wt]=["ReadableStream","Request","Response","Headers"].map(St);function Kt(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let a,r;if("object"!=typeof t&&(t=[t]),Et(t))for(a=0,r=t.length;a<r;a++)e.call(null,t[a],a,t);else{if(Nt(t))return;const r=n?Object.getOwnPropertyNames(t):Object.keys(t),i=r.length;let o;for(a=0;a<i;a++)o=r[a],e.call(null,t[o],o,t)}}function Vt(t,e){if(Nt(t))return null;e=e.toLowerCase();const n=Object.keys(t);let a,r=n.length;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const $t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gt=t=>!Tt(t)&&t!==$t;const Yt=(Xt="undefined"!=typeof Uint8Array&&yt(Uint8Array),t=>Xt&&t instanceof Xt);var Xt;const Jt=St("HTMLFormElement"),Zt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Qt=St("RegExp"),te=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),a={};Kt(n,((n,r)=>{let i;!1!==(i=e(n,r,t))&&(a[r]=i||n)})),Object.defineProperties(t,a)};const ee=St("AsyncFunction"),ne=(ae="function"==typeof setImmediate,re=Ot($t.postMessage),ae?setImmediate:re?(ie=`axios@${Math.random()}`,oe=[],$t.addEventListener("message",(({source:t,data:e})=>{t===$t&&e===ie&&oe.length&&oe.shift()()}),!1),t=>{oe.push(t),$t.postMessage(ie,"*")}):t=>setTimeout(t));var ae,re,ie,oe;const se="undefined"!=typeof queueMicrotask?queueMicrotask.bind($t):void 0!==bt&&bt.nextTick||ne,le={isArray:Et,isArrayBuffer:Pt,isBuffer:Nt,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Ot(t.append)&&("formdata"===(e=kt(t))||"object"===e&&Ot(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Pt(t.buffer),e},isString:Lt,isNumber:Rt,isBoolean:t=>!0===t||!1===t,isObject:It,isPlainObject:Mt,isEmptyObject:t=>{if(!It(t)||Nt(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:zt,isRequest:Ht,isResponse:qt,isHeaders:Wt,isUndefined:Tt,isDate:Ft,isFile:Dt,isBlob:jt,isRegExp:Qt,isFunction:Ot,isStream:t=>It(t)&&Ot(t.pipe),isURLSearchParams:Ut,isTypedArray:Yt,isFileList:Bt,forEach:Kt,merge:function t(){const{caseless:e,skipUndefined:n}=Gt(this)&&this||{},a={},r=(r,i)=>{const o=e&&Vt(a,i)||i;Mt(a[o])&&Mt(r)?a[o]=t(a[o],r):Mt(r)?a[o]=t({},r):Et(r)?a[o]=r.slice():n&&Tt(r)||(a[o]=r)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Kt(arguments[t],r);return a},extend:(t,e,n,{allOwnKeys:a}={})=>(Kt(e,((e,a)=>{n&&Ot(e)?t[a]=vt(e,n):t[a]=e}),{allOwnKeys:a}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,a)=>{t.prototype=Object.create(e.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,a)=>{let r,i,o;const s={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],a&&!a(o,t,e)||s[o]||(e[o]=t[o],s[o]=!0);t=!1!==n&&yt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:kt,kindOfTest:St,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const a=t.indexOf(e,n);return-1!==a&&a===n},toArray:t=>{if(!t)return null;if(Et(t))return t;let e=t.length;if(!Rt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[wt]).call(t);let a;for(;(a=n.next())&&!a.done;){const n=a.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const a=[];for(;null!==(n=t.exec(e));)a.push(n);return a},isHTMLForm:Jt,hasOwnProperty:Zt,hasOwnProp:Zt,reduceDescriptors:te,freezeMethods:t=>{te(t,((e,n)=>{if(Ot(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=t[n];Ot(a)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},a=t=>{t.forEach((t=>{n[t]=!0}))};return Et(t)?a(t):a(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:Vt,global:$t,isContextDefined:Gt,isSpecCompliantForm:function(t){return!!(t&&Ot(t.append)&&"FormData"===t[xt]&&t[wt])},toJSONObject:t=>{const e=new Array(10),n=(t,a)=>{if(It(t)){if(e.indexOf(t)>=0)return;if(Nt(t))return t;if(!("toJSON"in t)){e[a]=t;const r=Et(t)?[]:{};return Kt(t,((t,e)=>{const i=n(t,a+1);!Tt(i)&&(r[e]=i)})),e[a]=void 0,r}}return t};return n(t,0)},isAsyncFn:ee,isThenable:t=>t&&(It(t)||Ot(t))&&Ot(t.then)&&Ot(t.catch),setImmediate:ne,asap:se,isIterable:t=>null!=t&&Ot(t[wt])};function ce(t,e,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status?r.status:null)}le.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=ce.prototype,fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{fe[t]={value:t}})),Object.defineProperties(ce,fe),Object.defineProperty(ue,"isAxiosError",{value:!0}),ce.from=(t,e,n,a,r,i)=>{const o=Object.create(ue);le.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t));const s=t&&t.message?t.message:"Error",l=null==e&&t?t.code:e;return ce.call(o,s,l,n,a,r),t&&null==o.cause&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const de=ce;var he=n(8287).hp;function pe(t){return le.isPlainObject(t)||le.isArray(t)}function me(t){return le.endsWith(t,"[]")?t.slice(0,-2):t}function ge(t,e,n){return t?t.concat(e).map((function(t,e){return t=me(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const ve=le.toFlatObject(le,{},null,(function(t){return/^is[A-Z]/.test(t)}));const be=function(t,e,n){if(!le.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const a=(n=le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!le.isUndefined(e[t])}))).metaTokens,r=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&le.isSpecCompliantForm(e);if(!le.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(le.isDate(t))return t.toISOString();if(le.isBoolean(t))return t.toString();if(!s&&le.isBlob(t))throw new de("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(t)||le.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):he.from(t):t}function c(t,n,r){let s=t;if(t&&!r&&"object"==typeof t)if(le.endsWith(n,"{}"))n=a?n:n.slice(0,-2),t=JSON.stringify(t);else if(le.isArray(t)&&function(t){return le.isArray(t)&&!t.some(pe)}(t)||(le.isFileList(t)||le.endsWith(n,"[]"))&&(s=le.toArray(t)))return n=me(n),s.forEach((function(t,a){!le.isUndefined(t)&&null!==t&&e.append(!0===o?ge([n],a,i):null===o?n:n+"[]",l(t))})),!1;return!!pe(t)||(e.append(ge(r,n,i),l(t)),!1)}const u=[],f=Object.assign(ve,{defaultVisitor:c,convertValue:l,isVisitable:pe});if(!le.isObject(t))throw new TypeError("data must be an object");return function t(n,a){if(!le.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+a.join("."));u.push(n),le.forEach(n,(function(n,i){!0===(!(le.isUndefined(n)||null===n)&&r.call(e,n,le.isString(i)?i.trim():i,a,f))&&t(n,a?a.concat(i):[i])})),u.pop()}}(t),e};function _e(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ye(t,e){this._pairs=[],t&&be(t,this,e)}const we=ye.prototype;we.append=function(t,e){this._pairs.push([t,e])},we.toString=function(t){const e=t?function(e){return t.call(this,e,_e)}:_e;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const xe=ye;function ke(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ae(t,e,n){if(!e)return t;const a=n&&n.encode||ke;le.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(i=r?r(e,n):le.isURLSearchParams(e)?e.toString():new xe(e,n).toString(a),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const Se=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Te="undefined"!=typeof window&&"undefined"!=typeof document,Ne="object"==typeof navigator&&navigator||void 0,Pe=Te&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0),Le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oe=Te&&window.location.href||"http://localhost",Re={...a,...Ee};const Ie=function(t){function e(t,n,a,r){let i=t[r++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=r>=t.length;if(i=!i&&le.isArray(a)?a.length:i,s)return le.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!o;a[i]&&le.isObject(a[i])||(a[i]=[]);return e(t,n,a[i],r)&&le.isArray(a[i])&&(a[i]=function(t){const e={},n=Object.keys(t);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],e[i]=t[i];return e}(a[i])),!o}if(le.isFormData(t)&&le.isFunction(t.entries)){const n={};return le.forEachEntry(t,((t,a)=>{e(function(t){return le.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),a,n,0)})),n}return null};const Me={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",a=n.indexOf("application/json")>-1,r=le.isObject(t);r&&le.isHTMLForm(t)&&(t=new FormData(t));if(le.isFormData(t))return a?JSON.stringify(Ie(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return be(t,new Re.classes.URLSearchParams,{visitor:function(t,e,n,a){return Re.isNode&&le.isBuffer(t)?(this.append(e,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return be(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||a?(e.setContentType("application/json",!1),function(t,e,n){if(le.isString(t))try{return(e||JSON.parse)(t),le.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Me.transitional,n=e&&e.forcedJSONParsing,a="json"===this.responseType;if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(n&&!this.responseType||a)){const n=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw de.from(t,de.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Re.classes.FormData,Blob:Re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],(t=>{Me.headers[t]={}}));const Fe=Me,De=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=Symbol("internals");function Be(t){return t&&String(t).trim().toLowerCase()}function Ue(t){return!1===t||null==t?t:le.isArray(t)?t.map(Ue):String(t)}function ze(t,e,n,a,r){return le.isFunction(a)?a.call(this,e,n):(r&&(e=n),le.isString(e)?le.isString(a)?-1!==e.indexOf(a):le.isRegExp(a)?a.test(e):void 0:void 0)}class He{constructor(t){t&&this.set(t)}set(t,e,n){const a=this;function r(t,e,n){const r=Be(e);if(!r)throw new Error("header name must be a non-empty string");const i=le.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||e]=Ue(t))}const i=(t,e)=>le.forEach(t,((t,n)=>r(t,n,e)));if(le.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(le.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,a,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),a=t.substring(r+1).trim(),!n||e[n]&&De[n]||("set-cookie"===n?e[n]?e[n].push(a):e[n]=[a]:e[n]=e[n]?e[n]+", "+a:a)})),e})(t),e);else if(le.isObject(t)&&le.isIterable(t)){let n,a,r={};for(const e of t){if(!le.isArray(e))throw TypeError("Object iterator must return a key-value pair");r[a=e[0]]=(n=r[a])?le.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(r,e)}else null!=t&&r(e,t,n);return this}get(t,e){if(t=Be(t)){const n=le.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(t);)e[a[1]]=a[2];return e}(t);if(le.isFunction(e))return e.call(this,t,n);if(le.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Be(t)){const n=le.findKey(this,t);return!(!n||void 0===this[n]||e&&!ze(0,this[n],n,e))}return!1}delete(t,e){const n=this;let a=!1;function r(t){if(t=Be(t)){const r=le.findKey(n,t);!r||e&&!ze(0,n[r],r,e)||(delete n[r],a=!0)}}return le.isArray(t)?t.forEach(r):r(t),a}clear(t){const e=Object.keys(this);let n=e.length,a=!1;for(;n--;){const r=e[n];t&&!ze(0,this[r],r,t,!0)||(delete this[r],a=!0)}return a}normalize(t){const e=this,n={};return le.forEach(this,((a,r)=>{const i=le.findKey(n,r);if(i)return e[i]=Ue(a),void delete e[r];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(r):String(r).trim();o!==r&&delete e[r],e[o]=Ue(a),n[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return le.forEach(this,((n,a)=>{null!=n&&!1!==n&&(e[a]=t&&le.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[je]=this[je]={accessors:{}}).accessors,n=this.prototype;function a(t){const a=Be(t);e[a]||(!function(t,e){const n=le.toCamelCase(" "+e);["get","set","has"].forEach((a=>{Object.defineProperty(t,a+n,{value:function(t,n,r){return this[a].call(this,e,t,n,r)},configurable:!0})}))}(n,t),e[a]=!0)}return le.isArray(t)?t.forEach(a):a(t),this}}He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(He.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),le.freezeMethods(He);const qe=He;function We(t,e){const n=this||Fe,a=e||n,r=qe.from(a.headers);let i=a.data;return le.forEach(t,(function(t){i=t.call(n,i,r.normalize(),e?e.status:void 0)})),r.normalize(),i}function Ke(t){return!(!t||!t.__CANCEL__)}function Ve(t,e,n){de.call(this,null==t?"canceled":t,de.ERR_CANCELED,e,n),this.name="CanceledError"}le.inherits(Ve,de,{__CANCEL__:!0});const $e=Ve;function Ge(t,e,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?e(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const Ye=function(t,e){t=t||10;const n=new Array(t),a=new Array(t);let r,i=0,o=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=a[o];r||(r=l),n[i]=s,a[i]=l;let u=o,f=0;for(;u!==i;)f+=n[u++],u%=t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),l-r<e)return;const d=c&&l-c;return d?Math.round(1e3*f/d):void 0}};const Xe=function(t,e){let n,a,r=0,i=1e3/e;const o=(e,i=Date.now())=>{r=i,n=null,a&&(clearTimeout(a),a=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-r;s>=i?o(t,e):(n=t,a||(a=setTimeout((()=>{a=null,o(n)}),i-s)))},()=>n&&o(n)]},Je=(t,e,n=3)=>{let a=0;const r=Ye(50,250);return Xe((n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=i-a,l=r(s);a=i;t({loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:n,lengthComputable:null!=o,[e?"download":"upload"]:!0})}),n)},Ze=(t,e)=>{const n=null!=t;return[a=>e[0]({lengthComputable:n,total:t,loaded:a}),e[1]]},Qe=t=>(...e)=>le.asap((()=>t(...e))),tn=Re.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Re.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Re.origin),Re.navigator&&/(msie|trident)/i.test(Re.navigator.userAgent)):()=>!0,en=Re.hasStandardBrowserEnv?{write(t,e,n,a,r,i,o){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];le.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),le.isString(a)&&s.push(`path=${a}`),le.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),le.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function nn(t,e,n){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(a||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const an=t=>t instanceof qe?{...t}:t;function rn(t,e){e=e||{};const n={};function a(t,e,n,a){return le.isPlainObject(t)&&le.isPlainObject(e)?le.merge.call({caseless:a},t,e):le.isPlainObject(e)?le.merge({},e):le.isArray(e)?e.slice():e}function r(t,e,n,r){return le.isUndefined(e)?le.isUndefined(t)?void 0:a(void 0,t,0,r):a(t,e,0,r)}function i(t,e){if(!le.isUndefined(e))return a(void 0,e)}function o(t,e){return le.isUndefined(e)?le.isUndefined(t)?void 0:a(void 0,t):a(void 0,e)}function s(n,r,i){return i in e?a(n,r):i in t?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(t,e,n)=>r(an(t),an(e),0,!0)};return le.forEach(Object.keys({...t,...e}),(function(a){const i=l[a]||r,o=i(t[a],e[a],a);le.isUndefined(o)&&i!==s||(n[a]=o)})),n}const on=t=>{const e=rn({},t);let{data:n,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:s}=e;if(e.headers=o=qe.from(o),e.url=Ae(nn(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),le.isFormData(n))if(Re.hasStandardBrowserEnv||Re.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(le.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach((([t,n])=>{e.includes(t.toLowerCase())&&o.set(t,n)}))}if(Re.hasStandardBrowserEnv&&(a&&le.isFunction(a)&&(a=a(e)),a||!1!==a&&tn(e.url))){const t=r&&i&&en.read(i);t&&o.set(r,t)}return e},sn="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const a=on(t);let r=a.data;const i=qe.from(a.headers).normalize();let o,s,l,c,u,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=a;function p(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const a=qe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ge((function(t){e(t),p()}),(function(t){n(t),p()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:t,request:m}),m=null}m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new de("Request aborted",de.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const a=e&&e.message?e.message:"Network Error",r=new de(a,de.ERR_NETWORK,t,m);r.event=e||null,n(r),m=null},m.ontimeout=function(){let e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||Ce;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),n(new de(e,r.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,t,m)),m=null},void 0===r&&i.setContentType(null),"setRequestHeader"in m&&le.forEach(i.toJSON(),(function(t,e){m.setRequestHeader(e,t)})),le.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),f&&"json"!==f&&(m.responseType=a.responseType),h&&([l,u]=Je(h,!0),m.addEventListener("progress",l)),d&&m.upload&&([s,c]=Je(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(o=e=>{m&&(n(!e||e.type?new $e(null,t,m):e),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(a.url);v&&-1===Re.protocols.indexOf(v)?n(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,t)):m.send(r||null)}))},ln=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,a=new AbortController;const r=function(t){if(!n){n=!0,o();const e=t instanceof Error?t:this.reason;a.abort(e instanceof de?e:new $e(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,r(new de(`timeout ${e} of ms exceeded`,de.ETIMEDOUT))}),e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:s}=a;return s.unsubscribe=()=>le.asap(o),s}},cn=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let a,r=0;for(;r<n;)a=r+e,yield t.slice(r,a),r=a},un=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},fn=(t,e,n,a)=>{const r=async function*(t,e){for await(const n of un(t))yield*cn(n,e)}(t,e);let i,o=0,s=t=>{i||(i=!0,a&&a(t))};return new ReadableStream({async pull(t){try{const{done:e,value:a}=await r.next();if(e)return s(),void t.close();let i=a.byteLength;if(n){let t=o+=i;n(t)}t.enqueue(new Uint8Array(a))}catch(t){throw s(t),t}},cancel:t=>(s(t),r.return())},{highWaterMark:2})},{isFunction:dn}=le,hn=(({Request:t,Response:e})=>({Request:t,Response:e}))(le.global),{ReadableStream:pn,TextEncoder:mn}=le.global,gn=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},vn=t=>{t=le.merge.call({skipUndefined:!0},hn,t);const{fetch:e,Request:n,Response:a}=t,r=e?dn(e):"function"==typeof fetch,i=dn(n),o=dn(a);if(!r)return!1;const s=r&&dn(pn),l=r&&("function"==typeof mn?(c=new mn,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const u=i&&s&&gn((()=>{let t=!1;const e=new n(Re.origin,{body:new pn,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),f=o&&s&&gn((()=>le.isReadableStream(new a("").body))),d={stream:f&&(t=>t.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!d[t]&&(d[t]=(e,n)=>{let a=e&&e[t];if(a)return a.call(e);throw new de(`Response type '${t}' is not supported`,de.ERR_NOT_SUPPORT,n)})}));const h=async(t,e)=>{const a=le.toFiniteNumber(t.getContentLength());return null==a?(async t=>{if(null==t)return 0;if(le.isBlob(t))return t.size;if(le.isSpecCompliantForm(t)){const e=new n(Re.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return le.isArrayBufferView(t)||le.isArrayBuffer(t)?t.byteLength:(le.isURLSearchParams(t)&&(t+=""),le.isString(t)?(await l(t)).byteLength:void 0)})(e):a};return async t=>{let{url:r,method:o,data:s,signal:l,cancelToken:c,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:b,withCredentials:_="same-origin",fetchOptions:y}=on(t),w=e||fetch;v=v?(v+"").toLowerCase():"text";let x=ln([l,c&&c.toAbortSignal()],p),k=null;const A=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(g&&u&&"get"!==o&&"head"!==o&&0!==(S=await h(b,s))){let t,e=new n(r,{method:"POST",body:s,duplex:"half"});if(le.isFormData(s)&&(t=e.headers.get("content-type"))&&b.setContentType(t),e.body){const[t,n]=Ze(S,Je(Qe(g)));s=fn(e.body,65536,t,n)}}le.isString(_)||(_=_?"include":"omit");const e=i&&"credentials"in n.prototype,l={...y,signal:x,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:e?_:void 0};k=i&&new n(r,l);let c=await(i?w(k,y):w(r,l));const p=f&&("stream"===v||"response"===v);if(f&&(m||p&&A)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=c[e]}));const e=le.toFiniteNumber(c.headers.get("content-length")),[n,r]=m&&Ze(e,Je(Qe(m),!0))||[];c=new a(fn(c.body,65536,n,(()=>{r&&r(),A&&A()})),t)}v=v||"text";let C=await d[le.findKey(d,v)||"text"](c,t);return!p&&A&&A(),await new Promise(((e,n)=>{Ge(e,n,{data:C,headers:qe.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:k})}))}catch(e){if(A&&A(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new de("Network Error",de.ERR_NETWORK,t,k),{cause:e.cause||e});throw de.from(e,e&&e.code,t,k)}}},bn=new Map,_n=t=>{let e=t&&t.env||{};const{fetch:n,Request:a,Response:r}=e,i=[a,r,n];let o,s,l=i.length,c=bn;for(;l--;)o=i[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:vn(e)),c=s;return s},yn=(_n(),{http:null,xhr:sn,fetch:{get:_n}});le.forEach(yn,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const wn=t=>`- ${t}`,xn=t=>le.isFunction(t)||null===t||!1===t;const kn={getAdapter:function(t,e){t=le.isArray(t)?t:[t];const{length:n}=t;let a,r;const i={};for(let o=0;o<n;o++){let n;if(a=t[o],r=a,!xn(a)&&(r=yn[(n=String(a)).toLowerCase()],void 0===r))throw new de(`Unknown adapter '${n}'`);if(r&&(le.isFunction(r)||(r=r.get(e))))break;i[n||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let e=n?t.length>1?"since :\n"+t.map(wn).join("\n"):" "+wn(t[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return r},adapters:yn};function An(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new $e(null,t)}function Sn(t){An(t),t.headers=qe.from(t.headers),t.data=We.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return kn.getAdapter(t.adapter||Fe.adapter,t)(t).then((function(e){return An(t),e.data=We.call(t,t.transformResponse,e),e.headers=qe.from(e.headers),e}),(function(e){return Ke(e)||(An(t),e&&e.response&&(e.response.data=We.call(t,t.transformResponse,e.response),e.response.headers=qe.from(e.response.headers))),Promise.reject(e)}))}const Cn="1.13.2",En={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{En[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Tn={};En.transitional=function(t,e,n){function a(t,e){return"[Axios v"+Cn+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,i)=>{if(!1===t)throw new de(a(r," has been removed"+(e?" in "+e:"")),de.ERR_DEPRECATED);return e&&!Tn[r]&&(Tn[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,i)}},En.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const Nn={assertOptions:function(t,e,n){if("object"!=typeof t)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let r=a.length;for(;r-- >0;){const i=a[r],o=e[i];if(o){const e=t[i],n=void 0===e||o(e,i,t);if(!0!==n)throw new de("option "+i+" must be "+n,de.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}},validators:En},Pn=Nn.validators;class Ln{constructor(t){this.defaults=t||{},this.interceptors={request:new Se,response:new Se}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=rn(this.defaults,e);const{transitional:n,paramsSerializer:a,headers:r}=e;void 0!==n&&Nn.assertOptions(n,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean)},!1),null!=a&&(le.isFunction(a)?e.paramsSerializer={serialize:a}:Nn.assertOptions(a,{encode:Pn.function,serialize:Pn.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Nn.assertOptions(e,{baseUrl:Pn.spelling("baseURL"),withXsrfToken:Pn.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=r&&le.merge(r.common,r[e.method]);r&&le.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=qe.concat(i,r);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,f=0;if(!s){const t=[Sn.bind(this),void 0];for(t.unshift(...o),t.push(...l),u=t.length,c=Promise.resolve(e);f<u;)c=c.then(t[f++],t[f++]);return c}u=o.length;let d=e;for(;f<u;){const t=o[f++],e=o[f++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=Sn.call(this,d)}catch(t){return Promise.reject(t)}for(f=0,u=l.length;f<u;)c=c.then(l[f++],l[f++]);return c}getUri(t){return Ae(nn((t=rn(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}le.forEach(["delete","get","head","options"],(function(t){Ln.prototype[t]=function(e,n){return this.request(rn(n||{},{method:t,url:e,data:(n||{}).data}))}})),le.forEach(["post","put","patch"],(function(t){function e(e){return function(n,a,r){return this.request(rn(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Ln.prototype[t]=e(),Ln.prototype[t+"Form"]=e(!0)}));const On=Ln;class Rn{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const a=new Promise((t=>{n.subscribe(t),e=t})).then(t);return a.cancel=function(){n.unsubscribe(e)},a},t((function(t,a,r){n.reason||(n.reason=new $e(t,a,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Rn((function(e){t=e})),cancel:t}}}const In=Rn;const Mn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Mn).forEach((([t,e])=>{Mn[e]=t}));const Fn=Mn;const Dn=function t(e){const n=new On(e),a=vt(On.prototype.request,n);return le.extend(a,On.prototype,n,{allOwnKeys:!0}),le.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return t(rn(e,n))},a}(Fe);Dn.Axios=On,Dn.CanceledError=$e,Dn.CancelToken=In,Dn.isCancel=Ke,Dn.VERSION=Cn,Dn.toFormData=be,Dn.AxiosError=de,Dn.Cancel=Dn.CanceledError,Dn.all=function(t){return Promise.all(t)},Dn.spread=function(t){return function(e){return t.apply(null,e)}},Dn.isAxiosError=function(t){return le.isObject(t)&&!0===t.isAxiosError},Dn.mergeConfig=rn,Dn.AxiosHeaders=qe,Dn.formToJSON=t=>Ie(le.isHTMLForm(t)?new FormData(t):t),Dn.getAdapter=kn.getAdapter,Dn.HttpStatusCode=Fn,Dn.default=Dn;const jn=Dn;function Bn(t){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(t)}function Un(){Un=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new P(a||[]);return r(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,i,o,s){var l=f(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Bn(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function C(e,n,a){var r=d;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===d)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=f(e,n,a);if("normal"===c.type){if(r=a.done?m:h,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=f(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Bn(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function zn(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function Hn(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){zn(i,a,r,o,s,"next",t)}function s(t){zn(i,a,r,o,s,"throw",t)}o(void 0)}))}}const qn={name:"PenyataView",data:function(){return{tarikh:(new Date).toISOString().substring(0,10),persetujuan:"",nokp:"",data:{user:{}},loading:!1}},mounted:function(){var t=this.$route.params.no_anggota;t&&this.getPenyata(t)},methods:{getPenyata:function(t){var e=this;return Hn(Un().mark((function n(){var a;return Un().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,jn.get("/api/v1/penyata/".concat(t));case 4:a=n.sent,e.data=a.data,n.next=12;break;case 8:n.prev=8,n.t0=n.catch(1),console.error(n.t0),alert("Gagal ambil data penyata");case 12:return n.prev=12,e.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[1,8,12,15]])})))()},cetakPDF:function(){var t=this.$route.params.no_anggota;t&&window.open("/api/v1/penyata/".concat(t,"/pdf"),"_blank")},SahkanPenyata:function(){var t=this;return Hn(Un().mark((function e(){var n;return Un().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$route.params.no_anggota,t.persetujuan){e.next=4;break}return alert("Sila pilih Bersetuju atau Tidak Bersetuju"),e.abrupt("return");case 4:if(t.nokp){e.next=7;break}return alert("Sila isi No Kad Pengenalan"),e.abrupt("return");case 7:if(confirm("Adakah anda pasti untuk mengesahkan penyata ini?")){e.next=9;break}return e.abrupt("return");case 9:return e.prev=9,e.next=12,jn.post("/api/v1/penyata/".concat(n,"/sahkan"),{persetujuan:t.persetujuan,nokp:t.nokp,tarikh:t.tarikh});case 12:alert("Penyata berjaya DISAHKAN"),t.cetakPDF(),t.$router.push({name:"lamanUtama"}),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(9),console.error(e.t0),alert("Gagal sahkan penyata");case 21:case"end":return e.stop()}}),e,null,[[9,17]])})))()},formatNumber:function(t){return Number(t||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}}},Wn=qn;var Kn=n(3389),Vn={insert:"head",singleton:!1};u()(Kn.A,Vn);Kn.A.locals;const $n=(0,h.A)(Wn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"penyata-wrapper container"},[t._m(0),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t.data.user.no_anggota?e("div",{staticClass:"form-section two-column"},[t._m(1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("No. Anggota:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.no_anggota))])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Nama:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.name))])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Pejabat / Syarikat:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.unit))])])]):t._e(),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),e("table",{staticClass:"boxed-table mt-4"},[e("tbody",[e("tr",[e("td",[t._v("Saham")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.saham)))]),t._v(" "),e("td",[t._v("Pembiayaan Kecemasan")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.tergempar)))])]),t._v(" "),e("tr",[e("td",[t._v("Yuran")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.yuran)))]),t._v(" "),e("td",[t._v("Pembiayaan Pengguna")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.barangan)))])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T1")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.pelaburan)))]),t._v(" "),e("td",[t._v("Pembiayaan Peribadi")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.peribadi)))])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T2")]),t._v(" "),e("td",[t._v("0.00")]),t._v(" "),e("td",[t._v("Pembiayaan Berjamin Yuran")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.berjamin_yuran)))])]),t._v(" "),e("tr",[e("td"),t._v(" "),e("td"),t._v(" "),e("td",[t._v("Pembiayaan Takaful / Cukai Jalan")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.roadtax)))])]),t._v(" "),e("tr",[e("td"),t._v(" "),e("td"),t._v(" "),e("td",[t._v("Pembiayaan Pelaburan / Pelbagai")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.pelbagai)))])])])]),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("p",[t._v("Sekian, dimaklumkan.")]),t._v(" "),e("p",{staticClass:"italic-note"},[t._v("Surat ini dikeluarkan oleh komputer, tidak perlu ditandatangani.")]),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t._m(6),t._v(" "),e("div",{staticStyle:{"margin-top":"10px","line-height":"1.8"}},[e("div",{staticStyle:{"margin-bottom":"8px"}},[e("label",{staticStyle:{cursor:"pointer"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.persetujuan,expression:"persetujuan"}],attrs:{type:"radio",name:"persetujuan",value:"Bersetuju",disabled:"DISAHKAN"===t.data.user.status_penyata},domProps:{checked:t._q(t.persetujuan,"Bersetuju")},on:{change:function(e){t.persetujuan="Bersetuju"}}}),t._v(" "),t._m(7)])]),t._v(" "),e("div",[e("label",{staticStyle:{cursor:"pointer"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.persetujuan,expression:"persetujuan"}],attrs:{type:"radio",name:"persetujuan",value:"Tidak Bersetuju",disabled:"DISAHKAN"===t.data.user.status_penyata},domProps:{checked:t._q(t.persetujuan,"Tidak Bersetuju")},on:{change:function(e){t.persetujuan="Tidak Bersetuju"}}}),t._v(" "),t._m(8)])]),t._v(" "),t._m(9)]),t._v(" "),e("p",{staticClass:"text-center"},[e("strong",["DISAHKAN"===t.data.user.status_penyata?e("span",{staticClass:"badge-disahkan"},[t._v("\n TELAH DISAHKAN\n ")]):"Tidak Bersetuju"===t.data.user.status_penyata?e("span",{staticClass:"badge-tidak-setuju"},[t._v("\n Tidak Setuju\n ")]):e("span",[t._v("\n "+t._s(t.persetujuan||"Belum membuat pilihan")+"\n ")])])]),t._v(" "),e("table",{staticClass:"table table-sm no-lines text-center align-middle mt-2"},[e("tbody",[e("tr",[e("td",[t._v("Saham")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.saham,expression:"data.user.saham"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.saham},on:{input:function(e){e.target.composing||t.$set(t.data.user,"saham",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Kecemasan")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.tergempar,expression:"data.user.tergempar"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.tergempar},on:{input:function(e){e.target.composing||t.$set(t.data.user,"tergempar",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Yuran")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.yuran,expression:"data.user.yuran"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.yuran},on:{input:function(e){e.target.composing||t.$set(t.data.user,"yuran",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Pengguna")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.barangan,expression:"data.user.barangan"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.barangan},on:{input:function(e){e.target.composing||t.$set(t.data.user,"barangan",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T1")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelaburan,expression:"data.user.pelaburan"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.pelaburan},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelaburan",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Peribadi")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.peribadi,expression:"data.user.peribadi"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.peribadi},on:{input:function(e){e.target.composing||t.$set(t.data.user,"peribadi",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T2")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelaburanT2,expression:"data.user.pelaburanT2"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.pelaburanT2},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelaburanT2",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Berjamin Yuran")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.berjamin_yuran,expression:"data.user.berjamin_yuran"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.berjamin_yuran},on:{input:function(e){e.target.composing||t.$set(t.data.user,"berjamin_yuran",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pembiayaan Takaful / Cukai Jalan")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.roadtax,expression:"data.user.roadtax"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.roadtax},on:{input:function(e){e.target.composing||t.$set(t.data.user,"roadtax",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Pelaburan / Pelbagai")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelbagai,expression:"data.user.pelbagai"}],staticClass:"keyin-input",attrs:{type:"text"},domProps:{value:t.data.user.pelbagai},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelbagai",e.target.value)}}})])])])]),t._v(" "),e("div",{staticClass:"signature-section"},[e("div",{staticClass:"sign-column"},[e("label",{staticClass:"form-label"},[t._v("No Kad Pengenalan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.nokp,expression:"nokp"}],staticClass:"keyin-line",attrs:{type:"number"},domProps:{value:t.nokp},on:{input:function(e){e.target.composing||(t.nokp=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sig-column"},[e("label",{staticClass:"form-label"},[t._v("Tarikh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tarikh,expression:"tarikh"}],staticClass:"keyin-line",attrs:{type:"date"},domProps:{value:t.tarikh},on:{input:function(e){e.target.composing||(t.tarikh=e.target.value)}}})])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"text-right mt-5 mb-3 no-print"},[e("button",{staticClass:"btn btn-primary btn-effect",staticStyle:{width:"100px"},attrs:{disabled:"DISAHKAN"===t.data.user.status_penyata},on:{click:t.SahkanPenyata}},[t._v("\n "+t._s("DISAHKAN"===t.data.user.status_penyata?"Disahkan":"Sahkan")+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-danger ms-2",on:{click:t.cetakPDF}},[t._v("Cetak PDF")])]),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t._m(10)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-section"},[e("div",{staticClass:"header-left"},[e("div",{staticClass:"logo-wrapper"},[e("img",{staticClass:"kopkb-logo",attrs:{src:"/images/logo-kopkb.jpeg",alt:"KoPKB Logo"}}),t._v(" "),e("div",[e("h4",{staticClass:"fw-bold mb-1"},[t._v("KOPERASI PERMODALAN KELANTAN BERHAD")]),t._v(" "),e("p",{staticStyle:{"font-size":"13px","line-height":"1.3",margin:"0"}},[t._v("\n Lot PT 448, Tingkat 1, Jalan Kuala Krai, Batu 3, Wakaf Che Yeh, 15150 Kota Bharu, Kelantan"),e("br"),t._v("\n Tel: 09-7414339 | Website: www.koppkb.com\n ")])])])]),t._v(" "),e("div",{staticClass:"header-right"},[e("div",{staticClass:"title-box"},[e("h5",[t._v("PENYATA AHLI")])]),t._v(" "),e("h4",{staticClass:"text-muted mt-2"},[t._v("2025")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Tarikh :")]),t._v(" "),e("span",[t._v("26-02-2026")])])},function(){var t=this._self._c;return t("h5",{staticClass:"mt-4"},[t("strong",[t("u",[this._v("PENGESAHAN PENYATA BAKI AKAUN AHLI")])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("Adalah dimaklumkan kedudukan baki akaun tuan/puan pada "),e("b",[t._v("31/12/2025")]),t._v(" dengan Koperasi Permodalan\n Kelantan Berhad adalah seperti berikut:")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-4"},[t._v("Sukacita dapat tuan/puan untuk mengesahkan baki tersebut dengan memasukkan No K/P anggota dan\n menekan butang SAHKAN\n untuk tujuan audit tahunan koperasi sebelum "),e("b",[t._v("12-03-2026")]),t._v(".")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-4"},[t._v("Dimaklumkan juga bahawa sekiranya kami tidak menerima pengesahan tuan/puan ke atas penyata ini\n dalam tempoh "),e("strong",[t._v("14 hari")]),t._v(" daripada tarikh surat ini, maka ia dianggap tuan/puan bersetuju\n terhadap baki yang dipaparkan.")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mt-4 mb-3"},[e("div",{staticStyle:{"font-weight":"700","font-size":"18px"}},[t._v("\n PERSETUJUAN AHLI\n ")]),t._v(" "),e("hr",{staticStyle:{width:"200px",margin:"8px auto"}})])},function(){var t=this,e=t._self._c;return e("span",{staticStyle:{"margin-left":"6px"}},[t._v("\n Saya "),e("strong",[t._v("MENGESAHKAN")]),t._v(" bahawa baki yang dipaparkan adalah BENAR dan TEPAT.\n ")])},function(){var t=this,e=t._self._c;return e("span",{staticStyle:{"margin-left":"6px"}},[t._v("\n Saya "),e("strong",[t._v("TIDAK BERSETUJU")]),t._v(" dengan baki yang dipaparkan.\n ")])},function(){var t=this._self._c;return t("div",[t("p",[this._v("Jika tidak bersetuju, sila nyatakan jumlah yang betul di bawah:")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-5"},[e("p",{staticClass:"fw-bold mb-1"},[t._v("Nota Penting:")]),t._v(" "),e("ul",{staticClass:"mb-0"},[e("li",[t._v("Pengesahan ini adalah bagi tujuan Audit Tahunan KoPKB.")]),t._v(" "),e("li",[t._v("Anggota hendaklah membuat pengesahan dalam tempoh 14 hari.")]),t._v(" "),e("li",[t._v("Kegagalan memberi maklum balas dalam tempoh tersebut akan dianggap sebagai persetujuan terhadap baki yang\n dipaparkan.")]),t._v(" "),e("li",[t._v("Semua rekod pengesahan adalah tertakluk kepada semakan juruaudit luar.")])])])}],!1,null,"2c7fe227",null).exports;const Gn={name:"PhysicalGateDisplay",data:function(){return{displayKey:"",keyInput:"",code:"",secondsRemaining:0,periodSeconds:60,error:"",pollTimer:null,tickTimer:null}},computed:{countdownPercent:function(){return this.periodSeconds?Math.min(100,this.secondsRemaining/this.periodSeconds*100):0}},created:function(){this.util.setTitle("Kod kaunter — Kehadiran fizikal");var t=this.$route.query.k||this.$route.query.key;t&&(this.displayKey=String(t))},mounted:function(){this.displayKey&&this.startPolling()},beforeDestroy:function(){this.stopTimers()},methods:{applyKey:function(){this.keyInput&&(this.displayKey=this.keyInput,this.error="",this.startPolling())},retry:function(){this.error="",this.fetchCode()},fetchCode:function(){var t=this;axios.get(config.API+"physical-attendance-gate/current",{headers:{"X-Physical-Gate-Display-Key":t.displayKey}}).then((function(e){t.code=e.data.code,t.secondsRemaining=e.data.seconds_remaining,t.periodSeconds=e.data.period_seconds||60,t.error=""})).catch((function(e){var n="Tidak dapat memuatkan kod.";e.response&&e.response.data&&e.response.data.message&&(n=e.response.data.message),t.error=n,t.code=""}))},startPolling:function(){var t=this;this.stopTimers(),this.fetchCode(),this.pollTimer=setInterval((function(){t.fetchCode()}),5e3),this.tickTimer=setInterval((function(){t.secondsRemaining>0&&(t.secondsRemaining-=1),t.secondsRemaining<=0&&!t.error&&t.fetchCode()}),1e3)},stopTimers:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.tickTimer&&(clearInterval(this.tickTimer),this.tickTimer=null)}}};var Yn=n(6830),Xn={insert:"head",singleton:!1};u()(Yn.A,Xn);Yn.A.locals;const Jn=(0,h.A)(Gn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"physical-gate-page"},[t.displayKey?t.error?e("div",{staticClass:"physical-gate-error"},[e("h1",{staticClass:"physical-gate-title"},[t._v("Ralat")]),t._v(" "),e("p",[t._v(t._s(t.error))]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.retry}},[t._v("Cuba lagi")])]):e("div",{staticClass:"physical-gate-active"},[e("div",{staticClass:"physical-gate-label"},[t._v("Kod kehadiran fizikal ("+t._s(t.periodSeconds)+"s)")]),t._v(" "),e("div",{staticClass:"physical-gate-code"},[t._v(t._s(t.code||"—"))]),t._v(" "),e("div",{staticClass:"physical-gate-countdown"},[e("span",{staticClass:"physical-gate-countdown-bar",style:{width:t.countdownPercent+"%"}})]),t._v(" "),e("p",{staticClass:"physical-gate-sub"},[t._v("Kod akan bertukar secara automatik. Pastikan skrin sentiasa menyala.")])]):e("div",{staticClass:"physical-gate-setup"},[e("h1",{staticClass:"physical-gate-title"},[t._v("Paparan kod kaunter")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"form-group physical-gate-key-form"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyInput,expression:"keyInput"}],staticClass:"form-control input-lg",attrs:{type:"password",placeholder:"Kunci paparan"},domProps:{value:t.keyInput},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.applyKey.apply(null,arguments)},input:function(e){e.target.composing||(t.keyInput=e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg btn-block",attrs:{type:"button"},on:{click:t.applyKey}},[t._v("Mula paparan")])])])])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"physical-gate-hint"},[t._v("\n Masukkan kunci paparan (sama dengan "),e("code",[t._v("PHYSICAL_ATTENDANCE_GATE_DISPLAY_KEY")]),t._v(" dalam tetapan pelayan),\n atau buka URL dengan parameter "),e("code",[t._v("?k=...")])])}],!1,null,"3a80ef97",null).exports;function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}const Qn={name:"RouletteEliminationWheel",props:{items:{type:Array,default:function(){return["Ali","Siti","Muthu","Aminah","David"]}},minSpins:{type:Number,default:6},durationMs:{type:Number,default:9e3},enableSpaceToSpin:{type:Boolean,default:!0},showSpaceShortcutHint:{type:Boolean,default:!0},showWinnerModal:{type:Boolean,default:!0},persistKey:{type:String,default:"voting_roulette_elimination"},showClearPersistedLink:{type:Boolean,default:!0},allowMarkAbsent:{type:Boolean,default:!0},showCenterLogo:{type:Boolean,default:!0},centerLogoSrc:{type:String,default:"/images/MyKoPKB-logo.png"},fullWidth:{type:Boolean,default:!1},spinSoundSrc:{type:String,default:"/audio/spin-wheel.mp3"},spinSoundVolume:{type:Number,default:.85},spinSoundLoop:{type:Boolean,default:!1}},data:function(){return{participantPool:[],remaining:[],winnerHistory:[],poolSize:0,rotationDeg:0,spinning:!1,lastWinner:null,pendingRemoveIndex:null,transitionMs:9e3,modalWinnerDisplay:null,absentParticipantIds:[]}},computed:{wheelStyle:function(){return{transform:"rotate("+this.rotationDeg+"deg)",transitionDuration:this.spinning?this.transitionMs+"ms":"0ms",transitionTimingFunction:this.spinning?"cubic-bezier(0.12, 0.8, 0.12, 1)":"linear"}},wheelColumnClass:function(){return this.participantPool.length?this.fullWidth?"col-sm-12 col-md-8":"col-sm-12 col-md-7":"col-xs-12"},sideColumnClass:function(){return this.participantPool.length?this.fullWidth?"col-sm-12 col-md-4":"col-sm-12 col-md-5":""},wheelCanSpin:function(){return this.remaining.length>=2&&!this.spinning},wheelStageTabindex:function(){return this.wheelCanSpin?0:-1}},watch:{items:{immediate:!0,deep:!0,handler:function(t){this.spinning||(this.syncFromItems(t),this.$nextTick(this.drawWheel))}},remaining:function(){this.$nextTick(this.drawWheel)},spinSoundSrc:function(t){t?this._spinSoundAudio&&(this._spinSoundAudio.src=t):this.disposeSpinSoundAudio()},spinSoundVolume:function(t){this._spinSoundAudio&&(this._spinSoundAudio.volume=this.clampSpinSoundVolume(t))},spinSoundLoop:function(t){this._spinSoundAudio&&(this._spinSoundAudio.loop=!!t)}},mounted:function(){window.addEventListener("resize",this.drawWheel),window.addEventListener("keydown",this.onDocumentKeydown,!0),this.$nextTick(this.drawWheel)},beforeDestroy:function(){window.removeEventListener("resize",this.drawWheel),window.removeEventListener("keydown",this.onDocumentKeydown,!0),this.disposeSpinSoundAudio()},methods:{clampSpinSoundVolume:function(t){var e="number"==typeof t?t:parseFloat(t);return e!=e?.85:e<0?0:e>1?1:e},disposeSpinSoundAudio:function(){if(this._spinSoundAudio){try{this._spinSoundAudio.pause(),this._spinSoundAudio.src=""}catch(t){}this._spinSoundAudio=null}},ensureSpinSoundAudio:function(){return this.spinSoundSrc&&"undefined"!=typeof Audio?(this._spinSoundAudio||(this._spinSoundAudio=new Audio,this._spinSoundAudio.preload="auto"),this._spinSoundAudio.src=this.spinSoundSrc,this._spinSoundAudio.volume=this.clampSpinSoundVolume(this.spinSoundVolume),this._spinSoundAudio.loop=!!this.spinSoundLoop,this._spinSoundAudio):null},playSpinSound:function(){var t=this.ensureSpinSoundAudio();if(t){try{t.currentTime=0}catch(t){}var e=t.play();e&&"function"==typeof e.catch&&e.catch((function(){}))}},stopSpinSoundAfterSpin:function(){if(this._spinSoundAudio&&this.spinSoundLoop)try{this._spinSoundAudio.loop=!1,this._spinSoundAudio.pause(),this._spinSoundAudio.currentTime=0}catch(t){}},isWinnerModalOpen:function(){if(void 0===window.$)return!1;try{return window.$("#roulette-winner-modal").hasClass("in")}catch(t){return!1}},onDocumentKeydown:function(t){if(this.enableSpaceToSpin&&(" "===t.key||"Spacebar"===t.key||"Space"===t.code)&&!t.repeat){var e=t.target;if(e){var n=e.tagName&&e.tagName.toLowerCase();if("input"===n||"textarea"===n||"select"===n||!0===e.isContentEditable)return}this.isWinnerModalOpen()||this.spinning||this.remaining.length<2||(t.preventDefault(),this.spin())}},normalizeId:function(t){return null==t?"":String(t)},normalizeItems:function(t){if(!t||!t.length)return[];for(var e=[],n={},a=0;a<t.length;a++){var r,i,o=t[a];null==o||"object"!==Zn(o)||Array.isArray(o)?(r="legacy:"+a,i=String(null!=o?o:"")):(r=void 0!==o.id&&null!==o.id?this.normalizeId(o.id):"legacy:"+a,i=String(null!=o.label?o.label:"")),i.trim()||(i=0===r.indexOf("legacy:")?r:i),n[r]||(n[r]=!0,e.push({id:r,label:i}))}return e},applyMergeFromPersisted:function(t,e){if(!e||2!==e.v)return!1;for(var n=[],a={},r={},i=0;i<t.length;i++){var o=this.normalizeId(t[i].id),s=t[i].label;n.push({id:o,label:s}),a[o]=!0,r[o]=s}for(var l=e.winnerHistory||[],c=[],u={},f=0;f<l.length;f++){var d=l[f],h=this.normalizeId(null!=d.id?d.id:d.idx);if(a[h]){if(u[h])return!1;u[h]=!0,c.push({id:h,round:"number"==typeof d.round?d.round:c.length+1,label:null!=r[h]?r[h]:String(null!=d.label?d.label:"")})}}for(var p=e.absentParticipantIds||e.absentParticipantIdxs||[],m=[],g={},v=0;v<p.length;v++){var b=this.normalizeId(p[v]);if(a[b]){if(g[b]||u[b])return!1;g[b]=!0,m.push(b)}}m.sort();for(var _=0;_<c.length;_++)c[_].round=_+1;for(var y=[],w=0;w<n.length;w++){var x=n[w].id;g[x]||(u[x]||y.push({id:x,label:n[w].label}))}return this.participantPool=n.slice(),this.remaining=y,this.winnerHistory=c,this.absentParticipantIds=m,this.poolSize=n.length,this.updateLastWinnerFromHistory(),this.rotationDeg=0,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null,!0},persistState:function(){if(this.persistKey&&"undefined"!=typeof localStorage&&this.normalizeItems(this.items).length)try{localStorage.setItem(this.persistKey,JSON.stringify({v:2,winnerHistory:this.winnerHistory,remaining:this.remaining,absentParticipantIds:this.absentParticipantIds}))}catch(t){}},clearPersistedState:function(){if(this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}void 0!==window.$&&window.$("#roulette-winner-modal").modal("hide"),this.initFreshFromNormalized(this.normalizeItems(this.items&&this.items.length?this.items:[])),this.$nextTick(this.drawWheel)},initFreshFromNormalized:function(t){if(this.participantPool=[],this.remaining=[],this.winnerHistory=[],this.absentParticipantIds=[],this.lastWinner=null,this.rotationDeg=0,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null,t&&t.length){for(var e=0;e<t.length;e++){var n={id:t[e].id,label:t[e].label};this.participantPool.push(n),this.remaining.push({id:n.id,label:n.label})}this.poolSize=this.remaining.length}else this.poolSize=0},updateLastWinnerFromHistory:function(){this.winnerHistory.length?this.lastWinner=this.winnerHistory[this.winnerHistory.length-1].label:this.lastWinner=null},syncFromItems:function(t){this.spinning=!1,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null;var e=this.normalizeItems(t);if(e.length){var n,a=null;if(this.persistKey&&"undefined"!=typeof localStorage)try{(n=localStorage.getItem(this.persistKey))&&(a=JSON.parse(n))}catch(t){a=null}if(a&&2===a.v&&this.applyMergeFromPersisted(e,a))this.persistState();else{if(this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}this.initFreshFromNormalized(e),this.persistState()}}else if(this.participantPool=[],this.remaining=[],this.winnerHistory=[],this.absentParticipantIds=[],this.poolSize=0,this.lastWinner=null,this.rotationDeg=0,this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}},isStillInPool:function(t){for(var e=this.normalizeId(t),n=0;n<this.remaining.length;n++)if(this.remaining[n].id===e)return!0;return!1},winRoundForParticipant:function(t){for(var e=this.normalizeId(t),n=0;n<this.winnerHistory.length;n++)if(this.winnerHistory[n].id===e)return this.winnerHistory[n].round;return null},isAbsentParticipant:function(t){var e=this.normalizeId(t);return this.absentParticipantIds.indexOf(e)>=0},participantRowClass:function(t){return this.isStillInPool(t.id)?"participant-row--active":this.isAbsentParticipant(t.id)?"participant-row--absent":null!==this.winRoundForParticipant(t.id)?"participant-row--won":""},participantBadge:function(t){if(this.isStillInPool(t.id))return"Dalam roda";if(this.isAbsentParticipant(t.id))return"Tidak hadir (dikeluarkan)";var e=this.winRoundForParticipant(t.id);return null!==e?"Pemenang pusingan "+e:"—"},spin:function(){var t=this.remaining.length;if(!(t<2||this.spinning)){var e=Math.floor(Math.random()*t);this.pendingRemoveIndex=e;var n=360/t,a=(360-(e*n+n/2)+360)%360-(this.rotationDeg%360+360)%360;a<0&&(a+=360),this.transitionMs=this.durationMs,this.spinning=!0,this.lastWinner=null,this.playSpinSound();var r=360*this.minSpins;this.rotationDeg=this.rotationDeg+r+a}},onSpinEnd:function(t){if(this.spinning&&"transform"===t.propertyName&&(this.stopSpinSoundAfterSpin(),this.spinning=!1,null!==this.pendingRemoveIndex)){var e=this.remaining[this.pendingRemoveIndex],n=e.label;this.lastWinner=n;var a=this.winnerHistory.length+1;this.winnerHistory.push({id:e.id,label:e.label,round:a}),this.remaining.splice(this.pendingRemoveIndex,1),this.pendingRemoveIndex=null;var r=this.remaining.map((function(t){return t.label})),i=e.id,o=parseInt(i,10);if(this.$emit("winner",{name:n,participantId:i,participantIndex:o==o?o:i,round:a,remaining:r}),this.$emit("eliminate",{name:n,participantId:i,participantIndex:o==o?o:i,round:a,remaining:r}),this.showWinnerModal){this.modalWinnerDisplay={label:n,round:a,historyIndex:this.winnerHistory.length-1};var s=this;this.$nextTick((function(){s.openWinnerModal()}))}this.persistState()}},hideWinnerModal:function(){void 0!==window.$&&window.$("#roulette-winner-modal").modal("hide")},onWinnerAbsentFromModal:function(){if(!this.spinning&&this.modalWinnerDisplay&&void 0!==this.modalWinnerDisplay.historyIndex){var t=this.modalWinnerDisplay.historyIndex;this.hideWinnerModal();var e=this;this.$nextTick((function(){e.markWinnerAbsentAtHistoryIndex(t)}))}},markWinnerAbsentAtHistoryIndex:function(t){if(!this.spinning&&!(t<0||t>=this.winnerHistory.length)){this.hideWinnerModal();var e=this.winnerHistory[t];if(e&&!this.isAbsentParticipant(e.id)){var n=e.round;this.winnerHistory.splice(t,1);for(var a=0;a<this.winnerHistory.length;a++)this.winnerHistory[a].round=a+1;for(var r=this.normalizeId(e.id),i=e.label,o=0;o<this.participantPool.length;o++)if(this.participantPool[o].id===r){i=this.participantPool[o].label;break}this.absentParticipantIds.indexOf(r)<0&&(this.absentParticipantIds.push(r),this.absentParticipantIds.sort()),this.updateLastWinnerFromHistory(),this.rotationDeg=0,this.modalWinnerDisplay=null;var s=this.remaining.map((function(t){return t.label})),l=parseInt(r,10);this.$emit("winner-absent",{name:i,participantId:r,participantIndex:l==l?l:r,roundRemoved:n,remaining:s,eliminated:!0}),this.persistState(),this.$nextTick(this.drawWheel)}}},openWinnerModal:function(){void 0!==window.$&&(this.util&&"function"==typeof this.util.showModal?this.util.showModal("#roulette-winner-modal"):window.$("#roulette-winner-modal").modal("show"))},drawWheel:function(){var t=this.$refs.wheelCanvas;if(t){var e=t.parentElement,n=this.fullWidth?880:600,a=Math.min(e.clientWidth||320,n),r=window.devicePixelRatio||1;t.width=a*r,t.height=a*r,t.style.width=a+"px",t.style.height=a+"px";var i=t.getContext("2d");i.setTransform(r,0,0,r,0,0);var o=a/2,s=a/2,l=a/2-4;i.clearRect(0,0,a,a);var c=this.remaining.map((function(t){return t.label})),u=c.length;if(0===u)return i.beginPath(),i.arc(o,s,l,0,2*Math.PI),i.fillStyle="#e8e8e8",void i.fill();for(var f=2*Math.PI/u,d=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#e67e22","#34495e"],h=0;h<u;h++){var p=-Math.PI/2+h*f;i.beginPath(),i.moveTo(o,s),i.arc(o,s,l,p,p+f),i.closePath(),i.fillStyle=d[h%d.length],i.fill(),i.strokeStyle="#fff",i.lineWidth=2,i.stroke();var m=p+f/2;i.save(),i.translate(o,s),i.rotate(m),i.fillStyle="#fff",i.font="bold "+Math.max(11,Math.floor(a/28))+"px sans-serif",i.textAlign="center",i.textBaseline="middle";var g=String(c[h]);g.length>14&&(g=g.slice(0,12)+"…"),i.fillText(g,.62*l,0),i.restore()}i.beginPath(),i.arc(o,s,16,0,2*Math.PI),i.fillStyle="#fff",i.fill(),i.strokeStyle="#333",i.lineWidth=2,i.stroke()}}}},ta=Qn;var ea=n(877),na={insert:"head",singleton:!1};u()(ea.A,na);ea.A.locals;var aa=(0,h.A)(ta,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"roulette-elimination",class:{"roulette-elimination--full-width":t.fullWidth}},[e("div",{staticClass:"row roulette-main-row"},[e("div",{staticClass:"roulette-wheel-col",class:t.wheelColumnClass},[e("div",{staticClass:"wheel-stage",class:{"wheel-stage--can-spin":t.wheelCanSpin},attrs:{role:"button",tabindex:t.wheelStageTabindex,"aria-disabled":!t.wheelCanSpin,"aria-label":t.spinning?"Roda sedang berputar":"Putar roda — klik pada roda"},on:{click:t.spin,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.spin.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.spin.apply(null,arguments))}]}},[e("div",{staticClass:"pointer",attrs:{"aria-hidden":"true"}}),t._v(" "),e("div",{staticClass:"wheel-wrap",style:t.wheelStyle,on:{transitionend:t.onSpinEnd}},[e("canvas",{ref:"wheelCanvas",staticClass:"wheel-canvas"})]),t._v(" "),t.showCenterLogo&&t.centerLogoSrc?e("div",{staticClass:"wheel-center-logo",attrs:{"aria-hidden":"true"}},[e("img",{staticClass:"wheel-center-logo-img",attrs:{src:t.centerLogoSrc,alt:"",draggable:"false"}})]):t._e()]),t._v(" "),t.wheelCanSpin?e("p",{staticClass:"text-muted roulette-click-hint small"},[t._v("\n\t\t\t\tKlik pada papan roda untuk putar.\n\t\t\t")]):t._e(),t._v(" "),t.enableSpaceToSpin&&t.showSpaceShortcutHint&&t.remaining.length>=2&&!t.spinning?e("p",{staticClass:"text-muted roulette-space-hint small"},[t._v("\n\t\t\t\tPintasan: tekan "),e("kbd",[t._v("Space")]),t._v(" untuk putar.\n\t\t\t")]):t._e(),t._v(" "),t.poolSize<2?e("p",{staticClass:"text-muted hint"},[t._v("\n\t\t\t\tTambah sekurang-kurangnya dua nama untuk bermula.\n\t\t\t")]):t.remaining.length<2?e("p",{staticClass:"text-muted hint"},[t._v("\n\t\t\t\tKurang daripada dua peserta dalam roda — tidak boleh putar lagi.\n\t\t\t")]):t._e(),t._v(" "),t.lastWinner&&!t.spinning?e("p",{staticClass:"last-winner"},[t._v("\n\t\t\t\tTerpilih: "),e("strong",[t._v(t._s(t.lastWinner))]),t._v(" (disingkirkan daripada pusingan seterusnya)\n\t\t\t")]):t._e()]),t._v(" "),t.participantPool.length?e("div",{staticClass:"roulette-side-col",class:t.sideColumnClass},[e("div",{staticClass:"panel panel-default roulette-panel text-left"},[e("div",{staticClass:"panel-heading"},[t._v("Peserta")]),t._v(" "),e("ul",{staticClass:"list-group participant-list participant-list--scroll"},t._l(t.participantPool,(function(n){return e("li",{key:n.id,staticClass:"list-group-item participant-row",class:t.participantRowClass(n)},[e("span",{staticClass:"participant-name"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"participant-badge"},[t._v(t._s(t.participantBadge(n)))])])})),0)]),t._v(" "),e("div",{staticClass:"panel panel-default roulette-panel text-left"},[e("div",{staticClass:"panel-heading"},[t._v("Pemenang (urutan cabutan)")]),t._v(" "),t.winnerHistory.length?e("ol",{staticClass:"winner-ol winner-ol--scroll"},t._l(t.winnerHistory,(function(n,a){return e("li",{key:"wh-"+n.id+"-"+a,staticClass:"winner-li"},[e("span",{staticClass:"winner-li-main"},[e("span",{staticClass:"winner-label"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"winner-meta text-muted"},[t._v("Pusingan "+t._s(n.round))])]),t._v(" "),t.allowMarkAbsent?e("button",{staticClass:"btn btn-link btn-xs winner-absent-btn",attrs:{type:"button",disabled:t.spinning},on:{click:function(e){return e.stopPropagation(),t.markWinnerAbsentAtHistoryIndex(a)}}},[t._v("\n\t\t\t\t\t\t\tTidak hadir\n\t\t\t\t\t\t")]):t._e()])})),0):e("div",{staticClass:"panel-body text-muted winner-empty"},[t._v("\n\t\t\t\t\tBelum ada cabutan.\n\t\t\t\t")])])]):t._e()]),t._v(" "),e("div",{staticClass:"modal fade app-modal roulette-winner-modal",attrs:{id:"roulette-winner-modal",tabindex:"-1",role:"dialog","aria-labelledby":"roulette-winner-title","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),t.modalWinnerDisplay?e("div",{staticClass:"modal-body text-center"},[e("p",{staticClass:"roulette-winner-modal-round text-muted"},[t._v("\n\t\t\t\t\t\tPusingan "+t._s(t.modalWinnerDisplay.round)+"\n\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"roulette-winner-modal-name"},[t._v(t._s(t.modalWinnerDisplay.label))])]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer clearfix"},[t.allowMarkAbsent?e("button",{staticClass:"btn btn-default pull-left",attrs:{type:"button",disabled:t.spinning},on:{click:t.onWinnerAbsentFromModal}},[t._v("\n\t\t\t\t\t\tTidak hadir — keluarkan\n\t\t\t\t\t")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary pull-right",attrs:{type:"button","data-dismiss":"modal"}},[t._v("\n\t\t\t\t\t\tTutup\n\t\t\t\t\t")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Tutup"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),e("h4",{staticClass:"modal-title",attrs:{id:"roulette-winner-title"}},[t._v("\n\t\t\t\t\t\tTahniah\n\t\t\t\t\t")])])}],!1,null,"1d38ef08",null);const ra=aa.exports;var ia="roulette_fizikal_imported_ids";const oa={name:"RouletteEliminationWheelDemo",components:{RouletteEliminationWheel:ra},data:function(){return{loading:!0,loadError:"",apiVoters:[],importedParticipantIds:[],lastSnapshotSig:"",refreshing:!1,lastSyncedAt:null,pollError:"",hasLoadedOnce:!1,pollTimerId:null,pollStarted:!1,pollIntervalMs:1e4,bgMusicPlaying:!1}},computed:{lastSyncedFormatted:function(){if(!this.lastSyncedAt)return"—";try{return this.lastSyncedAt.toLocaleString()}catch(t){return String(this.lastSyncedAt)}},voterLabelsById:function(){for(var t=this.apiVoters,e=function(t){if(!t||!t.length)return[];for(var e={},n=0;n<t.length;n++){var a=t[n].name,r=(null!=a?String(a):"").trim();e[r]=(e[r]||0)+1}return t.map((function(t){var n=(null!=t.name?String(t.name):"").trim();if(n||(n="#"+t.id),e[n]>1){var a=null!=t.no_anggota?String(t.no_anggota).trim():"";return a?n+" ("+a+")":n+" (#"+t.id+")"}return n}))}(t),n={},a=0;a<t.length;a++){var r=t[a].id,i="number"==typeof r&&r==r?r:parseInt(r,10);i==i&&(n[i]=e[a])}return n},pendingVoters:function(){var t=this.importedParticipantIds;return this.apiVoters.filter((function(e){var n="number"==typeof e.id&&e.id==e.id?e.id:parseInt(e.id,10);return t.indexOf(n)<0}))},cabutanItems:function(){for(var t=this.voterLabelsById,e=[],n=0;n<this.importedParticipantIds.length;n++){var a=this.importedParticipantIds[n];void 0!==t[a]&&e.push({id:a,label:t[a]})}return e},cabutanCount:function(){return this.cabutanItems.length}},created:function(){this.loadImportedIdsFromStorage(),this.fetchFizikalVoters(!1)},beforeDestroy:function(){this.stopPolling(),this.disposeBgMusic()},methods:{disposeBgMusic:function(){if(this.bgMusicPlaying=!1,this._bgMusicAudio){try{this._bgMusicAudio.pause(),this._bgMusicAudio.src=""}catch(t){}this._bgMusicAudio=null}},ensureBgMusicAudio:function(){return"undefined"==typeof Audio?null:(this._bgMusicAudio||(this._bgMusicAudio=new Audio("/audio/lucky-draw-bg.mp3"),this._bgMusicAudio.loop=!0,this._bgMusicAudio.volume=.32,this._bgMusicAudio.preload="auto"),this._bgMusicAudio)},toggleBgMusic:function(){var t=this,e=this.ensureBgMusicAudio();if(e){if(this.bgMusicPlaying)return e.pause(),void(this.bgMusicPlaying=!1);var n=e.play();n&&"function"==typeof n.then?n.then((function(){t.bgMusicPlaying=!0})).catch((function(){t.bgMusicPlaying=!1})):this.bgMusicPlaying=!0}},loadImportedIdsFromStorage:function(){if("undefined"!=typeof localStorage)try{var t=localStorage.getItem(ia);if(!t)return;var e=JSON.parse(t);if(!Array.isArray(e))return;this.importedParticipantIds=e.filter((function(t){return"number"==typeof t&&t==t}))}catch(t){this.importedParticipantIds=[]}},saveImportedIdsToStorage:function(){if("undefined"!=typeof localStorage)try{localStorage.setItem(ia,JSON.stringify(this.importedParticipantIds))}catch(t){}},pruneImportedIdsToApi:function(t){for(var e={},n=0;n<t.length;n++){var a=t[n].id,r="number"==typeof a&&a==a?a:parseInt(a,10);r==r&&(e[r]=!0)}var i=this.importedParticipantIds.filter((function(t){return e[t]}));i.length!==this.importedParticipantIds.length&&(this.importedParticipantIds=i,this.saveImportedIdsToStorage())},labelForVoter:function(t){var e="number"==typeof t.id&&t.id==t.id?t.id:parseInt(t.id,10),n=this.voterLabelsById;return e==e&&null!=n[e]?n[e]:"#"+t.id},importVoter:function(t){var e="number"==typeof t&&t==t?t:parseInt(t,10);e==e&&(this.importedParticipantIds.indexOf(e)>=0||(this.importedParticipantIds.push(e),this.saveImportedIdsToStorage()))},importAllPending:function(){var t=this;this.pendingVoters.forEach((function(e){var n="number"==typeof e.id&&e.id==e.id?e.id:parseInt(e.id,10);n==n&&t.importedParticipantIds.indexOf(n)<0&&t.importedParticipantIds.push(n)})),this.saveImportedIdsToStorage()},stopPolling:function(){null!==this.pollTimerId&&(clearInterval(this.pollTimerId),this.pollTimerId=null),this.pollStarted=!1},startPolling:function(){if(!(this.pollIntervalMs<=0||this.pollStarted)){this.pollStarted=!0;var t=this;this.pollTimerId=setInterval((function(){t.fetchFizikalVoters(!0)}),this.pollIntervalMs)}},fetchFizikalVoters:function(t){var e=this;return t?(e.pollError="",e.refreshing=!0):(e.loadError="",e.pollError="",e.hasLoadedOnce?e.refreshing=!0:e.loading=!0),axios.get(config.API+"public/roulette/fizikal-voters").then((function(n){var a=n.data&&n.data.voters?n.data.voters:[],r=function(t){if(!t||!t.length)return"empty";var e=t.map((function(t){return String(t.id)+"\t"+String(null!=t.name?t.name:"")+"\t"+String(null!=t.no_anggota?t.no_anggota:"")}));return e.sort(),e.join("|")}(a);t&&r===e.lastSnapshotSig?e.lastSyncedAt=new Date:(e.lastSnapshotSig=r,e.apiVoters=a,e.pruneImportedIdsToApi(a),e.lastSyncedAt=new Date,e.hasLoadedOnce=!0)})).catch((function(n){var a=n&&n.response&&n.response.data&&n.response.data.message?n.response.data.message:"Gagal memuat data.";t||e.hasLoadedOnce?e.pollError="Tidak dapat mengemas kini: "+(a.length>80?a.slice(0,80)+"…":a):(e.loadError=a,e.apiVoters=[])})).finally((function(){e.loading=!1,e.refreshing=!1,e.startPolling()}))},onWinner:function(t){"undefined"!=typeof console&&console.log&&console.log("[roulette demo] winner:",t)}}},sa=oa;var la=n(8869),ca={insert:"head",singleton:!1};u()(la.A,ca);la.A.locals;const ua=(0,h.A)(sa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"roulette-demo-page container-fluid"},[e("header",{staticClass:"roulette-page-header"},[e("div",{staticClass:"roulette-page-header-inner"},[e("img",{staticClass:"roulette-page-header-logo",attrs:{src:"/images/MyKoPKB-logo.png",alt:"MyKoPKB"}}),t._v(" "),e("h1",{staticClass:"roulette-demo-title"},[t._v("Sesi Cabutan Bertuah — Kehadiran Fizikal")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm roulette-bg-music-btn",attrs:{type:"button","aria-pressed":t.bgMusicPlaying?"true":"false","aria-label":t.bgMusicPlaying?"Pause Background Music":"Play Background Music"},on:{click:t.toggleBgMusic}},[t._v("\n\t\t\t\t"+t._s(t.bgMusicPlaying?"Pause Background Music":"Play Background Music")+"\n\t\t\t")])])]),t._v(" "),t.loadError?e("div",{staticClass:"alert alert-danger"},[t._v("\n\t\t"+t._s(t.loadError)+"\n\t")]):t.loading?e("div",{staticClass:"text-muted roulette-demo-loading"},[t._v("\n\t\tMemuat senarai pengundi Fizikal…\n\t")]):t.apiVoters.length?t._e():e("div",{staticClass:"alert alert-info"},[t._v("\n\t\tTiada pengundi Fizikal direkod buat masa ini. Semak kehadiran atau tambah rekod.\n\t")]),t._v(" "),t.loading||t.loadError||!t.apiVoters.length?t._e():e("div",{staticClass:"roulette-sync-bar"},[t.lastSyncedAt?e("span",{staticClass:"roulette-sync-time"},[t._v("\n\t\t\tSenarai menunggu dikemas kini pada "),e("strong",[t._v(t._s(t.lastSyncedFormatted))])]):t._e(),t._v(" "),t.refreshing?e("span",{staticClass:"roulette-sync-refreshing text-muted"},[t._v("Mengemas kini…")]):t._e(),t._v(" "),t.pollError?e("span",{staticClass:"text-warning roulette-sync-poll-error"},[t._v(t._s(t.pollError))]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm roulette-sync-btn",attrs:{type:"button",disabled:t.refreshing},on:{click:function(e){return t.fetchFizikalVoters(!1)}}},[t._v("\n\t\t\tSegerakan sekarang\n\t\t")])]),t._v(" "),t.loading||t.loadError||!t.apiVoters.length?t._e():e("div",{staticClass:"row roulette-demo-layout"},[e("aside",{staticClass:"col-md-3 col-sm-12 roulette-pending-sidebar text-left"},[e("div",{staticClass:"panel panel-default roulette-pending-panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("span",[t._v("Menunggu sertai cabutan")]),t._v(" "),e("span",{staticClass:"badge pull-right"},[t._v(t._s(t.pendingVoters.length))])]),t._v(" "),e("ul",{staticClass:"list-group roulette-pending-list"},[t.pendingVoters.length?t._l(t.pendingVoters,(function(n){return e("li",{key:"p-"+n.id,staticClass:"list-group-item roulette-pending-row"},[e("span",{staticClass:"roulette-pending-name"},[t._v(t._s(t.labelForVoter(n)))]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-xs roulette-pending-import",attrs:{type:"button"},on:{click:function(e){return t.importVoter(n.id)}}},[t._v("\n\t\t\t\t\t\t\t\tImport\n\t\t\t\t\t\t\t")])])})):e("li",{staticClass:"list-group-item text-muted roulette-pending-empty"},[t._v("\n\t\t\t\t\t\tTiada dalam senarai menunggu — semua peserta telah diimport atau senarai kosong.\n\t\t\t\t\t")])],2),t._v(" "),t.pendingVoters.length>1?e("div",{staticClass:"panel-footer text-right"},[e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.importAllPending}},[t._v("\n\t\t\t\t\t\tImport semua\n\t\t\t\t\t")])]):t._e()])]),t._v(" "),e("div",{staticClass:"col-md-9 col-sm-12 roulette-main-column"},[t.cabutanCount<2?e("div",{staticClass:"alert alert-info roulette-cabutan-hint"},[t._v("\n\t\t\t\tImport sekurang-kurangnya "),e("strong",[t._v("dua")]),t._v(" peserta daripada senarai menunggu untuk memulakan\n\t\t\t\tcabutan. Senarai "),e("strong",[t._v("Peserta")]),t._v(" pada roda hanya berubah apabila anda menambah peserta di\n\t\t\t\tsini; auto sync mengemas kini senarai menunggu sahaja.\n\t\t\t")]):t._e(),t._v(" "),t.cabutanCount>=2?e("roulette-elimination-wheel",{attrs:{items:t.cabutanItems,"full-width":!0,"persist-key":"roulette_fizikal_demo"},on:{winner:t.onWinner}}):t._e()],1)])])}),[],!1,null,"4b7c98c6",null).exports;document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("logo-admin");t.src=window.location.origin+"/images/login-admin.jpeg?"+(new Date).getTime(),console.log(t.src)}));const fa={data:function(){return{loading:{value:"Teruskan ",isLoading:!1}}},created:function(){if(this.util.isLogin())return"3"===localStorage.getItem("admin_role")?this.$router.push({name:"Kehadiran Calon"}):this.$router.push({name:"Admin Home"});this.util.setTitle("Log Masuk Admin ")},methods:{login:function(){var t=this;if(!this.loading.isLoading){var e=this;this.startLoading(),axios.post(config.API+"admin/login",$("#login_form").serialize()).then((function(n){e.stopLoading(),t.util.showResult(n,"success")&&(localStorage["Access Token"]="Bearer ".concat(n.data.token),n.data.user&&void 0!==n.data.user.role&&null!==n.data.user.role&&localStorage.setItem("admin_role",String(n.data.user.role)),t.util.setAuthorization(),3===Number(n.data.user&&n.data.user.role)?e.$router.push({name:"Kehadiran Calon"}):e.$router.push({name:"Admin Home"}))})).catch((function(n){e.stopLoading(),t.util.showResult(n,"error")}))}},startLoading:function(){this.util.notify("Logging in","loading"),this.loading={value:"Loading...",isLoading:!0}},stopLoading:function(){$.notifyClose(),this.loading={value:"Login",isLoading:!1}}}};var da=n(1930),ha={insert:"head",singleton:!1};u()(da.A,ha);da.A.locals;const pa=(0,h.A)(fa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-5 col-md-offset-3"},[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"text-center"},[e("img",{attrs:{id:"logo-admin",alt:"Logo-admin"}}),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info form-control",class:{disabled:t.loading.isLoading},attrs:{type:"submit"},domProps:{value:t.loading.value}})])])])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"panel-heading"},[t("h4",[t("b",[this._v("ADMIN LOG MASUK")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("E-mail")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata laluan ")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",id:"password",required:""}})])},function(){var t=this._self._c;return t("label",[t("input",{attrs:{type:"checkbox",id:"visibility",onclick:" $(this)[0].checked ? \n\t\t\t\t\t\t\t\t$('#password').attr('type','text'):\n\t\t\t\t\t\t\t\t$('#password').attr('type','password')"}}),this._v(" Show Password\n\t\t\t\t\t")])}],!1,null,null,null).exports;const ma={created:function(){var t=this;this.util.setTitle("Voting System - Administrator");var e=this;this.util.isLogin()?(this.util.setAuthorization(),axios.get(config.API+"admin/information").then((function(t){console.log(t),e.data.user=t.data.user,e.data.election=t.data.election,e.data.partylists=t.data.partylist,e.data.positions=t.data.position,t.data.user&&void 0!==t.data.user.role&&null!==t.data.user.role&&localStorage.setItem("admin_role",String(t.data.user.role)),3===Number(t.data.user.role)&&"Kehadiran Calon"!==e.$route.name&&e.$router.replace({name:"Kehadiran Calon"}),e.loading=!1})).catch((function(n){$.notifyClose(),401==t.util.showResult(n)&&e.logout()}))):this.$router.push({name:"Admin Login"})},methods:{isImpersonating:function(){try{return"1"===localStorage.getItem("is_impersonating")}catch(t){return!1}},leaveImpersonation:function(){var t=this;t.util.notify("Leaving impersonation","loading"),axios.post(config.API+"admin/impersonate/leave").then((function(e){$.notifyClose(),e&&e.data&&"success"===e.data.status?(e.data.token&&(localStorage["Access Token"]="Bearer "+e.data.token,t.util&&t.util.setAuthorization&&t.util.setAuthorization()),localStorage.removeItem("is_impersonating"),e.data.user&&(t.data.user=e.data.user,void 0!==e.data.user.role&&null!==e.data.user.role&&localStorage.setItem("admin_role",String(e.data.user.role))),t.util.notify("Berjaya kembali","success"),t.$router&&t.$router.go(0)):t.util.showResult(e,"error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},logout:function(){localStorage.removeItem("admin_role"),localStorage.removeItem("is_impersonating"),localStorage.clear(),this.$router.push({name:"Admin Login"})}}};var ga=n(5359),va={insert:"head",singleton:!1};u()(ga.A,va);ga.A.locals;const ba=(0,h.A)(ma,(function(){var t=this,e=t._self._c;return e("div",[t.loading?t._e():e("div",[e("nav",{staticClass:"navbar navbar-default navbar-fixed-top floating-header logo-header",attrs:{id:"nav"}},[e("div",{staticClass:"container"},[t._m(0),t._v(" "),e("div",{staticClass:"collapse navbar-collapse",attrs:{id:"myNavbar"}},[e("ul",{staticClass:"nav navbar-nav"},[3!==Number(t.data.user.role)?e("router-link",{attrs:{to:{name:"Admin Home"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Laman\n\t\t\t\t\t\t\t\t\tUtama")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Kemaskini Jawatan"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Jawatan")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Manage Voter"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Anggota Koperasi")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Maklumat Calon"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Calon")])])]):t._e(),t._v(" "),1==t.data.user.role||3===Number(t.data.user.role)?e("router-link",{attrs:{to:{name:"Kehadiran Calon"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Kehadiran")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Pembiayaan"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Pembiayaan Anggota")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Penyata Anggota"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Penyata Anggota")])])]):t._e(),t._v(" "),1==t.data.user.role?e("router-link",{attrs:{to:{name:"Activity Log"},tag:"li"}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Log Aktiviti")])])]):t._e()],1),t._v(" "),e("ul",{staticClass:"nav navbar-right navbar-nav"},[e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"fa fa-user"}),t._v(" "+t._s(t.data.user.name)+" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[3!==Number(t.data.user.role)?e("router-link",{attrs:{to:{name:"Update Account"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[t._v("Kemaskini Akaun")])]):t._e(),t._v(" "),t.isImpersonating()?e("li",{on:{click:function(e){return t.leaveImpersonation()}}},[e("a",[t._v("Kembali Akaun Asal")])]):t._e(),t._v(" "),1==t.data.user.id?e("router-link",{attrs:{to:{name:"Manage Account"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Pengurusan Akaun")])]):t._e(),t._v(" "),e("li",{class:{disabled:t.isImpersonating()},style:t.isImpersonating()?"opacity:0.5; cursor:not-allowed; pointer-events:none;":"",on:{click:function(e){!t.isImpersonating()&&t.logout()}}},[e("a",[t._v("Log Keluar")])])],1)])])])])]),t._v(" "),e("div",{staticClass:"admin-main"},[e("router-view")],1)]),t._v(" "),t.loading?e("div",{staticClass:"container"},[t._m(1)]):t._e()])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"navbar-header logo-section"},[e("button",{staticClass:"navbar-toggle",attrs:{type:"button","data-toggle":"collapse","data-target":"#myNavbar"}},[e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"})]),t._v(" "),e("a",{staticClass:"navbar-brand",attrs:{href:"/admin"}},[e("img",{attrs:{src:"https://i.postimg.cc/ZBDD0ZfQ/Whats-App-Image-2024-03-21-at-1-24-46-PM-2.jpg",border:"0",width:"150",height:"auto",alt:"MyKoPKB Logo"}})])])},function(){var t=this._self._c;return t("div",{staticClass:"jumbotron"},[t("h1",[this._v("Loading "),t("i",{staticClass:"fa fa-refresh fa-spin"})])])}],!1,null,"923015a4",null).exports;const _a={data:function(){return{nominees:[],results:[],partylists:[],positions:[],finalLoading:!1,finalTableHeaders:[{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Nama",key:"name",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Undian",key:"votes",sortable:!0},{title:"Peratus (%)",key:"percentage",sortable:!0}]}},methods:{finalRowsByPosition:function(t){var e=this,n=[];this.results.forEach((function(a){if(a.position_id==t){var r=e.getNominee(a.nominee_id)||{};n.push({no_anggota:r.no_anggota||"",name:r.name||"",unit:r.unit||"",votes:a.votes||0,percentage:e.calculatePercentage(a.votes||0,t)})}})),this.no_votes.forEach((function(e){e.position_id==t&&n.push({no_anggota:e.no_anggota||"",name:e.name||"",unit:e.unit||"",votes:0,percentage:"0.00"})})),n.push({no_anggota:"",name:"Jumlah Undian",unit:"",votes:this.calculateTotalVotes(t),percentage:""});var a=n.pop();return n.sort((function(t,e){return(e.votes||0)-(t.votes||0)})),n.push(a),n},getNominee:function(t){var e=this.nominees;for(var n in e)if(t==e[n].id)return e[n];return{}},getPartylist:function(t){var e=this.partylists;for(var n in e)if(t==e[n].id)return e[n].name;return"No Partylist"},calculatePercentage:function(t,e){var n=this.results.filter((function(t){return t.position_id===e})).reduce((function(t,e){return t+e.votes}),0);return 0===n?"0.00":(t/n*100).toFixed(2)},calculateTotalVotes:function(t){return this.results.filter((function(e){return e.position_id===t})).reduce((function(t,e){return t+e.votes}),0)}},created:function(){this.util.notify("Loading please wait...","loading");var t=this;this.finalLoading=!0,axios.get(config.API+"election/result/"+this.election_id).then((function(e){$.notifyClose(),t.nominees=e.data.nominee,t.results=e.data.result,t.partylists=e.data.partylist,t.positions=e.data.position})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.finalLoading=!1}))},computed:{election_id:function(){return this.$route.params.election_id},no_votes:function(){var t=this.nominees,e=this.results,n=[];for(var a in t){var r=!1;for(var i in e)e[i].nominee_id==t[a].id&&(r=!0);r||n.push(t[a])}return n}}},ya=_a;var wa=(0,h.A)(ya,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},t._l(t.positions,(function(n){return e("div",{key:n.id},[e("h5",[t._v(t._s(n.name))]),t._v(" "),e("admin-data-table",{attrs:{headers:t.finalTableHeaders,items:t.finalRowsByPosition(n.id),loading:t.finalLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada keputusan",exportable:!0,"export-file-name":"keputusan-akhir-"+n.id},scopedSlots:t._u([{key:"item-percentage",fn:function(e){var n=e.item;return[t._v("\n\t\t\t\t\t\t"+t._s(n.percentage)+"\n\t\t\t\t\t")]}}],null,!0)}),t._v(" "),e("hr")],1)})),0)])])}),[],!1,null,null,null);const xa=wa.exports;var ka=n(5793);const Aa={components:{AdminDataTable:ka.default},data:function(){return{loading:!1,searchText:"",items:[],headers:[{title:"Aktiviti",key:"description",sortable:!0},{title:"Subject Type",key:"subject_type",sortable:!0},{title:"Subject ID",key:"subject_id",sortable:!0},{title:"Causer Type",key:"causer_type",sortable:!0},{title:"Causer ID",key:"causer_id",sortable:!0},{title:"Properties",key:"properties",sortable:!1},{title:"Masa",key:"created_at",sortable:!0}]}},created:function(){this.refresh()},methods:{stringify:function(t){if(null==t)return"";try{return JSON.stringify(t,null,2)}catch(e){return String(t)}},refresh:function(){var t=this;t.loading=!0;var e={per_page:200};t.searchText&&(e.description=t.searchText),axios.get(config.API+"admin/activity-log",{params:e}).then((function(e){t.items=e&&e.data&&e.data.data?e.data.data:[]})).catch((function(e){t.items=[],t.util&&"function"==typeof t.util.showResult&&t.util.showResult(e,"error")})).finally((function(){t.loading=!1}))},clearSearch:function(){this.searchText="",this.refresh()}}};var Sa=(0,h.A)(Aa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"clearfix"},[e("h4",{staticClass:"pull-left",staticStyle:{"margin-top":"0"}},[t._v("Activity Log")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm pull-right",attrs:{disabled:t.loading},on:{click:t.refresh}},[e("i",{staticClass:"fa fa-refresh",class:{"fa-spin":t.loading}}),t._v(" Refresh\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"row",staticStyle:{"margin-top":"12px","margin-bottom":"12px"}},[e("div",{staticClass:"col-sm-8 col-md-6"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchText,expression:"searchText",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Cari aktiviti (description)…"},domProps:{value:t.searchText},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.refresh.apply(null,arguments)},input:function(e){e.target.composing||(t.searchText=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:t.refresh}},[t._v("\n\t\t\t\t\t\t\tCari\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:t.loading||!t.searchText},on:{click:t.clearSearch}},[t._v("\n\t\t\t\t\t\t\tClear\n\t\t\t\t\t\t")])])])])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.headers,items:t.items,loading:t.loading,"items-per-page":25,"show-pagination":!0,"empty-text":"Tiada activity log",exportable:!0,"export-file-name":"activity-log"},scopedSlots:t._u([{key:"item-id",fn:function(n){var a=n.value;return[e("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(a))])]}},{key:"item-created_at",fn:function(n){var a=n.value;return[e("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(a))])]}},{key:"item-properties",fn:function(n){var a=n.value;return[e("pre",{staticStyle:{margin:"0","white-space":"pre-wrap","word-break":"break-word",background:"transparent",border:"0",padding:"0"}},[t._v(t._s(t.stringify(a)))])]}}])})],1)])}),[],!1,null,null,null);const Ca=Sa.exports;const Ea={created:function(){this.util.setTitle("MyKoPKB - Maklumat Undian")}};const Ta=(0,h.A)(Ea,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Maklumat Undian")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Na={data:function(){return{start_date:null,electionLoading:!1,electionTableHeaders:[{title:"Nama Undian",key:"name",sortable:!0},{title:"Undian Mula",key:"start",sortable:!0},{title:"Undian Tamat",key:"end",sortable:!0},{title:"Papar",key:"actions",sortable:!1}]}},created:function(){this.refreshElection();var t=this;setInterval((function(){t.start_date=moment(t.data.election.start).fromNow()}),1e3)},methods:{stop:function(){var t=this;this.util.notify("Stopping Election","loading"),axios.post(config.API+"election/stop",$("#stop_form").serialize()).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&(t.refreshElection(),t.data.election=e.data.election,t.data.positions=[],t.data.partylists=[],t.data.voters=[],t.data.nominees=[],t.data.results=[])})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},start:function(){var t=this;console.log("this"),this.util.notify("Loading please wait","loading"),axios.post(config.API+"election/start",$("#start_form").serialize()).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&(t.refreshElection(),t.data.election=e.data.election)})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshElection:function(){this.util.notify("Refreshing Election","loading");var t=this;this.electionLoading=!0,axios.get(config.API+"election").then((function(e){$.notifyClose(),t.data.elections=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.electionLoading=!1}))},getPDFurl:function(t){return"/result/".concat(t)}}};var Pa=n(2953),La={insert:"head",singleton:!1};u()(Pa.A,La);Pa.A.locals;const Oa=(0,h.A)(Na,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Undian Terkini")]),t._v(" "),e("div",{staticClass:"form-group"},[1==t.data.election.status&&1==t.data.user.role?e("button",{staticClass:"btn btn-success",on:{click:function(e){return t.util.showModal("#start-election-modal")}}},[t._v("Mula Undian")]):t._e(),t._v(" "),2==t.data.election.status?e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"Current Result"}}},[t._v("\n\t\t\t\tPapar Keputusan\n\t\t\t")]):t._e(),t._v(" "),2==t.data.election.status?e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.util.showModal("#stop-election-modal")}}},[t._v("Tamat Undian")]):t._e(),t._v(" "),2==t.data.election.status?e("label",[t._v("Undian bermula "+t._s(t.start_date))]):t._e()],1),t._v(" "),e("admin-data-table",{attrs:{headers:t.electionTableHeaders,items:t.data.elections,loading:t.electionLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada undian",exportable:!0,"export-file-name":"undian"},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"Election Result",params:{election_id:a.id}}}},[t._v("\n\t\t\t\t\tKeputusan Undian\n\t\t\t\t")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getPDFurl(a.id)}},[t._v("Muat Turun PDF")])]}}])}),t._v(" "),e("form",{attrs:{id:"start_form"},on:{submit:function(e){return e.preventDefault(),t.start.apply(null,arguments)}}},[t._m(0)]),t._v(" "),e("form",{attrs:{id:"stop_form"},on:{submit:function(e){return e.preventDefault(),t.stop.apply(null,arguments)}}},[e("div",{staticClass:"modal fade",attrs:{id:"stop-election-modal",tabindex:"-1",role:"dialog","aria-labelledby":"stop-election-modal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama Undian")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",autocomplete:"on",placeholder:"(Optional)"},domProps:{value:t.data.election.name}})]),t._v(" "),t._m(2)]),t._v(" "),t._m(3)])])])])],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{id:"start-election-modal",tabindex:"-1",role:"dialog","aria-labelledby":"start-election-modal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Mulakan Undian")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama Undian")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",autocomplete:"on",placeholder:"(Optional)"}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",required:""}})])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Start"}}),t._v(" "),e("input",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal",value:"Cancel"}})])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Tamat Undian")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",autocomplete:"on",required:""}})])},function(){var t=this._self._c;return t("div",{staticClass:"modal-footer"},[t("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Stop Election"}}),this._v(" "),t("input",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal",value:"Cancel"}})])}],!1,null,null,null).exports;const Ra={created:function(){this.refreshNominees(),this.$nextTick((function(){this.initCharts()}))},watch:{position_id:function(){var t=this;this.$nextTick((function(){t.initCharts()}))}},methods:{setPosition:function(t){var e=t&&"0"!==String(t)?String(t):"0";if(String(this.position_id)!==e){var n=Object.assign({},this.$route.query);t&&"0"!==String(t)?n.position_id=String(t):delete n.position_id,this.$router.replace({query:n}).catch((function(){}))}},refreshNominees:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"nominee").then((function(e){$.notifyClose(),t.data.nominees=e.data,t.refreshResults()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},refreshResults:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"election/results").then((function(e){$.notifyClose(),t.data.results=e.data,t.data.last_update=new Date,t.$nextTick((function(){t.initCharts()}))})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},initCharts:function(){if($("#top-chart").length&&$("#top-chart").empty(),$("#votes-by-position-chart").length&&$("#votes-by-position-chart").empty(),"0"!==String(this.position_id));else{if($("#top-chart").length){var t=this.topNominees.map((function(t,e){return[e,t.label]})),e=[{label:"Undi",data:this.topNominees.map((function(t,e){return[e,t.votes]})),bars:{show:!0,barWidth:.6,align:"center",fill:.85,lineWidth:0}}];$.plot($("#top-chart"),e,{xaxis:{ticks:t,rotateTicks:45},yaxis:{min:0,tickDecimals:0},grid:{hoverable:!0,borderColor:"#e5e7eb"}})}if($("#votes-by-position-chart").length){var n=this.positionTotals,a=n.map((function(t,e){return[e,t.label]})),r=[{label:"Undi",data:n.map((function(t,e){return[e,t.votes]})),bars:{show:!0,barWidth:.6,align:"center",fill:.55,lineWidth:0}}];$.plot($("#votes-by-position-chart"),r,{xaxis:{ticks:a,rotateTicks:45},yaxis:{min:0,tickDecimals:0},grid:{hoverable:!0,borderColor:"#e5e7eb"}})}}},getPosition:function(t){var e=this.data.positions;for(var n in e)if(t==e[n].id)return e[n].name;return""},getNominee:function(t){var e=this.data.nominees;for(var n in e)if(t==e[n].id)return e[n].name;return""},getVotes:function(t){var e=this.data.results;for(var n in e)if(e[n].nominee_id==t)return e[n].votes;return 0}},computed:{last_update:function(){var t=this.data.last_update;return t?t.toDateString()+" "+t.toLocaleTimeString():"-"},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:0},datas:function(){var t=[],e=this.data.nominees;for(var n in e)if(e[n].position_id==this.position_id){var a=[];a.label=e[n].name,a.data=[[1,this.getVotes(e[n].id)]],t.push(a)}return t},positionTotals:function(){for(var t=this.data.results||[],e={},n=0;n<t.length;n++){var a=t[n].position_id,r=Number(t[n].votes||0);e[a]=(e[a]||0)+r}var i=(this.data.positions||[]).map((function(t){return{position_id:t.id,label:t.name,votes:e[t.id]||0}}));return i.sort((function(t,e){return(e.votes||0)-(t.votes||0)})),i},topNominees:function(){for(var t=this.data.results||[],e={},n=0;n<t.length;n++){var a=t[n].nominee_id,r=Number(t[n].votes||0);e[a]=(e[a]||0)+r}for(var i=this.data.nominees||[],o={},s=0;s<i.length;s++)o[i[s].id]=i[s].name;var l=Object.keys(e).map((function(t){return{id:Number(t),label:o[t]||"Nominee #"+t,votes:e[t]}}));return l.sort((function(t,e){return(e.votes||0)-(t.votes||0)})),l.slice(0,8)},topNomineeLabel:function(){return this.topNominees&&this.topNominees[0]?this.topNominees[0].label:"-"},topNomineeVotes:function(){return this.topNominees&&this.topNominees[0]&&this.topNominees[0].votes||0},leadersByPosition:function(){var t=this.data.positions||[],e=this.data.nominees||[],n=this.data.results||[],a={};t.forEach((function(t){a[t.id]=t.name}));var r={};e.forEach((function(t){r[t.id]=t.name}));for(var i={},o=0;o<n.length;o++){var s=n[o],l=s.position_id;i[l]||(i[l]=[]),i[l].push({nominee_id:s.nominee_id,votes:Number(s.votes||0)})}for(var c=[],u=0;u<t.length;u++){var f=t[u].id,d=(i[f]||[]).slice().sort((function(t,e){return(e.votes||0)-(t.votes||0)})),h=d[0]||{nominee_id:null,votes:0},p=d[1]||{nominee_id:null,votes:0},m=d.reduce((function(t,e){return t+(e.votes||0)}),0),g=m>0?Math.round(h.votes/m*100):0;c.push({position_id:f,position_name:a[f]||"Jawatan #"+f,winner_id:h.nominee_id,winner_name:r[h.nominee_id]||"-",winner_votes:h.votes||0,runnerup_id:p.nominee_id,runnerup_name:r[p.nominee_id]||"-",runnerup_votes:p.votes||0,delta:Math.max(0,(h.votes||0)-(p.votes||0)),pct:g})}return c.sort((function(t,e){return(e.winner_votes||0)-(t.winner_votes||0)})),c},rankedNominees:function(){for(var t=this.data.nominees||[],e=[],n=0;n<t.length;n++)if(String(t[n].position_id)===String(this.position_id)){var a=this.getVotes(t[n].id);e.push({id:t[n].id,name:t[n].name,votes:a})}e.sort((function(t,e){return(e.votes||0)-(t.votes||0)}));var r=e.reduce((function(t,e){return t+(e.votes||0)}),0);return e.map((function(t){var e=r>0?Math.round(t.votes/r*100):0;return Object.assign({},t,{pct:e})}))},totalVotes:function(){return"0"===String(this.position_id)?(this.data.results||[]).reduce((function(t,e){return t+Number(e.votes||0)}),0):this.rankedNominees.reduce((function(t,e){return t+(e.votes||0)}),0)}}},Ia=Ra;var Ma=n(3673),Fa={insert:"head",singleton:!1};u()(Ma.A,Fa);Ma.A.locals;var Da=(0,h.A)(Ia,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"result-page"},[e("div",{staticClass:"result-header"},[e("div",[e("div",{staticClass:"result-kicker"},[t._v("Keputusan Undian")]),t._v(" "),e("h4",{staticClass:"result-title"},[t._v(t._s("0"===String(t.position_id)?"Dashboard Keputusan":t.getPosition(t.position_id)||"Keputusan"))]),t._v(" "),e("div",{staticClass:"result-subtitle"},[t._v("Kemaskini terakhir: "),e("b",[t._v(t._s(t.last_update))])])]),t._v(" "),e("div",{staticClass:"result-actions"},[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.refreshNominees()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Keputusan\n\t\t\t")])])]),t._v(" "),"0"===String(t.position_id)?e("div",{staticClass:"result-stats"},[e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Jumlah Undi")]),t._v(" "),e("div",{staticClass:"result-stat__value"},[t._v(t._s(t.totalVotes))])]),t._v(" "),e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Bil. Jawatan")]),t._v(" "),e("div",{staticClass:"result-stat__value"},[t._v(t._s((t.data.positions||[]).length))])]),t._v(" "),e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Calon Tertinggi")]),t._v(" "),e("div",{staticClass:"result-stat__value result-stat__value--text"},[t._v(t._s(t.topNomineeLabel))]),t._v(" "),e("div",{staticClass:"result-stat__hint"},[t._v(t._s(t.topNomineeVotes)+" undi")])])]):t._e(),t._v(" "),e("div",{staticClass:"result-filters"},[e("span",{staticClass:"result-filters__label"},[t._v("Jawatan:")]),t._v(" "),e("button",{staticClass:"result-chip",class:{"is-active":"0"===String(t.position_id)},attrs:{type:"button"},on:{click:function(e){return t.setPosition(0)}}},[t._v("\n\t\t\tSemua\n\t\t")]),t._v(" "),t._l(t.data.positions,(function(n){return e("button",{key:n.id,staticClass:"result-chip",class:{"is-active":String(n.id)===String(t.position_id)},attrs:{type:"button"},on:{click:function(e){return t.setPosition(n.id)}}},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t")])}))],2),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-7"},[e("div",{staticClass:"panel panel-default result-card"},[e("div",{staticClass:"panel-heading result-card__heading"},[e("div",{staticClass:"result-card__title"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Pemimpin Mengikut Jawatan":"Kedudukan Calon")+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"result-card__meta"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Siapa mendahului (dengan beza undi)":"Mengikut jawatan dipilih")+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"panel-body result-card__body"},["0"===String(t.position_id)?[t.leadersByPosition.length?e("div",{staticClass:"result-leaders"},t._l(t.leadersByPosition,(function(n){return e("div",{key:n.position_id,staticClass:"result-leader"},[e("div",{staticClass:"result-leader__top"},[e("div",{staticClass:"result-leader__position"},[t._v(t._s(n.position_name))]),t._v(" "),e("div",{staticClass:"result-leader__meta"},[e("span",[e("b",[t._v(t._s(n.winner_votes))]),t._v(" undi")]),t._v(" "),e("span",{staticClass:"result-leader__delta"},[t._v("(+"+t._s(n.delta)+" beza)")])])]),t._v(" "),e("div",{staticClass:"result-leader__name"},[t._v(t._s(n.winner_name))]),t._v(" "),e("div",{staticClass:"result-leader__bar"},[e("div",{staticClass:"result-leader__bar-fill",style:{width:n.pct+"%"}})])])})),0):e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tTiada data untuk dipaparkan.\n\t\t\t\t\t\t")])]:[t.rankedNominees.length?e("div",{staticClass:"result-rank"},t._l(t.rankedNominees,(function(n){return e("div",{key:n.id,staticClass:"result-rank__row"},[e("div",{staticClass:"result-rank__top"},[e("div",{staticClass:"result-rank__name"},[t._v(t._s(n.name))]),t._v(" "),e("div",{staticClass:"result-rank__votes"},[e("b",[t._v(t._s(n.votes))]),t._v(" undi\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"result-rank__bar"},[e("div",{staticClass:"result-rank__bar-fill",style:{width:n.pct+"%"}})]),t._v(" "),e("div",{staticClass:"result-rank__meta"},[t._v(t._s(n.pct)+"%")])])})),0):e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tTiada calon untuk jawatan ini.\n\t\t\t\t\t\t")])]],2)])]),t._v(" "),e("div",{staticClass:"col-md-5"},[e("div",{staticClass:"panel panel-default result-card"},[e("div",{staticClass:"panel-heading result-card__heading"},[e("div",{staticClass:"result-card__title"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Analitik Ringkas":"Ringkasan Jawatan")+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"result-card__meta"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Top calon & jumlah undi mengikut jawatan":"Jumlah undi:"+t.totalVotes)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"panel-body result-card__body"},["0"===String(t.position_id)?[e("div",{staticClass:"result-mini-title"},[t._v("Top Calon (Overall)")]),t._v(" "),e("div",{staticClass:"result-top-chart",attrs:{id:"top-chart"}}),t._v(" "),t.topNominees.length?t._e():e("div",{staticClass:"result-empty"},[t._v("Tiada data untuk dipaparkan.")]),t._v(" "),e("div",{staticClass:"result-mini-title",staticStyle:{"margin-top":"14px"}},[t._v("Jumlah Undi Mengikut Jawatan")]),t._v(" "),e("div",{staticClass:"result-top-chart",attrs:{id:"votes-by-position-chart"}})]:[e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tPilih “Semua” untuk melihat analitik keseluruhan. Untuk jawatan ini, rujuk senarai di\n\t\t\t\t\t\t\tkiri.\n\t\t\t\t\t\t")])]],2)])])])])}),[],!1,null,"e26b1cc2",null);const ja=Da.exports;const Ba={created:function(){this.util.setTitle("MyKoPKB-Kemaskini Jawatan")}};const Ua=(0,h.A)(Ba,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Kemaskini Jawatan")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const za={data:function(){return{id:0,positionLoading:!1,positionTableHeaders:[{title:"Nama",key:"name",sortable:!0},{title:"Tindakan",key:"actions",sortable:!1}]}},created:function(){this.$route.query.refresh&&(this.refreshPosition(),this.$router.replace({name:"Kemaskini Jawatan"}))},methods:{refreshPosition:function(){var t=this;this.positionLoading=!0,this.util.notify("Refreshing Position","loading"),axios.get(config.API+"position").then((function(e){$.notifyClose(),t.data.positions=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.positionLoading=!1}))},edit:function(t){this.data.position=t,this.$router.push({name:"Edit Position",params:{id:this.data.position.id}})},deletePosition:function(){var t=this;this.util.notify("Deleting position","loading"),this.util.hideModal("#delete-position-modal"),axios.delete(config.API+"position/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshPosition()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},Ha=za;const qa=(0,h.A)(Ha,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Jawatan"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Jawatan\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshPosition()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Jawatan\n\t\t\t\t")])],1),t._v(" "),e("admin-data-table",{attrs:{headers:t.positionTableHeaders,items:t.data.positions,loading:t.positionLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada jawatan",exportable:!0,"export-file-name":"jawatan"},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-info",attrs:{type:"button"},on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Edit\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.util.showModal("#delete-position-modal"),t.id=a.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t\t")])]}}])})],1)]),t._v(" "),e("modal",{attrs:{id:"delete-position-modal"}},[e("modal-header",[t._v("Padam Jawatan")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete Position?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deletePosition()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-position-modal")}}},[t._v("Cancel")])])],1)],1)}),[],!1,null,null,null).exports;const Wa={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Position","loading"),axios.post(config.API+"position",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&t.$router.push({name:"Kemaskini Jawatan",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const Ka=(0,h.A)(Wa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Tambah Jawatan")]),t._v(" "),e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[t._v("Hantar")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Kemaskini Jawatan"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])}],!1,null,null,null).exports;const Va={data:function(){return{loading:!1}},created:function(){this.data.position.id||this.$router.push({name:"Kemaskini Jawatan"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating position","loading"),axios.put(config.API+"position/"+this.data.position.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Kemaskini Jawatan",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const $a=(0,h.A)(Va,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Edit Jawatan")]),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.position.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Kemaskini Jawatan"}}},[t._v("Kembali")])],1)])])])}),[],!1,null,null,null).exports;const Ga={created:function(){this.util.setTitle("MyKoPKB - Manage Partylist")}};const Ya=(0,h.A)(Ga,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Manage Partylist")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Xa={data:function(){return{id:0}},created:function(){this.$route.query.refresh&&(this.refreshPartylist(),this.$router.replace({name:"Manage Partylist"}))},methods:{refreshPartylist:function(){var t=this;this.util.notify("Refreshing Partylist","loading"),axios.get(config.API+"partylist").then((function(e){console.log(e),$.notifyClose(),t.data.partylists=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},edit:function(t){this.data.partylist=this.data.partylists[t],this.$router.push({name:"Edit Partylist",params:{id:this.data.partylist.id}})},deletePartylist:function(){var t=this;this.util.notify("Deleting partylist","loading"),this.util.hideModal("#delete-partylist-modal"),axios.delete(config.API+"partylist/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshPartylist()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},Ja=Xa;var Za=(0,h.A)(Ja,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Add Partylist"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Add Partylist\n\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshPartylist()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Refresh Partylist\n\t\t\t")])],1),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover",attrs:{id:"partylist_table"}},[t._m(0),t._v(" "),e("tbody",[t._l(t.data.partylists,(function(n,a){return e("tr",[e("td",[t._v(t._s(n.id))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Edit\n\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",on:{click:function(e){t.util.showModal("#delete-partylist-modal"),t.id=n.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Delete\n\t\t\t\t\t\t\t")])])])})),t._v(" "),t.data.partylists.length<1?e("tr",[e("td",{attrs:{colspan:"3"}},[t._v("No Partylist")])]):t._e()],2)])])])]),t._v(" "),e("modal",{attrs:{id:"delete-partylist-modal"}},[e("modal-header",[t._v("Delete Partylist")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete Partylist?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deletePartylist()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-partylist-modal")}}},[t._v("Cancel")])])],1)],1)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("ID")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Action")])])])}],!1,null,null,null);const Qa=Za.exports;const tr={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Partylist","loading"),axios.post(config.API+"partylist",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&t.$router.push({name:"Manage Partylist",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const er=(0,h.A)(tr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Add Partylist")]),t._v(" "),e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[t._v("Submit")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Partylist"}}},[t._v("Back")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])}],!1,null,null,null).exports;const nr={data:function(){return{loading:!1}},created:function(){this.data.partylist.id||this.$router.push({name:"Manage Partylist"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating partylist","loading"),axios.put(config.API+"partylist/"+this.data.partylist.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Partylist",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const ar=(0,h.A)(nr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Edit Partylist")]),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.partylist.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Partylist"}}},[t._v("Back")])],1)])])])}),[],!1,null,null,null).exports;const rr={computed:{showHeader:function(){return"Tambah Pengundi"!==this.$route.name},headerTitle:function(){return"Kehadiran Calon"===this.$route.name?"Kehadiran":"Maklumat Pengundi"},isWideVoterRoute:function(){return"Tambah Pengundi"===this.$route.name||"Kehadiran Calon"===this.$route.name},wrapperClass:function(){return this.isWideVoterRoute?"container-fluid voter-admin-wrap voter-admin-wrap--boxed voter-admin-wrap--wide":"container col-md-8 col-md-offset-2 voter-admin-wrap voter-admin-wrap--boxed"}},created:function(){this.util.setTitle("MyKoPKB - Maklumat Pengundi")}};var ir=n(3641),or={insert:"head",singleton:!1};u()(ir.A,or);ir.A.locals;const sr=(0,h.A)(rr,(function(){var t=this,e=t._self._c;return e("div",{class:t.wrapperClass},[t.showHeader?e("h4",[t._v(t._s(t.headerTitle))]):t._e(),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const lr={data:function(){return{id:0,voterLoading:!1,searchName:"",searchNoAnggota:"",searchNoKp:"",voterTableHeaders:[{title:"Nama Anggota",key:"name",sortable:!0},{title:"No. Kad Pengenalan",key:"no_kp",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Saham",key:"saham",sortable:!0},{title:"Yuran",key:"yuran",sortable:!0},{title:"Tindakan",key:"actions",sortable:!1}]}},computed:{hasAnySearch:function(){return Boolean(this.searchName&&this.searchName.length||this.searchNoAnggota&&this.searchNoAnggota.length||this.searchNoKp&&this.searchNoKp.length)},voterListItems:function(){var t=this.data.voters;return t&&Array.isArray(t.data)?t.data:[]},pages:function(){var t=[],e=this.data.voters&&this.data.voters.last_page;if(e)for(var n=1;n<=e;n++)t.push({page:n});return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1}},created:function(){this.refreshVoter()},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},methods:{search:function(){},applySearch:function(){var t=Object.assign({},this.$route.query);t.page=1,this.$router.replace({query:t}),this.refreshVoter()},clearSearch:function(){this.searchName="",this.searchNoAnggota="",this.searchNoKp="",this.applySearch()},refreshVoter:function(){var t=this;this.voterLoading=!0,this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter",{params:{page:this.current_page,name:this.searchName||void 0,no_anggota:this.searchNoAnggota||void 0,no_kp:this.searchNoKp||void 0}}).then((function(e){$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.voterLoading=!1}))},edit:function(t){this.data.voter=t,this.$router.push({name:"Edit Voter",params:{id:this.data.voter.id}})},deleteVoter:function(){var t=this;this.util.notify("Deleting voter","loading"),this.util.hideModal("#delete-voter-modal"),axios.delete(config.API+"voter/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshVoter()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},cr=lr;var ur=n(6912),fr={insert:"head",singleton:!1};u()(ur.A,fr);ur.A.locals;const dr=(0,h.A)(cr,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Pengundi"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Pengundi\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshVoter()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Pengundi\n\t\t\t\t")]),t._v(" "),e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"Penyata Anggota"}}},[e("i",{staticClass:"fa fa-list"}),t._v(" Database Anggota\n\t\t\t\t")])],1),t._v(" "),e("div",{staticClass:"kehadiran-search"},[e("div",{staticClass:"kehadiran-search__label"},[t._v("Carian pantas:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchName,expression:"searchName",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input kehadiran-search__input--name",attrs:{placeholder:"Nama Anggota"},domProps:{value:t.searchName},on:{input:function(e){e.target.composing||(t.searchName=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoAnggota,expression:"searchNoAnggota",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Anggota"},domProps:{value:t.searchNoAnggota},on:{input:function(e){e.target.composing||(t.searchNoAnggota=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoKp,expression:"searchNoKp",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Kad Pengenalan"},domProps:{value:t.searchNoKp},on:{input:function(e){e.target.composing||(t.searchNoKp=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.applySearch()}}},[t._v("Cari")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.hasAnySearch},on:{click:function(e){return t.clearSearch()}}},[t._v("Reset")])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.voterTableHeaders,items:t.voterListItems,loading:t.voterLoading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada pengundi",exportable:!0},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-info",attrs:{type:"button"},on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Kemaskini\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.util.showModal("#delete-voter-modal"),t.id=a.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t\t")])]}}])}),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.page,class:{active:Number(t.current_page)===n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()],1)]),t._v(" "),e("modal",{attrs:{id:"delete-voter-modal"}},[e("modal-header",[t._v("Delete Voter")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete voter?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteVoter()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-voter-modal")}}},[t._v("Cancel")])])],1)],1)}),[],!1,null,null,null).exports;const hr={data:function(){return{loading:!1,catalog:[],catalogLoading:!1,catalogSaving:!1,catalogError:"",catalogFilter:"",selectedFilter:"",selectedNoKp:[]}},computed:{catalogByKp:function(){var t,e={};for(t=0;t<this.catalog.length;t++)e[this.catalog[t].no_kp]=this.catalog[t];return e},selectedRows:function(){var t,e=this.catalogByKp,n=[];for(t=0;t<this.selectedNoKp.length;t++){var a=this.selectedNoKp[t];e[a]&&n.push(e[a])}return n},filteredCatalog:function(){var t=(this.catalogFilter||"").toLowerCase();return t?this.catalog.filter((function(e){return e.name&&-1!==String(e.name).toLowerCase().indexOf(t)||e.no_kp&&-1!==String(e.no_kp).toLowerCase().indexOf(t)||e.no_anggota&&-1!==String(e.no_anggota).toLowerCase().indexOf(t)||e.unit&&-1!==String(e.unit).toLowerCase().indexOf(t)})):this.catalog},filteredSelectedRows:function(){var t=this.selectedRows,e=(this.selectedFilter||"").toLowerCase();return e?t.filter((function(t){return t.name&&-1!==String(t.name).toLowerCase().indexOf(e)||t.no_kp&&-1!==String(t.no_kp).toLowerCase().indexOf(e)||t.no_anggota&&-1!==String(t.no_anggota).toLowerCase().indexOf(e)||t.unit&&-1!==String(t.unit).toLowerCase().indexOf(e)})):t},headerChecked:function(){var t=this.filteredCatalog;if(!t.length)return!1;var e=this;return t.every((function(t){return e.isSelected(t.no_kp)}))}},created:function(){this.loadMemberCatalog()},methods:{openManualModal:function(){this.util.showModal("#add-voter-manual-modal")},closeManualModal:function(){this.util.hideModal("#add-voter-manual-modal")},resetManualForm:function(){var t=document.getElementById("add-form");t&&t.reset()},loadMemberCatalog:function(){var t=this;this.catalogLoading=!0,this.catalogError="",axios.get(config.API+"voter/member-catalog").then((function(e){t.catalog=e.data&&e.data.catalog?e.data.catalog:[],t.selectedNoKp=t.catalog.filter((function(t){return t.in_current_election})).map((function(t){return t.no_kp}))})).catch((function(e){t.catalogError=e.response&&e.response.data&&e.response.data.message?e.response.data.message:"Gagal memuatkan senarai.",t.util.showResult(e)})).finally((function(){t.catalogLoading=!1}))},isSelected:function(t){return-1!==this.selectedNoKp.indexOf(t)},toggleRow:function(t,e){var n=this.selectedNoKp.slice(),a=n.indexOf(t);e.target.checked?-1===a&&n.push(t):-1!==a&&n.splice(a,1),this.selectedNoKp=n},toggleHeader:function(t){var e,n=t.target.checked,a=this.filteredCatalog.map((function(t){return t.no_kp})),r={};for(e=0;e<this.selectedNoKp.length;e++)r[this.selectedNoKp[e]]=!0;if(n)for(e=0;e<a.length;e++)r[a[e]]=!0;else for(e=0;e<a.length;e++)delete r[a[e]];this.selectedNoKp=Object.keys(r)},selectAllFiltered:function(){var t,e={};for(t=0;t<this.selectedNoKp.length;t++)e[this.selectedNoKp[t]]=!0;var n=this.filteredCatalog;for(t=0;t<n.length;t++)e[n[t].no_kp]=!0;this.selectedNoKp=Object.keys(e)},clearAllFiltered:function(){var t,e={},n=this.filteredCatalog;for(t=0;t<n.length;t++)e[n[t].no_kp]=!0;this.selectedNoKp=this.selectedNoKp.filter((function(t){return!e[t]}))},removeSelected:function(t){this.selectedNoKp=this.selectedNoKp.filter((function(e){return e!==t}))},clearAllSelected:function(){this.selectedNoKp=[]},saveApplicable:function(){if(!this.catalogSaving){var t=this;this.catalogSaving=!0,this.util.notify("Menyimpan…","loading"),axios.post(config.API+"voter/sync-applicable",{selected_no_kp:this.selectedNoKp}).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Voter"})})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.catalogSaving=!1}))}},add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Voter","loading"),axios.post(config.API+"voter",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(t.closeManualModal(),t.resetManualForm(),t.$router.push({name:"Manage Voter"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}},pr=hr;var mr=n(8794),gr={insert:"head",singleton:!1};u()(mr.A,gr);mr.A.locals;const vr=(0,h.A)(pr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default voter-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"voter-add-page__header clearfix"},[e("h4",{staticClass:"pull-left"},[t._v("Tambah Pengundi")]),t._v(" "),e("div",{staticClass:"pull-right voter-add-page__header-actions"},[e("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:t.openManualModal}},[e("i",{staticClass:"fa fa-user-plus"}),t._v(" Daftar pengundi baru\n\t\t\t\t")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Voter"}}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t\t")])],1)]),t._v(" "),e("p",{staticClass:"text-muted small voter-add-page__intro"},[t._v("\n\t\t\tKiri: keseluruhan pengundi (ikut No. KP, data terkini). Kanan: yang ditanda layak untuk pilihan raya\n\t\t\tsemasa.\n\t\t\tYang tidak berada di senarai kanan akan dipadam daripada pilihan raya ini apabila anda simpan.\n\t\t")]),t._v(" "),e("div",{staticClass:"voter-add-split row"},[e("div",{staticClass:"col-md-6 voter-add-split__col"},[e("div",{staticClass:"panel panel-default voter-add-split__panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("strong",{staticClass:"pull-left"},[t._v("Semua pengundi")]),t._v(" "),t.catalogLoading?e("span",{staticClass:"text-muted small pull-left voter-add-heading__loading"},[e("i",{staticClass:"fa fa-spinner fa-spin"})]):t._e(),t._v(" "),e("span",{staticClass:"badge pull-right",attrs:{title:"Jumlah pengundi unik (No. KP)"}},[t._v(t._s(t.catalog.length))]),t._v(" "),t.catalogFilter?e("span",{staticClass:"text-muted small pull-right voter-add-heading__filter-hint"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.filteredCatalog.length)+" dipaparkan ·\n\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-inline voter-batch-toolbar"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.catalogFilter,expression:"catalogFilter",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapis nama / No. KP / No. anggota…"},domProps:{value:t.catalogFilter},on:{input:function(e){e.target.composing||(t.catalogFilter=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.selectAllFiltered}},[t._v("Tanda\n\t\t\t\t\t\t\t\tsemua (ditapis)")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.clearAllFiltered}},[t._v("Nyahtanda\n\t\t\t\t\t\t\t\t(ditapis)")])]),t._v(" "),t.catalogError?e("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.catalogError))]):t._e(),t._v(" "),e("div",{staticClass:"table-responsive voter-add-table-wrap"},[!t.catalogLoading||t.catalog.length?e("table",{staticClass:"table table-bordered table-condensed table-striped"},[e("thead",[e("tr",[e("th",{staticStyle:{width:"44px"}},[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.headerChecked},on:{change:function(e){return t.toggleHeader(e)}}})]),t._v(" "),e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. KP")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",{staticStyle:{width:"88px"}},[t._v("PR semasa")])])]),t._v(" "),e("tbody",t._l(t.filteredCatalog,(function(n){return e("tr",{key:n.no_kp},[e("td",[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.isSelected(n.no_kp)},on:{change:function(e){return t.toggleRow(n.no_kp,e)}}})]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[n.in_current_election?e("span",{staticClass:"label label-success"},[t._v("Ya")]):e("span",{staticClass:"label label-default"},[t._v("—")])])])})),0)]):t._e()]),t._v(" "),t.catalogLoading||t.catalog.length?t._e():e("p",{staticClass:"text-muted"},[t._v("Tiada rekod pengundi dalam\n\t\t\t\t\t\t\tpangkalan data.")])])])]),t._v(" "),e("div",{staticClass:"col-md-6 voter-add-split__col"},[e("div",{staticClass:"panel panel-info voter-add-split__panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("strong",{staticClass:"pull-left"},[t._v("Layak mengundi (pilihan raya semasa)")]),t._v(" "),e("span",{staticClass:"badge pull-right",attrs:{title:"Jumlah ditanda layak"}},[t._v(t._s(t.selectedNoKp.length))]),t._v(" "),t.selectedFilter?e("span",{staticClass:"text-muted small pull-right voter-add-heading__filter-hint"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.filteredSelectedRows.length)+" dipaparkan ·\n\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-inline voter-batch-toolbar voter-batch-toolbar--right"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.selectedFilter,expression:"selectedFilter",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapis senarai dipilih…"},domProps:{value:t.selectedFilter},on:{input:function(e){e.target.composing||(t.selectedFilter=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button",disabled:!t.selectedNoKp.length},on:{click:t.clearAllSelected}},[t._v("\n\t\t\t\t\t\t\t\tKosongkan semua\n\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.catalogSaving||t.catalogLoading},on:{click:function(e){return t.saveApplicable()}}},[t._v("\n\t\t\t\t\t\t\t\tSimpan pilihan\n\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"table-responsive voter-add-table-wrap voter-add-table-wrap--selected"},[t.filteredSelectedRows.length?e("table",{staticClass:"table table-bordered table-condensed table-striped"},[t._m(0),t._v(" "),e("tbody",t._l(t.filteredSelectedRows,(function(n){return e("tr",{key:n.no_kp},[e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button",title:"Buang"},on:{click:function(e){return t.removeSelected(n.no_kp)}}},[e("i",{staticClass:"fa fa-times"})])])])})),0)]):e("p",{staticClass:"text-muted voter-add-empty-selected"},[t._v("Tiada pengundi ditanda. Tandakan\n\t\t\t\t\t\t\t\tpada jadual kiri.")])])])])])]),t._v(" "),e("modal",{attrs:{id:"add-voter-manual-modal"}},[e("modal-header",[t._v("Daftar pengundi baru")]),t._v(" "),e("modal-body",[e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-name"}},[t._v("Nama Anggota")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-name",type:"text",name:"name",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-no_kp",type:"text",name:"no_kp",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-no_anggota"}},[t._v("No. Anggota")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-no_anggota",type:"text",name:"no_anggota",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-unit",type:"text",name:"unit",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-alamat"}},[t._v("Alamat")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-alamat",type:"text",name:"alamat",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-status_anggota"}},[t._v("Status Anggota")]),t._v(" "),e("select",{staticClass:"form-control",attrs:{id:"add-form-status_anggota",name:"status_anggota",required:""}},[e("option",{attrs:{value:"inactive"}},[t._v("-- Pilih Status --")]),t._v(" "),e("option",{attrs:{value:"active"}},[t._v("Aktif")]),t._v(" "),e("option",{attrs:{value:"inactive"}},[t._v("Berhenti")])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-telefon"}},[t._v("No. Telefon")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-telefon",type:"text",name:"telefon",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-saham"}},[t._v("Saham")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-saham",type:"text",name:"saham",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-yuran"}},[t._v("Yuran")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-yuran",type:"text",name:"yuran",required:""}})])])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-success",attrs:{type:"button",disabled:t.loading},on:{click:function(e){return t.add()}}},[t._v("Hantar")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.closeManualModal}},[t._v("Batal")])])],1)],1)])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. KP")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",{staticStyle:{width:"52px"}})])])}],!1,null,null,null).exports;const br={data:function(){return{loading:!1}},created:function(){this.data.voter.id||this.$router.push({name:"Manage Voter"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating voter","loading"),axios.put(config.API+"voter/"+this.data.voter.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Voter"})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const _r=(0,h.A)(br,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[t._m(0),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.voter.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"no_kp",required:""},domProps:{value:t.data.voter.no_kp}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"telefon"}},[t._v("No. Telefon")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"telefon",required:""},domProps:{value:t.data.voter.telefon}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"Unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"unit",required:""},domProps:{value:t.data.voter.unit}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"saham"}},[t._v("Saham")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"saham",required:""},domProps:{value:t.data.voter.saham}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"yuran"}},[t._v("Yuran")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"yuran",required:""},domProps:{value:t.data.voter.yuran}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Hantar"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Voter"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this._self._c;return t("h4",[t("b",[this._v("Kemaskini Maklumat")])])}],!1,null,null,null).exports;const yr={data:function(){return{id:0,voterLoading:!1,searchNoAnggota:"",searchNoKp:"",selectedVoter:null,verifyModalVoter:null,verifyModalLoading:!1,verifyModalError:"",detailLoading:!1,detailError:"",claimCodeInput:"",payoutReference:"",payoutNote:"",kehadiranTableHeaders:[{title:"Nama Anggota",key:"name",sortable:!0},{title:"No. Kad Pengenalan",key:"no_kp",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Kehadiran",key:"kehadiran",sortable:!0},{title:"Pendaftaran",key:"fizikal_reg",sortable:!1},{title:"Undi",key:"has_voted",sortable:!1},{title:"Status",key:"allowance",sortable:!1},{title:"Tindakan",key:"action",sortable:!1}]}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.voterLoading=!0,this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter",{params:{page:this.current_page,kehadiran:this.current_kehadiran||void 0,fizikal_reg:this.current_fizikal_reg||void 0,no_anggota:this.searchNoAnggota||void 0,no_kp:this.searchNoKp||void 0}}).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.voterLoading=!1}))},applySearch:function(){var t=Object.assign({},this.$route.query);t.page=1,this.$router.replace({query:t}),this.refreshVoter()},clearSearch:function(){this.searchNoAnggota="",this.searchNoKp="",this.applySearch()},setKehadiranFilter:function(t){var e=Object.assign({},this.$route.query);1===t||2===t?e.kehadiran=String(t):"unset"===t?e.kehadiran="unset":delete e.kehadiran,e.page=1,this.$router.replace({query:e})},setFizikalRegFilter:function(t){var e=Object.assign({},this.$route.query);"pending"===t||"verified"===t?e.fizikal_reg=t:delete e.fizikal_reg,e.page=1,this.$router.replace({query:e})},paginationQueryForPage:function(t){var e={page:t};return this.current_kehadiran&&(e.kehadiran=this.current_kehadiran),this.current_fizikal_reg&&(e.fizikal_reg=this.current_fizikal_reg),e},canVerifyFizikalRegistration:function(t){return!!t&&(1===Number(t.kehadiran)&&!t.fizikal_registration_verified_at)},openFizikalVerifyModal:function(t){t&&this.canVerifyFizikalRegistration(t)&&(this.verifyModalError="",this.verifyModalVoter=Object.assign({},t),this.util.showModal("#fizikal-verify-modal"))},submitFizikalVerify:function(){var t=this;this.verifyModalVoter&&(this.verifyModalError="",this.verifyModalLoading=!0,axios.post(config.API+"voter/"+this.verifyModalVoter.id+"/verify-fizikal-registration").then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.verifyModalError=e.data.message||"Permintaan gagal.",void t.util.notify(t.verifyModalError,"error");if(t.util.showResult(e,"success")){var n=e.data.voter;n&&t.selectedVoter&&t.selectedVoter.id===n.id&&(t.selectedVoter.fizikal_registration_verified_at=n.fizikal_registration_verified_at),t.util.hideModal("#fizikal-verify-modal"),t.verifyModalVoter=null,t.refreshVoter()}})).catch((function(e){t.verifyModalError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal mengesahkan pendaftaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.verifyModalError,"error")})).finally((function(){t.verifyModalLoading=!1})))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getPDFKehadiranurl:function(t){return"/kehadiranpdf/".concat(t)},isCashPaid:function(t){return Boolean(t&&t.cash_paid_at)},canPayCash:function(t){return!!t&&(!this.isCashPaid(t)&&(1===Number(t.kehadiran)&&Number(t.votes_count)>0))},openDetail:function(t){this.detailError="",this.selectedVoter=Object.assign({},t),this.claimCodeInput="",this.payoutReference="",this.payoutNote="",this.util.showModal("#allowance-modal")},payCash:function(){var t=this;if(this.selectedVoter){this.detailError="",this.detailLoading=!0;var e={voter_id:this.selectedVoter.id,method:"cash",claim_code:this.claimCodeInput||void 0,reference:this.payoutReference||void 0,note:this.payoutNote||void 0},n=this.allowanceTunaiAmountRM;null==n||Number.isNaN(Number(n))||(e.amount_cents=Math.round(100*Number(n))),axios.post(config.API+"allowance/payout",e).then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.detailError=e.data.message||"Permintaan gagal.",void t.util.notify(t.detailError,"error");t.util.showResult(e,"success")&&(t.refreshVoter(),e&&e.data&&e.data.payout?(t.selectedVoter.cash_paid_at=e.data.payout.paid_at,t.selectedVoter.cash_payout_id=e.data.payout.id):t.selectedVoter.cash_paid_at=(new Date).toISOString())})).catch((function(e){t.detailError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal merekod bayaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.detailError,"error")})).finally((function(){t.detailLoading=!1}))}},voidCashPayout:function(){var t=this;this.selectedVoter&&this.selectedVoter.cash_payout_id?(this.detailError="",this.detailLoading=!0,axios.post(config.API+"allowance/void/"+this.selectedVoter.cash_payout_id,{note:this.payoutNote||void 0}).then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.detailError=e.data.message||"Permintaan gagal.",void t.util.notify(t.detailError,"error");t.util.showResult(e,"success")&&(t.refreshVoter(),t.selectedVoter.cash_paid_at=null,t.selectedVoter.cash_payout_id=null)})).catch((function(e){t.detailError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal membatalkan bayaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.detailError,"error")})).finally((function(){t.detailLoading=!1}))):this.detailError="Rekod bayaran tidak dijumpai untuk dibatalkan."}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()},"$route.query.kehadiran":function(){$.notifyClose(),this.refreshVoter()},"$route.query.fizikal_reg":function(){$.notifyClose(),this.refreshVoter()}},computed:{allowanceTunaiAmountRM:function(){if(!this.selectedVoter)return null;var t=Number(this.selectedVoter.kehadiran);return 1===t?300:2===t?150:null},allowanceTunaiDisplay:function(){var t=this.allowanceTunaiAmountRM;return null==t?"":Number(t).toFixed(2)},hasAnySearch:function(){return Boolean(this.searchNoAnggota&&this.searchNoAnggota.length||this.searchNoKp&&this.searchNoKp.length)},voterListItems:function(){var t=this.data.voters;return t&&Array.isArray(t.data)?t.data:[]},pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},current_kehadiran:function(){return this.$route.query.kehadiran?this.$route.query.kehadiran:null},current_fizikal_reg:function(){return this.$route.query.fizikal_reg?this.$route.query.fizikal_reg:null},attendancePercentage:function(){var t=this.voterListItems.reduce((function(t,e){return 1===e.kehadiran?t+1:t}),0),e=this.voterListItems.reduce((function(t,e){return 2===e.kehadiran?t+1:t}),0),n=t+e,a=this.voterListItems.length;return 0===a?0:(n/a*100).toFixed(2)}}},wr=yr;var xr=n(1848),kr={insert:"head",singleton:!1};u()(xr.A,kr);xr.A.locals;const Ar=(0,h.A)(wr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"kehadiran-actions clearfix"},[e("button",{staticClass:"btn btn-success",on:{click:function(e){return t.refreshVoter()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Pengundi\n\t\t\t")]),t._v(" "),e("a",{staticClass:"btn btn-warning pull-right",attrs:{href:t.getPDFKehadiranurl(1)}},[e("i",{staticClass:"fa fa-download"}),t._v(" Muat Turun PDF\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"kehadiran-search"},[e("div",{staticClass:"kehadiran-search__label"},[t._v("Carian pantas (kaunter):")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoAnggota,expression:"searchNoAnggota",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Anggota"},domProps:{value:t.searchNoAnggota},on:{input:function(e){e.target.composing||(t.searchNoAnggota=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoKp,expression:"searchNoKp",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Kad Pengenalan"},domProps:{value:t.searchNoKp},on:{input:function(e){e.target.composing||(t.searchNoKp=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.applySearch()}}},[t._v("Cari")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.hasAnySearch},on:{click:function(e){return t.clearSearch()}}},[t._v("Reset")])]),t._v(" "),e("div",{staticClass:"kehadiran-filters"},[e("span",{staticClass:"kehadiran-filters__label"},[t._v("Penapis:")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_kehadiran},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(null)}}},[t._v("\n\t\t\t\tSemua\n\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"unset"===String(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter("unset")}}},[t._v("\n\t\t\t\tBelum Ditetapkan\n\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":1===Number(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(1)}}},[t._v("\n\t\t\t\tFizikal\n\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":2===Number(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(2)}}},[t._v("\n\t\t\t\tMaya\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"kehadiran-filters kehadiran-filters--secondary"},[e("span",{staticClass:"kehadiran-filters__label"},[t._v("Pendaftaran fizikal:")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter(null)}}},[t._v("\n\t\t\t\tSemua\n\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"pending"===t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter("pending")}}},[t._v("\n\t\t\t\tMenunggu pengesahan\n\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"verified"===t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter("verified")}}},[t._v("\n\t\t\t\tDisahkan\n\t\t\t")])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.kehadiranTableHeaders,items:t.voterListItems,loading:t.voterLoading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada rekod kehadiran",exportable:!0},scopedSlots:t._u([{key:"item-kehadiran",fn:function(e){var n=e.item;return[t._v("\n\t\t\t\t"+t._s(t.getKehadiranString(n.kehadiran))+"\n\t\t\t")]}},{key:"item-fizikal_reg",fn:function(n){var a=n.item;return[1!==Number(a.kehadiran)?e("span",{staticClass:"text-muted"},[t._v("—")]):a.fizikal_registration_verified_at?e("span",{staticClass:"kehadiran-pill kehadiran-pill--success"},[e("i",{staticClass:"fa fa-check-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Disahkan")])]):e("span",{staticClass:"kehadiran-pill kehadiran-pill--warn"},[e("i",{staticClass:"fa fa-clock-o",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Menunggu")])])]}},{key:"item-has_voted",fn:function(n){var a=n.item;return[e("span",{staticClass:"kehadiran-pill",class:Number(a.votes_count)>0?"kehadiran-pill--success":"kehadiran-pill--muted"},[e("i",{staticClass:"fa",class:Number(a.votes_count)>0?"fa-check-circle":"fa-times-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(Number(a.votes_count)>0?"Undi":"Belum"))])])]}},{key:"item-allowance",fn:function(n){var a=n.item;return[e("span",{staticClass:"kehadiran-pill",class:t.isCashPaid(a)?"kehadiran-pill--success":"kehadiran-pill--warn"},[e("i",{staticClass:"fa",class:t.isCashPaid(a)?"fa-money":"fa-exclamation-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(t.isCashPaid(a)?"Sudah Bayar":"Belum Bayar"))])])]}},{key:"item-action",fn:function(n){var a=n.item;return[e("div",{staticClass:"kehadiran-action-cell"},[e("button",{staticClass:"btn btn-xs btn-primary kehadiran-action-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.openDetail(a)}}},[e("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Detail")])]),t._v(" "),t.canVerifyFizikalRegistration(a)?e("button",{staticClass:"btn btn-xs btn-success kehadiran-action-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.openFizikalVerifyModal(a)}}},[e("i",{staticClass:"fa fa-check",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Sahkan")])]):t._e()])]}}])}),t._v(" "),e("div",{staticClass:"modal fade app-modal",attrs:{id:"allowance-modal",tabindex:"-1",role:"dialog","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),t.selectedVoter?e("div",{staticClass:"modal-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("table",{staticClass:"table table-condensed"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"160px"}},[t._v("Nama")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.name))])]),t._v(" "),e("tr",[e("th",[t._v("No. KP")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.no_kp))])]),t._v(" "),e("tr",[e("th",[t._v("No. Anggota")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.no_anggota))])]),t._v(" "),e("tr",[e("th",[t._v("Unit")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.unit))])])])])]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("table",{staticClass:"table table-condensed"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"160px"}},[t._v("Kehadiran")]),t._v(" "),e("td",[e("b",[t._v(t._s(t.getKehadiranString(t.selectedVoter.kehadiran)))])])]),t._v(" "),1===Number(t.selectedVoter.kehadiran)?e("tr",[e("th",[t._v("Pendaftaran")]),t._v(" "),e("td",[t.selectedVoter.fizikal_registration_verified_at?e("span",{staticClass:"label label-success"},[t._v("Disahkan")]):e("span",{staticClass:"label label-warning"},[t._v("Menunggu pengesahan")])])]):t._e(),t._v(" "),e("tr",[e("th",[t._v("Status Undi")]),t._v(" "),e("td",[e("span",{staticClass:"label",class:Number(t.selectedVoter.votes_count)>0?"label-success":"label-default"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(Number(t.selectedVoter.votes_count)>0?"Ya":"Tidak")+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])])]),t._v(" "),e("tr",[e("th",[t._v("Bayaran Tunai")]),t._v(" "),e("td",[e("span",{staticClass:"label",class:t.isCashPaid(t.selectedVoter)?"label-success":"label-warning"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.isCashPaid(t.selectedVoter)?"Sudah ("+t.selectedVoter.cash_paid_at+")":"Belum")+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])])])])])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-4"},[e("label",[t._v("Kod Tuntutan (Claim Code)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.claimCodeInput,expression:"claimCodeInput",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Contoh: 482913"},domProps:{value:t.claimCodeInput},on:{input:function(e){e.target.composing||(t.claimCodeInput=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("small",{staticClass:"text-muted"},[t._v("Voter akan tunjuk kod ini. Wajib untuk bayaran\n\t\t\t\t\t\t\t\t\ttunai.")])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("label",[t._v("Jumlah Tunai (RM)")]),t._v(" "),e("input",{staticClass:"form-control kehadiran-tunai-readonly",attrs:{type:"text",readonly:"",disabled:""},domProps:{value:t.allowanceTunaiDisplay}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("label",[t._v("Rujukan (optional)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.payoutReference,expression:"payoutReference",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",maxlength:"80"},domProps:{value:t.payoutReference},on:{input:function(e){e.target.composing||(t.payoutReference=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),e("div",{staticClass:"row",staticStyle:{"margin-top":"10px"}},[e("div",{staticClass:"col-md-12"},[e("label",[t._v("Nota (optional)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.payoutNote,expression:"payoutNote",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.payoutNote},on:{input:function(e){e.target.composing||(t.payoutNote=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),t.detailError?e("div",{staticClass:"alert alert-danger",staticStyle:{"margin-top":"12px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.detailError)+"\n\t\t\t\t\t\t")]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),t.selectedVoter&&t.isCashPaid(t.selectedVoter)?e("button",{staticClass:"btn btn-danger",attrs:{type:"button",disabled:t.detailLoading},on:{click:function(e){return t.voidCashPayout()}}},[t._v("\n\t\t\t\t\t\t\tBatal Bayaran Tunai\n\t\t\t\t\t\t")]):t._e(),t._v(" "),t.selectedVoter&&t.canPayCash(t.selectedVoter)?e("button",{staticClass:"btn btn-success",attrs:{type:"button",disabled:t.detailLoading},on:{click:function(e){return t.payCash()}}},[t._v("\n\t\t\t\t\t\t\tBayar Tunai\n\t\t\t\t\t\t")]):t._e()])])])]),t._v(" "),e("div",{staticClass:"modal fade app-modal",attrs:{id:"fizikal-verify-modal",tabindex:"-1",role:"dialog","aria-labelledby":"fizikal-verify-title","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),t.verifyModalVoter?e("div",{staticClass:"modal-body"},[e("p",{staticClass:"kehadiran-verify-lead"},[t._v("\n\t\t\t\t\t\t\tSahkan bahawa pengundi ini hadir di kaunter. Selepas ini, pengundi boleh mengundi.\n\t\t\t\t\t\t")]),t._v(" "),e("table",{staticClass:"table table-condensed table-bordered kehadiran-verify-summary"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"140px"}},[t._v("Nama")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.name))])]),t._v(" "),e("tr",[e("th",[t._v("No. KP")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.no_kp))])]),t._v(" "),e("tr",[e("th",[t._v("No. Anggota")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.no_anggota))])]),t._v(" "),e("tr",[e("th",[t._v("Unit")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.unit))])])])]),t._v(" "),t.verifyModalError?e("div",{staticClass:"alert alert-danger",staticStyle:{"margin-bottom":"0"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.verifyModalError)+"\n\t\t\t\t\t\t")]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.verifyModalLoading},on:{click:t.submitFizikalVerify}},[e("i",{staticClass:"fa fa-check",attrs:{"aria-hidden":"true"}}),t._v(" Sahkan pendaftaran\n\t\t\t\t\t\t")])])])])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.attendancePercentage)+"% Kehadiran Pengundi")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.page,class:{active:Number(t.current_page)===n.page},attrs:{tag:"li",to:{query:t.paginationQueryForPage(n.page)},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("Butiran Pembayaran Elaun")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title",attrs:{id:"fizikal-verify-title"}},[t._v("Pengesahan pendaftaran fizikal")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])}],!1,null,null,null).exports;const Sr={data:function(){return{id:0}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter?page="+this.current_page).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getFizikalPDFurl:function(t){return"/fizikalpdf/".concat(t)}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},computed:{pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},attendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 1===e.kehadiran?t+1:t}),0),e=this.data.voters.data.length;return 0===e?0:(t/e*100).toFixed(2)},filteredPhysicalAttendees:function(){return this.data.voters.data.filter((function(t){return 1===t.kehadiran}))}}},Cr=Sr;var Er=(0,h.A)(Cr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kedatangan Fizikal")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getFizikalPDFurl(1)}},[t._v("Muat Turun PDF")]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover"},[t._m(0),t._v(" "),e("tbody",[t._l(t.filteredPhysicalAttendees,(function(n,a){return[e("tr",[e("td",[t._v(t._s(a+1))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[t._v(t._s(t.getKehadiranString(n.kehadiran)))]),t._v(" "),e("td",[t._v(t._s(n.updated_at))])])]}))],2)])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.attendancePercentage)+"% Kehadiran Pengundi Fizikal")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.pages,class:{active:t.current_page==n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama Anggota")]),t._v(" "),e("th",[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",[t._v("Kehadiran")]),t._v(" "),e("th",[t._v("Tarikh/Masa")])])])}],!1,null,null,null);const Tr=Er.exports;const Nr={data:function(){return{id:0}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter?page="+this.current_page).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getMayaPDFurl:function(t){return"/mayapdf/1"}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},computed:{pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},mayaAttendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 2===e.kehadiran?t+1:t}),0),e=this.data.voters.data.length;return 0===e?0:(t/e*100).toFixed(2)},attendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 1===e.kehadiran?t+1:t}),0),e=this.data.voters.data.reduce((function(t,e){return 2===e.kehadiran?t+1:t}),0),n=t+e,a=this.data.voters.data.length;return 0===a?0:(n/a*100).toFixed(2)},filteredMayaAttendees:function(){return this.data.voters.data.filter((function(t){return 2===t.kehadiran}))}}},Pr=Nr;var Lr=(0,h.A)(Pr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kedatangan Maya")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getMayaPDFurl(1)}},[t._v("Muat Turun PDF")]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover"},[t._m(0),t._v(" "),e("tbody",[t._l(t.filteredMayaAttendees,(function(n,a){return[e("tr",[e("td",[t._v(t._s(a+1))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[t._v(t._s(t.getKehadiranString(n.kehadiran)))]),t._v(" "),e("td",[t._v(t._s(n.updated_at))])])]}))],2)])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.mayaAttendancePercentage)+"% Kehadiran Maya")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.pages,class:{active:t.current_page==n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama Anggota")]),t._v(" "),e("th",[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",[t._v("Kehadiran")]),t._v(" "),e("th",[t._v("Tarikh/Masa")])])])}],!1,null,null,null);const Or=Lr.exports;const Rr={data:function(){return{nominees:[],results:[],partylists:[],positions:[]}},methods:{getNominee:function(t){var e=this.nominees;for(var n in e)if(t==e[n].id)return e[n];return{}},getPartylist:function(t){var e=this.partylists;for(var n in e)if(t==e[n].id)return e[n].name;return"No Partylist"}},created:function(){this.util.notify("Loading please wait...","loading");var t=this;axios.get(config.API+"election/result/"+this.election_id).then((function(e){$.notifyClose(),t.nominees=e.data.nominee,t.results=e.data.result,t.partylists=e.data.partylist,t.positions=e.data.position})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},computed:{election_id:function(){return this.$route.params.election_id},no_votes:function(){var t=this.nominees,e=this.results,n=[];for(var a in t){var r=!1;for(var i in e)e[i].nominee_id==t[a].id&&(r=!0);r||n.push(t[a])}return n}}},Ir=Rr;var Mr=(0,h.A)(Ir,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},t._l(t.positions,(function(n){return e("div",[e("h5",[t._v(t._s(n.name))]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-striped table-condensed"},[t._m(0,!0),t._v(" "),e("tbody",[t._l(t.results,(function(a){return a.position_id==n.id?e("tr",[e("td",[t._v(t._s(t.getVoter(a.nominee_id).no_anggota))]),t._v(" "),e("td",[t._v(t._s(t.getNominee(a.nominee_id).name))]),t._v(" "),e("td",[t._v(t._s(t.getPartylist(t.getNominee(a.nominee_id).partylist_id)))]),t._v(" "),e("td",[t._v(t._s(t.getNominee(a.nominee_id).unit))]),t._v(" "),e("td",[t._v(t._s(a.votes))])]):t._e()})),t._v(" "),t._l(t.no_votes,(function(a){return a.position_id==n.id?e("tr",[e("td",[t._v(t._s(a.student_id))]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v(t._s(t.getPartylist(a.partylist_id)))]),t._v(" "),e("td",[t._v(t._s(a.unit))]),t._v(" "),e("td",[t._v("0")])]):t._e()}))],2)])]),t._v(" "),e("hr")])})),0)])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",{attrs:{width:"10%"}},[t._v("No. Anggota")]),t._v(" "),e("th",{attrs:{width:"30%"}},[t._v("Name")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("Unit")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("No. Telefon")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("Kehadiran")])])])}],!1,null,null,null);const Fr=Mr.exports;const Dr={created:function(){this.util.setTitle("MyKoPKB - Maklumat Calon")}};const jr=(0,h.A)(Dr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-10 col-md-offset-1"},[e("h4",[t._v("Maklumat Calon")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Br={data:function(){return{id:0,nomineeLoading:!1,nomineeTableHeaders:[{title:"",key:"photo",sortable:!1},{title:"Nama",key:"name",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Jawatan",key:"position",sortable:!0},{title:"Taraf Pendidikan",key:"education",sortable:!1,exportValue:function(t){return Array.isArray(t.education)?t.education.join(" | "):""}},{title:"Pengalaman Kerja",key:"experience",sortable:!1,exportValue:function(t){return Array.isArray(t.experience)?t.experience.join(" | "):""}},{title:"Tindakan",key:"actions",sortable:!1}]}},created:function(){this.refreshNominee()},methods:{setPosition:function(t){var e=Object.assign({},this.$route.query);t&&"0"!==String(t)?e.position_id=t:delete e.position_id,this.$router.replace({query:e})},openDeleteModal:function(t){this.id=t.id,this.util.showModal("#delete-nominee-modal")},deleteNominee:function(){var t=this,e=this.id;this.util.hideModal("#delete-nominee-modal"),this.util.notify("Deleting nominee","loading"),axios.delete(config.API+"nominee/"+e).then((function(e){$.notifyClose(),e.data&&"success"===e.data.status?(t.util.notify("Nominee deleted successfully","success"),t.refreshNominee()):t.util.notify("Failed to delete nominee","error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshNominee:function(){var t=this;this.nomineeLoading=!0,this.util.notify("Refreshing Nominees","loading"),axios.get(config.API+"nominee",{params:{position_id:this.position_id&&"0"!==String(this.position_id)?this.position_id:void 0}}).then((function(e){$.notifyClose(),console.log(e),t.data.nominees=e.data})).catch((function(e){$.notifyClose(),t.showResult(e)})).finally((function(){t.nomineeLoading=!1}))},getPosition:function(t){var e=this.data.positions;for(var n in e)if(e[n].id==t)return e[n].name},getPartylist:function(t){var e=this.data.partylists;for(var n in e)if(e[n].id==t)return e[n].name;return"No partylists"},createBase64ImageUrl:function(t){return"data:image/png;base64,"+t}},computed:{nominees:function(){var t=[],e=this.data.nominees;for(var n in this.data.nominees)if(e[n].position_id==this.position_id||0==this.position_id){var a=Object.assign({},e[n]);a.position=this.getPosition(e[n].position_id),a.partylist=this.getPartylist(e[n].partylist_id),t.push(a)}return t},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:0}},watch:{position_id:function(){this.refreshNominee()}}},Ur=Br;var zr=n(9273),Hr={insert:"head",singleton:!1};u()(zr.A,Hr);zr.A.locals;var qr=(0,h.A)(Ur,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12 panel panel-default"},[e("div",{staticClass:"panel-body table-responsive"},[e("div",{staticClass:"nominee-filter-chips"},[e("button",{staticClass:"nominee-chip btn btn-xs",class:0==t.position_id?"btn-primary":"btn-default",attrs:{type:"button"},on:{click:function(e){return t.setPosition(0)}}},[t._v("\n\t\t\t\t\tSemua Jawatan\n\t\t\t\t")]),t._v(" "),t._l(t.data.positions,(function(n){return e("button",{key:n.id,staticClass:"nominee-chip btn btn-xs",class:String(t.position_id)===String(n.id)?"btn-primary":"btn-default",attrs:{type:"button"},on:{click:function(e){return t.setPosition(n.id)}}},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t")])}))],2),t._v(" "),e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Calon")])],1),t._v(" "),e("admin-data-table",{attrs:{headers:t.nomineeTableHeaders,items:t.nominees,loading:t.nomineeLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada calon",exportable:!0,"export-file-name":"calon"},scopedSlots:t._u([{key:"item-photo",fn:function(n){var a=n.item;return[e("img",{staticClass:"thumbnail",staticStyle:{height:"60px",width:"60px"},attrs:{alt:a.name,src:t.createBase64ImageUrl(a.photo)}})]}},{key:"item-education",fn:function(n){var a=n.item;return[e("ol",{staticStyle:{margin:"0","padding-left":"18px"}},t._l(a.education||[],(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0)]}},{key:"item-experience",fn:function(n){var a=n.item;return[e("ol",{staticStyle:{margin:"0","padding-left":"18px"}},t._l(a.experience||[],(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0)]}},{key:"item-actions",fn:function(n){var a=n.item;return[e("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"Edit Nominee",params:{id:a.id}}}},[e("i",{staticClass:"fa fa-edit"}),t._v("Kemaskini\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.openDeleteModal(a)}}},[e("i",{staticClass:"fa fa-trash"}),t._v("Padam\n\t\t\t\t\t")])]}}])})],1)]),t._v(" "),e("modal",{attrs:{id:"delete-nominee-modal"}},[e("modal-header",[t._v("Padam Calon")]),t._v(" "),e("modal-body",[e("h3",[t._v("Are you sure to delete this nominee?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteNominee()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-nominee-modal")}}},[t._v("\n\t\t\t\tKembali\n\t\t\t")])])],1)],1)}),[],!1,null,null,null);const Wr=qr.exports;const Kr={data:function(){return{imageUrl:"",loading:!1}},methods:{add:function(){if(!this.loading){var t=this;this.loading=!0,this.util.notify("Adding Nominee","progress",0),$("#add_form").ajaxSubmit({success:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success","ajax")&&t.$router.push({name:"Maklumat Calon"})},error:function(e){alert("Nominee with the same name has already registered"),location.reload(),$.notifyClose(),t.loading=!1,t.util.showResult(e,"error","ajax")},uploadProgress:function(e,n,a,r){t.util.notify("Adding Nominee","progress",r)}})}},handleImageChange:function(t){var e=this,n=t.target.files[0];if(n&&n.type.match(/image.*/)){var a=new FileReader;a.onload=function(t){e.imageUrl=t.target.result},a.readAsDataURL(n)}else t.target.value="",this.imageUrl=""}},computed:{position_id:{get:function(){return this.$route.query.position_id},set:function(t){this.$router.replace({query:{position_id:t}})}}}};var Vr=n(4969),$r={insert:"head",singleton:!1};u()(Vr.A,$r);Vr.A.locals;var Gr=(0,h.A)(Kr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default nominee-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-page__header clearfix"},[t._m(0),t._v(" "),e("router-link",{staticClass:"btn btn-default pull-right",attrs:{to:{name:"Maklumat Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t")])],1),t._v(" "),t._m(1),t._v(" "),e("form",{staticClass:"nominee-add-form",attrs:{method:"POST",id:"add_form",action:t.data.API+"nominee",enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8"},[t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),e("div",{staticClass:"form-group"},[t._m(7),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.position_id,expression:"position_id"}],staticClass:"form-control",attrs:{id:"nominee-position-id",name:"position_id",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.position_id=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"0",disabled:""}},[t._v("— Pilih jawatan —")]),t._v(" "),t._l(t.data.positions,(function(n){return e("option",{key:n.id,domProps:{value:n.id}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"nominee-add-photo panel panel-default"},[t._m(8),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-photo__preview",class:{"nominee-add-photo__preview--empty":!t.imageUrl}},[t.imageUrl?e("img",{attrs:{src:t.imageUrl,alt:"Pratonton gambar calon"}}):e("div",{staticClass:"nominee-add-photo__placeholder"},[e("i",{staticClass:"fa fa-picture-o"}),t._v(" "),e("span",[t._v("Tiada gambar dipilih")])])]),t._v(" "),t._m(9),t._v(" "),e("input",{staticClass:"nominee-add-photo__input",attrs:{id:"nominee-file-input",name:"photo",type:"file",accept:"image/*"},on:{change:t.handleImageChange}}),t._v(" "),e("p",{staticClass:"text-muted small nominee-add-photo__formats"},[t._v("PNG, JPG atau GIF")])])])])]),t._v(" "),e("hr",{staticClass:"nominee-add-form__rule"}),t._v(" "),e("div",{staticClass:"clearfix nominee-add-form__actions"},[e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Maklumat Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-times"}),t._v(" Batal\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("i",{staticClass:"fa fa-spinner fa-spin"}):e("i",{staticClass:"fa fa-check"}),t._v("\n\t\t\t\t\t"+t._s(t.loading?"Menghantar…":"Simpan calon")+"\n\t\t\t\t")])],1)])])])}),[function(){var t=this._self._c;return t("h4",{staticClass:"pull-left nominee-add-page__title"},[t("i",{staticClass:"fa fa-user-plus text-muted"}),this._v(" Tambah Calon\n\t\t\t")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-muted small nominee-add-page__intro"},[t._v("\n\t\t\tLengkapkan maklumat calon. Medan bertanda "),e("span",{staticClass:"text-danger"},[t._v("*")]),t._v(" adalah wajib.\n\t\t")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-name"}},[t._v("Nama Calon "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-name",type:"text",name:"name",placeholder:"Nama penuh",required:""}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-no-anggota"}},[t._v("No. Anggota "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-no-anggota",type:"text",name:"no_anggota",placeholder:"No. keahlian",required:""}})])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-unit"}},[t._v("Unit "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-unit",type:"text",name:"unit",required:""}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-umur"}},[t._v("Umur "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-umur",type:"number",name:"umur",min:"1",max:"120",placeholder:"Tahun",required:""}})])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-jawatan-sekarang"}},[t._v("Jawatan Sekarang "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-jawatan-sekarang",type:"text",name:"jawatan_sekarang",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-education"}},[t._v("Taraf Pendidikan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-education",type:"text",name:"education",placeholder:"Pilihan"}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-experience"}},[t._v("Pengalaman Kerja")]),t._v(" "),e("textarea",{staticClass:"form-control",attrs:{id:"nominee-experience",name:"experience",rows:"4",placeholder:"Pilihan — senaraikan pengalaman relevan"}})])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"nominee-position-id"}},[t._v("Jawatan Dicalonkan "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-heading"},[e("strong",[e("i",{staticClass:"fa fa-camera"}),t._v(" Gambar calon")]),t._v(" "),e("span",{staticClass:"text-muted small nominee-add-photo__hint"},[t._v("Pilihan")])])},function(){var t=this._self._c;return t("label",{staticClass:"btn btn-default btn-block nominee-add-photo__browse",attrs:{for:"nominee-file-input"}},[t("i",{staticClass:"fa fa-folder-open"}),this._v(" Pilih fail\n\t\t\t\t\t\t\t")])}],!1,null,"4ec0cccc",null);const Yr=Gr.exports;const Xr={data:function(){return{imageUrl:"",loading:!1,form:{name:"",no_anggota:"",unit:"",umur:"",jawatan_sekarang:"",education:"",experience:"",position_id:"",partylist_id:""}}},created:function(){this.nominee.id||this.$router.push({name:"Maklumat Calon"})},watch:{nominee:{immediate:!0,deep:!0,handler:function(t){t&&t.id&&(this.form.name=t.name||"",this.form.no_anggota=t.no_anggota||"",this.form.unit=t.unit||"",this.form.umur=null!=t.umur&&""!==t.umur?String(t.umur):"",this.form.jawatan_sekarang=t.jawatan_sekarang||"",this.form.education=this.formatEducationForInput(t.education),this.form.experience=this.formatExperienceForInput(t.experience),this.form.position_id=null!=t.position_id?String(t.position_id):"",this.form.partylist_id=null!=t.partylist_id&&""!==t.partylist_id?String(t.partylist_id):"",this.imageUrl=t.photo?this.createBase64ImageUrl(t.photo):"")}}},methods:{createBase64ImageUrl:function(t){return"data:image/png;base64,"+t},formatEducationForInput:function(t){return null==t||""===t?"":Array.isArray(t)?t.join("\n"):String(t)},formatExperienceForInput:function(t){return null==t||""===t?"":Array.isArray(t)?t.map((function(t,e){return e+1+". "+t})).join("\n"):String(t)},handleImageChange:function(t){var e=t.target.files[0],n=this;if(e&&e.type.match(/image.*/)){var a=new FileReader;a.onload=function(t){n.imageUrl=t.target.result},a.readAsDataURL(e)}else t.target.value="",n.imageUrl=n.nominee.photo?n.createBase64ImageUrl(n.nominee.photo):""},edit:function(){if(!this.loading){var t=this;this.loading=!0,this.util.notify("Kemaskini calon","progress",0),$("#edit_form").ajaxSubmit({success:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success","ajax")&&t.$router.push({name:"Maklumat Calon",query:{refresh:!0}})},error:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error","ajax")},uploadProgress:function(e,n,a,r){t.util.notify("Kemaskini calon","progress",r)}})}}},computed:{id:function(){return this.$route.params.id},nominee:function(){for(var t in this.data.nominees)if(this.data.nominees[t].id==this.id)return this.data.nominees[t];return{}},backToList:function(){var t={};return this.nominee&&null!=this.nominee.position_id&&"0"!==String(this.nominee.position_id)&&(t.position_id=this.nominee.position_id),{name:"Maklumat Calon",query:t}}}},Jr=Xr;var Zr=n(7300),Qr={insert:"head",singleton:!1};u()(Zr.A,Qr);Zr.A.locals;var ti=(0,h.A)(Jr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default nominee-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-page__header clearfix"},[t._m(0),t._v(" "),e("router-link",{staticClass:"btn btn-default pull-right",attrs:{to:t.backToList}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t")])],1),t._v(" "),t._m(1),t._v(" "),e("form",{staticClass:"nominee-add-form",attrs:{method:"POST",id:"edit_form",action:t.data.API+"nominee/"+t.id,enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("input",{attrs:{type:"hidden",name:"_method",value:"PUT"}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(2),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"edit-nominee-name",type:"text",name:"name",placeholder:"Nama penuh",required:""},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(3),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.no_anggota,expression:"form.no_anggota"}],staticClass:"form-control",attrs:{id:"edit-nominee-no-anggota",type:"text",name:"no_anggota",placeholder:"No. keahlian",required:""},domProps:{value:t.form.no_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"no_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(4),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.unit,expression:"form.unit"}],staticClass:"form-control",attrs:{id:"edit-nominee-unit",type:"text",name:"unit",required:""},domProps:{value:t.form.unit},on:{input:function(e){e.target.composing||t.$set(t.form,"unit",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(5),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.umur,expression:"form.umur"}],staticClass:"form-control",attrs:{id:"edit-nominee-umur",type:"number",name:"umur",min:"1",max:"120",placeholder:"Tahun",required:""},domProps:{value:t.form.umur},on:{input:function(e){e.target.composing||t.$set(t.form,"umur",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"form-group"},[t._m(6),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.jawatan_sekarang,expression:"form.jawatan_sekarang"}],staticClass:"form-control",attrs:{id:"edit-nominee-jawatan-sekarang",type:"text",name:"jawatan_sekarang",required:""},domProps:{value:t.form.jawatan_sekarang},on:{input:function(e){e.target.composing||t.$set(t.form,"jawatan_sekarang",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-education"}},[t._v("Taraf Pendidikan")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.education,expression:"form.education"}],staticClass:"form-control",attrs:{id:"edit-nominee-education",type:"text",name:"education",placeholder:"Pilihan"},domProps:{value:t.form.education},on:{input:function(e){e.target.composing||t.$set(t.form,"education",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-experience"}},[t._v("Pengalaman Kerja")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.experience,expression:"form.experience"}],staticClass:"form-control",attrs:{id:"edit-nominee-experience",name:"experience",rows:"4",placeholder:"Pilihan — senaraikan pengalaman relevan"},domProps:{value:t.form.experience},on:{input:function(e){e.target.composing||t.$set(t.form,"experience",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[t._m(7),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.position_id,expression:"form.position_id"}],staticClass:"form-control",attrs:{id:"edit-nominee-position-id",name:"position_id",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"position_id",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:"",disabled:""}},[t._v("— Pilih jawatan —")]),t._v(" "),t._l(t.data.positions,(function(n){return e("option",{key:n.id,domProps:{value:String(n.id)}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-partylist-id"}},[t._v("Senarai parti")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.partylist_id,expression:"form.partylist_id"}],staticClass:"form-control",attrs:{id:"edit-nominee-partylist-id",name:"partylist_id"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"partylist_id",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:""}},[t._v("— Pilihan —")]),t._v(" "),t._l(t.data.partylists,(function(n){return e("option",{key:n.id,domProps:{value:String(n.id)}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"nominee-add-photo panel panel-default"},[t._m(8),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-photo__preview",class:{"nominee-add-photo__preview--empty":!t.imageUrl}},[t.imageUrl?e("img",{attrs:{src:t.imageUrl,alt:"Pratonton gambar calon"}}):e("div",{staticClass:"nominee-add-photo__placeholder"},[e("i",{staticClass:"fa fa-picture-o"}),t._v(" "),e("span",[t._v("Tiada gambar")])])]),t._v(" "),t._m(9),t._v(" "),e("input",{staticClass:"nominee-add-photo__input",attrs:{id:"edit-nominee-file-input",name:"photo",type:"file",accept:"image/*"},on:{change:t.handleImageChange}}),t._v(" "),e("p",{staticClass:"text-muted small nominee-add-photo__formats"},[t._v("PNG, JPG atau GIF")])])])])]),t._v(" "),e("hr",{staticClass:"nominee-add-form__rule"}),t._v(" "),e("div",{staticClass:"clearfix nominee-add-form__actions"},[e("router-link",{staticClass:"btn btn-default",attrs:{to:t.backToList}},[e("i",{staticClass:"fa fa-times"}),t._v(" Batal\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("i",{staticClass:"fa fa-spinner fa-spin"}):e("i",{staticClass:"fa fa-check"}),t._v("\n\t\t\t\t\t"+t._s(t.loading?"Menghantar…":"Simpan perubahan")+"\n\t\t\t\t")])],1)])])])}),[function(){var t=this._self._c;return t("h4",{staticClass:"pull-left nominee-add-page__title"},[t("i",{staticClass:"fa fa-pencil text-muted"}),this._v(" Kemaskini Calon\n\t\t\t")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-muted small nominee-add-page__intro"},[t._v("\n\t\t\tKemas kini maklumat calon. Medan bertanda "),e("span",{staticClass:"text-danger"},[t._v("*")]),t._v(" adalah wajib.\n\t\t")])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-name"}},[t._v("Nama Calon "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-no-anggota"}},[t._v("No. Anggota "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-unit"}},[t._v("Unit "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-umur"}},[t._v("Umur "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-jawatan-sekarang"}},[t._v("Jawatan Sekarang "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-position-id"}},[t._v("Jawatan Dicalonkan "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-heading"},[e("strong",[e("i",{staticClass:"fa fa-camera"}),t._v(" Gambar calon")]),t._v(" "),e("span",{staticClass:"text-muted small nominee-add-photo__hint"},[t._v("Pilihan")])])},function(){var t=this._self._c;return t("label",{staticClass:"btn btn-default btn-block nominee-add-photo__browse",attrs:{for:"edit-nominee-file-input"}},[t("i",{staticClass:"fa fa-folder-open"}),this._v(" Pilih fail\n\t\t\t\t\t\t\t")])}],!1,null,"2ff9e648",null);const ei=ti.exports;const ni={created:function(){this.util.setTitle("MyKoPKB - Akaun Anggota")}};const ai=(0,h.A)(ni,(function(){var t=this._self._c;return t("div",{staticClass:"container col-md-8 col-md-offset-2"},[t("router-view")],1)}),[],!1,null,null,null).exports;const ri={components:{AdminDataTable:ka.default},data:function(){return{id:0,impersonateTarget:null,loading:!1,adminTableHeaders:[{title:"ID",key:"id",sortable:!0},{title:"Nama",key:"name",sortable:!0},{title:"Email",key:"email",sortable:!0},{title:"Impersonate",key:"impersonate",sortable:!1,exportValue:function(){return""}},{title:"Padam",key:"delete",sortable:!1,exportValue:function(){return""}}]}},computed:{canViewAdminList:function(){try{return!(!this.data||!this.data.user)&&(1===Number(this.data.user.id)&&"1"!==localStorage.getItem("is_impersonating"))}catch(t){return!1}},adminItems:function(){var t=this.data&&this.data.admins;return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:[]}},created:function(){this.canViewAdminList?this.refreshAdmin():this.loading=!1},methods:{canImpersonate:function(t){try{return!(!this.data||!this.data.user)&&(1===Number(this.data.user.id)&&(!(!t||void 0===t.id||null===t.id)&&1!==Number(t.id)))}catch(t){return!1}},openImpersonate:function(t){this.impersonateTarget=t,this.util&&this.util.showModal&&this.util.showModal("#impersonate-admin-modal")},startImpersonate:function(){var t=this;t.impersonateTarget&&t.impersonateTarget.id&&(t.util.hideModal("#impersonate-admin-modal"),t.util.notify("Impersonating admin","loading"),axios.post(config.API+"admin/impersonate",{user_id:t.impersonateTarget.id}).then((function(e){if($.notifyClose(),e&&e.data&&"success"===e.data.status){var n=e.data.token;n&&(localStorage["Access Token"]="Bearer "+n,localStorage.setItem("is_impersonating","1"),t.util&&t.util.setAuthorization&&t.util.setAuthorization()),e.data.user&&(t.data.user=e.data.user,void 0!==e.data.user.role&&null!==e.data.user.role&&localStorage.setItem("admin_role",String(e.data.user.role))),t.util.notify("Impersonate berjaya","success"),t.$router&&t.$router.go(0)}else t.util.showResult(e,"error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})))},deleteAdmin:function(){this.util.hideModal("#delete-admin-modal"),this.util.notify("Deleting admin","loading");var t=this;axios.delete(config.API+"admin/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshAdmin()})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshAdmin:function(){var t=this;t.canViewAdminList&&(t.loading=!0,this.util.notify("Refreshing admin","loading"),axios.get(config.API+"admin").then((function(e){$.notifyClose(),"failed"==e.data.status?t.util.showResult(e,"success"):t.data.admins=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.loading=!1})))}}},ii=ri;const oi=(0,h.A)(ii,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Add Account"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Akaun Pengguna")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.canViewAdminList},on:{click:function(e){return t.refreshAdmin()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Refresh")])],1),t._v(" "),t.canViewAdminList?t._e():e("div",{staticClass:"alert alert-warning",staticStyle:{"margin-bottom":"12px"}},[t._v("\n\t\t\tAkses ditolak: Pengurusan akaun hanya untuk "),e("b",[t._v("Main Admin")]),t._v(" (id=1). Jika sedang impersonate, sila\n\t\t\t"),e("b",[t._v("Kembali Akaun Asal")]),t._v(".\n\t\t")]),t._v(" "),e("admin-data-table",{attrs:{headers:t.adminTableHeaders,items:t.adminItems,loading:t.loading,"show-pagination":!0,exportable:!0,"export-file-name":"admins","items-per-page":25,"show-index":!0,"index-title":"Bil.","empty-text":"Tiada akaun admin"},scopedSlots:t._u([{key:"item-impersonate",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-primary btn-sm",attrs:{disabled:!t.canImpersonate(a)},on:{click:function(e){return t.openImpersonate(a)}}},[e("i",{staticClass:"fa fa-user-secret"}),t._v(" Impersonate\n\t\t\t\t")])]}},{key:"item-delete",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-danger btn-sm",on:{click:function(e){return t.deleteAdmin(a.id)}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t")])]}}])})],1),t._v(" "),e("modal",{attrs:{id:"delete-admin-modal"}},[e("modal-header",[t._v("Delete Admin")]),t._v(" "),e("modal-body",[e("h3",[t._v("Are you sure to delete this admin?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteAdmin()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-admin-modal")}}},[t._v("Batal")])])],1),t._v(" "),e("modal",{attrs:{id:"impersonate-admin-modal"}},[e("modal-header",[t._v("Impersonate Admin")]),t._v(" "),e("modal-body",[t.impersonateTarget&&t.impersonateTarget.email?e("h4",[t._v("\n\t\t\t\tImpersonate "),e("b",[t._v(t._s(t.impersonateTarget.email))]),t._v(" ?\n\t\t\t")]):t._e(),t._v(" "),e("p",{staticClass:"text-muted",staticStyle:{"margin-bottom":"0"}},[t._v("\n\t\t\t\tAnda akan login sebagai akaun tersebut.\n\t\t\t")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.startImpersonate()}}},[t._v("Impersonate")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#impersonate-admin-modal")}}},[t._v("Batal")])])],1)],1)}),[],!1,null,null,null).exports;const si={data:function(){return{loading:!1}},methods:{refreshUser:function(){var t=this;axios.get(config.API+"admin/"+this.data.user.id).then((function(e){t.data.user=e.data}))},edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating account","loading"),axios.put(config.API+"admin/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(t.refreshUser(),t.$router.push({name:"Admin Home"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e.response,"error")}))}}}};const li=(0,h.A)(si,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kemaskini Akaun")]),t._v(" "),e("form",{attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.user.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("E-mail")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:""},domProps:{value:t.data.user.email}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Update Password"}}},[t._v("Tukar Kata Laluan")])],1)])])])}),[],!1,null,null,null).exports;const ci={data:function(){return{loading:!1}},methods:{edit:function(){if(!this.loading&&this.checkPassword()){var t=this;t.loading=!0,t.util.notify("Kemaskini Katalaluan","loading"),axios.put(config.API+"admin/password/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success"),t.$router.push({name:"Admin Home"})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error")}))}},checkPassword:function(){var t=$("[name=password]").val()==$("[name=confirm_password]").val();return t||this.util.notify("Password not match","error"),t}}};const ui=(0,h.A)(ci,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kemaskini Kata Laluan ")]),t._v(" "),e("form",{attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Update Account"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"old_password"}},[t._v("Kata Laluan lama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"old_password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata Laluan Baru ")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"confirm_password"}},[t._v("Sahkan Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"confirm_password",required:""}})])}],!1,null,null,null).exports;const fi={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading&&this.isPasswordMatch()){var t=this;this.loading=!0,this.util.notify("Adding Admin","loading"),axios.post(config.API+"admin",$("#add_form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Account"})})).catch((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"error")}))}},isPasswordMatch:function(){var t=$("[name=password]").val()==$("[name=confirm_password]").val();return t||this.util.notify("Password not match","error"),t}}};const di=(0,h.A)(fi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"add_form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Account"}}},[t._v("Back")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("Email")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Password")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"confirm_password"}},[t._v("Confirm Password")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"confirm_password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"role"}},[t._v("Role")]),t._v(" "),e("select",{staticClass:"form-control",attrs:{id:"role",name:"role",value:"",required:""}},[e("option",{attrs:{value:"1"}},[t._v("Admin")]),t._v(" "),e("option",{attrs:{value:"2"}},[t._v("Jawatankuasa Audit")]),t._v(" "),e("option",{attrs:{value:"3"}},[t._v("Jawatankuasa Kehadiran")])])])}],!1,null,null,null).exports;const hi={name:"PembiayaanForm",data:function(){return{form:{nama:"",kp:"",akaun:"",jumlah:"",tujuan:"",komoditi:"",setuju:!1,tarikh:"",tandatangan:""}}},methods:{goToBeliankomoditi:function(){this.$router.push("/beliankomoditi")}}};var pi=n(1657),mi={insert:"head",singleton:!1};u()(pi.A,mi);pi.A.locals;const gi=(0,h.A)(hi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pembiayaan-wrapper"},[e("form",{staticClass:"two-column-form",on:{submit:function(e){return e.preventDefault(),t.goNext.apply(null,arguments)}}},[t._m(0)]),t._v(" "),e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title mb-3"},[t._v("Maklumat Pemohon")]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"nama"}},[t._v("Nama Penuh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nama,expression:"form.nama"}],staticClass:"form-control",attrs:{type:"text",id:"nama",placeholder:"Masukkan nama penuh",required:""},domProps:{value:t.form.nama},on:{input:function(e){e.target.composing||t.$set(t.form,"nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"kp"}},[t._v("No. Kad Pengenalan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.kp,expression:"form.kp"}],staticClass:"form-control",attrs:{type:"text",id:"kp",placeholder:"Masukkan no. kad pengenalan",required:""},domProps:{value:t.form.kp},on:{input:function(e){e.target.composing||t.$set(t.form,"kp",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"akaun"}},[t._v("No. Akaun Bank:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.akaun,expression:"form.akaun"}],staticClass:"form-control",attrs:{type:"text",id:"akaun",placeholder:"Masukkan no. akaun bank",required:""},domProps:{value:t.form.akaun},on:{input:function(e){e.target.composing||t.$set(t.form,"akaun",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"tarikh"}},[t._v("Tarikh Permohonan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tarikh,expression:"form.tarikh"}],staticClass:"form-control",attrs:{type:"date",id:"tarikh",required:""},domProps:{value:t.form.tarikh},on:{input:function(e){e.target.composing||t.$set(t.form,"tarikh",e.target.value)}}})])])]),t._v(" "),e("hr"),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(3),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(4),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(5),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title"},[t._v("PENERIMAAN")]),t._v(" "),t._m(11),t._v(" "),e("form",{staticClass:"two-column-form"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"sign"}},[t._v("Sign:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.sign,expression:"form.sign"}],attrs:{id:"sign",required:""},domProps:{value:t.form.sign},on:{input:function(e){e.target.composing||t.$set(t.form,"sign",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nama"}},[t._v("Nama Penuh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nama,expression:"form.nama"}],attrs:{id:"nama",required:""},domProps:{value:t.form.nama},on:{input:function(e){e.target.composing||t.$set(t.form,"nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nokp"}},[t._v("No K/P:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nokp,expression:"form.nokp"}],attrs:{id:"nokp",required:""},domProps:{value:t.form.nokp},on:{input:function(e){e.target.composing||t.$set(t.form,"nokp",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"tarikh"}},[t._v("Tarikh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tarikh,expression:"form.tarikh"}],attrs:{type:"date",id:"tarikh",required:""},domProps:{value:t.form.tarikh},on:{input:function(e){e.target.composing||t.$set(t.form,"tarikh",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"button-container"},[e("router-link",{staticClass:"btn btn-primary px-4",attrs:{to:"/beliankomoditi"}},[t._v("\n Seterusnya\n ")])],1)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-10 col-lg-8"},[e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h4",{staticClass:"mb-0 fw-bold"},[t._v("Koperasi Permodalan Kelantan Berhad (KoPKB)")])]),t._v(" "),e("h5",{staticClass:"text-primary fw-semibold mt-2"},[t._v("Borang Permohonan Pembiayaan Murabahah")])])])])])},function(){var t=this,e=t._self._c;return e("p",[t._v(" Sukacita dimaklumkan bahawa "),e("b",[t._v("Koperasi Permodalan Kelantan Berhad ")]),t._v("(selepas ini disebut sebagai "),e("b",[t._v('"Koperasi")')]),t._v(" akan menawarkan kemudahan pembiayaan \n "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" \n kepada tuan/puan tertakluk kepada syarat seperti berikut:\n")])},function(){var t=this,e=t._self._c;return e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title mb-4"},[t._v("Maklumat Pembiayaan")]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label"},[t._v("KONSEP SYARIAH:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Tawarruq")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"jumlah_pembiayaan"}},[t._v("JUMLAH PEMBIAYAAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (a) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"kadar_keuntungan"}},[t._v("KADAR KEUNTUNGAN (%):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" % keuntungan ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"jumlah_keuntungan"}},[t._v("JUMLAH KEUNTUNGAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (b) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"harga_jualan_tangguh"}},[t._v("HARGA JUALAN TANGGUH(RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (a + b) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"komoditi"}},[t._v("MAKLUMAT KOMODITI:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Crude Palm Oil ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"tempoh_perjanjian"}},[t._v("TEMPOH PERJANJIAN PEMBIAYAN :")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" TAHUN/ "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" BULAN ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"bayaran_ansuran"}},[t._v("BAYARAN ANSURAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" Sebulan bermula bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" Tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" sehingga bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(". Bayaran akhir sebanyak RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" pada bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(". ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label"},[t._v("KAEDAH / CARA BAYARAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"form-control-plaintext"},[t._v("\n Ansuran bulanan dibayar melalui potongan gaji anggota ATAU Bayaran melalui:\n "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block","min-width":"150px"},attrs:{contenteditable:"true"}},[t._v("\n \n ")])])])])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 1:")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 2:")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 3:")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyelesaian_awal"}},[t._v("PENYELESAIAN PEMBIAYAAN AWAL:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Tuan/Puan boleh membuat penyelesaian pembiayaan awal dengan menjelaskan harga jualan sepenuhnya pada bila -bila masa sebelum tempoh perjanjian pembiayaan tamat .dan Koperasi berhak untuk memberikan Ibra' (rehat) kepada Tuan/Puan diatas penjelasan awal tersebut . Formula bagi penyelesaian awal pembiayaan adalah seperti berikut : "),e("br"),t._v(" "),e("b",[t._v(" Jumlah Penyelesaian Awal= Harga Jualan -Jumlah Ansuranyang telah dibayar -Keuntungan Belum Terakru . ")]),e("br")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"perlanggaran_perjanjian"}},[t._v("PERLANGGARAN PERJANJIAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("i) Tuan/Puan dianggap melanggar perjanjian ini sekiranya:")]),t._v(" "),e("ul",{staticClass:"form-control-plaintext mb-0",staticStyle:{"list-style-type":"lower-alpha","padding-left":"20px"}},[e("li",[t._v("Gagal membuat bayaran ansuran lebih dari tiga (3) bulan; atau")]),t._v(" "),e("li",[t._v("Berhenti daripada menjadi anggota / ahli koperasi dalam tempoh perjanjian atau sehingga seluruh Harga Jualan Tangguh diselesaikan sepenuhnya.")])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" ii) Sekiranya Tuan/Puan didapati melakukan perkara diatas, pihak Koperasi berhak untuk menuntut baki Harga Jualan Tangguh dan Yuran,Saham atau Simpanan oleh Tuan/Puan di Koperasi. ")]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" iii) Tuan/Puan membenarkan pihak Koperasi untuk menuntut segala kos , perbelanjaan, bayaran ganti rugi dan sebagainya yang berkaiatn dengan usaha Koperasi untuk mendapatkan hak Harga Jualan Tangguh sekiranya berlaku perlanggaran perjanjian ini.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyampaian proses"}},[t._v("PENYAMPAIAN PROSES PERUNDANGAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0",staticStyle:{"text-align":"justify"}}),t._v(" Penyampaian semua proses undang - undang adalah dianggap telah disampaikan dan diterima sekiranya telah diposkan melalui pos berdaftar yang dialamatkan kepada Tuan/Puan dialamat yang dinyatakan dalam surat tawaran ini atau kepada alamat terakhiryang diberikan oleh Tuan/Puan secara bertulis kepada kami dan proses tersebut sama ada sama tau sebaliknya adalah dianggap telah disampaikan dan diterima selepas tiga (3) hari ia diposkan . "),e("p")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyampaian proses"}},[t._v("SYARAT -SYARAT LAIN :")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0",staticStyle:{"text-align":"justify"}}),t._v(" Koperasi berhak memaklumkan sttaus / kedudukan pembiayaan ini kepada penjamin - penjamin pada bila-bila masa diperlukan sama ada bertulis atau lisan , jika berkenaan. \n ")])])},function(){var t=this,e=t._self._c;return e("section",[e("br"),t._v(" "),e("p",{staticClass:"text-secondary"}),t._v("\n Tuan/Puan dikehendaki menandatangani kesemua dokumen yang berkaitan dalam tempoh tiga puluh (30) hari dari tarikh yang dinyatakan di Surat Tawaran ini .Segala bayaran guaman dan perbelanjaan yang bersangkutan dengan urusan ini adalah di atas tanggungan Tuan/Puan walaupon Tuan/Puan memutuskan untuk tidak meneruskan urusna dokumentasi ini , selepas menandatangani tawaran ini.\n "),e("br"),t._v(" "),e("p",{staticClass:"text-secondary"}),t._v("Sekiranya pihak kami tiada menerima sebarang maklumbalas daripada pihak Tuan/Puan dalam tempoh yang ditetapkan,maka dengan sendirinya tawaran ini terbatal. \n "),e("br"),t._v(" "),e("p",{staticClass:"text-secondary"},[t._v("Sekian, terima kasih.")]),t._v(" "),e("div",{staticClass:"text-left mt-4"},[e("p",[t._v("Yang benar,")]),t._v(" "),e("div",{staticClass:"my-5",staticStyle:{height:"50px"}}),t._v("\n -------------------------------------\n "),e("p",[e("strong",[t._v("Pengurus Besar")])]),t._v(" "),e("p",[t._v("Koperasi Permodalan Kelantan Berhad")])])])},function(){var t=this,e=t._self._c;return e("label",{staticClass:"d-flex align-items-center"},[t._v("\n Saya/Kami bersetuju menerima tawaran ini dengan syarat -syarat seperti di atas . "),e("br"),t._v("Saya/Kami juga mengaku bahawa semua maklumat yang telah diberikan dalah tepat, dan masih menjadi seorang anggota /ahli Koperasi semasa menerima tawaran ini . \n ")])}],!1,null,"c88ae6a2",null).exports;const vi={data:function(){return{komoditi:"",kuantiti:"",harga:""}},methods:{saveAndNext:function(){var t={komoditi:this.komoditi,kuantiti:this.kuantiti,harga:this.harga};localStorage.setItem("formData",JSON.stringify(t)),console.log("Navigating to Kontrak Murabahah..."),this.$router.push({name:"KontrakMurabahah"})}}};var bi=n(3575),_i={insert:"head",singleton:!1};u()(bi.A,_i);bi.A.locals;const yi=(0,h.A)(vi,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"ion-text-center",on:{submit:function(e){return e.preventDefault(),t.saveAndNext.apply(null,arguments)}}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-10 col-lg-8"},[t._m(0),t._v(" "),e("form",[t._m(1),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v('\n Selaras dengan Surat Tawaran, saya dengan ini beraku janji untuk membeli komoditi yang dinyatakan di dalam Surat Tawaran Pembiayaan ("Komoditi") daripada Koperasi pada Harga Jualan yang tersebut dalam Surat Tawaran Pembiayaan ("Harga Jualan") bersama-sama dengan semua kos lain yang termasuk dengannya (termasuk tetapi tidak terhad kepada kos komoditi yang dinyatakan di dalam Surat Tawaran Pembiayaan) yang kedua-duanya akan dibayar mengikut terma-terma dan syarat-syarat Perjanjian Pembiayaan Tawarruq atau apa-apa kaedah lain yang dibenarkan oleh Koperasi.\n ')]),t._v(" "),e("br"),t._v(" "),e("p",[t._v("Saya dengan ini membuat pilihan untuk:")]),t._v(" "),e("p",[t._v("Sila tandakan (✓) jika berkenaan.")]),t._v(" "),t._m(2),t._v(" "),e("p",{staticClass:"text-center fw-bold"},[t._v("ATAU")]),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("hr"),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),e("p",[t._v("Pengesahan : ")]),t._v(" "),e("p",[t._v("[Tandatangan Pemohon] : _____________________________")]),t._v(" "),e("p",[t._v(":Nama Pemohon : ___________________________")]),t._v(" "),e("p",[t._v(" No Kad Pengenalan : _______________________")]),t._v(" "),e("div",{staticClass:"text-end mt-4"},[e("router-link",{staticClass:"btn btn-dark me-2",attrs:{to:"/"}},[t._v("Sebelum")]),t._v(" "),e("button",{staticClass:"btn btn-primary px-4",attrs:{type:"submit"},on:{click:t.saveAndNext}},[t._v(" Seterusnya")])],1)])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",staticStyle:{height:"50px"},attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h4",{staticClass:"mb-0 fw-bold"},[t._v("\n Koperasi Permodalan Kelantan Berhad (KoPKB)\n ")])]),t._v(" "),e("h5",{staticClass:"text-primary fw-semibold mt-2"},[t._v("\n AKUJANJI BELIAN KOMODITI\n ")])])},function(){var t=this._self._c;return t("p",[t("b",[this._v("Aku Janji Belian Komoditi")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check mb-3"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",id:"pilihan1"}}),t._v(" "),e("label",{staticClass:"form-check-label",staticStyle:{"text-align":"justify"},attrs:{for:"pilihan1"}},[t._v("\n Menerima penghantaran komoditi, atau menjual komoditi kepada mana-mana pihak ketiga atas kehendak saya, dengan segala kos berkaitan ditanggung oleh saya sendiri. Saya dengan ini melepaskan Koperasi daripada segala tanggungan dan beraku janji untuk menanggung kos koperasi terhadap apa-apa tindakan undang-undang termasuk menanggung rugi semua kos dan perbelanjaan atau kerosakan yang koperasi mungkin alami atau tanggung berikutan pilihan saya ini.\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check mb-3"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",id:"pilihan2"}}),t._v(" "),e("label",{staticClass:"form-check-label",staticStyle:{"text-align":"justify"},attrs:{for:"pilihan2"}},[t._v("\n Meninggalkan komoditi itu kepada koperasi dan menyerahkan kuasa kepada koperasi sebagai wakil saya untuk menjual komoditi itu kepada pihak ketiga yang difikirkan sesuai oleh koperasi pada harga sama seperti jumlah pembiayaan dalam Surat Tawaran Pembiayaan dan dengan itu mengkreditkan hasil jualan komoditi (Jumlah Pembiayaan) ke dalam akaun saya, atau diserahkan secara tunai kepada saya.\n ")])])},function(){var t=this._self._c;return t("p",[this._v("Harga Jualan (Jumlah Pembiayaan): RM "),t("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text",placeholder:""}})])},function(){var t=this._self._c;return t("p",[this._v("No. Akaun Bank:"),t("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text",placeholder:""}})])},function(){var t=this._self._c;return t("h5",{staticClass:"mt-4"},[t("strong",[this._v("PERLANTIKAN WAKIL")])])},function(){var t=this,e=t._self._c;return e("p",{staticStyle:{"text-align":"justify"}},[t._v("\n Saya dengan ini secara muktamadnya melantik "),e("b",[t._v("Koperasi Permodalan Kelantan Berhad")]),t._v(" setelah Surat Tawaran Pembiayaan dipersetujui sebagai wakil saya untuk menjual komoditi seperti yang dinyatakan didalam Surat Tawaran kepada mana -mana pihak pembeli ketiga yang difikirkan sesuai oleh Koperasi melalui platform Bursa Suq Al-Sila'(BSAS) atau mana -mana platform yang difikirkan sesuai .\n ")])}],!1,null,"05649db8",null).exports;const wi={data:function(){return{formData:null,nama:"",ic:""}},mounted:function(){var t=localStorage.getItem("formData");t&&(this.formData=JSON.parse(t),console.log("Loaded data:",this.formData))},methods:{cetak:function(){this.$nextTick((function(){var t=document.getElementById("permohonan");if(t){var e=window.open("","","width=1000,height=800");e.document.write('\n <html>\n <head>\n <title>Cetak Permohonan</title>\n <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">\n <style>\n body { font-family: Arial, sans-serif; margin: 20px; font-size: 12px; color: #000; }\n table, th, td {\n border: 1px solid #000; border-collapse: collapse; padding: 6px;\n }\n th { background-color: #f8f9fa; }\n .signature-line {\n display: inline-block;\n width: 200px;\n border-bottom: 1px solid #000;\n margin-left: 10px;\n }\n @media print {\n button { display: none !important; }\n }\n </style>\n </head>\n <body>'.concat(t.outerHTML,"</body>\n </html>\n ")),e.document.close(),e.onload=function(){e.focus(),e.print(),e.close()}}else alert("Ralat: Elemen #permohonan tidak ditemui!")}))}}};var xi=n(1293),ki={insert:"head",singleton:!1};u()(xi.A,ki);xi.A.locals;const Ai=(0,h.A)(wi,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"ion-text-center",on:{submit:function(e){return e.preventDefault(),t.submitForm.apply(null,arguments)}}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[t._m(0),t._v(" "),e("br"),t._v(" "),e("link",{attrs:{href:"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css",rel:"stylesheet"}}),t._v(" "),e("div",{staticClass:"button-container text-center mt-4"},[e("button",{staticClass:"btn btn-primary px-4",attrs:{type:"button"},on:{click:t.simpan}},[t._v("\n Simpan\n ")]),t._v(" "),e("button",{staticClass:"btn btn-success px-4",attrs:{type:"button"},on:{click:t.cetak}},[e("i",{staticClass:"bi bi-printer"}),t._v(" Cetak Permohonan\n ")])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-10 col-lg-8",attrs:{id:"permohonan"}},[e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",staticStyle:{height:"40px"},attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h6",{staticClass:"mb-0 fw-bold"},[t._v("\n Koperasi Permodalan Kelantan Berhad (KoPKB)\n ")])]),t._v(" "),e("h6",{staticClass:"text-primary fw-semibold mt-2"},[t._v("\n KONTRAK JUALAN MURABAHAH\n ")])]),t._v(" "),e("p",{staticClass:"ion-text-center"},[t._v("Pihak -pihak yang terlibat di dalam Kontrak Jualan Murabahah ini adalah : ")]),t._v(" "),e("ol",{staticClass:"ion-text-center",staticStyle:{"list-style-position":"inside"}},[e("li",[e("b",[t._v("KOPERASI PERMODALAN KELANTAN BERHAD (KoPKB) ")]),t._v(" selepas ini akan dinyatakan sebagai "),e("strong",[t._v("('Koperasi')")]),t._v(" dan ,")]),t._v(" "),e("li",[t._v("Anggota yang bernama dan mempunyai No Kad Pengenalan sebagaimana yang dinyatakan dalam Bahagian 2 Jadual A,selepas ini dinyatakan sebagai "),e("strong",[t._v("('Pelanggan')")])]),t._v(" "),e("br"),t._v(" "),e("p",[t._v(" Dengan ini, pihak - pihak yang dinyatakan di atas "),e("b",[t._v("BERSETUJU DAN MENGISYTIHARKAN")]),t._v(" seperti berikut : ")]),t._v(" "),e("ol",{staticClass:"ion-text-center",staticStyle:{"list-style-position":"inside"}},[e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("JUALAN KOMODITI")])])]),t._v(" "),e("br"),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("Berdasarkan kepada Surat Tawaran bertarikh "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"date",placeholder:"<tarikh>"}}),t._v(" dan Aku Janji yang dikeluarkan oleh Pelanggan kepada Koperasi , Koperasi dengan ini menjual dan Pelanggan dengan ini membeli komoditi (butiran yang mana adalah seperti yang dinyatakan pada Bahagian 3 Jadual A didalam Perjanjian ini) ('Komoditi') pada Harga Jualan yang dinyatakan pada Bahgaian 4 Jadual A didalam Perjanjian ini.\n ('Harga Jualan') yang merangkumi Harga Kos Koperasi seperti yang dinyatakan pada Bahagian 5 Jadual A di dalam Perjanjian ini dan margin keuntungan dengan pembayaran secara tangguh tertakluk kepada terma dan syarat di dalam Surat Tawaran. )")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PEMINDAHAN HAK MILIK")])])]),t._v(" "),e("ol",{staticStyle:{"list-style-position":"inside"},attrs:{type:"a"}},[e("li",{staticStyle:{"text-align":"justify","text-justify":"inter-word"}},[t._v("Setelah pemeteraian Kontrak Jualan Murabahah ini disempurnakan, liabiliti dan hak pemilikan bermanfaat terhadap komoditi hendaklah dengan segera diserahkan kepada Pelanggan. \n ")]),t._v(" "),e("li",{staticStyle:{"text-align":"justify","text-justify":"inter-word"}},[t._v("Koperasi hendaklah menyimpan sijil yang berkaitan dengan Komoditi (Lampiran1 ) dalam jagaannya sebagai pemegang amanah bagi kepentingan Pelanggan untuk tujuan penjualan komoditi seterusnya kepaga peniaga komoditi sepetimana yang dinyatakan di dalam Surat Perlantikan Wakil yang dikeluarkan oleh Pelanggan kepada Koperasi .Pelanggan mempunyai hak untuk memeriksa perakuan tersebut di premis Koperasi atau memohon Koperasi untuk memberikan satu salinan sijil tersebut kepada pelanggan melalui permohonan bertulis kepada Koperasi . \n ")])]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PEMBAYARAN HARGA JUALAN")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" Pembayaran Harga Jualan oleh Pelanggan kepada Koperasi hendaklah sebagaimana yang dinyatakan di dalam Bahagian 6 Jadual A kepada Perjanjian ini. ")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("TERMA DAN SYARAT")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("Terma dan syarat yang dinyatakan dalam Surat Tawaran , Aku Janji , Surat Perlantikan Wakil bersama -sama dokumen undang - undang yang berkaitan dengan ini mengikat diantara Pelanggan dan Koperasi . ")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PELANGGAN")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("\n Saya dengan ini bersetuju untuk membeli Komoditi seperti butiran yang dinyatakan pada Bahagian 3 dalam Jadual A di dalam Perjanjian ini dengan Harga Jualan yang dinyatakan pada Bahagian 4 Jadual A di dalam Perjanjian ini, secara pembayaran tertangguh yang dinyatakan pada Bahagian 6 Jadual A di dalam Perjanjian ini.\n")])])]),t._v(" "),e("div",{staticClass:"row mt-5 text-start"},[e("div",{staticClass:"col-md-6"},[e("strong",[t._v("Anggota Pemohon / Pembeli")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tandatangan:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Nama:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tarikh:")]),t._v(" "),e("span",{staticClass:"signature-line"})])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"page-break"},[e("div",{staticClass:"col-md-6"},[e("strong",[t._v("KOPERASI")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tandatangan:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Nama:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tarikh:")]),t._v(" "),e("span",{staticClass:"signature-line"})])])]),t._v(" "),e("hr"),t._v(" "),e("table",{staticClass:"print-table"},[e("thead",{staticStyle:{"background-color":"#f2f2f2"}},[e("tr",[e("th",[t._v("Bahagian")]),t._v(" "),e("th",[t._v("Perkara")]),t._v(" "),e("th",[t._v("Maklumat")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("1")]),t._v(" "),e("td",[t._v("Tarikh Kontrak Jualan Murabahah")]),t._v(" "),e("td",[e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"date"}})])]),t._v(" "),e("tr",[e("td",[t._v("2")]),t._v(" "),e("td",[t._v("Nama dan No. K/P Pelanggan")]),t._v(" "),e("td",[e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}})])]),t._v(" "),e("tr",[e("td",[t._v("3")]),t._v(" "),e("td",[t._v("Butiran komoditi")]),t._v(" "),e("td",[t._v("Cert No: "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}})])]),t._v(" "),e("tr",[e("td",[t._v("4")]),t._v(" "),e("td",[t._v("Harga Jualan")]),t._v(" "),e("td",[t._v("RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}})])]),t._v(" "),e("tr",[e("td",[t._v("5")]),t._v(" "),e("td",[t._v("Harga Kos Koperasi")]),t._v(" "),e("td",[t._v("RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}})])]),t._v(" "),e("tr",[e("td",[t._v("6")]),t._v(" "),e("td",[t._v("Pembayaran Harga Jualan")]),t._v(" "),e("td",[t._v("\n Ringgit Malaysia "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}}),t._v("\n (RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v(")\n hanya perlu dibayar oleh Pelanggan kepada Koperasi sebanyak RM\n "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v("\n secara ansuran bulanan selama\n "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v(" bulan.\n ")])])])])])])}],!1,null,null,null).exports;const Si={name:"CetakPermohonan",components:{Pembiayaan:gi,BelianKomoditi:yi,KontrakMurabahah:Ai},mounted:function(){setTimeout((function(){return window.print()}),500)},methods:{cetak:function(){this.$router.push("/cetakpermohonan")}}};function Ci(t){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(t)}function Ei(){Ei=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new P(a||[]);return r(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,i,o,s){var l=f(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ci(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function C(e,n,a){var r=d;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===d)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=f(e,n,a);if("normal"===c.type){if(r=a.done?m:h,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=f(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ci(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function Ti(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}const Ni={name:"ManagePenyata",data:function(){return{penyata:[],loading:!1,searchNoAnggota:"",penyataTableHeaders:[{title:"No Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Nama",key:"name",sortable:!0},{title:"Tindakan",key:"aksi",sortable:!1}],meta:{current_page:1,last_page:1}}},mounted:function(){this.getPenyata()},methods:{getPenyata:function(){var t,e=arguments,n=this;return(t=Ei().mark((function t(){var a,r;return Ei().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:1,n.loading=!0,t.prev=2,t.next=5,jn.get("/api/v1/voter",{params:{page:a,no_anggota:n.searchNoAnggota}});case 5:r=t.sent,n.penyata=r.data.data,n.meta.current_page=r.data.current_page,n.meta.last_page=r.data.last_page,t.next=15;break;case 11:t.prev=11,t.t0=t.catch(2),console.error(t.t0),alert("Gagal ambil senarai penyata");case 15:return t.prev=15,n.loading=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,11,15,18]])})),function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){Ti(i,a,r,o,s,"next",t)}function s(t){Ti(i,a,r,o,s,"throw",t)}o(void 0)}))})()},changePage:function(t){this.getPenyata(t)},searchPenyata:function(){this.getPenyata(1)},resetSearch:function(){this.searchNoAnggota="",this.getPenyata(1)},bolehCetak:function(t){return["DISAHKAN","PERLU_SEMAK"].includes(t)},cetakPDF:function(t){jn({url:"/api/v1/penyata/".concat(t,"/pdf"),method:"GET",responseType:"blob"}).then((function(t){var e=new Blob([t.data],{type:"application/pdf"}),n=URL.createObjectURL(e);window.open(n)})).catch((function(t){console.error(t),alert("Gagal jana PDF.")}))}}},Pi=Ni;const Li=[{path:"/",component:k,children:[{path:"",component:R,name:"Voter Home"},{path:"calon",component:H,name:"Voter Calon"},{path:"mat27",component:Z,name:"Mat"},{path:"vote",component:rt,name:"Vote"},{path:"result",component:lt,name:"Result"},{path:"attendance",component:dt,name:"Attendance"},{path:"zoom",component:gt,name:"Zoom"},{path:"/penyata/:no_anggota",name:"penyata",component:$n}]},{path:"/login",component:p,name:"Voter Login"},{path:"/verification",component:_,name:"Voter Verify"},{path:"/display/kod-fizikal",component:Jn,name:"Physical Gate Display"},{path:"/demo/roulette",component:ua,name:"Roulette Wheel Demo"},{path:"/admin/login",component:pa,name:"Admin Login"},{path:"/admin",component:ba,children:[{path:"result/:election_id",component:xa,name:"Election Result"},{path:"activity-log",component:Ca,name:"Activity Log"},{path:"",component:Ta,children:[{path:"",component:Oa,name:"Admin Home"},{path:"result",component:ja,name:"Current Result"}]},{path:"position",component:Ua,children:[{path:"",component:qa,name:"Kemaskini Jawatan"},{path:"add",component:Ka,name:"Tambah Jawatan"},{path:"edit/:id",component:$a,name:"Edit Position"}]},{path:"partylist",component:Ya,children:[{path:"",component:Qa,name:"Manage Partylist"},{path:"add",component:er,name:"Add Partylist"},{path:"edit/:id",component:ar,name:"Edit Partylist"}]},{path:"voter",component:sr,children:[{path:"",component:dr,name:"Manage Voter"},{path:"add",component:vr,name:"Tambah Pengundi"},{path:"edit/:id",component:_r,name:"Edit Voter"},{path:"kehadiran",component:Ar,name:"Kehadiran Calon"},{path:"fizikal",component:Tr,name:"Fizikal"},{path:"maya",component:Or,name:"Maya"},{path:"viewkehadiran",component:Fr,name:"Calon Hadir"}]},{path:"nominee",component:jr,children:[{path:"",component:Wr,name:"Maklumat Calon"},{path:"add",component:Yr,name:"Tambah Calon"},{path:"edit/:id",component:ei,name:"Edit Nominee"}]},{path:"/account",component:ai,children:[{path:"",component:oi,name:"Manage Account"},{path:"update",component:li,name:"Update Account"},{path:"password",component:ui,name:"Update Password"},{path:"add",component:di,name:"Add Account"},{path:"/pembiayaan",name:"Pembiayaan",component:gi},{path:"/beliankomoditi",name:"BelianKomoditi",component:yi},{path:"/kontrakmurabahah",name:"KontrakMurabahah",component:Ai},{path:"/cetakpermohonan",name:"CetakPermohonan",component:(0,h.A)(Si,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"cetak-page"},[e("ManagePembiayaan"),t._v(" "),e("ManageBelianKomoditi"),t._v(" "),e("ManageKontrakMurabahah")],1)}),[],!1,null,null,null).exports},{path:"/penyata-anggota",name:"Penyata Anggota",component:(0,h.A)(Pi,(function(){var t=this,e=t._self._c;return e("div",[e("admin-data-table",{attrs:{headers:t.penyataTableHeaders,items:t.penyata,loading:t.loading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada data penyata",exportable:!0},scopedSlots:t._u([{key:"item-aksi",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button",disabled:!t.bolehCetak(a.status_penyata)},on:{click:function(e){return t.cetakPDF(a.no_anggota)}}},[t._v("\n PDF\n ")])]}}])}),t._v(" "),t.meta.last_page>1?e("div",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-default btn-sm",attrs:{disabled:1===t.meta.current_page},on:{click:function(e){return t.changePage(t.meta.current_page-1)}}},[t._v("\n Sebelumnya\n ")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{disabled:t.meta.current_page===t.meta.last_page},on:{click:function(e){return t.changePage(t.meta.current_page+1)}}},[t._v("\n Seterusnya\n ")])]):t._e()],1)}),[],!1,null,null,null).exports},{path:"/:pathMatch(.*)*",name:"NotFound",component:{template:'<div class="text-center mt-5">Not found: {{ $route.path }}</div>'}}]}]}];var Oi=n(4325),Ri=n.n(Oi);n(7318),n(5579),Vue.component("v-otp-input",Ri()),Vue.use(VueRouter),Vue.mixin(s),Vue.use(Ri());var Ii=new VueRouter({mode:"history",linkActiveClass:"active",routes:Li});Ii.beforeEach((function(t,e,n){return t.path.startsWith("/admin")&&"Admin Login"!==t.name&&localStorage.getItem("Access Token")?"3"===localStorage.getItem("admin_role")&&"Kehadiran Calon"!==t.name?n({name:"Kehadiran Calon",replace:!0}):void n():n()}));new Vue({router:Ii}).$mount("#app")},7318:(t,e,n)=>{window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",n(7633)},7633:(t,e,n)=>{var a=function(t){return t.default||t};Vue.component("modal",a(n(8881))),Vue.component("modal-header",a(n(8348))),Vue.component("modal-body",a(n(3228))),Vue.component("modal-footer",a(n(3179))),Vue.component("uploader",a(n(7725))),Vue.component("admin-data-table",a(n(5793)))},5579:()=>{window.innerWidth<=768&&(window.addEventListener("click",(function(t){var e=document.getElementById("myNavbar");t.target.matches(".navbar-toggler")||e.classList.remove("in")})),window.addEventListener("scroll",(function(){document.getElementById("myNavbar").classList.remove("in")})))},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],a=e[1];return 3*(n+a)/4-a},e.toByteArray=function(t){var e,n,i=s(t),o=i[0],l=i[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,o,l)),u=0,f=l>0?o-4:o;for(n=0;n<f;n+=4)e=a[t.charCodeAt(n)]<<18|a[t.charCodeAt(n+1)]<<12|a[t.charCodeAt(n+2)]<<6|a[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===l&&(e=a[t.charCodeAt(n)]<<2|a[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===l&&(e=a[t.charCodeAt(n)]<<10|a[t.charCodeAt(n+1)]<<4|a[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,a=t.length,r=a%3,i=[],o=16383,s=0,c=a-r;s<c;s+=o)i.push(l(t,s,s+o>c?c:s+o));1===r?(e=t[a-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[a-2]<<8)+t[a-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],a=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],a[i.charCodeAt(o)]=o;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,a){for(var r,i,o=[],s=e;s<a;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(i=r)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},8287:(t,e,n)=>{"use strict";var a=n(7526),r=n(251),i=n(4634);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,n)}function c(t,e,n,a){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,a){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(a||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===a?new Uint8Array(e):void 0===a?new Uint8Array(e,n):new Uint8Array(e,n,a);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,n,a):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var a=0|p(e,n);t=s(t,a);var r=t.write(e,n);r!==a&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|h(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(a=e.length)!=a?s(t,0):d(t,e);if("Buffer"===e.type&&i(e.data))return d(t,e.data)}var a;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(u(e),t=s(t,e<0?0:0|h(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|h(e.length);t=s(t,n);for(var a=0;a<n;a+=1)t[a]=255&e[a];return t}function h(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(l.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 n=t.length;if(0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(a)return z(t).length;e=(""+e).toLowerCase(),a=!0}}function m(t,e,n){var a=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,n){var a=t[e];t[e]=t[n],t[n]=a}function v(t,e,n,a,r){if(0===t.length)return-1;if("string"==typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,a)),l.isBuffer(e))return 0===e.length?-1:b(t,e,n,a,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,a,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,a,r){var i,o=1,s=t.length,l=e.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(i=n;i<s;i++)if(c(t,i)===c(e,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(c(t,i+d)!==c(e,d)){f=!1;break}if(f)return i}return-1}function _(t,e,n,a){n=Number(n)||0;var r=t.length-n;a?(a=Number(a))>r&&(a=r):a=r;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o<a;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function y(t,e,n,a){return q(z(e,t.length-n),t,n,a)}function w(t,e,n,a){return q(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,a)}function x(t,e,n,a){return w(t,e,n,a)}function k(t,e,n,a){return q(H(e),t,n,a)}function A(t,e,n,a){return q(function(t,e){for(var n,a,r,i=[],o=0;o<t.length&&!((e-=2)<0);++o)a=(n=t.charCodeAt(o))>>8,r=n%256,i.push(r),i.push(a);return i}(e,t.length-n),t,n,a)}function S(t,e,n){return 0===e&&n===t.length?a.fromByteArray(t):a.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var a=[],r=e;r<n;){var i,o,s,l,c=t[r],u=null,f=c>239?4:c>223?3:c>191?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[r+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=t[r+1],o=t[r+2],128==(192&i)&&128==(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[r+1],o=t[r+2],s=t[r+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),r+=f}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",a=0;for(;a<e;)n+=String.fromCharCode.apply(String,t.slice(a,a+=E));return n}(a)}e.hp=l,e.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),o(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,a){return u(e),e<=0?s(t,e):void 0!==n?"string"==typeof a?s(t,e).fill(n,a):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,a=e.length,r=0,i=Math.min(n,a);r<i;++r)if(t[r]!==e[r]){n=t[r],a=e[r];break}return n<a?-1:a<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var a=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(a,r),r+=o.length}return a},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.IS;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,a,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===a&&(a=0),void 0===r&&(r=this.length),e<0||n>t.length||a<0||r>this.length)throw new RangeError("out of range index");if(a>=r&&e>=n)return 0;if(a>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(a>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(i,o),c=this.slice(a,r),u=t.slice(e,n),f=0;f<s;++f)if(c[f]!==u[f]){i=c[f],o=u[f];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,a){if(void 0===e)a="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)a=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===a&&(a="utf8")):(a=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;r<n;++r)a+=String.fromCharCode(127&t[r]);return a}function N(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;r<n;++r)a+=String.fromCharCode(t[r]);return a}function P(t,e,n){var a=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>a)&&(n=a);for(var r="",i=e;i<n;++i)r+=U(t[i]);return r}function L(t,e,n){for(var a=t.slice(e,n),r="",i=0;i<a.length;i+=2)r+=String.fromCharCode(a[i]+256*a[i+1]);return r}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,a,r,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<i)throw new RangeError('"value" argument is out of bounds');if(n+a>t.length)throw new RangeError("Index out of range")}function I(t,e,n,a){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-n,2);r<i;++r)t[n+r]=(e&255<<8*(a?r:1-r))>>>8*(a?r:1-r)}function M(t,e,n,a){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-n,4);r<i;++r)t[n+r]=e>>>8*(a?r:3-r)&255}function F(t,e,n,a,r,i){if(n+a>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,a,i){return i||F(t,0,n,4),r.write(t,e,n,a,23,4),n+4}function j(t,e,n,a,i){return i||F(t,0,n,8),r.write(t,e,n,a,52,8),n+8}l.prototype.slice=function(t,e){var n,a=this.length;if((t=~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),(e=void 0===e?a:~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t],r=1,i=0;++i<e&&(r*=256);)a+=this[t+i]*r;return a},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t+--e],r=1;e>0&&(r*=256);)a+=this[t+--e]*r;return a},l.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t],r=1,i=0;++i<e&&(r*=256);)a+=this[t+i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=e,r=1,i=this[t+--a];a>0&&(r*=256);)i+=this[t+--a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,a){(t=+t,e|=0,n|=0,a)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[e]=255&t;++i<n&&(r*=256);)this[e+i]=t/r&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,a){(t=+t,e|=0,n|=0,a)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[e+r]=255&t;--r>=0&&(i*=256);)this[e+r]=t/i&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,a){if(t=+t,e|=0,!a){var r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}var i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,a){if(t=+t,e|=0,!a){var r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}var i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,a){if(n||(n=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<n&&(a=n),a===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-n&&(a=t.length-e+n);var r,i=a-n;if(this===t&&n<e&&e<a)for(r=i-1;r>=0;--r)t[r+e]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},l.prototype.fill=function(t,e,n,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,n=this.length):"string"==typeof n&&(a=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!l.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=l.isBuffer(t)?t:z(new l(t,a).toString()),s=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var a=t.length,r=null,i=[],o=0;o<a;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(e-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(t){return a.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,a){for(var r=0;r<a&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},4213:function(t,e,n){var a,r,i;r=[],void 0===(i="function"==typeof(a=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function a(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){l(a.response,e,n)},a.onerror=function(){console.error("could not download file")},a.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):r(l.href)?a(t,e,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(r(t))a(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,n);var i="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l})?a.apply(e,r):a)||(t.exports=i)},251:(t,e)=>{e.read=function(t,e,n,a,r){var i,o,s=8*r-a-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?r-1:0,d=n?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=256*o+t[e+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,a),i-=c}return(h?-1:1)*o*Math.pow(2,i-a)},e.write=function(t,e,n,a,r,i){var o,s,l,c=8*i-r-1,u=(1<<c)-1,f=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:i-1,p=a?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,r),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;t[n+h]=255&s,h+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;t[n+h]=255&o,h+=p,o/=256,c-=8);t[n+h-p]|=128*m}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},6129:(t,e,n)=>{"use strict";var a=d(n(9368)),r=d(n(1490)),i=d(n(8165)),o=d(n(3623)),s=d(n(8179)),l=d(n(9796)),c=d(n(4205)),u=n(8157),f=d(n(5099));function d(t){return t&&t.__esModule?t:{default:t}}var h=function(){},p=function(t,e,n){var a=new h;if(void 0===t)throw Error("No element to render on was provided.");return a._renderProperties=(0,s.default)(t),a._encodings=[],a._options=f.default,a._errorHandler=new c.default(a),void 0!==e&&((n=n||{}).format||(n.format=b()),a.options(n)[n.format](e,n).render()),a};for(var m in p.getModule=function(t){return a.default[t]},a.default)a.default.hasOwnProperty(m)&&g(a.default,m);function g(t,e){h.prototype[e]=h.prototype[e.toUpperCase()]=h.prototype[e.toLowerCase()]=function(n,a){var i=this;return i._errorHandler.wrapBarcodeCall((function(){a.text=void 0===a.text?void 0:""+a.text;var o=(0,r.default)(i._options,a);o=(0,l.default)(o);var s=t[e],c=v(n,s,o);return i._encodings.push(c),i}))}}function v(t,e,n){var a=new e(t=""+t,n);if(!a.valid())throw new u.InvalidInputException(a.constructor.name,t);var o=a.encode();o=(0,i.default)(o);for(var s=0;s<o.length;s++)o[s].options=(0,r.default)(n,o[s].options);return o}function b(){return a.default.CODE128?"CODE128":Object.keys(a.default)[0]}function _(t,e,n){e=(0,i.default)(e);for(var a=0;a<e.length;a++)e[a].options=(0,r.default)(n,e[a].options),(0,o.default)(e[a].options);(0,o.default)(n),new(0,t.renderer)(t.element,e,n).render(),t.afterRender&&t.afterRender()}h.prototype.options=function(t){return this._options=(0,r.default)(this._options,t),this},h.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},h.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var n=(0,r.default)(this._options,t.options);"auto"==n.format&&(n.format=b()),this._errorHandler.wrapBarcodeCall((function(){var e=v(n.value,a.default[n.format.toUpperCase()],n);_(t,e,n)}))}},h.prototype.render=function(){if(!this._renderProperties)throw new u.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)_(this._renderProperties[t],this._encodings,this._options);else _(this._renderProperties,this._encodings,this._options);return this},h.prototype._defaults=f.default,"undefined"!=typeof window&&(window.JsBarcode=p),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each((function(){n.push(this)})),p(n,t,e)}),t.exports=p},2444:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}},3651:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return a.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,n=t.shift()-105,a=s.SET_BY_CODE[n];if(void 0===a)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(s.FNC1);var r=e.next(t,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+r.result+e.getBar((r.checksum+n)%s.MODULO)+e.getBar(s.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return s.BARS[t]?s.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===s.SET_A){var n=t.shift();return n<32?n+64:n-32}return e===s.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,n,a){if(!t.length)return{result:"",checksum:0};var r=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var o=s.SWAP[i];void 0!==o?r=e.next(t,n+1,o):(a!==s.SET_A&&a!==s.SET_B||i!==s.SHIFT||(t[0]=a===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),r=e.next(t,n+1,a))}else i=e.correctIndex(t,a),r=e.next(t,n+1,a);var l=i*n;return{result:e.getBar(i)+r.result,checksum:l+r.checksum}}}]),e}(o.default);e.default=l},3804:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.A_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.A_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},3541:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.B_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.B_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},5798:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.C_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.C_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},4845:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(n(3651)),r=i(n(4802));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(t,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var a=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,r.default)(t),n));else a=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o(a)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},4802:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(2700),r=function(t){return t.match(new RegExp("^"+a.A_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+a.B_CHARS+"*"))[0].length},o=function(t){return t.match(new RegExp("^"+a.C_CHARS+"*"))[0]};function s(t,e){var n=e?a.A_CHARS:a.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+l(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+s(t.substring(i.length),!e)}function l(t){var e=o(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var a=r(t)>=i(t);return e+String.fromCharCode(a?206:205)+s(t,a)}e.default=function(t){var e=void 0;if(o(t).length>=2)e=a.C_START_CHAR+l(t);else{var n=r(t)>i(t);e=(n?a.A_START_CHAR:a.B_START_CHAR)+s(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},2700:(t,e)=>{"use strict";var n;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var r=e.SET_A=0,i=e.SET_B=1,o=e.SET_C=2,s=(e.SHIFT=98,e.START_A=103),l=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(a(n={},s,r),a(n,l,i),a(n,c,o),n),e.SWAP={101:r,100:i,99:o},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},1509:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var a=s(n(4845)),r=s(n(3804)),i=s(n(3541)),o=s(n(5798));function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=a.default,e.CODE128A=r.default,e.CODE128B=i.default,e.CODE128C=o.default},1428:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),n.mod43&&(t+=function(t){return s[t]}(function(t){for(var e=0,n=0;n<t.length;n++)e+=u(t[n]);return e%=43}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=c("*"),e=0;e<this.data.length;e++)t+=c(this.data[e])+"0";return{data:t+=c("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default),s=["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","-","."," ","$","/","+","%","*"],l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function c(t){return function(t){return l[t].toString(2)}(u(t))}function u(t){return s.indexOf(t)}e.CODE39=o},1087:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(6929),o=n(2444);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.data.split("").flatMap((function(t){return i.MULTI_SYMBOLS[t]||t})),n=t.map((function(t){return e.getEncoding(t)})).join(""),a=e.checksum(t,20),r=e.checksum(t.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(r)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(t){return i.BINARIES[e.symbolValue(t)]}},{key:"getSymbol",value:function(t){return i.SYMBOLS[t]}},{key:"symbolValue",value:function(t){return i.SYMBOLS.indexOf(t)}},{key:"checksum",value:function(t,n){var a=t.slice().reverse().reduce((function(t,a,r){var i=r%n+1;return t+e.symbolValue(a)*i}),0);return e.getSymbol(a%47)}}]),e}(((a=o)&&a.__esModule?a:{default:a}).default);e.default=s},1271:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1087);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.default=o},6929:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SYMBOLS=["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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],e.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],e.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"":["($)","G"],"\b":["($)","H"],"\t":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}},9852:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE93FullASCII=e.CODE93=void 0;var a=i(n(1087)),r=i(n(1271));function i(t){return t&&t.__esModule?t:{default:t}}e.CODE93=a.default,e.CODE93FullASCII=r.default},4754:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=o(n(6350));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:r.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:r.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:r.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[r.SIDE_BIN,this.leftEncode(),r.MIDDLE_BIN,this.rightEncode(),r.SIDE_BIN].join(""),text:this.text}}}]),e}(o(n(2444)).default);e.default=s},4250:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=function t(e,n,a){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,a)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(a):void 0},o=n(6575),s=n(4754),l=(a=s)&&a.__esModule?a:{default:a};var c=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+3*e:t+e}),0)%10)%10},u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=c(t));var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.lastChar=n.lastChar,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===c(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),n=o.EAN13_STRUCTURE[this.data[0]];return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,n)}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(l.default);e.default=u},7570:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=o(n(6350));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(o(n(2444)).default);e.default=s},8075:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=s(n(6350)),o=s(n(2444));function s(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=r.EAN5_STRUCTURE[(t=this.data,t.split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+9*e:t+3*e}),0)%10)];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),e}(o.default);e.default=l},8784:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=function t(e,n,a){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,a)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(a):void 0},o=n(4754),s=(a=o)&&a.__esModule?a:{default:a};var l=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+e:t+3*e}),0)%10)%10},c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=l(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===l(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(s.default);e.default=c},7960:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();e.checksum=s;var r=i(n(6350));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=s(t));var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.displayValue=n.displayValue,n.fontSize>10*n.width?a.fontSize=10*n.width:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==s(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,r.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,r.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,r.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,r.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(i(n(2444)).default);function s(t){var e,n=0;for(e=1;e<11;e+=2)n+=parseInt(t[e]);for(e=0;e<11;e+=2)n+=3*parseInt(t[e]);return(10-n%10)%10}e.default=o},3781:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=s(n(6350)),i=s(n(2444)),o=n(7960);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],u=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(a.isValid=!1,-1!==t.search(/^[0-9]{6}$/))a.middleDigits=t,a.upcA=d(t,"0"),a.text=n.text||""+a.upcA[0]+t+a.upcA[a.upcA.length-1],a.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return l(a);if(a.middleDigits=t.substring(1,t.length-1),a.upcA=d(a.middleDigits,t[0]),a.upcA[a.upcA.length-1]!==t[t.length-1])return l(a);a.isValid=!0}return a.displayValue=n.displayValue,n.fontSize>10*n.width?a.fontSize=10*n.width:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=u[parseInt(e)][parseInt(t)];return(0,r.default)(this.middleDigits,n)}}]),e}(i.default);function d(t,e){for(var n=parseInt(t[t.length-1]),a=c[n],r="",i=0,s=0;s<a.length;s++){var l=a[s];r+="X"===l?t[i++]:l}return""+(r=""+e+r)+(0,o.checksum)(r)}e.default=f},6575:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},6350:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(6575);e.default=function(t,e,n){var r=t.split("").map((function(t,n){return a.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var i=t.length-1;r=r.map((function(t,e){return e<i?t+n:t}))}return r.join("")}},5726:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var a=c(n(4250)),r=c(n(8784)),i=c(n(8075)),o=c(n(7570)),s=c(n(7960)),l=c(n(3781));function c(t){return t&&t.__esModule?t:{default:t}}e.EAN13=a.default,e.EAN8=r.default,e.EAN5=i.default,e.EAN2=o.default,e.UPC=s.default,e.UPCE=l.default},1886:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.GenericBarcode=o},739:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1135),o=n(2444);var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=i.BINARIES[t[1]];return i.BINARIES[t[0]].split("").map((function(t,n){return("1"===t?"111":"1")+("1"===e[n]?"000":"0")})).join("")}}]),e}(((a=o)&&a.__esModule?a:{default:a}).default);e.default=s},8122:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(739),o=(a=i)&&a.__esModule?a:{default:a};var s=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,n){return t+e*(3-n%2*2)}),0);return 10*Math.ceil(e/10)-e},l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=s(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===s(this.data)}}]),e}(o.default);e.default=l},1135:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},5070:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var a=i(n(739)),r=i(n(8122));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=a.default,e.ITF14=r.default},3551:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var n=parseInt(this.data[e]).toString(2);n=s(n,4-n.length);for(var a=0;a<n.length;a++)t+="0"==n[a]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);function s(t,e){for(var n=0;n<e;n++)t="0"+t;return t}e.default=o},6338:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},23:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod10)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},6065:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},7052:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod11)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},6320:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n<t.length;n++){var a=parseInt(t[n]);(n+t.length)%2==0?e+=a:e+=2*a%10+Math.floor(2*a/10)}return(10-e%10)%10},e.mod11=function(t){for(var e=0,n=[2,3,4,5,6,7],a=0;a<t.length;a++){var r=parseInt(t[t.length-1-a]);e+=n[a%n.length]*r}return(11-e%11)%11}},8248:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var a=l(n(3551)),r=l(n(6338)),i=l(n(6065)),o=l(n(23)),s=l(n(7052));function l(t){return t&&t.__esModule?t:{default:t}}e.MSI=a.default,e.MSI10=r.default,e.MSI11=i.default,e.MSI1010=o.default,e.MSI1110=s.default},1133:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return a.text=a.options.text||a.text.replace(/[A-D]/g,""),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),n=0;n<this.data.length;n++)t.push(e[this.data.charAt(n)]),n!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.codabar=o},9368:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(1428),r=n(1509),i=n(5726),o=n(5070),s=n(8248),l=n(2889),c=n(1133),u=n(9852),f=n(1886);e.default={CODE39:a.CODE39,CODE128:r.CODE128,CODE128A:r.CODE128A,CODE128B:r.CODE128B,CODE128C:r.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:o.ITF14,ITF:o.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:l.pharmacode,codabar:c.codabar,CODE93:u.CODE93,CODE93FullASCII:u.CODE93FullASCII,GenericBarcode:f.GenericBarcode}},2889:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.number=parseInt(t,10),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.pharmacode=o},4205:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return n(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}();e.default=a},8157:(t,e)=>{"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(t,r){n(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return r(e,Error),e}(),o=function(t){function e(){n(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return r(e,Error),e}(),s=function(t){function e(){n(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return r(e,Error),e}();e.InvalidInputException=i,e.InvalidElementException=o,e.NoElementException=s},3623:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},892:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(n(9796)),r=i(n(5099));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var n in r.default)r.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,a.default)(e)}},8179:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=s(n(892)),i=s(n(2727)),o=n(8157);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var n=[],a=0;a<e.length;a++)n.push(l(e[a]));return n}(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(l(t[n]));return e}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return s=t,{element:c=document.createElement("canvas"),options:(0,r.default)(s),renderer:i.default.CanvasRenderer,afterRender:function(){s.setAttribute("src",c.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,r.default)(t),renderer:i.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,r.default)(t),renderer:i.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:i.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":a(t))&&!t.nodeName)return{element:t,renderer:i.default.ObjectRenderer};throw new o.InvalidElementException;var s,c}e.default=l},8165:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var a=0;a<n.length;a++)t(n[a]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}(t),e}},1490:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default=function(t,e){return n({},t,e)}},9796:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&"string"==typeof t[n=e[n]]&&(t[n]=parseInt(t[n],10));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},5099:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};e.default=n},1687:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1490),o=(a=i)&&a.__esModule?a:{default:a},s=n(6258);var l=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=n,this.options=a}return r(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,o.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,s.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,s.getTotalWidthOfEncodings)(this.encodings),n=(0,s.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var n,a=this.canvas.getContext("2d"),r=e.data;n="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,a.fillStyle=t.lineColor;for(var i=0;i<r.length;i++){var o=i*t.width+e.barcodePadding;"1"===r[i]?a.fillRect(o,n,t.width,t.height):r[i]&&a.fillRect(o,n,t.width,t.height*r[i])}}},{key:"drawCanvasText",value:function(t,e){var n,a,r=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(a="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,r.font=i,"left"==t.textAlign||e.barcodePadding>0?(n=0,r.textAlign="left"):"right"==t.textAlign?(n=e.width-1,r.textAlign="right"):(n=e.width/2,r.textAlign="center"),r.fillText(e.text,n,a))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=l},2727:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1687)),r=o(n(5965)),i=o(n(3528));function o(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:a.default,SVGRenderer:r.default,ObjectRenderer:i.default}},3528:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var a=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=n,this.options=a}return n(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();e.default=a},6258:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var a,r=n(1490),i=(a=r)&&a.__esModule?a:{default:a};function o(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function s(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function l(t,e,n){var a;if(n)a=n;else{if("undefined"==typeof document)return 0;a=document.createElement("canvas").getContext("2d")}a.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var r=a.measureText(t);return r?r.width:0}e.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},e.getEncodingHeight=o,e.getBarcodePadding=s,e.calculateEncodingAttributes=function(t,e,n){for(var a=0;a<t.length;a++){var r,c=t[a],u=(0,i.default)(e,c.options);r=u.displayValue?l(c.text,u,n):0;var f=c.data.length*u.width;c.width=Math.ceil(Math.max(r,f)),c.height=o(c,u),c.barcodePadding=s(r,f,u)}},e.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}},5965:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1490),o=(a=i)&&a.__esModule?a:{default:a},s=n(6258);var l="http://www.w3.org/2000/svg",c=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=n,this.options=a,this.document=a.xmlDocument||document}return r(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var n=this.encodings[e],a=(0,o.default)(this.options,n.options),r=this.createGroup(t,a.marginTop,this.svg);this.setGroupOptions(r,a),this.drawSvgBarcode(r,a,n),this.drawSVGText(r,a,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,s.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,s.getTotalWidthOfEncodings)(this.encodings),e=(0,s.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,e),this.options.background&&this.drawRect(0,0,n,e,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(t,e,n){var a,r=n.data;a="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,o=0,s=0;s<r.length;s++)o=s*e.width+n.barcodePadding,"1"===r[s]?i++:i>0&&(this.drawRect(o-e.width*i,a,e.width*i,e.height,t),i=0);i>0&&this.drawRect(o-e.width*(i-1),a,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var a,r,i=this.document.createElementNS(l,"text");e.displayValue&&(i.setAttribute("font-family",e.font),i.setAttribute("font-size",e.fontSize),e.fontOptions.includes("bold")&&i.setAttribute("font-weight","bold"),e.fontOptions.includes("italic")&&i.setAttribute("font-style","italic"),r="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(a=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(a=n.width-1,i.setAttribute("text-anchor","end")):(a=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",a),i.setAttribute("y",r),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",l),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(t,e,n){var a=this.document.createElementNS(l,"g");return a.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("fill",e.lineColor)}},{key:"drawRect",value:function(t,e,n,a,r){var i=this.document.createElementNS(l,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",a),r.appendChild(i),i}}]),t}();e.default=c},1467:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".admin-data-table__toolbar[data-v-44a9296c]{margin-bottom:12px}.admin-data-table[data-v-44a9296c]{--adt-header-bg:#1976d2;--adt-header-color:#fff;--adt-radius:12px;--adt-border:1px solid #e0e0e0;--adt-shadow:0 1px 3px rgba(0,0,0,.08);--adt-row-hover:#e3f2fd;--adt-footer-bg:#fafafa;--adt-text-muted:#757575;--adt-font-size:16px;--adt-header-font-size:16px}.admin-data-table__shell[data-v-44a9296c]{background:#fff;border:var(--adt-border);border-radius:var(--adt-radius);box-shadow:var(--adt-shadow);overflow:hidden}.admin-data-table__scroll[data-v-44a9296c]{-webkit-overflow-scrolling:touch;overflow-x:auto}.admin-data-table__table[data-v-44a9296c]{border-collapse:separate;border-spacing:0;margin-bottom:0;width:100%}.admin-data-table__table thead tr:first-child th[data-v-44a9296c]:first-child{border-top-left-radius:var(--adt-radius)}.admin-data-table__table thead tr:first-child th[data-v-44a9296c]:last-child{border-top-right-radius:var(--adt-radius)}.admin-data-table__table thead th[data-v-44a9296c]{background-color:var(--adt-header-bg);border:none!important;color:var(--adt-header-color);font-size:var(--adt-header-font-size);font-weight:600;letter-spacing:.02em;padding:14px 16px;text-transform:none;vertical-align:middle}.admin-data-table__table thead th.is-sortable[data-v-44a9296c]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.admin-data-table__table thead th.is-sortable[data-v-44a9296c]:hover{filter:brightness(1.06)}.admin-data-table__table tbody td.admin-data-table__col-index[data-v-44a9296c],.admin-data-table__table thead th.admin-data-table__col-index[data-v-44a9296c]{font-variant-numeric:tabular-nums;max-width:4rem;text-align:center;vertical-align:middle!important;width:3.25rem}.admin-data-table__th-inner[data-v-44a9296c]{align-items:center;display:flex;gap:8px;justify-content:flex-start;min-height:20px}.admin-data-table__th-title[data-v-44a9296c]{flex:1;min-width:0}.admin-data-table__sort[data-v-44a9296c]{align-items:center;display:inline-flex;flex-shrink:0;opacity:.95}.admin-data-table__sort-hint[data-v-44a9296c]{align-items:center;display:flex;flex-direction:column;line-height:1;margin-top:1px;opacity:.45}.admin-data-table__sort-icon[data-v-44a9296c]{display:block;flex-shrink:0}.admin-data-table__sort-icon--faint[data-v-44a9296c]{margin-top:-3px}.admin-data-table__sort-hint .admin-data-table__sort-icon--faint[data-v-44a9296c]:first-child{margin-top:0}.admin-data-table__table tbody td[data-v-44a9296c]{border-top:1px solid #eee;font-size:var(--adt-font-size);padding:12px 16px;vertical-align:middle}.admin-data-table__table tbody tr:first-child:not(.admin-data-table__state-row) td[data-v-44a9296c]{border-top:1px solid #e0e0e0}.admin-data-table__table tbody tr.admin-data-table__state-row td[data-v-44a9296c]{border-top:none;padding:0}.admin-data-table__table tbody tr:not(.admin-data-table__state-row):hover td[data-v-44a9296c]{background-color:var(--adt-row-hover)}.admin-data-table__state[data-v-44a9296c]{color:var(--adt-text-muted);padding:40px 24px;text-align:center}.admin-data-table__state-icon[data-v-44a9296c]{display:block;font-size:40px;margin-bottom:12px;margin-left:auto;margin-right:auto;opacity:.45}.admin-data-table__state-title[data-v-44a9296c]{color:#424242;font-size:16px;font-weight:600;margin-bottom:4px}.admin-data-table__state-hint[data-v-44a9296c]{color:var(--adt-text-muted);font-size:13px}.admin-data-table__footer[data-v-44a9296c]{align-items:center;background:var(--adt-footer-bg);border-top:var(--adt-border);display:flex;flex-wrap:wrap;gap:12px 16px;justify-content:space-between;padding:12px 16px}.admin-data-table__footer-left[data-v-44a9296c]{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.admin-data-table__footer-label[data-v-44a9296c]{color:var(--adt-text-muted);font-size:12px;font-weight:400;margin:0}.admin-data-table__page-size[data-v-44a9296c]{display:inline-block;font-size:12px;height:30px;min-width:64px;padding:4px 8px;width:auto}.admin-data-table__footer-mid[data-v-44a9296c]{color:#616161;font-size:13px;font-weight:500}.admin-data-table__footer-right[data-v-44a9296c]{flex-shrink:0}.admin-data-table__pagination[data-v-44a9296c]{margin:0}.admin-data-table__pagination>li>a[data-v-44a9296c]{color:var(--adt-header-bg);font-size:12px;padding:5px 12px}.admin-data-table__pagination>li.disabled>a[data-v-44a9296c]{color:#bbb;cursor:default;pointer-events:none}",""]);const i=r},877:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".roulette-elimination[data-v-1d38ef08]{margin:0 auto;max-width:980px;text-align:center}.roulette-elimination--full-width[data-v-1d38ef08]{margin-left:0;margin-right:0;max-width:none;width:100%}.roulette-elimination--full-width .wheel-stage[data-v-1d38ef08]{max-width:min(100%,880px)}.roulette-main-row[data-v-1d38ef08]{align-items:flex-start}.roulette-wheel-col[data-v-1d38ef08]{text-align:center}.roulette-side-col[data-v-1d38ef08]{margin-top:1.25rem;text-align:left}@media (min-width:992px){.roulette-side-col[data-v-1d38ef08]{margin-top:0;padding-left:8px}}.wheel-stage[data-v-1d38ef08]{margin:0 auto 1rem;max-width:600px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wheel-stage--can-spin[data-v-1d38ef08]{cursor:pointer}.wheel-stage--can-spin[data-v-1d38ef08]:focus{border-radius:4px;box-shadow:0 0 0 3px rgba(51,122,183,.45)}.wheel-stage[data-v-1d38ef08]:not(.wheel-stage--can-spin){cursor:not-allowed}.pointer[data-v-1d38ef08]{border-left:17px solid transparent;border-right:17px solid transparent;border-top:26px solid #222;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25));height:0;left:50%;position:absolute;top:-8px;transform:translateX(-50%);width:0;z-index:2}.wheel-wrap[data-v-1d38ef08]{border-radius:50%;box-shadow:0 8px 24px rgba(0,0,0,.15);position:relative;transition-property:transform;width:100%;will-change:transform;z-index:1}.wheel-center-logo[data-v-1d38ef08]{align-items:center;background:#fff;border:3px solid hsla(0,0%,100%,.95);border-radius:50%;box-shadow:0 4px 18px rgba(0,0,0,.22);display:flex;justify-content:center;left:50%;max-width:150px;min-width:72px;padding:6px;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;width:22%;z-index:3}.wheel-stage--can-spin:hover .wheel-center-logo[data-v-1d38ef08]{box-shadow:0 6px 22px rgba(0,0,0,.28);transform:translate(-50%,-50%) scale(1.06)}.wheel-stage--can-spin:active .wheel-center-logo[data-v-1d38ef08]{transform:translate(-50%,-50%) scale(.97)}.wheel-stage:not(.wheel-stage--can-spin) .wheel-center-logo[data-v-1d38ef08]{opacity:.5}.wheel-center-logo-img[data-v-1d38ef08]{max-height:100%;-o-object-fit:contain;object-fit:contain;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wheel-canvas[data-v-1d38ef08],.wheel-center-logo-img[data-v-1d38ef08]{border-radius:50%;height:auto;width:100%}.wheel-canvas[data-v-1d38ef08]{display:block}.roulette-click-hint[data-v-1d38ef08]{margin-bottom:0;margin-top:.35rem}.roulette-space-hint[data-v-1d38ef08]{margin-bottom:0;margin-top:.25rem}.roulette-space-hint kbd[data-v-1d38ef08]{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);color:#333;display:inline-block;font-size:11px;line-height:1.4;padding:1px 6px}.roulette-persist-clear[data-v-1d38ef08]{margin-bottom:0;margin-top:.35rem}.hint[data-v-1d38ef08]{font-size:.9rem}.hint[data-v-1d38ef08],.last-winner[data-v-1d38ef08]{margin-top:.5rem}.remaining-count[data-v-1d38ef08]{color:#666;font-size:20px;margin-top:.25rem}.roulette-side-col .roulette-panel[data-v-1d38ef08]{margin-bottom:15px}.roulette-side-col .roulette-panel[data-v-1d38ef08]:last-child{margin-bottom:0}.participant-list--scroll[data-v-1d38ef08]{max-height:min(42vh,340px);overflow-y:auto}.winner-ol--scroll[data-v-1d38ef08]{max-height:min(28vh,220px);overflow-y:auto}.roulette-panel .panel-heading[data-v-1d38ef08]{font-size:14px;font-weight:600}.participant-list[data-v-1d38ef08]{margin-bottom:0}.participant-row[data-v-1d38ef08]{align-items:center;display:flex;font-size:13px;gap:.5rem;justify-content:space-between}.participant-row--active[data-v-1d38ef08]{background-color:#f0fdf4;border-left:3px solid #22c55e}.participant-row--won[data-v-1d38ef08]{background-color:#f9fafb;color:#6b7280}.participant-row--absent[data-v-1d38ef08]{background-color:#fffbeb;border-left:3px solid #f59e0b;color:#92400e}.participant-name[data-v-1d38ef08]{flex:1;min-width:0;word-break:break-word}.participant-badge[data-v-1d38ef08]{color:#6b7280;font-size:11px;white-space:nowrap}.participant-row--active .participant-badge[data-v-1d38ef08]{color:#15803d;font-weight:600}.winner-ol[data-v-1d38ef08]{font-size:13px;margin:0;padding:10px 15px 10px 28px}.winner-li[data-v-1d38ef08]{align-items:flex-start;display:flex;gap:6px;justify-content:space-between;margin-bottom:8px}.winner-li-main[data-v-1d38ef08]{flex:1;min-width:0}.winner-absent-btn[data-v-1d38ef08]{flex-shrink:0;padding:0 4px;white-space:nowrap}.winner-label[data-v-1d38ef08]{font-weight:600}.winner-meta[data-v-1d38ef08]{font-size:12px;margin-left:8px}.winner-empty[data-v-1d38ef08]{font-size:13px;margin:0}.roulette-winner-modal .modal-title[data-v-1d38ef08]{font-weight:700}.roulette-winner-modal-round[data-v-1d38ef08]{font-size:14px;margin-bottom:8px}.roulette-winner-modal-name[data-v-1d38ef08]{font-size:1.75rem;font-weight:700;line-height:1.3;margin:0;word-break:break-word}.roulette-winner-absent-hint[data-v-1d38ef08]{margin-top:12px}",""]);const i=r},8869:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".roulette-demo-page[data-v-4b7c98c6]{max-width:none;padding-bottom:3rem;padding-top:2rem;width:100%}.roulette-page-header[data-v-4b7c98c6]{border-bottom:1px solid #e7e7e7;display:flex;justify-content:center;margin-bottom:1rem;padding-bottom:.75rem}.roulette-page-header-inner[data-v-4b7c98c6]{align-items:center;display:inline-flex;flex-wrap:wrap;gap:14px 18px;justify-content:center;text-align:left}.roulette-page-header-logo[data-v-4b7c98c6]{display:block;flex-shrink:0;height:52px;max-width:140px;-o-object-fit:contain;object-fit:contain;width:auto}.roulette-demo-title[data-v-4b7c98c6]{font-size:1.65rem;font-weight:600;line-height:1.3;margin:0;max-width:min(100%,36rem)}.roulette-bg-music-btn[data-v-4b7c98c6]{flex-shrink:0;white-space:nowrap}.roulette-demo-path[data-v-4b7c98c6]{font-size:.9rem;margin-bottom:1.25rem;word-break:break-all}.roulette-poll-help[data-v-4b7c98c6]{line-height:1.45;margin-bottom:.75rem}.roulette-demo-loading[data-v-4b7c98c6]{margin-bottom:1rem}.roulette-sync-bar[data-v-4b7c98c6]{align-items:center;display:flex;flex-wrap:wrap;font-size:13px;gap:10px 16px;margin-bottom:14px}.roulette-sync-refreshing[data-v-4b7c98c6]{font-style:italic}.roulette-sync-poll-error[data-v-4b7c98c6]{font-size:12px}.roulette-sync-btn[data-v-4b7c98c6]{flex-shrink:0}.roulette-demo-layout[data-v-4b7c98c6]{align-items:flex-start}.roulette-pending-sidebar[data-v-4b7c98c6]{margin-bottom:16px}@media (min-width:992px){.roulette-pending-sidebar[data-v-4b7c98c6]{margin-bottom:0}.roulette-pending-panel[data-v-4b7c98c6]{position:sticky;top:12px}}.roulette-main-column[data-v-4b7c98c6]{min-width:0}.roulette-pending-list[data-v-4b7c98c6],.roulette-pending-panel[data-v-4b7c98c6]{margin-bottom:0}.roulette-pending-row[data-v-4b7c98c6]{align-items:center;display:flex;font-size:13px;gap:10px;justify-content:space-between}.roulette-pending-name[data-v-4b7c98c6]{flex:1;min-width:0;word-break:break-word}.roulette-pending-import[data-v-4b7c98c6]{flex-shrink:0}.roulette-cabutan-hint[data-v-4b7c98c6]{line-height:1.45;margin-bottom:16px}",""]);const i=r},3575:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".container[data-v-05649db8]{max-width:900px}.kopkb-logo[data-v-05649db8]{height:50px}",""]);const i=r},1293:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".signature-line{border-bottom:1px solid #000;display:inline-block;margin-left:10px;width:200px}.print-table{border-collapse:collapse;font-size:13px;margin:20px auto;text-align:left;width:100%}.print-table td,.print-table th{word-wrap:break-word;border:1px solid #000;padding:6px 8px;vertical-align:top}.print-table th{background-color:#f2f2f2}@media print{body{margin:15mm 10mm}.page-break{page-break-before:always}.button-container,button{display:none!important}.print-table{page-break-inside:auto;width:90%}.print-table tr{page-break-after:auto;page-break-inside:avoid}.print-table td,.print-table th{font-size:11px;padding:5px}}",""]);const i=r},1657:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kopkb-logo[data-v-c88ae6a2]{height:auto;width:300px}label[data-v-c88ae6a2]{display:block;font-weight:500;margin-top:10px}input[data-v-c88ae6a2],textarea[data-v-c88ae6a2]{border:1px solid #ccc;border-radius:6px;margin-top:4px;padding:8px;width:90%}button[data-v-c88ae6a2]{margin-top:15px}.section-title[data-v-c88ae6a2]{background-color:#f8f9fa;border-left:4px solid #007bff;border-radius:4px;font-weight:600;padding:6px 10px}.two-column-form[data-v-c88ae6a2]{background:#f9f9f9;border:1px solid #ddd;border-radius:8px;display:grid;gap:20px 40px;grid-template-columns:1fr 1fr;margin:20px auto;max-width:800px;padding:20px 30px}.form-group[data-v-c88ae6a2]{display:flex;flex-direction:column}label[data-v-c88ae6a2]{color:#333;font-weight:600;margin-bottom:6px}input[data-v-c88ae6a2]{border:1px solid #ccc;border-radius:4px;padding:8px 10px}input[data-v-c88ae6a2]:focus{border-color:#007bff;outline:none}.button-container[data-v-c88ae6a2]{display:flex;justify-content:flex-end;margin-top:20px}",""]);const i=r},2953:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".center-header{text-align:center}.modal{z-index:2200}.modal-backdrop{z-index:2190!important}",""]);const i=r},3673:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".result-page[data-v-e26b1cc2]{margin-top:12px}.result-header[data-v-e26b1cc2]{align-items:flex-start;display:flex;gap:16px;justify-content:space-between;margin-bottom:12px}.result-kicker[data-v-e26b1cc2]{color:#2f80ed;font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:6px;text-transform:uppercase}.result-title[data-v-e26b1cc2]{color:#17324d;font-weight:800;margin:0 0 6px}.result-subtitle[data-v-e26b1cc2]{color:#6b7280;font-size:12px}.result-actions[data-v-e26b1cc2]{flex-shrink:0}.result-stats[data-v-e26b1cc2]{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 14px}.result-stat[data-v-e26b1cc2]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e6edf5;border-radius:16px;box-shadow:0 10px 22px rgba(35,64,97,.06);padding:12px 14px}.result-stat__label[data-v-e26b1cc2]{color:#6b7280;font-size:12px;font-weight:800;letter-spacing:.06em;margin-bottom:6px;text-transform:uppercase}.result-stat__value[data-v-e26b1cc2]{color:#17324d;font-size:22px;font-weight:900}.result-stat__value--text[data-v-e26b1cc2]{font-size:14px;line-height:1.25}.result-stat__hint[data-v-e26b1cc2]{color:#6b7280;font-size:12px;font-weight:700;margin-top:6px}.result-filters[data-v-e26b1cc2]{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}.result-filters__label[data-v-e26b1cc2]{color:#6b7280;font-size:12px;font-weight:700;margin-right:4px}.result-chip[data-v-e26b1cc2]{background:#fff;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:12px;font-weight:800;line-height:1;padding:6px 12px}.result-chip[data-v-e26b1cc2]:hover{background:#f3f4f6}.result-chip.is-active[data-v-e26b1cc2]{background:#1976d2;border-color:#1976d2;color:#fff}.result-card[data-v-e26b1cc2]{border:0;border-radius:16px;box-shadow:0 12px 28px rgba(35,64,97,.08);overflow:hidden}.result-card__heading[data-v-e26b1cc2]{align-items:baseline;background:linear-gradient(135deg,#1d4e89,#2f80ed);border:0!important;color:#fff;display:flex;gap:12px;justify-content:space-between}.result-card__title[data-v-e26b1cc2]{font-weight:800}.result-card__meta[data-v-e26b1cc2]{font-size:12px;opacity:.95}.result-card__body[data-v-e26b1cc2]{background:#fff}.result-top-chart[data-v-e26b1cc2]{height:280px;width:100%}.result-mini-title[data-v-e26b1cc2]{color:#17324d;font-size:12px;font-weight:900;letter-spacing:.04em;margin-bottom:8px;text-transform:uppercase}.result-empty[data-v-e26b1cc2]{color:#6b7280;font-style:italic;margin-top:10px;text-align:center}.result-leaders[data-v-e26b1cc2]{display:flex;flex-direction:column;gap:12px}.result-leader[data-v-e26b1cc2]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #eef2f7;border-radius:14px;padding:12px}.result-leader__top[data-v-e26b1cc2]{align-items:baseline;display:flex;gap:10px;justify-content:space-between;margin-bottom:6px}.result-leader__position[data-v-e26b1cc2]{color:#17324d;font-weight:900}.result-leader__meta[data-v-e26b1cc2]{color:#17324d;display:flex;font-size:12px;gap:10px;white-space:nowrap}.result-leader__delta[data-v-e26b1cc2]{color:#2f80ed}.result-leader__name[data-v-e26b1cc2]{color:#17324d;font-weight:800;margin-bottom:8px}.result-leader__bar[data-v-e26b1cc2]{background:#e8f0fb;border-radius:999px;height:10px;overflow:hidden}.result-leader__bar-fill[data-v-e26b1cc2]{background:linear-gradient(90deg,#2f80ed,#1d4e89);border-radius:999px;height:100%}.result-leader__sub[data-v-e26b1cc2]{color:#6b7280;display:flex;font-size:12px;justify-content:space-between;margin-top:8px}.result-rank[data-v-e26b1cc2]{display:flex;flex-direction:column;gap:12px}.result-rank__row[data-v-e26b1cc2]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #eef2f7;border-radius:14px;padding:12px}.result-rank__top[data-v-e26b1cc2]{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:8px}.result-rank__name[data-v-e26b1cc2]{color:#17324d;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-rank__votes[data-v-e26b1cc2]{color:#17324d;font-size:12px;white-space:nowrap}.result-rank__bar[data-v-e26b1cc2]{background:#e8f0fb;border-radius:999px;height:10px;overflow:hidden}.result-rank__bar-fill[data-v-e26b1cc2]{background:linear-gradient(90deg,#2f80ed,#1d4e89);border-radius:999px;height:100%}.result-rank__meta[data-v-e26b1cc2]{color:#6b7280;font-size:12px;margin-top:6px;text-align:right}@media (max-width:991px){.result-header[data-v-e26b1cc2]{flex-direction:column}.result-stats[data-v-e26b1cc2]{grid-template-columns:1fr}}",""]);const i=r},5359:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,'.floating-header[data-v-923015a4]{border-radius:16px!important;left:16px!important;margin:0;position:fixed!important;right:16px!important;top:16px!important;transition:all .3s ease!important;width:calc(100% - 32px)!important;z-index:2000!important}.logo-header[data-v-923015a4]{-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important;background:linear-gradient(135deg,hsla(0,0%,100%,.96),#08007e 48%,red)!important;border:1px solid hsla(0,0%,100%,.25)!important;box-shadow:0 8px 32px rgba(33,150,243,.35),0 4px 16px rgba(2,19,36,.28)!important;overflow:visible;position:fixed}.logo-header[data-v-923015a4]:before{background:linear-gradient(135deg,hsla(0,0%,100%,.12),transparent 50%,hsla(0,0%,100%,.05));bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.logo-header>*[data-v-923015a4]{position:relative;z-index:1}.logo-section[data-v-923015a4]{align-items:center;display:flex;flex-shrink:0;margin-left:24px;margin-right:24px}#nav.navbar[data-v-923015a4]{border:none;min-height:78px}#nav .container[data-v-923015a4]{overflow:visible;padding-left:12px;padding-right:12px;width:100%}#nav .navbar-brand[data-v-923015a4]{align-items:center;color:#1f2937;display:flex;gap:12px;height:auto;padding:14px 0}#nav .navbar-brand[data-v-923015a4],.logo-title[data-v-923015a4]{font-weight:700;text-shadow:0 1px 2px hsla(0,0%,100%,.8)}.logo-title[data-v-923015a4]{color:#1f2937!important;display:inline-block;font-size:1.8rem}#nav .nav>li>a[data-v-923015a4],#nav .navbar-toggle[data-v-923015a4]{color:#f8fbff;font-weight:700;letter-spacing:.02em}#nav .nav>li.active>a[data-v-923015a4],#nav .nav>li.active>a[data-v-923015a4]:focus,#nav .nav>li.active>a[data-v-923015a4]:hover,#nav .nav>li>a[data-v-923015a4]:hover,#nav .navbar-brand[data-v-923015a4]:hover{background:rgba(204,0,0,.833);color:#fff}#nav .nav>li>a[data-v-923015a4]{border-radius:10px;margin-bottom:18px;margin-top:18px;padding-bottom:12px;padding-top:12px}#nav .navbar-right[data-v-923015a4]{margin-right:8px}#nav .dropdown[data-v-923015a4],#nav .navbar-nav>li[data-v-923015a4]{position:relative}#nav .dropdown-menu[data-v-923015a4]{border:0;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.16);margin-top:6px;z-index:2101}#nav .dropdown-menu>li>a[data-v-923015a4]{color:#2c3e50}#nav .dropdown-menu>li>a[data-v-923015a4]:hover{background-color:#f39c12;color:#fff}#nav .navbar-toggle[data-v-923015a4]{background:hsla(0,0%,100%,.08);border-color:hsla(0,0%,100%,.35);margin-right:18px;margin-top:20px}#nav .navbar-toggle .icon-bar[data-v-923015a4]{background-color:#fff}.navbar-brand img[data-v-923015a4]{background:transparent!important;box-shadow:none}.admin-main[data-v-923015a4]{padding-top:112px}@media (max-width:767px){.floating-header[data-v-923015a4]{border-radius:14px!important;left:10px!important;right:10px!important;top:10px!important;width:calc(100% - 20px)!important}.logo-section[data-v-923015a4]{margin-left:16px;margin-right:8px}.logo-title[data-v-923015a4]{font-size:1.4rem}#nav .navbar-brand img[data-v-923015a4]{width:120px}#nav .navbar-collapse[data-v-923015a4]{border-top:0;box-shadow:none;overflow:visible;padding-bottom:12px}#nav .nav>li>a[data-v-923015a4]{margin:4px 10px}.admin-main[data-v-923015a4]{padding-top:102px}}',""]);const i=r},1930:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,"body{padding:50px 5px}.logo-admin{height:50px;-o-object-fit:cover;object-fit:cover;width:30px}.form-control{border-radius:.5rem}.btn-info:hover{background-color:#c2ccc8;color:#f3f6f8}",""]);const i=r},4969:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-add-page__header[data-v-4ec0cccc]{border-bottom:1px solid #eee;margin-bottom:12px;padding-bottom:10px}.nominee-add-page__title[data-v-4ec0cccc]{font-weight:600;margin-bottom:0;margin-top:0}.nominee-add-page__title .fa[data-v-4ec0cccc]{margin-right:6px}.nominee-add-page__intro[data-v-4ec0cccc]{margin-bottom:18px}.nominee-add-photo .panel-heading[data-v-4ec0cccc]{align-items:baseline;display:flex;gap:8px;justify-content:space-between}.nominee-add-photo__hint[data-v-4ec0cccc]{font-weight:400}.nominee-add-photo__preview[data-v-4ec0cccc]{align-items:center;aspect-ratio:1;background:#f9f9f9;border:1px dashed #ccc;border-radius:4px;display:flex;justify-content:center;margin-bottom:12px;max-height:240px;overflow:hidden;width:100%}.nominee-add-photo__preview--empty[data-v-4ec0cccc]{min-height:180px}.nominee-add-photo__preview img[data-v-4ec0cccc]{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.nominee-add-photo__placeholder[data-v-4ec0cccc]{color:#999;padding:16px;text-align:center}.nominee-add-photo__placeholder .fa[data-v-4ec0cccc]{display:block;font-size:36px;margin-bottom:8px;opacity:.65}.nominee-add-photo__placeholder span[data-v-4ec0cccc]{display:block;font-size:12px}.nominee-add-photo__input[data-v-4ec0cccc]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.nominee-add-photo__browse[data-v-4ec0cccc]{margin-bottom:0}.nominee-add-photo__formats[data-v-4ec0cccc]{margin:8px 0 0;text-align:center}.nominee-add-form__rule[data-v-4ec0cccc]{border-top-color:#eee;margin-bottom:16px;margin-top:8px}.nominee-add-form__actions[data-v-4ec0cccc]{text-align:right}.nominee-add-form__actions .btn+.btn[data-v-4ec0cccc]{margin-left:8px}@media (max-width:991px){.nominee-add-photo[data-v-4ec0cccc]{margin-top:8px}}",""]);const i=r},7300:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-add-page__header[data-v-2ff9e648]{border-bottom:1px solid #eee;margin-bottom:12px;padding-bottom:10px}.nominee-add-page__title[data-v-2ff9e648]{font-weight:600;margin-bottom:0;margin-top:0}.nominee-add-page__title .fa[data-v-2ff9e648]{margin-right:6px}.nominee-add-page__intro[data-v-2ff9e648]{margin-bottom:18px}.nominee-add-photo .panel-heading[data-v-2ff9e648]{align-items:baseline;display:flex;gap:8px;justify-content:space-between}.nominee-add-photo__hint[data-v-2ff9e648]{font-weight:400}.nominee-add-photo__preview[data-v-2ff9e648]{align-items:center;aspect-ratio:1;background:#f9f9f9;border:1px dashed #ccc;border-radius:4px;display:flex;justify-content:center;margin-bottom:12px;max-height:240px;overflow:hidden;width:100%}.nominee-add-photo__preview--empty[data-v-2ff9e648]{min-height:180px}.nominee-add-photo__preview img[data-v-2ff9e648]{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.nominee-add-photo__placeholder[data-v-2ff9e648]{color:#999;padding:16px;text-align:center}.nominee-add-photo__placeholder .fa[data-v-2ff9e648]{display:block;font-size:36px;margin-bottom:8px;opacity:.65}.nominee-add-photo__placeholder span[data-v-2ff9e648]{display:block;font-size:12px}.nominee-add-photo__input[data-v-2ff9e648]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.nominee-add-photo__browse[data-v-2ff9e648]{margin-bottom:0}.nominee-add-photo__formats[data-v-2ff9e648]{margin:8px 0 0;text-align:center}.nominee-add-form__rule[data-v-2ff9e648]{border-top-color:#eee;margin-bottom:16px;margin-top:8px}.nominee-add-form__actions[data-v-2ff9e648]{text-align:right}.nominee-add-form__actions .btn+.btn[data-v-2ff9e648]{margin-left:8px}@media (max-width:991px){.nominee-add-photo[data-v-2ff9e648]{margin-top:8px}}",""]);const i=r},9273:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.nominee-chip{border-radius:999px;line-height:1.1;padding:6px 10px}",""]);const i=r},8794:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-add-page__header{margin-bottom:12px}.voter-add-page__header h4{margin-top:0}.voter-add-page__header-actions .btn{margin-left:6px}.voter-add-page__intro,.voter-add-split__col{margin-bottom:16px}.voter-add-split__panel{margin-bottom:0}.voter-batch-toolbar .form-control{margin-bottom:8px;margin-right:8px;min-width:180px}.voter-batch-toolbar .btn{margin-bottom:8px;margin-right:6px}.voter-add-table-wrap{margin-top:10px;max-height:min(520px,calc(100vh - 280px));overflow:auto}.voter-add-table-wrap--selected{min-height:120px}.voter-add-empty-selected{margin:16px 0 0}.voter-add-heading__loading{margin-left:8px;margin-top:3px}.voter-add-heading__filter-hint{margin-right:8px;margin-top:4px}",""]);const i=r},6912:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kehadiran-search{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}.kehadiran-search__label{color:#6b7280;font-size:12px;font-weight:700}.kehadiran-search__input{height:34px;max-width:220px}.kehadiran-search__input--name{max-width:260px}",""]);const i=r},1848:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kehadiran-actions{margin-bottom:10px}.kehadiran-search{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}.kehadiran-search__label{color:#6b7280;font-size:12px;font-weight:700}.kehadiran-search__input{height:34px;max-width:220px}.kehadiran-filters{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 14px}.kehadiran-filters--secondary{margin-top:0}.kehadiran-filters__label{color:#6b7280;font-size:12px;font-weight:600;margin-right:4px}.kehadiran-chip{background:#fff;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:12px;font-weight:700;line-height:1;padding:6px 12px}.kehadiran-chip:hover{background:#f3f4f6}.kehadiran-chip.is-active{background:#1976d2;border-color:#1976d2;color:#fff}.kehadiran-action-cell{flex-wrap:wrap}.kehadiran-action-btn,.kehadiran-action-cell{align-items:center;display:inline-flex;gap:6px}.kehadiran-action-btn{font-weight:700}.kehadiran-action-btn>i{line-height:1}.kehadiran-verify-lead{color:#374151;line-height:1.5;margin-bottom:12px}.kehadiran-verify-summary{margin-bottom:0}.kehadiran-tunai-readonly{background-color:#f3f4f6!important;color:#1f2937;cursor:not-allowed}.kehadiran-pill{align-items:center;border:1px solid transparent;border-radius:999px;display:inline-flex;font-size:12px;font-weight:800;gap:6px;line-height:1.4;padding:3px 10px;white-space:nowrap}.kehadiran-pill>i{line-height:1}.kehadiran-pill--success{background:#d1e7dd;border-color:#badbcc;color:#0f5132}.kehadiran-pill--warn{background:#fff3cd;border-color:#ffecb5;color:#664d03}.kehadiran-pill--muted{background:#f3f4f6;border-color:#e5e7eb;color:#374151}",""]);const i=r},3641:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-admin-wrap--boxed{background:#fff;border:1px solid #e6e6e6;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.04);margin-bottom:24px;margin-top:12px;padding:16px}.voter-admin-wrap--wide{margin-left:auto;margin-right:auto;max-width:1400px}",""]);const i=r},6830:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".physical-gate-page[data-v-3a80ef97]{align-items:center;background:linear-gradient(160deg,#0f172a,#1e3a5f 45%,#0f172a);color:#e2e8f0;display:flex;justify-content:center;min-height:100vh;padding:24px}.physical-gate-error[data-v-3a80ef97],.physical-gate-setup[data-v-3a80ef97]{max-width:520px;width:100%}.physical-gate-title[data-v-3a80ef97]{color:#f8fafc;font-size:2rem;font-weight:800;margin-bottom:16px}.physical-gate-hint[data-v-3a80ef97]{color:#94a3b8;font-size:1.05rem;line-height:1.5;margin-bottom:20px}.physical-gate-key-form .btn[data-v-3a80ef97]{margin-top:12px}.physical-gate-active[data-v-3a80ef97]{max-width:920px;text-align:center;width:100%}.physical-gate-label[data-v-3a80ef97]{color:#94a3b8;font-size:1.4rem;font-weight:700;letter-spacing:.06em;margin-bottom:20px;text-transform:uppercase}.physical-gate-code[data-v-3a80ef97]{color:#fbbf24;font-family:SF Mono,Menlo,Consolas,monospace;font-size:clamp(3.5rem,14vw,8rem);font-weight:900;letter-spacing:.12em;margin-bottom:28px;text-shadow:0 0 40px rgba(251,191,36,.35);word-break:break-all}.physical-gate-countdown[data-v-3a80ef97]{background:rgba(148,163,184,.25);border-radius:999px;height:12px;margin:0 auto 20px;max-width:560px;overflow:hidden}.physical-gate-countdown-bar[data-v-3a80ef97]{background:linear-gradient(90deg,#38bdf8,#22d3ee);border-radius:999px;display:block;height:100%;transition:width .3s ease}.physical-gate-sub[data-v-3a80ef97]{color:#94a3b8;font-size:1.1rem;margin:0}",""]);const i=r},1156:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".attendance-page{margin-bottom:36px;margin-top:18px}.attendance-hero{background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);margin-bottom:22px;padding:26px 28px;text-align:center}.attendance-section-kicker{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.attendance-card-title,.attendance-page-title{color:#17324d;font-weight:700;margin:0 0 8px}.attendance-page-subtitle{color:#5f7388;line-height:1.6;margin:0 auto 18px;max-width:700px}.attendance-download-button{background:#fff;border:1px solid #cfe2ff;border-radius:999px;box-shadow:0 10px 24px rgba(13,110,253,.12);color:#0d6efd;display:inline-block;font-weight:700;padding:12px 20px;text-decoration:none!important}.attendance-card{background:#fff;border:1px solid #e2ebf5;border-radius:20px;box-shadow:0 16px 34px rgba(35,64,97,.08);padding:24px}.attendance-card-header{margin-bottom:18px}.attendance-info-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-field{margin-bottom:0}.attendance-choice-box label,.attendance-field label{color:#45617b;display:block;font-weight:700;margin-bottom:8px}.attendance-input,.attendance-select{border:1px solid #d8e3f0;border-radius:12px;box-shadow:none;height:46px}.attendance-input[readonly]{background:#f8fbff;color:#1f2937}.attendance-choice-box{background:linear-gradient(180deg,#fffaf2,#fff4df);border:1px solid #ffd9a8;border-radius:16px;box-shadow:0 10px 24px rgba(255,193,7,.08);margin-top:20px;padding:18px}.attendance-helper-text{display:block;margin-top:10px}.attendance-info-notice{border:1px solid #cde3ff;border-radius:16px;box-shadow:0 10px 24px rgba(13,110,253,.08);margin-bottom:0;padding:16px 18px}.attendance-info-notice p:last-child{margin-bottom:0}.attendance-action-area{margin-top:26px}.attendance-success-card{background:linear-gradient(135deg,#effaf2,#fff);border:1px solid #ccebd7;border-radius:18px;box-shadow:0 14px 28px rgba(40,167,69,.12);padding:24px}.attendance-success-kicker{color:#1f8b47;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.attendance-success-text{color:#43617a;margin-bottom:8px}.attendance-success-mode{color:#0f5132;font-size:2.2rem;font-weight:800;letter-spacing:.05em;margin:0 0 18px}.attendance-pending-card{background:linear-gradient(135deg,#fffbeb,#fff);border:1px solid #fde68a;border-radius:18px;box-shadow:0 14px 28px rgba(180,83,9,.1);padding:24px}.attendance-pending-kicker{color:#b45309;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:10px;text-transform:uppercase}.attendance-pending-text{color:#43617a;line-height:1.55;margin-bottom:10px}.attendance-pending-hint{color:#6b7280;font-size:.95rem;line-height:1.5;margin-bottom:18px}.attendance-refresh-button{border-radius:999px;font-weight:700;min-width:180px;padding:10px 20px}.attendance-submit-button,.attendance-vote-button{border-radius:999px;box-shadow:0 12px 24px rgba(35,64,97,.14);font-weight:700;letter-spacing:.04em;min-width:220px;padding:12px 24px}.attendance-voting-notice{border-radius:14px;margin:0 auto;max-width:520px}.attendance-voting-notice__title{margin:0 0 8px}.attendance-voting-notice__body{line-height:1.55;margin:0 0 10px}@media (max-width:767px){.attendance-card,.attendance-hero{border-radius:16px;padding:18px}.attendance-info-grid{grid-template-columns:1fr}.attendance-refresh-button,.attendance-submit-button,.attendance-vote-button{min-width:0;width:100%}}",""]);const i=r},4490:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,'.voter-home-page{margin-bottom:48px;margin-top:16px;padding-left:0;padding-right:0}.home-content-row,.home-hero-row{margin-left:0;margin-right:0}.home-content-row{margin-top:8px}.home-column--primary,.home-column--secondary{padding-top:4px}@media (max-width:767px){.home-column--secondary{margin-top:8px;padding-top:0}}@media (min-width:992px){.home-column--primary{padding-right:20px}.home-column--secondary{padding-left:20px}}.home-hero-wrap{margin-bottom:0}.home-hero-section{padding:16px 18px 20px}.home-hero-section .hero-banner{border-radius:18px;margin-bottom:16px}.home-hero-section .hero-banner-caption{box-shadow:0 8px 28px rgba(35,64,97,.08)}.hero-banner{background:linear-gradient(145deg,#e8f0ff,#f4f8fd 50%,#eef5ff);border-radius:24px;box-shadow:0 20px 50px rgba(11,39,79,.2),inset 0 0 0 1px hsla(0,0%,100%,.06);margin-bottom:20px;overflow:hidden;position:relative}.home-hero-banner-shine{background:linear-gradient(0deg,rgba(13,110,253,.07) 0,transparent);bottom:0;height:42%;left:0;pointer-events:none;position:absolute;right:0}.hero-banner-image{display:block;max-height:360px;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;width:100%}.hero-banner-caption{background:#fff;border:1px solid rgba(13,110,253,.12);border-radius:20px;box-shadow:0 16px 40px rgba(35,64,97,.1),inset 0 1px 0 hsla(0,0%,100%,.8);margin-bottom:6px;margin-top:0;padding:22px 24px}.hero-banner-kicker{color:#2563eb;font-size:1.15rem;font-weight:700;letter-spacing:.1em;margin-bottom:10px;text-transform:uppercase}.hero-banner-title{color:#0f172a;font-size:2.85rem;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 0 10px}.hero-banner-subtitle{color:#475569;font-size:1.45rem;line-height:1.65;margin:0 0 16px;max-width:720px}.home-hero-strong{color:#1d4ed8;font-weight:700}.home-hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.home-badge{align-items:center;border:1px solid transparent;border-radius:999px;display:inline-flex;font-size:1.25rem;font-weight:600;gap:8px;padding:8px 14px}.home-badge .fa{opacity:.9}.home-badge--location{background:#f1f5f9;border-color:#e2e8f0;color:#334155}.home-badge--ok{background:linear-gradient(135deg,#ecfdf5,#d1fae5);border-color:rgba(16,185,129,.35);color:#047857}.home-badge--pending{background:linear-gradient(135deg,#fffbeb,#fef3c7);border-color:rgba(245,158,11,.4);color:#b45309}.home-section-container{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 12px 32px rgba(35,64,97,.08);margin-bottom:28px;padding:20px 22px 24px}.home-content-row .home-section-container{margin-bottom:0}.home-column--secondary .home-section-container:not(:last-child){margin-bottom:24px}.home-section-heading{align-items:center;border-bottom:1px solid #eef2f7;color:#0f172a;display:flex;font-size:1.75rem;font-weight:800;gap:12px;letter-spacing:-.02em;margin:0 0 18px;padding-bottom:16px}.home-section-heading-icon{align-items:center;background:linear-gradient(135deg,#0d6efd,#3b82f6);border-radius:12px;box-shadow:0 8px 20px rgba(13,110,253,.28);color:#fff;display:flex;flex-shrink:0;font-size:1.65rem;height:44px;justify-content:center;width:44px}.home-section-heading-icon--teal{background:linear-gradient(135deg,#0f766e,#14b8a6);box-shadow:0 8px 20px rgba(20,184,166,.35)}.home-member-card--in-section{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;box-shadow:none}.home-section-container--kad .home-kad-wrap{padding-top:4px}.home-quick-links-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-bottom:0}.home-quick-link-wrap{display:flex;min-width:0}.home-quick-link-wrap .home-cta-link{flex:1;margin-bottom:0;min-height:100%;width:100%}.home-cta-link{align-items:center;border:1px solid hsla(0,0%,100%,.2);border-radius:16px;color:#fff!important;display:flex;gap:16px;padding:18px 20px;text-decoration:none!important;transition:transform .2s ease,box-shadow .2s ease}.home-cta-link:hover{color:#fff!important;transform:translateY(-2px)}.home-cta-link--indigo{background:linear-gradient(135deg,#1e3a8a,#2563eb 48%,#1d4ed8);box-shadow:0 14px 36px rgba(37,99,235,.35)}.home-cta-link--indigo:hover{box-shadow:0 18px 44px rgba(37,99,235,.45)}.home-cta-link--violet{background:linear-gradient(135deg,#5b21b6,#7c3aed 50%,#6d28d9);box-shadow:0 14px 36px rgba(124,58,237,.35)}.home-cta-link--violet:hover{box-shadow:0 18px 44px rgba(124,58,237,.48)}.home-cta-link--teal{background:linear-gradient(135deg,#0f766e,#14b8a6 50%,#0d9488);box-shadow:0 14px 36px rgba(20,184,166,.32)}.home-cta-link--teal:hover{box-shadow:0 18px 44px rgba(20,184,166,.45)}.home-cta-link--rose{background:linear-gradient(135deg,#9f1239,#e11d48 50%,#be123c);box-shadow:0 14px 36px rgba(225,29,72,.32)}.home-cta-link--rose:hover{box-shadow:0 18px 44px rgba(225,29,72,.45)}.home-cta-link--cyan{background:linear-gradient(135deg,#0e7490,#06b6d4 50%,#0891b2);box-shadow:0 14px 36px rgba(6,182,212,.3)}.home-cta-link--cyan:hover{box-shadow:0 18px 44px rgba(6,182,212,.42)}.home-cta-link--amber{background:linear-gradient(135deg,#b45309,#f59e0b 50%,#d97706);box-shadow:0 14px 36px rgba(245,158,11,.32)}.home-cta-link--amber:hover{box-shadow:0 18px 44px rgba(245,158,11,.45)}.home-cta-icon{align-items:center;background:hsla(0,0%,100%,.15);border-radius:14px;display:flex;flex-shrink:0;font-size:2.2rem;height:52px;justify-content:center;width:52px}.home-cta-body{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.home-cta-title{font-size:1.65rem;font-weight:800;letter-spacing:.02em}.home-cta-desc{font-size:1.25rem;line-height:1.4;opacity:.92}.home-cta-chevron{flex-shrink:0;font-size:2.4rem;opacity:.85}.member-info-card{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 12px 32px rgba(35,64,97,.08);margin-bottom:0;overflow:hidden;padding:0}.home-member-card{padding:6px 0}.member-field{align-items:flex-start;border-bottom:1px solid #eef2f7;display:flex;gap:12px;padding:14px 16px;transition:background .15s ease}.member-field:last-child{border-bottom:0}.member-field:hover{background:#f8fafc}.member-field-icon{align-items:center;background:#eff6ff;border-radius:10px;color:#2563eb;display:flex;flex-shrink:0;font-size:1.45rem;height:36px;justify-content:center;margin-top:2px;width:36px}.member-field-body{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:12px 18px;justify-content:space-between;min-width:0}.member-field-label{color:#64748b;flex:0 0 38%;font-size:1.2rem;font-weight:700;letter-spacing:.04em;line-height:1.35;max-width:200px;padding-top:4px;text-transform:uppercase}.member-field-value{color:#0f172a;flex:1;font-size:1.45rem;font-weight:700;line-height:1.4;text-align:right;word-break:break-word}.home-claim-card{padding:20px 22px}.home-claim-locked{align-items:flex-start;display:flex;gap:16px}.home-claim-locked-icon{align-items:center;background:#f1f5f9;border-radius:12px;color:#64748b;display:flex;flex-shrink:0;font-size:2rem;height:48px;justify-content:center;width:48px}.home-claim-locked-text{color:#64748b;font-size:1.35rem;line-height:1.55;margin:0}.home-claim-hint{color:#475569;font-size:1.3rem;line-height:1.5;margin:0 0 14px}.home-claim-alert{border-radius:12px;font-size:1.25rem;margin-bottom:12px}.home-claim-code-box{background:linear-gradient(180deg,#f0fdf4,#ecfdf5);border:2px dashed rgba(16,185,129,.45);border-radius:14px;margin-bottom:16px;padding:18px 16px;text-align:center}.home-claim-code{color:#047857;font-family:ui-monospace,Cascadia Code,Menlo,monospace;font-size:2.8rem;font-weight:800;letter-spacing:.22em;line-height:1.2}.home-claim-expiry{color:#64748b;font-size:1.2rem;margin-top:10px}.home-claim-btn{border:0;border-radius:12px;box-shadow:0 8px 24px rgba(13,110,253,.35);font-size:1.35rem;font-weight:700;padding-bottom:12px;padding-top:12px}.home-claim-btn .fa{margin-right:4px}.home-kad-wrap{display:flex;justify-content:center;padding:8px 0 12px}.watermark{left:50%;opacity:.09;position:absolute;top:50%;transform:translate(-50%,-50%);width:60mm;z-index:5}.kad-keahlian{aspect-ratio:1.3/1;background:#2d3748;background-image:url(/images/kad_bg.png);background-position:50%;background-size:cover;border:1px solid hsla(0,0%,100%,.12);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.06);box-sizing:border-box;color:#f8fafc;cursor:default;font-family:Arial,sans-serif;font-size:.8rem;font-weight:700;max-height:220px;max-width:420px;overflow:hidden;padding:20px;position:relative;transition:transform .25s ease,box-shadow .25s ease;width:100%}.kad-keahlian:hover{box-shadow:0 24px 56px rgba(0,0,0,.3),0 0 0 1px hsla(0,0%,100%,.08);transform:translateY(-3px) scale(1.01)}@media (max-height:600px){.kad-keahlian{font-size:.75rem;max-height:200px;padding:12px}}.kad-logo{position:absolute;right:10px;text-align:right;top:10px}.kad-logo-img{filter:drop-shadow(2px 2px 4px rgba(0,0,0,.5));height:auto;width:124px}.member-card-vertical{color:#fff;font-size:1.4rem;font-weight:700;left:0;letter-spacing:2px;padding:5px;position:absolute;text-orientation:mixed;text-shadow:1px 1px 3px rgba(0,0,0,.7);top:18px;writing-mode:vertical-rl}.kad-keahlian:before{background-size:100%;background:#000;content:"";height:100%;left:0;opacity:.06;pointer-events:none;position:absolute;top:0;width:100%}.member-details{display:flex;flex-direction:column;font-family:Arial,sans-serif;font-size:1.05rem;font-weight:400;gap:5px;line-height:1.3;margin-left:38px}.kad-content{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;position:relative;z-index:5}.detail-item{position:relative;text-align:left}.detail-item--barcode{margin-top:4px}#barcode{max-width:100%;transform:scaleX(1.45);transform-origin:left}.detail-label{text-align:left}.detail-value,.no-anggota{text-align:right}.no-anggota{position:absolute;right:8px;top:5px;z-index:10}.contact-info{color:#0c0c0c;font-size:9px;line-height:1.2;text-align:right}.contact-info i{font-size:8px;font-weight:400;margin-right:3px}@media (max-width:991px){.voter-home-page{margin-top:16px}.hero-banner-image{max-height:300px}.hero-banner-title{font-size:2.35rem}.member-field-label{flex:0 0 42%;max-width:220px}}@media (max-width:767px){.hero-banner{border-radius:18px}.hero-banner-image{max-height:240px}.hero-banner-caption{border-radius:16px;padding:18px}.hero-banner-title{font-size:1.95rem}.hero-banner-subtitle{font-size:1.25rem}.home-section-container{border-radius:16px;padding:16px 14px 18px}.home-hero-section{padding:12px 12px 16px}.home-section-heading{font-size:1.45rem;gap:10px;margin-bottom:14px;padding-bottom:14px}.home-section-heading-icon{font-size:1.45rem;height:40px;width:40px}.home-cta-link{flex-wrap:wrap;padding:16px}.home-cta-title{font-size:1.45rem}.home-cta-desc{font-size:1.15rem}.home-member-card--in-section{border-radius:12px}.home-member-card--in-section .member-field{align-items:flex-start;gap:10px;padding:12px}.home-member-card--in-section .member-field-icon{border-radius:11px;font-size:1.35rem;height:40px;margin-top:0;width:40px}.home-member-card--in-section .member-field-body{align-items:stretch;flex-direction:column;gap:5px;justify-content:flex-start}.home-member-card--in-section .member-field-label{color:#475569;flex:none;font-size:1.15rem;font-weight:700;letter-spacing:.06em;line-height:1.25;margin:0;max-width:none;padding-top:0;text-transform:uppercase;width:100%}.home-member-card--in-section .member-field-value{color:#0f172a;flex:none;font-size:1.42rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere;text-align:left;width:100%;word-break:break-word}.home-claim-code{font-size:2.2rem;letter-spacing:.14em}}',""]);const i=r},5387:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".background-img{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:20px;max-height:80vh;max-width:100%}.right-button{border-color:#0e0e0f;border-radius:10px;color:#fff;cursor:pointer;text-align:left}.right-button :hover{outline-color:#045415}",""]);const i=r},491:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-nominees-page{margin-bottom:40px;margin-top:24px}.page-column{margin-bottom:24px}.page-section-heading{background:linear-gradient(135deg,#0d6efd,#2f80ed);border-radius:14px;box-shadow:0 12px 28px rgba(13,110,253,.2);color:#fff;font-size:1.8rem;font-weight:700;margin-bottom:14px;padding:14px 18px;text-align:center}.nominee-page-intro{background:#eef5ff;border:1px solid #dbe8ff;border-radius:12px;color:#36506b;font-size:1.4rem;margin-bottom:18px;padding:12px 16px}.nominee-panel{border:0;border-radius:18px;box-shadow:0 14px 28px rgba(35,64,97,.1);margin-bottom:20px;overflow:hidden}.nominee-panel-heading{align-items:center;background:linear-gradient(135deg,#1d4e89,#2563eb);color:#fff;display:flex;font-size:1.7rem;font-weight:700;justify-content:space-between;padding:16px 20px}.nominee-panel-badge{background:hsla(0,0%,100%,.18);border-radius:999px;font-size:1.2rem;font-weight:600;padding:6px 10px}.nominee-panel-body{background:#fff;padding:0}.nominee-table{margin-bottom:0}.nominee-table thead{background:#f4f8fd}.nominee-table thead th{border-bottom:1px solid #dce7f5;color:#48627e;font-size:1.25rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.nominee-table tbody td{border-top:1px solid #edf2f7;color:#22384f;vertical-align:middle}.nominee-row{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}.nominee-row:hover{background:#f8fbff;box-shadow:inset 4px 0 0 #2f80ed}.nominee-thumb{border:2px solid #dbe8ff;border-radius:16px;box-shadow:0 8px 18px rgba(47,128,237,.12);height:64px;margin-bottom:0;-o-object-fit:cover;object-fit:cover;width:64px}.nominee-empty-state{color:#6f8193;padding:18px!important;text-align:center}.nominee-modal-backdrop{align-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:rgba(7,25,48,.72);display:flex;inset:0;justify-content:center;padding:24px 16px;position:fixed;z-index:1050}#view-nominee-modal.modal-dialog{margin:0;max-width:960px;width:100%}.nominee-modal-content{border:0;border-radius:20px;box-shadow:0 22px 60px rgba(0,0,0,.28);overflow:hidden}.nominee-modal-content .modal-header{align-items:flex-start;background:linear-gradient(135deg,#0d6efd,#2f80ed);border-bottom:1px solid #e7edf5;color:#fff;display:flex;justify-content:space-between;padding:20px 24px 16px}.nominee-modal-content .modal-title{font-size:2.2rem;font-weight:700;margin:4px 0 0}.nominee-modal-content .modal-header .close{color:#fff;margin-top:-4px;opacity:.9;text-shadow:none}.nominee-modal-kicker{font-size:1.2rem;font-weight:600;letter-spacing:.04em;opacity:.85;text-transform:uppercase}.nominee-modal-body{background:#f5f8fc;display:flex;gap:24px;padding:24px}.photo-section{flex:0 0 300px}.nominee-photo-card{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 10px 24px rgba(35,64,97,.08);padding:18px}.nominee-viewed-photo{background:#eef3f8;border:0;border-radius:14px;height:320px;margin:0 0 16px;-o-object-fit:cover;object-fit:cover;width:100%}.nominee-photo-meta{text-align:center}.nominee-name{color:#17324d;font-size:2rem;font-weight:700}.nominee-subtitle{color:#5f7388;font-size:1.4rem;margin-top:4px}.detail-section{flex:1;min-width:0}.nominee-summary-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.summary-item{background:#fff;border:1px solid #e5ebf3;border-radius:14px;box-shadow:0 8px 22px rgba(35,64,97,.06);display:flex;flex-direction:column;gap:6px;padding:14px 16px}.summary-label{color:#6f8193;font-size:1.2rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.summary-value{color:#17324d;font-size:1.6rem;font-weight:600;line-height:1.4}.nominee-section-card{background:#fff;border:1px solid #e5ebf3;border-radius:16px;box-shadow:0 8px 22px rgba(35,64,97,.06);margin-bottom:16px;padding:18px 20px}.section-title{color:#17324d;font-size:1.5rem;font-weight:700;margin-bottom:12px}.detail-list{color:#30475f;margin:0;padding-left:20px}.detail-list li{line-height:1.6;margin-bottom:8px}.detail-empty{color:#6f8193;margin:0}.nominee-modal-content .modal-footer{background:#fff;border-top:1px solid #e7edf5;padding:16px 24px 22px}@media (max-width:767px){.nominee-modal-backdrop{align-items:flex-start;overflow-y:auto;padding:16px 10px}.nominee-modal-body{flex-direction:column;padding:18px}.photo-section{flex:1 1 auto}.nominee-viewed-photo{height:260px}.nominee-summary-grid{grid-template-columns:1fr}.page-section-heading{font-size:1.6rem}.nominee-panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.nominee-table tbody td:nth-child(4),.nominee-table tbody td:nth-child(5),.nominee-table thead th:nth-child(4),.nominee-table thead th:nth-child(5){display:none}}@media (max-width:991px){.voter-nominees-page{margin-top:16px}}",""]);const i=r},3389:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".penyata-wrapper[data-v-2c7fe227]{font-family:Arial,sans-serif;margin:0 auto;max-width:800px}.header-section[data-v-2c7fe227]{align-items:center;display:grid;gap:20px;grid-template-columns:1.5fr 1fr}.logo-wrapper[data-v-2c7fe227]{align-items:flex-start;display:flex;gap:15px}.kopkb-logo[data-v-2c7fe227]{height:auto;width:80px}.header-right[data-v-2c7fe227]{text-align:right}.title-box[data-v-2c7fe227]{background:#000;border-radius:4px;color:#fff;display:inline-block;padding:8px 15px;text-align:center}.form-section.two-column[data-v-2c7fe227]{-moz-column-gap:30px;column-gap:30px;display:grid;grid-template-columns:repeat(2,1fr);margin:0 auto;max-width:780px;row-gap:15px}.form-control-sm[data-v-2c7fe227]{border:none;border-bottom:1px solid #666;border-radius:0;outline:none;padding:4px;width:100%}.boxed-table[data-v-2c7fe227]{border-collapse:separate;border-spacing:4px;width:100%}.boxed-table td[data-v-2c7fe227]{background:#fafafa;border:1px inset #000;padding:6px 8px}.boxed-table td[data-v-2c7fe227],.no-lines td[data-v-2c7fe227]{font-size:13px;vertical-align:middle}.no-lines td[data-v-2c7fe227]{border:none!important;padding:4px 6px;text-align:left}.keyin-input[data-v-2c7fe227],.keyin-line[data-v-2c7fe227]{background:transparent;border:none;border-bottom:1px solid #000;font-size:12px;padding:2px 4px;text-align:right;width:90%}.keyin-input[data-v-2c7fe227]:focus,.keyin-line[data-v-2c7fe227]:focus{border-bottom:1px solid #007bff}.signature-section[data-v-2c7fe227]{-moz-column-gap:40px;column-gap:40px;display:grid;grid-template-columns:1fr 1fr;margin:20px auto 0;max-width:780px;row-gap:15px;width:100%}.btn-effect[data-v-2c7fe227]{transition:.3s ease}.btn-effect[data-v-2c7fe227]:hover{box-shadow:0 0 10px rgba(8,8,8,.818);transform:scale(1.05)}.italic-note[data-v-2c7fe227]{font-style:italic}.badge-disahkan[data-v-2c7fe227]{background:#28a745;border-radius:20px;color:#fff;font-weight:600;letter-spacing:.3px;padding:6px 14px}@media(max-width:768px){.header-section[data-v-2c7fe227]{grid-template-columns:1fr;text-align:center}.header-right[data-v-2c7fe227]{margin-top:10px;text-align:center}.logo-wrapper[data-v-2c7fe227]{justify-content:center}.signature-section[data-v-2c7fe227]{grid-template-columns:1fr}}@media print{.no-print[data-v-2c7fe227]{display:none!important}body[data-v-2c7fe227]{font-size:12px;line-height:1.3}.penyata-wrapper[data-v-2c7fe227],table[data-v-2c7fe227]{page-break-inside:avoid}}",""]);const i=r},8203:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".vote-page[data-v-dacd1498]{margin-bottom:36px;margin-top:18px}.vote-content-column[data-v-dacd1498],.vote-sidebar-column[data-v-dacd1498]{margin-bottom:24px}.vote-summary-card[data-v-dacd1498]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e2ebf5;border-radius:20px;box-shadow:0 16px 34px rgba(35,64,97,.08);padding:22px 20px;position:sticky;top:120px}.vote-section-kicker[data-v-dacd1498]{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.vote-content-title[data-v-dacd1498],.vote-page-title[data-v-dacd1498]{color:#17324d;font-weight:700;margin:0 0 8px}.vote-page-subtitle[data-v-dacd1498]{color:#5f7388;line-height:1.6;margin-bottom:16px}.vote-limit-pill[data-v-dacd1498]{background:#eef5ff;border:1px solid #d7e7ff;border-radius:12px;color:#31506f;line-height:1.6;margin-bottom:18px;padding:12px 14px}.vote-summary-list[data-v-dacd1498]{margin-bottom:0}.vote-summary-action[data-v-dacd1498],.vote-summary-item[data-v-dacd1498]{background:transparent;border:0;border-bottom:1px solid #edf2f7;padding:14px 0}.vote-summary-list .vote-summary-item[data-v-dacd1498]:last-of-type{border-bottom:1px solid #edf2f7}.vote-position-name[data-v-dacd1498]{color:#17324d;font-size:1.5rem;font-weight:700;margin-bottom:10px}.vote-selected-list[data-v-dacd1498]{display:flex;flex-direction:column;gap:10px}.vote-selected-item[data-v-dacd1498]{align-items:center;background:#fff;border:1px solid #e6edf5;border-radius:12px;color:#30475f;display:flex;gap:10px;padding:10px 12px}.vote-selected-badge[data-v-dacd1498]{align-items:center;background:#dcecff;border-radius:999px;color:#1e5fbf;display:inline-flex;font-size:1.2rem;font-weight:700;justify-content:center;min-width:48px;padding:5px 10px}.vote-empty-selection[data-v-dacd1498]{color:#7a8ea3;font-style:italic}.vote-summary-action[data-v-dacd1498]{border-bottom:0;padding-top:18px}.vote-submit-button[data-v-dacd1498]{border-radius:12px;box-shadow:0 12px 24px rgba(40,167,69,.24);font-weight:700;letter-spacing:.04em;padding-bottom:12px;padding-top:12px}.vote-content-header[data-v-dacd1498]{align-items:flex-start;display:flex;gap:18px;justify-content:space-between;margin-bottom:18px}.vote-alert[data-v-dacd1498]{border-radius:12px;box-shadow:0 10px 24px rgba(255,193,7,.15);margin-bottom:0}.vote-panel[data-v-dacd1498]{border:0;border-radius:18px;box-shadow:0 16px 34px rgba(35,64,97,.1);margin-bottom:20px;overflow:hidden}.vote-panel-heading[data-v-dacd1498]{align-items:center;background:linear-gradient(135deg,#1d4e89,#2f80ed);color:#fff!important;display:flex;font-size:1.7rem;font-weight:700;justify-content:space-between;padding:16px 20px}.vote-panel-badge[data-v-dacd1498]{background:hsla(0,0%,100%,.18);border-radius:999px;font-size:1.2rem;font-weight:600;padding:6px 10px}.vote-panel-body[data-v-dacd1498]{background:#fff;padding:0}.vote-table[data-v-dacd1498]{margin-bottom:0}.vote-table thead[data-v-dacd1498]{background:#f4f8fd}.vote-table thead th[data-v-dacd1498]{border-bottom:1px solid #dce7f5;color:#48627e;font-size:1.25rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.vote-table tbody td[data-v-dacd1498]{border-top:1px solid #edf2f7;color:#22384f;vertical-align:middle}.vote-row[data-v-dacd1498]{transition:background-color .18s ease,box-shadow .18s ease}.vote-row[data-v-dacd1498]:hover{background:#f8fbff;box-shadow:inset 4px 0 0 #2f80ed}.vote-checkbox-cell input[type=checkbox][data-v-dacd1498]{cursor:pointer;height:18px;width:18px}.vote-nominee-photo[data-v-dacd1498]{border:2px solid #dbe8ff;border-radius:16px;box-shadow:0 8px 18px rgba(47,128,237,.12);height:64px;margin-bottom:0;-o-object-fit:cover;object-fit:cover;width:64px}.vote-modal-content[data-v-dacd1498]{border:0;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.2);overflow:hidden}.vote-modal-header[data-v-dacd1498]{background:linear-gradient(135deg,#0d6efd,#2f80ed);color:#fff;padding:18px 22px}.vote-modal-title[data-v-dacd1498]{font-size:2rem;font-weight:700;margin:4px 0 0}.vote-modal-header .close[data-v-dacd1498]{color:#fff;opacity:.9;text-shadow:none}.vote-modal-body[data-v-dacd1498]{background:#f7fbff;padding:22px}.vote-modal-note[data-v-dacd1498]{color:#17324d;margin-bottom:14px;margin-top:0}.vote-modal-selection-title[data-v-dacd1498]{color:#17324d;font-size:1.4rem;font-weight:700;margin-bottom:10px}.vote-modal-footer[data-v-dacd1498]{background:#fff;padding:16px 22px 20px}@media (max-width:991px){.vote-summary-card[data-v-dacd1498]{position:static;top:auto}.vote-content-header[data-v-dacd1498]{flex-direction:column}}@media (max-width:767px){.vote-page[data-v-dacd1498]{margin-top:8px}.vote-panel-heading[data-v-dacd1498]{align-items:flex-start;flex-direction:column;gap:8px}.vote-table tbody td[data-v-dacd1498]:nth-child(5),.vote-table thead th[data-v-dacd1498]:nth-child(5){display:none}}",""]);const i=r},7932:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".zoom-page[data-v-530ce8b2]{font-family:Arial,sans-serif;margin-bottom:36px;margin-top:18px}.zoom-hero-card[data-v-530ce8b2]{background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);margin-bottom:22px;padding:26px 28px;text-align:center}.zoom-section-kicker[data-v-530ce8b2]{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.zoom-title[data-v-530ce8b2]{color:#17324d;font-size:2.8rem;font-weight:700;line-height:1.3;margin:0 0 10px}.zoom-subtitle[data-v-530ce8b2]{color:#5f7388;font-size:1.5rem;line-height:1.6;margin:0 auto;max-width:720px}.zoom-main-card[data-v-530ce8b2]{background:#fff;border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);display:grid;gap:24px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);padding:24px}.centered-container[data-v-530ce8b2]{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:40vh;text-align:center}.zoom-image-card[data-v-530ce8b2]{background:#f4f8fd;border:1px solid #dbe7f3;border-radius:18px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.7);overflow:hidden;width:100%}.zoom-image[data-v-530ce8b2]{display:block;max-height:420px;-o-object-fit:cover;object-fit:cover;width:100%}.zoom-content-section[data-v-530ce8b2]{align-items:flex-start;text-align:left}.zoom-meeting-badge[data-v-530ce8b2]{background:#e8f1ff;border-radius:999px;color:#215db8;font-size:1.2rem;font-weight:700;letter-spacing:.04em;margin-bottom:12px;padding:8px 12px}.zoom-content-title[data-v-530ce8b2]{color:#17324d;font-size:2.4rem;font-weight:700;margin:0 0 10px}.zoom-content-text[data-v-530ce8b2]{color:#5f7388;font-size:1.5rem;line-height:1.7;margin-bottom:18px}.zoom-action-panel[data-v-530ce8b2]{background:linear-gradient(180deg,#f8fbff,#eef6ff);border:1px solid #d9e8fb;border-radius:18px;box-shadow:0 12px 28px rgba(35,64,97,.07);padding:18px;width:100%}.btn-interactive[data-v-530ce8b2]{background:linear-gradient(135deg,#0d6efd,#2f80ed);border:none;border-radius:999px;box-shadow:0 12px 24px rgba(13,110,253,.25);color:#fff;cursor:pointer;font-size:16px;font-weight:700;outline:none;padding:14px 26px;transition:background-color .3s ease,transform .2s ease,box-shadow .2s ease}.btn-interactive[data-v-530ce8b2]:hover{box-shadow:0 16px 28px rgba(13,110,253,.3);transform:scale(1.05)}.btn-interactive[data-v-530ce8b2]:active{transform:scale(.98)}.btn-interactive[data-v-530ce8b2]:focus{box-shadow:0 0 5px 2px rgba(0,123,255,.5);outline:none}.zoom-link-note[data-v-530ce8b2]{color:#5f7388;font-size:1.3rem;margin-top:12px}@media (max-width:991px){.zoom-main-card[data-v-530ce8b2]{grid-template-columns:1fr}.zoom-content-section[data-v-530ce8b2]{align-items:center;text-align:center}}@media (max-width:767px){.zoom-hero-card[data-v-530ce8b2],.zoom-main-card[data-v-530ce8b2]{border-radius:16px;padding:18px}.zoom-title[data-v-530ce8b2]{font-size:2.2rem}.zoom-content-text[data-v-530ce8b2],.zoom-subtitle[data-v-530ce8b2]{font-size:1.35rem}.zoom-content-title[data-v-530ce8b2]{font-size:2rem}.btn-interactive[data-v-530ce8b2]{width:100%}}",""]);const i=r},1175:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,'.floating-header[data-v-998f8fb8]{border-radius:16px!important;left:16px!important;margin:0;position:fixed!important;right:16px!important;top:16px!important;transition:all .3s ease!important;width:calc(100% - 32px)!important;z-index:2000!important}.logo-header[data-v-998f8fb8]{-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important;background:linear-gradient(135deg,hsla(0,0%,100%,.96),#08007e 48%,red)!important;border:1px solid hsla(0,0%,100%,.25)!important;box-shadow:0 8px 32px rgba(33,150,243,.35),0 4px 16px rgba(2,19,36,.28)!important;overflow:visible;position:fixed}.logo-header[data-v-998f8fb8]:before{background:linear-gradient(135deg,hsla(0,0%,100%,.12),transparent 50%,hsla(0,0%,100%,.05));bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.logo-header>*[data-v-998f8fb8]{position:relative;z-index:1}.logo-section[data-v-998f8fb8]{align-items:center;display:flex;flex-shrink:0;margin-left:24px;margin-right:24px}#nav.navbar[data-v-998f8fb8]{border:none;min-height:78px}#nav .container[data-v-998f8fb8]{overflow:visible;padding-left:12px;padding-right:12px;width:100%}#nav .navbar-brand[data-v-998f8fb8]{align-items:center;color:#1f2937;display:flex;gap:12px;height:auto;padding:14px 0}#nav .navbar-brand[data-v-998f8fb8],.logo-title[data-v-998f8fb8]{font-weight:700;text-shadow:0 1px 2px hsla(0,0%,100%,.8)}.logo-title[data-v-998f8fb8]{color:#1f2937!important;display:inline-block;font-size:1.8rem}#nav .nav>li>a[data-v-998f8fb8],#nav .navbar-toggle[data-v-998f8fb8]{color:#f8fbff;font-weight:700;letter-spacing:.02em}#nav .nav>li.active>a[data-v-998f8fb8],#nav .nav>li.active>a[data-v-998f8fb8]:focus,#nav .nav>li.active>a[data-v-998f8fb8]:hover,#nav .nav>li>a[data-v-998f8fb8]:hover,#nav .navbar-brand[data-v-998f8fb8]:hover{background:rgba(204,0,0,.833);color:#fff}#nav .nav>li>a[data-v-998f8fb8]{border-radius:10px;margin-bottom:18px;margin-top:18px;padding-bottom:12px;padding-top:12px}#nav .navbar-right[data-v-998f8fb8]{margin-right:8px}#nav .dropdown[data-v-998f8fb8],#nav .navbar-nav>li[data-v-998f8fb8]{position:relative}#nav .dropdown-menu[data-v-998f8fb8]{border:0;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.16);margin-top:6px;z-index:2101}#nav .dropdown-menu>li>a[data-v-998f8fb8]{color:#2c3e50}#nav .dropdown-menu>li>a[data-v-998f8fb8]:hover{background-color:#f39c12;color:#fff}#nav .navbar-toggle[data-v-998f8fb8]{background:hsla(0,0%,100%,.08);border-color:hsla(0,0%,100%,.35);margin-right:18px;margin-top:20px}#nav .navbar-toggle .icon-bar[data-v-998f8fb8]{background-color:#fff}.navbar-brand img[data-v-998f8fb8]{background:transparent!important;box-shadow:none}.voter-main[data-v-998f8fb8]{padding-top:112px}.voter-breadcrumb-wrap[data-v-998f8fb8]{margin:0 16px 8px;padding:0;position:relative;z-index:5}.voter-breadcrumb-wrap .container-fluid[data-v-998f8fb8]{padding-left:15px;padding-right:15px}.voter-breadcrumb[data-v-998f8fb8]{background:hsla(0,0%,100%,.92);border:1px solid #e5ebf3;border-radius:14px;box-shadow:0 8px 22px rgba(35,64,97,.1);font-size:1.7rem;line-height:1.45;margin-bottom:16px;padding:14px 20px}.voter-breadcrumb>li[data-v-998f8fb8]{padding-bottom:2px;padding-top:2px}.voter-breadcrumb>li+li[data-v-998f8fb8]:before{color:#94a3b8;font-size:1.35rem;font-weight:600;padding:0 12px}.voter-breadcrumb>li>a[data-v-998f8fb8]{color:#2563eb;font-weight:600}.voter-breadcrumb>li>a[data-v-998f8fb8]:hover{color:#1d4ed8;text-decoration:underline}.voter-breadcrumb>li.active[data-v-998f8fb8]{color:#17324d;font-size:1.7rem;font-weight:700}@media (max-width:767px){.floating-header[data-v-998f8fb8]{border-radius:14px!important;left:10px!important;right:10px!important;top:10px!important;width:calc(100% - 20px)!important}.logo-section[data-v-998f8fb8]{margin-left:16px;margin-right:8px}.logo-title[data-v-998f8fb8]{font-size:1.4rem}#nav .navbar-brand img[data-v-998f8fb8]{width:120px}#nav .navbar-collapse[data-v-998f8fb8]{border-top:0;box-shadow:none;overflow:visible;padding-bottom:12px}#nav .nav>li>a[data-v-998f8fb8]{margin:4px 10px}.voter-main[data-v-998f8fb8]{padding-top:102px}.voter-breadcrumb-wrap[data-v-998f8fb8]{margin-left:10px;margin-right:10px}.voter-breadcrumb[data-v-998f8fb8]{border-radius:12px;font-size:1.4rem;line-height:1.4;padding:12px 16px}.voter-breadcrumb>li.active[data-v-998f8fb8]{font-size:1.4rem}.voter-breadcrumb>li+li[data-v-998f8fb8]:before{font-size:1.2rem;padding:0 8px}}',""]);const i=r},1180:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,"body[data-v-279fce7c]{background-color:#f8f9fa;margin:0;padding:0}.bg-gradient[data-v-279fce7c]{background:linear-gradient(180deg,#6c757d,#343a40)}.d-flex[data-v-279fce7c]{display:flex}.justify-content-center[data-v-279fce7c]{justify-content:center}.align-items-center[data-v-279fce7c]{align-items:center}.min-vh-100[data-v-279fce7c]{min-height:100vh}.card[data-v-279fce7c]{background-color:#fff;border:2px solid #007bff;border-radius:1rem}.card-body[data-v-279fce7c]{padding:30px}.logo-img[data-v-279fce7c]{height:auto;max-width:250px}.btn-primary[data-v-279fce7c]{background-color:#5cb85c;border:none;border-radius:30px;font-size:16px;font-weight:600;padding:12px 0}.btn-primary[data-v-279fce7c]:hover{background-color:#4cae4c}.form-control[data-v-279fce7c]{border-radius:30px;font-size:16px;padding:10px 20px;position:relative}.form-control[data-v-279fce7c]::-moz-placeholder{color:#6c757d;left:20px;position:absolute;top:50%;transform:translateY(-50%);-moz-transition:all .3s ease;transition:all .3s ease}.form-control[data-v-279fce7c]::placeholder{color:#6c757d;left:20px;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease}.form-control[data-v-279fce7c]:focus::-moz-placeholder{color:red;font-size:12px;left:10px;top:5px;transform:translateY(-50%) translateX(-10px)}.form-control[data-v-279fce7c]:focus::placeholder{color:red;font-size:12px;left:10px;top:5px;transform:translateY(-50%) translateX(-10px)}.form-control[data-v-279fce7c]:focus{border-color:#007bff;box-shadow:0 0 8px rgba(0,123,255,.6)}h4[data-v-279fce7c]{color:#333;font-size:22px;font-weight:600}@media (max-width:576px){.card[data-v-279fce7c]{padding:20px;width:90%}h4[data-v-279fce7c]{font-size:20px}.logo-img[data-v-279fce7c]{max-width:200px}.btn-primary[data-v-279fce7c],.form-control[data-v-279fce7c]{font-size:14px}.btn-primary[data-v-279fce7c]{padding:10px 0}}",""]);const i=r},2390:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".otp-input{border:1px solid rgba(0,0,0,.3);border-radius:4px;font-size:20px;height:40px;margin:0 10px;padding:5px;text-align:center;width:40px}.otp-input.error{border:1px solid red!important}.otp-input::-webkit-inner-spin-button,.otp-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",""]);const i=r},698:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".app-modal{z-index:2200}.app-modal .modal-dialog{margin-top:110px}.modal-backdrop{z-index:2190!important}.primary{background-color:#337ab7;color:#fff}.primary .modal-body,.primary .modal-footer{background-color:#fff;border-left:1px solid #337ab7;border-right:1px solid #337ab7;color:#000}.primary .modal-footer{border-bottom:1px solid #337ab7;border-radius:5px}",""]);const i=r},4829:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".imgContainer{height:200px;position:relative;width:200px}.file{height:100%;opacity:0;position:absolute;width:100%}.imgUpload{background-color:#fff;border:2px solid #000}.imgText{left:0;position:absolute;text-align:center;top:45%;width:100%}",""]);const i=r},6798:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);a&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},5908:()=>{},5606:t=>{var e,n,a=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var s,l=[],c=!1,u=-1;function f(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var t=o(f);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||c||o(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=p,a.addListener=p,a.once=p,a.off=p,a.removeListener=p,a.removeAllListeners=p,a.emit=p,a.prependListener=p,a.prependOnceListener=p,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},5072:(t,e,n)=>{"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},a=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var f=s(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(o[f].references++,o[f].updater(d)):o.push({identifier:u,updater:g(d,e),references:1}),a.push(u)}return a}function c(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var o=i(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var u,f=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var i=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function h(t,e,n){var a=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var p=null,m=0;function g(t,e){var n,a,r;if(e.singleton){var i=m++;n=p||(p=c(e)),a=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=c(e),a=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].references--}for(var i=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=i}}}},5793:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>gg});var a=n(2284),r=Uint8Array,i=Uint16Array,o=Int32Array,s=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,e){for(var n=new i(31),a=0;a<31;++a)n[a]=e+=1<<t[a-1];var r=new o(n[30]);for(a=1;a<30;++a)for(var s=n[a];s<n[a+1];++s)r[s]=s-n[a]<<5|a;return{b:n,r}},f=u(s,2),d=f.b,h=f.r;d[28]=258,h[258]=28;for(var p=u(l,0),m=(p.b,p.r),g=new i(32768),v=0;v<32768;++v){var b=(43690&v)>>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,g[v]=((65280&b)>>8|(255&b)<<8)>>1}var _=function(t,e,n){for(var a=t.length,r=0,o=new i(e);r<a;++r)t[r]&&++o[t[r]-1];var s,l=new i(e);for(r=1;r<e;++r)l[r]=l[r-1]+o[r-1]<<1;if(n){s=new i(1<<e);var c=15-e;for(r=0;r<a;++r)if(t[r])for(var u=r<<4|t[r],f=e-t[r],d=l[t[r]-1]++<<f,h=d|(1<<f)-1;d<=h;++d)s[g[d]>>c]=u}else for(s=new i(a),r=0;r<a;++r)t[r]&&(s[r]=g[l[t[r]-1]++]>>15-t[r]);return s},y=new r(288);for(v=0;v<144;++v)y[v]=8;for(v=144;v<256;++v)y[v]=9;for(v=256;v<280;++v)y[v]=7;for(v=280;v<288;++v)y[v]=8;var w=new r(32);for(v=0;v<32;++v)w[v]=5;var x=_(y,9,0),k=_(w,5,0),A=function(t){return(t+7)/8|0},S=function(t,e,n){return(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length),new r(t.subarray(e,n))},C=function(t,e,n){n<<=7&e;var a=e/8|0;t[a]|=n,t[a+1]|=n>>8},E=function(t,e,n){n<<=7&e;var a=e/8|0;t[a]|=n,t[a+1]|=n>>8,t[a+2]|=n>>16},T=function(t,e){for(var n=[],a=0;a<t.length;++a)t[a]&&n.push({s:a,f:t[a]});var o=n.length,s=n.slice();if(!o)return{t:M,l:0};if(1==o){var l=new r(n[0].s+1);return l[n[0].s]=1,{t:l,l:1}}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var c=n[0],u=n[1],f=0,d=1,h=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};d!=o-1;)c=n[n[f].f<n[h].f?f++:h++],u=n[f!=d&&n[f].f<n[h].f?f++:h++],n[d++]={s:-1,f:c.f+u.f,l:c,r:u};var p=s[0].s;for(a=1;a<o;++a)s[a].s>p&&(p=s[a].s);var m=new i(p+1),g=N(n[d-1],m,0);if(g>e){a=0;var v=0,b=g-e,_=1<<b;for(s.sort((function(t,e){return m[e.s]-m[t.s]||t.f-e.f}));a<o;++a){var y=s[a].s;if(!(m[y]>e))break;v+=_-(1<<g-m[y]),m[y]=e}for(v>>=b;v>0;){var w=s[a].s;m[w]<e?v-=1<<e-m[w]++-1:++a}for(;a>=0&&v;--a){var x=s[a].s;m[x]==e&&(--m[x],++v)}g=e}return{t:new r(m),l:g}},N=function(t,e,n){return-1==t.s?Math.max(N(t.l,e,n+1),N(t.r,e,n+1)):e[t.s]=n},P=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new i(++e),a=0,r=t[0],o=1,s=function(t){n[a++]=t},l=1;l<=e;++l)if(t[l]==r&&l!=e)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=t[l]}return{c:n.subarray(0,a),n:e}},L=function(t,e){for(var n=0,a=0;a<e.length;++a)n+=t[a]*e[a];return n},O=function(t,e,n){var a=n.length,r=A(e+2);t[r]=255&a,t[r+1]=a>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var i=0;i<a;++i)t[r+i+4]=n[i];return 8*(r+4+a)},R=function(t,e,n,a,r,o,u,f,d,h,p){C(e,p++,n),++r[256];for(var m=T(r,15),g=m.t,v=m.l,b=T(o,15),A=b.t,S=b.l,N=P(g),R=N.c,I=N.n,M=P(A),F=M.c,D=M.n,j=new i(19),B=0;B<R.length;++B)++j[31&R[B]];for(B=0;B<F.length;++B)++j[31&F[B]];for(var U=T(j,7),z=U.t,H=U.l,q=19;q>4&&!z[c[q-1]];--q);var W,K,V,$,G=h+5<<3,Y=L(r,y)+L(o,w)+u,X=L(r,g)+L(o,A)+u+14+3*q+L(j,z)+2*j[16]+3*j[17]+7*j[18];if(d>=0&&G<=Y&&G<=X)return O(e,p,t.subarray(d,d+h));if(C(e,p,1+(X<Y)),p+=2,X<Y){W=_(g,v,0),K=g,V=_(A,S,0),$=A;var J=_(z,H,0);C(e,p,I-257),C(e,p+5,D-1),C(e,p+10,q-4),p+=14;for(B=0;B<q;++B)C(e,p+3*B,z[c[B]]);p+=3*q;for(var Z=[R,F],Q=0;Q<2;++Q){var tt=Z[Q];for(B=0;B<tt.length;++B){var et=31&tt[B];C(e,p,J[et]),p+=z[et],et>15&&(C(e,p,tt[B]>>5&127),p+=tt[B]>>12)}}}else W=x,K=y,V=k,$=w;for(B=0;B<f;++B){var nt=a[B];if(nt>255){E(e,p,W[(et=nt>>18&31)+257]),p+=K[et+257],et>7&&(C(e,p,nt>>23&31),p+=s[et]);var at=31&nt;E(e,p,V[at]),p+=$[at],at>3&&(E(e,p,nt>>5&8191),p+=l[at])}else E(e,p,W[nt]),p+=K[nt]}return E(e,p,W[256]),p+K[256]},I=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),M=new r(0),F=function(t,e,n,a,c,u){var f=u.z||t.length,d=new r(a+f+5*(1+Math.ceil(f/7e3))+c),p=d.subarray(a,d.length-c),g=u.l,v=7&(u.r||0);if(e){v&&(p[0]=u.r>>3);for(var b=I[e-1],_=b>>13,y=8191&b,w=(1<<n)-1,x=u.p||new i(32768),k=u.h||new i(w+1),C=Math.ceil(n/3),E=2*C,T=function(e){return(t[e]^t[e+1]<<C^t[e+2]<<E)&w},N=new o(25e3),P=new i(288),L=new i(32),M=0,F=0,D=u.i||0,j=0,B=u.w||0,U=0;D+2<f;++D){var z=T(D),H=32767&D,q=k[z];if(x[H]=q,k[z]=H,B<=D){var W=f-D;if((M>7e3||j>24576)&&(W>423||!g)){v=R(t,p,0,N,P,L,F,j,U,D-U,v),j=M=F=0,U=D;for(var K=0;K<286;++K)P[K]=0;for(K=0;K<30;++K)L[K]=0}var V=2,$=0,G=y,Y=H-q&32767;if(W>2&&z==T(D-Y))for(var X=Math.min(_,W)-1,J=Math.min(32767,D),Z=Math.min(258,W);Y<=J&&--G&&H!=q;){if(t[D+V]==t[D+V-Y]){for(var Q=0;Q<Z&&t[D+Q]==t[D+Q-Y];++Q);if(Q>V){if(V=Q,$=Y,Q>X)break;var tt=Math.min(Y,Q-2),et=0;for(K=0;K<tt;++K){var nt=D-Y+K&32767,at=nt-x[nt]&32767;at>et&&(et=at,q=nt)}}}Y+=(H=q)-(q=x[H])&32767}if($){N[j++]=268435456|h[V]<<18|m[$];var rt=31&h[V],it=31&m[$];F+=s[rt]+l[it],++P[257+rt],++L[it],B=D+V,++M}else N[j++]=t[D],++P[t[D]]}}for(D=Math.max(D,B);D<f;++D)N[j++]=t[D],++P[t[D]];v=R(t,p,g,N,P,L,F,j,U,D-U,v),g||(u.r=7&v|p[v/8|0]<<3,v-=7,u.h=k,u.p=x,u.i=D,u.w=B)}else{for(D=u.w||0;D<f+g;D+=65535){var ot=D+65535;ot>=f&&(p[v/8|0]=g,ot=f),v=O(p,v+1,t.subarray(D,ot))}u.i=f}return S(d,0,a+A(v)+c)},D=function(){var t=1,e=0;return{p:function(n){for(var a=t,r=e,i=0|n.length,o=0;o!=i;){for(var s=Math.min(o+2655,i);o<s;++o)r+=a+=n[o];a=(65535&a)+15*(a>>16),r=(65535&r)+15*(r>>16)}t=a,e=r},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(e%=65521))<<8|e>>8}}},j=function(t,e,n,a,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),s=new r(o.length+t.length);s.set(o),s.set(t,o.length),t=s,i.w=o.length}return F(t,null==e.level?6:e.level,null==e.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,n,a,i)},B=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},U=function(t,e){var n=e.level,a=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=a<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var r=D();r.p(e.dictionary),B(t,2,r.d())}};function z(t,e){e||(e={});var n=D();n.p(t);var a=j(t,e,e.dictionary?6:2,4);return U(a,e),B(a,a.length-4,n.d()),a}var H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(M,{stream:!0}),1}catch(Di){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return q(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e="utf8"){return new TextDecoder(e).decode(t)}const V=new TextEncoder;const G=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),Y={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class X{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let n=!1;"number"==typeof t?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,r=t.byteLength-a;let i=a;(ArrayBuffer.isView(t)||t instanceof X)&&(t.byteLength!==t.buffer.byteLength&&(i=t.byteOffset+a),t=t.buffer),this.lastWrittenByte=n?r:0,this.buffer=t,this.length=r,this.byteLength=r,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,r),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const e=2*(this.offset+t),n=new Uint8Array(e);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=e,this.byteLength=e,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const n=Y[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,r=this.buffer.slice(a,a+n);if(this.littleEndian===G&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(a,a+n));t.reverse();const r=new Y[e](t.buffer);return this.offset+=n,r.reverse(),r}const i=new Y[e](r);return this.offset+=n,i}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let n=0;n<t;n++)e+=this.readChar();return e}readUtf8(t=1){return K(this.readBytes(t))}decodeText(t=1,e="utf8"){return K(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(function(t){return V.encode(t)}(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function J(t){let e=t.length;for(;--e>=0;)t[e]=0}const Z=256,Q=286,tt=30,et=15,nt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),at=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),it=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ot=new Array(576);J(ot);const st=new Array(60);J(st);const lt=new Array(512);J(lt);const ct=new Array(256);J(ct);const ut=new Array(29);J(ut);const ft=new Array(tt);function dt(t,e,n,a,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=a,this.max_length=r,this.has_stree=t&&t.length}let ht,pt,mt;function gt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}J(ft);const vt=t=>t<256?lt[t]:lt[256+(t>>>7)],bt=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},_t=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,bt(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},yt=(t,e,n)=>{_t(t,n[2*e],n[2*e+1])},wt=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},xt=(t,e,n)=>{const a=new Array(16);let r,i,o=0;for(r=1;r<=et;r++)o=o+n[r-1]<<1,a[r]=o;for(i=0;i<=e;i++){let e=t[2*i+1];0!==e&&(t[2*i]=wt(a[e]++,e))}},kt=t=>{let e;for(e=0;e<Q;e++)t.dyn_ltree[2*e]=0;for(e=0;e<tt;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},At=t=>{t.bi_valid>8?bt(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},St=(t,e,n,a)=>{const r=2*e,i=2*n;return t[r]<t[i]||t[r]===t[i]&&a[e]<=a[n]},Ct=(t,e,n)=>{const a=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&St(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!St(e,a,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=a},Et=(t,e,n)=>{let a,r,i,o,s=0;if(0!==t.sym_next)do{a=255&t.pending_buf[t.sym_buf+s++],a+=(255&t.pending_buf[t.sym_buf+s++])<<8,r=t.pending_buf[t.sym_buf+s++],0===a?yt(t,r,e):(i=ct[r],yt(t,i+Z+1,e),o=nt[i],0!==o&&(r-=ut[i],_t(t,r,o)),a--,i=vt(a),yt(t,i,n),o=at[i],0!==o&&(a-=ft[i],_t(t,a,o)))}while(s<t.sym_next);yt(t,256,e)},Tt=(t,e)=>{const n=e.dyn_tree,a=e.stat_desc.static_tree,r=e.stat_desc.has_stree,i=e.stat_desc.elems;let o,s,l,c=-1;for(t.heap_len=0,t.heap_max=573,o=0;o<i;o++)0!==n[2*o]?(t.heap[++t.heap_len]=c=o,t.depth[o]=0):n[2*o+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=c<2?++c:0,n[2*l]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=a[2*l+1]);for(e.max_code=c,o=t.heap_len>>1;o>=1;o--)Ct(t,n,o);l=i;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Ct(t,n,1),s=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=s,n[2*l]=n[2*o]+n[2*s],t.depth[l]=(t.depth[o]>=t.depth[s]?t.depth[o]:t.depth[s])+1,n[2*o+1]=n[2*s+1]=l,t.heap[1]=l++,Ct(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,a=e.max_code,r=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,l=e.stat_desc.max_length;let c,u,f,d,h,p,m=0;for(d=0;d<=et;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,c=t.heap_max+1;c<573;c++)u=t.heap[c],d=n[2*n[2*u+1]+1]+1,d>l&&(d=l,m++),n[2*u+1]=d,u>a||(t.bl_count[d]++,h=0,u>=s&&(h=o[u-s]),p=n[2*u],t.opt_len+=p*(d+h),i&&(t.static_len+=p*(r[2*u+1]+h)));if(0!==m){do{for(d=l-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[l]--,m-=2}while(m>0);for(d=l;0!==d;d--)for(u=t.bl_count[d];0!==u;)f=t.heap[--c],f>a||(n[2*f+1]!==d&&(t.opt_len+=(d-n[2*f+1])*n[2*f],n[2*f+1]=d),u--)}})(t,e),xt(n,c,t.bl_count)},Nt=(t,e,n)=>{let a,r,i=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),e[2*(n+1)+1]=65535,a=0;a<=n;a++)r=o,o=e[2*(a+1)+1],++s<l&&r===o||(s<c?t.bl_tree[2*r]+=s:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=r,0===o?(l=138,c=3):r===o?(l=6,c=3):(l=7,c=4))},Pt=(t,e,n)=>{let a,r,i=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),a=0;a<=n;a++)if(r=o,o=e[2*(a+1)+1],!(++s<l&&r===o)){if(s<c)do{yt(t,r,t.bl_tree)}while(0!=--s);else 0!==r?(r!==i&&(yt(t,r,t.bl_tree),s--),yt(t,16,t.bl_tree),_t(t,s-3,2)):s<=10?(yt(t,17,t.bl_tree),_t(t,s-3,3)):(yt(t,18,t.bl_tree),_t(t,s-11,7));s=0,i=r,0===o?(l=138,c=3):r===o?(l=6,c=3):(l=7,c=4)}};let Lt=!1;const Ot=(t,e,n,a)=>{_t(t,0+(a?1:0),3),At(t),bt(t,n),bt(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n};var Rt=t=>{Lt||((()=>{let t,e,n,a,r;const i=new Array(16);for(n=0,a=0;a<28;a++)for(ut[a]=n,t=0;t<1<<nt[a];t++)ct[n++]=a;for(ct[n-1]=a,r=0,a=0;a<16;a++)for(ft[a]=r,t=0;t<1<<at[a];t++)lt[r++]=a;for(r>>=7;a<tt;a++)for(ft[a]=r<<7,t=0;t<1<<at[a]-7;t++)lt[256+r++]=a;for(e=0;e<=et;e++)i[e]=0;for(t=0;t<=143;)ot[2*t+1]=8,t++,i[8]++;for(;t<=255;)ot[2*t+1]=9,t++,i[9]++;for(;t<=279;)ot[2*t+1]=7,t++,i[7]++;for(;t<=287;)ot[2*t+1]=8,t++,i[8]++;for(xt(ot,287,i),t=0;t<tt;t++)st[2*t+1]=5,st[2*t]=wt(t,5);ht=new dt(ot,nt,257,Q,et),pt=new dt(st,at,0,tt,et),mt=new dt(new Array(0),rt,0,19,7)})(),Lt=!0),t.l_desc=new gt(t.dyn_ltree,ht),t.d_desc=new gt(t.dyn_dtree,pt),t.bl_desc=new gt(t.bl_tree,mt),t.bi_buf=0,t.bi_valid=0,kt(t)},It=(t,e,n,a)=>{let r,i,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<Z;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),Tt(t,t.l_desc),Tt(t,t.d_desc),o=(t=>{let e;for(Nt(t,t.dyn_ltree,t.l_desc.max_code),Nt(t,t.dyn_dtree,t.d_desc.max_code),Tt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*it[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),r=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=r&&(r=i)):r=i=n+5,n+4<=r&&-1!==e?Ot(t,e,n,a):4===t.strategy||i===r?(_t(t,2+(a?1:0),3),Et(t,ot,st)):(_t(t,4+(a?1:0),3),((t,e,n,a)=>{let r;for(_t(t,e-257,5),_t(t,n-1,5),_t(t,a-4,4),r=0;r<a;r++)_t(t,t.bl_tree[2*it[r]+1],3);Pt(t,t.dyn_ltree,e-1),Pt(t,t.dyn_dtree,n-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),Et(t,t.dyn_ltree,t.dyn_dtree)),kt(t),a&&At(t)},Mt=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ct[n]+Z+1)]++,t.dyn_dtree[2*vt(e)]++),t.sym_next===t.sym_end),Ft=t=>{_t(t,2,3),yt(t,256,ot),(t=>{16===t.bi_valid?(bt(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)},Dt={_tr_init:Rt,_tr_stored_block:Ot,_tr_flush_block:It,_tr_tally:Mt,_tr_align:Ft};var jt=(t,e,n,a)=>{let r=65535&t,i=t>>>16&65535,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{r=r+e[a++]|0,i=i+r|0}while(--o);r%=65521,i%=65521}return r|i<<16};const Bt=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var a=0;a<8;a++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());var Ut=(t,e,n,a)=>{const r=Bt,i=a+n;t^=-1;for(let n=a;n<i;n++)t=t>>>8^r[255&(t^e[n])];return~t},zt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ht={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:qt,_tr_stored_block:Wt,_tr_flush_block:Kt,_tr_tally:Vt,_tr_align:$t}=Dt,{Z_NO_FLUSH:Gt,Z_PARTIAL_FLUSH:Yt,Z_FULL_FLUSH:Xt,Z_FINISH:Jt,Z_BLOCK:Zt,Z_OK:Qt,Z_STREAM_END:te,Z_STREAM_ERROR:ee,Z_DATA_ERROR:ne,Z_BUF_ERROR:ae,Z_DEFAULT_COMPRESSION:re,Z_FILTERED:ie,Z_HUFFMAN_ONLY:oe,Z_RLE:se,Z_FIXED:le,Z_DEFAULT_STRATEGY:ce,Z_UNKNOWN:ue,Z_DEFLATED:fe}=Ht,de=258,he=262,pe=42,me=113,ge=666,ve=(t,e)=>(t.msg=zt[e],e),be=t=>2*t-(t>4?9:0),_e=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ye=t=>{let e,n,a,r=t.w_size;e=t.hash_size,a=e;do{n=t.head[--a],t.head[a]=n>=r?n-r:0}while(--e);e=r,a=e;do{n=t.prev[--a],t.prev[a]=n>=r?n-r:0}while(--e)};let we=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const xe=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},ke=(t,e)=>{Kt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,xe(t.strm)},Ae=(t,e)=>{t.pending_buf[t.pending++]=e},Se=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Ce=(t,e,n,a)=>{let r=t.avail_in;return r>a&&(r=a),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),1===t.state.wrap?t.adler=jt(t.adler,e,r,n):2===t.state.wrap&&(t.adler=Ut(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},Ee=(t,e)=>{let n,a,r=t.max_chain_length,i=t.strstart,o=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-he?t.strstart-(t.w_size-he):0,c=t.window,u=t.w_mask,f=t.prev,d=t.strstart+de;let h=c[i+o-1],p=c[i+o];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(n=e,c[n+o]===p&&c[n+o-1]===h&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(a=de-(d-i),i=d-de,a>o){if(t.match_start=e,o=a,a>=s)break;h=c[i+o-1],p=c[i+o]}}}while((e=f[e&u])>l&&0!=--r);return o<=t.lookahead?o:t.lookahead},Te=t=>{const e=t.w_size;let n,a,r;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-he)&&(t.window.set(t.window.subarray(e,e+e-a),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ye(t),a+=e),0===t.strm.avail_in)break;if(n=Ce(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=n,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=we(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=we(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<he&&0!==t.strm.avail_in)},Ne=(t,e)=>{let n,a,r,i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,o=0,s=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r)break;if(r=t.strm.avail_out-r,a=t.strstart-t.block_start,n>a+t.strm.avail_in&&(n=a+t.strm.avail_in),n>r&&(n=r),n<i&&(0===n&&e!==Jt||e===Gt||n!==a+t.strm.avail_in))break;o=e===Jt&&n===a+t.strm.avail_in?1:0,Wt(t,0,0,o),t.pending_buf[t.pending-4]=n,t.pending_buf[t.pending-3]=n>>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,xe(t.strm),a&&(a>n&&(a=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,n-=a),n&&(Ce(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===o);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?4:e!==Gt&&e!==Jt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(r=t.window_size-t.strstart,t.strm.avail_in>r&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(Ce(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,i=r>t.w_size?t.w_size:r,a=t.strstart-t.block_start,(a>=i||(a||e===Jt)&&e!==Gt&&0===t.strm.avail_in&&a<=r)&&(n=a>r?r:a,o=e===Jt&&0===t.strm.avail_in&&n===a?1:0,Wt(t,t.block_start,n,o),t.block_start+=n,xe(t.strm)),o?3:1)},Pe=(t,e)=>{let n,a;for(;;){if(t.lookahead<he){if(Te(t),t.lookahead<he&&e===Gt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-he&&(t.match_length=Ee(t,n)),t.match_length>=3)if(a=Vt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=we(t,t.ins_h,t.window[t.strstart+1]);else a=Vt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2},Le=(t,e)=>{let n,a,r;for(;;){if(t.lookahead<he){if(Te(t),t.lookahead<he&&e===Gt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-he&&(t.match_length=Ee(t,n),t.match_length<=5&&(t.strategy===ie||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,a=Vt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,a&&(ke(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(a=Vt(t,0,t.window[t.strstart-1]),a&&ke(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=Vt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2};function Oe(t,e,n,a,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=a,this.func=r}const Re=[new Oe(0,0,0,0,Ne),new Oe(4,4,8,4,Pe),new Oe(4,5,16,8,Pe),new Oe(4,6,32,32,Pe),new Oe(4,4,16,16,Le),new Oe(8,16,32,32,Le),new Oe(8,16,128,128,Le),new Oe(8,32,128,256,Le),new Oe(32,128,258,1024,Le),new Oe(32,258,258,4096,Le)];function Ie(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=fe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),_e(this.dyn_ltree),_e(this.dyn_dtree),_e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),_e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),_e(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Me=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==pe&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==me&&e.status!==ge?1:0},Fe=t=>{if(Me(t))return ve(t,ee);t.total_in=t.total_out=0,t.data_type=ue;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?pe:me,t.adler=2===e.wrap?0:1,e.last_flush=-2,qt(e),Qt},De=t=>{const e=Fe(t);return e===Qt&&(t=>{t.window_size=2*t.w_size,_e(t.head),t.max_lazy_match=Re[t.level].max_lazy,t.good_match=Re[t.level].good_length,t.nice_match=Re[t.level].nice_length,t.max_chain_length=Re[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0})(t.state),e},je=(t,e,n,a,r,i)=>{if(!t)return ee;let o=1;if(e===re&&(e=6),a<0?(o=0,a=-a):a>15&&(o=2,a-=16),r<1||r>9||n!==fe||a<8||a>15||e<0||e>9||i<0||i>le||8===a&&1!==o)return ve(t,ee);8===a&&(a=9);const s=new Ie;return t.state=s,s.strm=t,s.status=pe,s.wrap=o,s.gzhead=null,s.w_bits=a,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=i,s.method=n,De(t)};var Be=(t,e)=>{if(Me(t)||e>Zt||e<0)return t?ve(t,ee):ee;const n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===ge&&e!==Jt)return ve(t,0===t.avail_out?ae:ee);const a=n.last_flush;if(n.last_flush=e,0!==n.pending){if(xe(t),0===t.avail_out)return n.last_flush=-1,Qt}else if(0===t.avail_in&&be(e)<=be(a)&&e!==Jt)return ve(t,ae);if(n.status===ge&&0!==t.avail_in)return ve(t,ae);if(n.status===pe&&0===n.wrap&&(n.status=me),n.status===pe){let e=fe+(n.w_bits-8<<4)<<8,a=-1;if(a=n.strategy>=oe||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=a<<6,0!==n.strstart&&(e|=32),e+=31-e%31,Se(n,e),0!==n.strstart&&(Se(n,t.adler>>>16),Se(n,65535&t.adler)),t.adler=1,n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt}if(57===n.status)if(t.adler=0,Ae(n,31),Ae(n,139),Ae(n,8),n.gzhead)Ae(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ae(n,255&n.gzhead.time),Ae(n,n.gzhead.time>>8&255),Ae(n,n.gzhead.time>>16&255),Ae(n,n.gzhead.time>>24&255),Ae(n,9===n.level?2:n.strategy>=oe||n.level<2?4:0),Ae(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ae(n,255&n.gzhead.extra.length),Ae(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Ut(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Ae(n,0),Ae(n,0),Ae(n,0),Ae(n,0),Ae(n,0),Ae(n,9===n.level?2:n.strategy>=oe||n.level<2?4:0),Ae(n,3),n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt;if(69===n.status){if(n.gzhead.extra){let e=n.pending,a=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+a>n.pending_buf_size;){let r=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>e&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex+=r,xe(t),0!==n.pending)return n.last_flush=-1,Qt;e=0,a-=r}let r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending+=a,n.gzhead.hcrc&&n.pending>e&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let e,a=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-a,a)),xe(t),0!==n.pending)return n.last_flush=-1,Qt;a=0}e=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ae(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>a&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let e,a=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-a,a)),xe(t),0!==n.pending)return n.last_flush=-1,Qt;a=0}e=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ae(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>a&&(t.adler=Ut(t.adler,n.pending_buf,n.pending-a,a))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(xe(t),0!==n.pending))return n.last_flush=-1,Qt;Ae(n,255&t.adler),Ae(n,t.adler>>8&255),t.adler=0}if(n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt}if(0!==t.avail_in||0!==n.lookahead||e!==Gt&&n.status!==ge){let a=0===n.level?Ne(n,e):n.strategy===oe?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(Te(t),0===t.lookahead)){if(e===Gt)return 1;break}if(t.match_length=0,n=Vt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2})(n,e):n.strategy===se?((t,e)=>{let n,a,r,i;const o=t.window;for(;;){if(t.lookahead<=de){if(Te(t),t.lookahead<=de&&e===Gt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=t.strstart-1,a=o[r],a===o[++r]&&a===o[++r]&&a===o[++r])){i=t.strstart+de;do{}while(a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&r<i);t.match_length=de-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Vt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Vt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2})(n,e):Re[n.level].func(n,e);if(3!==a&&4!==a||(n.status=ge),1===a||3===a)return 0===t.avail_out&&(n.last_flush=-1),Qt;if(2===a&&(e===Yt?$t(n):e!==Zt&&(Wt(n,0,0,!1),e===Xt&&(_e(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),xe(t),0===t.avail_out))return n.last_flush=-1,Qt}return e!==Jt?Qt:n.wrap<=0?te:(2===n.wrap?(Ae(n,255&t.adler),Ae(n,t.adler>>8&255),Ae(n,t.adler>>16&255),Ae(n,t.adler>>24&255),Ae(n,255&t.total_in),Ae(n,t.total_in>>8&255),Ae(n,t.total_in>>16&255),Ae(n,t.total_in>>24&255)):(Se(n,t.adler>>>16),Se(n,65535&t.adler)),xe(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Qt:te)},Ue=(t,e)=>{let n=e.length;if(Me(t))return ee;const a=t.state,r=a.wrap;if(2===r||1===r&&a.status!==pe||a.lookahead)return ee;if(1===r&&(t.adler=jt(t.adler,e,n,0)),a.wrap=0,n>=a.w_size){0===r&&(_e(a.head),a.strstart=0,a.block_start=0,a.insert=0);let t=new Uint8Array(a.w_size);t.set(e.subarray(n-a.w_size,n),0),e=t,n=a.w_size}const i=t.avail_in,o=t.next_in,s=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Te(a);a.lookahead>=3;){let t=a.strstart,e=a.lookahead-2;do{a.ins_h=we(a,a.ins_h,a.window[t+3-1]),a.prev[t&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=t,t++}while(--e);a.strstart=t,a.lookahead=2,Te(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=o,t.input=s,t.avail_in=i,a.wrap=r,Qt},ze={deflateInit:(t,e)=>je(t,e,fe,15,8,ce),deflateInit2:je,deflateReset:De,deflateResetKeep:Fe,deflateSetHeader:(t,e)=>Me(t)||2!==t.state.wrap?ee:(t.state.gzhead=e,Qt),deflate:Be,deflateEnd:t=>{if(Me(t))return ee;const e=t.state.status;return t.state=null,e===me?ve(t,ne):Qt},deflateSetDictionary:Ue,deflateInfo:"pako deflate (from Nodeca project)"};const He=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var qe={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const e in n)He(n,e)&&(t[e]=n[e])}}return t},flattenChunks:t=>{let e=0;for(let n=0,a=t.length;n<a;n++)e+=t[n].length;const n=new Uint8Array(e);for(let e=0,a=0,r=t.length;e<r;e++){let r=t[e];n.set(r,a),a+=r.length}return n}};let We=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){We=!1}const Ke=new Uint8Array(256);for(let t=0;t<256;t++)Ke[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ke[254]=Ke[254]=1;var Ve={string2buf:t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,a,r,i,o=t.length,s=0;for(r=0;r<o;r++)n=t.charCodeAt(r),55296==(64512&n)&&r+1<o&&(a=t.charCodeAt(r+1),56320==(64512&a)&&(n=65536+(n-55296<<10)+(a-56320),r++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),i=0,r=0;i<s;r++)n=t.charCodeAt(r),55296==(64512&n)&&r+1<o&&(a=t.charCodeAt(r+1),56320==(64512&a)&&(n=65536+(n-55296<<10)+(a-56320),r++)),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|63&n):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|63&n):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|63&n);return e},buf2string:(t,e)=>{const n=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let a,r;const i=new Array(2*n);for(r=0,a=0;a<n;){let e=t[a++];if(e<128){i[r++]=e;continue}let o=Ke[e];if(o>4)i[r++]=65533,a+=o-1;else{for(e&=2===o?31:3===o?15:7;o>1&&a<n;)e=e<<6|63&t[a++],o--;o>1?i[r++]=65533:e<65536?i[r++]=e:(e-=65536,i[r++]=55296|e>>10&1023,i[r++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&We)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n})(i,r)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+Ke[t[n]]>e?n:e}};var $e=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ge=Object.prototype.toString,{Z_NO_FLUSH:Ye,Z_SYNC_FLUSH:Xe,Z_FULL_FLUSH:Je,Z_FINISH:Ze,Z_OK:Qe,Z_STREAM_END:tn,Z_DEFAULT_COMPRESSION:en,Z_DEFAULT_STRATEGY:nn,Z_DEFLATED:an}=Ht;function rn(t){this.options=qe.assign({level:en,method:an,chunkSize:16384,windowBits:15,memLevel:8,strategy:nn},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $e,this.strm.avail_out=0;let n=ze.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Qe)throw new Error(zt[n]);if(e.header&&ze.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Ve.string2buf(e.dictionary):"[object ArrayBuffer]"===Ge.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=ze.deflateSetDictionary(this.strm,t),n!==Qe)throw new Error(zt[n]);this._dict_set=!0}}function on(t,e){const n=new rn(e);if(n.push(t,!0),n.err)throw n.msg||zt[n.err];return n.result}rn.prototype.push=function(t,e){const n=this.strm,a=this.options.chunkSize;let r,i;if(this.ended)return!1;for(i=e===~~e?e:!0===e?Ze:Ye,"string"==typeof t?n.input=Ve.string2buf(t):"[object ArrayBuffer]"===Ge.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),(i===Xe||i===Je)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(r=ze.deflate(n,i),r===tn)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=ze.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Qe;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},rn.prototype.onData=function(t){this.chunks.push(t)},rn.prototype.onEnd=function(t){t===Qe&&(this.result=qe.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var sn=function(t,e){return(e=e||{}).raw=!0,on(t,e)},ln=function(t,e){return(e=e||{}).gzip=!0,on(t,e)},cn={Deflate:rn,deflate:on,deflateRaw:sn,gzip:ln,constants:Ht};const un=16209;var fn=function(t,e){let n,a,r,i,o,s,l,c,u,f,d,h,p,m,g,v,b,_,y,w,x,k,A,S;const C=t.state;n=t.next_in,A=t.input,a=n+(t.avail_in-5),r=t.next_out,S=t.output,i=r-(e-t.avail_out),o=r+(t.avail_out-257),s=C.dmax,l=C.wsize,c=C.whave,u=C.wnext,f=C.window,d=C.hold,h=C.bits,p=C.lencode,m=C.distcode,g=(1<<C.lenbits)-1,v=(1<<C.distbits)-1;t:do{h<15&&(d+=A[n++]<<h,h+=8,d+=A[n++]<<h,h+=8),b=p[d&g];e:for(;;){if(_=b>>>24,d>>>=_,h-=_,_=b>>>16&255,0===_)S[r++]=65535&b;else{if(!(16&_)){if(64&_){if(32&_){C.mode=16191;break t}t.msg="invalid literal/length code",C.mode=un;break t}b=p[(65535&b)+(d&(1<<_)-1)];continue e}for(y=65535&b,_&=15,_&&(h<_&&(d+=A[n++]<<h,h+=8),y+=d&(1<<_)-1,d>>>=_,h-=_),h<15&&(d+=A[n++]<<h,h+=8,d+=A[n++]<<h,h+=8),b=m[d&v];;){if(_=b>>>24,d>>>=_,h-=_,_=b>>>16&255,16&_){if(w=65535&b,_&=15,h<_&&(d+=A[n++]<<h,h+=8,h<_&&(d+=A[n++]<<h,h+=8)),w+=d&(1<<_)-1,w>s){t.msg="invalid distance too far back",C.mode=un;break t}if(d>>>=_,h-=_,_=r-i,w>_){if(_=w-_,_>c&&C.sane){t.msg="invalid distance too far back",C.mode=un;break t}if(x=0,k=f,0===u){if(x+=l-_,_<y){y-=_;do{S[r++]=f[x++]}while(--_);x=r-w,k=S}}else if(u<_){if(x+=l+u-_,_-=u,_<y){y-=_;do{S[r++]=f[x++]}while(--_);if(x=0,u<y){_=u,y-=_;do{S[r++]=f[x++]}while(--_);x=r-w,k=S}}}else if(x+=u-_,_<y){y-=_;do{S[r++]=f[x++]}while(--_);x=r-w,k=S}for(;y>2;)S[r++]=k[x++],S[r++]=k[x++],S[r++]=k[x++],y-=3;y&&(S[r++]=k[x++],y>1&&(S[r++]=k[x++]))}else{x=r-w;do{S[r++]=S[x++],S[r++]=S[x++],S[r++]=S[x++],y-=3}while(y>2);y&&(S[r++]=S[x++],y>1&&(S[r++]=S[x++]))}break}if(64&_){t.msg="invalid distance code",C.mode=un;break t}b=m[(65535&b)+(d&(1<<_)-1)]}}break}}while(n<a&&r<o);y=h>>3,n-=y,h-=y<<3,d&=(1<<h)-1,t.next_in=n,t.next_out=r,t.avail_in=n<a?a-n+5:5-(n-a),t.avail_out=r<o?o-r+257:257-(r-o),C.hold=d,C.bits=h};const dn=15,hn=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),pn=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mn=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),gn=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var vn=(t,e,n,a,r,i,o,s)=>{const l=s.bits;let c,u,f,d,h,p,m=0,g=0,v=0,b=0,_=0,y=0,w=0,x=0,k=0,A=0,S=null;const C=new Uint16Array(16),E=new Uint16Array(16);let T,N,P,L=null;for(m=0;m<=dn;m++)C[m]=0;for(g=0;g<a;g++)C[e[n+g]]++;for(_=l,b=dn;b>=1&&0===C[b];b--);if(_>b&&(_=b),0===b)return r[i++]=20971520,r[i++]=20971520,s.bits=1,0;for(v=1;v<b&&0===C[v];v++);for(_<v&&(_=v),x=1,m=1;m<=dn;m++)if(x<<=1,x-=C[m],x<0)return-1;if(x>0&&(0===t||1!==b))return-1;for(E[1]=0,m=1;m<dn;m++)E[m+1]=E[m]+C[m];for(g=0;g<a;g++)0!==e[n+g]&&(o[E[e[n+g]]++]=g);if(0===t?(S=L=o,p=20):1===t?(S=hn,L=pn,p=257):(S=mn,L=gn,p=0),A=0,g=0,m=v,h=i,y=_,w=0,f=-1,k=1<<_,d=k-1,1===t&&k>852||2===t&&k>592)return 1;for(;;){T=m-w,o[g]+1<p?(N=0,P=o[g]):o[g]>=p?(N=L[o[g]-p],P=S[o[g]-p]):(N=96,P=0),c=1<<m-w,u=1<<y,v=u;do{u-=c,r[h+(A>>w)+u]=T<<24|N<<16|P}while(0!==u);for(c=1<<m-1;A&c;)c>>=1;if(0!==c?(A&=c-1,A+=c):A=0,g++,0==--C[m]){if(m===b)break;m=e[n+o[g]]}if(m>_&&(A&d)!==f){for(0===w&&(w=_),h+=v,y=m-w,x=1<<y;y+w<b&&(x-=C[y+w],!(x<=0));)y++,x<<=1;if(k+=1<<y,1===t&&k>852||2===t&&k>592)return 1;f=A&d,r[f]=_<<24|y<<16|h-i}}return 0!==A&&(r[h+A]=m-w<<24|64<<16),s.bits=_,0};const{Z_FINISH:bn,Z_BLOCK:_n,Z_TREES:yn,Z_OK:wn,Z_STREAM_END:xn,Z_NEED_DICT:kn,Z_STREAM_ERROR:An,Z_DATA_ERROR:Sn,Z_MEM_ERROR:Cn,Z_BUF_ERROR:En,Z_DEFLATED:Tn}=Ht,Nn=16180,Pn=16190,Ln=16191,On=16192,Rn=16194,In=16199,Mn=16200,Fn=16206,Dn=16209,jn=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Bn(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Un=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Nn||e.mode>16211?1:0},zn=t=>{if(Un(t))return An;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Nn,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,wn},Hn=t=>{if(Un(t))return An;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,zn(t)},qn=(t,e)=>{let n;if(Un(t))return An;const a=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?An:(null!==a.window&&a.wbits!==e&&(a.window=null),a.wrap=n,a.wbits=e,Hn(t))},Wn=(t,e)=>{if(!t)return An;const n=new Bn;t.state=n,n.strm=t,n.window=null,n.mode=Nn;const a=qn(t,e);return a!==wn&&(t.state=null),a};let Kn,Vn,$n=!0;const Gn=t=>{if($n){Kn=new Int32Array(512),Vn=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(vn(1,t.lens,0,288,Kn,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;vn(2,t.lens,0,32,Vn,0,t.work,{bits:5}),$n=!1}t.lencode=Kn,t.lenbits=9,t.distcode=Vn,t.distbits=5},Yn=(t,e,n,a)=>{let r;const i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),a>=i.wsize?(i.window.set(e.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>a&&(r=a),i.window.set(e.subarray(n-a,n-a+r),i.wnext),(a-=r)?(i.window.set(e.subarray(n-a,n),0),i.wnext=a,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0};var Xn=(t,e)=>{let n,a,r,i,o,s,l,c,u,f,d,h,p,m,g,v,b,_,y,w,x,k,A=0;const S=new Uint8Array(4);let C,E;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Un(t)||!t.output||!t.input&&0!==t.avail_in)return An;n=t.state,n.mode===Ln&&(n.mode=On),o=t.next_out,r=t.output,l=t.avail_out,i=t.next_in,a=t.input,s=t.avail_in,c=n.hold,u=n.bits,f=s,d=l,k=wn;t:for(;;)switch(n.mode){case Nn:if(0===n.wrap){n.mode=On;break}for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,S[0]=255&c,S[1]=c>>>8&255,n.check=Ut(n.check,S,2,0),c=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=Dn;break}if((15&c)!==Tn){t.msg="unknown compression method",n.mode=Dn;break}if(c>>>=4,u-=4,x=8+(15&c),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){t.msg="invalid window size",n.mode=Dn;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=512&c?16189:Ln,c=0,u=0;break;case 16181:for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==Tn){t.msg="unknown compression method",n.mode=Dn;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Dn;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(S[0]=255&c,S[1]=c>>>8&255,n.check=Ut(n.check,S,2,0)),c=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(S[0]=255&c,S[1]=c>>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,n.check=Ut(n.check,S,4,0)),c=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(S[0]=255&c,S[1]=c>>>8&255,n.check=Ut(n.check,S,2,0)),c=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(S[0]=255&c,S[1]=c>>>8&255,n.check=Ut(n.check,S,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(h=n.length,h>s&&(h=s),h&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(a.subarray(i,i+h),x)),512&n.flags&&4&n.wrap&&(n.check=Ut(n.check,a,h,i)),s-=h,i+=h,n.length-=h),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break t;h=0;do{x=a[i+h++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&h<s);if(512&n.flags&&4&n.wrap&&(n.check=Ut(n.check,a,h,i)),s-=h,i+=h,x)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break t;h=0;do{x=a[i+h++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&h<s);if(512&n.flags&&4&n.wrap&&(n.check=Ut(n.check,a,h,i)),s-=h,i+=h,x)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(4&n.wrap&&c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Dn;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Ln;break;case 16189:for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}t.adler=n.check=jn(c),c=0,u=0,n.mode=Pn;case Pn:if(0===n.havedict)return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,kn;t.adler=n.check=1,n.mode=Ln;case Ln:if(e===_n||e===yn)break t;case On:if(n.last){c>>>=7&u,u-=7&u,n.mode=Fn;break}for(;u<3;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=16193;break;case 1:if(Gn(n),n.mode=In,e===yn){c>>>=2,u-=2;break t}break;case 2:n.mode=16196;break;case 3:t.msg="invalid block type",n.mode=Dn}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Dn;break}if(n.length=65535&c,c=0,u=0,n.mode=Rn,e===yn)break t;case Rn:n.mode=16195;case 16195:if(h=n.length,h){if(h>s&&(h=s),h>l&&(h=l),0===h)break t;r.set(a.subarray(i,i+h),o),s-=h,i+=h,l-=h,o+=h,n.length-=h;break}n.mode=Ln;break;case 16196:for(;u<14;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Dn;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.lens[T[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},k=vn(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,k){t.msg="invalid code lengths set",n.mode=Dn;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(b<16)c>>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){for(E=g+2;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=Dn;break}x=n.lens[n.have-1],h=3+(3&c),c>>>=2,u-=2}else if(17===b){for(E=g+3;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=g,u-=g,x=0,h=3+(7&c),c>>>=3,u-=3}else{for(E=g+7;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=g,u-=g,x=0,h=11+(127&c),c>>>=7,u-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Dn;break}for(;h--;)n.lens[n.have++]=x}}if(n.mode===Dn)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Dn;break}if(n.lenbits=9,C={bits:n.lenbits},k=vn(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,k){t.msg="invalid literal/lengths set",n.mode=Dn;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},k=vn(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,k){t.msg="invalid distances set",n.mode=Dn;break}if(n.mode=In,e===yn)break t;case In:n.mode=Mn;case Mn:if(s>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,fn(t,d),o=t.next_out,r=t.output,l=t.avail_out,i=t.next_in,a=t.input,s=t.avail_in,c=n.hold,u=n.bits,n.mode===Ln&&(n.back=-1);break}for(n.back=0;A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(v&&!(240&v)){for(_=g,y=v,w=b;A=n.lencode[w+((c&(1<<_+y)-1)>>_)],g=A>>>24,v=A>>>16&255,b=65535&A,!(_+g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=g,u-=g,n.back+=g,n.length=b,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Ln;break}if(64&v){t.msg="invalid literal/length code",n.mode=Dn;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(E=n.extra;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;A=n.distcode[c&(1<<n.distbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(!(240&v)){for(_=g,y=v,w=b;A=n.distcode[w+((c&(1<<_+y)-1)>>_)],g=A>>>24,v=A>>>16&255,b=65535&A,!(_+g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=g,u-=g,n.back+=g,64&v){t.msg="invalid distance code",n.mode=Dn;break}n.offset=b,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(E=n.extra;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Dn;break}n.mode=16204;case 16204:if(0===l)break t;if(h=d-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Dn;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=r,p=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do{r[o++]=m[p++]}while(--h);0===n.length&&(n.mode=Mn);break;case 16205:if(0===l)break t;r[o++]=n.length,l--,n.mode=Mn;break;case Fn:if(n.wrap){for(;u<32;){if(0===s)break t;s--,c|=a[i++]<<u,u+=8}if(d-=l,t.total_out+=d,n.total+=d,4&n.wrap&&d&&(t.adler=n.check=n.flags?Ut(n.check,r,d,o-d):jt(n.check,r,d,o-d)),d=l,4&n.wrap&&(n.flags?c:jn(c))!==n.check){t.msg="incorrect data check",n.mode=Dn;break}c=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(4&n.wrap&&c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Dn;break}c=0,u=0}n.mode=16208;case 16208:k=xn;break t;case Dn:k=Sn;break t;case 16210:return Cn;default:return An}return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<Dn&&(n.mode<Fn||e!==bn))&&Yn(t,t.output,t.next_out,d-t.avail_out),f-=t.avail_in,d-=t.avail_out,t.total_in+=f,t.total_out+=d,n.total+=d,4&n.wrap&&d&&(t.adler=n.check=n.flags?Ut(n.check,r,d,t.next_out-d):jt(n.check,r,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Ln?128:0)+(n.mode===In||n.mode===Rn?256:0),(0===f&&0===d||e===bn)&&k===wn&&(k=En),k},Jn={inflateReset:Hn,inflateReset2:qn,inflateResetKeep:zn,inflateInit:t=>Wn(t,15),inflateInit2:Wn,inflate:Xn,inflateEnd:t=>{if(Un(t))return An;let e=t.state;return e.window&&(e.window=null),t.state=null,wn},inflateGetHeader:(t,e)=>{if(Un(t))return An;const n=t.state;return 2&n.wrap?(n.head=e,e.done=!1,wn):An},inflateSetDictionary:(t,e)=>{const n=e.length;let a,r,i;return Un(t)?An:(a=t.state,0!==a.wrap&&a.mode!==Pn?An:a.mode===Pn&&(r=1,r=jt(r,e,n,0),r!==a.check)?Sn:(i=Yn(t,e,n,n),i?(a.mode=16210,Cn):(a.havedict=1,wn)))},inflateInfo:"pako inflate (from Nodeca project)"};var Zn=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Qn=Object.prototype.toString,{Z_NO_FLUSH:ta,Z_FINISH:ea,Z_OK:na,Z_STREAM_END:aa,Z_NEED_DICT:ra,Z_STREAM_ERROR:ia,Z_DATA_ERROR:oa,Z_MEM_ERROR:sa}=Ht;function la(t){this.options=qe.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $e,this.strm.avail_out=0;let n=Jn.inflateInit2(this.strm,e.windowBits);if(n!==na)throw new Error(zt[n]);if(this.header=new Zn,Jn.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Ve.string2buf(e.dictionary):"[object ArrayBuffer]"===Qn.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Jn.inflateSetDictionary(this.strm,e.dictionary),n!==na)))throw new Error(zt[n])}function ca(t,e){const n=new la(e);if(n.push(t),n.err)throw n.msg||zt[n.err];return n.result}la.prototype.push=function(t,e){const n=this.strm,a=this.options.chunkSize,r=this.options.dictionary;let i,o,s;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ea:ta,"[object ArrayBuffer]"===Qn.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),i=Jn.inflate(n,o),i===ra&&r&&(i=Jn.inflateSetDictionary(n,r),i===na?i=Jn.inflate(n,o):i===oa&&(i=ra));n.avail_in>0&&i===aa&&n.state.wrap>0&&0!==t[n.next_in];)Jn.inflateReset(n),i=Jn.inflate(n,o);switch(i){case ia:case oa:case ra:case sa:return this.onEnd(i),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||i===aa))if("string"===this.options.to){let t=Ve.utf8border(n.output,n.next_out),e=n.next_out-t,r=Ve.buf2string(n.output,t);n.next_out=e,n.avail_out=a-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(i!==na||0!==s){if(i===aa)return i=Jn.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},la.prototype.onData=function(t){this.chunks.push(t)},la.prototype.onEnd=function(t){t===na&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=qe.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ua=function(t,e){return(e=e||{}).raw=!0,ca(t,e)},fa={Inflate:la,inflate:ca,inflateRaw:ua,ungzip:ca,constants:Ht};const{Deflate:da,deflate:ha,deflateRaw:pa,gzip:ma}=cn,{Inflate:ga,inflate:va,inflateRaw:ba,ungzip:_a}=fa;var ya=ga,wa=va;const xa=[];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)1&e?e=3988292384^e>>>1:e>>>=1;xa[t]=e}const ka=4294967295;function Aa(t,e){return(function(t,e,n){let a=t;for(let t=0;t<n;t++)a=xa[255&(a^e[t])]^a>>>8;return a}(ka,t,e)^ka)>>>0}function Sa(t,e,n){const a=t.readUint32(),r=Aa(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(r!==a)throw new Error(`CRC mismatch for chunk ${n}. Expected ${a}, found ${r}`)}function Ca(t,e,n){for(let a=0;a<n;a++)e[a]=t[a]}function Ea(t,e,n,a){let r=0;for(;r<a;r++)e[r]=t[r];for(;r<n;r++)e[r]=t[r]+e[r-a]&255}function Ta(t,e,n,a){let r=0;if(0===n.length)for(;r<a;r++)e[r]=t[r];else for(;r<a;r++)e[r]=t[r]+n[r]&255}function Na(t,e,n,a,r){let i=0;if(0===n.length){for(;i<r;i++)e[i]=t[i];for(;i<a;i++)e[i]=t[i]+(e[i-r]>>1)&255}else{for(;i<r;i++)e[i]=t[i]+(n[i]>>1)&255;for(;i<a;i++)e[i]=t[i]+(e[i-r]+n[i]>>1)&255}}function Pa(t,e,n,a,r){let i=0;if(0===n.length){for(;i<r;i++)e[i]=t[i];for(;i<a;i++)e[i]=t[i]+e[i-r]&255}else{for(;i<r;i++)e[i]=t[i]+n[i]&255;for(;i<a;i++)e[i]=t[i]+La(e[i-r],n[i],n[i-r])&255}}function La(t,e,n){const a=t+e-n,r=Math.abs(a-t),i=Math.abs(a-e),o=Math.abs(a-n);return r<=i&&r<=o?t:i<=o?e:n}function Oa(t,e,n,a,r,i){switch(t){case 0:Ca(e,n,r);break;case 1:Ea(e,n,r,i);break;case 2:Ta(e,n,a,r);break;case 3:Na(e,n,a,r,i);break;case 4:Pa(e,n,a,r,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Ra=new Uint16Array([255]),Ia=255===new Uint8Array(Ra.buffer)[0];const Ma=new Uint16Array([255]),Fa=255===new Uint8Array(Ma.buffer)[0],Da=new Uint8Array(0);function ja(t){const{data:e,width:n,height:a,channels:r,depth:i}=t,o=Math.ceil(i/8)*r,s=Math.ceil(i/8*r*n),l=new Uint8Array(a*s);let c,u,f=Da,d=0;for(let t=0;t<a;t++){switch(c=e.subarray(d+1,d+1+s),u=l.subarray(t*s,(t+1)*s),e[d]){case 0:Ca(c,u,s);break;case 1:Ea(c,u,s,o);break;case 2:Ta(c,u,f,s);break;case 3:Na(c,u,f,s,o);break;case 4:Pa(c,u,f,s,o);break;default:throw new Error(`Unsupported filter: ${e[d]}`)}f=u,d+=s+1}if(16===i){const t=new Uint16Array(l.buffer);if(Fa)for(let e=0;e<t.length;e++)t[e]=(255&(h=t[e]))<<8|h>>8&255;return t}return l;var h}const Ba=Uint8Array.of(137,80,78,71,13,10,26,10);function Ua(t){if(!function(t){if(t.length<Ba.length)return!1;for(let e=0;e<Ba.length;e++)if(t[e]!==Ba[e])return!1;return!0}(t.readBytes(Ba.length)))throw new Error("wrong PNG signature")}const za="tEXt",Ha=0,qa=new TextDecoder("latin1");function Wa(t){if(Va(t),0===t.length||t.length>79)throw new Error("keyword length must be between 1 and 79")}const Ka=/^[\u0000-\u00FF]*$/;function Va(t){if(!Ka.test(t))throw new Error("invalid latin1 text")}function $a(t,e,n){const a=Ga(e);t[a]=function(t,e){return qa.decode(t.readBytes(e))}(e,n-a.length-1)}function Ga(t){for(t.mark();t.readByte()!==Ha;);const e=t.offset;t.reset();const n=qa.decode(t.readBytes(e-t.offset-1));return t.skip(1),Wa(n),n}const Ya=-1,Xa=0,Ja=2,Za=3,Qa=4,tr=6,er=-1,nr=0,ar=-1,rr=0,ir=-1,or=0,sr=1,lr=0,cr=1,ur=2,fr=0,dr=1;class hr extends X{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:n=!1}=e;this._checkCrc=n,this._inflator=new ya,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=er,this._filterMethod=ar,this._interlaceMethod=ir,this._colorType=Ya,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Ua(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(Ua(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const n=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case za:$a(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t)}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Sa(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const n=this.offset;switch("fdAT"!==e&&"IDAT"!==e&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=n+t}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Sa(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=function(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw new Error(`invalid bit depth: ${t}`);return t}(this.readUint8());const e=this.readUint8();let n;switch(this._colorType=e,e){case Xa:n=1;break;case Ja:n=3;break;case Za:n=1;break;case Qa:n=2;break;case tr:n=4;break;default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==nr)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const e=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let t=0;t<e;t++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,n=this.offset+this.byteOffset;if(n+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Xa:case Ja:if(t%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break;case Za:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let e=0;for(;e<t;e++){const t=this.readByte();this._palette[e].push(t)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=Ga(this),n=this.readUint8();if(n!==nr)throw new Error(`Unsupported iCCP compression method: ${n}`);const a=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:wa(a)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),n=this.readByte();this._png.resolution={x:t,y:e,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const e={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(t);if(n){if(n.data=ja({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)e.data=n.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(n,a,e),this.addFrameDataToCanvas(e,n)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,n){switch(t.disposeOp){case lr:break;case cr:for(let e=0;e<this._png.height;e++)for(let a=0;a<this._png.width;a++){const r=(e*t.width+a)*this._png.channels;for(let t=0;t<this._png.channels;t++)n.data[r+t]=0}break;case ur:n.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const n=1<<this._png.depth,a=(t,n)=>({index:((t+e.yOffset)*this._png.width+e.xOffset+n)*this._png.channels,frameIndex:(t*e.width+n)*this._png.channels});switch(e.blendOp){case fr:for(let n=0;n<e.height;n++)for(let r=0;r<e.width;r++){const{index:i,frameIndex:o}=a(n,r);for(let n=0;n<this._png.channels;n++)t.data[i+n]=e.data[o+n]}break;case dr:for(let r=0;r<e.height;r++)for(let i=0;i<e.width;i++){const{index:o,frameIndex:s}=a(r,i);for(let a=0;a<this._png.channels;a++){const r=e.data[s+this._png.channels-1]/n,i=a%(this._png.channels-1)==0?1:e.data[s+a],l=Math.floor(r*i+(1-r)*t.data[o+a]);t.data[o+a]+=l}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==rr)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===or)this._png.data=ja({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==sr)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(t){const{data:e,width:n,height:a,channels:r,depth:i}=t,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(i/8)*r,l=new Uint8Array(a*n*s);let c=0;for(let t=0;t<7;t++){const r=o[t],i=Math.ceil((n-r.x)/r.xStep),u=Math.ceil((a-r.y)/r.yStep);if(i<=0||u<=0)continue;const f=i*s,d=new Uint8Array(f);for(let t=0;t<u;t++){const o=e[c++],u=e.subarray(c,c+f);c+=f;const h=new Uint8Array(f);Oa(o,u,h,d,f,s),d.set(h);for(let e=0;e<i;e++){const i=r.x+e*r.xStep,o=r.y+t*r.yStep;if(!(i>=n||o>=a))for(let t=0;t<s;t++)l[(o*n+i)*s+t]=h[e*s+t]}}}if(16===i){const t=new Uint16Array(l.buffer);if(Ia)for(let e=0;e<t.length;e++)t[e]=(255&(u=t[e]))<<8|u>>8&255;return t}return l;var u}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:lr,blendOp:fr,data:t}),this._inflator=new ya,this._writingDataChunks=!1}}var pr;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"}(pr||(pr={}));var mr=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function gr(){mr.console&&"function"==typeof mr.console.log&&mr.console.log.apply(mr.console,arguments)}var vr={log:gr,warn:function(t){mr.console&&("function"==typeof mr.console.warn?mr.console.warn.apply(mr.console,arguments):gr.call(null,arguments))},error:function(t){mr.console&&("function"==typeof mr.console.error?mr.console.error.apply(mr.console,arguments):gr(t))}};function br(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){wr(a.response,e,n)},a.onerror=function(){vr.error("could not download file")},a.send()}function _r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function yr(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var wr=mr.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,a.A)(window))||window!==mr?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var a=mr.URL||mr.webkitURL,r=document.createElement("a");e=e||t.name||"download",r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?_r(r.href)?br(t,e,n):yr(r,r.target="_blank"):yr(r)):(r.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(r.href)}),4e4),setTimeout((function(){yr(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(_r(t))br(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){yr(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,a.A)(e)&&(vr.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return br(t,e,n);var i="application/octet-stream"===t.type,o=/constructor/i.test(mr.HTMLElement)||mr.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,a.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var c=mr.URL||mr.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout((function(){c.revokeObjectURL(u)}),4e4)}});function xr(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],a=0;a<n.length;a++){var r=n[a].re,i=n[a].process,o=r.exec(t);o&&(e=i(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}var kr=mr.atob.bind(mr),Ar=mr.btoa.bind(mr);function Sr(t,e){var n=t[0],a=t[1],r=t[2],i=t[3];n=Er(n,a,r,i,e[0],7,-680876936),i=Er(i,n,a,r,e[1],12,-389564586),r=Er(r,i,n,a,e[2],17,606105819),a=Er(a,r,i,n,e[3],22,-1044525330),n=Er(n,a,r,i,e[4],7,-176418897),i=Er(i,n,a,r,e[5],12,1200080426),r=Er(r,i,n,a,e[6],17,-1473231341),a=Er(a,r,i,n,e[7],22,-45705983),n=Er(n,a,r,i,e[8],7,1770035416),i=Er(i,n,a,r,e[9],12,-1958414417),r=Er(r,i,n,a,e[10],17,-42063),a=Er(a,r,i,n,e[11],22,-1990404162),n=Er(n,a,r,i,e[12],7,1804603682),i=Er(i,n,a,r,e[13],12,-40341101),r=Er(r,i,n,a,e[14],17,-1502002290),n=Tr(n,a=Er(a,r,i,n,e[15],22,1236535329),r,i,e[1],5,-165796510),i=Tr(i,n,a,r,e[6],9,-1069501632),r=Tr(r,i,n,a,e[11],14,643717713),a=Tr(a,r,i,n,e[0],20,-373897302),n=Tr(n,a,r,i,e[5],5,-701558691),i=Tr(i,n,a,r,e[10],9,38016083),r=Tr(r,i,n,a,e[15],14,-660478335),a=Tr(a,r,i,n,e[4],20,-405537848),n=Tr(n,a,r,i,e[9],5,568446438),i=Tr(i,n,a,r,e[14],9,-1019803690),r=Tr(r,i,n,a,e[3],14,-187363961),a=Tr(a,r,i,n,e[8],20,1163531501),n=Tr(n,a,r,i,e[13],5,-1444681467),i=Tr(i,n,a,r,e[2],9,-51403784),r=Tr(r,i,n,a,e[7],14,1735328473),n=Nr(n,a=Tr(a,r,i,n,e[12],20,-1926607734),r,i,e[5],4,-378558),i=Nr(i,n,a,r,e[8],11,-2022574463),r=Nr(r,i,n,a,e[11],16,1839030562),a=Nr(a,r,i,n,e[14],23,-35309556),n=Nr(n,a,r,i,e[1],4,-1530992060),i=Nr(i,n,a,r,e[4],11,1272893353),r=Nr(r,i,n,a,e[7],16,-155497632),a=Nr(a,r,i,n,e[10],23,-1094730640),n=Nr(n,a,r,i,e[13],4,681279174),i=Nr(i,n,a,r,e[0],11,-358537222),r=Nr(r,i,n,a,e[3],16,-722521979),a=Nr(a,r,i,n,e[6],23,76029189),n=Nr(n,a,r,i,e[9],4,-640364487),i=Nr(i,n,a,r,e[12],11,-421815835),r=Nr(r,i,n,a,e[15],16,530742520),n=Pr(n,a=Nr(a,r,i,n,e[2],23,-995338651),r,i,e[0],6,-198630844),i=Pr(i,n,a,r,e[7],10,1126891415),r=Pr(r,i,n,a,e[14],15,-1416354905),a=Pr(a,r,i,n,e[5],21,-57434055),n=Pr(n,a,r,i,e[12],6,1700485571),i=Pr(i,n,a,r,e[3],10,-1894986606),r=Pr(r,i,n,a,e[10],15,-1051523),a=Pr(a,r,i,n,e[1],21,-2054922799),n=Pr(n,a,r,i,e[8],6,1873313359),i=Pr(i,n,a,r,e[15],10,-30611744),r=Pr(r,i,n,a,e[6],15,-1560198380),a=Pr(a,r,i,n,e[13],21,1309151649),n=Pr(n,a,r,i,e[4],6,-145523070),i=Pr(i,n,a,r,e[11],10,-1120210379),r=Pr(r,i,n,a,e[2],15,718787259),a=Pr(a,r,i,n,e[9],21,-343485551),t[0]=jr(n,t[0]),t[1]=jr(a,t[1]),t[2]=jr(r,t[2]),t[3]=jr(i,t[3])}function Cr(t,e,n,a,r,i){return e=jr(jr(e,t),jr(a,i)),jr(e<<r|e>>>32-r,n)}function Er(t,e,n,a,r,i,o){return Cr(e&n|~e&a,t,e,r,i,o)}function Tr(t,e,n,a,r,i,o){return Cr(e&a|n&~a,t,e,r,i,o)}function Nr(t,e,n,a,r,i,o){return Cr(e^n^a,t,e,r,i,o)}function Pr(t,e,n,a,r,i,o){return Cr(n^(e|~a),t,e,r,i,o)}function Lr(t){var e,n=t.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Sr(a,Or(t.substring(e-64,e)));t=t.substring(e-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(Sr(a,r),e=0;e<16;e++)r[e]=0;return r[14]=8*n,Sr(a,r),a}function Or(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}var Rr="0123456789abcdef".split("");function Ir(t){for(var e="",n=0;n<4;n++)e+=Rr[t>>8*n+4&15]+Rr[t>>8*n&15];return e}function Mr(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Fr(t){return Lr(t).map(Mr).join("")}var Dr="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=Ir(t[e]);return t.join("")}(Lr("hello"));function jr(t,e){if(Dr){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function Br(t,e){var n,a,r,i;if(t!==n){for(var o=(r=t,i=1+(256/t.length|0),new Array(i+1).join(r)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}n=t,a=s}else s=a;var f=e.length,d=0,h=0,p="";for(l=0;l<f;l++)h=(h+(u=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=u,o=s[(s[d]+s[h])%256],p+=String.fromCharCode(e.charCodeAt(l)^o);return p}var Ur={print:4,modify:8,copy:16,"annot-forms":32};function zr(t,e,n,a){this.v=1,this.r=2;var r=192;t.forEach((function(t){if(void 0!==Ur.perm)throw new Error("Invalid permission: "+t);r+=Ur[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^r)),this.encryptionKey=Fr(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Br(this.encryptionKey,this.padding)}function Hr(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,a=0;a<n;a++){var r=t.charCodeAt(a);e+=r<33||35===r||37===r||40===r||41===r||47===r||60===r||62===r||91===r||93===r||123===r||125===r||r>126?"#"+("0"+r.toString(16)).slice(-2):t[a]}return e}function qr(t){if("object"!==(0,a.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,a){if(a=a||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof a)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var r=Math.random().toString(35);return e[t][r]=[n,!!a],r},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),r=[];for(var i in e[n]){var o=e[n][i];try{o[0].apply(t,a)}catch(t){mr.console&&vr.error("jsPDF PubSub Error",t.message,t)}o[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Wr(t){if(!(this instanceof Wr))return new Wr(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Kr(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Vr(t,e,n,a,r){if(!(this instanceof Vr))return new Vr(t,e,n,a,r);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Kr.call(this,a,r)}function $r(t,e,n,a,r){if(!(this instanceof $r))return new $r(t,e,n,a,r);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Kr.call(this,a,r)}function Gr(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],l=1,c=16,u="S",f=null;"object"===(0,a.A)(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,null!==(f=t.encryption||null)&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var d=t.putOnlyUsedFonts||!1,h={},p={internal:{},__private__:{}};p.__private__.PubSub=qr;var m="1.3",g=p.__private__.getPdfVersion=function(){return m};p.__private__.setPdfVersion=function(t){m=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};i=i||"a4";var _="compat",y="advanced",w=_;function x(){this.saveGraphicsState(),Z(new Ot(ht,0,0,-ht,0,gn()*ht).toString()+" cm"),this.setFontSize(this.getFontSize()/ht),u="n",w=y}function k(){this.restoreGraphicsState(),u="S",w=_}var A=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===_;return e&&x.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},p.compatAPI=function(t){var e=w===y;return e&&k.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y};var S,C=function(t){if(w!==y)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},E=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var a=e||n;if(isNaN(t)||isNaN(a))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(a).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,16)};var T=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return E(t,2)},N=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return E(t,3)},P=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===_?t*ht:w===y?t:void 0},L=function(t){return P(function(t){return w===_?gn()-t:w===y?t:void 0}(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var O,R="00000000000000000000000000000000",I=p.__private__.getFileId=function(){return R},M=p.__private__.setFileId=function(t){return R=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():R.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==f&&(we=new zr(f.userPermissions,f.userPassword,f.ownerPassword,R)),R};p.setFileId=function(t){return M(t),this},p.getFileId=function(){return I()};var F=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",a=Math.floor(Math.abs(e/60)),r=Math.abs(e%60),i=[n,z(a),"'",z(r),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),i].join("")},D=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,a=parseInt(t.substr(8,2),10),r=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,a,r,i,o,0)},j=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=F(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return O=e},B=p.__private__.getCreationDate=function(t){var e=O;return"jsDate"===t&&(e=D(O)),e};p.setCreationDate=function(t){return j(t),this},p.getCreationDate=function(t){return B(t)};var U,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},H=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},q=0,W=[],K=[],V=0,$=[],G=[],Y=!1,X=K;p.__private__.setCustomOutputDestination=function(t){Y=!0,X=t};var J=function(t){Y||(X=t)};p.__private__.resetCustomOutputDestination=function(){Y=!1,X=K};var Z=p.__private__.out=function(t){return t=t.toString(),V+=t.length+1,X.push(t),X},Q=p.__private__.write=function(t){return Z(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tt=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),a=new Uint8Array(n);e--;)a[e]=t.charCodeAt(e);return n},et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return et};var nt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return nt=w===y?t/ht:t,this};var at,rt=p.__private__.getFontSize=p.getFontSize=function(){return w===_?nt:nt*ht},it=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return it=t,this},p.__private__.getR2L=p.getR2L=function(){return it};var ot,st=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))at=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');at=t}else at=parseInt(t,10)};p.__private__.getZoomMode=function(){return at};var lt,ct=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ot=t};p.__private__.getPageMode=function(){return ot};var ut=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');lt=t};p.__private__.getLayoutMode=function(){return lt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return st(t),ut(e),ct(n),this};var ft={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(ft).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ft[t]},p.__private__.getDocumentProperties=function(){return ft},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in ft)ft.hasOwnProperty(e)&&t[e]&&(ft[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(ft).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ft[t]=e};var dt,ht,pt,mt,gt,vt={},bt={},_t=[],yt={},wt={},xt={},kt={},At=null,St=0,Ct=[],Et=new qr(p),Tt=t.hotfixes||[],Nt={},Pt={},Lt=[],Ot=function t(e,n,a,r,i,o){if(!(this instanceof t))return new t(e,n,a,r,i,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[e,n,a,r,i,o]};Object.defineProperty(Ot.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ot.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ot.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ot.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ot.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ot.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ot.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ot.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ot.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ot.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ot.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ot.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ot.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ot.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ot.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ot.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ot.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Ot.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,a=t.shx*this.sx+t.sy*this.shx,r=t.shx*this.shy+t.sy*this.sy,i=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ot(e,n,a,r,i,o)},Ot.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*a;n-=t*s,a-=e*s;var l=Math.sqrt(n*n+a*a);return s/=l,t*(a/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Ot(o,0,0,l,0,0),translate:new Ot(1,0,0,1,r,i),rotate:new Ot(t,e,-e,t,0,0),skew:new Ot(1,0,s,1,0,0)}},Ot.prototype.toString=function(t){return this.join(" ")},Ot.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty,o=1/(t*a-e*n),s=a*o,l=-e*o,c=-n*o,u=t*o;return new Ot(s,l,c,u,-s*r-c*i,-l*r-u*i)},Ot.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new rn(e,n)},Ot.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new rn(t.x+t.w,t.y+t.h));return new on(e.x,e.y,n.x-e.x,n.y-e.y)},Ot.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty;return new Ot(t,e,n,a,r,i)},p.Matrix=Ot;var Rt=p.matrixMult=function(t,e){return e.multiply(t)},It=new Ot(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=It;var Mt=function(t,e){if(!wt[t]){var n=(e instanceof Vr?"Sh":"P")+(Object.keys(yt).length+1).toString(10);e.id=n,wt[t]=n,yt[n]=e,Et.publish("addPattern",e)}};p.ShadingPattern=Vr,p.TilingPattern=$r,p.addShadingPattern=function(t,e){return C("addShadingPattern()"),Mt(t,e),this},p.beginTilingPattern=function(t){C("beginTilingPattern()"),ln(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},p.endTilingPattern=function(t,e){C("endTilingPattern()"),e.stream=G[U].join("\n"),Mt(t,e),Et.publish("endTilingPattern",e),Lt.pop().restore()};var Ft,Dt=p.__private__.newObject=function(){var t=jt();return Bt(t,!0),t},jt=p.__private__.newObjectDeferred=function(){return q++,W[q]=function(){return V},q},Bt=function(t,e){return e="boolean"==typeof e&&e,W[t]=V,e&&Z(t+" 0 obj"),t},Ut=p.__private__.newAdditionalObject=function(){var t={objId:jt(),content:""};return $.push(t),t},zt=jt(),Ht=jt(),qt=p.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var a="#",r=0;r<3;r++)a+=("0"+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return a},Wt=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new xr(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,i=255&c}if(void 0===r||void 0===o&&n===r&&r===i)e="string"==typeof n?n+" "+s[0]:2===t.precision?T(n/255)+" "+s[0]:N(n/255)+" "+s[0];else if(void 0===o||"object"===(0,a.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,r,i,s[1]].join(" "):2===t.precision?[T(n/255),T(r/255),T(i/255),s[1]].join(" "):[N(n/255),N(r/255),N(i/255),s[1]].join(" ")}else e="string"==typeof n?[n,r,i,o,s[2]].join(" "):2===t.precision?[T(n),T(r),T(i),T(o),s[2]].join(" "):[N(n),N(r),N(i),N(o),s[2]].join(" ");return e},Kt=p.__private__.getFilters=function(){return s},Vt=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||Kt(),a=t.alreadyAppliedFilters||[],r=t.addLength1||!1,i=e.length,o=t.objectId,s=function(t){return t};if(null!==f&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==f&&(s=we.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(l=void 0!==Gr.API.processDataByFilters?Gr.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===r&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var d=0;d<c.length;d+=1)if("DecodeParms"===c[d].key){for(var h=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)h.push("null");h.push(c[d].value),c[d].value="["+h.join(" ")+"]"}}Z("<<");for(var m=0;m<c.length;m++)Z("/"+c[m].key+" "+c[m].value);Z(">>"),0!==l.data.length&&(Z("stream"),Z(s(l.data)),Z("endstream"))},$t=p.__private__.putPage=function(t){var e=t.number,n=t.data,a=t.objId,r=t.contentsObjId;Bt(a,!0),Z("<</Type /Page"),Z("/Parent "+t.rootDictionaryObjId+" 0 R"),Z("/Resources "+t.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(S(t.mediaBox.bottomLeftX))+" "+parseFloat(S(t.mediaBox.bottomLeftY))+" "+S(t.mediaBox.topRightX)+" "+S(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&Z("/CropBox ["+S(t.cropBox.bottomLeftX)+" "+S(t.cropBox.bottomLeftY)+" "+S(t.cropBox.topRightX)+" "+S(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&Z("/BleedBox ["+S(t.bleedBox.bottomLeftX)+" "+S(t.bleedBox.bottomLeftY)+" "+S(t.bleedBox.topRightX)+" "+S(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&Z("/TrimBox ["+S(t.trimBox.bottomLeftX)+" "+S(t.trimBox.bottomLeftY)+" "+S(t.trimBox.topRightX)+" "+S(t.trimBox.topRightY)+"]"),null!==t.artBox&&Z("/ArtBox ["+S(t.artBox.bottomLeftX)+" "+S(t.artBox.bottomLeftY)+" "+S(t.artBox.topRightX)+" "+S(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&Z("/UserUnit "+t.userUnit),Et.publish("putPage",{objId:a,pageContext:Ct[e],pageNumber:e,page:n}),Z("/Contents "+r+" 0 R"),Z(">>"),Z("endobj");var i=n.join("\n");return w===y&&(i+="\nQ"),Bt(r,!0),Vt({data:i,filters:Kt(),objectId:r}),Z("endobj"),a},Gt=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=St;t++)Ct[t].objId=jt(),Ct[t].contentsObjId=jt();for(t=1;t<=St;t++)n.push($t({number:t,data:G[t],objId:Ct[t].objId,contentsObjId:Ct[t].contentsObjId,mediaBox:Ct[t].mediaBox,cropBox:Ct[t].cropBox,bleedBox:Ct[t].bleedBox,trimBox:Ct[t].trimBox,artBox:Ct[t].artBox,userUnit:Ct[t].userUnit,rootDictionaryObjId:zt,resourceDictionaryObjId:Ht}));Bt(zt,!0),Z("<</Type /Pages");var a="/Kids [";for(e=0;e<St;e++)a+=n[e]+" 0 R ";Z(a+"]"),Z("/Count "+St),Z(">>"),Z("endobj"),Et.publish("postPutPages")},Yt=function(t){Et.publish("putFont",{font:t,out:Z,newObject:Dt,putStream:Vt}),!0!==t.isAlreadyPutted&&(t.objectNumber=Dt(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+Hr(t.postScriptName)),Z("/Subtype /Type1"),"string"==typeof t.encoding&&Z("/Encoding /"+t.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},Xt=function(t){t.objectNumber=Dt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");Vt({data:n,additionalKeyValues:e,objectId:t.objectNumber}),Z("endobj")},Jt=function(t,e){e||(e=21);var n=Dt(),a=function(t,e){var n,a=[],r=1/(e-1);for(n=0;n<1;n+=r)a.push(n);if(a.push(1),0!=t[0].offset){var i={offset:0,color:t[0].color};t.unshift(i)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",l=0,c=0;c<a.length;c++){for(n=a[c];n>t[l+1].offset;)l++;var u=t[l].offset,f=(n-u)/(t[l+1].offset-u),d=t[l].color,h=t[l+1].color;s+=H(Math.round((1-f)*d[0]+f*h[0]).toString(16))+H(Math.round((1-f)*d[1]+f*h[1]).toString(16))+H(Math.round((1-f)*d[2]+f*h[2]).toString(16))}return s.trim()}(t.colors,e),r=[];r.push({key:"FunctionType",value:"0"}),r.push({key:"Domain",value:"[0.0 1.0]"}),r.push({key:"Size",value:"["+e+"]"}),r.push({key:"BitsPerSample",value:"8"}),r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vt({data:a,additionalKeyValues:r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),Z("endobj"),t.objectNumber=Dt(),Z("<< /ShadingType "+t.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?i+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):i+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),Z(i+="]"),t.matrix&&Z("/Matrix ["+t.matrix.toString()+"]"),Z("/Function "+n+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},Zt=function(t,e){var n=jt(),a=Dt();e.push({resourcesOid:n,objectOid:a}),t.objectNumber=a;var r=[];r.push({key:"Type",value:"/Pattern"}),r.push({key:"PatternType",value:"1"}),r.push({key:"PaintType",value:"1"}),r.push({key:"TilingType",value:"1"}),r.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),r.push({key:"XStep",value:S(t.xStep)}),r.push({key:"YStep",value:S(t.yStep)}),r.push({key:"Resources",value:n+" 0 R"}),t.matrix&&r.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),Vt({data:t.stream,additionalKeyValues:r,objectId:t.objectNumber}),Z("endobj")},Qt=function(t){for(var e in t.objectNumber=Dt(),Z("<<"),t)switch(e){case"opacity":Z("/ca "+T(t[e]));break;case"stroke-opacity":Z("/CA "+T(t[e]))}Z(">>"),Z("endobj")},te=function(t){Bt(t.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in Z("/Font <<"),vt)vt.hasOwnProperty(t)&&(!1===d||!0===d&&h.hasOwnProperty(t))&&Z("/"+t+" "+vt[t].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(yt).length>0){for(var t in Z("/Shading <<"),yt)yt.hasOwnProperty(t)&&yt[t]instanceof Vr&&yt[t].objectNumber>=0&&Z("/"+t+" "+yt[t].objectNumber+" 0 R");Et.publish("putShadingPatternDict"),Z(">>")}}(),function(t){if(Object.keys(yt).length>0){for(var e in Z("/Pattern <<"),yt)yt.hasOwnProperty(e)&&yt[e]instanceof p.TilingPattern&&yt[e].objectNumber>=0&&yt[e].objectNumber<t&&Z("/"+e+" "+yt[e].objectNumber+" 0 R");Et.publish("putTilingPatternDict"),Z(">>")}}(t.objectOid),function(){if(Object.keys(xt).length>0){var t;for(t in Z("/ExtGState <<"),xt)xt.hasOwnProperty(t)&&xt[t].objectNumber>=0&&Z("/"+t+" "+xt[t].objectNumber+" 0 R");Et.publish("putGStateDict"),Z(">>")}}(),function(){for(var t in Z("/XObject <<"),Nt)Nt.hasOwnProperty(t)&&Nt[t].objectNumber>=0&&Z("/"+t+" "+Nt[t].objectNumber+" 0 R");Et.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},ee=function(t){bt[t.fontName]=bt[t.fontName]||{},bt[t.fontName][t.fontStyle]=t.id},ne=function(t,e,n,a,r){var i={id:"F"+(Object.keys(vt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:a,isStandardFont:r||!1,metadata:{}};return Et.publish("addFont",{font:i,instance:this}),vt[i.id]=i,ee(i),i.id},ae=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return function(t,e){var n,a,r,i,o,s,l,c,u;if(r=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&vt[dt].metadata&&vt[dt].metadata[r]&&vt[dt].metadata[r].encoding&&(i=vt[dt].metadata[r].encoding,!o&&vt[dt].encoding&&(o=vt[dt].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(l=!1,s=[],n=0,a=t.length;n<a;n++)(c=o[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,a=t.length;n<a;n++){if((u=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},re=p.__private__.beginPage=function(t){G[++St]=[],Ct[St]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},se(St),J(G[U])},ie=function(t,e){var a,r,o;switch(n=e||n,"string"==typeof t&&(a=b(t.toLowerCase()),Array.isArray(a)&&(r=a[0],o=a[1])),Array.isArray(t)&&(r=t[0]*ht,o=t[1]*ht),isNaN(r)&&(r=i[0],o=i[1]),(r>14400||o>14400)&&(vr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),o=Math.min(14400,o)),i=[r,o],n.substr(0,1)){case"l":o>r&&(i=[o,r]);break;case"p":r>o&&(i=[o,r])}re(i),ze(Be),Z(Ye),0!==en&&Z(en+" J"),0!==nn&&Z(nn+" j"),Et.publish("addPage",{pageNumber:St})},oe=function(t){t>0&&t<=St&&(G.splice(t,1),Ct.splice(t,1),St--,U>St&&(U=St),this.setPage(U))},se=function(t){t>0&&t<=St&&(U=t)},le=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return G.length-1},ce=function(t,e,n){var a,r=void 0;return n=n||{},t=void 0!==t?t:vt[dt].fontName,e=void 0!==e?e:vt[dt].fontStyle,a=t.toLowerCase(),void 0!==bt[a]&&void 0!==bt[a][e]?r=bt[a][e]:void 0!==bt[t]&&void 0!==bt[t][e]?r=bt[t][e]:!1===n.disableWarning&&vr.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),r||n.noFallback||null==(r=bt.times[e])&&(r=bt.times.normal),r},ue=p.__private__.putInfo=function(){var t=Dt(),e=function(t){return t};for(var n in null!==f&&(e=we.encryptor(t,0)),Z("<<"),Z("/Producer ("+ae(e("jsPDF "+Gr.version))+")"),ft)ft.hasOwnProperty(n)&&ft[n]&&Z("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ae(e(ft[n]))+")");Z("/CreationDate ("+ae(e(O))+")"),Z(">>"),Z("endobj")},fe=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||zt;switch(Dt(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+e+" 0 R"),at||(at="fullwidth"),at){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+at;"%"===n.substr(n.length-1)&&(at=parseInt(at)/100),"number"==typeof at&&Z("/OpenAction [3 0 R /XYZ null null "+T(at)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}ot&&Z("/PageMode /"+ot),Et.publish("putCatalog"),Z(">>"),Z("endobj")},de=p.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(q+1)),Z("/Root "+q+" 0 R"),Z("/Info "+(q-1)+" 0 R"),null!==f&&Z("/Encrypt "+we.oid+" 0 R"),Z("/ID [ <"+R+"> <"+R+"> ]"),Z(">>")},he=p.__private__.putHeader=function(){Z("%PDF-"+m),Z("%ºß¬à")},pe=p.__private__.putXRef=function(){var t="0000000000";Z("xref"),Z("0 "+(q+1)),Z("0000000000 65535 f ");for(var e=1;e<=q;e++)"function"==typeof W[e]?Z((t+W[e]()).slice(-10)+" 00000 n "):void 0!==W[e]?Z((t+W[e]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},me=p.__private__.buildDocument=function(){var t;q=0,V=0,K=[],W=[],$=[],zt=jt(),Ht=jt(),J(K),Et.publish("buildDocument"),he(),Gt(),function(){Et.publish("putAdditionalObjects");for(var t=0;t<$.length;t++){var e=$[t];Bt(e.objId,!0),Z(e.content),Z("endobj")}Et.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in vt)vt.hasOwnProperty(t)&&(!1===d||!0===d&&h.hasOwnProperty(t))&&Yt(vt[t])}(),function(){var t;for(t in xt)xt.hasOwnProperty(t)&&Qt(xt[t])}(),function(){for(var t in Nt)Nt.hasOwnProperty(t)&&Xt(Nt[t])}(),function(t){var e;for(e in yt)yt.hasOwnProperty(e)&&(yt[e]instanceof Vr?Jt(yt[e]):yt[e]instanceof $r&&Zt(yt[e],t))}(t),Et.publish("putResources"),t.forEach(te),te({resourcesOid:Ht,objectOid:Number.MAX_SAFE_INTEGER}),Et.publish("postPutResources"),null!==f&&(we.oid=Dt(),Z("<<"),Z("/Filter /Standard"),Z("/V "+we.v),Z("/R "+we.r),Z("/U <"+we.toHexString(we.U)+">"),Z("/O <"+we.toHexString(we.O)+">"),Z("/P "+we.P),Z(">>"),Z("endobj")),ue(),fe();var e=V;return pe(),de(),Z("startxref"),Z(""+e),Z("%%EOF"),J(G[U]),K.join("\n")},ge=p.__private__.getBlob=function(t){return new Blob([tt(t)],{type:"application/pdf"})},ve=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},be=function(t){var e,n=t.document,a=n.documentElement,r=n.head,i=n.body;return r||(r=n.createElement("head"),a.appendChild(r)),i||(i=n.createElement("body"),a.appendChild(i)),ve(r),ve(i),(e=n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),r.appendChild(e),{document:n,body:i}},_e=p.output=p.__private__.output=(Ft=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return me();case"save":p.save(e.filename);break;case"arraybuffer":return tt(me());case"blob":return ge(me());case"bloburi":case"bloburl":if(void 0!==mr.URL&&"function"==typeof mr.URL.createObjectURL)return mr.URL&&mr.URL.createObjectURL(ge(me()))||void 0;vr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=me();try{n=Ar(a)}catch(t){n=Ar(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+encodeURIComponent(e.filename)+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(mr)){var r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=!e.pdfObjectUrl;i||(r=e.pdfObjectUrl);var o=mr.open();if(null!==o){var s=be(o),l=s.document.createElement("script"),c=this;l.src=r,i&&(l.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",l.crossOrigin="anonymous"),l.onload=function(){o.PDFObject.embed(c.output("dataurlstring"),e)},s.body.appendChild(l)}return o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(mr)){var u=e.pdfJsUrl||"examples/PDF.js/web/viewer.html",f=mr.open();if(null!==f){var d=be(f),h=d.document.createElement("iframe"),m=-1===u.indexOf("?")?"?":"&";c=this,h.id="pdfViewer",h.width="500px",h.height="400px",h.src=u+m+"file=&downloadName="+encodeURIComponent(e.filename),h.onload=function(){f.document.title=e.filename,h.contentWindow.PDFViewerApplication.open(c.output("bloburl"))},d.body.appendChild(h)}return f}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(mr))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var g=mr.open();if(null!==g){var v=be(g),b=v.document.createElement("iframe");b.src=this.output("datauristring",e),v.body.appendChild(b),g.document.title=e.filename}if(g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return mr.document.location.href=this.output("datauristring",e);default:return null}},Ft.foo=function(){try{return Ft.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!mr.console)throw new Error(e);mr.console.error(e,n),mr.alert&&alert(e)}},Ft.foo.bar=Ft,Ft.foo),ye=function(t){return!0===Array.isArray(Tt)&&Tt.indexOf(t)>-1};switch(r){case"pt":ht=1;break;case"mm":ht=72/25.4;break;case"cm":ht=72/2.54;break;case"in":ht=72;break;case"px":ht=1==ye("px_scaling")?.75:96/72;break;case"pc":case"em":ht=12;break;case"ex":ht=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);ht=r}var we=null;j(),M();var xe=p.__private__.getPageInfo=p.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ct[t].objId,pageNumber:t,pageContext:Ct[t]}},ke=p.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Ct)if(Ct[e].objId===t)break;return xe(e)},Ae=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Ct[U].objId,pageNumber:U,pageContext:Ct[U]}};p.addPage=function(){return ie.apply(this,arguments),this},p.setPage=function(){return se.apply(this,arguments),J.call(this,G[U]),this},p.insertPage=function(t){return this.addPage(),this.movePage(U,t),this},p.movePage=function(t,e){var n,a;if(t>e){n=G[t],a=Ct[t];for(var r=t;r>e;r--)G[r]=G[r-1],Ct[r]=Ct[r-1];G[e]=n,Ct[e]=a,this.setPage(e)}else if(t<e){n=G[t],a=Ct[t];for(var i=t;i<e;i++)G[i]=G[i+1],Ct[i]=Ct[i+1];G[e]=n,Ct[e]=a,this.setPage(e)}return this},p.deletePage=function(){return oe.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,r,i){var o,s,l,c,u,f,d,p,m,g=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var v=n;n=e,e=t,t=v}if(arguments[3]instanceof Ot==0?(l=arguments[4],c=arguments[5],"object"===(0,a.A)(d=arguments[3])&&null!==d||("string"==typeof l&&(c=l,l=null),"string"==typeof d&&(c=d,d=null),"number"==typeof d&&(l=d,d=null),r={flags:d,angle:l,align:c})):(C("The transform parameter of text() with a Matrix value"),m=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return g;var b,_="",x="number"==typeof r.lineHeightFactor?r.lineHeightFactor:je,k=g.internal.scaleFactor;function A(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),ae(t,d)}function E(t){for(var e,n=t.concat(),a=[],r=n.length;r--;)"string"==typeof(e=n.shift())?a.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?a.push(e[0]):a.push([e[0],e[1],e[2]]);return a}function T(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var a,r,i=t.concat(),o=[],s=i.length;s--;)"string"==typeof(a=i.shift())?o.push(e(a)[0]):Array.isArray(a)&&"string"==typeof a[0]&&(r=e(a[0],a[1],a[2]),o.push([r[0],r[1],r[2]]));n=o}return n}var N=!1,L=!0;if("string"==typeof t)N=!0;else if(Array.isArray(t)){var O=t.concat();s=[];for(var R,I=O.length;I--;)("string"!=typeof(R=O.shift())||Array.isArray(R)&&"string"!=typeof R[0])&&(L=!1);N=L}if(!1===N)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var M=nt/g.internal.scaleFactor,F=M*(x-1);switch(r.baseline){case"bottom":n-=F;break;case"top":n+=M-F;break;case"hanging":n+=M-2*F;break;case"middle":n+=M/2-F}if((f=r.maxWidth||0)>0&&("string"==typeof t?t=g.splitTextToSize(t,f):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,f))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:ae,activeFontKey:dt,fonts:vt,activeFontSize:nt}},Et.publish("preProcessText",o),t=o.text,l=(r=o.options).angle,m instanceof Ot==0&&l&&"number"==typeof l){l*=Math.PI/180,0===r.rotationDirection&&(l=-l),w===y&&(l=-l);var D=Math.cos(l),j=Math.sin(l);m=new Ot(D,j,-j,D,0,0)}else l&&l instanceof Ot&&(m=l);w!==y||m||(m=It),void 0!==(u=r.charSpace||Qe)&&(_+=S(P(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=r.horizontalScale)&&(_+=S(100*p)+" Tz\n"),r.lang;var B=-1,U=void 0!==r.renderingMode?r.renderingMode:r.stroke,z=g.internal.getCurrentPageInfo().pageContext;switch(U){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var H=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==B?_+=B+" Tr\n":-1!==H&&(_+="0 Tr\n"),-1!==B&&(z.usedRenderingMode=B),c=r.align||"left";var q,W=nt*x,K=g.internal.pageSize.getWidth(),V=vt[dt];u=r.charSpace||Qe,f=r.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},r.flags);var $=[],G=function(t){return g.getStringUnitWidth(t,{font:V,charSpace:u,fontSize:nt,doKerning:!1})*nt/k};if("[object Array]"===Object.prototype.toString.call(t)){var Y;s=E(t),"left"!==c&&(q=s.map(G));var X,J=0;if("right"===c){e-=q[0],t=[],I=s.length;for(var Q=0;Q<I;Q++)0===Q?(X=Ke(e),Y=Ve(n)):(X=P(J-q[Q]),Y=-W),t.push([s[Q],X,Y]),J=q[Q]}else if("center"===c){e-=q[0]/2,t=[],I=s.length;for(var tt=0;tt<I;tt++)0===tt?(X=Ke(e),Y=Ve(n)):(X=P((J-q[tt])/2),Y=-W),t.push([s[tt],X,Y]),J=q[tt]}else if("left"===c){t=[],I=s.length;for(var et=0;et<I;et++)t.push(s[et])}else if("justify"===c&&"Identity-H"===V.encoding){t=[],I=s.length,f=0!==f?f:K;for(var at=0,rt=0;rt<I;rt++)if(Y=0===rt?Ve(n):-W,X=0===rt?Ke(e):at,rt<I-1){var ot=P((f-q[rt])/(s[rt].split(" ").length-1)),st=s[rt].split(" ");t.push([st[0]+" ",X,Y]),at=0;for(var lt=1;lt<st.length;lt++){var ct=(G(st[lt-1]+" "+st[lt])-G(st[lt]))*k+ot;lt==st.length-1?t.push([st[lt],ct,0]):t.push([st[lt]+" ",ct,0]),at-=ct}}else t.push([s[rt],X,Y]);t.push(["",at,0])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],I=s.length,f=0!==f?f:K,rt=0;rt<I;rt++){Y=0===rt?Ve(n):-W,X=0===rt?Ke(e):0;var ut=s[rt].split(" ").length-1,ft=ut>0?(f-q[rt])/ut:0;rt<I-1?$.push(S(P(ft))):$.push(0),t.push([s[rt],X,Y])}}}!0===("boolean"==typeof r.R2L?r.R2L:it)&&(t=T(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:ae,activeFontKey:dt,fonts:vt,activeFontSize:nt}},Et.publish("postProcessText",o),t=o.text,b=o.mutex.isHex||!1;var ht=vt[dt].encoding;"WinAnsiEncoding"!==ht&&"StandardEncoding"!==ht||(t=T(t,(function(t,e,n){return[A(t),e,n]}))),s=E(t),t=[];for(var pt,mt,gt,bt=Array.isArray(s[0])?1:0,_t="",yt=function(t,e,n){var a="";return n instanceof Ot?(n="number"==typeof r.angle?Rt(n,new Ot(1,0,0,1,t,e)):Rt(new Ot(1,0,0,1,t,e),n),w===y&&(n=Rt(new Ot(1,0,0,-1,0,0),n)),a=n.join(" ")+" Tm\n"):a=S(t)+" "+S(e)+" Td\n",a},wt=0;wt<s.length;wt++){switch(_t="",bt){case 1:gt=(b?"<":"(")+s[wt][0]+(b?">":")"),pt=parseFloat(s[wt][1]),mt=parseFloat(s[wt][2]);break;case 0:gt=(b?"<":"(")+s[wt]+(b?">":")"),pt=Ke(e),mt=Ve(n)}void 0!==$&&void 0!==$[wt]&&(_t=$[wt]+" Tw\n"),0===wt?t.push(_t+yt(pt,mt,m)+gt):0===bt?t.push(_t+gt):1===bt&&t.push(_t+yt(pt,mt,m)+gt)}t=0===bt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var xt="BT\n/";return xt+=dt+" "+nt+" Tf\n",xt+=S(nt*x)+" TL\n",xt+=Je+"\n",xt+=_,xt+=t,Z(xt+="ET"),h[dt]=!0,g};var Se=p.__private__.clip=p.clip=function(t){return Z("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return Se("evenodd")},p.__private__.discardPath=p.discardPath=function(){return Z("n"),this};var Ce=p.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(t){return Ce(t)&&(u=t),this};var Ee=p.__private__.getStyle=p.getStyle=function(t){var e=u;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},Te=p.close=function(){return Z("h"),this};p.stroke=function(){return Z("S"),this},p.fill=function(t){return Ne("f",t),this},p.fillEvenOdd=function(t){return Ne("f*",t),this},p.fillStroke=function(t){return Ne("B",t),this},p.fillStrokeEvenOdd=function(t){return Ne("B*",t),this};var Ne=function(t,e){"object"===(0,a.A)(e)?Oe(e,t):Z(t)},Pe=function(t){null===t||w===y&&void 0===t||(t=Ee(t),Z(t))};function Le(t,e,n,a,r){var i=new $r(e||this.boundingBox,n||this.xStep,a||this.yStep,this.gState,r||this.matrix);i.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Mt(o,i),i}var Oe=function(t,e){var n=wt[t.key],a=yt[n];if(a instanceof Vr)Z("q"),Z(Re(e)),a.gState&&p.setGState(a.gState),Z(t.matrix.toString()+" cm"),Z("/"+n+" sh"),Z("Q");else if(a instanceof $r){var r=new Ot(1,0,0,-1,0,gn());t.matrix&&(r=r.multiply(t.matrix||It),n=Le.call(a,t.key,t.boundingBox,t.xStep,t.yStep,r).id),Z("q"),Z("/Pattern cs"),Z("/"+n+" scn"),a.gState&&p.setGState(a.gState),Z(e),Z("Q")}},Re=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ie=p.moveTo=function(t,e){return Z(S(P(t))+" "+S(L(e))+" m"),this},Me=p.lineTo=function(t,e){return Z(S(P(t))+" "+S(L(e))+" l"),this},Fe=p.curveTo=function(t,e,n,a,r,i){return Z([S(P(t)),S(L(e)),S(P(n)),S(L(a)),S(P(r)),S(L(i)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ce(r))throw new Error("Invalid arguments passed to jsPDF.line");return w===_?this.lines([[n-t,a-e]],t,e,[1,1],r||"S"):this.lines([[n-t,a-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,a,r,i){var o,s,l,c,u,f,d,h,p,m,g,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),a=a||[1,1],i=i||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(a)||!Ce(r)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ie(e,n),o=a[0],s=a[1],c=t.length,m=e,g=n,l=0;l<c;l++)2===(u=t[l]).length?(m=u[0]*o+m,g=u[1]*s+g,Me(m,g)):(f=u[0]*o+m,d=u[1]*s+g,h=u[2]*o+m,p=u[3]*s+g,m=u[4]*o+m,g=u[5]*s+g,Fe(f,d,h,p,m,g));return i&&Te(),Pe(r),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],a=n.c;switch(n.op){case"m":Ie(a[0],a[1]);break;case"l":Me(a[0],a[1]);break;case"c":Fe.apply(this,a);break;case"h":Te()}}return this},p.__private__.rect=p.rect=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ce(r))throw new Error("Invalid arguments passed to jsPDF.rect");return w===_&&(a=-a),Z([S(P(t)),S(L(e)),S(P(n)),S(P(a)),"re"].join(" ")),Pe(r),this},p.__private__.triangle=p.triangle=function(t,e,n,a,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i)||!Ce(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,a-e],[r-n,i-a],[t-r,e-i]],t,e,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,a,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i)||!Ce(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return r=Math.min(r,.5*n),i=Math.min(i,.5*a),this.lines([[n-2*r,0],[r*s,0,r,i-i*s,r,i],[0,a-2*i],[0,i*s,-r*s,i,-r,i],[2*r-n,0],[-r*s,0,-r,-i*s,-r,-i],[0,2*i-a],[0,-i*s,r*s,-i,r,-i]],t+r,e,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ce(r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*a;return Ie(t+n,e),Fe(t+n,e-o,t+i,e-a,t,e-a),Fe(t-i,e-a,t-n,e-o,t-n,e),Fe(t-n,e+o,t-i,e+a,t,e+a),Fe(t+i,e+a,t+n,e+o,t+n,e),Pe(r),this},p.__private__.circle=p.circle=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ce(a))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,a)},p.setFont=function(t,e,n){return n&&(e=A(e,n)),dt=ce(t,e,{disableWarning:!1}),this};var De=p.__private__.getFont=p.getFont=function(){return vt[ce.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in bt)if(bt.hasOwnProperty(t))for(e in n[t]=[],bt[t])bt[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,a,r){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?r=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=A(n,a)),ne.call(this,t,e,n,r=r||"Identity-H")};var je,Be=t.lineWidth||.200025,Ue=p.__private__.getLineWidth=p.getLineWidth=function(){return Be},ze=p.__private__.setLineWidth=p.setLineWidth=function(t){return Be=t,Z(S(P(t))+" w"),this};p.__private__.setLineDash=Gr.API.setLineDash=Gr.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return S(P(t))})).join(" "),e=S(P(e)),Z("["+t+"] "+e+" d"),this};var He=p.__private__.getLineHeight=p.getLineHeight=function(){return nt*je};p.__private__.getLineHeight=p.getLineHeight=function(){return nt*je};var qe=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(je=t),this},We=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return je};qe(t.lineHeight);var Ke=p.__private__.getHorizontalCoordinate=function(t){return P(t)},Ve=p.__private__.getVerticalCoordinate=function(t){return w===y?t:Ct[U].mediaBox.topRightY-Ct[U].mediaBox.bottomLeftY-P(t)},$e=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return S(Ke(t))},Ge=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return S(Ve(t))},Ye=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return qt(Ye)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,a){return Ye=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"draw",precision:2}),Z(Ye),this};var Xe=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return qt(Xe)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,a){return Xe=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"fill",precision:2}),Z(Xe),this};var Je=t.textColor||"0 g",Ze=p.__private__.getTextColor=p.getTextColor=function(){return qt(Je)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,a){return Je=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"text",precision:3}),this};var Qe=t.charSpace,tn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Qe||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qe=t,this};var en=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return en=e,Z(e+" J"),this};var nn=0;p.__private__.setLineJoin=p.setLineJoin=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nn=e,Z(e+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(S(P(t))+" M"),this},p.GState=Wr,p.setGState=function(t){(t="string"==typeof t?xt[kt[t]]:an(null,t)).equals(At)||(Z("/"+t.id+" gs"),At=t)};var an=function(t,e){if(!t||!kt[t]){var n=!1;for(var a in xt)if(xt.hasOwnProperty(a)&&xt[a].equals(e)){n=!0;break}if(n)e=xt[a];else{var r="GS"+(Object.keys(xt).length+1).toString(10);xt[r]=e,e.id=r}return t&&(kt[t]=e.id),Et.publish("addGState",e),e}};p.addGState=function(t,e){return an(t,e),this},p.saveGraphicsState=function(){return Z("q"),_t.push({key:dt,size:nt,color:Je}),this},p.restoreGraphicsState=function(){Z("Q");var t=_t.pop();return dt=t.key,nt=t.size,Je=t.color,At=null,this},p.setCurrentTransformationMatrix=function(t){return Z(t.toString()+" cm"),this},p.comment=function(t){return Z("#"+t),this};var rn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var a=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}});var r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return r},set:function(t){r=t.toString()}}),this},on=function(t,e,n,a){rn.call(this,t,e),this.type="rect";var r=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i=a||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}}),this},sn=function(){this.page=St,this.currentPage=U,this.pages=G.slice(0),this.pagesContext=Ct.slice(0),this.x=pt,this.y=mt,this.matrix=gt,this.width=un(U),this.height=dn(U),this.outputDestination=X,this.id="",this.objectNumber=-1};sn.prototype.restore=function(){St=this.page,U=this.currentPage,Ct=this.pagesContext,G=this.pages,pt=this.x,mt=this.y,gt=this.matrix,fn(U,this.width),hn(U,this.height),X=this.outputDestination};var ln=function(t,e,n,a,r){Lt.push(new sn),St=U=0,G=[],pt=t,mt=e,gt=r,re([n,a])};for(var cn in p.beginFormObject=function(t,e,n,a,r){return ln(t,e,n,a,r),this},p.endFormObject=function(t){return function(t){if(Pt[t])Lt.pop().restore();else{var e=new sn,n="Xo"+(Object.keys(Nt).length+1).toString(10);e.id=n,Pt[t]=n,Nt[n]=e,Et.publish("addFormObject",e),Lt.pop().restore()}}(t),this},p.doFormObject=function(t,e){var n=Nt[Pt[t]];return Z("q"),Z(e.toString()+" cm"),Z("/"+n.id+" Do"),Z("Q"),this},p.getFormObject=function(t){var e=Nt[Pt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},p.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(wr(ge(me()),t),"function"==typeof wr.unload&&mr.setTimeout&&setTimeout(wr.unload,911),this):new Promise((function(e,n){try{var a=wr(ge(me()),t);"function"==typeof wr.unload&&mr.setTimeout&&setTimeout(wr.unload,911),e(a)}catch(t){n(t.message)}}))},Gr.API)Gr.API.hasOwnProperty(cn)&&("events"===cn&&Gr.API.events.length?function(t,e){var n,a,r;for(r=e.length-1;-1!==r;r--)n=e[r][0],a=e[r][1],t.subscribe.apply(t,[n].concat("function"==typeof a?[a]:a))}(Et,Gr.API.events):p[cn]=Gr.API[cn]);function un(t){return Ct[t].mediaBox.topRightX-Ct[t].mediaBox.bottomLeftX}function fn(t,e){Ct[t].mediaBox.topRightX=e+Ct[t].mediaBox.bottomLeftX}function dn(t){return Ct[t].mediaBox.topRightY-Ct[t].mediaBox.bottomLeftY}function hn(t,e){Ct[t].mediaBox.topRightY=e+Ct[t].mediaBox.bottomLeftY}var pn=p.getPageWidth=function(t){return un(t=t||U)/ht},mn=p.setPageWidth=function(t,e){fn(t,e*ht)},gn=p.getPageHeight=function(t){return dn(t=t||U)/ht},vn=p.setPageHeight=function(t,e){hn(t,e*ht)};return p.internal={pdfEscape:ae,getStyle:Ee,getFont:De,getFontSize:rt,getCharSpace:tn,getTextColor:Ze,getLineHeight:He,getLineHeightFactor:We,getLineWidth:Ue,write:Q,getHorizontalCoordinate:Ke,getVerticalCoordinate:Ve,getCoordinateString:$e,getVerticalCoordinateString:Ge,collections:{},newObject:Dt,newAdditionalObject:Ut,newObjectDeferred:jt,newObjectDeferredBegin:Bt,getFilters:Kt,putStream:Vt,events:Et,scaleFactor:ht,pageSize:{getWidth:function(){return pn(U)},setWidth:function(t){mn(U,t)},getHeight:function(){return gn(U)},setHeight:function(t){vn(U,t)}},encryptionOptions:f,encryption:we,getEncryptor:function(t){return null!==f?we.encryptor(t,0):function(t){return t}},output:_e,getNumberOfPages:le,get pages(){return G},out:Z,f2:T,f3:N,getPageInfo:xe,getPageInfoByObjId:ke,getCurrentPageInfo:Ae,getPDFVersion:g,Point:rn,Rectangle:on,Matrix:Ot,hasHotfix:ye},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return pn(U)},set:function(t){mn(U,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return gn(U)},set:function(t){vn(U,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=et.length;e<n;e++){var a=ne.call(this,t[e][0],t[e][1],t[e][2],et[e][3],!0);!1===d&&(h[a]=!0);var r=t[e][0].split("-");ee({id:a,fontName:r[0],fontStyle:r[1]||""})}Et.publish("addFonts",{fonts:vt,dictionary:bt})}.call(p,et),dt="F1",ie(i,n),Et.publish("initialized"),p}zr.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},zr.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},zr.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},zr.prototype.processOwnerPassword=function(t,e){return Br(Fr(e).substr(0,5),t)},zr.prototype.encryptor=function(t,e){var n=Fr(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return Br(n,t)}},Wr.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,a.A)(t)!==(0,a.A)(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},Gr.API={events:[]},Gr.version="4.2.1";var Yr=Gr.API,Xr=1,Jr=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zr=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Qr=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===e.length?"0"+e:e)}))},ti=function(t){return t.toFixed(2)},ei=function(t){return t.toFixed(5)};Yr.__acroform__={};var ni=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},ai=function(t){return t*Xr},ri=function(t){var e=new yi,n=Ii.internal.getHeight(t)||0,a=Ii.internal.getWidth(t)||0;return e.BBox=[0,0,Number(ti(a)),Number(ti(n))],e},ii=Yr.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},oi=Yr.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},si=Yr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},li=Yr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return si(t,e-1)},ci=Yr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return ii(t,e-1)},ui=Yr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return oi(t,e-1)},fi=Yr.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=n(r)||0,l.lowerLeft_Y=a(i+s)||0,l.upperRight_X=n(r+o)||0,l.upperRight_Y=a(i)||0,[Number(ti(l.lowerLeft_X)),Number(ti(l.lowerLeft_Y)),Number(ti(l.upperRight_X)),Number(ti(l.upperRight_Y))]},di=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,a=hi(t,n),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+r+" "+ti(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=ri(t);return i.scope=t.scope,i.stream=e.join("\n"),i}},hi=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,a={text:"",fontSize:""},r=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");r=t.multiline?r.map((function(t){return t.split("\n")})):r.map((function(t){return[t]}));var i=n,o=Ii.internal.getHeight(t)||0;o=o<0?-o:o;var s=Ii.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,a){if(e+1<r.length){var i=n+" "+r[e+1][0];return pi(i,t,a).width<=s-4}return!1};i++;t:for(;i>0;){e="",i--;var c,u,f=pi("3",t,i).height,d=t.multiline?o-i:(o-f)/2,h=d+=2,p=0,m=0,g=0;if(i<=0){e="(...) Tj\n",e+="% Width of Text: "+pi(e,t,i=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,_=0;_<r.length;_++)if(r.hasOwnProperty(_)){var y=!1;if(1!==r[_].length&&g!==r[_].length-1){if((f+2)*(b+2)+2>o)continue t;v+=r[_][g],y=!0,m=_,_--}else{v=" "==(v+=r[_][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var w=parseInt(_),x=l(w,v,i),k=_>=r.length-1;if(x&&!k){v+=" ",g=0;continue}if(x||k){if(k)m=w;else if(t.multiline&&(f+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((f+2)*(b+2)+2>o)continue t;m=w}}for(var A="",S=p;S<=m;S++){var C=r[S];if(t.multiline){if(S===m){A+=C[g]+" ",g=(g+1)%C.length;continue}if(S===p){A+=C[C.length-1]+" ";continue}}A+=C[0]+" "}switch(A=" "==A.substr(A.length-1)?A.substr(0,A.length-1):A,u=pi(A,t,i).width,t.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}e+=ti(c)+" "+ti(h)+" Td\n",e+="("+Jr(A)+") Tj\n",e+=-ti(c)+" 0 Td\n",h=-(i+2),u=0,p=y?m:m+1,b++,v=""}break}return a.text=e,a.fontSize=i,a},pi=function(t,e,n){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),r=e.scope.getStringUnitWidth(t,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},mi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},gi=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},vi=Yr.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(0!==o&&(i+=" "),(0,a.A)(t[o])){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":"/"===t[o].substr(0,1)?i+="/"+Qr(t[o].substr(1)):(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),i+="("+Jr(r(t[o].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bi=function(t,e,n){var a=function(t){return t};return void 0!==e&&n&&(a=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+Jr(a(t))+")"},_i=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};_i.prototype.toString=function(){return this.objId+" 0 R"},_i.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},_i.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var a=e[n],r=this[a];r&&(Array.isArray(r)?t.push({key:a,value:vi(r,this.objId,this.scope)}):r instanceof _i?(r.scope=this.scope,t.push({key:a,value:r.objId+" 0 R"})):"function"!=typeof r&&t.push({key:a,value:r}))}return t};var yi=function(){_i.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};ni(yi,_i);var wi=function(){_i.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Jr(e(t))+")"}},set:function(e){t=e}})};ni(wi,_i);var xi=function t(){_i.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(e,3))},set:function(t){!0===Boolean(t)?this.F=ci(e,3):this.F=ui(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==a.length)return a},set:function(t){a=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(t){a[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(t){a[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(t){a[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(t){a[3]=t}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Pi)return;i="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Jr(e(i))+")"},set:function(t){i=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(t){i=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Xr:c},set:function(t){c=t}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof Pi||this instanceof Oi))return bi(f,this.objId,this.scope)},set:function(t){t=t.toString(),f=t}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Ei==0?bi(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof Ei==0?"("===t.substr(0,1)?Zr(t.substr(1,t.length-2)):Zr(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ei==1?Zr(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof Ei==1?"/"+Qr(t):t}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Ei==0?bi(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof Ei==0?"("===t.substr(0,1)?Zr(t.substr(1,t.length-2)):Zr(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ei==1?Zr(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof Ei==1?"/"+Qr(t):t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(t){t=Boolean(t),m=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,1):this.Ff=ui(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,2):this.Ff=ui(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,3):this.Ff=ui(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};ni(xi,_i);var ki=function(){xi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return vi(e,this.objId,this.scope)},set:function(t){var n,a;a=[],"string"==typeof(n=t)&&(a=function(t,e,n){n||(n=1);for(var a,r=[];a=e.exec(t);)r.push(a[n]);return r}(n,/\((.*?)\)/g)),e=a}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,18):this.Ff=ui(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=ci(this.Ff,19):this.Ff=ui(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=ci(this.Ff,20),e.sort()):this.Ff=ui(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,22):this.Ff=ui(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,27):this.Ff=ui(this.Ff,27)}}),this.hasAppearanceStream=!1};ni(ki,xi);var Ai=function(){ki.call(this),this.fontName="helvetica",this.combo=!1};ni(Ai,ki);var Si=function(){Ai.call(this),this.combo=!0};ni(Si,Ai);var Ci=function(){Si.call(this),this.edit=!0};ni(Ci,Si);var Ei=function(){xi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,15):this.Ff=ui(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,16):this.Ff=ui(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,17):this.Ff=ui(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,26):this.Ff=ui(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,a=[];for(n in a.push("<<"),e)a.push("/"+n+" ("+Jr(t(e[n]))+")");return a.push(">>"),a.join("\n")}},set:function(t){"object"===(0,a.A)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var n=null==e?"":e.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),t="/"+Qr(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Qr(e)}})};ni(Ei,xi);var Ti=function(){Ei.call(this),this.pushButton=!0};ni(Ti,Ei);var Ni=function(){Ei.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};ni(Ni,Ei);var Pi=function(){var t,e;xi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+Jr(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,a.A)(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+Qr(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+Qr(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ii.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ni(Pi,xi),Ni.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},Ni.prototype.createOption=function(t){var e=new Pi;return e.Parent=this,e.optionName=t,this.Kids.push(e),Mi.call(this.scope,e),e};var Li=function(){Ei.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ii.CheckBox.createAppearanceStream()};ni(Li,Ei);var Oi=function(){xi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,13):this.Ff=ui(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,21):this.Ff=ui(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,24):this.Ff=ui(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,25):this.Ff=ui(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,26):this.Ff=ui(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ni(Oi,xi);var Ri=function(){Oi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,14):this.Ff=ui(this.Ff,14)}}),this.password=!0};ni(Ri,Oi);var Ii={CheckBox:{createAppearanceStream:function(){return{N:{On:Ii.CheckBox.YesNormal},D:{On:Ii.CheckBox.YesPushDown,Off:Ii.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=hi(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+ti(Ii.internal.getWidth(t))+" "+ti(Ii.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+ti(i.fontSize)+" Tf "+r),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),r=[],i=Ii.internal.getHeight(t),o=Ii.internal.getWidth(t),s=hi(t,t.caption);return r.push("1 g"),r.push("0 0 "+ti(o)+" "+ti(i)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+ti(o-1)+" "+ti(i-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+ti(s.fontSize)+" Tf "+a),r.push(s.text),r.push("ET"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ti(Ii.internal.getWidth(t))+" "+ti(Ii.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ii.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ii.RadioButton.Circle.YesNormal,e.D[t]=Ii.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ii.internal.getWidth(t)<=Ii.internal.getHeight(t)?Ii.internal.getWidth(t)/4:Ii.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Ii.internal.Bezier_C,i=Number((a*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+ei(Ii.internal.getWidth(t)/2)+" "+ei(Ii.internal.getHeight(t)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),n.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),n.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),n.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ii.internal.getWidth(t)<=Ii.internal.getHeight(t)?Ii.internal.getWidth(t)/4:Ii.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*Ii.internal.Bezier_C).toFixed(5)),o=Number((a*Ii.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ii.internal.getWidth(t)/2)+" "+ei(Ii.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ii.internal.getWidth(t)/2)+" "+ei(Ii.internal.getHeight(t)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ii.internal.getWidth(t)<=Ii.internal.getHeight(t)?Ii.internal.getWidth(t)/4:Ii.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*Ii.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ii.internal.getWidth(t)/2)+" "+ei(Ii.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ii.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ii.RadioButton.Cross.YesNormal,e.D[t]=Ii.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ii.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+ti(Ii.internal.getWidth(t)-2)+" "+ti(Ii.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(ti(a.x1.x)+" "+ti(a.x1.y)+" m"),n.push(ti(a.x2.x)+" "+ti(a.x2.y)+" l"),n.push(ti(a.x4.x)+" "+ti(a.x4.y)+" m"),n.push(ti(a.x3.x)+" "+ti(a.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=Ii.internal.calculateCross(t),a=[];return a.push("0.749023 g"),a.push("0 0 "+ti(Ii.internal.getWidth(t))+" "+ti(Ii.internal.getHeight(t))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+ti(Ii.internal.getWidth(t)-2)+" "+ti(Ii.internal.getHeight(t)-2)+" re"),a.push("W"),a.push("n"),a.push(ti(n.x1.x)+" "+ti(n.x1.y)+" m"),a.push(ti(n.x2.x)+" "+ti(n.x2.y)+" l"),a.push(ti(n.x4.x)+" "+ti(n.x4.y)+" m"),a.push(ti(n.x3.x)+" "+ti(n.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ti(Ii.internal.getWidth(t))+" "+ti(Ii.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ii.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ii.internal.getWidth(t),n=Ii.internal.getHeight(t),a=Math.min(e,n);return{x1:{x:(e-a)/2,y:(n-a)/2+a},x2:{x:(e-a)/2+a,y:(n-a)/2},x3:{x:(e-a)/2,y:(n-a)/2},x4:{x:(e-a)/2+a,y:(n-a)/2+a}}}},Ii.internal.getWidth=function(t){var e=0;return"object"===(0,a.A)(t)&&(e=ai(t.Rect[2])),e},Ii.internal.getHeight=function(t){var e=0;return"object"===(0,a.A)(t)&&(e=ai(t.Rect[3])),e};var Mi=Yr.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(xi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(mi)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xr=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new wi,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];a.objId=void 0,a.hasAnnotation&&gi(a,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],o=[],s=i.Rect;if(i.Rect&&(i.Rect=fi(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Ii.createDefaultAppearanceStream(i),"object"===(0,a.A)(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=di(i);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var f=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var r in f)if(f.hasOwnProperty(r)){var d=f[r];"function"==typeof d&&(d=d.call(e,i)),c+="/"+r+" "+d+" ",e.internal.acroformPlugin.xForms.indexOf(d)>=0||e.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=f)&&(d=d.call(e,i)),c+="/"+r+" "+d,e.internal.acroformPlugin.xForms.indexOf(d)>=0||e.internal.acroformPlugin.xForms.push(d);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:i.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,a.A)(i)&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof xi))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Yr.AcroFormChoiceField=ki,Yr.AcroFormListBox=Ai,Yr.AcroFormComboBox=Si,Yr.AcroFormEditBox=Ci,Yr.AcroFormButton=Ei,Yr.AcroFormPushButton=Ti,Yr.AcroFormRadioButton=Ni,Yr.AcroFormCheckBox=Li,Yr.AcroFormTextField=Oi,Yr.AcroFormPasswordField=Ri,Yr.AcroFormAppearance=Ii,Yr.AcroForm={ChoiceField:ki,ListBox:Ai,ComboBox:Si,EditBox:Ci,Button:Ei,PushButton:Ti,RadioButton:Ni,CheckBox:Li,TextField:Oi,PasswordField:Ri,Appearance:Ii},Gr.AcroForm={ChoiceField:ki,ListBox:Ai,ComboBox:Si,EditBox:Ci,Button:Ei,PushButton:Ti,RadioButton:Ni,CheckBox:Li,TextField:Oi,PasswordField:Ri,Appearance:Ii};var Fi,Di;Gr.AcroForm;function ji(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){var e="addImage_";t.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,e){var a,i,o,s,l,c=n;if("RGBA"===(e=e||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(k(t))for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==t[i]){s=!1;break}if(!0===s){c=l;break}}else for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==t.charCodeAt(i)){s=!1;break}if(!0===s){c=l;break}}return c===n&&e!==n&&(c=e),c},o=function t(e){for(var n=this.internal.write,a=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf("FlateEncode");)r.splice(r.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:e.width}),i.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&i.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(a({data:e.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var u,f=null!==(u=e.sMaskBitsPerComponent)&&void 0!==u?u:e.bitsPerComponent,d={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:f,data:e.sMask};"filter"in e&&(d.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(f," /Columns ").concat(e.width),d.filter=e.filter),t.call(this,d)}if(e.colorSpace===b.INDEXED){var h=this.internal.newObject();a({data:S(new Uint8Array(e.palette)),objectId:h}),n("endobj")}},s=function(){var t=this.internal.collections[e+"images"];for(var n in t)o.call(this,t[n])},l=function(){var t,n=this.internal.collections[e+"images"],a=this.internal.write;for(var r in n)a("/I"+(t=n[r]).index,t.objectId,"0","R")},c=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var t=this.internal.collections[e+"images"];return c.call(this),t},f=function(){return Object.keys(this.internal.collections[e+"images"]).length},d=function(e){return"function"==typeof t["process"+e.toUpperCase()]},h=function(t){return"object"===(0,a.A)(t)&&1===t.nodeType},p=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var a=""+e.getAttribute("src");if(0===a.indexOf("data:image/"))return kr(unescape(a).split("base64,").pop());var r=t.loadFile(a,!0);if(void 0!==r)return r}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return kr(e.toDataURL(i,1).split("base64,").pop())}},m=function(t){var n=this.internal.collections[e+"images"];if(n)for(var a in n)if(t===n[a].alias)return n[a]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},v=function(t,e,n,a,r,i){var o=g.call(this,n,a,r),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=o[0],a=o[1],c[r.index]=r,i){i*=Math.PI/180;var f=Math.cos(i),d=Math.sin(i),h=function(t){return t.toFixed(4)},p=[h(f),h(d),h(-1*d),h(f),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(t),l(e+a),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(a),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(a),s(t),l(e+a),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+r.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,a=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)a=(a<<5)-a+t.charCodeAt(e),a|=0;else if(k(t))for(n=t.byteLength/2,e=0;e<n;e++)a=(a<<5)-a+t[e],a|=0;return a},w=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},x=t.__addimage__.extractImageFromDataUrl=function(t){if(null==t)return null;if(!(t=t.trim()).startsWith("data:"))return null;var e=t.indexOf(",");return e<0?null:t.substring(0,e).trim().endsWith("base64")?t.substring(e+1):null};t.__addimage__.isArrayBuffer=function(t){return t instanceof ArrayBuffer};var k=t.__addimage__.isArrayBufferView=function(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array},A=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),a=0;a<e;a++)n[a]=t.charCodeAt(a);return n},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=k(t)?t:new Uint8Array(t),a=0;a<n.length;a+=8192)e+=String.fromCharCode.apply(null,n.subarray(a,a+8192));return e};t.addImage=function(){var t,e,r,i,o,s,l,u,f;if("number"==typeof arguments[1]?(e=n,r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],l=arguments[5],u=arguments[6],f=arguments[7]):(e=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7],f=arguments[8]),"object"===(0,a.A)(t=arguments[0])&&!h(t)&&"imageData"in t){var d=t;t=d.imageData,e=d.format||e||n,r=d.x||r||0,i=d.y||i||0,o=d.w||d.width||o,s=d.h||d.height||s,l=d.alias||l,u=d.compression||u,f=d.rotation||d.angle||f}var p=this.internal.getFilters();if(void 0===u&&-1!==p.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var m=C.call(this,t,e,l,u);return v.call(this,r,i,o,s,m,f),this};var C=function(e,a,r,o){var s,l,c;if("string"==typeof e&&i(e)===n){e=unescape(e);var u=E(e,!1);(""!==u||void 0!==(u=t.loadFile(e,!0)))&&(e=u)}if(h(e)&&(e=p(e,a)),a=i(e,a),!d(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if((null==(c=r)||0===c.length)&&(r=function(t){return"string"==typeof t||k(t)?y(t):k(t.data)?y(t.data):null}(e)),(s=m.call(this,r))||(e instanceof Uint8Array||"RGBA"===a||(l=e,e=A(e)),s=this["process"+a.toUpperCase()](e,f.call(this),r,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:_.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var n,a="";if("string"==typeof t){var r;n=null!==(r=x(t))&&void 0!==r?r:t;try{a=kr(n)}catch(t){if(e)throw w(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return a};t.getImageProperties=function(e){var a,r,o="";if(h(e)&&(e=p(e)),"string"==typeof e&&i(e)===n&&(""===(o=E(e,!1))&&(o=t.loadFile(e)||""),e=o),r=i(e),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(e instanceof Uint8Array||(e=A(e)),!(a=this["process"+r.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return a.fileType=r,a}}(Gr.API),Fi=Gr.API,Di=function(t){if(void 0!==t&&""!=t)return!0},Gr.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Fi.events.push(["putPage",function(t){for(var e,n,a,r=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,c=0;c<s.length&&!l;c++)switch((e=s[c]).type){case"link":(Di(e.options.url)||Di(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<s.length;u++){e=s[u];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(h.objId),g=e.title||"Note";a="<</Type /Annot /Subtype /Text "+(n="/Rect ["+r(e.bounds.x)+" "+i(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y)+"] ")+"/Contents ("+f(m(e.contents))+")",a+=" /Popup "+p.objId+" 0 R",a+=" /P "+o.objId+" 0 R",a+=" /T ("+f(m(g))+") >>",h.content=a;var v=h.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+r(e.bounds.x+30)+" "+i(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w+30)+" "+i(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(a+=" /Open true"),a+=" >>",p.content=a,this.internal.write(h.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+r(e.bounds.x)+" "+i(e.bounds.y)+" "+r(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y+e.bounds.h)+"] ";var b="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(d(e.contents))+")",a+=" /DS("+f(d(b))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(e.options.name){var _=this.annotations._nameMap[e.options.name];e.options.pageNumber=_.page,e.options.top=_.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",a="",e.options.url)a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(e.options.url))+") >>";else if(e.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,a+=" /FitV "+e.options.left+"]";break;default:var y=i(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),a+=" /XYZ "+e.options.left+" "+y+" "+e.options.zoom+"]"}""!=a&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),Fi.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},Fi.link=function(t,e,n,a,r){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+a)},options:r,type:"link"})},Fi.textWithLink=function(t,e,n,a){var r,i,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==a.maxWidth){i=a.maxWidth;var l=this.splitTextToSize(t,i).length;r=Math.ceil(s*l)}else i=o,r=s;return this.text(t,e,n,a),n+=.2*s,"center"===a.align&&(e-=o/2),"right"===a.align&&(e-=o),this.link(e,n-s,i,r,a),o},Fi.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&r.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&i(t)&&4==e[t.charCodeAt(0)].length},f=t.__arabicParser__.resolveLigatures=function(t){var e=0,a=n,r="",i=0;for(e=0;e<t.length;e+=1)void 0!==a[t.charCodeAt(e)]?(i++,"number"==typeof(a=a[t.charCodeAt(e)])&&(r+=String.fromCharCode(a),a=n,i=0),e===t.length-1&&(a=n,r+=t.charAt(e-(i-1)),e-=i-1,i=0)):(a=n,r+=t.charAt(e-i),e-=i,i=0);return r};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==a[t.charCodeAt(0)]};var d=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===i(t)?-1:!c(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&l(e)||s(t)&&s(e)?0:u(t)&&o(e)&&!s(e)&&o(n)&&c(n)?3:s(t)||!o(n)?1:2:-1},h=function(t){var n=0,a=0,r=0,i="",s="",l="",c=(t=t||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),a=0;a<c[n].length;a+=1)i=c[n][a],s=c[n][a-1],l=c[n][a+1],o(i)?(r=d(i,s,l),u[n]+=-1!==r?String.fromCharCode(e[i.charCodeAt(0)][r]):i):u[n]+=i;u[n]=f(u[n])}return u.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var a=0;for(n=[],a=0;a<e.length;a+=1)Array.isArray(e[a])?n.push([h(e[a][0]),e[a][1],e[a][2]]):n.push([h(e[a])]);t=n}else t=h(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(Gr.API),Gr.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform","javascript"===t.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))),this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(t){a=t}});var r={};Object.defineProperty(this,"style",{get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Gr.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var a=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var r=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),a=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,c=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var u=e.maxWidth;u>0?"string"==typeof t?t=this.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(c.splitTextToSize(e,u))}),[])):t=Array.isArray(t)?t:[t];for(var f=0;f<t.length;f++)o<(l=this.getStringUnitWidth(t[f],{font:a})*n)&&(o=l);return 0!==o&&(s=t.length),{w:o/=i,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var a=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==a.lineNumber&&(a.lineNumber===t.lineNumber?(t.x=(a.x||0)+(a.width||0),t.y=a.y||0):a.y+a.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,c&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=a.y+a.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-i,t.y+i,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+i,{align:"center",baseline:"top",maxWidth:t.width-i-i}):this.text(t.text,t.x+i,t.y+i,{align:"left",baseline:"top",maxWidth:t.width-i-i})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,c,u,f){if(r.call(this),!c)throw new Error("No data for PDF table.");var d,h,p,m,g=[],v=[],b=[],_={},y={},w=[],x=[],k=(f=f||{}).autoSize||!1,A=!1!==f.printHeaders,S=f.css&&void 0!==f.css["font-size"]?16*f.css["font-size"]:f.fontSize||12,C=f.margins||Object.assign({width:this.getPageWidth()},e),E="number"==typeof f.padding?f.padding:3,T=f.headerBackgroundColor||"#c8c8c8",N=f.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=T,this.internal.__cell__.headerTextColor=N,this.setFontSize(S),null==u)v=g=Object.keys(c[0]),b=g.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===(0,a.A)(u[0]))for(g=u.map((function(t){return t.name})),v=u.map((function(t){return t.prompt||t.name||""})),b=u.map((function(t){return t.align||"left"})),d=0;d<u.length;d+=1)y[u[d].name]=.7499990551181103*u[d].width;else Array.isArray(u)&&"string"==typeof u[0]&&(v=g=u,b=g.map((function(){return"left"})));if(k||Array.isArray(u)&&"string"==typeof u[0])for(d=0;d<g.length;d+=1){for(_[m=g[d]]=c.map((function(t){return t[m]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(v[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=_[m],this.setFont(void 0,"normal"),p=0;p<h.length;p+=1)w.push(this.getTextDimensions(h[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[m]=Math.max.apply(null,w)+E+E,w=[]}if(A){var P={};for(d=0;d<g.length;d+=1)P[g[d]]={},P[g[d]].text=v[d],P[g[d]].align=b[d];var L=l.call(this,P,y);x=g.map((function(e){return new o(t,n,y[e],L,P[e].text,void 0,P[e].align)})),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var O=u.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(d=0;d<c.length;d+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:d,data:c[d]},this);var R=l.call(this,c[d],y);for(p=0;p<g.length;p+=1){var I=c[d][g[p]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:d,col:p,data:I},this),s.call(this,new o(t,n,y[g[p]],R,I,d+2,O[g[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var l=function(t,e){var n=this.internal.__cell__.padding,a=this.internal.__cell__.table_font_size,r=this.internal.scaleFactor;return Object.keys(t).map((function(a){var r=t[a];return this.splitTextToSize(r.hasOwnProperty("text")?r.text:r,e[a]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*a/r+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var a;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){a=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(a.y=this.internal.__cell__.margins.top||0,l.push(a)),a.lineNumber=t;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,a),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Gr.API);var Bi={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ui=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],zi=ji(Ui),Hi=[100,200,300,400,500,600,700,800,900],qi=ji(Hi);function Wi(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return Bi[t=t||"normal"]?t:"normal"}(t.style),a=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),r=function(t){return"number"==typeof zi[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:a,stretch:r,src:t.src||[],ref:t.ref||{name:e,style:[r,n,a].join(" ")}}}function Ki(t,e,n,a){var r;for(r=n;r>=0&&r<e.length;r+=a)if(t[e[r]])return t[e[r]];for(r=n;r>=0&&r<e.length;r-=a)if(t[e[r]])return t[e[r]]}var Vi={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},$i={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Gi(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Yi(t){return t.trimLeft()}function Xi(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Ji(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Zi,Qi,to,eo,no,ao=["times"];function ro(t,e,n,a,r){var i=4,o=so;switch(r){case Gr.API.image_compression.FAST:i=1,o=oo;break;case Gr.API.image_compression.MEDIUM:i=6,o=lo;break;case Gr.API.image_compression.SLOW:i=9,o=co}t=function(t,e,n,a){for(var r,i=t.length/e,o=new Uint8Array(t.length+i),s=[io,oo,so,lo,co],l=0;l<i;l+=1){var c=l*e,u=t.subarray(c,c+e);if(a)o.set(a(u,n,r),c+l);else{for(var f=s.length,d=[],h=0;h<f;h+=1)d[h]=s[h](u,n,r);var p=fo(d.concat());o.set(d[p],c+l)}r=u}return o}(t,e,Math.ceil(n*a/8),o);var s=z(t,{level:i});return Gr.API.__addimage__.arrayBufferToBinaryString(s)}function io(t){var e=Array.apply([],t);return e.unshift(0),e}function oo(t,e){var n=t.length,a=[];a[0]=1;for(var r=0;r<n;r+=1){var i=t[r-e]||0;a[r+1]=t[r]-i+256&255}return a}function so(t,e,n){var a=t.length,r=[];r[0]=2;for(var i=0;i<a;i+=1){var o=n&&n[i]||0;r[i+1]=t[i]-o+256&255}return r}function lo(t,e,n){var a=t.length,r=[];r[0]=3;for(var i=0;i<a;i+=1){var o=t[i-e]||0,s=n&&n[i]||0;r[i+1]=t[i]+256-(o+s>>>1)&255}return r}function co(t,e,n){var a=t.length,r=[];r[0]=4;for(var i=0;i<a;i+=1){var o=uo(t[i-e]||0,n&&n[i]||0,n&&n[i-e]||0);r[i+1]=t[i]-o+256&255}return r}function uo(t,e,n){if(t===e&&e===n)return t;var a=Math.abs(e-n),r=Math.abs(t-n),i=Math.abs(t+e-n-n);return a<=r&&a<=i?t:r<=i?e:n}function fo(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))}function ho(t,e,n){var a=e*n,r=Math.floor(a/8),i=16-(a-8*r+n),o=(1<<n)-1;return mo(t,r)>>i&o}function po(t,e,n,a){var r=n*a,i=Math.floor(r/8),o=16-(r-8*i+a),s=(1<<a)-1,l=(e&s)<<o;!function(t,e,n){if(e+1<t.byteLength)t.setUint16(e,n,!1);else{var a=n>>8&255;t.setUint8(e,a)}}(t,i,mo(t,i)&~(s<<o)&65535|l)}function mo(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function go(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,a=t[e++]|t[e++]<<8,r=t[e++],i=r>>7,o=1<<1+(7&r);t[e++],t[e++];var s=null,l=null;i&&(s=e,l=o,e+=3*o);var c=!0,u=[],f=0,d=null,h=0,p=null;for(this.width=n,this.height=a;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];f=t[e++]|t[e++]<<8,d=t[e++],1&m||(d=null),h=m>>2&7,e++;break;case 254:for(;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,y=t[e++],w=y>>6&1,x=1<<1+(7&y),k=s,A=l,S=!1;y>>7&&(S=!0,k=e,A=x,e+=3*x);var C=e;for(e++;;){var E;if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}u.push({x:g,y:v,width:b,height:_,has_local_palette:S,palette_offset:k,palette_size:A,data_offset:C,data_length:e-C,transparent_index:d,interlaced:!!w,delay:f,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=u.length)throw new Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(e,a){var r=this.frameInfo(e),i=r.width*r.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(i);vo(t,r.data_offset,o,i);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var c=r.width,u=n-c,f=c,d=4*(r.y*n+r.x),h=4*((r.y+r.height)*n+r.x),p=d,m=4*u;!0===r.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=o.length;v<b;++v){var _=o[v];if(0===f&&(f=c,(p+=m)>=h&&(m=4*u+4*n*(g-1),p=d+(c+u)*(g<<1),g>>=1)),_===l)p+=4;else{var y=t[s+3*_],w=t[s+3*_+1],x=t[s+3*_+2];a[p++]=x,a[p++]=w,a[p++]=y,a[p++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,a){var r=this.frameInfo(e),i=r.width*r.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(i);vo(t,r.data_offset,o,i);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var c=r.width,u=n-c,f=c,d=4*(r.y*n+r.x),h=4*((r.y+r.height)*n+r.x),p=d,m=4*u;!0===r.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=o.length;v<b;++v){var _=o[v];if(0===f&&(f=c,(p+=m)>=h&&(m=4*u+4*n*(g-1),p=d+(c+u)*(g<<1),g>>=1)),_===l)p+=4;else{var y=t[s+3*_],w=t[s+3*_+1],x=t[s+3*_+2];a[p++]=y,a[p++]=w,a[p++]=x,a[p++]=255}--f}}}function vo(t,e,n,a){for(var r=t[e++],i=1<<r,o=i+1,s=o+1,l=r+1,c=(1<<l)-1,u=0,f=0,d=0,h=t[e++],p=new Int32Array(4096),m=null;;){for(;u<16&&0!==h;)f|=t[e++]<<u,u+=8,1===h?h=t[e++]:--h;if(u<l)break;var g=f&c;if(f>>=l,u-=l,g!==i){if(g===o)break;for(var v=g<s?g:m,b=0,_=v;_>i;)_=p[_]>>8,++b;var y=_;if(d+b+(v!==g?1:0)>a)return void vr.log("Warning, gif stream longer than expected.");n[d++]=y;var w=d+=b;for(v!==g&&(n[d++]=y),_=v;b--;)_=p[_],n[--w]=255&_,_>>=8;null!==m&&s<4096&&(p[s++]=m<<8|y,s>=c+1&&l<12&&(++l,c=c<<1|1)),m=g}else s=o+1,c=(1<<(l=r+1))-1,m=null}return d!==a&&vr.log("Warning, gif stream shorter than expected."),n}function bo(t){var e,n,a,r,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),p=new Array(64),m=[],g=0,v=7,b=new Array(64),_=new Array(64),y=new Array(64),w=new Array(256),x=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(t,e){for(var n=0,a=0,r=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)r[e[a]]=[],r[e[a]][0]=n,r[e[a]][1]=i,a++,n++;n*=2}return r}function R(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<v),n--,--v<0&&(255==g?(I(255),I(0)):I(g),v=7,g=0)}function I(t){m.push(t)}function M(t){I(t>>8&255),I(255&t)}function F(t,e,n,a,r){for(var i,o=r[0],s=r[240],l=function(t,e){var n,a,r,i,o,s,l,c,u,f,d=0;for(u=0;u<8;++u){n=t[d],a=t[d+1],r=t[d+2],i=t[d+3],o=t[d+4],s=t[d+5],l=t[d+6];var p=n+(c=t[d+7]),m=n-c,g=a+l,v=a-l,b=r+s,_=r-s,y=i+o,w=i-o,x=p+y,k=p-y,A=g+b,S=g-b;t[d]=x+A,t[d+4]=x-A;var C=.707106781*(S+k);t[d+2]=k+C,t[d+6]=k-C;var E=.382683433*((x=w+_)-(S=v+m)),T=.5411961*x+E,N=1.306562965*S+E,P=.707106781*(A=_+v),L=m+P,O=m-P;t[d+5]=O+T,t[d+3]=O-T,t[d+1]=L+N,t[d+7]=L-N,d+=8}for(d=0,u=0;u<8;++u){n=t[d],a=t[d+8],r=t[d+16],i=t[d+24],o=t[d+32],s=t[d+40],l=t[d+48];var R=n+(c=t[d+56]),I=n-c,M=a+l,F=a-l,D=r+s,j=r-s,B=i+o,U=i-o,z=R+B,H=R-B,q=M+D,W=M-D;t[d]=z+q,t[d+32]=z-q;var K=.707106781*(W+H);t[d+16]=H+K,t[d+48]=H-K;var V=.382683433*((z=U+j)-(W=F+I)),$=.5411961*z+V,G=1.306562965*W+V,Y=.707106781*(q=j+F),X=I+Y,J=I-Y;t[d+40]=J+$,t[d+24]=J-$,t[d+8]=X+G,t[d+56]=X-G,d++}for(u=0;u<64;++u)f=t[u]*e[u],h[u]=f>0?f+.5|0:f-.5|0;return h}(t,e),c=0;c<64;++c)p[k[c]]=l[c];var u=p[0]-n;n=p[0],0==u?R(a[0]):(R(a[d[i=32767+u]]),R(f[i]));for(var m=63;m>0&&0==p[m];)m--;if(0==m)return R(o),n;for(var g,v=1;v<=m;){for(var b=v;0==p[v]&&v<=m;)++v;var _=v-b;if(_>=16){g=_>>4;for(var y=1;y<=g;++y)R(s);_&=15}i=32767+p[v],R(r[(_<<4)+d[i]]),R(f[i]),v++}return 63!=m&&R(o),n}function D(t){t=Math.min(Math.max(t,1),100),i!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var a=o((e[n]*t+50)/100);a=Math.min(Math.max(a,1),255),s[k[n]]=a}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var f=o((r[i]*t+50)/100);f=Math.min(Math.max(f,1),255),l[k[i]]=f}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var m=0;m<8;m++)c[h]=1/(s[k[h]]*d[p]*d[m]*8),u[h]=1/(l[k[h]]*d[p]*d[m]*8),h++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),i=t)}this.encode=function(t,i){i&&D(i),m=new Array,g=0,v=7,M(65496),M(65504),M(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),M(1),M(1),I(0),I(0),function(){M(65499),M(132),I(0);for(var t=0;t<64;t++)I(s[t]);I(1);for(var e=0;e<64;e++)I(l[e])}(),function(t,e){M(65472),M(17),I(8),M(e),M(t),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(t.width,t.height),function(){M(65476),M(418),I(0);for(var t=0;t<16;t++)I(A[t+1]);for(var e=0;e<=11;e++)I(S[e]);I(16);for(var n=0;n<16;n++)I(C[n+1]);for(var a=0;a<=161;a++)I(E[a]);I(1);for(var r=0;r<16;r++)I(T[r+1]);for(var i=0;i<=11;i++)I(N[i]);I(17);for(var o=0;o<16;o++)I(P[o+1]);for(var s=0;s<=161;s++)I(L[s])}(),M(65498),M(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,f=0,d=0;g=0,v=7,this.encode.displayName="_encode_";for(var h,p,w,k,O,j,B,U,z,H=t.data,q=t.width,W=t.height,K=4*q,V=0;V<W;){for(h=0;h<K;){for(O=K*V+h,B=-1,U=0,z=0;z<64;z++)j=O+(U=z>>3)*K+(B=4*(7&z)),V+U>=W&&(j-=K*(V+1+U-W)),h+B>=K&&(j-=h+B-K+4),p=H[j++],w=H[j++],k=H[j++],b[z]=(x[p]+x[w+256|0]+x[k+512|0]>>16)-128,_[z]=(x[p+768|0]+x[w+1024|0]+x[k+1280|0]>>16)-128,y[z]=(x[p+1280|0]+x[w+1536|0]+x[k+1792|0]>>16)-128;o=F(b,c,o,e,a),f=F(_,u,f,n,r),d=F(y,u,d,n,r),h+=32}V+=8}if(v>=0){var $=[];$[1]=v+1,$[0]=(1<<v+1)-1,R($)}return M(65497),new Uint8Array(m)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=O(A,S),n=O(T,N),a=O(C,E),r=O(P,L),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var a=t;a<e;a++)d[32767+a]=n,f[32767+a]=[],f[32767+a][1]=n,f[32767+a][0]=a;for(var r=-(e-1);r<=-t;r++)d[32767+r]=n,f[32767+r]=[],f[32767+r][1]=n,f[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256|0]=38470*t,x[t+512|0]=7471*t+32768,x[t+768|0]=-11059*t,x[t+1024|0]=-21709*t,x[t+1280|0]=32768*t+8421375,x[t+1536|0]=-27439*t,x[t+1792|0]=-5329*t}(),D(t)}function _o(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function yo(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var a=0;4>a;a++)if(t[e+a]!=n.charCodeAt(a))return!0;return!1}function a(t,e,n,a,r){for(var i=0;i<r;i++)t[e+i]=n[a+i]}function r(t,e,n,a){for(var r=0;r<a;r++)t[e+r]=n}function i(t){return new Int32Array(t)}function o(t,e){for(var n=[],a=0;a<t;a++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,a,r){for(var i=r[a],o=0;o<i&&(n.push(r.length>a+1?[]:new e),!(r.length<a+1));o++)t(n[o],a+1,r)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function c(t,n,a,r,i){e(!(r%a));do{t[n+(r-=a)]=i}while(0<r)}function u(t,n,a,r,o){if(e(2328>=o),512>=o)var s=i(512);else if(null==(s=i(o)))return 0;return function(t,n,a,r,o,s){var u,d,h=n,p=1<<a,m=i(16),g=i(16);for(e(0!=o),e(null!=r),e(null!=t),e(0<a),d=0;d<o;++d){if(15<r[d])return 0;++m[r[d]]}if(m[0]==o)return 0;for(g[1]=0,u=1;15>u;++u){if(m[u]>1<<u)return 0;g[u+1]=g[u]+m[u]}for(d=0;d<o;++d)u=r[d],0<r[d]&&(s[g[u]++]=d);if(1==g[15])return(r=new f).g=0,r.value=s[0],c(t,h,1,p,r),p;var v,b=-1,_=p-1,y=0,w=1,x=1,k=1<<a;for(d=0,u=1,o=2;u<=a;++u,o<<=1){if(w+=x<<=1,0>(x-=m[u]))return 0;for(;0<m[u];--m[u])(r=new f).g=u,r.value=s[d++],c(t,h+y,o,k,r),y=l(y,u)}for(u=a+1,o=2;15>=u;++u,o<<=1){if(w+=x<<=1,0>(x-=m[u]))return 0;for(;0<m[u];--m[u]){if(r=new f,(y&_)!=b){for(h+=k,v=1<<(b=u)-a;15>b&&!(0>=(v-=m[b]));)++b,v<<=1;p+=k=1<<(v=b-a),t[n+(b=y&_)].g=v+a,t[n+b].value=h-n-b}r.g=u-a,r.value=s[d++],c(t,h+(y>>a),o,k,r),y=l(y,u)}}return w!=2*g[15]-1?0:p}(t,n,a,r,o,s)}function f(){this.value=this.g=0}function d(){this.value=this.g=0}function h(){this.G=o(5,f),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(jn,d)}function p(t,n,a,r){e(null!=t),e(null!=n),e(2147483648>r),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=a,t.Jd=n,t.Yc=a+r,t.Zc=4<=r?a+r-4+1:a,C(t)}function m(t,e){for(var n=0;0<e--;)n|=T(t,128)<<e;return n}function g(t,e){var n=m(t,e);return E(t)?-n:n}function v(t,n,a,r){var i,o=0;for(e(null!=t),e(null!=n),e(4294967288>r),t.Sb=r,t.Ra=0,t.u=0,t.h=0,4<r&&(r=4),i=0;i<r;++i)o+=n[a+i]<<8*i;t.Ra=o,t.bb=r,t.oa=n,t.pa=a}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<zn-8>>>0,++t.bb,t.u-=8;k(t)&&(t.h=1,t.u=0)}function _(t,n){if(e(0<=n),!t.h&&n<=Un){var a=x(t)&Bn[n];return t.u+=n,b(t),a}return t.h=1,t.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&zn-1)>>>0}function k(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>zn}function A(t,e){t.u=e,t.h=k(t)}function S(t){t.u>=Hn&&(e(t.u>=Hn),b(t))}function C(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function E(t){return m(t,1)}function T(t,e){var n=t.Ca;0>t.b&&C(t);var a=t.b,r=n*e>>>8,i=(t.I>>>a>r)+0;for(i?(n-=r,t.I-=r+1<<a>>>0):n=r+1,a=n,r=0;256<=a;)r+=8,a>>=8;return a=7^r+qn[a],t.b-=a,t.Ca=(n<<a)-1,i}function N(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function P(t,e){return t[e+0]|t[e+1]<<8}function L(t,e){return P(t,e)|t[e+2]<<16}function O(t,e){return P(t,e)|P(t,e+2)<<16}function R(t,n){var a=1<<n;return e(null!=t),e(0<n),t.X=i(a),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function I(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),a(n.X,0,t.X,0,1<<n.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function F(t,n,a,r){e(null!=a),e(null!=r);var i=a[0],o=r[0];return 0==i&&(i=(t*o+n/2)/n),0==o&&(o=(n*i+t/2)/t),0>=i||0>=o?0:(a[0]=i,r[0]=o,1)}function D(t,e){return t+(1<<e)-1>>>e}function j(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function B(e,n){t[n]=function(n,a,r,i,o,s,l){var c;for(c=0;c<o;++c){var u=t[e](s[l+c-1],r,i+c);s[l+c]=j(n[a+c],u)}}}function U(){this.ud=this.hd=this.jd=0}function z(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function H(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function q(t,e){return H(t+(t-e+.5>>1))}function W(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function K(t,e,n,a,r,i,o){for(a=i[o-1],n=0;n<r;++n)i[o+n]=a=j(t[e+n],a)}function V(t,e,n,a,r){var i;for(i=0;i<n;++i){var o=t[e+i],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));a[r+i]=(4278255360&o)+l>>>0}}function $(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function G(t,e,n,a,r,i){var o;for(o=0;o<a;++o){var s=e[n+o],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(u<<24>>24)>>>5)),r[i+o]=(4278255360&s)+(u<<16)+c}}function Y(e,n,a,r,i){t[n]=function(t,e,n,a,o,s,l,c,u){for(a=l;a<c;++a)for(l=0;l<u;++l)o[s++]=i(n[r(t[e++])])},t[e]=function(e,n,o,s,l,c,u){var f=8>>e.b,d=e.Ea,h=e.K[0],p=e.w;if(8>f)for(e=(1<<e.b)-1,p=(1<<f)-1;n<o;++n){var m,g=0;for(m=0;m<d;++m)m&e||(g=r(s[l++])),c[u++]=i(h[g&p]),g>>=f}else t["VP8LMapColor"+a](s,l,h,p,c,u,n,o,d)}}function X(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=i>>16&255,a[r++]=i>>8&255,a[r++]=255&i}}function J(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=i>>16&255,a[r++]=i>>8&255,a[r++]=255&i,a[r++]=i>>24&255}}function Z(t,e,n,a,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;a[r++]=i,a[r++]=o}}function Q(t,e,n,a,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;a[r++]=i,a[r++]=o}}function tt(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=255&i,a[r++]=i>>8&255,a[r++]=i>>16&255}}function et(t,e,n,r,i,o){if(0==o)for(n=e+n;e<n;)N(r,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else a(r,i,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function at(t){return t==Ha||t==qa||t==Wa||t==Ka}function rt(){this.eb=[],this.size=this.A=this.fb=0}function it(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new rt,this.f.kb=new it,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ut(t,e){var n=t.T,r=e.ba.f.RGBA,i=r.eb,o=r.fb+t.ka*r.A,s=gr[e.ba.S],l=t.y,c=t.O,u=t.f,f=t.N,d=t.ea,h=t.W,p=e.cc,m=e.dc,g=e.Mc,v=e.Nc,b=t.ka,_=t.ka+t.T,y=t.U,w=y+1>>1;for(0==b?s(l,c,null,null,u,f,d,h,u,f,d,h,i,o,null,null,y):(s(e.ec,e.fc,l,c,p,m,g,v,u,f,d,h,i,o-r.A,i,o,y),++n);b+2<_;b+=2)p=u,m=f,g=d,v=h,f+=t.Rc,h+=t.Rc,o+=2*r.A,s(l,(c+=2*t.fa)-t.fa,l,c,p,m,g,v,u,f,d,h,i,o-r.A,i,o,y);return c+=t.fa,t.j+_<t.o?(a(e.ec,e.fc,l,c,y),a(e.cc,e.dc,u,f,w),a(e.Mc,e.Nc,d,h,w),n--):1&_||s(l,c,null,null,u,f,d,h,u,f,d,h,i,o+r.A,null,null,y),n}function ft(t,n,a){var r=t.F,i=[t.J];if(null!=r){var o=t.U,s=n.ba.S,l=s==Ba||s==Wa;n=n.ba.f.RGBA;var c=[0],u=t.ka;c[0]=t.T,t.Kb&&(0==u?--c[0]:(--u,i[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-u));var f=n.eb;u=n.fb+u*n.A,t=Aa(r,i[0],t.width,o,c,f,u+(l?0:3),n.A),e(a==c),t&&at(s)&&xa(f,u,l,o,c,n.A)}return 0}function dt(t){var e=t.ma,n=e.ba.S,a=11>n,r=n==Fa||n==ja||n==Ba||n==Ua||12==n||at(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Mn(e.Oa,t,r?11:12))return 0;if(r&&at(n)&&bn(),t.da)alert("todo:use_scaling");else{if(a){if(e.Ib=ct,t.Kb){if(n=t.U+1>>1,e.memory=i(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=ut,bn()}}else alert("todo:EmitYUV");r&&(e.Jb=ft,a&&gn())}if(a&&!Pr){for(t=0;256>t;++t)Lr[t]=89858*(t-128)+Sr>>Ar,Ir[t]=-22014*(t-128)+Sr,Rr[t]=-45773*(t-128),Or[t]=113618*(t-128)+Sr>>Ar;for(t=Cr;t<Er;++t)e=76283*(t-16)+Sr>>Ar,Mr[t-Cr]=Kt(e,255),Fr[t-Cr]=Kt(e+8>>4,15);Pr=1}return 1}function ht(t){var n=t.ma,a=t.U,r=t.T;return e(!(1&t.ka)),0>=a||0>=r?0:(a=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,a),n.Dc+=a,1)}function pt(t){t.ma.memory=null}function mt(t,e,n,a){return 47!=_(t,8)?0:(e[0]=_(t,14)+1,n[0]=_(t,14)+1,a[0]=_(t,1),0!=_(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+_(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=Ja[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var a=x(n),r=t[e+=255&a].g-8;return 0<r&&(A(n,n.u+8),a=x(n),e+=t[e].value,e+=a&(1<<r)-1),A(n,n.u+t[e].g),t[e].value}function _t(t,n,a){return a.g+=t.g,a.value+=t.value<<n>>>0,e(8>=a.g),t.g}function yt(t,n,a){var r=t.xc;return e((n=0==r?0:t.vc[t.md*(a>>r)+(n>>r)])<t.Wb),t.Ya[n]}function wt(t,n,r,i){var o=t.ab,s=t.c*n,l=t.C;n=l+n;var c=r,u=i;for(i=t.Ta,r=t.Ua;0<o--;){var f=t.gc[o],d=l,h=n,p=c,m=u,g=(u=i,c=r,f.Ea);switch(e(d<h),e(h<=f.nc),f.hc){case 2:Vn(p,m,(h-d)*g,u,c);break;case 0:var v=d,b=h,_=u,y=c,w=(C=f).Ea;0==v&&(Wn(p,m,null,null,1,_,y),K(p,m+1,0,0,w-1,_,y+1),m+=w,y+=w,++v);for(var x=1<<C.b,k=x-1,A=D(w,C.b),S=C.K,C=C.w+(v>>C.b)*A;v<b;){var E=S,T=C,N=1;for(Kn(p,m,_,y-w,1,_,y);N<w;){var P=(N&~k)+x;P>w&&(P=w),(0,Jn[E[T++]>>8&15])(p,m+ +N,_,y+N-w,P-N,_,y+N),N=P}m+=w,y+=w,++v&k||(C+=A)}h!=f.nc&&a(u,c-g,u,c+(h-d-1)*g,g);break;case 1:for(g=p,b=m,w=(p=f.Ea)-(y=p&~(_=(m=1<<f.b)-1)),v=D(p,f.b),x=f.K,f=f.w+(d>>f.b)*v;d<h;){for(k=x,A=f,S=new U,C=b+y,E=b+p;b<C;)$(k[A++],S),Zn(S,g,b,m,u,c),b+=m,c+=m;b<E&&($(k[A++],S),Zn(S,g,b,w,u,c),b+=w,c+=w),++d&_||(f+=v)}break;case 3:if(p==u&&m==c&&0<f.b){for(b=u,p=g=c+(h-d)*g-(y=(h-d)*D(f.Ea,f.b)),m=u,_=c,v=[],y=(w=y)-1;0<=y;--y)v[y]=m[_+y];for(y=w-1;0<=y;--y)b[p+y]=v[y];$n(f,d,h,u,g,u,c)}else $n(f,d,h,p,m,u,c)}c=i,u=r}u!=r&&a(i,r,c,u,s)}function xt(t,n){var a=t.V,r=t.Ba+t.c*t.C,i=n-t.C;if(e(n<=t.l.o),e(16>=i),0<i){var o=t.l,s=t.Ta,l=t.Ua,c=o.width;if(wt(t,i,a,r),i=l=[l],e((a=t.C)<(r=n)),e(o.v<o.va),r>o.o&&(r=o.o),a<o.j){var u=o.j-a;a=o.j,i[0]+=u*c}if(a>=r?a=0:(i[0]+=4*o.v,o.ka=a-o.j,o.U=o.va-o.v,o.T=r-a,a=1),a){if(l=l[0],11>(a=t.ca).S){var f=a.f.RGBA,d=(r=a.S,i=o.U,o=o.T,u=f.eb,f.A),h=o;for(f=f.fb+t.Ma*f.A;0<h--;){var p=s,m=l,g=i,v=u,b=f;switch(r){case Ma:Qn(p,m,g,v,b);break;case Fa:ta(p,m,g,v,b);break;case Ha:ta(p,m,g,v,b),xa(v,b,0,g,1,0);break;case Da:aa(p,m,g,v,b);break;case ja:et(p,m,g,v,b,1);break;case qa:et(p,m,g,v,b,1),xa(v,b,0,g,1,0);break;case Ba:et(p,m,g,v,b,0);break;case Wa:et(p,m,g,v,b,0),xa(v,b,1,g,1,0);break;case Ua:ea(p,m,g,v,b);break;case Ka:ea(p,m,g,v,b),ka(v,b,g,1,0);break;case za:na(p,m,g,v,b);break;default:e(0)}l+=c,f+=d}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=a.height)}}t.C=n,e(t.C<=t.i)}function kt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,a=t.Ya[e].H;if(0<n[1][a[1]+0].g||0<n[2][a[2]+0].g||0<n[3][a[3]+0].g)return 0}return 1}function At(t,n,a,r,i,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=mr[t.Z]);n<a;++n)mr[t.Z](s,l,r,i,r,i,o),s=r,l=i,i+=o;t.qd=s,t.rd=l}}function St(t,n){var a=t.l.ma,r=0==a.Z||1==a.Z?t.l.j:t.C;if(r=t.C<r?r:t.C,e(n<=t.l.o),n>r){var i=t.l.width,o=a.ca,s=a.tb+i*r,l=t.V,c=t.Ba+t.c*r,u=t.gc;e(1==t.ab),e(3==u[0].hc),Yn(u[0],r,n,l,c,o,s),At(a,r,n,o,s,i)}t.C=t.Ma=n}function Ct(t,n,a,r,i,o,s){var l=t.$/r,c=t.$%r,u=t.m,f=t.s,d=a+t.$,h=d;i=a+r*i;var p=a+r*o,m=280+f.ua,g=t.Pb?l:16777216,v=0<f.ua?f.Wa:null,b=f.wc,_=d<p?yt(f,c,l):null;e(t.C<o),e(p<=i);var y=!1;t:for(;;){for(;y||d<p;){var w=0;if(l>=g){var C=d-a;e((g=t).Pb),g.wd=g.m,g.xd=C,0<g.s.ua&&I(g.s.Wa,g.s.vb),g=l+Qa}if(c&b||(_=yt(f,c,l)),e(null!=_),_.Qb&&(n[d]=_.qb,y=!0),!y)if(S(u),_.jc){w=u,C=n;var E=d,T=_.pd[x(w)&jn-1];e(_.jc),256>T.g?(A(w,w.u+T.g),C[E]=T.value,w=0):(A(w,w.u+T.g-256),e(256<=T.value),w=T.value),0==w&&(y=!0)}else w=bt(_.G[0],_.H[0],u);if(u.h)break;if(y||256>w){if(!y)if(_.nd)n[d]=(_.qb|w<<8)>>>0;else{if(S(u),y=bt(_.G[1],_.H[1],u),S(u),C=bt(_.G[2],_.H[2],u),E=bt(_.G[3],_.H[3],u),u.h)break;n[d]=(E<<24|y<<16|w<<8|C)>>>0}if(y=!1,++d,++c>=r&&(c=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=v))for(;h<d;)w=n[h++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else if(280>w){if(w=gt(w-256,u),C=bt(_.G[4],_.H[4],u),S(u),C=vt(r,C=gt(C,u)),u.h)break;if(d-a<C||i-d<w)break t;for(E=0;E<w;++E)n[d+E]=n[d+E-C];for(d+=w,c+=w;c>=r;)c-=r,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(d<=i),c&b&&(_=yt(f,c,l)),null!=v)for(;h<d;)w=n[h++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else{if(!(w<m))break t;for(y=w-280,e(null!=v);h<d;)w=n[h++],v.X[(506832829*w&4294967295)>>>v.Mb]=w;w=d,e(!(y>>>(C=v).Xa)),n[w]=C.X[y],y=!0}y||e(u.h==k(u))}if(t.Pb&&u.h&&d<i)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&I(t.s.vb,t.s.Wa);else{if(u.h)break t;null!=s&&s(t,l>o?o:l),t.a=0,t.$=d-a}return 1}return t.a=3,0}function Et(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Tt(){var e=new on;return null==e?null:(e.a=0,e.xb=pr,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Vn=V,Zn=G,Qn=X,ta=J,ea=Z,na=Q,aa=tt,t.VP8LMapColor32b=Gn,t.VP8LMapColor8b=Xn,e)}function Nt(t,n,a,s,l){var c=1,d=[t],p=[n],m=s.m,g=s.s,v=null,b=0;t:for(;;){if(a)for(;c&&_(m,1);){var y=d,w=p,k=s,C=1,E=k.m,T=k.gc[k.ab],N=_(E,2);if(k.Oc&1<<N)c=0;else{switch(k.Oc|=1<<N,T.hc=N,T.Ea=y[0],T.nc=w[0],T.K=[null],++k.ab,e(4>=k.ab),N){case 0:case 1:T.b=_(E,3)+2,C=Nt(D(T.Ea,T.b),D(T.nc,T.b),0,k,T.K),T.K=T.K[0];break;case 3:var P,L=_(E,8)+1,O=16<L?0:4<L?1:2<L?2:3;if(y[0]=D(T.Ea,O),T.b=O,P=C=Nt(L,1,0,k,T.K)){var I,M=L,F=T,B=1<<(8>>F.b),U=i(B);if(null==U)P=0;else{var z=F.K[0],H=F.w;for(U[0]=F.K[0][0],I=1;I<1*M;++I)U[I]=j(z[H+I],U[I-1]);for(;I<4*B;++I)U[I]=0;F.K[0]=null,F.K[0]=U,P=1}}C=P;break;case 2:break;default:e(0)}c=C}}if(d=d[0],p=p[0],c&&_(m,1)&&!(c=1<=(b=_(m,4))&&11>=b)){s.a=3;break t}var q;if(q=c)e:{var W,K,V,$=s,G=d,Y=p,X=b,J=a,Z=$.m,Q=$.s,tt=[null],et=1,nt=0,at=Za[X];n:for(;;){if(J&&_(Z,1)){var rt=_(Z,3)+2,it=D(G,rt),ot=D(Y,rt),st=it*ot;if(!Nt(it,ot,0,$,tt))break n;for(tt=tt[0],Q.xc=rt,W=0;W<st;++W){var lt=tt[W]>>8&65535;tt[W]=lt,lt>=et&&(et=lt+1)}}if(Z.h)break n;for(K=0;5>K;++K){var ct=Ga[K];!K&&0<X&&(ct+=1<<X),nt<ct&&(nt=ct)}var ut=o(et*at,f),ft=et,dt=o(ft,h);if(null==dt)var ht=null;else e(65536>=ft),ht=dt;var pt=i(nt);if(null==ht||null==pt||null==ut){$.a=1;break n}var mt=ut;for(W=V=0;W<et;++W){var gt=ht[W],vt=gt.G,bt=gt.H,yt=0,wt=1,xt=0;for(K=0;5>K;++K){ct=Ga[K],vt[K]=mt,bt[K]=V,!K&&0<X&&(ct+=1<<X);a:{var kt,At=ct,St=$,Tt=pt,Pt=mt,Lt=V,Ot=0,Rt=St.m,It=_(Rt,1);if(r(Tt,0,0,At),It){var Mt=_(Rt,1)+1,Ft=_(Rt,1),Dt=_(Rt,0==Ft?1:8);Tt[Dt]=1,2==Mt&&(Tt[Dt=_(Rt,8)]=1);var jt=1}else{var Bt=i(19),Ut=_(Rt,4)+4;if(19<Ut){St.a=3;var zt=0;break a}for(kt=0;kt<Ut;++kt)Bt[Xa[kt]]=_(Rt,3);var Ht=void 0,qt=void 0,Wt=St,Kt=Bt,Vt=At,$t=Tt,Gt=0,Yt=Wt.m,Xt=8,Jt=o(128,f);r:for(;u(Jt,0,7,Kt,19);){if(_(Yt,1)){var Zt=2+2*_(Yt,3);if((Ht=2+_(Yt,Zt))>Vt)break r}else Ht=Vt;for(qt=0;qt<Vt&&Ht--;){S(Yt);var Qt=Jt[0+(127&x(Yt))];A(Yt,Yt.u+Qt.g);var te=Qt.value;if(16>te)$t[qt++]=te,0!=te&&(Xt=te);else{var ee=16==te,ne=te-16,ae=$a[ne],re=_(Yt,Va[ne])+ae;if(qt+re>Vt)break r;for(var ie=ee?Xt:0;0<re--;)$t[qt++]=ie}}Gt=1;break r}Gt||(Wt.a=3),jt=Gt}(jt=jt&&!Rt.h)&&(Ot=u(Pt,Lt,8,Tt,At)),jt&&0!=Ot?zt=Ot:(St.a=3,zt=0)}if(0==zt)break n;if(wt&&1==Ya[K]&&(wt=0==mt[V].g),yt+=mt[V].g,V+=zt,3>=K){var oe,se=pt[0];for(oe=1;oe<ct;++oe)pt[oe]>se&&(se=pt[oe]);xt+=se}}if(gt.nd=wt,gt.Qb=0,wt&&(gt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==yt&&256>vt[0][bt[0]+0].value&&(gt.Qb=1,gt.qb+=vt[0][bt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>xt,gt.jc){var le,ce=gt;for(le=0;le<jn;++le){var ue=le,fe=ce.pd[ue],de=ce.G[0][ce.H[0]+ue];256<=de.value?(fe.g=de.g+256,fe.value=de.value):(fe.g=0,fe.value=0,ue>>=_t(de,8,fe),ue>>=_t(ce.G[1][ce.H[1]+ue],16,fe),ue>>=_t(ce.G[2][ce.H[2]+ue],0,fe),_t(ce.G[3][ce.H[3]+ue],24,fe))}}}Q.vc=tt,Q.Wb=et,Q.Ya=ht,Q.yc=ut,q=1;break e}q=0}if(!(c=q)){s.a=3;break t}if(0<b){if(g.ua=1<<b,!R(g.Wa,b)){s.a=1,c=0;break t}}else g.ua=0;var he=s,pe=d,me=p,ge=he.s,ve=ge.xc;if(he.c=pe,he.i=me,ge.md=D(pe,ve),ge.wc=0==ve?-1:(1<<ve)-1,a){s.xb=hr;break t}if(null==(v=i(d*p))){s.a=1,c=0;break t}c=(c=Ct(s,v,0,d,p,p,null))&&!m.h;break t}return c?(null!=l?l[0]=v:(e(null==v),e(a)),s.$=0,a||Et(g)):Et(g),c}function Pt(t,n){var a=t.c*t.i,r=a+n+16*n;return e(t.c<=n),t.V=i(r),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+a+n,1)}function Lt(t,n){var a=t.C,r=n-a,i=t.V,o=t.Ba+t.c*a;for(e(n<=t.l.o);0<r;){var s=16<r?16:r,l=t.l.ma,c=t.l.width,u=c*s,f=l.ca,d=l.tb+c*a,h=t.Ta,p=t.Ua;wt(t,s,i,o),Sa(h,p,f,d,u),At(l,a,a+s,f,d,c),r-=s,i+=s*t.c,a+=s}e(a==n),t.C=t.Ma=n}function Ot(){this.ub=this.yd=this.td=this.Rb=0}function Rt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function It(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Mt(){this.Yb=function(){var t=[];return function t(e,n,a){for(var r=a[n],i=0;i<r&&(e.push(a.length>n+1?[]:0),!(a.length<n+1));i++)t(e[i],n+1,a)}(t,0,[3,11]),t}()}function Ft(){this.jb=i(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function Dt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function jt(){this.ld=this.La=this.dd=this.tc=0}function Bt(){this.Na=this.la=0}function Ut(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function zt(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ht(){this.uc=this.M=this.Nb=0,this.wa=Array(new jt),this.Y=0,this.ya=Array(new zt),this.aa=0,this.l=new Vt}function qt(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new Ot,this.Kc=new Rt,this.ed=new Dt,this.Qa=new It,this.Ic=this.$c=this.Aa=0,this.D=new Ht,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,y),this.ia=0,this.pb=o(4,Ut),this.Pa=new Ft,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new qt),this.Hd=0,this.rb=Array(new Bt),this.sb=0,this.wa=Array(new jt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new zt),this.L=this.aa=0,this.gd=s([4,2],jt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Kt(t,e){return 0>t?0:t>e?e:t}function Vt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function $t(){var t=new Wt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,nr||(nr=Jt)),t}function Gt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Yt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Xt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Gt(t,2,"null VP8Io passed to VP8GetHeaders()");var a=n.data,i=n.w,o=n.ha;if(4>o)return Gt(t,7,"Truncated header.");var s=a[i+0]|a[i+1]<<8|a[i+2]<<16,l=t.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Gt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Gt(t,4,"Frame not displayable.");i+=3,o-=3;var c=t.Kc;if(l.Rb){if(7>o)return Gt(t,7,"cannot parse picture header");if(!Yt(a,i,o))return Gt(t,3,"Bad code word");c.c=16383&(a[i+4]<<8|a[i+3]),c.Td=a[i+4]>>6,c.i=16383&(a[i+6]<<8|a[i+5]),c.Ud=a[i+6]>>6,i+=7,o-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,r((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,r(s.Zb,0,0,s.Zb.length),r(s.Lb,0,0,s.Lb)}if(l.ub>o)return Gt(t,7,"bad partition length");p(s=t.m,a,i,l.ub),i+=l.ub,o-=l.ub,l.Rb&&(c.Ld=E(s),c.Kd=E(s)),c=t.Qa;var u,f=t.Pa;if(e(null!=s),e(null!=c),c.Cb=E(s),c.Cb){if(c.Bb=E(s),E(s)){for(c.Fb=E(s),u=0;4>u;++u)c.Zb[u]=E(s)?g(s,7):0;for(u=0;4>u;++u)c.Lb[u]=E(s)?g(s,6):0}if(c.Bb)for(u=0;3>u;++u)f.jb[u]=E(s)?m(s,8):255}else c.Bb=0;if(s.Ka)return Gt(t,3,"cannot parse segment header");if((c=t.ed).zd=E(s),c.Tb=m(s,6),c.wb=m(s,3),c.Pc=E(s),c.Pc&&E(s)){for(f=0;4>f;++f)E(s)&&(c.vd[f]=g(s,6));for(f=0;4>f;++f)E(s)&&(c.od[f]=g(s,6))}if(t.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Gt(t,3,"cannot parse filter header");var d=o;if(o=u=i,i=u+d,c=d,t.Xb=(1<<m(t.m,2))-1,d<3*(f=t.Xb))a=7;else{for(u+=3*f,c-=3*f,d=0;d<f;++d){var h=a[o+0]|a[o+1]<<8|a[o+2]<<16;h>c&&(h=c),p(t.Jc[+d],a,u,h),u+=h,c-=h,o+=3}p(t.Jc[+f],a,u,c),a=u<i?0:5}if(0!=a)return Gt(t,a,"cannot parse partitions");for(a=m(u=t.m,7),o=E(u)?g(u,4):0,i=E(u)?g(u,4):0,c=E(u)?g(u,4):0,f=E(u)?g(u,4):0,u=E(u)?g(u,4):0,d=t.Qa,h=0;4>h;++h){if(d.Cb){var v=d.Zb[h];d.Fb||(v+=a)}else{if(0<h){t.pb[h]=t.pb[0];continue}v=a}var b=t.pb[h];b.Sc[0]=tr[Kt(v+o,127)],b.Sc[1]=er[Kt(v+0,127)],b.Eb[0]=2*tr[Kt(v+i,127)],b.Eb[1]=101581*er[Kt(v+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=tr[Kt(v+f,117)],b.Qc[1]=er[Kt(v+u,127)],b.lc=v+u}if(!l.Rb)return Gt(t,4,"Not a key frame.");for(E(s),l=t.Pa,a=0;4>a;++a){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)f=T(s,lr[a][o][i][c])?m(s,8):or[a][o][i][c],l.Wc[a][o].Yb[i][c]=f;for(o=0;17>o;++o)l.Xc[a][o]=l.Wc[a][cr[o]]}return t.kc=E(s),t.kc&&(t.Bd=m(s,8)),t.cb=1}function Jt(t,e,n,a,r,i,o){var s=e[r].Yb[n];for(n=0;16>r;++r){if(!T(t,s[n+0]))return r;for(;!T(t,s[n+1]);)if(s=e[++r].Yb[0],n=0,16==r)return 16;var l=e[r+1].Yb;if(T(t,s[n+2])){var c=t,u=0;if(T(c,(d=s)[(f=n)+3]))if(T(c,d[f+6])){for(s=0,f=2*(u=T(c,d[f+8]))+(d=T(c,d[f+9+u])),u=0,d=ar[f];d[s];++s)u+=u+T(c,d[s]);u+=3+(8<<f)}else T(c,d[f+7])?(u=7+2*T(c,165),u+=T(c,145)):u=5+T(c,159);else u=T(c,d[f+4])?3+T(c,d[f+5]):2;s=l[2]}else u=1,s=l[1];l=o+rr[r],0>(c=t).b&&C(c);var f,d=c.b,h=(f=c.Ca>>1)-(c.I>>d)>>31;--c.b,c.Ca+=h,c.Ca|=1,c.I-=(f+1&h)<<d,i[l]=((u^h)-h)*a[(0<r)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,r(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,e,n,a,r){r=t[e+n+32*a]+(r>>3),t[e+n+32*a]=-256&r?0>r?0:255:r}function te(t,e,n,a,r,i){Qt(t,e,0,n,a+r),Qt(t,e,1,n,a+i),Qt(t,e,2,n,a-i),Qt(t,e,3,n,a-r)}function ee(t){return(20091*t>>16)+t}function ne(t,e,n,a){var r,o=0,s=i(16);for(r=0;4>r;++r){var l=t[e+0]+t[e+8],c=t[e+0]-t[e+8],u=(35468*t[e+4]>>16)-ee(t[e+12]),f=ee(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+f,s[o+1]=c+u,s[o+2]=c-u,s[o+3]=l-f,o+=4,e++}for(r=o=0;4>r;++r)l=(t=s[o+0]+4)+s[o+8],c=t-s[o+8],u=(35468*s[o+4]>>16)-ee(s[o+12]),Qt(n,a,0,0,l+(f=ee(s[o+4])+(35468*s[o+12]>>16))),Qt(n,a,1,0,c+u),Qt(n,a,2,0,c-u),Qt(n,a,3,0,l-f),o++,a+=32}function ae(t,e,n,a){var r=t[e+0]+4,i=35468*t[e+4]>>16,o=ee(t[e+4]),s=35468*t[e+1]>>16;te(n,a,0,r+o,t=ee(t[e+1]),s),te(n,a,1,r+i,t,s),te(n,a,2,r-i,t,s),te(n,a,3,r-o,t,s)}function re(t,e,n,a,r){ne(t,e,n,a),r&&ne(t,e+16,n,a+4)}function ie(t,e,n,a){ia(t,e+0,n,a,1),ia(t,e+32,n,a+128,1)}function oe(t,e,n,a){var r;for(t=t[e+0]+4,r=0;4>r;++r)for(e=0;4>e;++e)Qt(n,a,e,r,t)}function se(t,e,n,a){t[e+0]&&la(t,e+0,n,a),t[e+16]&&la(t,e+16,n,a+4),t[e+32]&&la(t,e+32,n,a+128),t[e+48]&&la(t,e+48,n,a+128+4)}function le(t,e,n,a){var r,o=i(16);for(r=0;4>r;++r){var s=t[e+0+r]+t[e+12+r],l=t[e+4+r]+t[e+8+r],c=t[e+4+r]-t[e+8+r],u=t[e+0+r]-t[e+12+r];o[0+r]=s+l,o[8+r]=s-l,o[4+r]=u+c,o[12+r]=u-c}for(r=0;4>r;++r)s=(t=o[0+4*r]+3)+o[3+4*r],l=o[1+4*r]+o[2+4*r],c=o[1+4*r]-o[2+4*r],u=t-o[3+4*r],n[a+0]=s+l>>3,n[a+16]=u+c>>3,n[a+32]=s-l>>3,n[a+48]=u-c>>3,a+=64}function ce(t,e,n){var a,r=e-32,i=Ra,o=255-t[r-1];for(a=0;a<n;++a){var s,l=i,c=o+t[e-1];for(s=0;s<n;++s)t[e+s]=l[c+t[r+s]];e+=32}}function ue(t,e){ce(t,e,4)}function fe(t,e){ce(t,e,8)}function de(t,e){ce(t,e,16)}function he(t,e){var n;for(n=0;16>n;++n)a(t,e+32*n,t,e-32,16)}function pe(t,e){var n;for(n=16;0<n;--n)r(t,e,t[e-1],16),e+=32}function me(t,e,n){var a;for(a=0;16>a;++a)r(e,n+32*a,t,16)}function ge(t,e){var n,a=16;for(n=0;16>n;++n)a+=t[e-1+32*n]+t[e+n-32];me(a>>5,t,e)}function ve(t,e){var n,a=8;for(n=0;16>n;++n)a+=t[e-1+32*n];me(a>>4,t,e)}function be(t,e){var n,a=8;for(n=0;16>n;++n)a+=t[e+n-32];me(a>>4,t,e)}function _e(t,e){me(128,t,e)}function ye(t,e,n){return t+2*e+n+2>>2}function we(t,e){var n,r=e-32;for(r=new Uint8Array([ye(t[r-1],t[r+0],t[r+1]),ye(t[r+0],t[r+1],t[r+2]),ye(t[r+1],t[r+2],t[r+3]),ye(t[r+2],t[r+3],t[r+4])]),n=0;4>n;++n)a(t,e+32*n,r,0,r.length)}function xe(t,e){var n=t[e-1],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96];N(t,e+0,16843009*ye(t[e-1-32],n,a)),N(t,e+32,16843009*ye(n,a,r)),N(t,e+64,16843009*ye(a,r,i)),N(t,e+96,16843009*ye(r,i,i))}function ke(t,e){var n,a=4;for(n=0;4>n;++n)a+=t[e+n-32]+t[e-1+32*n];for(a>>=3,n=0;4>n;++n)r(t,e+32*n,a,4)}function Ae(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+96]=ye(a,r,t[e-1+96]),t[e+1+96]=t[e+0+64]=ye(n,a,r),t[e+2+96]=t[e+1+64]=t[e+0+32]=ye(i,n,a),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=ye(o,i,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=ye(s,o,i),t[e+3+32]=t[e+2+0]=ye(l,s,o),t[e+3+0]=ye(c,l,s)}function Se(t,e){var n=t[e+1-32],a=t[e+2-32],r=t[e+3-32],i=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=ye(t[e+0-32],n,a),t[e+1+0]=t[e+0+32]=ye(n,a,r),t[e+2+0]=t[e+1+32]=t[e+0+64]=ye(a,r,i),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=ye(r,i,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=ye(i,o,s),t[e+3+64]=t[e+2+96]=ye(o,s,l),t[e+3+96]=ye(s,l,l)}function Ce(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=i+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+l+1>>1,t[e+3+0]=l+c+1>>1,t[e+0+96]=ye(r,a,n),t[e+0+64]=ye(a,n,i),t[e+0+32]=t[e+1+96]=ye(n,i,o),t[e+1+32]=t[e+2+96]=ye(i,o,s),t[e+2+32]=t[e+3+96]=ye(o,s,l),t[e+3+32]=ye(s,l,c)}function Ee(t,e){var n=t[e+0-32],a=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],c=t[e+7-32];t[e+0+0]=n+a+1>>1,t[e+1+0]=t[e+0+64]=a+r+1>>1,t[e+2+0]=t[e+1+64]=r+i+1>>1,t[e+3+0]=t[e+2+64]=i+o+1>>1,t[e+0+32]=ye(n,a,r),t[e+1+32]=t[e+0+96]=ye(a,r,i),t[e+2+32]=t[e+1+96]=ye(r,i,o),t[e+3+32]=t[e+2+96]=ye(i,o,s),t[e+3+64]=ye(o,s,l),t[e+3+96]=ye(s,l,c)}function Te(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96];t[e+0+0]=n+a+1>>1,t[e+2+0]=t[e+0+32]=a+r+1>>1,t[e+2+32]=t[e+0+64]=r+i+1>>1,t[e+1+0]=ye(n,a,r),t[e+3+0]=t[e+1+32]=ye(a,r,i),t[e+3+32]=t[e+1+64]=ye(r,i,i),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=i}function Ne(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=a+n+1>>1,t[e+0+64]=t[e+2+96]=r+a+1>>1,t[e+0+96]=i+r+1>>1,t[e+3+0]=ye(s,l,c),t[e+2+0]=ye(o,s,l),t[e+1+0]=t[e+3+32]=ye(n,o,s),t[e+1+32]=t[e+3+64]=ye(a,n,o),t[e+1+64]=t[e+3+96]=ye(r,a,n),t[e+1+96]=ye(i,r,a)}function Pe(t,e){var n;for(n=0;8>n;++n)a(t,e+32*n,t,e-32,8)}function Le(t,e){var n;for(n=0;8>n;++n)r(t,e,t[e-1],8),e+=32}function Oe(t,e,n){var a;for(a=0;8>a;++a)r(e,n+32*a,t,8)}function Re(t,e){var n,a=8;for(n=0;8>n;++n)a+=t[e+n-32]+t[e-1+32*n];Oe(a>>4,t,e)}function Ie(t,e){var n,a=4;for(n=0;8>n;++n)a+=t[e+n-32];Oe(a>>3,t,e)}function Me(t,e){var n,a=4;for(n=0;8>n;++n)a+=t[e-1+32*n];Oe(a>>3,t,e)}function Fe(t,e){Oe(128,t,e)}function De(t,e,n){var a=t[e-n],r=t[e+0],i=3*(r-a)+La[1020+t[e-2*n]-t[e+n]],o=Oa[112+(i+4>>3)];t[e-n]=Ra[255+a+Oa[112+(i+3>>3)]],t[e+0]=Ra[255+r-o]}function je(t,e,n,a){var r=t[e+0],i=t[e+n];return Ia[255+t[e-2*n]-t[e-n]]>a||Ia[255+i-r]>a}function Be(t,e,n,a){return 4*Ia[255+t[e-n]-t[e+0]]+Ia[255+t[e-2*n]-t[e+n]]<=a}function Ue(t,e,n,a,r){var i=t[e-3*n],o=t[e-2*n],s=t[e-n],l=t[e+0],c=t[e+n],u=t[e+2*n],f=t[e+3*n];return 4*Ia[255+s-l]+Ia[255+o-c]>a?0:Ia[255+t[e-4*n]-i]<=r&&Ia[255+i-o]<=r&&Ia[255+o-s]<=r&&Ia[255+f-u]<=r&&Ia[255+u-c]<=r&&Ia[255+c-l]<=r}function ze(t,e,n,a){var r=2*a+1;for(a=0;16>a;++a)Be(t,e+a,n,r)&&De(t,e+a,n)}function He(t,e,n,a){var r=2*a+1;for(a=0;16>a;++a)Be(t,e+a*n,1,r)&&De(t,e+a*n,1)}function qe(t,e,n,a){var r;for(r=3;0<r;--r)ze(t,e+=4*n,n,a)}function We(t,e,n,a){var r;for(r=3;0<r;--r)He(t,e+=4,n,a)}function Ke(t,e,n,a,r,i,o,s){for(i=2*i+1;0<r--;){if(Ue(t,e,n,i,o))if(je(t,e,n,s))De(t,e,n);else{var l=t,c=e,u=n,f=l[c-2*u],d=l[c-u],h=l[c+0],p=l[c+u],m=l[c+2*u],g=27*(b=La[1020+3*(h-d)+La[1020+f-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[c-3*u]=Ra[255+l[c-3*u]+b],l[c-2*u]=Ra[255+f+v],l[c-u]=Ra[255+d+g],l[c+0]=Ra[255+h-g],l[c+u]=Ra[255+p-v],l[c+2*u]=Ra[255+m-b]}e+=a}}function Ve(t,e,n,a,r,i,o,s){for(i=2*i+1;0<r--;){if(Ue(t,e,n,i,o))if(je(t,e,n,s))De(t,e,n);else{var l=t,c=e,u=n,f=l[c-u],d=l[c+0],h=l[c+u],p=Oa[112+(4+(m=3*(d-f))>>3)],m=Oa[112+(m+3>>3)],g=p+1>>1;l[c-2*u]=Ra[255+l[c-2*u]+g],l[c-u]=Ra[255+f+m],l[c+0]=Ra[255+d-p],l[c+u]=Ra[255+h-g]}e+=a}}function $e(t,e,n,a,r,i){Ke(t,e,n,1,16,a,r,i)}function Ge(t,e,n,a,r,i){Ke(t,e,1,n,16,a,r,i)}function Ye(t,e,n,a,r,i){var o;for(o=3;0<o;--o)Ve(t,e+=4*n,n,1,16,a,r,i)}function Xe(t,e,n,a,r,i){var o;for(o=3;0<o;--o)Ve(t,e+=4,1,n,16,a,r,i)}function Je(t,e,n,a,r,i,o,s){Ke(t,e,r,1,8,i,o,s),Ke(n,a,r,1,8,i,o,s)}function Ze(t,e,n,a,r,i,o,s){Ke(t,e,1,r,8,i,o,s),Ke(n,a,1,r,8,i,o,s)}function Qe(t,e,n,a,r,i,o,s){Ve(t,e+4*r,r,1,8,i,o,s),Ve(n,a+4*r,r,1,8,i,o,s)}function tn(t,e,n,a,r,i,o,s){Ve(t,e+4,1,r,8,i,o,s),Ve(n,a+4,1,r,8,i,o,s)}function en(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rn(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new f}function on(){this.xb=this.a=0,this.l=new Vt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rn,this.ab=0,this.gc=o(4,an),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Vt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(t,e,n,a,r,i,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)r[i+e]=t+n[a+e]&255,t=r[i+e]}function cn(t,e,n,a,r,i,o){var s;if(null==t)ln(null,null,n,a,r,i,o);else for(s=0;s<o;++s)r[i+s]=t[e+s]+n[a+s]&255}function un(t,e,n,a,r,i,o){if(null==t)ln(null,null,n,a,r,i,o);else{var s,l=t[e+0],c=l,u=l;for(s=0;s<o;++s)c=u+(l=t[e+s])-c,u=n[a+s]+(-256&c?0>c?0:255:c)&255,c=l,r[i+s]=u}}function fn(t,n,r,o){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>r||0>=o||r+o>l)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new sn,(c=null==t.ga)||(c=n.width*n.o,e(0==t.Gb.length),t.Gb=i(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var u=t.Fa,f=t.P,d=t.qc,h=t.mb,p=t.nb,m=f+1,g=d-1,b=c.l;if(e(null!=u&&null!=h&&null!=n),mr[0]=null,mr[1]=ln,mr[2]=cn,mr[3]=un,c.ca=h,c.tb=p,c.c=n.width,c.i=n.height,e(0<c.c&&0<c.i),1>=d)n=0;else if(c.$a=3&u[f+0],c.Z=u[f+0]>>2&3,c.Lc=u[f+0]>>4&3,f=u[f+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||f)n=0;else if(b.put=ht,b.ac=dt,b.bc=pt,b.ma=c,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,c.$a)t:{e(1==c.$a),n=Tt();e:for(;;){if(null==n){n=0;break t}if(e(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,v(n.m,u,m,g),!Nt(c.c,c.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&kt(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Pt(n,c.c)),!n)break e;n=1;break t}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=t.ga.Lc?t.Ga=0:o=l-r}e(null!=t.ga),e(r+o<=l);t:{if(n=(u=t.ga).c,l=u.l.o,0==u.$a){if(m=t.rc,g=t.Vc,b=t.Fa,f=t.P+1+r*n,d=t.mb,h=t.nb+r*n,e(f<=t.P+t.qc),0!=u.Z)for(e(null!=mr[u.Z]),c=0;c<o;++c)mr[u.Z](m,g,b,f,d,h,n),m=d,g=h,h+=n,f+=n;else for(c=0;c<o;++c)a(d,h,b,f,n),m=d,g=h,h+=n,f+=n;t.rc=m,t.Vc=g}else{if(e(null!=u.mc),n=r+o,e(null!=(c=u.mc)),e(n<=c.i),c.C>=n)n=1;else if(u.ic||gn(),u.ic){u=c.V,m=c.Ba,g=c.c;var _=c.i,y=(b=1,f=c.$/g,d=c.$%g,h=c.m,p=c.s,c.$),w=g*_,x=g*n,A=p.wc,C=y<x?yt(p,d,f):null;e(y<=w),e(n<=_),e(kt(p));e:for(;;){for(;!h.h&&y<x;){if(d&A||(C=yt(p,d,f)),e(null!=C),S(h),256>(_=bt(C.G[0],C.H[0],h)))u[m+y]=_,++y,++d>=g&&(d=0,++f<=n&&!(f%16)&&St(c,f));else{if(!(280>_)){b=0;break e}_=gt(_-256,h);var E,T=bt(C.G[4],C.H[4],h);if(S(h),!(y>=(T=vt(g,T=gt(T,h)))&&w-y>=_)){b=0;break e}for(E=0;E<_;++E)u[m+y+E]=u[m+y+E-T];for(y+=_,d+=_;d>=g;)d-=g,++f<=n&&!(f%16)&&St(c,f);y<x&&d&A&&(C=yt(p,d,f))}e(h.h==k(h))}St(c,f>n?n:f);break e}!b||h.h&&y<w?(b=0,c.a=h.h?5:3):c.$=y,n=b}else n=Ct(c,c.V,c.Ba,c.c,c.i,n,Lt);if(!n){o=0;break t}}r+o>=l&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+r*s}function dn(t,e,n,a,r,i){for(;0<r--;){var o,s=t,l=e+(n?1:0),c=t,u=e+(n?0:3);for(o=0;o<a;++o){var f=c[u+4*o];255!=f&&(f*=32897,s[l+4*o+0]=s[l+4*o+0]*f>>23,s[l+4*o+1]=s[l+4*o+1]*f>>23,s[l+4*o+2]=s[l+4*o+2]*f>>23)}e+=i}}function hn(t,e,n,a,r){for(;0<a--;){var i;for(i=0;i<n;++i){var o=t[e+2*i+0],s=15&(c=t[e+2*i+1]),l=4369*s,c=(240&c|c>>4)*l>>16;t[e+2*i+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*i+1]=240&c|s}e+=r}}function pn(t,e,n,a,r,i,o,s){var l,c,u=255;for(c=0;c<r;++c){for(l=0;l<a;++l){var f=t[e+l];i[o+4*l]=f,u&=f}e+=n,o+=s}return 255!=u}function mn(t,e,n,a,r){var i;for(i=0;i<r;++i)n[a+i]=t[e+i]>>8}function gn(){xa=dn,ka=hn,Aa=pn,Sa=mn}function vn(n,a,r){t[n]=function(t,n,i,o,s,l,c,u,f,d,h,p,m,g,v,b,_){var y,w=_-1>>1,x=s[l+0]|c[u+0]<<16,k=f[d+0]|h[p+0]<<16;e(null!=t);var A=3*x+k+131074>>2;for(a(t[n+0],255&A,A>>16,m,g),null!=i&&(A=3*k+x+131074>>2,a(i[o+0],255&A,A>>16,v,b)),y=1;y<=w;++y){var S=s[l+y]|c[u+y]<<16,C=f[d+y]|h[p+y]<<16,E=x+S+k+C+524296,T=E+2*(S+k)>>3;A=T+x>>1,x=(E=E+2*(x+C)>>3)+S>>1,a(t[n+2*y-1],255&A,A>>16,m,g+(2*y-1)*r),a(t[n+2*y-0],255&x,x>>16,m,g+(2*y-0)*r),null!=i&&(A=E+k>>1,x=T+C>>1,a(i[o+2*y-1],255&A,A>>16,v,b+(2*y-1)*r),a(i[o+2*y+0],255&x,x>>16,v,b+(2*y+0)*r)),x=S,k=C}1&_||(A=3*x+k+131074>>2,a(t[n+_-1],255&A,A>>16,m,g+(_-1)*r),null!=i&&(A=3*k+x+131074>>2,a(i[o+_-1],255&A,A>>16,v,b+(_-1)*r)))}}function bn(){gr[Ma]=vr,gr[Fa]=_r,gr[Da]=br,gr[ja]=yr,gr[Ba]=wr,gr[Ua]=xr,gr[za]=kr,gr[Ha]=_r,gr[qa]=yr,gr[Wa]=wr,gr[Ka]=xr}function _n(t){return t&~Nr?0>t?0:255:t>>Tr}function yn(t,e){return _n((19077*t>>8)+(26149*e>>8)-14234)}function wn(t,e,n){return _n((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function xn(t,e){return _n((19077*t>>8)+(33050*e>>8)-17685)}function kn(t,e,n,a,r){a[r+0]=yn(t,n),a[r+1]=wn(t,e,n),a[r+2]=xn(t,e)}function An(t,e,n,a,r){a[r+0]=xn(t,e),a[r+1]=wn(t,e,n),a[r+2]=yn(t,n)}function Sn(t,e,n,a,r){var i=wn(t,e,n);e=i<<3&224|xn(t,e)>>3,a[r+0]=248&yn(t,n)|i>>5,a[r+1]=e}function Cn(t,e,n,a,r){var i=240&xn(t,e)|15;a[r+0]=240&yn(t,n)|wn(t,e,n)>>4,a[r+1]=i}function En(t,e,n,a,r){a[r+0]=255,kn(t,e,n,a,r+1)}function Tn(t,e,n,a,r){An(t,e,n,a,r),a[r+3]=255}function Nn(t,e,n,a,r){kn(t,e,n,a,r),a[r+3]=255}function Pn(e,n,a){t[e]=function(t,e,r,i,o,s,l,c,u){for(var f=c+(-2&u)*a;c!=f;)n(t[e+0],r[i+0],o[s+0],l,c),n(t[e+1],r[i+0],o[s+0],l,c+a),e+=2,++i,++s,c+=2*a;1&u&&n(t[e+0],r[i+0],o[s+0],l,c)}}function Ln(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function On(t,e,n,a,r){switch(t>>>30){case 3:ia(e,n,a,r,0);break;case 2:oa(e,n,a,r);break;case 1:la(e,n,a,r)}}function Rn(t,e){var n,i,o=e.M,s=e.Nb,l=t.oc,c=t.pc+40,u=t.oc,f=t.pc+584,d=t.oc,h=t.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[f+32*n-1]=129,d[h+32*n-1]=129;for(0<o?l[c-1-32]=u[f-1-32]=d[h-1-32]=129:(r(l,c-32-1,127,21),r(u,f-32-1,127,9),r(d,h-32-1,127,9)),i=0;i<t.za;++i){var p=e.ya[e.aa+i];if(0<i){for(n=-1;16>n;++n)a(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)a(u,f+32*n-4,u,f+32*n+4,4),a(d,h+32*n-4,d,h+32*n+4,4)}var m=t.Gd,g=t.Hd+i,v=p.ad,b=p.Hc;if(0<o&&(a(l,c-32,m[g].y,0,16),a(u,f-32,m[g].f,0,8),a(d,h-32,m[g].ea,0,8)),p.Za){var _=l,y=c-32+16;for(0<o&&(i>=t.za-1?r(_,y,m[g].y[15],4):a(_,y,m[g+1].y,0,4)),n=0;4>n;n++)_[y+128+n]=_[y+256+n]=_[y+384+n]=_[y+0+n];for(n=0;16>n;++n,b<<=2)_=l,y=c+Dr[n],fr[p.Ob[n]](_,y),On(b,v,16*+n,_,y)}else if(_=Ln(i,o,p.Ob[0]),ur[_](l,c),0!=b)for(n=0;16>n;++n,b<<=2)On(b,v,16*+n,l,c+Dr[n]);for(n=p.Gc,_=Ln(i,o,p.Dd),dr[_](u,f),dr[_](d,h),b=v,_=u,y=f,255&(p=0|n)&&(170&p?sa(b,256,_,y):ca(b,256,_,y)),p=d,b=h,255&(n>>=8)&&(170&n?sa(v,320,p,b):ca(v,320,p,b)),o<t.Ub-1&&(a(m[g].y,0,l,c+480,16),a(m[g].f,0,u,f+224,8),a(m[g].ea,0,d,h+224,8)),n=8*s*t.B,m=t.sa,g=t.ta+16*i+16*s*t.R,v=t.qa,p=t.ra+8*i+n,b=t.Ha,_=t.Ia+8*i+n,n=0;16>n;++n)a(m,g+n*t.R,l,c+32*n,16);for(n=0;8>n;++n)a(v,p+n*t.B,u,f+32*n,8),a(b,_+n*t.B,d,h+32*n,8)}}function In(t,a,r,i,o,s,l,c,u){var f=[0],d=[0],h=0,p=null!=u?u.kd:0,m=null!=u?u:new nn;if(null==t||12>r)return 7;m.data=t,m.w=a,m.ha=r,a=[a],r=[r],m.gb=[m.gb];t:{var g=a,b=r,_=m.gb;if(e(null!=t),e(null!=b),e(null!=_),_[0]=0,12<=b[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){_=3;break t}var y=O(t,g[0]+4);if(12>y||4294967286<y){_=3;break t}if(p&&y>b[0]-8){_=7;break t}_[0]=y,g[0]+=12,b[0]-=12}_=0}if(0!=_)return _;for(y=0<m.gb[0],r=r[0];;){t:{var x=t;b=a,_=r;var k=f,A=d,S=g=[0];if((T=h=[h])[0]=0,8>_[0])_=7;else{if(!n(x,b[0],"VP8X")){if(10!=O(x,b[0]+4)){_=3;break t}if(18>_[0]){_=7;break t}var C=O(x,b[0]+8),E=1+L(x,b[0]+12);if(2147483648<=E*(x=1+L(x,b[0]+15))){_=3;break t}null!=S&&(S[0]=C),null!=k&&(k[0]=E),null!=A&&(A[0]=x),b[0]+=18,_[0]-=18,T[0]=1}_=0}}if(h=h[0],g=g[0],0!=_)return _;if(b=!!(2&g),!y&&h)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=l&&(l[0]=b),null!=c&&(c[0]=0),l=f[0],g=d[0],h&&b&&null==u){_=0;break}if(4>r){_=7;break}if(y&&h||!y&&!h&&!n(t,a[0],"ALPH")){r=[r],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];t:{C=t,_=a,y=r;var T=m.gb;k=m.na,A=m.P,S=m.Sa,E=22,e(null!=C),e(null!=y),x=_[0];var N=y[0];for(e(null!=k),e(null!=S),k[0]=null,A[0]=null,S[0]=0;;){if(_[0]=x,y[0]=N,8>N){_=7;break t}var P=O(C,x+4);if(4294967286<P){_=3;break t}var R=8+P+1&-2;if(E+=R,0<T&&E>T){_=3;break t}if(!n(C,x,"VP8 ")||!n(C,x,"VP8L")){_=0;break t}if(N[0]<R){_=7;break t}n(C,x,"ALPH")||(k[0]=C,A[0]=x+8,S[0]=P),x+=R,N-=R}}if(r=r[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=_)break}r=[r],m.Ja=[m.Ja],m.xa=[m.xa];t:if(T=t,_=a,y=r,k=m.gb[0],A=m.Ja,S=m.xa,C=_[0],x=!n(T,C,"VP8 "),E=!n(T,C,"VP8L"),e(null!=T),e(null!=y),e(null!=A),e(null!=S),8>y[0])_=7;else{if(x||E){if(T=O(T,C+4),12<=k&&T>k-12){_=3;break t}if(p&&T>y[0]-8){_=7;break t}A[0]=T,_[0]+=8,y[0]-=8,S[0]=E}else S[0]=5<=y[0]&&47==T[C+0]&&!(T[C+4]>>5),A[0]=y[0];_=0}if(r=r[0],m.Ja=m.Ja[0],m.xa=m.xa[0],a=a[0],0!=_)break;if(4294967286<m.Ja)return 3;if(null==c||b||(c[0]=m.xa?2:1),l=[l],g=[g],m.xa){if(5>r){_=7;break}c=l,p=g,b=s,null==t||5>r?t=0:5<=r&&47==t[a+0]&&!(t[a+4]>>5)?(y=[0],T=[0],k=[0],v(A=new w,t,a,r),mt(A,y,T,k)?(null!=c&&(c[0]=y[0]),null!=p&&(p[0]=T[0]),null!=b&&(b[0]=k[0]),t=1):t=0):t=0}else{if(10>r){_=7;break}c=g,null==t||10>r||!Yt(t,a+3,r-3)?t=0:(p=t[a+0]|t[a+1]<<8|t[a+2]<<16,b=16383&(t[a+7]<<8|t[a+6]),t=16383&(t[a+9]<<8|t[a+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=m.Ja||!b||!t?t=0:(l&&(l[0]=b),c&&(c[0]=t),t=1))}if(!t)return 3;if(l=l[0],g=g[0],h&&(f[0]!=l||d[0]!=g))return 3;null!=u&&(u[0]=m,u.offset=a-u.w,e(4294967286>a-u.w),e(u.offset==u.ha-r));break}return 0==_||7==_&&h&&null==u?(null!=s&&(s[0]|=null!=m.na&&0<m.na.length),null!=i&&(i[0]=l),null!=o&&(o[0]=g),0):_}function Mn(t,e,n){var a=e.width,r=e.height,i=0,o=0,s=a,l=r;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,i=t.v,o=t.j,11>n||(i&=-2,o&=-2),0>i||0>o||0>=s||0>=l||i+s>a||o+l>r))return 0;if(e.v=i,e.j=o,e.va=i+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!F(s,l,n=[t.ib],i=[t.hb]))return 0;e.ib=n[0],e.hb=i[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*a/4&&e.hb<3*r/4,e.Kb=0),1}function Fn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Dn(t,e,n,a){if(null==a||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var r=n.cd,o=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=r||0>=o||s+r>t||l+o>e)return 2;t=r,e=o}if(n.da){if(!F(t,e,r=[n.ib],o=[n.hb]))return 2;t=r[0],e=o[0]}}a.width=t,a.height=e;t:{var c=a.width,u=a.height;if(t=a.S,0>=c||0>=u||!(t>=Ma&&13>t))t=2;else{if(0>=a.Rd&&null==a.sd){s=o=r=e=0;var f=(l=c*Ur[t])*u;if(11>t||(o=(u+1)/2*(e=(c+1)/2),12==t&&(s=(r=c)*u)),null==(u=i(f+2*o+s))){t=1;break t}a.sd=u,11>t?((c=a.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=f):((c=a.f.kb).y=u,c.O=0,c.fa=l,c.Fd=f,c.f=u,c.N=0+f,c.Ab=e,c.Cd=o,c.ea=u,c.W=0+f+o,c.Db=e,c.Ed=o,12==t&&(c.F=u,c.J=0+f+2*o),c.Tc=s,c.lb=r)}if(e=1,r=a.S,o=a.width,s=a.height,r>=Ma&&13>r)if(11>r)t=a.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+o<=t.size,e&=l>=o*Ur[r],e&=null!=t.eb;else{t=a.f.kb,l=(o+1)/2,f=(s+1)/2,c=Math.abs(t.fa),u=Math.abs(t.Ab);var d=Math.abs(t.Db),h=Math.abs(t.lb),p=h*(s-1)+o;e&=c*(s-1)+o<=t.Fd,e&=u*(f-1)+l<=t.Cd,e=(e&=d*(f-1)+l<=t.Ed)&c>=o&u>=l&d>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==r&&(e&=h>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Fn(a)),t}var jn=64,Bn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Un=24,zn=32,Hn=8,qn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return z(z(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return z(t,e[n-1])},t.Predictor7=function(t,e,n){return z(t,e[n+0])},t.Predictor8=function(t,e,n){return z(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return z(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return z(z(t,e[n-1]),z(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var a=e[n+0];return 0>=W(a>>24&255,t>>24&255,(e=e[n-1])>>24&255)+W(a>>16&255,t>>16&255,e>>16&255)+W(a>>8&255,t>>8&255,e>>8&255)+W(255&a,255&t,255&e)?a:t},t.Predictor12=function(t,e,n){var a=e[n+0];return(H((t>>24&255)+(a>>24&255)-((e=e[n-1])>>24&255))<<24|H((t>>16&255)+(a>>16&255)-(e>>16&255))<<16|H((t>>8&255)+(a>>8&255)-(e>>8&255))<<8|H((255&t)+(255&a)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var a=e[n-1];return(q((t=z(t,e[n+0]))>>24&255,a>>24&255)<<24|q(t>>16&255,a>>16&255)<<16|q(t>>8&255,a>>8&255)<<8|q(255&t,255&a))>>>0};var Wn=t.PredictorAdd0;t.PredictorAdd1=K,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var Kn=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Vn,$n=t.ColorIndexInverseTransform,Gn=t.MapARGB,Yn=t.VP8LColorIndexInverseTransformAlpha,Xn=t.MapAlpha,Jn=t.VP8LPredictorsAdd=[];Jn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Zn,Qn,ta,ea,na,aa,ra,ia,oa,sa,la,ca,ua,fa,da,ha,pa,ma,ga,va,ba,_a,ya,wa,xa,ka,Aa,Sa,Ca=i(511),Ea=i(2041),Ta=i(225),Na=i(767),Pa=0,La=Ea,Oa=Ta,Ra=Na,Ia=Ca,Ma=0,Fa=1,Da=2,ja=3,Ba=4,Ua=5,za=6,Ha=7,qa=8,Wa=9,Ka=10,Va=[2,3,7],$a=[3,3,11],Ga=[280,256,256,256,40],Ya=[0,1,1,1,0],Xa=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ja=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Za=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Qa=8,tr=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],er=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nr=null,ar=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rr=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ir=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],or=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],sr=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],lr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],cr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ur=[],fr=[],dr=[],hr=1,pr=2,mr=[],gr=[];vn("UpsampleRgbLinePair",kn,3),vn("UpsampleBgrLinePair",An,3),vn("UpsampleRgbaLinePair",Nn,4),vn("UpsampleBgraLinePair",Tn,4),vn("UpsampleArgbLinePair",En,4),vn("UpsampleRgba4444LinePair",Cn,2),vn("UpsampleRgb565LinePair",Sn,2);var vr=t.UpsampleRgbLinePair,br=t.UpsampleBgrLinePair,_r=t.UpsampleRgbaLinePair,yr=t.UpsampleBgraLinePair,wr=t.UpsampleArgbLinePair,xr=t.UpsampleRgba4444LinePair,kr=t.UpsampleRgb565LinePair,Ar=16,Sr=1<<Ar-1,Cr=-227,Er=482,Tr=6,Nr=(256<<Tr)-1,Pr=0,Lr=i(256),Or=i(256),Rr=i(256),Ir=i(256),Mr=i(Er-Cr),Fr=i(Er-Cr);Pn("YuvToRgbRow",kn,3),Pn("YuvToBgrRow",An,3),Pn("YuvToRgbaRow",Nn,4),Pn("YuvToBgraRow",Tn,4),Pn("YuvToArgbRow",En,4),Pn("YuvToRgba4444Row",Cn,2),Pn("YuvToRgb565Row",Sn,2);var Dr=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],jr=[0,2,8],Br=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,n,s,l,c){var u=Fa,f=new en,d=new ot;f.ba=d,d.S=u,d.width=[d.width],d.height=[d.height];var h=d.width,p=d.height,m=new st;if(null==m||null==t)var g=2;else e(null!=m),g=In(t,n,s,m.width,m.height,m.Pd,m.Qd,m.format,null);if(0!=g?h=0:(null!=h&&(h[0]=m.width[0]),null!=p&&(p[0]=m.height[0]),h=1),h){d.width=d.width[0],d.height=d.height[0],null!=l&&(l[0]=d.width),null!=c&&(c[0]=d.height);t:{if(l=new Vt,(c=new nn).data=t,c.w=n,c.ha=s,c.kd=1,n=[0],e(null!=c),(0==(t=In(c.data,c.w,c.ha,null,null,null,n,null,c))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=f),l.data=c.data,l.w=c.w+c.offset,l.ha=c.ha-c.offset,l.put=ht,l.ac=dt,l.bc=pt,l.ma=f,c.xa){if(null==(t=Tt())){f=1;break t}if(function(t,n){var a=[0],r=[0],i=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,v(t.m,n.data,n.w,n.ha),!mt(t.m,a,r,i)){t.a=3;break e}if(t.xb=pr,n.width=a[0],n.height=r[0],!Nt(a[0],r[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,l)){if(l=0==(n=Dn(l.width,l.height,f.Oa,f.ba))){e:{l=t;n:for(;;){if(null==l){l=0;break e}if(e(null!=l.s.yc),e(null!=l.s.Ya),e(0<l.s.Wb),e(null!=(s=l.l)),e(null!=(c=s.ma)),0!=l.xb){if(l.ca=c.ba,l.tb=c.tb,e(null!=l.ca),!Mn(c.Oa,s,ja)){l.a=2;break n}if(!Pt(l,s.width))break n;if(s.da)break n;if((s.da||at(l.ca.S))&&gn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&gn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!R(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!Ct(l,l.V,l.Ba,l.c,l.i,s.o,xt))break n;c.Dc=l.Ma,l=1;break e}e(0!=l.a),l=0}l=!l}l&&(n=t.a)}else n=t.a}else{if(null==(t=new $t)){f=1;break t}if(t.Fa=c.na,t.P=c.P,t.qc=c.Sa,Xt(t,l)){if(0==(n=Dn(l.width,l.height,f.Oa,f.ba))){if(t.Aa=0,s=f.Oa,e(null!=(c=t)),null!=s){if(0<(h=0>(h=s.Md)?0:100<h?255:255*h/100)){for(p=m=0;4>p;++p)12>(g=c.pb[p]).lc&&(g.ia=h*Br[0>g.lc?0:g.lc]>>3),m|=g.ia;m&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=s.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(t,n){if(null==t)return 0;if(null==n)return Gt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Xt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=jr[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l=t.ed;for(s=0;4>s;++s){var c;if(t.Qa.Cb){var u=t.Qa.Lb[s];t.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var f=t.gd[s][c],d=u;if(l.Pc&&(d+=l.vd[0],c&&(d+=l.od[0])),0<(d=0>d?0:63<d?63:d)){var h=d;0<l.wb&&(h=4<l.wb?h>>2:h>>1)>9-l.wb&&(h=9-l.wb),1>h&&(h=1),f.dd=h,f.tc=2*d+h,f.ld=40<=d?2:15<=d?1:0}else f.tc=0;f.La=c}}}s=0}else Gt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=1);e:{s=t.Ic,l=4*(h=t.za);var p=32*h,m=h+1,g=0<t.L?h*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*h;if((f=l+832+(c=3*(16*s+jr[t.L])/2*p)+(u=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=f)s=0;else{if(f>t.Vb){if(t.Vb=0,t.Ec=i(f),t.Fc=0,null==t.Ec){s=Gt(t,1,"no memory during frame initialization.");break e}t.Vb=f}f=t.Ec,d=t.Fc,t.Ac=f,t.Bc=d,d+=l,t.Gd=o(p,qt),t.Hd=0,t.rb=o(m+1,Bt),t.sb=1,t.wa=g?o(g,jt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=h),e(!0),t.oc=f,t.pc=d,d+=832,t.ya=o(v,zt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=h),t.R=16*h,t.B=8*h,h=(p=jr[t.L])*t.R,p=p/2*t.B,t.sa=f,t.ta=d+h,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,d+=c,t.mb=u?f:null,t.nb=u?d:null,e(d+u<=t.Fc+t.Vb),Zt(t),r(t.Ac,t.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Pa){for(s=-255;255>=s;++s)Ca[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Ea[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Ta[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Na[255+s]=0>s?0:255<s?255:s;Pa=1}ra=le,ia=re,sa=ie,la=oe,ca=se,oa=ae,ua=$e,fa=Ge,da=Je,ha=Ze,pa=Ye,ma=Xe,ga=Qe,va=tn,ba=ze,_a=He,ya=qe,wa=We,fr[0]=ke,fr[1]=ue,fr[2]=we,fr[3]=xe,fr[4]=Ae,fr[5]=Ce,fr[6]=Se,fr[7]=Ee,fr[8]=Ne,fr[9]=Te,ur[0]=ge,ur[1]=de,ur[2]=he,ur[3]=pe,ur[4]=ve,ur[5]=be,ur[6]=_e,dr[0]=Re,dr[1]=fe,dr[2]=Pe,dr[3]=Le,dr[4]=Me,dr[5]=Ie,dr[6]=Fe,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],l=t.m,c=t;for(o=0;o<c.za;++o){var u=l,f=c,d=f.Ac,h=f.Bc+4*o,p=f.zc,m=f.ya[f.aa+o];if(f.Qa.Bb?m.$b=T(u,f.Pa.jb[0])?2+T(u,f.Pa.jb[2]):T(u,f.Pa.jb[1]):m.$b=0,f.kc&&(m.Ad=T(u,f.Bd)),m.Za=!T(u,145)+0,m.Za){var g=m.Ob,v=0;for(f=0;4>f;++f){var b,_=p[0+f];for(b=0;4>b;++b){_=sr[d[h+b]][_];for(var y=ir[T(u,_[0])];0<y;)y=ir[2*y+T(u,_[y])];_=-y,d[h+b]=_}a(g,v,d,h,4),v+=4,p[0+f]=_}}else _=T(u,156)?T(u,128)?1:3:T(u,163)?2:0,m.Ob[0]=_,r(d,h,_,4),r(p,0,_,4);m.Dd=T(u,142)?T(u,114)?T(u,183)?1:3:2:0}if(c.m.Ka)return Gt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=s,u=(l=t).rb[l.sb-1],d=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],h=l.kc?o.Ad:0)u.la=d.la=0,o.Za||(u.Na=d.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var w,x;if(u=d,d=c,h=l.Pa.Xc,p=l.ya[l.aa+l.ja],m=l.pb[p.$b],f=p.ad,g=0,v=l.rb[l.sb-1],_=b=0,r(f,g,0,384),p.Za)var k=0,A=h[3];else{y=i(16);var S=u.Na+v.Na;if(S=nr(d,h[1],S,m.Eb,0,y,0),u.Na=v.Na=(0<S)+0,1<S)ra(y,0,f,g);else{var C=y[0]+3>>3;for(y=0;256>y;y+=16)f[g+y]=C}k=1,A=h[0]}var E=15&u.la,N=15&v.la;for(y=0;4>y;++y){var P=1&N;for(C=x=0;4>C;++C)E=E>>1|(P=(S=nr(d,A,S=P+(1&E),m.Sc,k,f,g))>k)<<7,x=x<<2|(3<S?3:1<S?2:0!=f[g+0]),g+=16;E>>=4,N=N>>1|P<<7,b=(b<<8|x)>>>0}for(A=E,k=N>>4,w=0;4>w;w+=2){for(x=0,E=u.la>>4+w,N=v.la>>4+w,y=0;2>y;++y){for(P=1&N,C=0;2>C;++C)S=P+(1&E),E=E>>1|(P=0<(S=nr(d,h[2],S,m.Qc,0,f,g)))<<3,x=x<<2|(3<S?3:1<S?2:0!=f[g+0]),g+=16;E>>=2,N=N>>1|P<<5}_|=x<<4*w,A|=E<<4<<w,k|=(240&N)<<w}u.la=A,v.la=k,p.Hc=b,p.Gc=_,p.ia=43690&_?0:m.ia,h=!(b|_)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!h),c.Ka)return Gt(t,7,"Premature end-of-file encountered.")}if(Zt(t),l=n,c=1,o=(s=t).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(o.M=s.M,o.uc=u,Rn(s,o),c=1,o=(x=s.D).Nb,u=(_=jr[s.L])*s.R,d=_/2*s.B,y=16*o*s.R,C=8*o*s.B,h=s.sa,p=s.ta-u+y,m=s.qa,f=s.ra-d+C,g=s.Ha,v=s.Ia-d+C,N=0==(E=x.M),b=E>=s.Va-1,2==s.Aa&&Rn(s,x),x.uc)for(P=(S=s).D.M,e(S.D.uc),x=S.yb;x<S.Hb;++x){k=x,A=P;var L=(O=(z=S).D).Nb;w=z.R;var O=O.wa[O.Y+k],R=z.sa,I=z.ta+16*L*w+16*k,M=O.dd,F=O.tc;if(0!=F)if(e(3<=F),1==z.L)0<k&&_a(R,I,w,F+4),O.La&&wa(R,I,w,F),0<A&&ba(R,I,w,F+4),O.La&&ya(R,I,w,F);else{var D=z.B,j=z.qa,B=z.ra+8*L*D+8*k,U=z.Ha,z=z.Ia+8*L*D+8*k;L=O.ld,0<k&&(fa(R,I,w,F+4,M,L),ha(j,B,U,z,D,F+4,M,L)),O.La&&(ma(R,I,w,F,M,L),va(j,B,U,z,D,F,M,L)),0<A&&(ua(R,I,w,F+4,M,L),da(j,B,U,z,D,F+4,M,L)),O.La&&(pa(R,I,w,F,M,L),ga(j,B,U,z,D,F,M,L))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*E,E=16*(E+1),N?(l.y=s.sa,l.O=s.ta+y,l.f=s.qa,l.N=s.ra+C,l.ea=s.Ha,l.W=s.Ia+C):(x-=_,l.y=h,l.O=p,l.f=m,l.N=f,l.ea=g,l.W=v),b||(E-=_),E>l.o&&(E=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&x<E&&(l.J=fn(s,l,x,E-x),l.F=s.mb,null==l.F&&0==l.F.length)){c=Gt(s,3,"Could not decode alpha data.");break e}x<l.j&&(_=l.j-x,x=l.j,e(!(1&_)),l.O+=s.R*_,l.N+=s.B*(_>>1),l.W+=s.B*(_>>1),null!=l.F&&(l.J+=l.width*_)),x<E&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=E-x,c=l.put(l))}o+1!=s.Ic||b||(a(s.sa,s.ta-u,h,p+16*s.R,u),a(s.qa,s.ra-d,m,f+8*s.B,d),a(s.Ha,s.Ia-d,g,v+8*s.B,d))}if(!c)return Gt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0})(t,l)||(n=t.a)}}else n=t.a}0==n&&null!=f.Oa&&f.Oa.fd&&(n=Fn(f.ba))}f=n}u=0!=f?null:11>u?d.f.RGBA.eb:d.f.kb.y}else u=null;return u};var Ur=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(t,e){for(var n="",a=0;a<4;a++)n+=String.fromCharCode(t[e++]);return n}function u(t,e){return t[e+0]|t[e+1]<<8}function f(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function d(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var h=[0],p=[0],m=[],g=new l,v=t,b=function(t,e){var n={},a=0,r=!1,i=0,o=0;if(n.frames=[],!function(t,e){for(var n=0;n<4;n++)if(t[e+n]!="RIFF".charCodeAt(n))return!0;return!1}(t,e)){for(d(t,e+=4),e+=8;e<t.length;){var s=c(t,e),l=d(t,e+=4);e+=4;var h=l+(1&l);switch(s){case"VP8 ":case"VP8L":void 0===n.frames[a]&&(n.frames[a]={}),(g=n.frames[a]).src_off=r?o:e-8,g.src_size=i+l+8,a++,r&&(r=!1,i=0,o=0);break;case"VP8X":(g=n.header={}).feature_flags=t[e];var p=e+4;g.canvas_width=1+f(t,p),p+=3,g.canvas_height=1+f(t,p),p+=3;break;case"ALPH":r=!0,i=h+8,o=e-8;break;case"ANIM":(g=n.header).bgcolor=d(t,e),p=e+4,g.loop_count=u(t,p),p+=2;break;case"ANMF":var m,g;(g=n.frames[a]={}).offset_x=2*f(t,e),e+=3,g.offset_y=2*f(t,e),e+=3,g.width=1+f(t,e),e+=3,g.height=1+f(t,e),e+=3,g.duration=f(t,e),e+=3,m=t[e++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=s&&(e+=h)}return n}}(v,0);b.response=v,b.rgbaoutput=!0,b.dataurl=!1;var _=b.header?b.header:null,y=b.frames?b.frames:null;if(_){_.loop_counter=_.loop_count,h=[_.canvas_height],p=[_.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],k=g.WebPDecodeRGBA(v,x.src_off,x.src_size,p,h);x.rgba=k,x.imgwidth=p[0],x.imgheight=h[0];for(var A=0;A<p[0]*h[0]*4;A++)m[A]=k[A];return this.width=p,this.height=h,this.data=m,this}function wo(){var t,e=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function xo(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(t){var e,n,r,i,o,s,l,c,u,f=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new f}]);var d=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var a=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return a},set:function(t){a=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),u.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof f&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=h(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=h(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var d=null,p=null,m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(t){d=null,p=null,m=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(t))){var n=e[1];e[2];var a=e[3],r=e[4];e[5];var i=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(r)[2];r="px"===o?Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(r);var s=function(t){var e,n,a=[],r=t.trim();if(""===r)return ao;if(r in $i)return[$i[r]];for(;""!==r;){switch(n=null,e=(r=Yi(r)).charAt(0)){case'"':case"'":n=Xi(r.substring(1),e);break;default:n=Ji(r)}if(null===n)return ao;if(a.push(n[0]),""!==(r=Yi(n[1]))&&","!==r.charAt(0))return ao;r=r.replace(/^,/,"")}return a}(i);if(this.fontFaces){var l=function(t,e){var n=t.getFontList(),a=JSON.stringify(n);if(null===d||p!==a){var r=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var a=null;switch(t){case"bold":a={family:n,weight:"bold"};break;case"italic":a={family:n,style:"italic"};break;case"bolditalic":a={family:n,weight:"bold",style:"italic"};break;case"":case"normal":a={family:n}}null!==a&&(a.ref={name:n,style:t},e.push(a))}))})),e}(n);d=function(t){for(var e={},n=0;n<t.length;++n){var a=Wi(t[n]),r=a.family,i=a.stretch,o=a.style,s=a.weight;e[r]=e[r]||{},e[r][i]=e[r][i]||{},e[r][i][o]=e[r][i][o]||{},e[r][i][o][s]=a}return e}(r.concat(e)),p=a}return d}(this.pdf,this.fontFaces),c=s.map((function(t){return{family:t,stretch:"normal",weight:a,style:n}})),u=function(t,e,n){for(var a=(n=n||{}).defaultFontFamily||"times",r=Object.assign({},Vi,n.genericFontFamilies||{}),i=null,o=null,s=0;s<e.length;++s)if(r[(i=Wi(e[s])).family]&&(i.family=r[i.family]),t.hasOwnProperty(i.family)){o=t[i.family];break}if(!(o=o||t[a]))throw new Error("Could not find a font-family for the rule '"+Gi(i)+"' and default family '"+a+"'.");if(o=function(t,e){if(e[t])return e[t];var n=zi[t],a=n<=zi.normal?-1:1,r=Ki(e,Ui,n,a);if(!r)throw new Error("Could not find a matching font-stretch value for "+t);return r}(i.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=Bi[t],a=0;a<n.length;++a)if(e[n[a]])return e[n[a]];throw new Error("Could not find a matching font-style for "+t)}(i.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=qi[t],a=Ki(e,Hi,n,t<400?-1:1);if(!a)throw new Error("Could not find a matching font-weight for value "+t);return a}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Gi(i)+"'.");return o}(l,c);this.pdf.setFont(u.ref.name,u.ref.style)}else{var f="";("bold"===a||parseInt(a,10)>=700||"bold"===n)&&(f="bold"),"italic"===n&&(f+="italic"),0===f.length&&(f="normal");for(var h="",m={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},g=0;g<s.length;g++){if(void 0!==this.pdf.internal.getFont(s[g],f,{noFallback:!0,disableWarning:!0})){h=s[g];break}if("bolditalic"===f&&void 0!==this.pdf.internal.getFont(s[g],"bold",{noFallback:!0,disableWarning:!0}))h=s[g],f="bold";else if(void 0!==this.pdf.internal.getFont(s[g],"normal",{noFallback:!0,disableWarning:!0})){h=s[g],f="normal";break}}if(""===h)for(var v=0;v<s.length;v++)if(m[s[v]]){h=m[s[v]];break}h=""===h?"Times":h,this.pdf.setFont(h,f)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,j.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,j.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};d.prototype.setLineDash=function(t){this.lineDash=t},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){w.call(this,"fill",!1)},d.prototype.stroke=function(){w.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},d.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,a.A)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},d.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},d.prototype.quadraticCurveTo=function(t,e,n,a){if(isNaN(n)||isNaN(a)||isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var r=this.ctx.transform.applyToPoint(new s(n,a)),i=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:i.x,y1:i.y,x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},d.prototype.bezierCurveTo=function(t,e,n,a,r,i){if(isNaN(r)||isNaN(i)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(r,i)),l=this.ctx.transform.applyToPoint(new s(t,e)),c=this.ctx.transform.applyToPoint(new s(n,a));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},d.prototype.arc=function(t,e,n,a,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r))throw vr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),c=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(r-a)>=2*Math.PI&&(a=0,r=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:a,endAngle:r,counterclockwise:i})},d.prototype.arcTo=function(t,e,n,a,r){throw new Error("arcTo not implemented.")},d.prototype.rect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+a),this.lineTo(t,e+a),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},d.prototype.fillRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var r={};"butt"!==this.lineCap&&(r.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(r.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,a),this.fill(),r.hasOwnProperty("lineCap")&&(this.lineCap=r.lineCap),r.hasOwnProperty("lineJoin")&&(this.lineJoin=r.lineJoin)}},d.prototype.strokeRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,n,a),this.stroke())},d.prototype.clearRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,a))},d.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var a=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=a}},d.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(t){var e,n,a,r;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,a=0,r=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==i)e=parseInt(i[1]),n=parseInt(i[2]),a=parseInt(i[3]),r=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(i[1]),n=parseInt(i[2]),a=parseInt(i[3]),r=parseFloat(i[4]);else{if(r=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new xr(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,a=t.substring(3,4),a+=a):(e=t.substring(1,3),n=t.substring(3,5),a=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),a=parseInt(a,16)}}return{r:e,g:n,b:a,a:r,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(t,e,n,a){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw vr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(a=isNaN(a)?void 0:a,!p.call(this)){var r=M(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;N.call(this,{text:t,x:e,y:n,scale:i,angle:r,align:this.textAlign,maxWidth:a})}},d.prototype.strokeText=function(t,e,n,a){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw vr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){a=isNaN(a)?void 0:a;var r=M(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;N.call(this,{text:t,x:e,y:n,scale:i,renderingMode:"stroke",angle:r,align:this.textAlign,maxWidth:a})}},d.prototype.measureText=function(t){if("string"!=typeof t)throw vr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,a=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*a/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:r*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(t){if(isNaN(t))throw vr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},d.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(t,e,n,a,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i))throw vr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(t,e,n,a,r,i);this.ctx.transform=this.ctx.transform.multiply(o)},d.prototype.setTransform=function(t,e,n,a,r,i){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,i=isNaN(i)?0:i,this.ctx.transform=new c(t,e,n,a,r,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(t,e,n,a,r,i,o,s,u){var f=this.pdf.getImageProperties(t),d=1,h=1,p=1,m=1;void 0!==a&&void 0!==s&&(p=s/a,m=u/r,d=f.width/a*s/a,h=f.height/r*u/r),void 0===i&&(i=e,o=n,e=0,n=0),void 0!==a&&void 0===s&&(s=a,u=r),void 0===a&&void 0===s&&(s=f.width,u=f.height);var b=this.ctx.transform.decompose(),w=M(b.rotate.shx),k=new c,A=(k=(k=(k=k.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new l(i-e*p,o-n*m,a*d,r*h));if(this.autoPaging){for(var S,C=v.call(this,A),E=[],T=0;T<C.length;T+=1)-1===E.indexOf(C[T])&&E.push(C[T]);y(E);for(var N=E[0],P=E[E.length-1],L=N;L<P+1;L++){this.pdf.setPage(L);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],R=1===L?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],D=1===L?0:I+(L-2)*F;if(0!==this.ctx.clip_path.length){var j=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(S,this.posX+this.margin[3],-D+R+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=j}var B=JSON.parse(JSON.stringify(A));B=_([B],this.posX+this.margin[3],-D+R+this.ctx.prevPageLastElemOffset)[0];var U=(L>N||L<P)&&g.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,F,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",B.x,B.y,B.w,B.h,null,null,w),U&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",A.x,A.y,A.w,A.h,null,null,w)};var v=function(t,e,n){var a=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var r=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":a.push(Math.floor((t.y+r)/n)+1);break;case"arc":a.push(Math.floor((t.y+r-t.radius)/n)+1),a.push(Math.floor((t.y+r+t.radius)/n)+1);break;case"qct":var i=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);a.push(Math.floor((i.y+r)/n)+1),a.push(Math.floor((i.y+i.h+r)/n)+1);break;case"bct":var o=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);a.push(Math.floor((o.y+r)/n)+1),a.push(Math.floor((o.y+o.h+r)/n)+1);break;case"rect":a.push(Math.floor((t.y+r)/n)+1),a.push(Math.floor((t.y+t.h+r)/n)+1)}for(var s=0;s<a.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<a[s];)b.call(this);return a},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,a=this.lineCap,r=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=a,this.lineWidth=r,this.lineJoin=i},_=function(t,e,n){for(var a=0;a<t.length;a++)switch(t[a].type){case"bct":t[a].x2+=e,t[a].y2+=n;case"qct":t[a].x1+=e,t[a].y1+=n;default:t[a].x+=e,t[a].y+=n}return t},y=function(t){return t.sort((function(t,e){return t-e}))},w=function(t,e){var n=this.fillStyle,a=this.strokeStyle,r=this.lineCap,i=this.lineWidth,o=Math.abs(i*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var l,c,u=JSON.parse(JSON.stringify(this.path)),f=JSON.parse(JSON.stringify(this.path)),d=[],h=0;h<f.length;h++)if(void 0!==f[h].x)for(var p=v.call(this,f[h]),m=0;m<p.length;m+=1)-1===d.indexOf(p[m])&&d.push(p[m]);for(var w=0;w<d.length;w++)for(;this.pdf.internal.getNumberOfPages()<d[w];)b.call(this);y(d);for(var k=d[0],A=d[d.length-1],S=k;S<A+1;S++){this.pdf.setPage(S),this.fillStyle=n,this.strokeStyle=a,this.lineCap=r,this.lineWidth=o,this.lineJoin=s;var C=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===S?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],N=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===S?0:T+(S-2)*N;if(0!==this.ctx.clip_path.length){var L=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(l,this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=L}if(c=JSON.parse(JSON.stringify(u)),this.path=_(c,this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset),!1===e||0===S){var O=(S>k||S<A)&&g.call(this);O&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],C,N,null).clip().discardPath()),x.call(this,t,e),O&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=u}else this.lineWidth=o,x.call(this,t,e),this.lineWidth=i},x=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,a,r=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":r.push({begin:!0});break;case"close":r.push({close:!0});break;case"mt":r.push({start:s,deltas:[],abs:[]});break;case"lt":var l=r.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(n=[s.x-i[o-1].x,s.y-i[o-1].y],l>0))for(;l>=0;l--)if(!0!==r[l-1].close&&!0!==r[l-1].begin){r[l-1].deltas.push(n),r[l-1].abs.push(s);break}break;case"bct":n=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],r[r.length-1].deltas.push(n);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),f=s.x+2/3*(s.x1-s.x),d=s.y+2/3*(s.y1-s.y),h=s.x,g=s.y;n=[c-i[o-1].x,u-i[o-1].y,f-i[o-1].x,d-i[o-1].y,h-i[o-1].x,g-i[o-1].y],r[r.length-1].deltas.push(n);break;case"arc":r.push({deltas:[],abs:[],arc:!0}),Array.isArray(r[r.length-1].abs)&&r[r.length-1].abs.push(s)}}a=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,b=0;b<r.length;b++)if(r[b].arc)for(var _=r[b].abs,y=0;y<_.length;y++){var w=_[y];"arc"===w.type?S.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!v):P.call(this,w.x,w.y),v=!0}else if(!0===r[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==r[b].begin){var x=r[b].start.x,k=r[b].start.y;L.call(this,r[b].deltas,x,k),v=!0}a&&C.call(this,a),e&&E.call(this)}},k=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},A=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,n,a,r,i,o,s,l){for(var c=R.call(this,n,a,r,i),u=0;u<c.length;u++){var f=c[u];0===u&&(l?T.call(this,f.x1+t,f.y1+e):P.call(this,f.x1+t,f.y1+e)),O.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?E.call(this):C.call(this,o)},C=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},N=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n,a,r,i=this.pdf.getTextDimensions(t.text),o=k.call(this,t.y),u=A.call(this,o)-i.h,f=this.ctx.transform.applyToPoint(new s(t.x,o));if(this.autoPaging){var d=this.ctx.transform.decompose(),h=new c;h=(h=(h=h.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var p=this.ctx.transform.applyToRectangle(new l(t.x,o,i.w,i.h)),m=h.applyToRectangle(new l(t.x,u,i.w,i.h)),b=v.call(this,m),w=[],S=0;S<b.length;S+=1)-1===w.indexOf(b[S])&&w.push(b[S]);y(w);for(var C=w[0],E=w[w.length-1],T=C;T<E+1;T++){this.pdf.setPage(T);var N=1===T?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],O=L-this.margin[0],R=this.pdf.internal.pageSize.width-this.margin[1],I=R-this.margin[3],M=1===T?0:P+(T-2)*O;if(0!==this.ctx.clip_path.length){var F=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(n,this.posX+this.margin[3],-1*M+N),x.call(this,"fill",!0),this.path=F}var D=_([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),r=this.lineWidth,this.lineWidth=r*t.scale);var j="text"!==this.autoPaging;if(j||D.y+D.h<=L){if(j||D.y>=N&&D.x<=R){var B=j?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||R-D.x)[0],U=_([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset)[0],z=j&&(T>C||T<E)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,O,null).clip().discardPath()),this.pdf.text(B,U.x,U.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else D.y<L&&(this.ctx.prevPageLastElemOffset+=L-D.y);t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=r)}}else t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),r=this.lineWidth,this.lineWidth=r*t.scale),this.pdf.text(t.text,f.x+this.posX,f.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=r)},P=function(t,e,a,i){a=a||0,i=i||0,this.pdf.internal.out(n(t+a)+" "+r(e+i)+" l")},L=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},O=function(t,n,a,r,s,l,c,u){this.pdf.internal.out([e(i(a+t)),e(o(r+n)),e(i(s+t)),e(o(l+n)),e(i(c+t)),e(o(u+n)),"c"].join(" "))},R=function(t,e,n,a){for(var r=2*Math.PI,i=Math.PI/2;e>n;)e-=r;var o=Math.abs(n-e);o<r&&a&&(o=r-o);for(var s=[],l=a?-1:1,c=e;o>1e-5;){var u=c+l*Math.min(o,i);s.push(I.call(this,t,c,u)),o-=Math.abs(u-c),c=u}return s},I=function(t,e,n){var a=(n-e)/2,r=t*Math.cos(a),i=t*Math.sin(a),o=r,s=-i,l=o*o+s*s,c=l+o*r+s*i,u=4/3*(Math.sqrt(2*l*c)-c)/(o*i-s*r),f=o-u*s,d=s+u*o,h=f,p=-d,m=a+e,g=Math.cos(m),v=Math.sin(m);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:f*g-d*v,y2:f*v+d*g,x3:h*g-p*v,y3:h*v+p*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},M=function(t){return 180*t/Math.PI},F=function(t,e,n,a,r,i){var o=t+.5*(n-t),s=e+.5*(a-e),c=r+.5*(n-r),u=i+.5*(a-i),f=Math.min(t,r,o,c),d=Math.max(t,r,o,c),h=Math.min(e,i,s,u),p=Math.max(e,i,s,u);return new l(f,h,d-f,p-h)},D=function(t,e,n,a,r,i,o,s){var c,u,f,d,h,p,m,g,v,b,_,y,w,x,k=n-t,A=a-e,S=r-n,C=i-a,E=o-r,T=s-i;for(u=0;u<41;u++)v=(m=(f=t+(c=u/40)*k)+c*((h=n+c*S)-f))+c*(h+c*(r+c*E-h)-m),b=(g=(d=e+c*A)+c*((p=a+c*C)-d))+c*(p+c*(i+c*T-p)-g),0==u?(_=v,y=b,w=v,x=b):(_=Math.min(_,v),y=Math.min(y,b),w=Math.max(w,v),x=Math.max(x,b));return new l(Math.round(_),Math.round(y),Math.round(w-_),Math.round(x-y))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Gr.API),function(t){var e=function(t){var e,n,a,r,i,o,s,l,c,u;for(/[^\x00-\xFF]/.test(t),n=[],a=0,r=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r>a;a+=4)0!==(i=(t.charCodeAt(a)<<24)+(t.charCodeAt(a+1)<<16)+(t.charCodeAt(a+2)<<8)+t.charCodeAt(a+3))?(o=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(l=i%85))/85)-(s=i%85))/85)%85,n.push(o+33,s+33,l+33,c+33,u+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,a,r,i,o=String,s="length",l=255,c="charCodeAt",u="slice",f="replace";for(t[u](-2),t=t[u](0,-2)[f](/\s/g,"")[f]("z","!!!!!"),a=[],r=0,i=(t+=e="uuuuu"[u](t[s]%5||5))[s];i>r;r+=5)n=52200625*(t[c](r)-33)+614125*(t[c](r+1)-33)+7225*(t[c](r+2)-33)+85*(t[c](r+3)-33)+(t[c](r+4)-33),a.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(a,e[s]),o.fromCharCode.apply(o,a)},a=function(t){return t.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">"},r=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",a=0;a<t.length;a+=2)n+=String.fromCharCode("0x"+(t[a]+t[a+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=z(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,o){var s=0,l=t||"",c=[];for("string"==typeof(o=o||[])&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=a(l),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(Gr.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var a=void 0;try{a=function(t,e,n){var a=new XMLHttpRequest,r=0,i=function(t){var e=t.length,n=[],a=String.fromCharCode;for(r=0;r<e;r+=1)n.push(a(255&t.charCodeAt(r)));return n.join("")};if(a.open("GET",t,!e),a.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(a.onload=function(){200===a.status?n(i(this.responseText)):n(void 0)}),a.send(null),e&&200===a.status)return i(a.responseText)}(t,e,n)}catch(t){}return a}(t,e,n)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(Gr.API),function(t){function e(){return(mr.html2canvas?Promise.resolve(mr.html2canvas):n.e(354).then(n.t.bind(n,354,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(mr.DOMPurify?Promise.resolve(mr.DOMPurify):n.e(418).then(n.bind(n,9418))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var i=function(t){var e=(0,a.A)(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},o=function(t,e){var n=document.createElement(t);for(var a in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[a]=e.style[a];return n},s=function t(e,n){for(var a=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&"SCRIPT"===r.nodeName||a.appendChild(t(r,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(a.width=e.width,a.height=e.height,a.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(a.value=e.value),a.addEventListener("load",(function(){a.scrollTop=e.scrollTop,a.scrollLeft=e.scrollLeft}),!0)),a},l=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),a=t.convert(Promise.resolve(),n);return(a=a.setProgress(1,t,1,[t])).set(e)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(t,e){return t.__proto__=e||l.prototype,t},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(i(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t),e){case"string":return this.then(r).then((function(e){return this.set({src:o("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,a="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,r=Object.assign({async:!0,allowTaint:!0,scale:a,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete r.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var o=n[i],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,e.context2d.save(!0),t(this.prop.container,r)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},l.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},l.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},l.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(t){if("object"!==i(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in l.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},l.prototype.get=function(t,e){return this.then((function(){var n=t in l.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},l.prototype.setMargin=function(t){return this.then((function(){switch(i(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},l.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||Gr.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},l.prototype.setProgress=function(t,e,n,a){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=a&&(this.progress.stack=a),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(t,e,n,a){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,a?this.progress.stack.concat(a):null)},l.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},l.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var a=this;t&&(t=t.bind(a)),e&&(e=e.bind(a));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?a:l.convert(Object.assign({},a),Promise.prototype),i=n.call(r,t,e);return l.convert(i,a.__proto__)},l.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},l.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},l.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return l.convert(e,this)},l.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},l.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Gr.getPageSize=function(t,e,n){if("object"===(0,a.A)(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var l,c=0,u=0;if(s.hasOwnProperty(o))c=s[o][1]/i,u=s[o][0]/i;else try{c=n[1],u=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",u>c&&(l=u,u=c,c=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",c>u&&(l=u,u=c,c=l)}return{width:u,height:c,unit:e,k:i,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Wi):null;var n=new l(e);return e.worker?n:n.from(t).doCallback()}}(Gr.API),Gr.API.addJS=function(t){var e,n,a=function(t){for(var e="",n=0;n<t.length;n++){var a=t[n];if("("===a||")"===a){for(var r=0,i=n-1;i>=0&&"\\"===t[i];i--)r++;e+=r%2==0?"\\"+a:a}else e+=a}return e}(t);return this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+a+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==n&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=t.outline.render().split(/\r\n/),r=0;r<a.length;r++){var i=a[r],o=n.exec(i);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(r=0;r<l;r++){var u=t.internal.newObject();c.push(u);var f=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var d=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<c.length;r++)t.internal.write("(page_"+(r+1)+")"+c[r]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+d+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var a={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<e.children.length;a++){var r=e.children[a];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(e)),a>0&&this.line("/Prev "+this.makeRef(e.children[a-1])),a<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[a+1])),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var i=this.count=this.count_r({count:0},r);if(i>0&&this.line("/Count "+i),r.options&&r.options.pageNumber){var o=t.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(Gr.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,a,r,i,o){var s,l=this.decode.DCT_DECODE,c=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=i||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,s=function(t){for(var n,a=256*t.charCodeAt(4)+t.charCodeAt(5),r=t.length,i={width:0,height:0,numcomponents:1},o=4;o<r;o+=2){if(o+=a,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),i={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}a=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return i}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),s.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:a}}return c}}(Gr.API),Gr.API.processPNG=function(t,e,n,a){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var r,i=function(t,e){return new hr(t,e).decode()}(t,{checkCrc:!0}),o=i.width,s=i.height,l=i.channels,c=i.palette,u=i.depth;r=c&&1===l?function(t){for(var e=t.width,n=t.height,a=t.data,r=t.palette,i=t.depth,o=!1,s=[],l=[],c=void 0,u=!1,f=0,d=0;d<r.length;d++){var h=W(r[d],4),p=h[0],m=h[1],g=h[2],v=h[3];s.push(p,m,g),null!=v&&(0===v?(f++,l.length<1&&l.push(d)):v<255&&(u=!0))}if(u||f>1){o=!0,l=void 0;var b=e*n;c=new Uint8Array(b);for(var _=new DataView(a.buffer),y=0;y<b;y++){var w=W(r[ho(_,y,i)],4)[3];c[y]=w}}else 0===f&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:o?8:void 0,colorBytes:a,alphaBytes:c,needSMask:o,palette:s,mask:l}}(i):2===l||4===l?function(t){for(var e=t.data,n=t.width,a=t.height,r=t.channels,i=t.depth,o=2===r?"DeviceGray":"DeviceRGB",s=r-1,l=n*a,c=s,u=l*c,f=1*l,d=Math.ceil(u*i/8),h=Math.ceil(f*i/8),p=new Uint8Array(d),m=new Uint8Array(h),g=new DataView(e.buffer),v=new DataView(p.buffer),b=new DataView(m.buffer),_=!1,y=0;y<l;y++){for(var w=y*r,x=0;x<c;x++)po(v,ho(g,w+x,i),y*c+x,i);var k=ho(g,w+c,i);k<(1<<i)-1&&(_=!0),po(b,k,1*y,i)}return{colorSpace:o,colorsPerPixel:s,sMaskBitsPerComponent:_?i:void 0,colorBytes:p,alphaBytes:m,needSMask:_}}(i):function(t){var e=t.data,n=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,n=new Uint8Array(2*e),a=new DataView(n.buffer,n.byteOffset,n.byteLength),r=0;r<e;r++)a.setUint16(2*r,t[r],!1);return n}(e):e,needSMask:!1}}(i);var f,d,h,p=r,m=p.colorSpace,g=p.colorsPerPixel,v=p.sMaskBitsPerComponent,b=p.colorBytes,_=p.alphaBytes,y=p.needSMask,w=p.palette,x=p.mask,k=null;return a!==Gr.API.image_compression.NONE?(k=function(t){var e;switch(t){case Gr.API.image_compression.FAST:e=11;break;case Gr.API.image_compression.MEDIUM:e=13;break;case Gr.API.image_compression.SLOW:e=14;break;default:e=12}return e}(a),f=this.decode.FLATE_DECODE,d="/Predictor ".concat(k," /Colors ").concat(g," /BitsPerComponent ").concat(u," /Columns ").concat(o),t=ro(b,Math.ceil(o*g*u/8),g,u,a),y&&(h=ro(_,Math.ceil(o*v/8),1,v,a))):(f=void 0,d=void 0,t=b,y&&(h=_)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:t,index:e,filter:f,decodeParameters:d,transparency:x,palette:w,sMask:h,predictor:k,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:v,colorSpace:m}}},function(t){t.processGIF89A=function(e,n,a,r){var i=new go(e),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new bo(100).encode(c,100);return t.processJPEG.call(this,u,n,a,r)},t.processGIF87A=t.processGIF89A}(Gr.API),_o.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:a,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_o.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(t){vr.log("bit decode error:"+t)}},_o.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,r=0;r<e;r++)for(var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==n&&(this.pos+=4-n)}},_o.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<t;r++){var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+2*r*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*r+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},_o.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var r=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*a;if(r<this.palette.length){var o=this.palette[r];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==t&&(this.pos+=4-t)}},_o.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,l=(i>>10&e)/e*255|0,c=i>>15?255:0,u=a*this.width*4+4*r;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},_o.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var r=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/e*255|0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},_o.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=a,this.data[o+3]=255}this.pos+=this.width%4}},_o.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=i,this.data[s+1]=r,this.data[s+2]=a,this.data[s+3]=o}},_o.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,a,r){var i=new _o(e,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new bo(100).encode(l,100);return t.processJPEG.call(this,c,n,a,r)}}(Gr.API),yo.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,a,r){var i=new yo(e),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new bo(100).encode(l,100);return t.processJPEG.call(this,c,n,a,r)}}(Gr.API),Gr.API.processRGBA=function(t,e,n){for(var a=t.data,r=a.length,i=new Uint8Array(r/4*3),o=new Uint8Array(r/4),s=0,l=0,c=0;c<r;c+=4){var u=a[c],f=a[c+1],d=a[c+2],h=a[c+3];i[s++]=u,i[s++]=f,i[s++]=d,o[l++]=h}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Gr.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Zi=Gr.API,Qi=Zi.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,f=u.fof?u.fof:1,d=!1!==e.doKerning,h=0,p=t.length,m=0,g=l[0]||c,v=[];for(n=0;n<p;n++)r=t.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(h=d&&"object"===(0,a.A)(u[r])&&!isNaN(parseInt(u[r][m],10))?u[r][m]/f:0,v.push((l[r]||g)/c+h)),m=r;return v},to=Zi.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return Zi.processArabic&&(t=Zi.processArabic(t)),"function"==typeof a.metadata.widthOfString?a.metadata.widthOfString(t,n,r)/n:Qi.apply(this,arguments).reduce((function(t,e){return t+e}),0)},eo=function(t,e,n,a){for(var r=[],i=0,o=t.length,s=0;i!==o&&s+e[i]<n;)s+=e[i],i++;r.push(t.slice(0,i));var l=i;for(s=0;i!==o;)s+e[i]>a&&(r.push(t.slice(l,i)),s=0,l=i),s+=e[i],i++;return l!==i&&r.push(t.slice(l,i)),r},no=function(t,e,n){n||(n={});var a,r,i,o,s,l,c,u=[],f=[u],d=n.textIndent||0,h=0,p=0,m=t.split(" "),g=Qi.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?m[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),b=[];m.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),m=b,l=to.apply(this,[v,n])}for(i=0,o=m.length;i<o;i++){var _=0;if(a=m[i],l&&"\n"==a[0]&&(a=a.substr(1),_=1),d+h+(p=(r=Qi.apply(this,[a,n])).reduce((function(t,e){return t+e}),0))>e||_){if(p>e){for(s=eo.apply(this,[a,r,e-(d+h),e]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=r.slice(a.length-(u[0]?u[0].length:0)).reduce((function(t,e){return t+e}),0)}else u=[a];f.push(u),d=p+l,h=g}else u.push(a),d+=h+p,h=g}return c=l?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},f.map(c)},Zi.splitTextToSize=function(t,e,n){var a,r=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);a=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/r;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=a.length;s<l;s++)c=c.concat(no.apply(this,[a[s],o,i]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},o=0;o<16;o++)r[n[o]]=e[o],i[e[o]]=n[o];var s=function(t){return"0x"+parseInt(t,10).toString(16)},l=t.__fontmetrics__.compress=function(t){var e,n,r,o,c=["{"];for(var u in t){if(e=t[u],isNaN(parseInt(u,10))?n="'"+u+"'":(u=parseInt(u,10),n=(n=s(u).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof e)e<0?(r=s(e).slice(3),o="-"):(r=s(e).slice(2),o=""),r=o+r.slice(0,-1)+i[r.slice(-1)];else{if("object"!==(0,a.A)(e))throw new Error("Don't know what to do with value type "+(0,a.A)(e)+".");r=l(e)}c.push(n+r)}return c.push("}"),c.join("")},c=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,n,a,i,o={},s=1,l=o,c=[],u="",f="",d=t.length-1,h=1;h<d;h+=1)"'"==(i=t[h])?e?(a=e.join(""),e=void 0):e=[]:e?e.push(i):"{"==i?(c.push([l,a]),l={},a=void 0):"}"==i?((n=c.pop())[0][n[1]]=l,a=void 0,l=n[0]):"-"==i?s=-1:void 0===a?r.hasOwnProperty(i)?(u+=r[i],a=parseInt(u,16)*s,s=1,u=""):u+=i:r.hasOwnProperty(i)?(f+=r[i],l[a]=parseInt(f,16)*s,s=1,a=void 0,f=""):f+=i;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},d={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=d.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var a=f.Unicode[e.postScriptName];a&&(e.metadata.Unicode.encoding=a,e.encoding=a.codePages[0])}])}(Gr.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),a=0;a<e;a++)n[a]=t.charCodeAt(a);return n};t.API.events.push(["addFont",function(n){var a=void 0,r=n.font,i=n.instance;if(!r.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if("string"!=typeof(a=!1===i.existsFileInVFS(r.postScriptName)?i.loadFile(r.postScriptName):i.getFileFromVFS(r.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");!function(n,a){a=/^\x00\x01\x00\x00/.test(a)?e(a):e(kr(a)),n.metadata=t.API.TTFFont.open(a),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(r,a)}}])}(Gr),Gr.API.addSvgAsImage=function(t,e,a,r,i,o,s,l){if(isNaN(e)||isNaN(a))throw vr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw vr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(mr.canvg?Promise.resolve(mr.canvg):n.e(332).then(n.bind(n,7332))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t})).then((function(e){return e.fromString(u,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(c.toDataURL("image/jpeg",1),e,a,r,i,s,l)}))},Gr.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var r=0;r<this.internal.pages[a].length;r++)this.internal.pages[a][r]=this.internal.pages[a][r].replace(e,n);return this},Gr.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),c=[],u=0,f=0,d=0;function h(t,e){var n,a=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(a=!0);return a}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(d=0;d<p;d+=1)n[l[d]].value=n[l[d]].defaultValue,n[l[d]].explicitSet=!1}if("object"===(0,a.A)(t))for(i in t)if(o=t[i],h(l,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&h(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(u=0;u<o.length;u+=1)if(r=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(f=0;f<o[u].length;f+=1)"number"!=typeof o[u][f]&&(r=!1);!0===r&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Gr.API.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceUri:null!=e?e:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof e&&e},this.internal.events.subscribe("putCatalog",xo),this.internal.events.subscribe("postPutResources",wo)),this},function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,a=e.metadata.Unicode.widths,r=["","0","00","000","0000"],i=[""],o=0,s=t.length;o<s;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==a.indexOf(n)&&(a.push(n),a.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(r[4-n.length],n)}return i.join("")},a=function(t){var e,n,a,r,i,o,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",a=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],a.length>=100&&(i+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar",a=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(r=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),a.push("<"+e+"><"+r+">"));return a.length&&(i+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var f=i();o({data:c,addLength1:!0,objectId:f}),r("endobj");var d=i();o({data:a(n.metadata.toUnicode),addLength1:!0,objectId:d}),r("endobj");var h=i();r("<<"),r("/Type /FontDescriptor"),r("/FontName /"+Hr(n.fontName)),r("/FontFile2 "+f+" 0 R"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/Flags "+n.metadata.flags),r("/StemV "+n.metadata.stemV),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r(">>"),r("endobj");var p=i();r("<<"),r("/Type /Font"),r("/BaseFont /"+Hr(n.fontName)),r("/FontDescriptor "+h+" 0 R"),r("/W "+t.API.PDFObject.convert(s)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+n.encoding+")"),r(">>"),r(">>"),r("endobj"),n.objectNumber=i(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+d+" 0 R"),r("/BaseFont /"+Hr(n.fontName)),r("/Encoding /"+n.encoding),r("/DescendantFonts ["+p+" 0 R]"),r(">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=i();o({data:l,addLength1:!0,objectId:u}),r("endobj");var f=i();o({data:a(n.metadata.toUnicode),addLength1:!0,objectId:f}),r("endobj");var d=i();r("<<"),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r("/StemV "+n.metadata.stemV),r("/Type /FontDescriptor"),r("/FontFile2 "+u+" 0 R"),r("/Flags 96"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/FontName /"+Hr(n.fontName)),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r(">>"),r("endobj"),n.objectNumber=i();for(var h=0;h<n.metadata.hmtx.widths.length;h++)n.metadata.hmtx.widths[h]=parseInt(n.metadata.hmtx.widths[h]*(1e3/n.metadata.head.unitsPerEm));r("<</Subtype/TrueType/Type/Font/ToUnicode "+f+" 0 R/BaseFont/"+Hr(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]);var r=function(t){var e,a=t.text||"",r=t.x,i=t.y,o=t.options||{},s=t.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,f=c,d="",h=0,p="",m=u[f].encoding;if("Identity-H"!==u[f].encoding)return{text:a,x:r,y:i,options:o,mutex:s};for(p=a,f=c,Array.isArray(a)&&(p=a[0]),h=0;h<p.length;h+=1)u[f].metadata.hasOwnProperty("cmap")&&(e=u[f].metadata.cmap.unicode.codeMap[p[h].charCodeAt(0)]),e||p[h].charCodeAt(0)<256&&u[f].metadata.hasOwnProperty("Unicode")?d+=p[h]:d+="";var g="";return parseInt(f.slice(1))<14||"WinAnsiEncoding"===m?g=l(d,f).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===m&&(g=n(d,u[f])),s.isHex=!0,{text:g,x:r,y:i,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],a={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?n.push([r(Object.assign({},a,{text:e[i][0]})).text,e[i][1],e[i][2]]):n.push(r(Object.assign({},a,{text:e[i]})).text);t.text=n}else t.text=r(Object.assign({},a,{text:e})).text}])}(Gr),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(Gr.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,a,r,i,o,s,l,c=e,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,a=h[n];return void 0!==a?c[256*a+(255&e)]:252===n||253===n?"AL":m.test(n)?"L":8===n?"R":"N"},_=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=b(t.charAt(n))))return!1;if("R"===e)return!0}return!1},y=function(t,e,o,s){var l,c,u,f,d=e[s];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(d="AN");break;case"AL":g=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(c=e[s+1])&&"AN"!==c?d="N":g&&(c="AN"),d=c===l?c:"N";break;case"ES":d="EN"===(l=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){d="EN";break}if(g){d="N";break}for(u=s+1,f=e.length;u<f&&"ET"===e[u];)u++;d=u<f&&"EN"===e[u]?"EN":"N";break;case"NSM":if(r&&!i){for(f=e.length,u=s+1;u<f&&"NSM"===e[u];)u++;if(u<f){var h=t[s],p=h>=1425&&h<=2303||64286===h;if(l=e[u],p&&("R"===l||"AL"===l)){d="R";break}}}d=s<1||"B"===(l=e[s-1])?"N":o[s-1];break;case"B":g=!1,n=!0,d=v;break;case"S":a=!0,d="N"}return d},w=function(t,e,n){var a=t.split("");return n&&x(a,n,{hiLevel:v}),a.reverse(),e&&e.reverse(),a.join("")},x=function(t,e,r){var i,o,s,l,c,h=-1,p=t.length,m=0,_=[],w=v?f:u,x=[];for(g=!1,n=!1,a=!1,o=0;o<p;o++)x[o]=b(t[o]);for(s=0;s<p;s++){if(c=m,_[s]=y(t,x,_,s),i=240&(m=w[c][d[_[s]]]),m&=15,e[s]=l=w[m][5],i>0)if(16===i){for(o=h;o<s;o++)e[o]=1;h=-1}else h=-1;if(w[m][6])-1===h&&(h=s);else if(h>-1){for(o=h;o<s;o++)e[o]=l;h=-1}"B"===x[s]&&(e[s]=0),r.hiLevel|=l}a&&function(t,e,n){for(var a=0;a<n;a++)if("S"===t[a]){e[a]=v;for(var r=a-1;r>=0&&"WS"===t[r];r--)e[r]=v}}(x,e,p)},k=function(t,e,a,r,i){if(!(i.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(a&&a.reverse());for(var o,s,l,c,u=e.length,f=0;f<u;){if(r[f]>=t){for(l=f+1;l<u&&r[l]>=t;)l++;for(c=f,s=l-1;c<s;c++,s--)o=e[c],e[c]=e[s],e[s]=o,a&&(o=a[c],a[c]=a[s],a[s]=o);f=l}f++}}},A=function(t,e,n){var a=t.split(""),r={hiLevel:v};return n||(n=[]),x(a,n,r),function(t,e,n){if(0!==n.hiLevel&&l)for(var a,r=0;r<t.length;r++)1===e[r]&&(a=p.indexOf(t[r]))>=0&&(t[r]=p[a+1])}(a,n,r),k(2,a,e,n,r),k(1,a,e,n,r),a.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===i&&(i=_(t)),void 0===s&&(s=_(t))}(t,e),r||!o||s)if(r&&o&&i^s)v=i?1:0,t=w(t,e,n);else if(!r&&o&&s)v=i?1:0,t=A(t,e,n),t=w(t,e);else if(!r||i||o||s){if(r&&!o&&i^s)t=w(t,e),i?(v=0,t=A(t,e,n)):(v=1,t=A(t,e,n),t=w(t,e));else if(r&&i&&!o&&s)v=1,t=A(t,e,n),t=w(t,e);else if(!r&&!o&&i^s){var a=l;i?(v=1,t=A(t,e,n),v=0,l=!1,t=A(t,e,n),l=a):(v=0,t=A(t,e,n),t=w(t,e),v=1,l=!1,t=A(t,e,n),l=a,t=w(t,e))}}else v=0,t=A(t,e,n);else v=i?1:0,t=A(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(r=t.isInputVisual,o=t.isOutputVisual,i=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var a=t.options||{};t.mutex,a.lang;var r=[];if(a.isInputVisual="boolean"!=typeof a.isInputVisual||a.isInputVisual,n.setOptions(a),"[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([n.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):r.push([n.doBidiReorder(e[i])]);t.text=r}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(Gr),Gr.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Ao(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new qo(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new So(this.contents),this.head=new To(this),this.name=new Mo(this),this.cmap=new Po(this),this.toUnicode={},this.hhea=new Lo(this),this.maxp=new Fo(this),this.hmtx=new Do(this),this.post=new Ro(this),this.os2=new Oo(this),this.loca=new Ho(this),this.glyf=new Bo(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,a,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,a,r;for(r=[],e=0,n=(a=this.bbox).length;e<n;e++)t=a[e],r.push(Math.round(t*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var a,r,i,o;for(i=0,r=0,o=(t=""+t).length;0<=o?r<o:r>o;r=0<=o?++r:--r)a=t.charCodeAt(r),i+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var ko,Ao=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,a;for(a=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,a,r,i,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),a=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^r)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*a+16777216*r+65536*i+256*o+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,a,r;for(r=[],n=0,a=t.length;n<a;n++)e=t[n],r.push(this.writeByte(e));return r},t}(),So=function(){var t;function e(t){var e,n,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,a,r,i,o,s,l,c,u,f,d,h,p;for(p in d=Object.keys(e).length,s=Math.log(2),u=16*Math.floor(Math.log(d)/s),i=Math.floor(u/s),c=16*d-u,(a=new Ao).writeInt(this.scalarType),a.writeShort(d),a.writeShort(u),a.writeShort(i),a.writeShort(c),r=16*d,l=a.pos+r,o=null,h=[],e)for(f=e[p],a.writeString(p),a.writeInt(t(f)),a.writeInt(l),a.writeInt(f.length),h=h.concat(f),"head"===p&&(o=l),l+=f.length;l%4;)h.push(0),l++;return a.write(h),n=2981146554-t(a.data),a.pos=o+8,a.writeUInt32(n),a.data},t=function(t){var e,n,a,r;for(t=jo.call(t);t.length%4;)t.push(0);for(a=new Ao(t),n=0,e=0,r=t.length;e<r;e=e+=4)n+=a.readUInt32();return 4294967295&n},e}(),Co={}.hasOwnProperty,Eo=function(t,e){for(var n in e)Co.call(e,n)&&(t[n]=e[n]);function a(){this.constructor=t}return a.prototype=e.prototype,t.prototype=new a,t.__super__=e.prototype,t};ko=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var To=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new Ao).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t}(),No=function(){function t(t,e){var n,a,r,i,o,s,l,c,u,f,d,h,p,m,g,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(d=t.readUInt16(),f=d/2,t.pos+=6,r=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=f?e<f:e>f;s=0<=f?++e:--e)n.push(t.readUInt16());return n}(),a=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=a?e<a:e>a;s=0<=a?++e:--e)n.push(t.readUInt16());return n}(),s=g=0,b=r.length;g<b;s=++g)for(m=r[s],n=v=h=p[s];h<=m?v<=m:v>=m;n=h<=m?++v:--v)0===c[s]?i=n+l[s]:0!==(i=o[c[s]/2+(n-h)-(f-s)]||0)&&(i+=l[s]),this.codeMap[n]=65535&i}t.pos=u}return t.encode=function(t,e){var n,a,r,i,o,s,l,c,u,f,d,h,p,m,g,v,b,_,y,w,x,k,A,S,C,E,T,N,P,L,O,R,I,M,F,D,j,B,U,z,H,q,W,K,V,$;switch(N=new Ao,i=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,m=function(){var t=[];for(h=0;h<256;++h)t.push(0);return t}(),v={0:0},r={},P=0,I=i.length;P<I;P++)null==v[W=t[a=i[P]]]&&(v[W]=++p),r[a]={old:t[a],new:v[t[a]]},m[a]=v[t[a]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(m),{charMap:r,subtable:N.data,maxGlyphID:p+1};case"unicode":for(E=[],u=[],b=0,v={},n={},g=l=null,L=0,M=i.length;L<M;L++)null==v[y=t[a=i[L]]]&&(v[y]=++b),n[a]={old:y,new:v[y]},o=v[y]-a,null!=g&&o===l||(g&&u.push(g),E.push(a),l=o),g=a;for(g&&u.push(g),u.push(65535),E.push(65535),S=2*(A=E.length),k=2*Math.pow(Math.log(A)/Math.LN2,2),f=Math.log(k/2)/Math.LN2,x=2*A-k,s=[],w=[],d=[],h=O=0,F=E.length;O<F;h=++O){if(C=E[h],c=u[h],65535===C){s.push(0),w.push(0);break}if(C-(T=n[C].new)>=32768)for(s.push(0),w.push(2*(d.length+A-h)),a=R=C;C<=c?R<=c:R>=c;a=C<=c?++R:--R)d.push(n[a].new);else s.push(T-C),w.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*A+2*d.length),N.writeUInt16(0),N.writeUInt16(S),N.writeUInt16(k),N.writeUInt16(f),N.writeUInt16(x),H=0,D=u.length;H<D;H++)a=u[H],N.writeUInt16(a);for(N.writeUInt16(0),q=0,j=E.length;q<j;q++)a=E[q],N.writeUInt16(a);for(K=0,B=s.length;K<B;K++)o=s[K],N.writeUInt16(o);for(V=0,U=w.length;V<U;V++)_=w[V],N.writeUInt16(_);for($=0,z=d.length;$<z;$++)p=d[$],N.writeUInt16(p);return{charMap:n,subtable:N.data,maxGlyphID:b+1}}},t}(),Po=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,n,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)e=new No(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var n,a;return null==e&&(e="macroman"),n=No.encode(t,e),(a=new Ao).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},t}(),Lo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),Oo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),Ro=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="post",t.prototype.parse=function(t){var e,n,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,a;for(a=[],r=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;r=0<=n?++e:--e)a.push(t.readUInt32());return a}.call(this)}},t}(),Io=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Mo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="name",t.prototype.parse=function(t){var e,n,a,r,i,o,s,l,c,u,f;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},r=c=0,u=n.length;c<u;r=++c)a=n[r],t.pos=a.offset,l=t.readString(a.length),i=new Io(l,a),null==s[f=a.nameID]&&(s[f]=[]),s[a.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),Fo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t}(),Do=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,n,a,r,i,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,r;for(r=[],e=n=0;0<=a?n<a:n>a;e=0<=a?++n:--n)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,a;for(a=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],a.push(r.advance);return a}.call(this),n=this.widths[this.widths.length-1],s=[],e=i=0;0<=a?i<a:i>a;e=0<=a?++i:--i)s.push(this.widths.push(n));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),jo=[].slice,Bo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,n,a,r,i,o,s,l,c,u;return t in this.cache?this.cache[t]:(r=this.file.loca,e=this.file.contents,n=r.indexOf(t),0===(a=r.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,i=(o=new Ao(e.read(a))).readShort(),l=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===i?new zo(o,l,u,s,c):new Uo(o,i,l,u,s,c),this.cache[t]))},t.prototype.encode=function(t,e,n){var a,r,i,o,s;for(i=[],r=[],o=0,s=e.length;o<s;o++)a=t[e[o]],r.push(i.length),a&&(i=i.concat(a.encode(n)));return r.push(i.length),{table:i,offsets:r}},t}(),Uo=function(){function t(t,e,n,a,r,i){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=a,this.xMax=r,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),zo=function(){function t(t,e,n,a,r){var i,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=a,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new Ao(jo.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ho=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="loca",t.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,a;for(a=[],n=0,e=this.length;n<e;n+=2)a.push(2*t.readUInt16());return a}.call(this):function(){var e,a;for(a=[],n=0,e=this.length;n<e;n+=4)a.push(t.readUInt32());return a}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),a=0,r=0,i=0;i<n.length;++i)if(n[i]=a,r<e.length&&e[r]==i){++r,n[i]=a;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(a+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},t}(),qo=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,a,r;for(e in a=this.font.cmap.tables[0].codeMap,t={},r=this.subset)n=r[e],t[e]=a[n];return t},t.prototype.glyphsFor=function(t){var e,n,a,r,i,o,s;for(a={},i=0,o=t.length;i<o;i++)a[r=t[i]]=this.font.glyf.glyphFor(r);for(r in e=[],a)(null!=(n=a[r])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(r in s=this.glyphsFor(e))n=s[r],a[r]=n;return a},t.prototype.encode=function(t,e){var n,a,r,i,o,s,l,c,u,f,d,h,p,m,g;for(a in n=Po.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),d={0:0},g=n.charMap)d[(s=g[a]).old]=s.new;for(h in f=n.maxGlyphID,i)h in d||(d[h]=f++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(d),u=Object.keys(c).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=u.length;t<e;t++)o=u[t],n.push(c[o]);return n}(),r=this.font.glyf.encode(i,p,d),l=this.font.loca.encode(r.offsets,p),m={cmap:this.font.cmap.raw(),glyf:r.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},t}();function Wo(t,e,n,a,r){a=a||{};var i=r.internal.scaleFactor,o=r.internal.getFontSize()/i,s=o*(r.getLineHeightFactor?r.getLineHeightFactor():1.15),l="",c=1;if("middle"!==a.valign&&"bottom"!==a.valign&&"center"!==a.halign&&"right"!==a.halign||(c=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=o*(2-1.15),"middle"===a.valign?n-=c/2*s:"bottom"===a.valign&&(n-=c*s),"center"===a.halign||"right"===a.halign){var u=o;if("center"===a.halign&&(u*=.5),l&&c>=1){for(var f=0;f<l.length;f++)r.text(l[f],e-r.getStringUnitWidth(l[f])*u,n),n+=s;return r}e-=r.getStringUnitWidth(t)*u}return"justify"===a.halign?r.text(t,e,n,{maxWidth:a.maxWidth||100,align:"justify"}):r.text(t,e,n),r}Gr.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var a,r,i,o;if(Array.isArray(n))return"["+function(){var t,r,i;for(i=[],t=0,r=n.length;t<r;t++)a=n[t],i.push(e.convert(a));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(r in i=["<<"],n)o=n[r],i.push("/"+r+" "+e.convert(o));return i.push(">>"),i.join("\n")}return""+n},e}();var Ko={},Vo=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:Ko=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"==typeof t?[t,t,t]:"string"==typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var a,r,i;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(e.font&&(l=e.font),e.fontStyle){s=e.fontStyle;var c=this.getFontList()[l];c&&-1===c.indexOf(s)&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(c[0]),s=c[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var u=t.unifyColor(e.fillColor);u&&(a=this.jsPDFDocument).setFillColor.apply(a,u),(u=t.unifyColor(e.textColor))&&(r=this.jsPDFDocument).setTextColor.apply(r,u),(u=t.unifyColor(e.lineColor))&&(i=this.jsPDFDocument).setDrawColor.apply(i,u),"number"==typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,a,r){return this.jsPDFDocument.rect(t,e,n,a,r)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return Ko||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}(),$o=function(t,e){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},$o(t,e)};function Go(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}$o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var Yo=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return Go(e,t),e}(Array);function Xo(t,e,n){n.applyStyles(e,!0);var a=(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0);return a}function Jo(t,e,n,a){var r=e.settings.tableLineWidth,i=e.settings.tableLineColor;t.applyStyles({lineWidth:r,lineColor:i});var o=Zo(r,!1);o&&t.rect(n.x,n.y,e.getWidth(t.pageSize().width),a.y-n.y,o)}function Zo(t,e){var n=t>0,a=e||0===e;return n&&a?"DF":n?"S":a?"F":null}function Qo(t,e){var n,a,r,i;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"==typeof t?("number"==typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"==typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(a=t.top)&&void 0!==a?a:e,right:null!==(r=t.right)&&void 0!==r?r:e,bottom:null!==(i=t.bottom)&&void 0!==i?i:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}function ts(t,e){var n=Qo(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}function es(t,e,n,a,r){var i={},o=96/72,s=ns(e,(function(t){return r.getComputedStyle(t).backgroundColor}));null!=s&&(i.fillColor=s);var l=ns(e,(function(t){return r.getComputedStyle(t).color}));null!=l&&(i.textColor=l);var c=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],a=96/(72/e),r=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,i=n.map((function(t){return parseInt(t||"0")/a})),o=Qo(i,0);r>o.top&&(o.top=r);r>o.bottom&&(o.bottom=r);return o}(a,n);c&&(i.cellPadding=c);var u="borderTopColor",f=o*n,d=a.borderTopWidth;if(a.borderBottomWidth===d&&a.borderRightWidth===d&&a.borderLeftWidth===d){var h=(parseFloat(d)||0)/f;h&&(i.lineWidth=h)}else i.lineWidth={top:(parseFloat(a.borderTopWidth)||0)/f,right:(parseFloat(a.borderRightWidth)||0)/f,bottom:(parseFloat(a.borderBottomWidth)||0)/f,left:(parseFloat(a.borderLeftWidth)||0)/f},i.lineWidth.top||(i.lineWidth.right?u="borderRightColor":i.lineWidth.bottom?u="borderBottomColor":i.lineWidth.left&&(u="borderLeftColor"));var p=ns(e,(function(t){return r.getComputedStyle(t)[u]}));null!=p&&(i.lineColor=p);var m=["left","right","center","justify"];-1!==m.indexOf(a.textAlign)&&(i.halign=a.textAlign),-1!==(m=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(i.valign=a.verticalAlign);var g=parseInt(a.fontSize||"");isNaN(g)||(i.fontSize=g/o);var v=function(t){var e="";("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold");"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic");return e}(a);v&&(i.fontStyle=v);var b=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(b)&&(i.font=b),i}function ns(t,e){var n=as(t,e);if(!n)return null;var a=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!a||!Array.isArray(a))return null;var r=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])];return 0===parseInt(a[4])||isNaN(r[0])||isNaN(r[1])||isNaN(r[2])?null:r}function as(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:as(t.parentElement,e):n}function rs(t,e,n,a,r){var i,o,s;void 0===a&&(a=!1),void 0===r&&(r=!1),s="string"==typeof e?n.document.querySelector(e):e;var l=Object.keys(t.getFontList()),c=t.scaleFactor(),u=[],f=[],d=[];if(!s)return console.error("Html table could not be found with input: ",e),{head:u,body:f,foot:d};for(var h=0;h<s.rows.length;h++){var p=s.rows[h],m=null===(o=null===(i=null==p?void 0:p.parentElement)||void 0===i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase(),g=is(l,c,n,p,a,r);g&&("thead"===m?u.push(g):"tfoot"===m?d.push(g):f.push(g))}return{head:u,body:f,foot:d}}function is(t,e,n,a,r,i){for(var o=new Yo(a),s=0;s<a.cells.length;s++){var l=a.cells[s],c=n.getComputedStyle(l);if(r||"none"!==c.display){var u=void 0;i&&(u=es(t,l,e,c,n)),o.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:u,_element:l,content:os(l)})}}var f=n.getComputedStyle(a);if(o.length>0&&(r||"none"!==f.display))return o}function os(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}function ss(t,e,n,a,r){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),o=1;o<arguments.length;o++){var s=arguments[o];if(null!=s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])}return i}function ls(t,e){var n=new Vo(t),a=n.getDocumentOptions(),r=n.getGlobalOptions();!function(t,e,n){for(var a=0,r=[t,e,n];a<r.length;a++){var i=r[a];i&&"object"!=typeof i&&console.error("The options parameter should be of type object, is: "+typeof i),i.startY&&"number"!=typeof i.startY&&(console.error("Invalid value for startY option",i.startY),delete i.startY)}}(r,a,e);var i,o=ss({},r,a,e);"undefined"!=typeof window&&(i=window);var s=function(t,e,n){for(var a={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},r=function(r){if("columnStyles"===r){var i=t[r],o=e[r],s=n[r];a.columnStyles=ss({},i,o,s)}else{var l=[t,e,n].map((function(t){return t[r]||{}}));a[r]=ss({},l[0],l[1],l[2])}},i=0,o=Object.keys(a);i<o.length;i++){r(o[i])}return a}(r,a,e),l=function(t,e,n){for(var a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},r=0,i=[t,e,n];r<i.length;r++){var o=i[r];o.didParseCell&&a.didParseCell.push(o.didParseCell),o.willDrawCell&&a.willDrawCell.push(o.willDrawCell),o.didDrawCell&&a.didDrawCell.push(o.didDrawCell),o.willDrawPage&&a.willDrawPage.push(o.willDrawPage),o.didDrawPage&&a.didDrawPage.push(o.didDrawPage)}return a}(r,a,e),c=function(t,e){var n,a,r,i,o,s,l,c,u,f,d,h,p,m,g=Qo(e.margin,40/t.scaleFactor()),v=null!==(n=function(t,e){var n=t.getLastAutoTable(),a=t.scaleFactor(),r=t.pageNumber(),i=!1;if(n&&n.startPageNumber){i=n.startPageNumber+n.pageNumber-1===r}if("number"==typeof e)return e;if((null==e||!1===e)&&i&&null!=(null==n?void 0:n.finalY))return n.finalY+20/a;return null}(t,e.startY))&&void 0!==n?n:g.top;p=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(a=e.showFoot)&&void 0!==a?a:"everyPage";m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(r=e.showHead)&&void 0!==r?r:"everyPage";var b=null!==(i=e.useCss)&&void 0!==i&&i,_=e.theme||(b?"plain":"striped"),y=!!e.horizontalPageBreak,w=null!==(o=e.horizontalPageBreakRepeat)&&void 0!==o?o:null;return{includeHiddenHtml:null!==(s=e.includeHiddenHtml)&&void 0!==s&&s,useCss:b,theme:_,startY:v,margin:g,pageBreak:null!==(l=e.pageBreak)&&void 0!==l?l:"auto",rowPageBreak:null!==(c=e.rowPageBreak)&&void 0!==c?c:"auto",tableWidth:null!==(u=e.tableWidth)&&void 0!==u?u:"auto",showHead:m,showFoot:p,tableLineWidth:null!==(f=e.tableLineWidth)&&void 0!==f?f:0,tableLineColor:null!==(d=e.tableLineColor)&&void 0!==d?d:200,horizontalPageBreak:y,horizontalPageBreakRepeat:w,horizontalPageBreakBehaviour:null!==(h=e.horizontalPageBreakBehaviour)&&void 0!==h?h:"afterAllRows"}}(n,o),u=function(t,e,n){var a=e.head||[],r=e.body||[],i=e.foot||[];if(e.html){var o=e.includeHiddenHtml;if(n){var s=rs(t,e.html,n,o,e.useCss)||{};a=s.head||a,r=s.body||a,i=s.foot||a}else console.error("Cannot parse html in non browser environment")}var l=e.columns||function(t,e,n){var a=t[0]||e[0]||n[0]||[],r=[];return Object.keys(a).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(a)?a[parseInt(t)]:a[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var i=0;i<n;i++){var o={dataKey:Array.isArray(a)?r.length:t+(i>0?"_".concat(i):"")};r.push(o)}})),r}(a,r,i);return{columns:l,head:a,body:r,foot:i}}(n,o,i);return{id:e.tableId,content:u,hooks:l,styles:s,settings:c}}var cs,us=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()},fs=function(t){function e(e,n,a,r,i,o){var s=t.call(this,e,n,o)||this;return s.cell=a,s.row=r,s.column=i,s.section=r.section,s}return Go(e,t),e}(us),ds=function(){function t(t,e){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,a,r,i){for(var o=0,s=e;o<s.length;o++){var l=!1===(0,s[o])(new fs(t,this,n,a,r,i));if(n.text=Array.isArray(n.text)?n.text:[n.text],l)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,a=this.hooks.didDrawPage;n<a.length;n++){(0,a[n])(new us(t,this,e))}},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,a=this.hooks.willDrawPage;n<a.length;n++){(0,a[n])(new us(t,this,e))}},t.prototype.getWidth=function(t){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(t,e){return t+e.wrappedWidth}),0);var e=this.settings.margin;return t-e.left-e.right},t}(),hs=function(){function t(t,e,n,a,r){void 0===r&&(r=!1),this.height=0,this.raw=t,t instanceof Yo&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=a,this.spansMultiplePages=r}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var a;return Math.max(t,(null===(a=e.cells[n.index])||void 0===a?void 0:a.height)||0)}),0)},t.prototype.hasRowSpan=function(t){var e=this;return t.filter((function(t){var n=e.cells[t.index];return!!n&&n.rowSpan>1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,a){var r=n.cells[a.index];if(!r)return 0;var i=e.getLineHeight(r.styles.fontSize),o=r.padding("vertical")+i;return o>t?o:t}),0)},t}(),ps=function(){function t(t,e,n){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var r=t;null==t||"object"!=typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,r=null!==(a=t.content)&&void 0!==a?a:t,t._element&&(this.raw=t._element));var i=null!=r?""+r:"";this.text=i.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var a=this.width-this.padding("horizontal");e=this.x+a/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t,e){void 0===e&&(e=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*e)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=Qo(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}(),ms=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,a=t.allRows();n<a.length;n++){var r=a[n].cells[this.index];r&&"number"==typeof r.styles.cellWidth&&(e=Math.max(e,r.styles.cellWidth))}return e},t}();function gs(t,e){!function(t,e){var n=t.scaleFactor(),a=e.settings.horizontalPageBreak,r=ts(t,e);e.allRows().forEach((function(i){for(var o=0,s=e.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){var u=e.hooks.didParseCell;e.callCellHooks(t,u,c,i,l,null);var f=c.padding("horizontal");c.contentWidth=Xo(c.text,c.styles,t)+f;var d=Xo(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,t);if(c.minReadableWidth=d+c.padding("horizontal"),"number"==typeof c.styles.cellWidth)c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if("wrap"===c.styles.cellWidth||!0===a)c.contentWidth>r?(c.minWidth=r,c.wrappedWidth=r):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var h=10/n;c.minWidth=c.styles.minCellWidth||h,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,a=e.columns;n<a.length;n++){var r=a[n],i=t.cells[r.index];if(i&&1===i.colSpan)r.wrappedWidth=Math.max(r.wrappedWidth,i.wrappedWidth),r.minWidth=Math.max(r.minWidth,i.minWidth),r.minReadableWidth=Math.max(r.minReadableWidth,i.minReadableWidth);else{var o=e.styles.columnStyles[r.dataKey]||e.styles.columnStyles[r.index]||{},s=o.cellWidth||o.minCellWidth;s&&"number"==typeof s&&(r.minWidth=s,r.wrappedWidth=s)}i&&(i.colSpan>1&&!r.minWidth&&(r.minWidth=i.minWidth),i.colSpan>1&&!r.wrappedWidth&&(r.wrappedWidth=i.minWidth))}}))}(t,e);var n=[],a=0;e.columns.forEach((function(t){var r=t.getMaxCustomCellWidth(e);r?t.width=r:(t.width=t.wrappedWidth,n.push(t)),a+=t.width}));var r=e.getWidth(t.pageSize().width)-a;r&&(r=vs(n,r,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),r&&(r=vs(n,r,(function(t){return t.minWidth}))),r=Math.abs(r),!e.settings.horizontalPageBreak&&r>.1/t.scaleFactor()&&(r=r<1?r:Math.round(r),console.log("Of the table content, ".concat(r," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var a=e[n],r=null,i=0,o=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((o-=1)>1&&t.columns[s+1])i+=l.width,delete a.cells[l.index];else if(r){var c=r;delete a.cells[l.index],r=null,c.width=l.width+i}else{if(!(c=a.cells[l.index]))continue;if(o=c.colSpan,i=0,c.colSpan>1){r=c,i+=l.width;continue}c.width=l.width+i}}}(e),function(t,e){for(var n={count:0,height:0},a=0,r=t.allRows();a<r.length;a++){for(var i=r[a],o=0,s=t.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){e.applyStyles(c.styles,!0);var u=c.width-c.padding("horizontal");if("linebreak"===c.styles.overflow)c.text=e.splitTextToSize(c.text,u+1/e.scaleFactor(),{fontSize:c.styles.fontSize});else if("ellipsize"===c.styles.overflow)c.text=bs(c.text,u,c.styles,e,"...");else if("hidden"===c.styles.overflow)c.text=bs(c.text,u,c.styles,e,"");else if("function"==typeof c.styles.overflow){var f=c.styles.overflow(c.text,u);c.text="string"==typeof f?[f]:f}c.contentHeight=c.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var d=c.contentHeight/c.rowSpan;c.rowSpan>1&&n.count*n.height<d*c.rowSpan?n={height:d,count:c.rowSpan}:n&&n.count>0&&n.height>d&&(d=n.height),d>i.height&&(i.height=d)}}n.count--}}(e,t),function(t){for(var e={},n=1,a=t.allRows(),r=0;r<a.length;r++)for(var i=a[r],o=0,s=t.columns;o<s.length;o++){var l=s[o],c=e[l.index];if(n>1)n--,delete i.cells[l.index];else if(c)c.cell.height+=i.height,n=c.cell.colSpan,delete i.cells[l.index],c.left--,c.left<=1&&delete e[l.index];else{var u=i.cells[l.index];if(!u)continue;if(u.height=i.height,u.rowSpan>1){var f=a.length-r,d=u.rowSpan>f?f:u.rowSpan;e[l.index]={cell:u,left:d,row:i}}}}}(e)}function vs(t,e,n){for(var a=e,r=t.reduce((function(t,e){return t+e.wrappedWidth}),0),i=0;i<t.length;i++){var o=t[i],s=a*(o.wrappedWidth/r),l=o.width+s,c=n(o),u=l<c?c:l;e-=u-o.width,o.width=u}if(e=Math.round(1e10*e)/1e10){var f=t.filter((function(t){return!(e<0)||t.width>n(t)}));f.length&&(e=vs(f,e,n))}return e}function bs(t,e,n,a,r){return t.map((function(t){return function(t,e,n,a,r){var i=1e4*a.scaleFactor();if(e=Math.ceil(e*i)/i,e>=Xo(t,n,a))return t;for(;e<Xo(t+r,n,a)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+r}(t,e,n,a,r)}))}function _s(t,e){var n=new Vo(t),a=function(t,e){var n=t.content,a=function(t){return t.map((function(t,e){var n,a;return a="object"==typeof t&&null!==(n=t.dataKey)&&void 0!==n?n:e,new ms(a,t,e)}))}(n.columns);if(0===n.head.length){(r=ws(a,"head"))&&n.head.push(r)}if(0===n.foot.length){var r;(r=ws(a,"foot"))&&n.foot.push(r)}var i=t.settings.theme,o=t.styles;return{columns:a,head:ys("head",n.head,a,o,i,e),body:ys("body",n.body,a,o,i,e),foot:ys("foot",n.foot,a,o,i,e)}}(e,n.scaleFactor()),r=new ds(e,a);return gs(n,r),n.applyStyles(n.userStyles),r}function ys(t,e,n,a,r,i){var o={};return e.map((function(e,s){for(var l=0,c={},u=0,f=0,d=0,h=n;d<h.length;d++){var p=h[d];if(null==o[p.index]||0===o[p.index].left)if(0===f){var m=void 0,g={};"object"!=typeof(m=Array.isArray(e)?e[p.index-u-l]:e[p.dataKey])||Array.isArray(m)||(g=(null==m?void 0:m.styles)||{});var v=xs(t,p,s,r,a,i,g),b=new ps(m,v,t);c[p.dataKey]=b,c[p.index]=b,f=b.colSpan-1,o[p.index]={left:b.rowSpan-1,times:f}}else f--,u++;else o[p.index].left--,f=o[p.index].times,l++}return new hs(e,s,t,c)}))}function ws(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var a=function(t,e){if("head"===t){if("object"==typeof e)return e.header||null;if("string"==typeof e||"number"==typeof e)return e}else if("foot"===t&&"object"==typeof e)return e.footer;return null}(e,t.raw);null!=a&&(n[t.dataKey]=a)}})),Object.keys(n).length>0?n:null}function xs(t,e,n,a,r,i,o){var s,l={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[a];"head"===t?s=r.headStyles:"body"===t?s=r.bodyStyles:"foot"===t&&(s=r.footStyles);var c=ss({},l.table,l[t],r.styles,s),u=r.columnStyles[e.dataKey]||r.columnStyles[e.index]||{},f="body"===t?u:{},d="body"===t&&n%2==0?ss({},l.alternateRow,r.alternateRowStyles):{},h=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}(i),p=ss({},h,c,d,f);return ss(p,o)}function ks(t,e,n){var a;void 0===n&&(n={});var r=ts(t,e),i=new Map,o=[],s=[],l=[];Array.isArray(e.settings.horizontalPageBreakRepeat)?l=e.settings.horizontalPageBreakRepeat:"string"!=typeof e.settings.horizontalPageBreakRepeat&&"number"!=typeof e.settings.horizontalPageBreakRepeat||(l=[e.settings.horizontalPageBreakRepeat]),l.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!i.has(n.index)&&(i.set(n.index,!0),o.push(n.index),s.push(e.columns[n.index]),r-=n.wrappedWidth)}));for(var c=!0,u=null!==(a=null==n?void 0:n.start)&&void 0!==a?a:0;u<e.columns.length;)if(i.has(u))u++;else{var f=e.columns[u].wrappedWidth;if(!(c||r>=f))break;c=!1,o.push(u),s.push(e.columns[u]),r-=f,u++}return{colIndexes:o,columns:s,lastIndex:u-1}}function As(t,e){var n=e.settings,a=n.startY,r=n.margin,i={x:r.left,y:a},o=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),s=a+r.bottom+o;"avoid"===n.pageBreak&&(s+=e.body.reduce((function(t,e){return t+e.height}),0));var l=new Vo(t);("always"===n.pageBreak||null!=n.startY&&s>l.pageSize().height)&&(Is(l),i.y=r.top),e.callWillDrawPageHooks(l,i);var c=ss({},i);e.startPageNumber=l.pageNumber(),n.horizontalPageBreak?function(t,e,n,a){var r=function(t,e){for(var n=[],a=0;a<e.columns.length;a++){var r=ks(t,e,{start:a});r.columns.length&&(n.push(r),a=r.lastIndex)}return n}(t,e),i=e.settings;if("afterAllRows"===i.horizontalPageBreakBehaviour)r.forEach((function(r,i){t.applyStyles(t.userStyles),i>0?Rs(t,e,n,a,r.columns,!0):Ss(t,e,a,r.columns),function(t,e,n,a,r){t.applyStyles(t.userStyles),e.body.forEach((function(i,o){var s=o===e.body.length-1;Ns(t,e,i,s,n,a,r)}))}(t,e,n,a,r.columns),Es(t,e,a,r.columns)}));else for(var o=-1,s=r[0],l=function(){var i=o;if(s){t.applyStyles(t.userStyles);var l=s.columns;o>=0?Rs(t,e,n,a,l,!0):Ss(t,e,a,l),i=Cs(t,e,o+1,a,l),Es(t,e,a,l)}var c=i-o;r.slice(1).forEach((function(r){t.applyStyles(t.userStyles),Rs(t,e,n,a,r.columns,!0),Cs(t,e,o+1,a,r.columns,c),Es(t,e,a,r.columns)})),o=i};o<e.body.length-1;)l()}(l,e,c,i):(l.applyStyles(l.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return Ps(l,e,t,i,e.columns)})),l.applyStyles(l.userStyles),e.body.forEach((function(t,n){var a=n===e.body.length-1;Ns(l,e,t,a,c,i,e.columns)})),l.applyStyles(l.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return Ps(l,e,t,i,e.columns)}))),Jo(l,e,c,i),e.callEndPageHooks(l,i),e.finalY=i.y,t.lastAutoTable=e,l.applyStyles(l.userStyles)}function Ss(t,e,n,a){var r=e.settings;t.applyStyles(t.userStyles),"firstPage"!==r.showHead&&"everyPage"!==r.showHead||e.head.forEach((function(r){return Ps(t,e,r,n,a)}))}function Cs(t,e,n,a,r,i){t.applyStyles(t.userStyles),i=null!=i?i:e.body.length;var o=Math.min(n+i,e.body.length),s=-1;return e.body.slice(n,o).forEach((function(i,o){var l=n+o===e.body.length-1,c=Os(t,e,l,a);i.canEntireRowFit(c,r)&&(Ps(t,e,i,a,r),s=n+o)})),s}function Es(t,e,n,a){var r=e.settings;t.applyStyles(t.userStyles),"lastPage"!==r.showFoot&&"everyPage"!==r.showFoot||e.foot.forEach((function(r){return Ps(t,e,r,n,a)}))}function Ts(t,e,n){var a=n.getLineHeight(t.styles.fontSize),r=t.padding("vertical"),i=Math.floor((e-r)/a);return Math.max(0,i)}function Ns(t,e,n,a,r,i,o){var s=Os(t,e,a,i);if(n.canEntireRowFit(s,o))Ps(t,e,n,i,o);else if(function(t,e,n,a){var r=t.pageSize().height,i=a.settings.margin,o=r-(i.top+i.bottom);"body"===e.section&&(o-=a.getHeadHeight(a.columns)+a.getFootHeight(a.columns));var s=e.getMinimumRowHeight(a.columns,t),l=s<n;if(s>o)return console.log("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!l)return!1;var c=e.hasRowSpan(a.columns);return e.getMaxCellHeight(a.columns)>o?(c&&console.log("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!c&&"avoid"!==a.settings.rowPageBreak}(t,n,s,e)){var l=function(t,e,n,a){var r={};t.spansMultiplePages=!0,t.height=0;for(var i=0,o=0,s=n.columns;o<s.length;o++){var l=s[o];if(g=t.cells[l.index]){Array.isArray(g.text)||(g.text=[g.text]),(m=ss(m=new ps(g.raw,g.styles,g.section),g)).text=[];var c=Ts(g,e,a);g.text.length>c&&(m.text=g.text.splice(c,g.text.length));var u=a.scaleFactor(),f=a.getLineHeightFactor();g.contentHeight=g.getContentHeight(u,f),g.contentHeight>=e&&(g.contentHeight=e,m.styles.minCellHeight-=e),g.contentHeight>t.height&&(t.height=g.contentHeight),m.contentHeight=m.getContentHeight(u,f),m.contentHeight>i&&(i=m.contentHeight),r[l.index]=m}}var d=new hs(t.raw,-1,t.section,r,!0);d.height=i;for(var h=0,p=n.columns;h<p.length;h++){var m,g;l=p[h],(m=d.cells[l.index])&&(m.height=d.height),(g=t.cells[l.index])&&(g.height=t.height)}return d}(n,s,e,t);Ps(t,e,n,i,o),Rs(t,e,r,i,o),Ns(t,e,l,a,r,i,o)}else Rs(t,e,r,i,o),Ns(t,e,n,a,r,i,o)}function Ps(t,e,n,a,r){a.x=e.settings.margin.left;for(var i=0,o=r;i<o.length;i++){var s=o[i],l=n.cells[s.index];if(l)if(t.applyStyles(l.styles),l.x=a.x,l.y=a.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,l,n,s,a)){Ls(t,l,a);var c=l.getTextPos();Wo(l.text,c.x,c.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,l,n,s,a),a.x+=s.width}else a.x+=s.width;else a.x+=s.width}a.y+=n.height}function Ls(t,e,n){var a=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"==typeof a.lineWidth){var r=Zo(a.lineWidth,a.fillColor);r&&t.rect(e.x,n.y,e.width,e.height,r)}else"object"==typeof a.lineWidth&&(a.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,a){var r,i,o,s;a.top&&(r=n.x,i=n.y,o=n.x+e.width,s=n.y,a.right&&(o+=.5*a.right),a.left&&(r-=.5*a.left),l(a.top,r,i,o,s));a.bottom&&(r=n.x,i=n.y+e.height,o=n.x+e.width,s=n.y+e.height,a.right&&(o+=.5*a.right),a.left&&(r-=.5*a.left),l(a.bottom,r,i,o,s));a.left&&(r=n.x,i=n.y,o=n.x,s=n.y+e.height,a.top&&(i-=.5*a.top),a.bottom&&(s+=.5*a.bottom),l(a.left,r,i,o,s));a.right&&(r=n.x+e.width,i=n.y,o=n.x+e.width,s=n.y+e.height,a.top&&(i-=.5*a.top),a.bottom&&(s+=.5*a.bottom),l(a.right,r,i,o,s));function l(e,n,a,r,i){t.getDocument().setLineWidth(e),t.getDocument().line(n,a,r,i,"S")}}(t,e,n,a.lineWidth))}function Os(t,e,n,a){var r=e.settings.margin.bottom,i=e.settings.showFoot;return("everyPage"===i||"lastPage"===i&&n)&&(r+=e.getFootHeight(e.columns)),t.pageSize().height-a.y-r}function Rs(t,e,n,a,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||i||e.foot.forEach((function(n){return Ps(t,e,n,a,r)})),e.callEndPageHooks(t,a);var o=e.settings.margin;Jo(t,e,n,a),Is(t),e.pageNumber++,a.x=o.left,a.y=o.top,n.y=o.top,e.callWillDrawPageHooks(t,a),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return Ps(t,e,n,a,r)})),t.applyStyles(t.userStyles))}function Is(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}try{if("undefined"!=typeof window&&window){var Ms=window,Fs=Ms.jsPDF||(null===(cs=Ms.jspdf)||void 0===cs?void 0:cs.jsPDF);Fs&&function(t){t.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return As(this,_s(this,ls(this,t[0]))),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(t,e,n,a){Wo(t,e,n,a,this)},t.API.autoTableSetDefaults=function(t){return Vo.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){Vo.setDefaults(t,e)},t.API.autoTableHtmlToJson=function(t,e){var n;if(void 0===e&&(e=!1),"undefined"==typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=rs(new Vo(this),t,window,e,!1),r=a.head,i=a.body,o=(null===(n=r[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[];return{columns:o,rows:i,data:i}}}(Fs)}}catch(t){console.error("Could not apply autoTable plugin",t)}var Ds=n(3686).Buffer,js=n(5606),Bs={version:"0.18.5"},Us=1200,zs=1252,Hs=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qs={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Ws=function(t){-1!=Hs.indexOf(t)&&(zs=qs[0]=t)};var Ks=function(t){Us=t,Ws(t)};function Vs(){Ks(1200),Ws(1252)}function $s(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n+1)+(t.charCodeAt(2*n)<<8));return e.join("")}var Gs,Ys=function(t){return String.fromCharCode(t)},Xs=function(t){return String.fromCharCode(t)};var Js=null,Zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Qs(t){for(var e="",n=0,a=0,r=0,i=0,o=0,s=0,l=0,c=0;c<t.length;)i=(n=t.charCodeAt(c++))>>2,o=(3&n)<<4|(a=t.charCodeAt(c++))>>4,s=(15&a)<<2|(r=t.charCodeAt(c++))>>6,l=63&r,isNaN(a)?s=l=64:isNaN(r)&&(l=64),e+=Zs.charAt(i)+Zs.charAt(o)+Zs.charAt(s)+Zs.charAt(l);return e}function tl(t){var e="",n=0,a=0,r=0,i=0,o=0,s=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<t.length;)n=Zs.indexOf(t.charAt(l++))<<2|(i=Zs.indexOf(t.charAt(l++)))>>4,e+=String.fromCharCode(n),a=(15&i)<<4|(o=Zs.indexOf(t.charAt(l++)))>>2,64!==o&&(e+=String.fromCharCode(a)),r=(3&o)<<6|(s=Zs.indexOf(t.charAt(l++))),64!==s&&(e+=String.fromCharCode(r));return e}var el=function(){return void 0!==Ds&&void 0!==js&&void 0!==js.versions&&!!js.versions.node}(),nl=function(){if(void 0!==Ds){var t=!Ds.from;if(!t)try{Ds.from("foo","utf8")}catch(e){t=!0}return t?function(t,e){return e?new Ds(t,e):new Ds(t)}:Ds.from.bind(Ds)}return function(){}}();function al(t){return el?Ds.alloc?Ds.alloc(t):new Ds(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function rl(t){return el?Ds.allocUnsafe?Ds.allocUnsafe(t):new Ds(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var il=function(t){return el?nl(t,"binary"):t.split("").map((function(t){return 255&t.charCodeAt(0)}))};function ol(t){if("undefined"==typeof ArrayBuffer)return il(t);for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),a=0;a!=t.length;++a)n[a]=255&t.charCodeAt(a);return e}function sl(t){if(Array.isArray(t))return t.map((function(t){return String.fromCharCode(t)})).join("");for(var e=[],n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}var ll=el?function(t){return Ds.concat(t.map((function(t){return Ds.isBuffer(t)?t:nl(t)})))}:function(t){if("undefined"!=typeof Uint8Array){var e=0,n=0;for(e=0;e<t.length;++e)n+=t[e].length;var a=new Uint8Array(n),r=0;for(e=0,n=0;e<t.length;n+=r,++e)if(r=t[e].length,t[e]instanceof Uint8Array)a.set(t[e],n);else{if("string"==typeof t[e])throw"wtf";a.set(new Uint8Array(t[e]),n)}return a}return[].concat.apply([],t.map((function(t){return Array.isArray(t)?t:[].slice.call(t)})))};var cl=/\u0000/g,ul=/[\u0001-\u0006]/g;function fl(t){for(var e="",n=t.length-1;n>=0;)e+=t.charAt(n--);return e}function dl(t,e){var n=""+t;return n.length>=e?n:Ac("0",e-n.length)+n}function hl(t,e){var n=""+t;return n.length>=e?n:Ac(" ",e-n.length)+n}function pl(t,e){var n=""+t;return n.length>=e?n:n+Ac(" ",e-n.length)}var ml=Math.pow(2,32);function gl(t,e){return t>ml||t<-ml?function(t,e){var n=""+Math.round(t);return n.length>=e?n:Ac("0",e-n.length)+n}(t,e):function(t,e){var n=""+t;return n.length>=e?n:Ac("0",e-n.length)+n}(Math.round(t),e)}function vl(t,e){return e=e||0,t.length>=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}var bl=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],_l=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var yl={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},wl={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},xl={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function kl(t,e,n){for(var a=t<0?-1:1,r=t*a,i=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(r);c<e&&(s=(f=Math.floor(r))*o+i,u=f*c+l,!(r-f<5e-8));)r=1/(r-f),i=o,o=s,l=c,c=u;if(u>e&&(c>e?(u=l,s=i):(u=c,s=o)),!n)return[0,a*s,u];var d=Math.floor(a*s/u);return[d,a*s-d*u,u]}function Al(t,e,n){if(t>2958465||t<0)return null;var a=0|t,r=Math.floor(86400*(t-a)),i=0,o=[],s={D:a,T:r,u:86400*(t-a)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(a+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++a,++s.D)),60===a)o=n?[1317,10,29]:[1900,2,29],i=3;else if(0===a)o=n?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),a<60&&(i=(i+6)%7),n&&(i=function(t,e){e[0]-=581;var n=t.getDay();t<60&&(n=(n+6)%7);return n}(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=i,s}var Sl=new Date(1899,11,31,0,0,0),Cl=Sl.getTime(),El=new Date(1900,2,1,0,0,0);function Tl(t,e){var n=t.getTime();return e?n-=1262304e5:t>=El&&(n+=864e5),(n-(Cl+6e4*(t.getTimezoneOffset()-Sl.getTimezoneOffset())))/864e5}function Nl(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Pl(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function(t){var e=t<0?12:11,n=Nl(t.toFixed(12));return n.length<=e||(n=t.toPrecision(10)).length<=e?n:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function(t){var e=Nl(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}(t),Nl(function(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}function Ll(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):Pl(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Zl(14,Tl(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function Ol(t,e,n,a){var r,i="",o=0,s=0,l=n.y,c=0;switch(t){case 98:l=n.y+543;case 121:switch(e.length){case 1:case 2:r=l%100,c=2;break;default:r=l%1e4,c=4}break;case 109:switch(e.length){case 1:case 2:r=n.m,c=e.length;break;case 3:return _l[n.m-1][1];case 5:return _l[n.m-1][0];default:return _l[n.m-1][2]}break;case 100:switch(e.length){case 1:case 2:r=n.d,c=e.length;break;case 3:return bl[n.q][0];default:return bl[n.q][1]}break;case 104:switch(e.length){case 1:case 2:r=1+(n.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:r=n.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:r=n.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if("s"!=e&&"ss"!=e&&".0"!=e&&".00"!=e&&".000"!=e)throw"bad second format: "+e;return 0!==n.u||"s"!=e&&"ss"!=e?(s=a>=2?3===a?1e3:100:1===a?10:1,(o=Math.round(s*(n.S+n.u)))>=60*s&&(o=0),"s"===e?0===o?"0":""+o/s:(i=dl(o,2+a),"ss"===e?i.substr(0,2):"."+i.substr(2,e.length-1))):dl(n.S,e.length);case 90:switch(e){case"[h]":case"[hh]":r=24*n.D+n.H;break;case"[m]":case"[mm]":r=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":r=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+e}c=3===e.length?1:2;break;case 101:r=l,c=1}return c>0?dl(r,c):""}function Rl(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var Il=/%/g;function Ml(t,e){var n,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Ml(t,-e);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%r;if(i<0&&(i+=r),-1===(n=(e/Math.pow(10,i)).toPrecision(a+1+(r+i)%r)).indexOf("e")){var o=Math.floor(Math.log(e)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+i):n+="E+"+(o-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,r)+"."+n.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,a){return e+n+a.substr(0,(r+i)%r)+"."+a.substr(i)+"E"}))}else n=e.toExponential(a);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Fl=/# (\?+)( ?)\/( ?)(\d+)/;var Dl=/^#*0*\.([0#]+)/,jl=/\).*[0#]/,Bl=/\(###\) ###\\?-####/;function Ul(t){for(var e,n="",a=0;a!=t.length;++a)switch(e=t.charCodeAt(a)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function zl(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}function Hl(t,e){var n=t-Math.floor(t),a=Math.pow(10,e);return e<(""+Math.round(n*a)).length?0:Math.round(n*a)}function ql(t,e,n){if(40===t.charCodeAt(0)&&!e.match(jl)){var a=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?ql("n",a,n):"("+ql("n",a,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var a=e.length-1;44===e.charCodeAt(a-1);)--a;return Vl(t,e.substr(0,a),n/Math.pow(10,3*(e.length-a)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var a=e.replace(Il,""),r=e.length-a.length;return Vl(t,a,n*Math.pow(10,2*r))+Ac("%",r)}(t,e,n);if(-1!==e.indexOf("E"))return Ml(e,n);if(36===e.charCodeAt(0))return"$"+ql(t,e.substr(" "==e.charAt(1)?2:1),n);var r,i,o,s,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+gl(l,e.length);if(e.match(/^[#?]+$/))return"0"===(r=gl(n,0))&&(r=""),r.length>e.length?r:Ul(e.substr(0,e.length-r.length))+r;if(i=e.match(Fl))return function(t,e,n){var a=parseInt(t[4],10),r=Math.round(e*a),i=Math.floor(r/a),o=r-i*a,s=a;return n+(0===i?"":""+i)+" "+(0===o?Ac(" ",t[1].length+1+t[4].length):hl(o,t[1].length)+t[2]+"/"+t[3]+dl(s,t[4].length))}(i,l,c);if(e.match(/^#+0+$/))return c+gl(l,e.length-e.indexOf("0"));if(i=e.match(Dl))return r=zl(n,i[1].length).replace(/^([^\.]+)$/,"$1."+Ul(i[1])).replace(/\.$/,"."+Ul(i[1])).replace(/\.(\d*)$/,(function(t,e){return"."+e+Ac("0",Ul(i[1]).length-e.length)})),-1!==e.indexOf("0.")?r:r.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return c+zl(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return c+Rl(gl(l,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+ql(t,e,-n):Rl(""+(Math.floor(n)+function(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}(n,i[1].length)))+"."+dl(Hl(n,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return ql(t,e.replace(/^#,#*,/,""),n);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fl(ql(t,e.replace(/[\\-]/g,""),n)),o=0,fl(fl(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return o<r.length?r.charAt(o++):"0"===t?"0":""})));if(e.match(Bl))return"("+(r=ql(t,"##########",n)).substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=kl(l,Math.pow(10,o)-1,!1),r=""+c," "==(u=Vl("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),r+=u+i[2]+"/"+i[3],(u=pl(s[2],o)).length<i[4].length&&(u=Ul(i[4].substr(i[4].length-u.length))+u),r+=u;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=kl(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?hl(s[1],o)+i[2]+"/"+i[3]+pl(s[2],o):Ac(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return r=gl(n,0),e.length<=r.length?r:Ul(e.substr(0,e.length-r.length))+r;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){r=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var f=e.indexOf(".")-o,d=e.length-r.length-f;return Ul(e.substr(0,f)+r+e.substr(e.length-d))}if(i=e.match(/^00,000\.([#0]*0)$/))return o=Hl(n,i[1].length),n<0?"-"+ql(t,e,-n):Rl(function(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?dl(0,3-t.length):"")+t}))+"."+dl(o,i[1].length);switch(e){case"###,##0.00":return ql(t,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=Rl(gl(l,0));return"0"!==h?c+h:"";case"###,###.00":return ql(t,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return ql(t,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function Wl(t,e){var n,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Wl(t,-e);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%r;if(i<0&&(i+=r),!(n=(e/Math.pow(10,i)).toPrecision(a+1+(r+i)%r)).match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+i):n+="E+"+(o-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,a){return e+n+a.substr(0,(r+i)%r)+"."+a.substr(i)+"E"}))}else n=e.toExponential(a);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function Kl(t,e,n){if(40===t.charCodeAt(0)&&!e.match(jl)){var a=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Kl("n",a,n):"("+Kl("n",a,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var a=e.length-1;44===e.charCodeAt(a-1);)--a;return Vl(t,e.substr(0,a),n/Math.pow(10,3*(e.length-a)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var a=e.replace(Il,""),r=e.length-a.length;return Vl(t,a,n*Math.pow(10,2*r))+Ac("%",r)}(t,e,n);if(-1!==e.indexOf("E"))return Wl(e,n);if(36===e.charCodeAt(0))return"$"+Kl(t,e.substr(" "==e.charAt(1)?2:1),n);var r,i,o,s,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+dl(l,e.length);if(e.match(/^[#?]+$/))return r=""+n,0===n&&(r=""),r.length>e.length?r:Ul(e.substr(0,e.length-r.length))+r;if(i=e.match(Fl))return function(t,e,n){return n+(0===e?"":""+e)+Ac(" ",t[1].length+2+t[4].length)}(i,l,c);if(e.match(/^#+0+$/))return c+dl(l,e.length-e.indexOf("0"));if(i=e.match(Dl))return r=(r=(""+n).replace(/^([^\.]+)$/,"$1."+Ul(i[1])).replace(/\.$/,"."+Ul(i[1]))).replace(/\.(\d*)$/,(function(t,e){return"."+e+Ac("0",Ul(i[1]).length-e.length)})),-1!==e.indexOf("0.")?r:r.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return c+Rl(""+l);if(i=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Kl(t,e,-n):Rl(""+n)+"."+Ac("0",i[1].length);if(i=e.match(/^#,#*,#0/))return Kl(t,e.replace(/^#,#*,/,""),n);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fl(Kl(t,e.replace(/[\\-]/g,""),n)),o=0,fl(fl(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return o<r.length?r.charAt(o++):"0"===t?"0":""})));if(e.match(Bl))return"("+(r=Kl(t,"##########",n)).substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=kl(l,Math.pow(10,o)-1,!1),r=""+c," "==(u=Vl("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),r+=u+i[2]+"/"+i[3],(u=pl(s[2],o)).length<i[4].length&&(u=Ul(i[4].substr(i[4].length-u.length))+u),r+=u;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=kl(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?hl(s[1],o)+i[2]+"/"+i[3]+pl(s[2],o):Ac(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return r=""+n,e.length<=r.length?r:Ul(e.substr(0,e.length-r.length))+r;if(i=e.match(/^([#0]+)\.([#0]+)$/)){r=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var f=e.indexOf(".")-o,d=e.length-r.length-f;return Ul(e.substr(0,f)+r+e.substr(e.length-d))}if(i=e.match(/^00,000\.([#0]*0)$/))return n<0?"-"+Kl(t,e,-n):Rl(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?dl(0,3-t.length):"")+t}))+"."+dl(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var h=Rl(""+l);return"0"!==h?c+h:"";default:if(e.match(/\.[0#?]*$/))return Kl(t,e.slice(0,e.lastIndexOf(".")),n)+Ul(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function Vl(t,e,n){return(0|n)===n?Kl(t,e,n):ql(t,e,n)}var $l=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Gl(t){for(var e=0,n="",a="";e<t.length;)switch(n=t.charAt(e)){case"G":vl(t,e)&&(e+=6),e++;break;case'"':for(;34!==t.charCodeAt(++e)&&e<t.length;);++e;break;case"\\":case"_":e+=2;break;case"@":++e;break;case"B":case"b":if("1"===t.charAt(e+1)||"2"===t.charAt(e+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===t.substr(e,3).toUpperCase())return!0;if("AM/PM"===t.substr(e,5).toUpperCase())return!0;if("上午/下午"===t.substr(e,5).toUpperCase())return!0;++e;break;case"[":for(a=n;"]"!==t.charAt(e++)&&e<t.length;)a+=t.charAt(e);if(a.match($l))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(n=t.charAt(++e))>-1||"\\"==n&&"-"==t.charAt(e+1)&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===n;);break;case"*":++e," "!=t.charAt(e)&&"*"!=t.charAt(e)||++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;default:++e}return!1}var Yl=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Xl(t,e){if(null==e)return!1;var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return!0;break;case">":if(t>n)return!0;break;case"<":if(t<n)return!0;break;case"<>":if(t!=n)return!0;break;case">=":if(t>=n)return!0;break;case"<=":if(t<=n)return!0}return!1}function Jl(t,e){var n=function(t){for(var e=[],n=!1,a=0,r=0;a<t.length;++a)switch(t.charCodeAt(a)){case 34:n=!n;break;case 95:case 42:case 92:++a;break;case 59:e[e.length]=t.substr(r,a-r),r=a+1}if(e[e.length]=t.substr(r),!0===n)throw new Error("Format |"+t+"| unterminated string ");return e}(t),a=n.length,r=n[a-1].indexOf("@");if(a<4&&r>-1&&--a,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof e)return[4,4===n.length||r>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=r>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=r>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=r>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=e>0?n[0]:e<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[a,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var o=n[0].match(Yl),s=n[1].match(Yl);return Xl(e,o)?[a,n[0]]:Xl(e,s)?[a,n[1]]:[a,n[null!=o&&null!=s?2:1]]}return[a,i]}function Zl(t,e,n){null==n&&(n={});var a="";switch(typeof t){case"string":a="m/d/yy"==t&&n.dateNF?n.dateNF:t;break;case"number":null==(a=14==t&&n.dateNF?n.dateNF:(null!=n.table?n.table:yl)[t])&&(a=n.table&&n.table[wl[t]]||yl[wl[t]]),null==a&&(a=xl[t]||"General")}if(vl(a,0))return Ll(e,n);e instanceof Date&&(e=Tl(e,n.date1904));var r=Jl(a,e);if(vl(r[1]))return Ll(e,n);if(!0===e)e="TRUE";else if(!1===e)e="FALSE";else if(""===e||null==e)return"";return function(t,e,n,a){for(var r,i,o,s=[],l="",c=0,u="",f="t",d="H";c<t.length;)switch(u=t.charAt(c)){case"G":if(!vl(t,c))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(o=t.charCodeAt(++c))&&c<t.length;)l+=String.fromCharCode(o);s[s.length]={t:"t",v:l},++c;break;case"\\":var h=t.charAt(++c),p="("===h||")"===h?h:"t";s[s.length]={t:p,v:h},++c;break;case"_":s[s.length]={t:"t",v:" "},c+=2;break;case"@":s[s.length]={t:"T",v:e},++c;break;case"B":case"b":if("1"===t.charAt(c+1)||"2"===t.charAt(c+1)){if(null==r&&null==(r=Al(e,n,"2"===t.charAt(c+1))))return"";s[s.length]={t:"X",v:t.substr(c,2)},f=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0)return"";if(null==r&&null==(r=Al(e,n)))return"";for(l=u;++c<t.length&&t.charAt(c).toLowerCase()===u;)l+=u;"m"===u&&"h"===f.toLowerCase()&&(u="M"),"h"===u&&(u=d),s[s.length]={t:u,v:l},f=u;break;case"A":case"a":case"上":var m={t:u,v:u};if(null==r&&(r=Al(e,n)),"A/P"===t.substr(c,3).toUpperCase()?(null!=r&&(m.v=r.H>=12?"P":"A"),m.t="T",d="h",c+=3):"AM/PM"===t.substr(c,5).toUpperCase()?(null!=r&&(m.v=r.H>=12?"PM":"AM"),m.t="T",c+=5,d="h"):"上午/下午"===t.substr(c,5).toUpperCase()?(null!=r&&(m.v=r.H>=12?"下午":"上午"),m.t="T",c+=5,d="h"):(m.t="t",++c),null==r&&"T"===m.t)return"";s[s.length]=m,f=u;break;case"[":for(l=u;"]"!==t.charAt(c++)&&c<t.length;)l+=t.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match($l)){if(null==r&&null==(r=Al(e,n)))return"";s[s.length]={t:"Z",v:l.toLowerCase()},f=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Gl(t)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=r){for(l=u;++c<t.length&&"0"===(u=t.charAt(c));)l+=u;s[s.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<t.length&&"0#?.,E+-%".indexOf(u=t.charAt(c))>-1;)l+=u;s[s.length]={t:"n",v:l};break;case"?":for(l=u;t.charAt(++c)===u;)l+=u;s[s.length]={t:u,v:l},f=u;break;case"*":++c," "!=t.charAt(c)&&"*"!=t.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===a?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<t.length&&"0123456789".indexOf(t.charAt(++c))>-1;)l+=t.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"t",v:u},++c}var g,v=0,b=0;for(c=s.length-1,f="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=d,f="h",v<1&&(v=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":f=s[c].t;break;case"m":"s"===f&&(s[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:r.u>=.5&&(r.u=0,++r.S),r.S>=60&&(r.S=0,++r.M),r.M>=60&&(r.M=0,++r.H);break;case 2:r.u>=.5&&(r.u=0,++r.S),r.S>=60&&(r.S=0,++r.M)}var _,y="";for(c=0;c<s.length;++c)switch(s[c].t){case"t":case"T":case" ":case"D":break;case"X":s[c].v="",s[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[c].v=Ol(s[c].t.charCodeAt(0),s[c].v,r,b),s[c].t="t";break;case"n":case"?":for(_=c+1;null!=s[_]&&("?"===(u=s[_].t)||"D"===u||(" "===u||"t"===u)&&null!=s[_+1]&&("?"===s[_+1].t||"t"===s[_+1].t&&"/"===s[_+1].v)||"("===s[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[_].v||" "===s[_].v&&null!=s[_+1]&&"?"==s[_+1].t));)s[c].v+=s[_].v,s[_]={v:"",t:";"},++_;y+=s[c].v,c=_-1;break;case"G":s[c].t="t",s[c].v=Ll(e,n)}var w,x,k="";if(y.length>0){40==y.charCodeAt(0)?(w=e<0&&45===y.charCodeAt(0)?-e:e,x=Vl("n",y,w)):(x=Vl("n",y,w=e<0&&a>1?-e:e),w<0&&s[0]&&"t"==s[0].t&&(x=x.substr(1),s[0].v="-"+s[0].v)),_=x.length-1;var A=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&"t"!=s[c].t&&s[c].v.indexOf(".")>-1){A=c;break}var S=s.length;if(A===s.length&&-1===x.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(_>=s[c].v.length-1?(_-=s[c].v.length,s[c].v=x.substr(_+1,s[c].v.length)):_<0?s[c].v="":(s[c].v=x.substr(0,_+1),_=-1),s[c].t="t",S=c);_>=0&&S<s.length&&(s[S].v=x.substr(0,_+1)+s[S].v)}else if(A!==s.length&&-1===x.indexOf("E")){for(_=x.indexOf(".")-1,c=A;c>=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(i=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")-1:s[c].v.length-1,k=s[c].v.substr(i+1);i>=0;--i)_>=0&&("0"===s[c].v.charAt(i)||"#"===s[c].v.charAt(i))&&(k=x.charAt(_--)+k);s[c].v=k,s[c].t="t",S=c}for(_>=0&&S<s.length&&(s[S].v=x.substr(0,_+1)+s[S].v),_=x.indexOf(".")+1,c=A;c<s.length;++c)if(null!=s[c]&&(-1!=="n?(".indexOf(s[c].t)||c===A)){for(i=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")+1:0,k=s[c].v.substr(0,i);i<s[c].v.length;++i)_<x.length&&(k+=x.charAt(_++));s[c].v=k,s[c].t="t",S=c}}}for(c=0;c<s.length;++c)null!=s[c]&&"n?".indexOf(s[c].t)>-1&&(w=a>1&&e<0&&c>0&&"-"===s[c-1].v?-e:e,s[c].v=Vl(s[c].t,s[c].v,w),s[c].t="t");var C="";for(c=0;c!==s.length;++c)null!=s[c]&&(C+=s[c].v);return C}(r[1],e,n,r[0])}function Ql(t,e){if("number"!=typeof e){e=+e||-1;for(var n=0;n<392;++n)if(null!=yl[n]){if(yl[n]==t){e=n;break}}else e<0&&(e=n);e<0&&(e=391)}return yl[e]=t,e}function tc(t){for(var e=0;392!=e;++e)void 0!==t[e]&&Ql(t[e],e)}function ec(){yl=function(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}()}var nc=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var ac=function(){var t={};t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),n=0;256!=n;++n)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=n)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[n]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();var n=function(t){var e=0,n=0,a=0,r="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)r[a]=t[a];for(a=0;256!=a;++a)for(n=t[a],e=256+a;e<4096;e+=256)n=r[e]=n>>>8^t[255&n];var i=[];for(a=1;16!=a;++a)i[a-1]="undefined"!=typeof Int32Array?r.subarray(256*a,256*a+256):r.slice(256*a,256*a+256);return i}(e),a=n[0],r=n[1],i=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],m=n[12],g=n[13],v=n[14];return t.table=e,t.bstr=function(t,n){for(var a=~n,r=0,i=t.length;r<i;)a=a>>>8^e[255&(a^t.charCodeAt(r++))];return~a},t.buf=function(t,n){for(var b=~n,_=t.length-15,y=0;y<_;)b=v[t[y++]^255&b]^g[t[y++]^b>>8&255]^m[t[y++]^b>>16&255]^p[t[y++]^b>>>24]^h[t[y++]]^d[t[y++]]^f[t[y++]]^u[t[y++]]^c[t[y++]]^l[t[y++]]^s[t[y++]]^o[t[y++]]^i[t[y++]]^r[t[y++]]^a[t[y++]]^e[t[y++]];for(_+=15;y<_;)b=b>>>8^e[255&(b^t[y++])];return~b},t.str=function(t,n){for(var a=~n,r=0,i=t.length,o=0,s=0;r<i;)(o=t.charCodeAt(r++))<128?a=a>>>8^e[255&(a^o)]:o<2048?a=(a=a>>>8^e[255&(a^(192|o>>6&31))])>>>8^e[255&(a^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&t.charCodeAt(r++),a=(a=(a=(a=a>>>8^e[255&(a^(240|o>>8&7))])>>>8^e[255&(a^(128|o>>2&63))])>>>8^e[255&(a^(128|s>>6&15|(3&o)<<4))])>>>8^e[255&(a^(128|63&s))]):a=(a=(a=a>>>8^e[255&(a^(224|o>>12&15))])>>>8^e[255&(a^(128|o>>6&63))])>>>8^e[255&(a^(128|63&o))];return~a},t}(),rc=function(){var t,e={};function n(t){if("/"==t.charAt(t.length-1))return-1===t.slice(0,-1).indexOf("/")?t:n(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(0,e+1)}function a(t){if("/"==t.charAt(t.length-1))return a(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)}function r(t,e){"string"==typeof e&&(e=new Date(e));var n=e.getHours();n=(n=n<<6|e.getMinutes())<<5|e.getSeconds()>>>1,t.write_shift(2,n);var a=e.getFullYear()-1980;a=(a=a<<4|e.getMonth()+1)<<5|e.getDate(),t.write_shift(2,a)}function i(t){Mu(t,0);for(var e={},n=0;t.l<=t.length-4;){var a=t.read_shift(2),r=t.read_shift(2),i=t.l+r,o={};if(21589===a)1&(n=t.read_shift(1))&&(o.mtime=t.read_shift(4)),r>5&&(2&n&&(o.atime=t.read_shift(4)),4&n&&(o.ctime=t.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime));t.l=i,e[a]=o}return e}function o(){return t||(t={})}function s(t,e){if(80==t[0]&&75==t[1])return at(t,e);if(109==(32|t[0])&&105==(32|t[1]))return function(t,e){if("mime-version:"!=x(t.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=e&&e.root||"",a=(el&&Ds.isBuffer(t)?t.toString("binary"):x(t)).split("\r\n"),r=0,i="";for(r=0;r<a.length;++r)if(i=a[r],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var o=(a[1]||"").match(/boundary="(.*?)"/);if(!o)throw new Error("MAD cannot find boundary");var s="--"+(o[1]||""),l=[],c=[],u={FileIndex:l,FullPaths:c};d(u);var f,h=0;for(r=0;r<a.length;++r){var p=a[r];p!==s&&p!==s+"--"||(h++&&ct(u,a.slice(f,r),n),f=r)}return u}(t,e);if(t.length<512)throw new Error("CFB file size "+t.length+" < 512");var n,a,r,i,o,s,h=512,p=[],m=t.slice(0,512);Mu(m,0);var g=function(t){if(80==t[t.l]&&75==t[t.l+1])return[0,0];t.chk(b,"Header Signature: "),t.l+=16;var e=t.read_shift(2,"u");return[t.read_shift(2,"u"),e]}(m);switch(n=g[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==g[1])return at(t,e);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&Mu(m=t.slice(0,h),28);var _=t.slice(0,h);!function(t,e){var n=9;switch(t.l+=2,n=t.read_shift(2)){case 9:if(3!=e)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=e)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}t.chk("0600","Mini Sector Shift: "),t.chk("000000000000","Reserved: ")}(m,n);var y=m.read_shift(4,"i");if(3===n&&0!==y)throw new Error("# Directory Sectors: Expected 0 saw "+y);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),o=m.read_shift(4,"i"),a=m.read_shift(4,"i"),s=m.read_shift(4,"i"),r=m.read_shift(4,"i");for(var w=-1,k=0;k<109&&!((w=m.read_shift(4,"i"))<0);++k)p[k]=w;var A=function(t,e){for(var n=Math.ceil(t.length/e)-1,a=[],r=1;r<n;++r)a[r-1]=t.slice(r*e,(r+1)*e);return a[n-1]=t.slice(n*e),a}(t,h);c(s,r,A,h,p);var S=function(t,e,n,a){var r=t.length,i=[],o=[],s=[],l=[],c=a-1,u=0,f=0,d=0,h=0;for(u=0;u<r;++u)if(s=[],(d=u+e)>=r&&(d-=r),!o[d]){l=[];var p=[];for(f=d;f>=0;){p[f]=!0,o[f]=!0,s[s.length]=f,l.push(t[f]);var m=n[Math.floor(4*f/a)];if(a<4+(h=4*f&c))throw new Error("FAT boundary crossed: "+f+" 4 "+a);if(!t[m])break;if(p[f=Eu(t[m],h)])break}i[d]={nodes:s,data:nu([l])}}return i}(A,i,p,h);S[i].name="!Directory",a>0&&o!==v&&(S[o].name="!MiniFAT"),S[p[0]].name="!FAT",S.fat_addrs=p,S.ssz=h;var C=[],E=[],T=[];!function(t,e,n,a,r,i,o,s){for(var c,d=0,h=a.length?2:0,p=e[t].data,m=0,g=0;m<p.length;m+=128){var b=p.slice(m,m+128);Mu(b,64),g=b.read_shift(2),c=ru(b,0,g-h),a.push(c);var _={name:c,type:b.read_shift(1),color:b.read_shift(1),L:b.read_shift(4,"i"),R:b.read_shift(4,"i"),C:b.read_shift(4,"i"),clsid:b.read_shift(16),state:b.read_shift(4,"i"),start:0,size:0};0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(_.ct=f(b,b.l-8)),0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(_.mt=f(b,b.l-8)),_.start=b.read_shift(4,"i"),_.size=b.read_shift(4,"i"),_.size<0&&_.start<0&&(_.size=_.type=0,_.start=v,_.name=""),5===_.type?(d=_.start,r>0&&d!==v&&(e[d].name="!StreamData")):_.size>=4096?(_.storage="fat",void 0===e[_.start]&&(e[_.start]=u(n,_.start,e.fat_addrs,e.ssz)),e[_.start].name=_.name,_.content=e[_.start].data.slice(0,_.size)):(_.storage="minifat",_.size<0?_.size=0:d!==v&&_.start!==v&&e[d]&&(_.content=l(_,e[d].data,(e[s]||{}).data))),_.content&&Mu(_.content,0),i[c]=_,o.push(_)}}(i,S,A,C,a,{},E,o),function(t,e,n){for(var a=0,r=0,i=0,o=0,s=0,l=n.length,c=[],u=[];a<l;++a)c[a]=u[a]=a,e[a]=n[a];for(;s<u.length;++s)r=t[a=u[s]].L,i=t[a].R,o=t[a].C,c[a]===a&&(-1!==r&&c[r]!==r&&(c[a]=c[r]),-1!==i&&c[i]!==i&&(c[a]=c[i])),-1!==o&&(c[o]=a),-1!==r&&a!=c[a]&&(c[r]=c[a],u.lastIndexOf(r)<s&&u.push(r)),-1!==i&&a!=c[a]&&(c[i]=c[a],u.lastIndexOf(i)<s&&u.push(i));for(a=1;a<l;++a)c[a]===a&&(-1!==i&&c[i]!==i?c[a]=c[i]:-1!==r&&c[r]!==r&&(c[a]=c[r]));for(a=1;a<l;++a)if(0!==t[a].type){if((s=a)!=c[s])do{s=c[s],e[a]=e[s]+"/"+e[a]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[a]=-1}for(e[0]+="/",a=1;a<l;++a)2!==t[a].type&&(e[a]+="/")}(E,T,C),C.shift();var N={FileIndex:E,FullPaths:T};return e&&e.raw&&(N.raw={header:_,sectors:A}),N}function l(t,e,n){for(var a=t.start,r=t.size,i=[],o=a;n&&r>0&&o>=0;)i.push(e.slice(o*g,o*g+g)),r-=g,o=Eu(n,4*o);return 0===i.length?Du(0):ll(i).slice(0,t.size)}function c(t,e,n,a,r){var i=v;if(t===v){if(0!==e)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var o=n[t],s=(a>>>2)-1;if(!o)return;for(var l=0;l<s&&(i=Eu(o,4*l))!==v;++l)r.push(i);c(Eu(o,a-4),e-1,n,a,r)}}function u(t,e,n,a,r){var i=[],o=[];r||(r=[]);var s=a-1,l=0,c=0;for(l=e;l>=0;){r[l]=!0,i[i.length]=l,o.push(t[l]);var u=n[Math.floor(4*l/a)];if(a<4+(c=4*l&s))throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!t[u])break;l=Eu(t[u],c)}return{nodes:i,data:nu([o])}}function f(t,e){return new Date(1e3*(Cu(t,e+4)/1e7*Math.pow(2,32)+Cu(t,e)/1e7-11644473600))}function d(t,e){var n=e||{},a=n.root||"Root Entry";if(t.FullPaths||(t.FullPaths=[]),t.FileIndex||(t.FileIndex=[]),t.FullPaths.length!==t.FileIndex.length)throw new Error("inconsistent CFB structure");0===t.FullPaths.length&&(t.FullPaths[0]=a+"/",t.FileIndex[0]={name:a,type:5}),n.CLSID&&(t.FileIndex[0].clsid=n.CLSID),function(t){var e="Sh33tJ5";if(rc.find(t,"/"+e))return;var n=Du(4);n[0]=55,n[1]=n[3]=50,n[2]=54,t.FileIndex.push({name:e,type:2,content:n,size:4,L:69,R:69,C:69}),t.FullPaths.push(t.FullPaths[0]+e),h(t)}(t)}function h(t,e){d(t);for(var r=!1,i=!1,o=t.FullPaths.length-1;o>=0;--o){var s=t.FileIndex[o];switch(s.type){case 0:i?r=!0:(t.FileIndex.pop(),t.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(s.R*s.L*s.C)&&(r=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(r=!0);break;default:r=!0}}if(r||e){var l=new Date(1987,1,19),c=0,u=Object.create?Object.create(null):{},f=[];for(o=0;o<t.FullPaths.length;++o)u[t.FullPaths[o]]=!0,0!==t.FileIndex[o].type&&f.push([t.FullPaths[o],t.FileIndex[o]]);for(o=0;o<f.length;++o){var h=n(f[o][0]);(i=u[h])||(f.push([h,{name:a(h).replace("/",""),type:1,clsid:y,ct:l,mt:l,content:null}]),u[h]=!0)}for(f.sort((function(t,e){return function(t,e){for(var n=t.split("/"),a=e.split("/"),r=0,i=0,o=Math.min(n.length,a.length);r<o;++r){if(i=n[r].length-a[r].length)return i;if(n[r]!=a[r])return n[r]<a[r]?-1:1}return n.length-a.length}(t[0],e[0])})),t.FullPaths=[],t.FileIndex=[],o=0;o<f.length;++o)t.FullPaths[o]=f[o][0],t.FileIndex[o]=f[o][1];for(o=0;o<f.length;++o){var p=t.FileIndex[o],m=t.FullPaths[o];if(p.name=a(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||y,0===o)p.C=f.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(c=o+1;c<f.length&&n(t.FullPaths[c])!=m;++c);for(p.C=c>=f.length?-1:c,c=o+1;c<f.length&&n(t.FullPaths[c])!=n(m);++c);p.R=c>=f.length?-1:c,p.type=1}else n(t.FullPaths[o+1]||"")==n(m)&&(p.R=o+1),p.type=2}}}function p(t,e){var n=e||{};if("mad"==n.fileType)return function(t,e){for(var n=e||{},a=n.boundary||"SheetJS",r=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(a="------="+a).slice(2)+'"',"","",""],i=t.FullPaths[0],o=i,s=t.FileIndex[0],l=1;l<t.FullPaths.length;++l)if(o=t.FullPaths[l].slice(i.length),(s=t.FileIndex[l]).size&&s.content&&"Sh33tJ5"!=o){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(t){return"_x"+t.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(t){return"_u"+t.charCodeAt(0).toString(16)+"_"}));for(var c=s.content,u=el&&Ds.isBuffer(c)?c.toString("binary"):x(c),f=0,d=Math.min(1024,u.length),h=0,p=0;p<=d;++p)(h=u.charCodeAt(p))>=32&&h<128&&++f;var m=f>=4*d/5;r.push(a),r.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+o),r.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),r.push("Content-Type: "+ot(s,o)),r.push(""),r.push(m?lt(u):st(u))}return r.push(a+"--\r\n"),r.join("\r\n")}(t,n);if(h(t),"zip"===n.fileType)return function(t,e){var n=e||{},a=[],i=[],o=Du(1),s=n.compression?8:0,l=0;0;var c=0,u=0,f=0,d=0,h=t.FullPaths[0],p=h,m=t.FileIndex[0],g=[],v=0;for(c=1;c<t.FullPaths.length;++c)if(p=t.FullPaths[c].slice(h.length),(m=t.FileIndex[c]).size&&m.content&&"Sh33tJ5"!=p){var b=f,_=Du(p.length);for(u=0;u<p.length;++u)_.write_shift(1,127&p.charCodeAt(u));_=_.slice(0,_.l),g[d]=ac.buf(m.content,0);var y=m.content;8==s&&(y=k(y)),(o=Du(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),m.mt?r(o,m.mt):o.write_shift(4,0),o.write_shift(-4,8&l?0:g[d]),o.write_shift(4,8&l?0:y.length),o.write_shift(4,8&l?0:m.content.length),o.write_shift(2,_.length),o.write_shift(2,0),f+=o.length,a.push(o),f+=_.length,a.push(_),f+=y.length,a.push(y),8&l&&((o=Du(12)).write_shift(-4,g[d]),o.write_shift(4,y.length),o.write_shift(4,m.content.length),f+=o.l,a.push(o)),(o=Du(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,g[d]),o.write_shift(4,y.length),o.write_shift(4,m.content.length),o.write_shift(2,_.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,b),v+=o.l,i.push(o),v+=_.length,i.push(_),++d}return o=Du(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,d),o.write_shift(2,d),o.write_shift(4,v),o.write_shift(4,f),o.write_shift(2,0),ll([ll(a),ll(i),o])}(t,n);var a=function(t){for(var e=0,n=0,a=0;a<t.FileIndex.length;++a){var r=t.FileIndex[a];if(r.content){var i=r.content.length;i>0&&(i<4096?e+=i+63>>6:n+=i+511>>9)}}for(var o=t.FullPaths.length+3>>2,s=e+127>>7,l=(e+7>>3)+n+o+s,c=l+127>>7,u=c<=109?0:Math.ceil((c-109)/127);l+c+u+127>>7>c;)u=++c<=109?0:Math.ceil((c-109)/127);var f=[1,u,c,s,o,n,e,0];return t.FileIndex[0].size=e<<6,f[7]=(t.FileIndex[0].start=f[0]+f[1]+f[2]+f[3]+f[4]+f[5])+(f[6]+7>>3),f}(t),i=Du(a[7]<<9),o=0,s=0;for(o=0;o<8;++o)i.write_shift(1,_[o]);for(o=0;o<8;++o)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),o=0;o<3;++o)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,a[2]),i.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:v),i.write_shift(4,a[3]),i.write_shift(-4,a[1]?a[0]-1:v),i.write_shift(4,a[1]),o=0;o<109;++o)i.write_shift(-4,o<a[2]?a[1]+o:-1);if(a[1])for(s=0;s<a[1];++s){for(;o<236+127*s;++o)i.write_shift(-4,o<a[2]?a[1]+o:-1);i.write_shift(-4,s===a[1]-1?v:s+1)}var l=function(t){for(s+=t;o<s-1;++o)i.write_shift(-4,o+1);t&&(++o,i.write_shift(-4,v))};for(s=o=0,s+=a[1];o<s;++o)i.write_shift(-4,w.DIFSECT);for(s+=a[2];o<s;++o)i.write_shift(-4,w.FATSECT);l(a[3]),l(a[4]);for(var c=0,u=0,f=t.FileIndex[0];c<t.FileIndex.length;++c)(f=t.FileIndex[c]).content&&((u=f.content.length)<4096||(f.start=s,l(u+511>>9)));for(l(a[6]+7>>3);511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(s=o=0,c=0;c<t.FileIndex.length;++c)(f=t.FileIndex[c]).content&&(!(u=f.content.length)||u>=4096||(f.start=s,l(u+63>>6)));for(;511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(o=0;o<a[4]<<2;++o){var d=t.FullPaths[o];if(d&&0!==d.length){f=t.FileIndex[o],0===o&&(f.start=f.size?f.start-1:v);var p=0===o&&n.root||f.name;if(u=2*(p.length+1),i.write_shift(64,p,"utf16le"),i.write_shift(2,u),i.write_shift(1,f.type),i.write_shift(1,f.color),i.write_shift(-4,f.L),i.write_shift(-4,f.R),i.write_shift(-4,f.C),f.clsid)i.write_shift(16,f.clsid,"hex");else for(c=0;c<4;++c)i.write_shift(4,0);i.write_shift(4,f.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,f.start),i.write_shift(4,f.size),i.write_shift(4,0)}else{for(c=0;c<17;++c)i.write_shift(4,0);for(c=0;c<3;++c)i.write_shift(4,-1);for(c=0;c<12;++c)i.write_shift(4,0)}}for(o=1;o<t.FileIndex.length;++o)if((f=t.FileIndex[o]).size>=4096)if(i.l=f.start+1<<9,el&&Ds.isBuffer(f.content))f.content.copy(i,i.l,0,f.size),i.l+=f.size+511&-512;else{for(c=0;c<f.size;++c)i.write_shift(1,f.content[c]);for(;511&c;++c)i.write_shift(1,0)}for(o=1;o<t.FileIndex.length;++o)if((f=t.FileIndex[o]).size>0&&f.size<4096)if(el&&Ds.isBuffer(f.content))f.content.copy(i,i.l,0,f.size),i.l+=f.size+63&-64;else{for(c=0;c<f.size;++c)i.write_shift(1,f.content[c]);for(;63&c;++c)i.write_shift(1,0)}if(el)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}e.version="1.2.1";var m,g=64,v=-2,b="d0cf11e0a1b11ae1",_=[208,207,17,224,161,177,26,225],y="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:v,FREESECT:-1,HEADER_SIGNATURE:b,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:y,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function k(t){return m?m.deflateRawSync(t):G(t)}var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],C=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function E(t){var e=139536&(t<<1|t<<11)|558144&(t<<5|t<<15);return 255&(e>>16|e>>8|e)}for(var T="undefined"!=typeof Uint8Array,N=T?new Uint8Array(256):[],P=0;P<256;++P)N[P]=E(P);function L(t,e){var n=N[255&t];return e<=8?n>>>8-e:(n=n<<8|N[t>>8&255],e<=16?n>>>16-e:(n=n<<8|N[t>>16&255])>>>24-e)}function O(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=6?0:t[a+1]<<8))>>>n&3}function R(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=5?0:t[a+1]<<8))>>>n&7}function I(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=3?0:t[a+1]<<8))>>>n&31}function M(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=1?0:t[a+1]<<8))>>>n&127}function F(t,e,n){var a=7&e,r=e>>>3,i=(1<<n)-1,o=t[r]>>>a;return n<8-a?o&i:(o|=t[r+1]<<8-a,n<16-a?o&i:(o|=t[r+2]<<16-a,n<24-a?o&i:(o|=t[r+3]<<24-a)&i))}function D(t,e,n){var a=7&e,r=e>>>3;return a<=5?t[r]|=(7&n)<<a:(t[r]|=n<<a&255,t[r+1]=(7&n)>>8-a),e+3}function j(t,e,n){return n=(1&n)<<(7&e),t[e>>>3]|=n,e+1}function B(t,e,n){var a=e>>>3;return n<<=7&e,t[a]|=255&n,n>>>=8,t[a+1]=n,e+8}function U(t,e,n){var a=e>>>3;return n<<=7&e,t[a]|=255&n,n>>>=8,t[a+1]=255&n,t[a+2]=n>>>8,e+16}function z(t,e){var n=t.length,a=2*n>e?2*n:e+5,r=0;if(n>=e)return t;if(el){var i=rl(a);if(t.copy)t.copy(i);else for(;r<t.length;++r)i[r]=t[r];return i}if(T){var o=new Uint8Array(a);if(o.set)o.set(t);else for(;r<n;++r)o[r]=t[r];return o}return t.length=a,t}function H(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function q(t,e,n){var a=1,r=0,i=0,o=0,s=0,l=t.length,c=T?new Uint16Array(32):H(32);for(i=0;i<32;++i)c[i]=0;for(i=l;i<n;++i)t[i]=0;l=t.length;var u=T?new Uint16Array(l):H(l);for(i=0;i<l;++i)c[r=t[i]]++,a<r&&(a=r),u[i]=0;for(c[0]=0,i=1;i<=a;++i)c[i+16]=s=s+c[i-1]<<1;for(i=0;i<l;++i)0!=(s=t[i])&&(u[i]=c[s+16]++);var f=0;for(i=0;i<l;++i)if(0!=(f=t[i]))for(s=L(u[i],a)>>a-f,o=(1<<a+4-f)-1;o>=0;--o)e[s|o<<f]=15&f|i<<4;return a}var W=T?new Uint16Array(512):H(512),K=T?new Uint16Array(32):H(32);if(!T){for(var V=0;V<512;++V)W[V]=0;for(V=0;V<32;++V)K[V]=0}!function(){for(var t=[],e=0;e<32;e++)t.push(5);q(t,K,32);var n=[];for(e=0;e<=143;e++)n.push(8);for(;e<=255;e++)n.push(9);for(;e<=279;e++)n.push(7);for(;e<=287;e++)n.push(8);q(n,W,288)}();var $=function(){for(var t=T?new Uint8Array(32768):[],e=0,n=0;e<C.length-1;++e)for(;n<C[e+1];++n)t[n]=e;for(;n<32768;++n)t[n]=29;var a=T?new Uint8Array(259):[];for(e=0,n=0;e<S.length-1;++e)for(;n<S[e+1];++n)a[n]=e;return function(e,n){return e.length<8?function(t,e){for(var n=0;n<t.length;){var a=Math.min(65535,t.length-n),r=n+a==t.length;for(e.write_shift(1,+r),e.write_shift(2,a),e.write_shift(2,65535&~a);a-- >0;)e[e.l++]=t[n++]}return e.l}(e,n):function(e,n){for(var r=0,i=0,o=T?new Uint16Array(32768):[];i<e.length;){var s=Math.min(65535,e.length-i);if(s<10){for(7&(r=D(n,r,+!(i+s!=e.length)))&&(r+=8-(7&r)),n.l=r/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=e[i++];r=8*n.l}else{r=D(n,r,+!(i+s!=e.length)+2);for(var l=0;s-- >0;){var c=e[i],u=-1,f=0;if((u=o[l=32767&(l<<5^c)])&&((u|=-32768&i)>i&&(u-=32768),u<i))for(;e[u+f]==e[i+f]&&f<250;)++f;if(f>2){(c=a[f])<=22?r=B(n,r,N[c+1]>>1)-1:(B(n,r,3),B(n,r+=5,N[c-23]>>5),r+=3);var d=c<8?0:c-4>>2;d>0&&(U(n,r,f-S[c]),r+=d),c=t[i-u],r=B(n,r,N[c]>>3),r-=3;var h=c<4?0:c-2>>1;h>0&&(U(n,r,i-u-C[c]),r+=h);for(var p=0;p<f;++p)o[l]=32767&i,l=32767&(l<<5^e[i]),++i;s-=f-1}else c<=143?c+=48:r=j(n,r,1),r=B(n,r,N[c]),o[l]=32767&i,++i}r=B(n,r,0)-1}}return n.l=(r+7)/8|0,n.l}(e,n)}}();function G(t){var e=Du(50+Math.floor(1.1*t.length)),n=$(t,e);return e.slice(0,n)}var Y=T?new Uint16Array(32768):H(32768),X=T?new Uint16Array(32768):H(32768),J=T?new Uint16Array(128):H(128),Z=1,Q=1;function tt(t,e){var n=I(t,e)+257,a=I(t,e+=5)+1,r=function(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=4?0:t[a+1]<<8))>>>n&15}(t,e+=5)+4;e+=4;for(var i=0,o=T?new Uint8Array(19):H(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=T?new Uint8Array(8):H(8),u=T?new Uint8Array(8):H(8),f=o.length,d=0;d<r;++d)o[A[d]]=i=R(t,e),l<i&&(l=i),c[i]++,e+=3;var h=0;for(c[0]=0,d=1;d<=l;++d)u[d]=h=h+c[d-1]<<1;for(d=0;d<f;++d)0!=(h=o[d])&&(s[d]=u[h]++);var p=0;for(d=0;d<f;++d)if(0!=(p=o[d])){h=N[s[d]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)J[h|m<<p]=7&p|d<<3}var g=[];for(l=1;g.length<n+a;)switch(e+=7&(h=J[M(t,e)]),h>>>=3){case 16:for(i=3+O(t,e),e+=2,h=g[g.length-1];i-- >0;)g.push(h);break;case 17:for(i=3+R(t,e),e+=3;i-- >0;)g.push(0);break;case 18:for(i=11+M(t,e),e+=7;i-- >0;)g.push(0);break;default:g.push(h),l<h&&(l=h)}var v=g.slice(0,n),b=g.slice(n);for(d=n;d<286;++d)v[d]=0;for(d=a;d<30;++d)b[d]=0;return Z=q(v,Y,286),Q=q(b,X,30),e}function et(t,e){var n=function(t,e){if(3==t[0]&&!(3&t[1]))return[al(e),2];for(var n=0,a=0,r=rl(e||1<<18),i=0,o=r.length>>>0,s=0,l=0;!(1&a);)if(a=R(t,n),n+=3,a>>>1!=0)for(a>>1==1?(s=9,l=5):(n=tt(t,n),s=Z,l=Q);;){!e&&o<i+32767&&(o=(r=z(r,i+32767)).length);var c=F(t,n,s),u=a>>>1==1?W[c]:Y[c];if(n+=15&u,(u>>>=4)>>>8&255){if(256==u)break;var f=(u-=257)<8?0:u-4>>2;f>5&&(f=0);var d=i+S[u];f>0&&(d+=F(t,n,f),n+=f),c=F(t,n,l),n+=15&(u=a>>>1==1?K[c]:X[c]);var h=(u>>>=4)<4?0:u-2>>1,p=C[u];for(h>0&&(p+=F(t,n,h),n+=h),!e&&o<d&&(o=(r=z(r,d+100)).length);i<d;)r[i]=r[i-p],++i}else r[i++]=u}else{7&n&&(n+=8-(7&n));var m=t[n>>>3]|t[1+(n>>>3)]<<8;if(n+=32,m>0)for(!e&&o<i+m&&(o=(r=z(r,i+m)).length);m-- >0;)r[i++]=t[n>>>3],n+=8}return e?[r,n+7>>>3]:[r.slice(0,i),n+7>>>3]}(t.slice(t.l||0),e);return t.l+=n[1],n[0]}function nt(t,e){if(!t)throw new Error(e);"undefined"!=typeof console&&console.error(e)}function at(t,e){var n=t;Mu(n,0);var a={FileIndex:[],FullPaths:[]};d(a,{root:e.root});for(var r=n.length-4;(80!=n[r]||75!=n[r+1]||5!=n[r+2]||6!=n[r+3])&&r>=0;)--r;n.l=r+4,n.l+=4;var o=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,r=0;r<o;++r){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),u=n.read_shift(2),f=n.read_shift(2),h=n.read_shift(2);n.l+=8;var p=n.read_shift(4),m=i(n.slice(n.l+u,n.l+u+f));n.l+=u+f+h;var g=n.l;n.l=p+4,rt(n,l,c,a,m),n.l=g}return a}function rt(t,e,n,a,r){t.l+=2;var o=t.read_shift(2),s=t.read_shift(2),l=function(t){var e=65535&t.read_shift(2),n=65535&t.read_shift(2),a=new Date,r=31&n,i=15&(n>>>=5);n>>>=4,a.setMilliseconds(0),a.setFullYear(n+1980),a.setMonth(i-1),a.setDate(r);var o=31&e,s=63&(e>>>=5);return e>>>=6,a.setHours(e),a.setMinutes(s),a.setSeconds(o<<1),a}(t);if(8257&o)throw new Error("Unsupported ZIP encryption");t.read_shift(4);for(var c=t.read_shift(4),u=t.read_shift(4),f=t.read_shift(2),d=t.read_shift(2),h="",p=0;p<f;++p)h+=String.fromCharCode(t[t.l++]);if(d){var g=i(t.slice(t.l,t.l+d));(g[21589]||{}).mt&&(l=g[21589].mt),((r||{})[21589]||{}).mt&&(l=r[21589].mt)}t.l+=d;var v=t.slice(t.l,t.l+c);switch(s){case 8:v=function(t,e){if(!m)return et(t,e);var n=new(0,m.InflateRaw),a=n._processChunk(t.slice(t.l),n._finishFlushFlag);return t.l+=n.bytesRead,a}(t,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var b=!1;8&o&&(134695760==t.read_shift(4)&&(t.read_shift(4),b=!0),c=t.read_shift(4),u=t.read_shift(4)),c!=e&&nt(b,"Bad compressed size: "+e+" != "+c),u!=n&&nt(b,"Bad uncompressed size: "+n+" != "+u),ut(a,h,v,{unsafe:!0,mt:l})}var it={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ot(t,e){if(t.ctype)return t.ctype;var n=t.name||"",a=n.match(/\.([^\.]+)$/);return a&&it[a[1]]||e&&(a=(n=e).match(/[\.\\]([^\.\\])+$/))&&it[a[1]]?it[a[1]]:"application/octet-stream"}function st(t){for(var e=Qs(t),n=[],a=0;a<e.length;a+=76)n.push(e.slice(a,a+76));return n.join("\r\n")+"\r\n"}function lt(t){var e=t.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"="+(1==e.length?"0"+e:e)}));"\n"==(e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var n=[],a=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),r=0;r<a.length;++r){var i=a[r];if(0!=i.length)for(var o=0;o<i.length;){var s=76,l=i.slice(o,o+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=i.slice(o,o+s),(o+=s)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function ct(t,e,n){for(var a,r="",i="",o="",s=0;s<10;++s){var l=e[s];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":r=c[2].trim();break;case"content-type":o=c[2].trim();break;case"content-transfer-encoding":i=c[2].trim()}}switch(++s,i.toLowerCase()){case"base64":a=il(tl(e.slice(s).join("")));break;case"quoted-printable":a=function(t){for(var e=[],n=0;n<t.length;++n){for(var a=t[n];n<=t.length&&"="==a.charAt(a.length-1);)a=a.slice(0,a.length-1)+t[++n];e.push(a)}for(var r=0;r<e.length;++r)e[r]=e[r].replace(/[=][0-9A-Fa-f]{2}/g,(function(t){return String.fromCharCode(parseInt(t.slice(1),16))}));return il(e.join("\r\n"))}(e.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var u=ut(t,r.slice(n.length),a,{unsafe:!0});o&&(u.ctype=o)}function ut(t,e,n,r){var i=r&&r.unsafe;i||d(t);var o=!i&&rc.find(t,e);if(!o){var s=t.FullPaths[0];e.slice(0,s.length)==s?s=e:("/"!=s.slice(-1)&&(s+="/"),s=(s+e).replace("//","/")),o={name:a(e),type:2},t.FileIndex.push(o),t.FullPaths.push(s),i||rc.utils.cfb_gc(t)}return o.content=n,o.size=n?n.length:0,r&&(r.CLSID&&(o.clsid=r.CLSID),r.mt&&(o.mt=r.mt),r.ct&&(o.ct=r.ct)),o}return e.find=function(t,e){var n=t.FullPaths.map((function(t){return t.toUpperCase()})),a=n.map((function(t){var e=t.split("/");return e[e.length-("/"==t.slice(-1)?2:1)]})),r=!1;47===e.charCodeAt(0)?(r=!0,e=n[0].slice(0,-1)+e):r=-1!==e.indexOf("/");var i=e.toUpperCase(),o=!0===r?n.indexOf(i):a.indexOf(i);if(-1!==o)return t.FileIndex[o];var s=!i.match(ul);for(i=i.replace(cl,""),s&&(i=i.replace(ul,"!")),o=0;o<n.length;++o){if((s?n[o].replace(ul,"!"):n[o]).replace(cl,"")==i)return t.FileIndex[o];if((s?a[o].replace(ul,"!"):a[o]).replace(cl,"")==i)return t.FileIndex[o]}return null},e.read=function(e,n){var a=n&&n.type;switch(a||el&&Ds.isBuffer(e)&&(a="buffer"),a||"base64"){case"file":return function(e,n){return o(),s(t.readFileSync(e),n)}(e,n);case"base64":return s(il(tl(e)),n);case"binary":return s(il(e),n)}return s(e,n)},e.parse=s,e.write=function(e,n){var a=p(e,n);switch(n&&n.type||"buffer"){case"file":return o(),t.writeFileSync(n.filename,a),a;case"binary":return"string"==typeof a?a:x(a);case"base64":return Qs("string"==typeof a?a:x(a));case"buffer":if(el)return Ds.isBuffer(a)?a:nl(a);case"array":return"string"==typeof a?il(a):a}return a},e.writeFile=function(e,n,a){o();var r=p(e,a);t.writeFileSync(n,r)},e.utils={cfb_new:function(t){var e={};return d(e,t),e},cfb_add:ut,cfb_del:function(t,e){d(t);var n=rc.find(t,e);if(n)for(var a=0;a<t.FileIndex.length;++a)if(t.FileIndex[a]==n)return t.FileIndex.splice(a,1),t.FullPaths.splice(a,1),!0;return!1},cfb_mov:function(t,e,n){d(t);var r=rc.find(t,e);if(r)for(var i=0;i<t.FileIndex.length;++i)if(t.FileIndex[i]==r)return t.FileIndex[i].name=a(n),t.FullPaths[i]=n,!0;return!1},cfb_gc:function(t){h(t,!0)},ReadShift:Nu,CheckField:Iu,prep_blob:Mu,bconcat:ll,use_zlib:function(t){try{var e=new(0,t.InflateRaw);if(e._processChunk(new Uint8Array([3,0]),e._finishFlushFlag),!e.bytesRead)throw new Error("zlib does not expose bytesRead");m=t}catch(t){console.error("cannot use native zlib: "+(t.message||t))}},_deflateRaw:G,_inflateRaw:et,consts:w},e}();let ic;function oc(t){return"string"==typeof t?ol(t):Array.isArray(t)?function(t){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function sc(t,e,n){if(void 0!==ic&&ic.writeFileSync)return n?ic.writeFileSync(t,e,n):ic.writeFileSync(t,e);if("undefined"!=typeof Deno){if(n&&"string"==typeof e)switch(n){case"utf8":e=new TextEncoder(n).encode(e);break;case"binary":e=ol(e);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(t,e)}var a="utf8"==n?Kc(e):e;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(a,t);if("undefined"!=typeof Blob){var r=new Blob([oc(a)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if("undefined"!=typeof saveAs)return saveAs(r,t);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:t,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=t,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=sl(e)),s.write(e),s.close(),e}catch(t){if(!t.message||!t.message.match(/onstruct/))throw t}throw new Error("cannot save file "+t)}function lc(t){for(var e=Object.keys(t),n=[],a=0;a<e.length;++a)Object.prototype.hasOwnProperty.call(t,e[a])&&n.push(e[a]);return n}function cc(t,e){for(var n=[],a=lc(t),r=0;r!==a.length;++r)null==n[t[a[r]][e]]&&(n[t[a[r]][e]]=a[r]);return n}function uc(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)e[t[n[a]]]=n[a];return e}function fc(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)e[t[n[a]]]=parseInt(n[a],10);return e}var dc=new Date(1899,11,30,0,0,0);function hc(t,e){var n=t.getTime();return e&&(n-=1263168e5),(n-(dc.getTime()+6e4*(t.getTimezoneOffset()-dc.getTimezoneOffset())))/864e5}var pc=new Date,mc=dc.getTime()+6e4*(pc.getTimezoneOffset()-dc.getTimezoneOffset()),gc=pc.getTimezoneOffset();function vc(t){var e=new Date;return e.setTime(24*t*60*60*1e3+mc),e.getTimezoneOffset()!==gc&&e.setTime(e.getTime()+6e4*(e.getTimezoneOffset()-gc)),e}var bc=new Date("2017-02-19T19:06:09.000Z"),_c=isNaN(bc.getFullYear())?new Date("2/19/17"):bc,yc=2017==_c.getFullYear();function wc(t,e){var n=new Date(t);if(yc)return e>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):e<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(t instanceof Date)return t;if(1917==_c.getFullYear()&&!isNaN(n.getFullYear())){var a=n.getFullYear();return t.indexOf(""+a)>-1||n.setFullYear(n.getFullYear()+100),n}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function xc(t,e){if(el&&Ds.isBuffer(t)){if(e){if(255==t[0]&&254==t[1])return Kc(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Kc($s(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(e){if(255==t[0]&&254==t[1])return Kc(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Kc(new TextDecoder("utf-16be").decode(t.slice(2)))}var n={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(t){return n[t]||t}))}catch(t){}for(var a=[],r=0;r!=t.length;++r)a.push(String.fromCharCode(t[r]));return a.join("")}function kc(t){if("undefined"!=typeof JSON&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=kc(t[n]));return e}function Ac(t,e){for(var n="";n.length<e;)n+=t;return n}function Sc(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var n=1,a=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(e=Number(a))?(a=a.replace(/[(](.*)[)]/,(function(t,e){return n=-n,e})),isNaN(e=Number(a))?e:e/n):e/n}var Cc=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ec(t){var e=new Date(t),n=new Date(NaN),a=e.getYear(),r=e.getMonth(),i=e.getDate();if(isNaN(i))return n;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Cc.indexOf(o))return n}else if(o.match(/[a-z]/))return n;return a<0||a>8099?n:(r>0||i>1)&&101!=a?e:t.match(/[^-0-9:,\/\\]/)?n:e}function Tc(t,e,n){if(t.FullPaths){var a;if("string"==typeof n)return a=el?nl(n):function(t){for(var e=[],n=0,a=t.length+250,r=al(t.length+255),i=0;i<t.length;++i){var o=t.charCodeAt(i);if(o<128)r[n++]=o;else if(o<2048)r[n++]=192|o>>6&31,r[n++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&t.charCodeAt(++i);r[n++]=240|o>>8&7,r[n++]=128|o>>2&63,r[n++]=128|s>>6&15|(3&o)<<4,r[n++]=128|63&s}else r[n++]=224|o>>12&15,r[n++]=128|o>>6&63,r[n++]=128|63&o;n>a&&(e.push(r.slice(0,n)),n=0,r=al(65535),a=65530)}return e.push(r.slice(0,n)),ll(e)}(n),rc.utils.cfb_add(t,e,a);rc.utils.cfb_add(t,e,n)}else t.file(e,n)}function Nc(){return rc.utils.cfb_new()}var Pc='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var Lc={""":'"',"'":"'",">":">","<":"<","&":"&"},Oc=uc(Lc),Rc=/[&<>'"]/g,Ic=/[\u0000-\u0008\u000b-\u001f]/g;function Mc(t){return(t+"").replace(Rc,(function(t){return Oc[t]})).replace(Ic,(function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Fc(t){return Mc(t).replace(/ /g,"_x0020_")}var Dc=/[\u0000-\u001f]/g;function jc(t){return(t+"").replace(Rc,(function(t){return Oc[t]})).replace(/\n/g,"<br/>").replace(Dc,(function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Bc(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Uc(t){for(var e="",n=0,a=0,r=0,i=0,o=0,s=0;n<t.length;)(a=t.charCodeAt(n++))<128?e+=String.fromCharCode(a):(r=t.charCodeAt(n++),a>191&&a<224?(o=(31&a)<<6,o|=63&r,e+=String.fromCharCode(o)):(i=t.charCodeAt(n++),a<240?e+=String.fromCharCode((15&a)<<12|(63&r)<<6|63&i):(s=((7&a)<<18|(63&r)<<12|(63&i)<<6|63&(o=t.charCodeAt(n++)))-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(1023&s)))));return e}function zc(t){var e,n,a,r=al(2*t.length),i=1,o=0,s=0;for(n=0;n<t.length;n+=i)i=1,(a=t.charCodeAt(n))<128?e=a:a<224?(e=64*(31&a)+(63&t.charCodeAt(n+1)),i=2):a<240?(e=4096*(15&a)+64*(63&t.charCodeAt(n+1))+(63&t.charCodeAt(n+2)),i=3):(i=4,e=262144*(7&a)+4096*(63&t.charCodeAt(n+1))+64*(63&t.charCodeAt(n+2))+(63&t.charCodeAt(n+3)),s=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==s&&(r[o++]=255&s,r[o++]=s>>>8,s=0),r[o++]=e%256,r[o++]=e>>>8;return r.slice(0,o).toString("ucs2")}function Hc(t){return nl(t,"binary").toString("utf8")}var qc="foo bar bazâð£",Wc=el&&(Hc(qc)==Uc(qc)&&Hc||zc(qc)==Uc(qc)&&zc)||Uc,Kc=el?function(t){return nl(t,"utf8").toString("binary")}:function(t){for(var e=[],n=0,a=0,r=0;n<t.length;)switch(a=t.charCodeAt(n++),!0){case a<128:e.push(String.fromCharCode(a));break;case a<2048:e.push(String.fromCharCode(192+(a>>6))),e.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,r=t.charCodeAt(n++)-56320+(a<<10),e.push(String.fromCharCode(240+(r>>18&7))),e.push(String.fromCharCode(144+(r>>12&63))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(63&r)));break;default:e.push(String.fromCharCode(224+(a>>12))),e.push(String.fromCharCode(128+(a>>6&63))),e.push(String.fromCharCode(128+(63&a)))}return e.join("")},Vc=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]}));return function(e){for(var n=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),a=0;a<t.length;++a)n=n.replace(t[a][0],t[a][1]);return n}}();var $c=/(^\s|\s$|\n)/;function Gc(t,e){return"<"+t+(e.match($c)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function Yc(t){return lc(t).map((function(e){return" "+e+'="'+t[e]+'"'})).join("")}function Xc(t,e,n){return"<"+t+(null!=n?Yc(n):"")+(null!=e?(e.match($c)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function Jc(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(t){if(e)throw t}return""}var Zc={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Qc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],tu={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};var eu=function(t){for(var e=[],n=0;n<t[0].length;++n)if(t[0][n])for(var a=0,r=t[0][n].length;a<r;a+=10240)e.push.apply(e,t[0][n].slice(a,a+10240));return e},nu=el?function(t){return t[0].length>0&&Ds.isBuffer(t[0][0])?Ds.concat(t[0].map((function(t){return Ds.isBuffer(t)?t:nl(t)}))):eu(t)}:eu,au=function(t,e,n){for(var a=[],r=e;r<n;r+=2)a.push(String.fromCharCode(Au(t,r)));return a.join("").replace(cl,"")},ru=el?function(t,e,n){return Ds.isBuffer(t)?t.toString("utf16le",e,n).replace(cl,""):au(t,e,n)}:au,iu=function(t,e,n){for(var a=[],r=e;r<e+n;++r)a.push(("0"+t[r].toString(16)).slice(-2));return a.join("")},ou=el?function(t,e,n){return Ds.isBuffer(t)?t.toString("hex",e,e+n):iu(t,e,n)}:iu,su=function(t,e,n){for(var a=[],r=e;r<n;r++)a.push(String.fromCharCode(ku(t,r)));return a.join("")},lu=el?function(t,e,n){return Ds.isBuffer(t)?t.toString("utf8",e,n):su(t,e,n)}:su,cu=function(t,e){var n=Cu(t,e);return n>0?lu(t,e+4,e+4+n-1):""},uu=cu,fu=function(t,e){var n=Cu(t,e);return n>0?lu(t,e+4,e+4+n-1):""},du=fu,hu=function(t,e){var n=2*Cu(t,e);return n>0?lu(t,e+4,e+4+n-1):""},pu=hu,mu=function(t,e){var n=Cu(t,e);return n>0?ru(t,e+4,e+4+n):""},gu=mu,vu=function(t,e){var n=Cu(t,e);return n>0?lu(t,e+4,e+4+n):""},bu=vu,_u=function(t,e){return function(t,e){for(var n=1-2*(t[e+7]>>>7),a=((127&t[e+7])<<4)+(t[e+6]>>>4&15),r=15&t[e+6],i=5;i>=0;--i)r=256*r+t[e+i];return 2047==a?0==r?n*(1/0):NaN:(0==a?a=-1022:(a-=1023,r+=Math.pow(2,52)),n*Math.pow(2,a-52)*r)}(t,e)},yu=_u,wu=function(t){return Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array};function xu(){ru=function(t,e,n){return Gs.utils.decode(1200,t.slice(e,n)).replace(cl,"")},lu=function(t,e,n){return Gs.utils.decode(65001,t.slice(e,n))},uu=function(t,e){var n=Cu(t,e);return n>0?Gs.utils.decode(zs,t.slice(e+4,e+4+n-1)):""},du=function(t,e){var n=Cu(t,e);return n>0?Gs.utils.decode(Us,t.slice(e+4,e+4+n-1)):""},pu=function(t,e){var n=2*Cu(t,e);return n>0?Gs.utils.decode(1200,t.slice(e+4,e+4+n-1)):""},gu=function(t,e){var n=Cu(t,e);return n>0?Gs.utils.decode(1200,t.slice(e+4,e+4+n)):""},bu=function(t,e){var n=Cu(t,e);return n>0?Gs.utils.decode(65001,t.slice(e+4,e+4+n)):""}}el&&(uu=function(t,e){if(!Ds.isBuffer(t))return cu(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},du=function(t,e){if(!Ds.isBuffer(t))return fu(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},pu=function(t,e){if(!Ds.isBuffer(t))return hu(t,e);var n=2*t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n-1)},gu=function(t,e){if(!Ds.isBuffer(t))return mu(t,e);var n=t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n)},bu=function(t,e){if(!Ds.isBuffer(t))return vu(t,e);var n=t.readUInt32LE(e);return t.toString("utf8",e+4,e+4+n)},yu=function(t,e){return Ds.isBuffer(t)?t.readDoubleLE(e):_u(t,e)},wu=function(t){return Ds.isBuffer(t)||Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array}),void 0!==Gs&&xu();var ku=function(t,e){return t[e]},Au=function(t,e){return 256*t[e+1]+t[e]},Su=function(t,e){var n=256*t[e+1]+t[e];return n<32768?n:-1*(65535-n+1)},Cu=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},Eu=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},Tu=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Nu(t,e){var n,a,r,i,o,s,l="",c=[];switch(e){case"dbcs":if(s=this.l,el&&Ds.isBuffer(this))l=this.slice(this.l,this.l+2*t).toString("utf16le");else for(o=0;o<t;++o)l+=String.fromCharCode(Au(this,s)),s+=2;t*=2;break;case"utf8":l=lu(this,this.l,this.l+t);break;case"utf16le":t*=2,l=ru(this,this.l,this.l+t);break;case"wstr":if(void 0===Gs)return Nu.call(this,t,"dbcs");l=Gs.utils.decode(Us,this.slice(this.l,this.l+2*t)),t*=2;break;case"lpstr-ansi":l=uu(this,this.l),t=4+Cu(this,this.l);break;case"lpstr-cp":l=du(this,this.l),t=4+Cu(this,this.l);break;case"lpwstr":l=pu(this,this.l),t=4+2*Cu(this,this.l);break;case"lpp4":t=4+Cu(this,this.l),l=gu(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+Cu(this,this.l),l=bu(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,l="";0!==(r=ku(this,this.l+t++));)c.push(Ys(r));l=c.join("");break;case"_wstr":for(t=0,l="";0!==(r=Au(this,this.l+t));)c.push(Ys(r)),t+=2;t+=2,l=c.join("");break;case"dbcs-cont":for(l="",s=this.l,o=0;o<t;++o){if(this.lens&&-1!==this.lens.indexOf(s))return r=ku(this,s),this.l=s+1,i=Nu.call(this,t-o,r?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(Ys(Au(this,s))),s+=2}l=c.join(""),t*=2;break;case"cpstr":if(void 0!==Gs){l=Gs.utils.decode(Us,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(l="",s=this.l,o=0;o!=t;++o){if(this.lens&&-1!==this.lens.indexOf(s))return r=ku(this,s),this.l=s+1,i=Nu.call(this,t-o,r?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(Ys(ku(this,s))),s+=1}l=c.join("");break;default:switch(t){case 1:return n=ku(this,this.l),this.l++,n;case 2:return n=("i"===e?Su:Au)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==e&&128&this[this.l+3]?(a=Cu(this,this.l),this.l+=4,a):(n=(t>0?Eu:Tu)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===e)return a=8==t?yu(this,this.l):yu([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:l=ou(this,this.l,t)}}return this.l+=t,l}var Pu=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24&255},Lu=function(t,e,n){t[n]=255&e,t[n+1]=e>>8&255,t[n+2]=e>>16&255,t[n+3]=e>>24&255},Ou=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255};function Ru(t,e,n){var a=0,r=0;if("dbcs"===n){for(r=0;r!=e.length;++r)Ou(this,e.charCodeAt(r),this.l+2*r);a=2*e.length}else if("sbcs"===n){if(void 0!==Gs&&874==zs)for(r=0;r!=e.length;++r){var i=Gs.utils.encode(zs,e.charAt(r));this[this.l+r]=i[0]}else for(e=e.replace(/[^\x00-\x7F]/g,"_"),r=0;r!=e.length;++r)this[this.l+r]=255&e.charCodeAt(r);a=e.length}else{if("hex"===n){for(;r<t;++r)this[this.l++]=parseInt(e.slice(2*r,2*r+2),16)||0;return this}if("utf16le"===n){var o=Math.min(this.l+t,this.length);for(r=0;r<Math.min(e.length,t);++r){var s=e.charCodeAt(r);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(t){case 1:a=1,this[this.l]=255&e;break;case 2:a=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:a=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:a=4,Pu(this,e,this.l);break;case 8:if(a=8,"f"===n){!function(t,e,n){var a=(e<0||1/e==-1/0?1:0)<<7,r=0,i=0,o=a?-e:e;isFinite(o)?0==o?r=i=0:(r=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-r),r<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?r=-1022:(i-=Math.pow(2,52),r+=1023)):(r=2047,i=isNaN(e)?26985:0);for(var s=0;s<=5;++s,i/=256)t[n+s]=255&i;t[n+6]=(15&r)<<4|15&i,t[n+7]=r>>4|a}(this,e,this.l);break}case 16:break;case-4:a=4,Lu(this,e,this.l)}}return this.l+=a,this}function Iu(t,e){var n=ou(this,this.l,t.length>>1);if(n!==t)throw new Error(e+"Expected "+t+" saw "+n);this.l+=t.length>>1}function Mu(t,e){t.l=e,t.read_shift=Nu,t.chk=Iu,t.write_shift=Ru}function Fu(t,e){t.l+=e}function Du(t){var e=al(t);return Mu(e,0),e}function ju(){var t=[],e=el?256:2048,n=function(t){var e=Du(t);return Mu(e,0),e},a=n(e),r=function(){a&&(a.length>a.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&t.push(a),a=null)},i=function(t){return a&&t<a.length-a.l?a:(r(),a=n(Math.max(t+1,e)))};return{next:i,push:function(t){r(),null==(a=t).l&&(a.l=a.length),i(e)},end:function(){return r(),ll(t)},_bufs:t}}function Bu(t,e,n,a){var r,i=+e;if(!isNaN(i)){a||(a=tm[i].p||(n||[]).length||0),r=1+(i>=128?1:0)+1,a>=128&&++r,a>=16384&&++r,a>=2097152&&++r;var o=t.next(r);i<=127?o.write_shift(1,i):(o.write_shift(1,128+(127&i)),o.write_shift(1,i>>7));for(var s=0;4!=s;++s){if(!(a>=128)){o.write_shift(1,a);break}o.write_shift(1,128+(127&a)),a>>=7}a>0&&wu(n)&&t.push(n)}}function Uu(t,e,n){var a=kc(t);if(e.s?(a.cRel&&(a.c+=e.s.c),a.rRel&&(a.r+=e.s.r)):(a.cRel&&(a.c+=e.c),a.rRel&&(a.r+=e.r)),!n||n.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function zu(t,e,n){var a=kc(t);return a.s=Uu(a.s,e.s,n),a.e=Uu(a.e,e.s,n),a}function Hu(t,e){if(t.cRel&&t.c<0)for(t=kc(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=kc(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var n=Yu(t);return t.cRel||null==t.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),t.rRel||null==t.rRel||(n=function(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function qu(t,e){return 0!=t.s.r||t.s.rRel||t.e.r!=(e.biff>=12?1048575:e.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(e.biff>=12?16383:255)||t.e.cRel?Hu(t.s,e.biff)+":"+Hu(t.e,e.biff):(t.s.rRel?"":"$")+Ku(t.s.r)+":"+(t.e.rRel?"":"$")+Ku(t.e.r):(t.s.cRel?"":"$")+$u(t.s.c)+":"+(t.e.cRel?"":"$")+$u(t.e.c)}function Wu(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function Ku(t){return""+(t+1)}function Vu(t){for(var e=t.replace(/^\$([A-Z])/,"$1"),n=0,a=0;a!==e.length;++a)n=26*n+e.charCodeAt(a)-64;return n-1}function $u(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function Gu(t){for(var e=0,n=0,a=0;a<t.length;++a){var r=t.charCodeAt(a);r>=48&&r<=57?e=10*e+(r-48):r>=65&&r<=90&&(n=26*n+(r-64))}return{c:n-1,r:e-1}}function Yu(t){for(var e=t.c+1,n="";e;e=(e-1)/26|0)n=String.fromCharCode((e-1)%26+65)+n;return n+(t.r+1)}function Xu(t){var e=t.indexOf(":");return-1==e?{s:Gu(t),e:Gu(t)}:{s:Gu(t.slice(0,e)),e:Gu(t.slice(e+1))}}function Ju(t,e){return void 0===e||"number"==typeof e?Ju(t.s,t.e):("string"!=typeof t&&(t=Yu(t)),"string"!=typeof e&&(e=Yu(e)),t==e?t:t+":"+e)}function Zu(t){var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,a=0,r=0,i=t.length;for(n=0;a<i&&!((r=t.charCodeAt(a)-64)<1||r>26);++a)n=26*n+r;for(e.s.c=--n,n=0;a<i&&!((r=t.charCodeAt(a)-48)<0||r>9);++a)n=10*n+r;if(e.s.r=--n,a===i||10!=r)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++a,n=0;a!=i&&!((r=t.charCodeAt(a)-64)<1||r>26);++a)n=26*n+r;for(e.e.c=--n,n=0;a!=i&&!((r=t.charCodeAt(a)-48)<0||r>9);++a)n=10*n+r;return e.e.r=--n,e}function Qu(t,e){var n="d"==t.t&&e instanceof Date;if(null!=t.z)try{return t.w=Zl(t.z,n?hc(e):e)}catch(t){}try{return t.w=Zl((t.XF||{}).numFmtId||(n?14:0),n?hc(e):e)}catch(t){return""+e}}function tf(t,e,n){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&n&&n.dateNF&&(t.z=n.dateNF),"e"==t.t?jf[t.v]||t.v:Qu(t,null==e?t.v:e))}function ef(t,e){var n=e&&e.sheet?e.sheet:"Sheet1",a={};return a[n]=t,{SheetNames:[n],Sheets:a}}function nf(t,e,n){var a=n||{},r=t?Array.isArray(t):a.dense;null!=Js&&null==r&&(r=Js);var i=t||(r?[]:{}),o=0,s=0;if(i&&null!=a.origin){if("number"==typeof a.origin)o=a.origin;else{var l="string"==typeof a.origin?Gu(a.origin):a.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=Zu(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==o&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=e.length;++f)if(e[f]){if(!Array.isArray(e[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=e[f].length;++d)if(void 0!==e[f][d]){var h={v:e[f][d]},p=o+f,m=s+d;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r<p&&(c.e.r=p),c.e.c<m&&(c.e.c=m),!e[f][d]||"object"!=typeof e[f][d]||Array.isArray(e[f][d])||e[f][d]instanceof Date)if(Array.isArray(h.v)&&(h.f=e[f][d][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(a.nullError)h.t="e",h.v=0;else{if(!a.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=a.dateNF||yl[14],a.cellDates?(h.t="d",h.w=Zl(h.z,hc(h.v))):(h.t="n",h.v=hc(h.v),h.w=Zl(h.z,h.v))):h.t="s";else h=e[f][d];if(r)i[p]||(i[p]=[]),i[p][m]&&i[p][m].z&&(h.z=i[p][m].z),i[p][m]=h;else{var g=Yu({c:m,r:p});i[g]&&i[g].z&&(h.z=i[g].z),i[g]=h}}}return c.s.c<1e7&&(i["!ref"]=Ju(c)),i}function af(t,e){return nf(null,t,e)}function rf(t,e){return e||(e=Du(4)),e.write_shift(4,t),e}function of(t){var e=t.read_shift(4);return 0===e?"":t.read_shift(e,"dbcs")}function sf(t,e){var n=!1;return null==e&&(n=!0,e=Du(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}function lf(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function cf(t,e){var n=t.l,a=t.read_shift(1),r=of(t),i=[],o={t:r,h:r};if(1&a){for(var s=t.read_shift(4),l=0;l!=s;++l)i.push(lf(t));o.r=i}else o.r=[{ich:0,ifnt:0}];return t.l=n+e,o}var uf=cf;function ff(t,e){var n=!1;return null==e&&(n=!0,e=Du(23+4*t.t.length)),e.write_shift(1,1),sf(t.t,e),e.write_shift(4,1),function(t,e){e||(e=Du(4)),e.write_shift(2,t.ich||0),e.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},e),n?e.slice(0,e.l):e}function df(t){var e=t.read_shift(4),n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:n}}function hf(t,e){return null==e&&(e=Du(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function pf(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function mf(t,e){return null==e&&(e=Du(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var gf=of,vf=sf;function bf(t){var e=t.read_shift(4);return 0===e||4294967295===e?"":t.read_shift(e,"dbcs")}function _f(t,e){var n=!1;return null==e&&(n=!0,e=Du(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}var yf=of,wf=bf,xf=_f;function kf(t){var e=t.slice(t.l,t.l+4),n=1&e[0],a=2&e[0];t.l+=4;var r=0===a?yu([0,0,0,0,252&e[0],e[1],e[2],e[3]],0):Eu(e,0)>>2;return n?r/100:r}function Af(t,e){null==e&&(e=Du(4));var n=0,a=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?a=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(a=1,n=1),!a)throw new Error("unsupported RkNumber "+t);e.write_shift(-4,((n?r:t)<<2)+(n+2))}function Sf(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}var Cf=Sf,Ef=function(t,e){return e||(e=Du(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e};function Tf(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Nf(t,e){return(e||Du(8)).write_shift(8,t,"f")}function Pf(t,e){if(e||(e=Du(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;null!=t.index?(e.write_shift(1,2),e.write_shift(1,t.index)):null!=t.theme?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var n=t.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),e.write_shift(2,n),t.rgb&&null==t.theme){var a=t.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),e.write_shift(1,parseInt(a.slice(0,2),16)),e.write_shift(1,parseInt(a.slice(2,4),16)),e.write_shift(1,parseInt(a.slice(4,6),16)),e.write_shift(1,255)}else e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);return e}var Lf=2,Of=3,Rf=80,If={1:{n:"CodePage",t:Lf},2:{n:"Category",t:Rf},3:{n:"PresentationFormat",t:Rf},4:{n:"ByteCount",t:Of},5:{n:"LineCount",t:Of},6:{n:"ParagraphCount",t:Of},7:{n:"SlideCount",t:Of},8:{n:"NoteCount",t:Of},9:{n:"HiddenCount",t:Of},10:{n:"MultimediaClipCount",t:Of},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Rf},15:{n:"Company",t:Rf},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:Of},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:Of,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Rf},27:{n:"ContentStatus",t:Rf},28:{n:"Language",t:Rf},29:{n:"Version",t:Rf},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Mf={1:{n:"CodePage",t:Lf},2:{n:"Title",t:Rf},3:{n:"Subject",t:Rf},4:{n:"Author",t:Rf},5:{n:"Keywords",t:Rf},6:{n:"Comments",t:Rf},7:{n:"Template",t:Rf},8:{n:"LastAuthor",t:Rf},9:{n:"RevNumber",t:Rf},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:Of},15:{n:"WordCount",t:Of},16:{n:"CharCount",t:Of},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Rf},19:{n:"DocSecurity",t:Of},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Ff(t){return t.map((function(t){return[t>>16&255,t>>8&255,255&t]}))}var Df=kc(Ff([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),jf={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Bf={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Uf={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function zf(t,e){var n,a=function(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)null==e[t[n[a]]]&&(e[t[n[a]]]=[]),e[t[n[a]]].push(n[a]);return e}(Bf),r=[];r[r.length]=Pc,r[r.length]=Xc("Types",null,{xmlns:Zc.CT,"xmlns:xsd":Zc.xsd,"xmlns:xsi":Zc.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(t){return Xc("Default",null,{Extension:t[0],ContentType:t[1]})})));var i=function(a){t[a]&&t[a].length>0&&(n=t[a][0],r[r.length]=Xc("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Uf[a][e.bookType]||Uf[a].xlsx}))},o=function(n){(t[n]||[]).forEach((function(t){r[r.length]=Xc("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:Uf[n][e.bookType]||Uf[n].xlsx})}))},s=function(e){(t[e]||[]).forEach((function(t){r[r.length]=Xc("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:a[e][0]})}))};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var Hf={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function qf(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Wf(t){var e=[Pc,Xc("Relationships",null,{xmlns:Zc.RELS})];return lc(t["!id"]).forEach((function(n){e[e.length]=Xc("Relationship",null,t["!id"][n])})),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Kf(t,e,n,a,r,i){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,r.Id="rId"+e,r.Type=a,r.Target=n,i?r.TargetMode=i:[Hf.HLINK,Hf.XPATH,Hf.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,e}function Vf(t,e,n){return[' <rdf:Description rdf:about="'+t+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+e+'"/>\n'," </rdf:Description>\n"].join("")}function $f(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Bs.version+"</meta:generator></office:meta></office:document-meta>"}var Gf=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Yf(t,e,n,a,r){null==r[t]&&null!=e&&""!==e&&(r[t]=e,e=Mc(e),a[a.length]=n?Xc(t,e,n):Gc(t,e))}function Xf(t,e){var n=e||{},a=[Pc,Xc("cp:coreProperties",null,{"xmlns:cp":Zc.CORE_PROPS,"xmlns:dc":Zc.dc,"xmlns:dcterms":Zc.dcterms,"xmlns:dcmitype":Zc.dcmitype,"xmlns:xsi":Zc.xsi})],r={};if(!t&&!n.Props)return a.join("");t&&(null!=t.CreatedDate&&Yf("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:Jc(t.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,r),null!=t.ModifiedDate&&Yf("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:Jc(t.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,r));for(var i=0;i!=Gf.length;++i){var o=Gf[i],s=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:t?t[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Yf(o[0],s,null,a,r)}return a.length>2&&(a[a.length]="</cp:coreProperties>",a[1]=a[1].replace("/>",">")),a.join("")}var Jf=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Zf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Qf(t){var e=[],n=Xc;return t||(t={}),t.Application="SheetJS",e[e.length]=Pc,e[e.length]=Xc("Properties",null,{xmlns:Zc.EXT_PROPS,"xmlns:vt":Zc.vt}),Jf.forEach((function(a){if(void 0!==t[a[1]]){var r;switch(a[2]){case"string":r=Mc(String(t[a[1]]));break;case"bool":r=t[a[1]]?"true":"false"}void 0!==r&&(e[e.length]=n(a[0],r))}})),e[e.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=n("TitlesOfParts",n("vt:vector",t.SheetNames.map((function(t){return"<vt:lpstr>"+Mc(t)+"</vt:lpstr>"})).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function td(t){var e=[Pc,Xc("Properties",null,{xmlns:Zc.CUST_PROPS,"xmlns:vt":Zc.vt})];if(!t)return e.join("");var n=1;return lc(t).forEach((function(a){++n,e[e.length]=Xc("property",function(t,e){switch(typeof t){case"string":var n=Xc("vt:lpwstr",Mc(t));return e&&(n=n.replace(/"/g,"_x0022_")),n;case"number":return Xc((0|t)==t?"vt:i4":"vt:r8",Mc(String(t)));case"boolean":return Xc("vt:bool",t?"true":"false")}if(t instanceof Date)return Xc("vt:filetime",Jc(t));throw new Error("Unable to serialize "+t)}(t[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Mc(a)})})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var ed={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function nd(t,e){var n=Du(4),a=Du(4);switch(n.write_shift(4,80==t?31:t),t){case 3:a.write_shift(-4,e);break;case 5:(a=Du(8)).write_shift(8,e,"f");break;case 11:a.write_shift(4,e?1:0);break;case 64:a=function(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),a=(e-n)/Math.pow(2,32);a*=1e7;var r=(n*=1e7)/Math.pow(2,32)|0;r>0&&(n%=Math.pow(2,32),a+=r);var i=Du(8);return i.write_shift(4,n),i.write_shift(4,a),i}(e);break;case 31:case 80:for((a=Du(4+2*(e.length+1)+(e.length%2?0:2))).write_shift(4,e.length+1),a.write_shift(0,e,"dbcs");a.l!=a.length;)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return ll([n,a])}var ad=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function rd(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function id(t,e,n){var a=Du(8),r=[],i=[],o=8,s=0,l=Du(8),c=Du(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),r.push(c),o+=8+l.length,!e){(c=Du(8)).write_shift(4,0),r.unshift(c);var u=[Du(4)];for(u[0].write_shift(4,t.length),s=0;s<t.length;++s){var f=t[s][0];for((l=Du(8+2*(f.length+1)+(f.length%2?0:2))).write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=ll(u),i.unshift(l),o+=8+l.length}for(s=0;s<t.length;++s)if((!e||e[t[s][0]])&&!(ad.indexOf(t[s][0])>-1||Zf.indexOf(t[s][0])>-1)&&null!=t[s][1]){var d=t[s][1],h=0;if(e){var p=n[h=+e[t[s][0]]];if("version"==p.p&&"string"==typeof d){var m=d.split(".");d=(+m[0]<<16)+(+m[1]||0)}l=nd(p.t,d)}else{var g=rd(d);-1==g&&(g=31,d=String(d)),l=nd(g,d)}i.push(l),(c=Du(8)).write_shift(4,e?h:2+s),r.push(c),o+=8+l.length}var v=8*(i.length+1);for(s=0;s<i.length;++s)r[s].write_shift(4,v),v+=i[s].length;return a.write_shift(4,o),a.write_shift(4,i.length),ll([a].concat(r).concat(i))}function od(t,e,n,a,r,i){var o=Du(r?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,rc.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,r?2:1),o.write_shift(16,e,"hex"),o.write_shift(4,r?68:48);var l=id(t,n,a);if(s.push(l),r){var c=id(r,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),s.push(c)}return ll(s)}function sd(t,e){return 1===t.read_shift(e)}function ld(t,e){return e||(e=Du(2)),e.write_shift(2,+!!t),e}function cd(t){return t.read_shift(2,"u")}function ud(t,e){return e||(e=Du(2)),e.write_shift(2,t),e}function fd(t,e,n){return n||(n=Du(2)),n.write_shift(1,"e"==e?+t:+!!t),n.write_shift(1,"e"==e?1:0),n}function dd(t,e,n){var a=t.read_shift(n&&n.biff>=12?2:1),r="sbcs-cont",i=Us;(n&&n.biff>=8&&(Us=1200),n&&8!=n.biff)?12==n.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont");n.biff>=2&&n.biff<=5&&(r="cpstr");var o=a?t.read_shift(a,r):"";return Us=i,o}function hd(t){var e=t.t||"",n=Du(3);n.write_shift(2,e.length),n.write_shift(1,1);var a=Du(2*e.length);return a.write_shift(2*e.length,e,"utf16le"),ll([n,a])}function pd(t,e,n){if(n){if(n.biff>=2&&n.biff<=5)return t.read_shift(e,"cpstr");if(n.biff>=12)return t.read_shift(e,"dbcs-cont")}return 0===t.read_shift(1)?t.read_shift(e,"sbcs-cont"):t.read_shift(e,"dbcs-cont")}function md(t,e,n){var a=t.read_shift(n&&2==n.biff?1:2);return 0===a?(t.l++,""):pd(t,a,n)}function gd(t,e,n){if(n.biff>5)return md(t,0,n);var a=t.read_shift(1);return 0===a?(t.l++,""):t.read_shift(a,n.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function vd(t,e,n){return n||(n=Du(3+2*t.length)),n.write_shift(2,t.length),n.write_shift(1,1),n.write_shift(31,t,"utf16le"),n}function bd(t,e){e||(e=Du(6+2*t.length)),e.write_shift(4,1+t.length);for(var n=0;n<t.length;++n)e.write_shift(2,t.charCodeAt(n));return e.write_shift(2,0),e}function _d(t){var e=Du(512),n=0,a=t.Target;"file://"==a.slice(0,7)&&(a=a.slice(7));var r=a.indexOf("#"),i=r>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=-3}e.write_shift(4,2),e.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)e.write_shift(4,o[n]);if(28==i)bd(a=a.slice(1),e);else if(2&i){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)e.write_shift(1,parseInt(o[n],16));var s=r>-1?a.slice(0,r):a;for(e.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)e.write_shift(2,s.charCodeAt(n));e.write_shift(2,0),8&i&&bd(r>-1?a.slice(r+1):"",e)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)e.write_shift(1,parseInt(o[n],16));for(var l=0;"../"==a.slice(3*l,3*l+3)||"..\\"==a.slice(3*l,3*l+3);)++l;for(e.write_shift(2,l),e.write_shift(4,a.length-3*l+1),n=0;n<a.length-3*l;++n)e.write_shift(1,255&a.charCodeAt(n+3*l));for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),n=0;n<6;++n)e.write_shift(4,0)}return e.slice(0,e.l)}function yd(t,e,n,a){return a||(a=Du(6)),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,n||0),a}function wd(t,e,n){var a=n.biff>8?4:2;return[t.read_shift(a),t.read_shift(a,"i"),t.read_shift(a,"i")]}function xd(t){var e=t.read_shift(2),n=t.read_shift(2);return{s:{c:t.read_shift(2),r:e},e:{c:t.read_shift(2),r:n}}}function kd(t,e){return e||(e=Du(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function Ad(t,e,n){var a=1536,r=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":a=1280,r=8;break;case"biff4":a=4,r=6;break;case"biff3":a=3,r=6;break;case"biff2":a=2,r=4;break;default:throw new Error("unsupported BIFF version")}var i=Du(r);return i.write_shift(2,a),i.write_shift(2,e),r>4&&i.write_shift(2,29282),r>6&&i.write_shift(2,1997),r>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Sd(t,e){var n=!e||e.biff>=8?2:1,a=Du(8+n*t.name.length);a.write_shift(4,t.pos),a.write_shift(1,t.hs||0),a.write_shift(1,t.dt),a.write_shift(1,t.name.length),e.biff>=8&&a.write_shift(1,1),a.write_shift(n*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var r=a.slice(0,a.l);return r.l=a.l,r}function Cd(t,e,n,a){var r=n&&5==n.biff;a||(a=Du(r?3+e.length:5+2*e.length)),a.write_shift(2,t),a.write_shift(r?1:2,e.length),r||a.write_shift(1,1),a.write_shift((r?1:2)*e.length,e,r?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;return null==i.l&&(i.l=i.length),i}function Ed(t,e,n,a){var r=n&&5==n.biff;a||(a=Du(r?16:20)),a.write_shift(2,0),t.style?(a.write_shift(2,t.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,t.numFmtId||0),a.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&r&&(i|=1024),a.write_shift(4,i),a.write_shift(4,0),r||a.write_shift(4,0),a.write_shift(2,0),a}function Td(t,e,n){if(n.biff<8)return function(t,e,n){3==t[t.l+1]&&t[t.l]++;var a=dd(t,0,n);return 3==a.charCodeAt(0)?a.slice(1):a}(t,0,n);for(var a=[],r=t.l+e,i=t.read_shift(n.biff>8?4:2);0!=i--;)a.push(wd(t,n.biff,n));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return a}function Nd(t){var e=Du(24),n=Gu(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)e.write_shift(1,parseInt(a[r],16));return ll([e,_d(t[1])])}function Pd(t){var e=t[1].Tooltip,n=Du(10+2*(e.length+1));n.write_shift(2,2048);var a=Gu(t[0]);n.write_shift(2,a.r),n.write_shift(2,a.r),n.write_shift(2,a.c),n.write_shift(2,a.c);for(var r=0;r<e.length;++r)n.write_shift(2,e.charCodeAt(r));return n.write_shift(2,0),n}function Ld(t,e,n){if(!n.cellStyles)return Fu(t,e);var a=n&&n.biff>=12?4:2,r=t.read_shift(a),i=t.read_shift(a),o=t.read_shift(a),s=t.read_shift(a),l=t.read_shift(2);2==a&&(t.l+=2);var c={s:r,e:i,w:o,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}var Od=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=uc({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(e,n){var a=n||{};a.dateNF||(a.dateNF="yyyymmdd");var r=af(function(e,n){var a=[],r=al(1);switch(n.type){case"base64":r=il(tl(e));break;case"binary":r=il(e);break;case"buffer":case"array":r=e}Mu(r,0);var i=r.read_shift(1),o=!!(136&i),s=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,o=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var c=0,u=521;2==i&&(c=r.read_shift(2)),r.l+=3,2!=i&&(c=r.read_shift(4)),c>1048576&&(c=1e6),2!=i&&(u=r.read_shift(2));var f=r.read_shift(2),d=n.codepage||1252;2!=i&&(r.l+=16,r.read_shift(1),0!==r[r.l]&&(d=t[r[r.l]]),r.l+=1,r.l+=2),l&&(r.l+=36);for(var h=[],p={},m=Math.min(r.length,2==i?521:u-10-(s?264:0)),g=l?32:11;r.l<m&&13!=r[r.l];)switch((p={}).name=Gs.utils.decode(d,r.slice(r.l,r.l+g)).replace(/[\u0000\r\n].*$/g,""),r.l+=g,p.type=String.fromCharCode(r.read_shift(1)),2==i||l||(p.offset=r.read_shift(4)),p.len=r.read_shift(1),2==i&&(p.offset=r.read_shift(2)),p.dec=r.read_shift(1),p.name.length&&h.push(p),2!=i&&(r.l+=l?13:14),p.type){case"B":s&&8==p.len||!n.WTF||console.log("Skipping "+p.name+":"+p.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+p.name+":"+p.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==r[r.l]&&(r.l=u-1),13!==r.read_shift(1))throw new Error("DBF Terminator not found "+r.l+" "+r[r.l]);r.l=u;var v=0,b=0;for(a[0]=[],b=0;b!=h.length;++b)a[0][b]=h[b].name;for(;c-- >0;)if(42!==r[r.l])for(++r.l,a[++v]=[],b=0,b=0;b!=h.length;++b){var _=r.slice(r.l,r.l+h[b].len);r.l+=h[b].len,Mu(_,0);var y=Gs.utils.decode(d,_);switch(h[b].type){case"C":y.trim().length&&(a[v][b]=y.replace(/\s+$/,""));break;case"D":8===y.length?a[v][b]=new Date(+y.slice(0,4),+y.slice(4,6)-1,+y.slice(6,8)):a[v][b]=y;break;case"F":a[v][b]=parseFloat(y.trim());break;case"+":case"I":a[v][b]=l?2147483648^_.read_shift(-4,"i"):_.read_shift(4,"i");break;case"L":switch(y.trim().toUpperCase()){case"Y":case"T":a[v][b]=!0;break;case"N":case"F":a[v][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+y+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[v][b]="##MEMO##"+(l?parseInt(y.trim(),10):_.read_shift(4));break;case"N":(y=y.replace(/\u0000/g,"").trim())&&"."!=y&&(a[v][b]=+y||0);break;case"@":a[v][b]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":a[v][b]=new Date(864e5*(_.read_shift(4)-2440588)+_.read_shift(4));break;case"Y":a[v][b]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[v][b]=-_.read_shift(-8,"f");break;case"B":if(s&&8==h[b].len){a[v][b]=_.read_shift(8,"f");break}case"G":case"P":_.l+=h[b].len;break;case"0":if("_NullFlags"===h[b].name)break;default:throw new Error("DBF Unsupported data type "+h[b].type)}}else r.l+=f;if(2!=i&&r.l<r.length&&26!=r[r.l++])throw new Error("DBF EOF Marker missing "+(r.l-1)+" of "+r.length+" "+r[r.l-1].toString(16));return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),n.DBF=h,a}(e,a),a);return r["!cols"]=a.DBF.map((function(t){return{wch:t.len,DBF:t}})),delete a.DBF,r}var a={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(t,e){try{return ef(n(t,e),e)}catch(t){if(e&&e.WTF)throw t}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(t,n){var r=n||{};if(+r.codepage>=0&&Ks(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=ju(),o=Xm(t,{header:1,raw:!0,cellDates:!0}),s=o[0],l=o.slice(1),c=t["!cols"]||[],u=0,f=0,d=0,h=1;for(u=0;u<s.length;++u)if(((c[u]||{}).DBF||{}).name)s[u]=c[u].DBF.name,++d;else if(null!=s[u]){if(++d,"number"==typeof s[u]&&(s[u]=s[u].toString(10)),"string"!=typeof s[u])throw new Error("DBF Invalid column name "+s[u]+" |"+typeof s[u]+"|");if(s.indexOf(s[u])!==u)for(f=0;f<1024;++f)if(-1==s.indexOf(s[u]+"_"+f)){s[u]+="_"+f;break}}var p=Zu(t["!ref"]),m=[],g=[],v=[];for(u=0;u<=p.e.c-p.s.c;++u){var b="",_="",y=0,w=[];for(f=0;f<l.length;++f)null!=l[f][u]&&w.push(l[f][u]);if(0!=w.length&&null!=s[u]){for(f=0;f<w.length;++f){switch(typeof w[f]){case"number":_="B";break;case"string":default:_="C";break;case"boolean":_="L";break;case"object":_=w[f]instanceof Date?"D":"C"}y=Math.max(y,String(w[f]).length),b=b&&b!=_?"C":_}y>250&&(y=250),"C"==(_=((c[u]||{}).DBF||{}).type)&&c[u].DBF.len>y&&(y=c[u].DBF.len),"B"==b&&"N"==_&&(b="N",v[u]=c[u].DBF.dec,y=c[u].DBF.len),g[u]="C"==b||"N"==_?y:a[b]||0,h+=g[u],m[u]=b}else m[u]="?"}var x=i.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*d),x.write_shift(2,h),u=0;u<4;++u)x.write_shift(4,0);for(x.write_shift(4,(+e[zs]||3)<<8),u=0,f=0;u<s.length;++u)if(null!=s[u]){var k=i.next(32),A=(s[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);k.write_shift(1,A,"sbcs"),k.write_shift(1,"?"==m[u]?"C":m[u],"sbcs"),k.write_shift(4,f),k.write_shift(1,g[u]||a[m[u]]||0),k.write_shift(1,v[u]||0),k.write_shift(1,2),k.write_shift(4,0),k.write_shift(1,0),k.write_shift(4,0),k.write_shift(4,0),f+=g[u]||a[m[u]]||0}var S=i.next(264);for(S.write_shift(4,13),u=0;u<65;++u)S.write_shift(4,0);for(u=0;u<l.length;++u){var C=i.next(h);for(C.write_shift(1,0),f=0;f<s.length;++f)if(null!=s[f])switch(m[f]){case"L":C.write_shift(1,null==l[u][f]?63:l[u][f]?84:70);break;case"B":C.write_shift(8,l[u][f]||0,"f");break;case"N":var E="0";for("number"==typeof l[u][f]&&(E=l[u][f].toFixed(v[f]||0)),d=0;d<g[f]-E.length;++d)C.write_shift(1,32);C.write_shift(1,E,"sbcs");break;case"D":l[u][f]?(C.write_shift(4,("0000"+l[u][f].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(l[u][f].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+l[u][f].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var T=String(null!=l[u][f]?l[u][f]:"").slice(0,g[f]);for(C.write_shift(1,T,"sbcs"),d=0;d<g[f]-T.length;++d)C.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Rd=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("N("+lc(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(e,n){var a=t[n];return"number"==typeof a?Xs(a):a},a=function(t,e,n){var a=e.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==a?t:Xs(a)};function r(t,r){var i,o=t.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,f=[],d=[],h=null,p={},m=[],g=[],v=[],b=0;for(+r.codepage>=0&&Ks(+r.codepage);c!==o.length;++c){b=0;var _,y=o[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(e,n),w=y.replace(/;;/g,"\0").split(";").map((function(t){return t.replace(/\u0000/g,";")})),x=w[0];if(y.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&d.push(y.slice(3).replace(/;;/g,";"));break;case"C":var k=!1,A=!1,S=!1,C=!1,E=-1,T=-1;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"A":case"G":break;case"X":l=parseInt(w[u].slice(1))-1,A=!0;break;case"Y":for(s=parseInt(w[u].slice(1))-1,A||(l=0),i=f.length;i<=s;++i)f[i]=[];break;case"K":'"'===(_=w[u].slice(1)).charAt(0)?_=_.slice(1,_.length-1):"TRUE"===_?_=!0:"FALSE"===_?_=!1:isNaN(Sc(_))?isNaN(Ec(_).getDate())||(_=wc(_)):(_=Sc(_),null!==h&&Gl(h)&&(_=vc(_))),void 0!==Gs&&"string"==typeof _&&"string"!=(r||{}).type&&(r||{}).codepage&&(_=Gs.utils.decode(r.codepage,_)),k=!0;break;case"E":C=!0;var N=Sh(w[u].slice(1),{r:s,c:l});f[s][l]=[f[s][l],N];break;case"S":S=!0,f[s][l]=[f[s][l],"S5S"];break;case"R":E=parseInt(w[u].slice(1))-1;break;case"C":T=parseInt(w[u].slice(1))-1;break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}if(k&&(f[s][l]&&2==f[s][l].length?f[s][l][0]=_:f[s][l]=_,h=null),S){if(C)throw new Error("SYLK shared formula cannot have own formula");var P=E>-1&&f[E][T];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");f[s][l][1]=Th(P[1],{r:s-E,c:l-T})}break;case"F":var L=0;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"X":l=parseInt(w[u].slice(1))-1,++L;break;case"Y":for(s=parseInt(w[u].slice(1))-1,i=f.length;i<=s;++i)f[i]=[];break;case"M":b=parseInt(w[u].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=d[parseInt(w[u].slice(1))];break;case"W":for(v=w[u].slice(1).split(" "),i=parseInt(v[0],10);i<=parseInt(v[1],10);++i)b=parseInt(v[2],10),g[i-1]=0===b?{hidden:!0}:{wch:b},Jd(g[i-1]);break;case"C":g[l=parseInt(w[u].slice(1))-1]||(g[l]={});break;case"R":m[s=parseInt(w[u].slice(1))-1]||(m[s]={}),b>0?(m[s].hpt=b,m[s].hpx=th(b)):0===b&&(m[s].hidden=!0);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}L<1&&(h=null);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}}return m.length>0&&(p["!rows"]=m),g.length>0&&(p["!cols"]=g),r&&r.sheetRows&&(f=f.slice(0,r.sheetRows)),[f,p]}function i(t,e){var n=function(t,e){switch(e.type){case"base64":return r(tl(t),e);case"binary":return r(t,e);case"buffer":return r(el&&Ds.isBuffer(t)?t.toString("binary"):sl(t),e);case"array":return r(xc(t),e)}throw new Error("Unrecognized type "+e.type)}(t,e),a=n[0],i=n[1],o=af(a,e);return lc(i).forEach((function(t){o[t]=i[t]})),o}function o(t,e,n,a){var r="C;Y"+(n+1)+";X"+(a+1)+";K";switch(t.t){case"n":r+=t.v||0,t.f&&!t.F&&(r+=";E"+Eh(t.f,{r:n,c:a}));break;case"b":r+=t.v?"TRUE":"FALSE";break;case"e":r+=t.w||t.v;break;case"d":r+='"'+(t.w||t.v)+'"';break;case"s":r+='"'+t.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return r}return t["|"]=254,{to_workbook:function(t,e){return ef(i(t,e),e)},to_sheet:i,from_sheet:function(t,e){var n,a,r=["ID;PWXL;N;E"],i=[],s=Zu(t["!ref"]),l=Array.isArray(t),c="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),t["!cols"]&&(a=r,t["!cols"].forEach((function(t,e){var n="F;W"+(e+1)+" "+(e+1)+" ";t.hidden?n+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Gd(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Yd(t.wpx)),"number"==typeof t.wch&&(n+=Math.round(t.wch)))," "!=n.charAt(n.length-1)&&a.push(n)}))),t["!rows"]&&function(t,e){e.forEach((function(e,n){var a="F;";e.hidden?a+="M0;":e.hpt?a+="M"+20*e.hpt+";":e.hpx&&(a+="M"+20*Qd(e.hpx)+";"),a.length>2&&t.push(a+"R"+(n+1))}))}(r,t["!rows"]),r.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var u=s.s.r;u<=s.e.r;++u)for(var f=s.s.c;f<=s.e.c;++f){var d=Yu({r:u,c:f});(n=l?(t[u]||[])[f]:t[d])&&(null!=n.v||n.f&&!n.F)&&i.push(o(n,0,u,f))}return r.join(c)+c+i.join(c)+c+"E"+c}}}(),Id=function(){function t(t,e){for(var n=t.split("\n"),a=-1,r=-1,i=0,o=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(a<0)){for(var s=n[i].trim().split(","),l=s[0],c=s[1],u=n[++i]||"";1&(u.match(/["]/g)||[]).length&&i<n.length-1;)u+="\n"+n[++i];switch(u=u.trim(),+l){case-1:if("BOT"===u){o[++a]=[],r=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?o[a][r]=!0:"FALSE"===u?o[a][r]=!1:isNaN(Sc(c))?isNaN(Ec(c).getDate())?o[a][r]=c:o[a][r]=wc(c):o[a][r]=Sc(c),++r;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),o[a][r++]=""!==u?u:null}if("EOD"===u)break}}else o[++a]=[],r=0;return e&&e.sheetRows&&(o=o.slice(0,e.sheetRows)),o}function e(e,n){return af(function(e,n){switch(n.type){case"base64":return t(tl(e),n);case"binary":return t(e,n);case"buffer":return t(el&&Ds.isBuffer(e)?e.toString("binary"):sl(e),n);case"array":return t(xc(e),n)}throw new Error("Unrecognized type "+n.type)}(e,n),n)}var n=function(){var t=function(t,e,n,a,r){t.push(e),t.push(n+","+a),t.push('"'+r.replace(/"/g,'""')+'"')},e=function(t,e,n,a){t.push(e+","+n),t.push(1==e?'"'+a.replace(/"/g,'""')+'"':a)};return function(n){var a,r=[],i=Zu(n["!ref"]),o=Array.isArray(n);t(r,"TABLE",0,1,"sheetjs"),t(r,"VECTORS",0,i.e.r-i.s.r+1,""),t(r,"TUPLES",0,i.e.c-i.s.c+1,""),t(r,"DATA",0,0,"");for(var s=i.s.r;s<=i.e.r;++s){e(r,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var c=Yu({r:s,c:l});if(a=o?(n[s]||[])[l]:n[c])switch(a.t){case"n":var u=a.w;u||null==a.v||(u=a.v),null==u?a.f&&!a.F?e(r,1,0,"="+a.f):e(r,1,0,""):e(r,0,u,"V");break;case"b":e(r,0,a.v?1:0,a.v?"TRUE":"FALSE");break;case"s":e(r,1,0,isNaN(a.v)?a.v:'="'+a.v+'"');break;case"d":a.w||(a.w=Zl(a.z||yl[14],hc(wc(a.v)))),e(r,0,a.w,"V");break;default:e(r,1,0,"")}else e(r,1,0,"")}}e(r,-1,0,"EOD");return r.join("\r\n")}}();return{to_workbook:function(t,n){return ef(e(t,n),n)},to_sheet:e,from_sheet:n}}(),Md=function(){function t(t){return t.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function e(t){return t.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(e,n){return af(function(e,n){for(var a=e.split("\n"),r=-1,i=-1,o=0,s=[];o!==a.length;++o){var l=a[o].trim().split(":");if("cell"===l[0]){var c=Gu(l[1]);if(s.length<=c.r)for(r=s.length;r<=c.r;++r)s[r]||(s[r]=[]);switch(r=c.r,i=c.c,l[2]){case"t":s[r][i]=t(l[3]);break;case"v":s[r][i]=+l[3];break;case"vtf":var u=l[l.length-1];case"vtc":"nl"===l[3]?s[r][i]=!!+l[4]:s[r][i]=+l[4],"vtf"==l[2]&&(s[r][i]=[s[r][i],u])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}(e,n),n)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),r=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),o="--SocialCalcSpreadsheetControlSave--";function s(t){if(!t||!t["!ref"])return"";for(var n,a=[],r=[],i="",o=Xu(t["!ref"]),s=Array.isArray(t),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c)if(i=Yu({r:l,c}),(n=s?(t[l]||[])[c]:t[i])&&null!=n.v&&"z"!==n.t){switch(r=["cell",i,"t"],n.t){case"s":case"str":r.push(e(n.v));break;case"n":n.f?(r[2]="vtf",r[3]="n",r[4]=n.v,r[5]=e(n.f)):(r[2]="v",r[3]=n.v);break;case"b":r[2]="vt"+(n.f?"f":"c"),r[3]="nl",r[4]=n.v?"1":"0",r[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=hc(wc(n.v));r[2]="vtc",r[3]="nd",r[4]=""+u,r[5]=n.w||Zl(n.z||yl[14],u);break;case"e":continue}a.push(r.join(":"))}return a.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),a.push("valueformat:1:text-wiki"),a.join("\n")}return{to_workbook:function(t,e){return ef(n(t,e),e)},to_sheet:n,from_sheet:function(t){return[a,r,i,r,s(t),o].join("\n")}}}(),Fd=function(){function t(t,e,n,a,r){r.raw?e[n][a]=t:""===t||("TRUE"===t?e[n][a]=!0:"FALSE"===t?e[n][a]=!1:isNaN(Sc(t))?isNaN(Ec(t).getDate())?e[n][a]=t:e[n][a]=wc(t):e[n][a]=Sc(t))}var e={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(t){for(var a={},r=!1,i=0,o=0;i<t.length;++i)34==(o=t.charCodeAt(i))?r=!r:!r&&o in e&&(a[o]=(a[o]||0)+1);for(i in o=[],a)Object.prototype.hasOwnProperty.call(a,i)&&o.push([a[i],i]);if(!o.length)for(i in a=n)Object.prototype.hasOwnProperty.call(a,i)&&o.push([a[i],i]);return o.sort((function(t,e){return t[0]-e[0]||n[t[1]]-n[e[1]]})),e[o.pop()[1]]||44}function r(t,e){var n=e||{},r="";null!=Js&&null==n.dense&&(n.dense=Js);var i=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==t.slice(0,4)?13==t.charCodeAt(5)&&10==t.charCodeAt(6)?(r=t.charAt(4),t=t.slice(7)):13==t.charCodeAt(5)||10==t.charCodeAt(5)?(r=t.charAt(4),t=t.slice(6)):r=a(t.slice(0,1024)):r=n&&n.FS?n.FS:a(t.slice(0,1024));var s=0,l=0,c=0,u=0,f=0,d=r.charCodeAt(0),h=!1,p=0,m=t.charCodeAt(0);t=t.replace(/\r\n/gm,"\n");var g,v,b=null!=n.dateNF?(g=n.dateNF,v=(v="number"==typeof g?yl[g]:g).replace(nc,"(\\d+)"),new RegExp("^"+v+"$")):null;function _(){var e=t.slice(u,f),a={};if('"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.slice(1,-1).replace(/""/g,'"')),0===e.length)a.t="z";else if(n.raw)a.t="s",a.v=e;else if(0===e.trim().length)a.t="s",a.v=e;else if(61==e.charCodeAt(0))34==e.charCodeAt(1)&&34==e.charCodeAt(e.length-1)?(a.t="s",a.v=e.slice(2,-1).replace(/""/g,'"')):!function(t){return 1!=t.length}(e)?(a.t="s",a.v=e):(a.t="n",a.f=e.slice(1));else if("TRUE"==e)a.t="b",a.v=!0;else if("FALSE"==e)a.t="b",a.v=!1;else if(isNaN(c=Sc(e)))if(!isNaN(Ec(e).getDate())||b&&e.match(b)){a.z=n.dateNF||yl[14];var r=0;b&&e.match(b)&&(e=function(t,e,n){var a=-1,r=-1,i=-1,o=-1,s=-1,l=-1;(e.match(nc)||[]).forEach((function(t,e){var c=parseInt(n[e+1],10);switch(t.toLowerCase().charAt(0)){case"y":a=c;break;case"d":i=c;break;case"h":o=c;break;case"s":l=c;break;case"m":o>=0?s=c:r=c}})),l>=0&&-1==s&&r>=0&&(s=r,r=-1);var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==o&&-1==s&&-1==l?c:-1==a&&-1==r&&-1==i?u:c+"T"+u}(0,n.dateNF,e.match(b)||[]),r=1),n.cellDates?(a.t="d",a.v=wc(e,r)):(a.t="n",a.v=hc(wc(e,r))),!1!==n.cellText&&(a.w=Zl(a.z,a.v instanceof Date?hc(a.v):a.v)),n.cellNF||delete a.z}else a.t="s",a.v=e;else a.t="n",!1!==n.cellText&&(a.w=e),a.v=c;if("z"==a.t||(n.dense?(i[s]||(i[s]=[]),i[s][l]=a):i[Yu({c:l,r:s})]=a),u=f+1,m=t.charCodeAt(u),o.e.c<l&&(o.e.c=l),o.e.r<s&&(o.e.r=s),p==d)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}t:for(;f<t.length;++f)switch(p=t.charCodeAt(f)){case 34:34===m&&(h=!h);break;case d:case 10:case 13:if(!h&&_())break t}return f-u>0&&_(),i["!ref"]=Ju(o),i}function i(e,n){return n&&n.PRN?n.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?r(e,n):af(function(e,n){var a=n||{},r=[];if(!e||0===e.length)return r;for(var i=e.split(/[\r\n]/),o=i.length-1;o>=0&&0===i[o].length;)--o;for(var s=10,l=0,c=0;c<=o;++c)-1==(l=i[c].indexOf(" "))?l=i[c].length:l++,s=Math.max(s,l);for(c=0;c<=o;++c){r[c]=[];var u=0;for(t(i[c].slice(0,s).trim(),r,c,u,a),u=1;u<=(i[c].length-s)/10+1;++u)t(i[c].slice(s+10*(u-1),s+10*u).trim(),r,c,u,a)}return a.sheetRows&&(r=r.slice(0,a.sheetRows)),r}(e,n),n):r(e,n)}function o(t,e){var n="",a="string"==e.type?[0,0,0,0]:qm(t,e);switch(e.type){case"base64":n=tl(t);break;case"binary":case"string":n=t;break;case"buffer":n=65001==e.codepage?t.toString("utf8"):e.codepage&&void 0!==Gs?Gs.utils.decode(e.codepage,t):el&&Ds.isBuffer(t)?t.toString("binary"):sl(t);break;case"array":n=xc(t);break;default:throw new Error("Unrecognized type "+e.type)}return 239==a[0]&&187==a[1]&&191==a[2]?n=Wc(n.slice(3)):"string"!=e.type&&"buffer"!=e.type&&65001==e.codepage?n=Wc(n):"binary"==e.type&&void 0!==Gs&&e.codepage&&(n=Gs.utils.decode(e.codepage,Gs.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Md.to_sheet("string"==e.type?n:Wc(n),e):i(n,e)}return{to_workbook:function(t,e){return ef(o(t,e),e)},to_sheet:o,from_sheet:function(t){for(var e,n=[],a=Zu(t["!ref"]),r=Array.isArray(t),i=a.s.r;i<=a.e.r;++i){for(var o=[],s=a.s.c;s<=a.e.c;++s){var l=Yu({r:i,c:s});if((e=r?(t[i]||[])[s]:t[l])&&null!=e.v){for(var c=(e.w||(tf(e),e.w)||"").slice(0,10);c.length<10;)c+=" ";o.push(c+(0===s?" ":""))}else o.push(" ")}n.push(o.join(""))}return n.join("\n")}}}();var Dd=function(){function t(t,e,n){if(t){Mu(t,t.l||0);for(var a=n.Enum||v;t.l<t.length;){var r=t.read_shift(2),i=a[r]||a[65535],o=t.read_shift(2),s=t.l+o,l=i.f&&i.f(t,o,n);if(t.l=s,e(l,i,r))return}}}function e(e,n){if(!e)return e;var a=n||{};null!=Js&&null==a.dense&&(a.dense=Js);var r=a.dense?[]:{},i="Sheet1",o="",s=0,l={},c=[],u=[],f={s:{r:0,c:0},e:{r:0,c:0}},d=a.sheetRows||0;if(0==e[2]&&(8==e[3]||9==e[3])&&e.length>=16&&5==e[14]&&108===e[15])throw new Error("Unsupported Works 3 for Mac file");if(2==e[2])a.Enum=v,t(e,(function(t,e,n){switch(n){case 0:a.vers=t,t>=4096&&(a.qpro=!0);break;case 6:f=t;break;case 204:t&&(o=t);break;case 222:o=t;break;case 15:case 51:a.qpro||(t[1].v=t[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~t[2])&&(15&t[2])>1&&(15&t[2])<15&&(t[1].z=a.dateNF||yl[14],a.cellDates&&(t[1].t="d",t[1].v=vc(t[1].v))),a.qpro&&t[3]>s&&(r["!ref"]=Ju(f),l[i]=r,c.push(i),r=a.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},s=t[3],i=o||"Sheet"+(s+1),o="");var u=a.dense?(r[t[0].r]||[])[t[0].c]:r[Yu(t[0])];if(u){u.t=t[1].t,u.v=t[1].v,null!=t[1].z&&(u.z=t[1].z),null!=t[1].f&&(u.f=t[1].f);break}a.dense?(r[t[0].r]||(r[t[0].r]=[]),r[t[0].r][t[0].c]=t[1]):r[Yu(t[0])]=t[1]}}),a);else{if(26!=e[2]&&14!=e[2])throw new Error("Unrecognized LOTUS BOF "+e[2]);a.Enum=b,14==e[2]&&(a.qpro=!0,e.l=0),t(e,(function(t,e,n){switch(n){case 204:i=t;break;case 22:t[1].v=t[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(t[3]>s&&(r["!ref"]=Ju(f),l[i]=r,c.push(i),r=a.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},s=t[3],i="Sheet"+(s+1)),d>0&&t[0].r>=d)break;a.dense?(r[t[0].r]||(r[t[0].r]=[]),r[t[0].r][t[0].c]=t[1]):r[Yu(t[0])]=t[1],f.e.c<t[0].c&&(f.e.c=t[0].c),f.e.r<t[0].r&&(f.e.r=t[0].r);break;case 27:t[14e3]&&(u[t[14e3][0]]=t[14e3][1]);break;case 1537:u[t[0]]=t[1],t[0]==s&&(i=t[1])}}),a)}if(r["!ref"]=Ju(f),l[o||i]=r,c.push(o||i),!u.length)return{SheetNames:c,Sheets:l};for(var h={},p=[],m=0;m<u.length;++m)l[c[m]]?(p.push(u[m]||c[m]),h[u[m]]=l[u[m]]||l[c[m]]):(p.push(u[m]),h[u[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:h}}function n(t,e,n){var a=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(a[0].c=t.read_shift(1),a[3]=t.read_shift(1),a[0].r=t.read_shift(2),t.l+=2):(a[2]=t.read_shift(1),a[0].c=t.read_shift(2),a[0].r=t.read_shift(2)),a}function a(t,e,a){var r=t.l+e,i=n(t,0,a);if(i[1].t="s",20768==a.vers){t.l++;var o=t.read_shift(1);return i[1].v=t.read_shift(o,"utf8"),i}return a.qpro&&t.l++,i[1].v=t.read_shift(r-t.l,"cstr"),i}function r(t,e,n){var a=Du(7+n.length);a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(1,39);for(var r=0;r<a.length;++r){var i=n.charCodeAt(r);a.write_shift(1,i>=128?95:i)}return a.write_shift(1,0),a}function i(t,e,n){var a=Du(7);return a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(2,n,"i"),a}function o(t,e,n){var a=Du(13);return a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(8,n,"f"),a}function s(t,e,n){var a=32768&e;return e=(a?t:0)+((e&=-32769)>=8192?e-16384:e),(a?"":"$")+(n?$u(e):Ku(e))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},c=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(t){var e=[{c:0,r:0},{t:"n",v:0},0];return e[0].r=t.read_shift(2),e[3]=t[t.l++],e[0].c=t[t.l++],e}function f(t,e,n,a){var r=Du(6+a.length);r.write_shift(2,t),r.write_shift(1,n),r.write_shift(1,e),r.write_shift(1,39);for(var i=0;i<a.length;++i){var o=a.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function d(t,e){var n=u(t),a=t.read_shift(4),r=t.read_shift(4),i=t.read_shift(2);if(65535==i)return 0===a&&3221225472===r?(n[1].t="e",n[1].v=15):0===a&&3489660928===r?(n[1].t="e",n[1].v=42):n[1].v=0,n;var o=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*o)*(r*Math.pow(2,i+32)+a*Math.pow(2,i)),n}function h(t,e,n,a){var r=Du(14);if(r.write_shift(2,t),r.write_shift(1,n),r.write_shift(1,e),0==a)return r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,65535),r;var i,o=0,s=0,l=0;return a<0&&(o=1,a=-a),s=0|Math.log2(a),2147483648&(l=(a/=Math.pow(2,s-31))>>>0)||(++s,l=(a/=2)>>>0),a-=l,l|=2147483648,l>>>=0,i=(a*=Math.pow(2,32))>>>0,r.write_shift(4,i),r.write_shift(4,l),s+=16383+(o?32768:0),r.write_shift(2,s),r}function p(t,e){var n=u(t),a=t.read_shift(8,"f");return n[1].v=a,n}function m(t,e){return 0==t[t.l+e-1]?t.read_shift(e,"cstr"):""}function g(t,e){var n=Du(5+t.length);n.write_shift(2,14e3),n.write_shift(2,e);for(var a=0;a<t.length;++a){var r=t.charCodeAt(a);n[n.l++]=r>127?95:r}return n[n.l++]=0,n}var v={0:{n:"BOF",f:cd},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(t,e,n){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==e&&n.qpro?(a.s.c=t.read_shift(1),t.l++,a.s.r=t.read_shift(2),a.e.c=t.read_shift(1),t.l++,a.e.r=t.read_shift(2),a):(a.s.c=t.read_shift(2),a.s.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),a.e.c=t.read_shift(2),a.e.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(t,e,a){var r=n(t,0,a);return r[1].v=t.read_shift(2,"i"),r}},14:{n:"NUMBER",f:function(t,e,a){var r=n(t,0,a);return r[1].v=t.read_shift(8,"f"),r}},15:{n:"LABEL",f:a},16:{n:"FORMULA",f:function(t,e,a){var r=t.l+e,i=n(t,0,a);if(i[1].v=t.read_shift(8,"f"),a.qpro)t.l=r;else{var o=t.read_shift(2);!function(t,e){Mu(t,0);var n=[],a=0,r="",i="",o="",u="";for(;t.l<t.length;){var f=t[t.l++];switch(f){case 0:n.push(t.read_shift(8,"f"));break;case 1:i=s(e[0].c,t.read_shift(2),!0),r=s(e[0].r,t.read_shift(2),!1),n.push(i+r);break;case 2:var d=s(e[0].c,t.read_shift(2),!0),h=s(e[0].r,t.read_shift(2),!1);i=s(e[0].c,t.read_shift(2),!0),r=s(e[0].r,t.read_shift(2),!1),n.push(d+h+":"+i+r);break;case 3:if(t.l<t.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(t.read_shift(2));break;case 6:for(var p="";f=t[t.l++];)p+=String.fromCharCode(f);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:u=n.pop(),o=n.pop(),n.push(["AND","OR"][f-20]+"("+o+","+u+")");break;default:if(f<32&&c[f])u=n.pop(),o=n.pop(),n.push(o+c[f]+u);else{if(!l[f])return f<=7?console.error("WK1 invalid opcode "+f.toString(16)):f<=24?console.error("WK1 unsupported op "+f.toString(16)):f<=30?console.error("WK1 invalid opcode "+f.toString(16)):f<=115?console.error("WK1 unsupported function opcode "+f.toString(16)):console.error("WK1 unrecognized opcode "+f.toString(16));if(69==(a=l[f][1])&&(a=t[t.l++]),a>n.length)return void console.error("WK1 bad formula parse 0x"+f.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-a);n.length-=a,n.push(l[f][0]+"("+m.join(",")+")")}}}1==n.length?e[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(t.slice(t.l,t.l+o),i),t.l+=o}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:a},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(t,e){var n=t[t.l++];n>e-1&&(n=e-1);for(var a="";a.length<n;)a+=String.fromCharCode(t[t.l++]);return a}},65535:{n:""}},b={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(t,e){var n=u(t);return n[1].t="s",n[1].v=t.read_shift(e-4,"cstr"),n}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(t,e){var n=u(t);n[1].v=t.read_shift(2);var a=n[1].v>>1;if(1&n[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64}return n[1].v=a,n}},25:{n:"FORMULA19",f:function(t,e){var n=d(t);return t.l+=e-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(t,e){for(var n={},a=t.l+e;t.l<a;){var r=t.read_shift(2);if(14e3==r){for(n[r]=[0,""],n[r][0]=t.read_shift(2);t[t.l];)n[r][1]+=String.fromCharCode(t[t.l]),t.l++;t.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(t,e){var n=u(t),a=t.read_shift(4);return n[1].v=a>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(t,e){var n=p(t);return t.l+=e-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(t,e,n){if(n.qpro&&!(e<21)){var a=t.read_shift(1);return t.l+=17,t.l+=1,t.l+=2,[a,t.read_shift(e-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(t,e){var n=e||{};if(+n.codepage>=0&&Ks(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var a=ju(),s=Zu(t["!ref"]),l=Array.isArray(t),c=[];em(a,0,function(t){var e=Du(2);return e.write_shift(2,t),e}(1030)),em(a,6,function(t){var e=Du(8);return e.write_shift(2,t.s.c),e.write_shift(2,t.s.r),e.write_shift(2,t.e.c),e.write_shift(2,t.e.r),e}(s));for(var u=Math.min(s.e.r,8191),f=s.s.r;f<=u;++f)for(var d=Ku(f),h=s.s.c;h<=s.e.c;++h){f===s.s.r&&(c[h]=$u(h));var p=c[h]+d,m=l?(t[f]||[])[h]:t[p];if(m&&"z"!=m.t)if("n"==m.t)(0|m.v)==m.v&&m.v>=-32768&&m.v<=32767?em(a,13,i(f,h,m.v)):em(a,14,o(f,h,m.v));else em(a,15,r(f,h,tf(m).slice(0,239)))}return em(a,1),a.end()},book_to_wk3:function(t,e){var n=e||{};if(+n.codepage>=0&&Ks(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var a=ju();em(a,0,function(t){var e=Du(26);e.write_shift(2,4096),e.write_shift(2,4),e.write_shift(4,0);for(var n=0,a=0,r=0,i=0;i<t.SheetNames.length;++i){var o=t.SheetNames[i],s=t.Sheets[o];if(s&&s["!ref"]){++r;var l=Xu(s["!ref"]);n<l.e.r&&(n=l.e.r),a<l.e.c&&(a=l.e.c)}}n>8191&&(n=8191);return e.write_shift(2,n),e.write_shift(1,r),e.write_shift(1,a),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,1),e.write_shift(1,2),e.write_shift(4,0),e.write_shift(4,0),e}(t));for(var r=0,i=0;r<t.SheetNames.length;++r)(t.Sheets[t.SheetNames[r]]||{})["!ref"]&&em(a,27,g(t.SheetNames[r],i++));var o=0;for(r=0;r<t.SheetNames.length;++r){var s=t.Sheets[t.SheetNames[r]];if(s&&s["!ref"]){for(var l=Zu(s["!ref"]),c=Array.isArray(s),u=[],d=Math.min(l.e.r,8191),p=l.s.r;p<=d;++p)for(var m=Ku(p),v=l.s.c;v<=l.e.c;++v){p===l.s.r&&(u[v]=$u(v));var b=u[v]+m,_=c?(s[p]||[])[v]:s[b];if(_&&"z"!=_.t)if("n"==_.t)em(a,23,h(p,v,o,_.v));else em(a,22,f(p,v,o,tf(_).slice(0,239)))}++o}}return em(a,1),a.end()},to_workbook:function(t,n){switch(n.type){case"base64":return e(il(tl(t)),n);case"binary":return e(il(t),n);case"buffer":case"array":return e(t,n)}throw"Unsupported type "+n.type}}}();var jd=/^\s|\s$|[\t\n\r]/;function Bd(t,e){if(!e.bookSST)return"";var n=[Pc];n[n.length]=Xc("sst",null,{xmlns:Qc[0],count:t.Count,uniqueCount:t.Unique});for(var a=0;a!=t.length;++a)if(null!=t[a]){var r=t[a],i="<si>";r.r?i+=r.r:(i+="<t",r.t||(r.t=""),r.t.match(jd)&&(i+=' xml:space="preserve"'),i+=">"+Mc(r.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Ud=function(t,e){var n=!1;return null==e&&(n=!0,e=Du(15+4*t.t.length)),e.write_shift(1,0),sf(t.t,e),n?e.slice(0,e.l):e};function zd(t){var e=ju();Bu(e,159,function(t,e){return e||(e=Du(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}(t));for(var n=0;n<t.length;++n)Bu(e,19,Ud(t[n]));return Bu(e,160),e.end()}function Hd(t){if(void 0!==Gs)return Gs.utils.encode(zs,t);for(var e=[],n=t.split(""),a=0;a<n.length;++a)e[a]=n[a].charCodeAt(0);return e}function qd(t){var e,n,a=0,r=Hd(t),i=r.length+1;for((e=al(i))[0]=r.length,n=1;n!=i;++n)e[n]=r[n-1];for(n=i-1;n>=0;--n)a=((16384&a?1:0)|a<<1&32767)^e[n];return 52811^a}var Wd=function(){function t(t,n){switch(n.type){case"base64":return e(tl(t),n);case"binary":return e(t,n);case"buffer":return e(el&&Ds.isBuffer(t)?t.toString("binary"):sl(t),n);case"array":return e(xc(t),n)}throw new Error("Unrecognized type "+n.type)}function e(t,e){var n=(e||{}).dense?[]:{},a=t.match(/\\trowd.*?\\row\b/g);if(!a.length)throw new Error("RTF missing table");var r={s:{c:0,r:0},e:{c:0,r:a.length-1}};return a.forEach((function(t,e){Array.isArray(n)&&(n[e]=[]);for(var a,i=/\\\w+\b/g,o=0,s=-1;a=i.exec(t);){if("\\cell"===a[0]){var l=t.slice(o,i.lastIndex-a[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(n)?n[e][s]=c:n[Yu({r:e,c:s})]=c}}o=i.lastIndex}s>r.e.c&&(r.e.c=s)})),n["!ref"]=Ju(r),n}return{to_workbook:function(e,n){return ef(t(e,n),n)},to_sheet:t,from_sheet:function(t){for(var e,n=["{\\rtf1\\ansi"],a=Zu(t["!ref"]),r=Array.isArray(t),i=a.s.r;i<=a.e.r;++i){n.push("\\trowd\\trautofit1");for(var o=a.s.c;o<=a.e.c;++o)n.push("\\cellx"+(o+1));for(n.push("\\pard\\intbl"),o=a.s.c;o<=a.e.c;++o){var s=Yu({r:i,c:o});(e=r?(t[i]||[])[o]:t[s])&&(null!=e.v||e.f&&!e.F)&&(n.push(" "+(e.w||(tf(e),e.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Kd(t){for(var e=0,n=1;3!=e;++e)n=256*n+(t[e]>255?255:t[e]<0?0:t[e]);return n.toString(16).toUpperCase().slice(1)}var Vd=6,$d=Vd;function Gd(t){return Math.floor((t+Math.round(128/$d)/256)*$d)}function Yd(t){return Math.floor((t-5)/$d*100+.5)/100}function Xd(t){return Math.round((t*$d+5)/$d*256)/256}function Jd(t){t.width?(t.wpx=Gd(t.width),t.wch=Yd(t.wpx),t.MDW=$d):t.wpx?(t.wch=Yd(t.wpx),t.width=Xd(t.wch),t.MDW=$d):"number"==typeof t.wch&&(t.width=Xd(t.wch),t.wpx=Gd(t.width),t.MDW=$d),t.customWidth&&delete t.customWidth}var Zd=96;function Qd(t){return 96*t/Zd}function th(t){return t*Zd/96}function eh(t,e){var n,a=[Pc,Xc("styleSheet",null,{xmlns:Qc[0],"xmlns:vt":Zc.vt})];return t.SSF&&null!=(n=function(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=t[a]&&(e[e.length]=Xc("numFmt",null,{numFmtId:a,formatCode:Mc(t[a])}))})),1===e.length?"":(e[e.length]="</numFmts>",e[0]=Xc("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(t.SSF))&&(a[a.length]=n),a[a.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',a[a.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',a[a.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',a[a.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(t){var e=[];return e[e.length]=Xc("cellXfs",null),t.forEach((function(t){e[e.length]=Xc("xf",null,t)})),e[e.length]="</cellXfs>",2===e.length?"":(e[0]=Xc("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(e.cellXfs))&&(a[a.length]=n),a[a.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',a[a.length]='<dxfs count="0"/>',a[a.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',a.length>2&&(a[a.length]="</styleSheet>",a[1]=a[1].replace("/>",">")),a.join("")}function nh(t,e,n){n||(n=Du(6+4*e.length)),n.write_shift(2,t),sf(e,n);var a=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),a}function ah(t,e){e||(e=Du(153)),e.write_shift(2,20*t.sz),function(t,e){e||(e=Du(2));var n=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);e.write_shift(1,n),e.write_shift(1,0)}(t,e),e.write_shift(2,t.bold?700:400);var n=0;"superscript"==t.vertAlign?n=1:"subscript"==t.vertAlign&&(n=2),e.write_shift(2,n),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Pf(t.color,e);var a=0;return"major"==t.scheme&&(a=1),"minor"==t.scheme&&(a=2),e.write_shift(1,a),sf(t.name,e),e.length>e.l?e.slice(0,e.l):e}var rh,ih=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],oh=Fu;function sh(t,e){e||(e=Du(84)),rh||(rh=uc(ih));var n=rh[t.patternType];null==n&&(n=40),e.write_shift(4,n);var a=0;if(40!=n)for(Pf({auto:1},e),Pf({auto:1},e);a<12;++a)e.write_shift(4,0);else{for(;a<4;++a)e.write_shift(4,0);for(;a<12;++a)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function lh(t,e,n){n||(n=Du(16)),n.write_shift(2,e||0),n.write_shift(2,t.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function ch(t,e){return e||(e=Du(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var uh=Fu;function fh(t){Bu(t,613,rf(1)),Bu(t,46,function(t,e){return e||(e=Du(51)),e.write_shift(1,0),ch(0,e),ch(0,e),ch(0,e),ch(0,e),ch(0,e),e.length>e.l?e.slice(0,e.l):e}()),Bu(t,614)}function dh(t){Bu(t,619,rf(1)),Bu(t,48,function(t,e){return e||(e=Du(52)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),_f(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}({xfId:0,builtinId:0,name:"Normal"})),Bu(t,620)}function hh(t){Bu(t,508,function(t,e,n){var a=Du(2052);return a.write_shift(4,t),_f(e,a),_f(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),Bu(t,509)}function ph(t,e){var n=ju();return Bu(n,278),function(t,e){if(e){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(t){for(var a=t[0];a<=t[1];++a)null!=e[a]&&++n})),0!=n&&(Bu(t,615,rf(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=e[a]&&Bu(t,44,nh(a,e[a]))})),Bu(t,616))}}(n,t.SSF),function(t){Bu(t,611,rf(1)),Bu(t,43,ah({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Bu(t,612)}(n),function(t){Bu(t,603,rf(2)),Bu(t,45,sh({patternType:"none"})),Bu(t,45,sh({patternType:"gray125"})),Bu(t,604)}(n),fh(n),function(t){Bu(t,626,rf(1)),Bu(t,47,lh({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Bu(t,627)}(n),function(t,e){Bu(t,617,rf(e.length)),e.forEach((function(e){Bu(t,47,lh(e,0))})),Bu(t,618)}(n,e.cellXfs),dh(n),function(t){Bu(t,505,rf(0)),Bu(t,506)}(n),hh(n),Bu(n,279),n.end()}function mh(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var n=[Pc];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function gh(){var t=ju();return Bu(t,332),Bu(t,334,rf(1)),Bu(t,335,function(t){var e=Du(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),sf(t.name,e),e.slice(0,e.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Bu(t,336),Bu(t,339,function(t,e){var n=Du(8+2*e.length);return n.write_shift(4,t),sf(e,n),n.slice(0,n.l)}(1,"XLDAPR")),Bu(t,52),Bu(t,35,rf(514)),Bu(t,4096,rf(0)),Bu(t,4097,ud(1)),Bu(t,36),Bu(t,53),Bu(t,340),Bu(t,337,function(t,e){var n=Du(8);return n.write_shift(4,t),n.write_shift(4,e?1:0),n}(1,!0)),Bu(t,51,function(t){var e=Du(4+8*t.length);e.write_shift(4,t.length);for(var n=0;n<t.length;++n)e.write_shift(4,t[n][0]),e.write_shift(4,t[n][1]);return e}([[1,0]])),Bu(t,338),Bu(t,333),t.end()}function vh(){var t=[Pc];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),t.join("")}var bh=1024;function _h(t,e){for(var n=[21600,21600],a=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),r=[Xc("xml",null,{"xmlns:v":tu.v,"xmlns:o":tu.o,"xmlns:x":tu.x,"xmlns:mv":tu.mv}).replace(/\/>/,">"),Xc("o:shapelayout",Xc("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Xc("v:shapetype",[Xc("v:stroke",null,{joinstyle:"miter"}),Xc("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:a})];bh<1e3*t;)bh+=1e3;return e.forEach((function(t){var e=Gu(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var a="gradient"==n.type?Xc("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Xc("v:fill",a,n);++bh,r=r.concat(["<v:shape"+Yc({id:"_x0000_s"+bh,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Xc("v:shadow",null,{on:"t",obscured:"t"}),Xc("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Gc("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Gc("x:AutoFill","False"),Gc("x:Row",String(e.r)),Gc("x:Column",String(e.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),r.push("</xml>"),r.join("")}function yh(t){var e=[Pc,Xc("comments",null,{xmlns:Qc[0]})],n=[];return e.push("<authors>"),t.forEach((function(t){t[1].forEach((function(t){var a=Mc(t.a);-1==n.indexOf(a)&&(n.push(a),e.push("<author>"+a+"</author>")),t.T&&t.ID&&-1==n.indexOf("tc="+t.ID)&&(n.push("tc="+t.ID),e.push("<author>tc="+t.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach((function(t){var a=0,r=[];if(t[1][0]&&t[1][0].T&&t[1][0].ID?a=n.indexOf("tc="+t[1][0].ID):t[1].forEach((function(t){t.a&&(a=n.indexOf(Mc(t.a))),r.push(t.t||"")})),e.push('<comment ref="'+t[0]+'" authorId="'+a+'"><text>'),r.length<=1)e.push(Gc("t",Mc(r[0]||"")));else{for(var i="Comment:\n "+r[0]+"\n",o=1;o<r.length;++o)i+="Reply:\n "+r[o]+"\n";e.push(Gc("t",Mc(i)))}e.push("</text></comment>")})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function wh(t,e,n){var a=[Pc,Xc("ThreadedComments",null,{xmlns:Zc.TCMNT}).replace(/[\/]>/,">")];return t.forEach((function(t){var r="";(t[1]||[]).forEach((function(i,o){if(i.T){i.a&&-1==e.indexOf(i.a)&&e.push(i.a);var s={ref:t[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==o?r=s.id:s.parentId=r,i.ID=s.id,i.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(i.a)).slice(-12)+"}"),a.push(Xc("threadedComment",Gc("text",i.t||""),s))}else delete i.ID}))})),a.push("</ThreadedComments>"),a.join("")}var xh=of;function kh(t){var e=ju(),n=[];return Bu(e,628),Bu(e,630),t.forEach((function(t){t[1].forEach((function(t){n.indexOf(t.a)>-1||(n.push(t.a.slice(0,54)),Bu(e,632,function(t){return sf(t.slice(0,54))}(t.a)))}))})),Bu(e,631),Bu(e,633),t.forEach((function(t){t[1].forEach((function(a){a.iauthor=n.indexOf(a.a);var r={s:Gu(t[0]),e:Gu(t[0])};Bu(e,635,function(t,e){return null==e&&(e=Du(36)),e.write_shift(4,t[1].iauthor),Ef(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}([r,a])),a.t&&a.t.length>0&&Bu(e,637,ff(a)),Bu(e,636),delete a.iauthor}))})),Bu(e,634),Bu(e,629),e.end()}var Ah=["xlsb","xlsm","xlam","biff8","xla"];var Sh=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function n(t,n,a,r){var i=!1,o=!1;0==a.length?o=!0:"["==a.charAt(0)&&(o=!0,a=a.slice(1,-1)),0==r.length?i=!0:"["==r.charAt(0)&&(i=!0,r=r.slice(1,-1));var s=a.length>0?0|parseInt(a,10):0,l=r.length>0?0|parseInt(r,10):0;return i?l+=e.c:--l,o?s+=e.r:--s,n+(i?"":"$")+$u(l)+(o?"":"$")+Ku(s)}return function(a,r){return e=r,a.replace(t,n)}}(),Ch=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Eh=function(){return function(t,e){return t.replace(Ch,(function(t,n,a,r,i,o){var s=Vu(r)-(a?0:e.c),l=Wu(o)-(i?0:e.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==s?"":a?s+1:"["+s+"]")}))}}();function Th(t,e){return t.replace(Ch,(function(t,n,a,r,i,o){return n+("$"==a?a+r:$u(Vu(r)+e.c))+("$"==i?i+o:Ku(Wu(o)+e.r))}))}function Nh(t){t.l+=1}function Ph(t,e){var n=t.read_shift(1==e?1:2);return[16383&n,n>>14&1,n>>15&1]}function Lh(t,e,n){var a=2;if(n){if(n.biff>=2&&n.biff<=5)return Oh(t);12==n.biff&&(a=4)}var r=t.read_shift(a),i=t.read_shift(a),o=Ph(t,2),s=Ph(t,2);return{s:{r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Oh(t){var e=Ph(t,2),n=Ph(t,2),a=t.read_shift(1),r=t.read_shift(1);return{s:{r:e[0],c:a,cRel:e[1],rRel:e[2]},e:{r:n[0],c:r,cRel:n[1],rRel:n[2]}}}function Rh(t,e,n){if(n&&n.biff>=2&&n.biff<=5)return function(t){var e=Ph(t,2),n=t.read_shift(1);return{r:e[0],c:n,cRel:e[1],rRel:e[2]}}(t);var a=t.read_shift(n&&12==n.biff?4:2),r=Ph(t,2);return{r:a,c:r[0],cRel:r[1],rRel:r[2]}}function Ih(t){var e=t.read_shift(2),n=t.read_shift(2);return{r:e,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Mh(t){var e=1&t[t.l+1];return t.l+=4,[e,1]}function Fh(t){return[t.read_shift(1),t.read_shift(1)]}function Dh(t,e){var n=[t.read_shift(1)];if(12==e)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=sd(t,1)?"TRUE":"FALSE",12!=e&&(t.l+=7);break;case 37:case 16:n[1]=jf[t[t.l]],t.l+=12==e?4:8;break;case 0:t.l+=8;break;case 1:n[1]=Tf(t);break;case 2:n[1]=gd(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function jh(t,e,n){for(var a=t.read_shift(12==n.biff?4:2),r=[],i=0;i!=a;++i)r.push((12==n.biff?Cf:xd)(t,8));return r}function Bh(t,e,n){var a=0,r=0;12==n.biff?(a=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),a=1+t.read_shift(2)),n.biff>=2&&n.biff<8&&(--a,0==--r&&(r=256));for(var i=0,o=[];i!=a&&(o[i]=[]);++i)for(var s=0;s!=r;++s)o[i][s]=Dh(t,n.biff);return o}function Uh(t,e,n){return t.l+=2,[Ih(t)]}function zh(t){return t.l+=6,[]}function Hh(t){return t.l+=2,[cd(t),1&t.read_shift(2)]}var qh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var Wh={1:{n:"PtgExp",f:function(t,e,n){return t.l++,n&&12==n.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Fu},3:{n:"PtgAdd",f:Nh},4:{n:"PtgSub",f:Nh},5:{n:"PtgMul",f:Nh},6:{n:"PtgDiv",f:Nh},7:{n:"PtgPower",f:Nh},8:{n:"PtgConcat",f:Nh},9:{n:"PtgLt",f:Nh},10:{n:"PtgLe",f:Nh},11:{n:"PtgEq",f:Nh},12:{n:"PtgGe",f:Nh},13:{n:"PtgGt",f:Nh},14:{n:"PtgNe",f:Nh},15:{n:"PtgIsect",f:Nh},16:{n:"PtgUnion",f:Nh},17:{n:"PtgRange",f:Nh},18:{n:"PtgUplus",f:Nh},19:{n:"PtgUminus",f:Nh},20:{n:"PtgPercent",f:Nh},21:{n:"PtgParen",f:Nh},22:{n:"PtgMissArg",f:Nh},23:{n:"PtgStr",f:function(t,e,n){return t.l++,dd(t,0,n)}},26:{n:"PtgSheet",f:function(t,e,n){return t.l+=5,t.l+=2,t.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,e,n){return t.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,jf[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,Tf(t)}},32:{n:"PtgArray",f:function(t,e,n){var a=(96&t[t.l++])>>5;return t.l+=2==n.biff?6:12==n.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(n&&n.biff<=3?1:2);return[cp[r],lp[r],a]}},34:{n:"PtgFuncVar",f:function(t,e,n){var a=t[t.l++],r=t.read_shift(1),i=n&&n.biff<=3?[88==a?-1:0,t.read_shift(1)]:function(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===i[0]?lp:sp)[i[1]]]}},35:{n:"PtgName",f:function(t,e,n){var a=t.read_shift(1)>>>5&3,r=!n||n.biff>=8?4:2,i=t.read_shift(r);switch(n.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[a,0,i]}},36:{n:"PtgRef",f:function(t,e,n){var a=(96&t[t.l])>>5;return t.l+=1,[a,Rh(t,0,n)]}},37:{n:"PtgArea",f:function(t,e,n){return[(96&t[t.l++])>>5,Lh(t,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(t,e,n){var a=t.read_shift(1)>>>5&3;return t.l+=n&&2==n.biff?3:4,[a,t.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Fu},40:{n:"PtgMemNoMem",f:Fu},41:{n:"PtgMemFunc",f:function(t,e,n){return[t.read_shift(1)>>>5&3,t.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(t,e,n){var a=t.read_shift(1)>>>5&3;return t.l+=4,n.biff<8&&t.l--,12==n.biff&&(t.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(t,e,n){var a=(96&t[t.l++])>>5;return t.l+=n&&n.biff>8?12:n.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=function(t,e,n){var a=n&&n.biff?n.biff:8;if(a>=2&&a<=5)return function(t){var e=t.read_shift(2),n=t.read_shift(1),a=(32768&e)>>15,r=(16384&e)>>14;return e&=16383,1==a&&e>=8192&&(e-=16384),1==r&&n>=128&&(n-=256),{r:e,c:n,cRel:r,rRel:a}}(t);var r=t.read_shift(a>=12?4:2),i=t.read_shift(2),o=(16384&i)>>14,s=(32768&i)>>15;if(i&=16383,1==s)for(;r>524287;)r-=1048576;if(1==o)for(;i>8191;)i-=16384;return{r,c:i,cRel:o,rRel:s}}(t,0,n);return[a,r]}},45:{n:"PtgAreaN",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=function(t,e,n){if(n.biff<8)return Oh(t);var a=t.read_shift(12==n.biff?4:2),r=t.read_shift(12==n.biff?4:2),i=Ph(t,2),o=Ph(t,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r,c:o[0],cRel:o[1],rRel:o[2]}}}(t,0,n);return[a,r]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,e,n){return 5==n.biff?function(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2,"i");t.l+=8;var a=t.read_shift(2);return t.l+=12,[e,n,a]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return n&&5==n.biff&&(t.l+=12),[a,r,Rh(t,0,n)]}},59:{n:"PtgArea3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(n)switch(n.biff){case 5:t.l+=12,6;break;case 12:12}return[a,r,Lh(t,0,n)]}},60:{n:"PtgRefErr3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return t.l+=i,[a,r]}},61:{n:"PtgAreaErr3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2),i=8;if(n)switch(n.biff){case 5:t.l+=12,i=6;break;case 12:i=12}return t.l+=i,[a,r]}},255:{}},Kh={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Vh={1:{n:"PtgElfLel",f:Hh},2:{n:"PtgElfRw",f:Uh},3:{n:"PtgElfCol",f:Uh},6:{n:"PtgElfRwV",f:Uh},7:{n:"PtgElfColV",f:Uh},10:{n:"PtgElfRadical",f:Uh},11:{n:"PtgElfRadicalS",f:zh},13:{n:"PtgElfColS",f:zh},15:{n:"PtgElfColSV",f:zh},16:{n:"PtgElfRadicalLel",f:Hh},25:{n:"PtgList",f:function(t){t.l+=2;var e=t.read_shift(2),n=t.read_shift(2),a=t.read_shift(4),r=t.read_shift(2),i=t.read_shift(2);return{ixti:e,coltype:3&n,rt:qh[n>>2&31],idx:a,c:r,C:i}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},$h={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=n&&2==n.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=2,[a,t.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,e,n){t.l+=2;for(var a=t.read_shift(n&&2==n.biff?1:2),r=[],i=0;i<=a;++i)r.push(t.read_shift(n&&2==n.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=2,[a,t.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(t,e,n){t.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Mh},33:{n:"PtgAttrBaxcel",f:Mh},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),Fh(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),Fh(t)}},128:{n:"PtgAttrIfError",f:function(t){var e=255&t[t.l+1]?1:0;return t.l+=2,[e,t.read_shift(2)]}},255:{}};function Gh(t,e,n,a){if(a.biff<8)return Fu(t,e);for(var r=t.l+e,i=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=Bh(t,0,a),i.push(n[o][1]);break;case"PtgMemArea":n[o][2]=jh(t,n[o][1],a),i.push(n[o][2]);break;case"PtgExp":a&&12==a.biff&&(n[o][1][1]=t.read_shift(4),i.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0]}return 0!==(e=r-t.l)&&i.push(Fu(t,e)),i}function Yh(t,e,n){for(var a,r,i=t.l+e,o=[];i!=t.l;)e=i-t.l,r=t[t.l],a=Wh[r]||Wh[Kh[r]],24!==r&&25!==r||(a=(24===r?Vh:$h)[t[t.l+1]]),a&&a.f?o.push([a.n,a.f(t,e,n)]):Fu(t,e);return o}function Xh(t){for(var e=[],n=0;n<t.length;++n){for(var a=t[n],r=[],i=0;i<a.length;++i){var o=a[i];if(o)if(2===o[0])r.push('"'+o[1].replace(/"/g,'""')+'"');else r.push(o[1]);else r.push("")}e.push(r.join(","))}return e.join(";")}var Jh={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Zh(t,e,n){if(!t)return"SH33TJSERR0";if(n.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var a=t.XTI[e];if(n.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),0==e?"":t.XTI[e-1];if(!a)return"SH33TJSERR1";var r="";if(n.biff>8)switch(t[a[0]][0]){case 357:return r=-1==a[1]?"#REF":t.SheetNames[a[1]],a[1]==a[2]?r:r+":"+t.SheetNames[a[2]];case 358:return null!=n.SID?t.SheetNames[n.SID]:"SH33TJSSAME"+t[a[0]][0];default:return"SH33TJSSRC"+t[a[0]][0]}switch(t[a[0]][0][0]){case 1025:return r=-1==a[1]?"#REF":t.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?r:r+":"+t.SheetNames[a[2]];case 14849:return t[a[0]].slice(1).map((function(t){return t.Name})).join(";;");default:return t[a[0]][0][3]?(r=-1==a[1]?"#REF":t[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?r:r+":"+t[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Qh(t,e,n){var a=Zh(t,e,n);return"#REF"==a?a:function(t,e){if(!(t||e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}(a,n)}function tp(t,e,n,a,r){var i,o,s,l,c=r&&r.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},f=[],d=0,h=0,p="";if(!t[0]||!t[0][0])return"";for(var m=-1,g="",v=0,b=t[0].length;v<b;++v){var _=t[0][v];switch(_[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=f.pop(),o=f.pop(),m>=0){switch(t[0][m][1][0]){case 0:g=Ac(" ",t[0][m][1][1]);break;case 1:g=Ac("\r",t[0][m][1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}o+=g,m=-1}f.push(o+Jh[_[0]]+i);break;case"PtgIsect":i=f.pop(),o=f.pop(),f.push(o+" "+i);break;case"PtgUnion":i=f.pop(),o=f.pop(),f.push(o+","+i);break;case"PtgRange":i=f.pop(),o=f.pop(),f.push(o+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=Uu(_[1][1],u,r),f.push(Hu(s,c));break;case"PtgRefN":s=n?Uu(_[1][1],n,r):_[1][1],f.push(Hu(s,c));break;case"PtgRef3d":d=_[1][1],s=Uu(_[1][2],u,r);p=Qh(a,d,r);f.push(p+"!"+Hu(s,c));break;case"PtgFunc":case"PtgFuncVar":var y=_[1][0],w=_[1][1];y||(y=0);var x=0==(y&=127)?[]:f.slice(-y);f.length-=y,"User"===w&&(w=x.shift()),f.push(w+"("+x.join(",")+")");break;case"PtgBool":f.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":f.push(_[1]);break;case"PtgNum":f.push(String(_[1]));break;case"PtgStr":f.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=zu(_[1][1],n?{s:n}:u,r),f.push(qu(l,r));break;case"PtgArea":l=zu(_[1][1],u,r),f.push(qu(l,r));break;case"PtgArea3d":d=_[1][1],l=_[1][2],p=Qh(a,d,r),f.push(p+"!"+qu(l,r));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgName":h=_[1][2];var k=(a.names||[])[h-1]||(a[0]||[])[h],A=k?k.Name:"SH33TJSNAME"+String(h);A&&"_xlfn."==A.slice(0,6)&&!r.xlfn&&(A=A.slice(6)),f.push(A);break;case"PtgNameX":var S,C=_[1][1];if(h=_[1][2],!(r.biff<=5)){var E="";if(14849==((a[C]||[])[0]||[])[0]||(1025==((a[C]||[])[0]||[])[0]?a[C][h]&&a[C][h].itab>0&&(E=a.SheetNames[a[C][h].itab-1]+"!"):E=a.SheetNames[h-1]+"!"),a[C]&&a[C][h])E+=a[C][h].Name;else if(a[0]&&a[0][h])E+=a[0][h].Name;else{var T=(Zh(a,C,r)||"").split(";;");T[h-1]?E=T[h-1]:E+="SH33TJSERRX"}f.push(E);break}C<0&&(C=-C),a[C]&&(S=a[C][h]),S||(S={Name:"SH33TJSERRY"}),f.push(S.Name);break;case"PtgParen":var N="(",P=")";if(m>=0){switch(g="",t[0][m][1][0]){case 2:N=Ac(" ",t[0][m][1][1])+N;break;case 3:N=Ac("\r",t[0][m][1][1])+N;break;case 4:P=Ac(" ",t[0][m][1][1])+P;break;case 5:P=Ac("\r",t[0][m][1][1])+P;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}f.push(N+f.pop()+P);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":f.push("#REF!");break;case"PtgExp":s={c:_[1][1],r:_[1][0]};var L={c:n.c,r:n.r};if(a.sharedf[Yu(s)]){var O=a.sharedf[Yu(s)];f.push(tp(O,u,L,a,r))}else{var R=!1;for(i=0;i!=a.arrayf.length;++i)if(o=a.arrayf[i],!(s.c<o[0].s.c||s.c>o[0].e.c||s.r<o[0].s.r||s.r>o[0].e.r)){f.push(tp(o[1],u,L,a,r)),R=!0;break}R||f.push(_[1])}break;case"PtgArray":f.push("{"+Xh(_[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":f.push("");break;case"PtgList":f.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(_))}if(3!=r.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][v][0])){var I=!0;switch((_=t[0][m])[1][0]){case 4:I=!1;case 0:g=Ac(" ",_[1][1]);break;case 5:I=!1;case 1:g=Ac("\r",_[1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}f.push((I?g:"")+f.pop()+(I?"":g)),m=-1}}if(f.length>1&&r.WTF)throw new Error("bad formula stack");return f[0]}function ep(t,e,n,a,r){var i=yd(e,n,r),o=function(t){if(null==t){var e=Du(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}return Nf("number"==typeof t?t:0)}(t.v),s=Du(6);s.write_shift(2,33),s.write_shift(4,0);for(var l=Du(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];return ll([i,o,s,l])}function np(t,e,n){var a=t.read_shift(4),r=Yh(t,a,n),i=t.read_shift(4);return[r,i>0?Gh(t,i,r,n):null]}var ap=np,rp=np,ip=np,op=np,sp={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},lp={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},cp={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function up(t){return("of:="+t.replace(Ch,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}var fp="undefined"!=typeof Map;function dp(t,e,n){var a=0,r=t.length;if(n){if(fp?n.has(e):Object.prototype.hasOwnProperty.call(n,e))for(var i=fp?n.get(e):n[e];a<i.length;++a)if(t[i[a]].t===e)return t.Count++,i[a]}else for(;a<r;++a)if(t[a].t===e)return t.Count++,a;return t[r]={t:e},t.Count++,t.Unique++,n&&(fp?(n.has(e)||n.set(e,[]),n.get(e).push(r)):(Object.prototype.hasOwnProperty.call(n,e)||(n[e]=[]),n[e].push(r))),r}function hp(t,e){var n={min:t+1,max:t+1},a=-1;return e.MDW&&($d=e.MDW),null!=e.width?n.customWidth=1:null!=e.wpx?a=Yd(e.wpx):null!=e.wch&&(a=e.wch),a>-1?(n.width=Xd(a),n.customWidth=1):null!=e.width&&(n.width=e.width),e.hidden&&(n.hidden=!0),null!=e.level&&(n.outlineLevel=n.level=e.level),n}function pp(t,e){if(t){var n=[.7,.7,.75,.75,.3,.3];"xlml"==e&&(n=[1,1,1,1,.5,.5]),null==t.left&&(t.left=n[0]),null==t.right&&(t.right=n[1]),null==t.top&&(t.top=n[2]),null==t.bottom&&(t.bottom=n[3]),null==t.header&&(t.header=n[4]),null==t.footer&&(t.footer=n[5])}}function mp(t,e,n){var a=n.revssf[null!=e.z?e.z:"General"],r=60,i=t.length;if(null==a&&n.ssf)for(;r<392;++r)if(null==n.ssf[r]){Ql(e.z,r),n.ssf[r]=e.z,n.revssf[e.z]=a=r;break}for(r=0;r!=i;++r)if(t[r].numFmtId===a)return r;return t[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function gp(t,e,n){if(t&&t["!ref"]){var a=Zu(t["!ref"]);if(a.e.c<a.s.c||a.e.r<a.s.r)throw new Error("Bad range ("+n+"): "+t["!ref"])}}var vp=["objects","scenarios","selectLockedCells","selectUnlockedCells"],bp=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function _p(t,e,n,a){if(t.c&&n["!comments"].push([e,t.c]),void 0===t.v&&"string"!=typeof t.f||"z"===t.t&&!t.f)return"";var r="",i=t.t,o=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=jf[t.v];break;case"d":a&&a.cellDates?r=wc(t.v,-1).toISOString():((t=kc(t)).t="n",r=""+(t.v=hc(wc(t.v)))),void 0===t.z&&(t.z=yl[14]);break;default:r=t.v}var s=Gc("v",Mc(r)),l={r:e},c=mp(a.cellXfs,t,a);switch(0!==c&&(l.s=c),t.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){s=Gc("v",""+dp(a.Strings,t.v,a.revStrings)),l.t="s";break}l.t="str"}if(t.t!=i&&(t.t=i,t.v=o),"string"==typeof t.f&&t.f){var u=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Xc("f",Mc(t.f),u)+(null!=t.v?s:"")}return t.l&&n["!links"].push([e,t.l]),t.D&&(l.cm=1),Xc("c",s,l)}function yp(t,e,n,a){var r,i=[Pc,Xc("worksheet",null,{xmlns:Qc[0],"xmlns:r":Zc.r})],o=n.SheetNames[t],s="",l=n.Sheets[o];null==l&&(l={});var c=l["!ref"]||"A1",u=Zu(c);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Ju(u)}a||(a={}),l["!comments"]=[];var f=[];!function(t,e,n,a,r){var i=!1,o={},s=null;if("xlsx"!==a.bookType&&e.vbaraw){var l=e.SheetNames[n];try{e.Workbook&&(l=e.Workbook.Sheets[n].CodeName||l)}catch(t){}i=!0,o.codeName=Kc(Mc(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),s=(s||"")+Xc("outlinePr",null,c)}(i||s)&&(r[r.length]=Xc("sheetPr",s,o))}(l,n,t,e,i),i[i.length]=Xc("dimension",null,{ref:c}),i[i.length]=function(t,e,n,a){var r={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Xc("sheetViews",Xc("sheetView",null,r),{})}(0,0,0,n),e.sheetFormat&&(i[i.length]=Xc("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(t,e){for(var n,a=["<cols>"],r=0;r!=e.length;++r)(n=e[r])&&(a[a.length]=Xc("col",null,hp(r,n)));return a[a.length]="</cols>",a.join("")}(0,l["!cols"])),i[r=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=function(t,e,n,a){var r,i,o=[],s=[],l=Zu(t["!ref"]),c="",u="",f=[],d=0,h=0,p=t["!rows"],m=Array.isArray(t),g={r:u},v=-1;for(h=l.s.c;h<=l.e.c;++h)f[h]=$u(h);for(d=l.s.r;d<=l.e.r;++d){for(s=[],u=Ku(d),h=l.s.c;h<=l.e.c;++h){r=f[h]+u;var b=m?(t[d]||[])[h]:t[r];void 0!==b&&null!=(c=_p(b,r,t,e))&&s.push(c)}(s.length>0||p&&p[d])&&(g={r:u},p&&p[d]&&((i=p[d]).hidden&&(g.hidden=1),v=-1,i.hpx?v=Qd(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),o[o.length]=Xc("row",s.join(""),g))}if(p)for(;d<p.length;++d)p&&p[d]&&(g={r:d+1},(i=p[d]).hidden&&(g.hidden=1),v=-1,i.hpx?v=Qd(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level),o[o.length]=Xc("row","",g));return o.join("")}(l,e,0,0),s.length>0&&(i[i.length]=s)),i.length>r+1&&(i[i.length]="</sheetData>",i[r]=i[r].replace("/>",">")),l["!protect"]&&(i[i.length]=function(t){var e={sheet:1};return vp.forEach((function(n){null!=t[n]&&t[n]&&(e[n]="1")})),bp.forEach((function(n){null==t[n]||t[n]||(e[n]="0")})),t.password&&(e.password=qd(t.password).toString(16).toUpperCase()),Xc("sheetProtection",null,e)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(t,e,n,a){var r="string"==typeof t.ref?t.ref:Ju(t.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,o=Xu(r);o.s.r==o.e.r&&(o.e.r=Xu(e["!ref"]).e.r,r=Ju(o));for(var s=0;s<i.length;++s){var l=i[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==a){l.Ref="'"+n.SheetNames[a]+"'!"+r;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+n.SheetNames[a]+"'!"+r}),Xc("autoFilter",null,{ref:r})}(l["!autofilter"],l,n,t)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(t){if(0===t.length)return"";for(var e='<mergeCells count="'+t.length+'">',n=0;n!=t.length;++n)e+='<mergeCell ref="'+Ju(t[n])+'"/>';return e+"</mergeCells>"}(l["!merges"]));var d,h,p=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(t){t[1].Target&&(d={ref:t[0]},"#"!=t[1].Target.charAt(0)&&(m=Kf(a,-1,Mc(t[1].Target).replace(/#.*$/,""),Hf.HLINK),d["r:id"]="rId"+m),(p=t[1].Target.indexOf("#"))>-1&&(d.location=Mc(t[1].Target.slice(p+1))),t[1].Tooltip&&(d.tooltip=Mc(t[1].Tooltip)),i[i.length]=Xc("hyperlink",null,d))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(pp(h=l["!margins"]),Xc("pageMargins",null,h))),e&&!e.ignoreEC&&null!=e.ignoreEC||(i[i.length]=Gc("ignoredErrors",Xc("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(m=Kf(a,-1,"../drawings/drawing"+(t+1)+".xml",Hf.DRAW),i[i.length]=Xc("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=f),l["!comments"].length>0&&(m=Kf(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Hf.VML),i[i.length]=Xc("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function wp(t,e,n,a){var r=function(t,e,n){var a=Du(145),r=(n["!rows"]||[])[t]||{};a.write_shift(4,t),a.write_shift(4,0);var i=320;r.hpx?i=20*Qd(r.hpx):r.hpt&&(i=20*r.hpt),a.write_shift(2,i),a.write_shift(1,0);var o=0;r.level&&(o|=r.level),r.hidden&&(o|=16),(r.hpx||r.hpt)&&(o|=32),a.write_shift(1,o),a.write_shift(1,0);var s=0,l=a.l;a.l+=4;for(var c={r:t,c:0},u=0;u<16;++u)if(!(e.s.c>u+1<<10||e.e.c<u<<10)){for(var f=-1,d=-1,h=u<<10;h<u+1<<10;++h)c.c=h,(Array.isArray(n)?(n[c.r]||[])[c.c]:n[Yu(c)])&&(f<0&&(f=h),d=h);f<0||(++s,a.write_shift(4,f),a.write_shift(4,d))}var p=a.l;return a.l=l,a.write_shift(4,s),a.l=p,a.length>a.l?a.slice(0,a.l):a}(a,n,e);(r.length>17||(e["!rows"]||[])[a])&&Bu(t,0,r)}var xp=Cf,kp=Ef;function Ap(t){return[pf(t),Tf(t),"n"]}var Sp=Cf,Cp=Ef;var Ep=["left","right","top","bottom","header","footer"];function Tp(t,e,n,a,r,i,o){if(void 0===e.v)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":(e=kc(e)).z=e.z||yl[14],e.v=hc(wc(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v}var l={r:n,c:a};switch(l.s=mp(r.cellXfs,e,r),e.l&&i["!links"].push([Yu(l),e.l]),e.c&&i["!comments"].push([Yu(l),e.c]),e.t){case"s":case"str":return r.bookSST?(s=dp(r.Strings,e.v,r.revStrings),l.t="s",l.v=s,o?Bu(t,18,function(t,e,n){return null==n&&(n=Du(8)),mf(e,n),n.write_shift(4,e.v),n}(0,l)):Bu(t,7,function(t,e,n){return null==n&&(n=Du(12)),hf(e,n),n.write_shift(4,e.v),n}(0,l))):(l.t="str",o?Bu(t,17,function(t,e,n){return null==n&&(n=Du(8+4*t.v.length)),mf(e,n),sf(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l)):Bu(t,6,function(t,e,n){return null==n&&(n=Du(12+4*t.v.length)),hf(e,n),sf(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l))),!0;case"n":return e.v==(0|e.v)&&e.v>-1e3&&e.v<1e3?o?Bu(t,13,function(t,e,n){return null==n&&(n=Du(8)),mf(e,n),Af(t.v,n),n}(e,l)):Bu(t,2,function(t,e,n){return null==n&&(n=Du(12)),hf(e,n),Af(t.v,n),n}(e,l)):o?Bu(t,16,function(t,e,n){return null==n&&(n=Du(12)),mf(e,n),Nf(t.v,n),n}(e,l)):Bu(t,5,function(t,e,n){return null==n&&(n=Du(16)),hf(e,n),Nf(t.v,n),n}(e,l)),!0;case"b":return l.t="b",o?Bu(t,15,function(t,e,n){return null==n&&(n=Du(5)),mf(e,n),n.write_shift(1,t.v?1:0),n}(e,l)):Bu(t,4,function(t,e,n){return null==n&&(n=Du(9)),hf(e,n),n.write_shift(1,t.v?1:0),n}(e,l)),!0;case"e":return l.t="e",o?Bu(t,14,function(t,e,n){return null==n&&(n=Du(8)),mf(e,n),n.write_shift(1,t.v),n.write_shift(2,0),n.write_shift(1,0),n}(e,l)):Bu(t,3,function(t,e,n){return null==n&&(n=Du(9)),hf(e,n),n.write_shift(1,t.v),n}(e,l)),!0}return o?Bu(t,12,function(t,e,n){return null==n&&(n=Du(4)),mf(e,n)}(0,l)):Bu(t,1,function(t,e,n){return null==n&&(n=Du(8)),hf(e,n)}(0,l)),!0}function Np(t,e){e&&e["!merges"]&&(Bu(t,177,function(t,e){return null==e&&(e=Du(4)),e.write_shift(4,t),e}(e["!merges"].length)),e["!merges"].forEach((function(e){Bu(t,176,Cp(e))})),Bu(t,178))}function Pp(t,e){e&&e["!cols"]&&(Bu(t,390),e["!cols"].forEach((function(e,n){e&&Bu(t,60,function(t,e,n){null==n&&(n=Du(18));var a=hp(t,e);n.write_shift(-4,t),n.write_shift(-4,t),n.write_shift(4,256*(a.width||10)),n.write_shift(4,0);var r=0;return e.hidden&&(r|=1),"number"==typeof a.width&&(r|=2),e.level&&(r|=e.level<<8),n.write_shift(2,r),n}(n,e))})),Bu(t,391))}function Lp(t,e){e&&e["!ref"]&&(Bu(t,648),Bu(t,649,function(t){var e=Du(24);return e.write_shift(4,4),e.write_shift(4,1),Ef(t,e),e}(Zu(e["!ref"]))),Bu(t,650))}function Op(t,e,n){e["!links"].forEach((function(e){if(e[1].Target){var a=Kf(n,-1,e[1].Target.replace(/#.*$/,""),Hf.HLINK);Bu(t,494,function(t,e){var n=Du(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Ef({s:Gu(t[0]),e:Gu(t[0])},n),xf("rId"+e,n);var a=t[1].Target.indexOf("#");return sf((-1==a?"":t[1].Target.slice(a+1))||"",n),sf(t[1].Tooltip||"",n),sf("",n),n.slice(0,n.l)}(e,a))}})),delete e["!links"]}function Rp(t,e,n){Bu(t,133),Bu(t,137,function(t,e,n){null==n&&(n=Du(30));var a=924;return(((e||{}).Views||[])[0]||{}).RTL&&(a|=32),n.write_shift(2,a),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Bu(t,138),Bu(t,134)}function Ip(t,e){e["!protect"]&&Bu(t,535,function(t,e){return null==e&&(e=Du(66)),e.write_shift(2,t.password?qd(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?e.write_shift(4,null==t[n[0]]||t[n[0]]?0:1):e.write_shift(4,null!=t[n[0]]&&t[n[0]]?0:1)})),e}(e["!protect"]))}function Mp(t,e,n,a){var r=ju(),i=n.SheetNames[t],o=n.Sheets[i]||{},s=i;try{n&&n.Workbook&&(s=n.Workbook.Sheets[t].CodeName||s)}catch(t){}var l=Zu(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],Bu(r,129),(n.vbaraw||o["!outline"])&&Bu(r,147,function(t,e,n){null==n&&(n=Du(84+4*t.length));var a=192;e&&(e.above&&(a&=-65),e.left&&(a&=-129)),n.write_shift(1,a);for(var r=1;r<3;++r)n.write_shift(1,0);return Pf({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),vf(t,n),n.slice(0,n.l)}(s,o["!outline"])),Bu(r,148,kp(l)),Rp(r,0,n.Workbook),Pp(r,o),function(t,e,n,a){var r,i=Zu(e["!ref"]||"A1"),o="",s=[];Bu(t,145);var l=Array.isArray(e),c=i.e.r;e["!rows"]&&(c=Math.max(i.e.r,e["!rows"].length-1));for(var u=i.s.r;u<=c;++u){o=Ku(u),wp(t,e,i,u);var f=!1;if(u<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){u===i.s.r&&(s[d]=$u(d)),r=s[d]+o;var h=l?(e[u]||[])[d]:e[r];f=!!h&&Tp(t,h,u,d,a,e,f)}}Bu(t,146)}(r,o,0,e),Ip(r,o),function(t,e,n,a){if(e["!autofilter"]){var r=e["!autofilter"],i="string"==typeof r.ref?r.ref:Ju(r.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,s=Xu(i);s.s.r==s.e.r&&(s.e.r=Xu(e["!ref"]).e.r,i=Ju(s));for(var l=0;l<o.length;++l){var c=o[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==a){c.Ref="'"+n.SheetNames[a]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+n.SheetNames[a]+"'!"+i}),Bu(t,161,Ef(Zu(i))),Bu(t,162)}}(r,o,n,t),Np(r,o),Op(r,o,a),o["!margins"]&&Bu(r,476,function(t,e){return null==e&&(e=Du(48)),pp(t),Ep.forEach((function(n){Nf(t[n],e)})),e}(o["!margins"])),e&&!e.ignoreEC&&null!=e.ignoreEC||Lp(r,o),function(t,e,n,a){if(e["!comments"].length>0){var r=Kf(a,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Hf.VML);Bu(t,551,xf("rId"+r)),e["!legacy"]=r}}(r,o,t,a),Bu(r,130),r.end()}var Fp=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var Dp="][*?/\\".split("");function jp(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Dp.forEach((function(a){if(-1!=t.indexOf(a)){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Bp(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];!function(t,e,n){t.forEach((function(a,r){jp(a);for(var i=0;i<r;++i)if(a==t[i])throw new Error("Duplicate Sheet Name: "+a);if(n){var o=e&&e[r]&&e[r].CodeName||a;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}}))}(t.SheetNames,e,!!t.vbaraw);for(var n=0;n<t.SheetNames.length;++n)gp(t.Sheets[t.SheetNames[n]],t.SheetNames[n],n)}function Up(t){var e=[Pc];e[e.length]=Xc("workbook",null,{xmlns:Qc[0],"xmlns:r":Zc.r});var n=t.Workbook&&(t.Workbook.Names||[]).length>0,a={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Fp.forEach((function(e){null!=t.Workbook.WBProps[e[0]]&&t.Workbook.WBProps[e[0]]!=e[1]&&(a[e[0]]=t.Workbook.WBProps[e[0]])})),t.Workbook.WBProps.CodeName&&(a.codeName=t.Workbook.WBProps.CodeName,delete a.CodeName)),e[e.length]=Xc("workbookPr",null,a);var r=t.Workbook&&t.Workbook.Sheets||[],i=0;if(r&&r[0]&&r[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&r[i]&&r[i].Hidden;++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var o={name:Mc(t.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),r[i])switch(r[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden"}e[e.length]=Xc("sheet",null,o)}return e[e.length]="</sheets>",n&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach((function(t){var n={name:t.Name};t.Comment&&(n.comment=t.Comment),null!=t.Sheet&&(n.localSheetId=""+t.Sheet),t.Hidden&&(n.hidden="1"),t.Ref&&(e[e.length]=Xc("definedName",Mc(t.Ref),n))})),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function zp(t,e){return e||(e=Du(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),xf(t.strRelID,e),sf(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function Hp(t,e){if(e.Workbook&&e.Workbook.Sheets){for(var n=e.Workbook.Sheets,a=0,r=-1,i=-1;a<n.length;++a)!n[a]||!n[a].Hidden&&-1==r?r=a:1==n[a].Hidden&&-1==i&&(i=a);i>r||(Bu(t,135),Bu(t,158,function(t,e){return e||(e=Du(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t),e.write_shift(1,120),e.length>e.l?e.slice(0,e.l):e}(r)),Bu(t,136))}}function qp(t,e){var n=ju();return Bu(n,131),Bu(n,128,function(t,e){e||(e=Du(127));for(var n=0;4!=n;++n)e.write_shift(4,0);return sf("SheetJS",e),sf(Bs.version,e),sf(Bs.version,e),sf("7262",e),e.length>e.l?e.slice(0,e.l):e}()),Bu(n,153,function(t,e){e||(e=Du(72));var n=0;return t&&t.filterPrivacy&&(n|=8),e.write_shift(4,n),e.write_shift(4,0),vf(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}(t.Workbook&&t.Workbook.WBProps||null)),Hp(n,t),function(t,e){Bu(t,143);for(var n=0;n!=e.SheetNames.length;++n)Bu(t,156,zp({Hidden:e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[n]&&e.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:e.SheetNames[n]}));Bu(t,144)}(n,t),Bu(n,132),n.end()}function Wp(t,e,n,a,r){return(".bin"===e.slice(-4)?Mp:yp)(t,n,a,r)}function Kp(t,e,n){return(".bin"===e.slice(-4)?kh:yh)(t,n)}function Vp(t,e){var n=[];return t.Props&&n.push(function(t,e){var n=[];return lc(ed).map((function(t){for(var e=0;e<Gf.length;++e)if(Gf[e][1]==t)return Gf[e];for(e=0;e<Jf.length;++e)if(Jf[e][1]==t)return Jf[e];throw t})).forEach((function(a){if(null!=t[a[1]]){var r=e&&e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t[a[1]];"date"===a[2]&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof r?r=String(r):!0===r||!1===r?r=r?"1":"0":r instanceof Date&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"")),n.push(Gc(ed[a[1]]||a[1],r))}})),Xc("DocumentProperties",n.join(""),{xmlns:tu.o})}(t.Props,e)),t.Custprops&&n.push(function(t,e){var n=["Worksheets","SheetNames"],a="CustomDocumentProperties",r=[];return t&&lc(t).forEach((function(e){if(Object.prototype.hasOwnProperty.call(t,e)){for(var a=0;a<Gf.length;++a)if(e==Gf[a][1])return;for(a=0;a<Jf.length;++a)if(e==Jf[a][1])return;for(a=0;a<n.length;++a)if(e==n[a])return;var i=t[e],o="string";"number"==typeof i?(o="float",i=String(i)):!0===i||!1===i?(o="boolean",i=i?"1":"0"):i=String(i),r.push(Xc(Fc(e),i,{"dt:dt":o}))}})),e&&lc(e).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)&&(!t||!Object.prototype.hasOwnProperty.call(t,n))){var a=e[n],i="string";"number"==typeof a?(i="float",a=String(a)):!0===a||!1===a?(i="boolean",a=a?"1":"0"):a instanceof Date?(i="dateTime.tz",a=a.toISOString()):a=String(a),r.push(Xc(Fc(n),a,{"dt:dt":i}))}})),"<"+a+' xmlns="'+tu.o+'">'+r.join("")+"</"+a+">"}(t.Props,t.Custprops)),n.join("")}function $p(t){return Xc("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Eh(t.Ref,{r:0,c:0})})}function Gp(t,e,n,a,r,i,o){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Mc(Eh(t.f,o))),t.F&&t.F.slice(0,e.length)==e){var l=Gu(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Mc(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Mc(t.l.Tooltip))),n["!merges"])for(var c=n["!merges"],u=0;u!=c.length;++u)c[u].s.c==o.c&&c[u].s.r==o.r&&(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",d="";switch(t.t){case"z":if(!a.sheetStubs)return"";break;case"n":f="Number",d=String(t.v);break;case"b":f="Boolean",d=t.v?"1":"0";break;case"e":f="Error",d=jf[t.v];break;case"d":f="DateTime",d=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||yl[14]);break;case"s":f="String",d=((t.v||"")+"").replace(Rc,(function(t){return Oc[t]})).replace(Dc,(function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}))}var h=mp(a.cellXfs,t,a);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var p=null!=t.v?d:"",m="z"==t.t?"":'<Data ss:Type="'+f+'">'+p+"</Data>";return(t.c||[]).length>0&&(m+=t.c.map((function(t){var e=Xc("ss:Data",(t.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return Xc("Comment",e,{"ss:Author":t.a})})).join("")),Xc("Cell",m,s)}function Yp(t,e){var n='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=th(e.hpt)),e.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Xp(t,e,n){var a=[],r=n.SheetNames[t],i=n.Sheets[r],o=i?function(t,e,n,a){if(!t)return"";if(!((a||{}).Workbook||{}).Names)return"";for(var r=a.Workbook.Names,i=[],o=0;o<r.length;++o){var s=r[o];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||i.push($p(s)))}return i.join("")}(i,0,t,n):"";return o.length>0&&a.push("<Names>"+o+"</Names>"),o=i?function(t,e,n,a){if(!t["!ref"])return"";var r=Zu(t["!ref"]),i=t["!merges"]||[],o=0,s=[];t["!cols"]&&t["!cols"].forEach((function(t,e){Jd(t);var n=!!t.width,a=hp(e,t),r={"ss:Index":e+1};n&&(r["ss:Width"]=Gd(a.width)),t.hidden&&(r["ss:Hidden"]="1"),s.push(Xc("Column",null,r))}));for(var l=Array.isArray(t),c=r.s.r;c<=r.e.r;++c){for(var u=[Yp(c,(t["!rows"]||[])[c])],f=r.s.c;f<=r.e.c;++f){var d=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>f||i[o].s.r>c||i[o].e.c<f||i[o].e.r<c)){i[o].s.c==f&&i[o].s.r==c||(d=!0);break}if(!d){var h={r:c,c:f},p=Yu(h),m=l?(t[c]||[])[f]:t[p];u.push(Gp(m,p,t,e,0,0,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}(i,e):"",o.length>0&&a.push("<Table>"+o+"</Table>"),a.push(function(t,e,n,a){if(!t)return"";var r=[];if(t["!margins"]&&(r.push("<PageSetup>"),t["!margins"].header&&r.push(Xc("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Xc("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Xc("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("</PageSetup>")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[n])if(a.Workbook.Sheets[n].Hidden)r.push(Xc("Visible",1==a.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!a.Workbook.Sheets[i]||a.Workbook.Sheets[i].Hidden);++i);i==n&&r.push("<Selected/>")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push("<DisplayRightToLeft/>"),t["!protect"]&&(r.push(Gc("ProtectContents","True")),t["!protect"].objects&&r.push(Gc("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Gc("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null==t["!protect"].selectUnlockedCells||t["!protect"].selectUnlockedCells||r.push(Gc("EnableSelection","UnlockedCells")):r.push(Gc("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(e){t["!protect"][e[0]]&&r.push("<"+e[1]+"/>")}))),0==r.length?"":Xc("WorksheetOptions",r.join(""),{xmlns:tu.x})}(i,0,t,n)),a.join("")}function Jp(t,e){e||(e={}),t.SSF||(t.SSF=kc(yl)),t.SSF&&(ec(),tc(t.SSF),e.revssf=fc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(Vp(t,e)),n.push(""),n.push(""),n.push("");for(var a=0;a<t.SheetNames.length;++a)n.push(Xc("Worksheet",Xp(a,e,t),{"ss:Name":Mc(t.SheetNames[a])}));return n[2]=function(t,e){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach((function(t,e){var a=[];a.push(Xc("NumberFormat",null,{"ss:Format":Mc(yl[t.numFmtId])}));var r={"ss:ID":"s"+(21+e)};n.push(Xc("Style",a.join(""),r))})),Xc("Styles",n.join(""))}(0,e),n[3]=function(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,n=[],a=0;a<e.length;++a){var r=e[a];null==r.Sheet&&(r.Name.match(/^_xlfn\./)||n.push($p(r)))}return Xc("Names",n.join(""))}(t),Pc+Xc("Workbook",n.join(""),{xmlns:tu.ss,"xmlns:o":tu.o,"xmlns:x":tu.x,"xmlns:ss":tu.ss,"xmlns:dt":tu.dt,"xmlns:html":tu.html})}var Zp={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Qp(t,e){var n=e||{},a=rc.utils.cfb_new({root:"R"}),r="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":r="/Workbook",n.biff=8;break;case"biff5":r="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return rc.utils.cfb_add(a,r,um(t,n)),8==n.biff&&(t.Props||t.Custprops)&&function(t,e){var n,a=[],r=[],i=[],o=0,s=cc(If,"n"),l=cc(Mf,"n");if(t.Props)for(n=lc(t.Props),o=0;o<n.length;++o)(Object.prototype.hasOwnProperty.call(s,n[o])?a:Object.prototype.hasOwnProperty.call(l,n[o])?r:i).push([n[o],t.Props[n[o]]]);if(t.Custprops)for(n=lc(t.Custprops),o=0;o<n.length;++o)Object.prototype.hasOwnProperty.call(t.Props||{},n[o])||(Object.prototype.hasOwnProperty.call(s,n[o])?a:Object.prototype.hasOwnProperty.call(l,n[o])?r:i).push([n[o],t.Custprops[n[o]]]);var c=[];for(o=0;o<i.length;++o)ad.indexOf(i[o][0])>-1||Zf.indexOf(i[o][0])>-1||null!=i[o][1]&&c.push(i[o]);r.length&&rc.utils.cfb_add(e,"/SummaryInformation",od(r,Zp.SI,l,Mf)),(a.length||c.length)&&rc.utils.cfb_add(e,"/DocumentSummaryInformation",od(a,Zp.DSI,s,If,c.length?c:null,Zp.UDI))}(t,a),8==n.biff&&t.vbaraw&&function(t,e){e.FullPaths.forEach((function(n,a){if(0!=a){var r=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&rc.utils.cfb_add(t,r,e.FileIndex[a].content)}}))}(a,rc.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),a}var tm={0:{f:function(t,e){var n={},a=t.l+e;n.r=t.read_shift(4),t.l+=4;var r=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=a,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=r/20),n}},1:{f:function(t){return[df(t)]}},2:{f:function(t){return[df(t),kf(t),"n"]}},3:{f:function(t){return[df(t),t.read_shift(1),"e"]}},4:{f:function(t){return[df(t),t.read_shift(1),"b"]}},5:{f:function(t){return[df(t),Tf(t),"n"]}},6:{f:function(t){return[df(t),of(t),"str"]}},7:{f:function(t){return[df(t),t.read_shift(4),"s"]}},8:{f:function(t,e,n){var a=t.l+e,r=df(t);r.r=n["!row"];var i=[r,of(t),"str"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},9:{f:function(t,e,n){var a=t.l+e,r=df(t);r.r=n["!row"];var i=[r,Tf(t),"n"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},10:{f:function(t,e,n){var a=t.l+e,r=df(t);r.r=n["!row"];var i=[r,t.read_shift(1),"b"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},11:{f:function(t,e,n){var a=t.l+e,r=df(t);r.r=n["!row"];var i=[r,t.read_shift(1),"e"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},12:{f:function(t){return[pf(t)]}},13:{f:function(t){return[pf(t),kf(t),"n"]}},14:{f:function(t){return[pf(t),t.read_shift(1),"e"]}},15:{f:function(t){return[pf(t),t.read_shift(1),"b"]}},16:{f:Ap},17:{f:function(t){return[pf(t),of(t),"str"]}},18:{f:function(t){return[pf(t),t.read_shift(4),"s"]}},19:{f:cf},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,e,n){var a=t.l+e;t.l+=4,t.l+=1;var r=t.read_shift(4),i=yf(t),o=ip(t,0,n),s=bf(t);t.l=a;var l={Name:i,Ptg:o};return r<268435455&&(l.Sheet=r),s&&(l.Comment=s),l}},40:{},42:{},43:{f:function(t,e,n){var a={};a.sz=t.read_shift(2)/20;var r=function(t){var e=t.read_shift(1);return t.l++,{fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e}}(t);switch(r.fItalic&&(a.italic=1),r.fCondense&&(a.condense=1),r.fExtend&&(a.extend=1),r.fShadow&&(a.shadow=1),r.fOutline&&(a.outline=1),r.fStrikeout&&(a.strike=1),700===t.read_shift(2)&&(a.bold=1),t.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript"}var i=t.read_shift(1);0!=i&&(a.underline=i);var o=t.read_shift(1);o>0&&(a.family=o);var s=t.read_shift(1);switch(s>0&&(a.charset=s),t.l++,a.color=function(t){var e={},n=t.read_shift(1)>>>1,a=t.read_shift(1),r=t.read_shift(2,"i"),i=t.read_shift(1),o=t.read_shift(1),s=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=a;var l=Df[a];l&&(e.rgb=Kd(l));break;case 2:e.rgb=Kd([i,o,s]);break;case 3:e.theme=a}return 0!=r&&(e.tint=r>0?r/32767:r/32768),e}(t),t.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=of(t),a}},44:{f:function(t,e){return[t.read_shift(2),of(t)]}},45:{f:oh},46:{f:uh},47:{f:function(t,e){var n=t.l+e,a=t.read_shift(2),r=t.read_shift(2);return t.l=n,{ixfe:a,numFmtId:r}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var e=[],n=t.read_shift(4);n-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ld},62:{f:function(t){return[df(t),cf(t),"is"]}},63:{f:function(t){var e={};e.i=t.read_shift(4);var n={};n.r=t.read_shift(4),n.c=t.read_shift(4),e.r=Yu(n);var a=t.read_shift(1);return 2&a&&(e.l="1"),8&a&&(e.a="1"),e}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Fu,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var e=t.read_shift(2);return t.l+=28,{RTL:32&e}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,e){var n={},a=t[t.l];return++t.l,n.above=!(64&a),n.left=!(128&a),t.l+=18,n.name=gf(t,e-19),n}},148:{f:xp,p:16},151:{f:function(){}},152:{},153:{f:function(t,e){var n={},a=t.read_shift(4);n.defaultThemeVersion=t.read_shift(4);var r=e>8?of(t):"";return r.length>0&&(n.CodeName=r),n.autoCompressPictures=!!(65536&a),n.backupFile=!!(64&a),n.checkCompatibility=!!(4096&a),n.date1904=!!(1&a),n.filterPrivacy=!!(8&a),n.hidePivotFieldList=!!(1024&a),n.promptedSolutions=!!(16&a),n.publishItems=!!(2048&a),n.refreshAllConnections=!!(262144&a),n.saveExternalLinkValues=!!(128&a),n.showBorderUnselectedTables=!!(4&a),n.showInkAnnotation=!!(32&a),n.showObjects=["all","placeholders","none"][a>>13&3],n.showPivotChartFilter=!!(32768&a),n.updateLinks=["userSet","never","always"][a>>8&3],n}},154:{},155:{},156:{f:function(t,e){var n={};return n.Hidden=t.read_shift(4),n.iTabID=t.read_shift(4),n.strRelID=wf(t,e-8),n.name=of(t),n}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Cf},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Sp},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:of(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:wf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Td},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,e,n){var a=t.l+e,r=Sf(t),i=t.read_shift(1),o=[r];if(o[2]=i,n.cellFormula){var s=ap(t,a-t.l,n);o[1]=s}else t.l=a;return o}},427:{f:function(t,e,n){var a=t.l+e,r=[Cf(t,16)];if(n.cellFormula){var i=op(t,a-t.l,n);r[1]=i,t.l=a}else t.l=a;return r}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var e={};return Ep.forEach((function(n){e[n]=Tf(t)})),e}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,e){var n=t.l+e,a=Cf(t,16),r=bf(t),i=of(t),o=of(t),s=of(t);t.l=n;var l={rfx:a,relId:r,loc:i,display:s};return o&&(l.Tooltip=o),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:wf},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:xh},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var e={};e.iauthor=t.read_shift(4);var n=Cf(t,16);return e.rfx=n.s,e.ref=Yu(n.s),t.l+=16,e}},636:{T:-1},637:{f:uf},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,e){return t.l+=10,{name:of(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function em(t,e,n,a){var r=e;if(!isNaN(r)){var i=a||(n||[]).length||0,o=t.next(4);o.write_shift(2,r),o.write_shift(2,i),i>0&&wu(n)&&t.push(n)}}function nm(t,e,n){return t||(t=Du(7)),t.write_shift(2,e),t.write_shift(2,n),t.write_shift(2,0),t.write_shift(1,0),t}function am(t,e,n,a){if(null!=e.v)switch(e.t){case"d":case"n":var r="d"==e.t?hc(wc(e.v)):e.v;return void(r==(0|r)&&r>=0&&r<65536?em(t,2,function(t,e,n){var a=Du(9);return nm(a,t,e),a.write_shift(2,n),a}(n,a,r)):em(t,3,function(t,e,n){var a=Du(15);return nm(a,t,e),a.write_shift(8,n,"f"),a}(n,a,r)));case"b":case"e":return void em(t,5,function(t,e,n,a){var r=Du(9);return nm(r,t,e),fd(n,a||"b",r),r}(n,a,e.v,e.t));case"s":case"str":return void em(t,4,function(t,e,n){var a=Du(8+2*n.length);return nm(a,t,e),a.write_shift(1,n.length),a.write_shift(n.length,n,"sbcs"),a.l<a.length?a.slice(0,a.l):a}(n,a,(e.v||"").slice(0,255)))}em(t,1,nm(null,n,a))}function rm(t,e){var n=e||{};null!=Js&&null==n.dense&&(n.dense=Js);for(var a=ju(),r=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==n.sheet&&(r=i);if(0==r&&n.sheet&&t.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return em(a,4==n.biff?1033:3==n.biff?521:9,Ad(0,16,n)),function(t,e,n,a){var r,i=Array.isArray(e),o=Zu(e["!ref"]||"A1"),s="",l=[];if(o.e.c>255||o.e.r>16383){if(a.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),r=Ju(o)}for(var c=o.s.r;c<=o.e.r;++c){s=Ku(c);for(var u=o.s.c;u<=o.e.c;++u){c===o.s.r&&(l[u]=$u(u)),r=l[u]+s;var f=i?(e[c]||[])[u]:e[r];f&&am(t,f,c,u)}}}(a,t.Sheets[t.SheetNames[r]],0,n),em(a,10),a.end()}function im(t,e,n){em(t,49,function(t,e){var n=t.name||"Arial",a=e&&5==e.biff,r=Du(a?15+n.length:16+2*n.length);return r.write_shift(2,20*(t.sz||12)),r.write_shift(4,0),r.write_shift(2,400),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(1,n.length),a||r.write_shift(1,1),r.write_shift((a?1:2)*n.length,n,a?"sbcs":"utf16le"),r}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function om(t,e){if(e){var n=0;e.forEach((function(e,a){++n<=256&&e&&em(t,125,function(t,e){var n=Du(12);n.write_shift(2,e),n.write_shift(2,e),n.write_shift(2,256*t.width),n.write_shift(2,0);var a=0;return t.hidden&&(a|=1),n.write_shift(1,a),a=t.level||0,n.write_shift(1,a),n.write_shift(2,0),n}(hp(a,e),a))}))}}function sm(t,e,n,a,r){var i=16+mp(r.cellXfs,e,r);if(null!=e.v||e.bf)if(e.bf)em(t,6,ep(e,n,a,0,i));else switch(e.t){case"d":case"n":em(t,515,function(t,e,n,a){var r=Du(14);return yd(t,e,a,r),Nf(n,r),r}(n,a,"d"==e.t?hc(wc(e.v)):e.v,i));break;case"b":case"e":em(t,517,function(t,e,n,a,r,i){var o=Du(8);return yd(t,e,a,o),fd(n,i,o),o}(n,a,e.v,i,0,e.t));break;case"s":case"str":if(r.bookSST)em(t,253,function(t,e,n,a){var r=Du(10);return yd(t,e,a,r),r.write_shift(4,n),r}(n,a,dp(r.Strings,e.v,r.revStrings),i));else em(t,516,function(t,e,n,a,r){var i=!r||8==r.biff,o=Du(+i+8+(1+i)*n.length);return yd(t,e,a,o),o.write_shift(2,n.length),i&&o.write_shift(1,1),o.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),o}(n,a,(e.v||"").slice(0,255),i,r));break;default:em(t,513,yd(n,a,i))}else em(t,513,yd(n,a,i))}function lm(t,e,n){var a,r=ju(),i=n.SheetNames[t],o=n.Sheets[i]||{},s=(n||{}).Workbook||{},l=(s.Sheets||[])[t]||{},c=Array.isArray(o),u=8==e.biff,f="",d=[],h=Zu(o["!ref"]||"A1"),p=u?65536:16384;if(h.e.c>255||h.e.r>=p){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,p-1)}em(r,2057,Ad(0,16,e)),em(r,13,ud(1)),em(r,12,ud(100)),em(r,15,ld(!0)),em(r,17,ld(!1)),em(r,16,Nf(.001)),em(r,95,ld(!0)),em(r,42,ld(!1)),em(r,43,ld(!1)),em(r,130,ud(1)),em(r,128,function(t){var e=Du(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}([0,0])),em(r,131,ld(!1)),em(r,132,ld(!1)),u&&om(r,o["!cols"]),em(r,512,function(t,e){var n=8!=e.biff&&e.biff?2:4,a=Du(2*n+6);return a.write_shift(n,t.s.r),a.write_shift(n,t.e.r+1),a.write_shift(2,t.s.c),a.write_shift(2,t.e.c+1),a.write_shift(2,0),a}(h,e)),u&&(o["!links"]=[]);for(var m=h.s.r;m<=h.e.r;++m){f=Ku(m);for(var g=h.s.c;g<=h.e.c;++g){m===h.s.r&&(d[g]=$u(g)),a=d[g]+f;var v=c?(o[m]||[])[g]:o[a];v&&(sm(r,v,m,g,e),u&&v.l&&o["!links"].push([a,v.l]))}}var b=l.CodeName||l.name||i;return u&&em(r,574,function(t){var e=Du(18),n=1718;return t&&t.RTL&&(n|=64),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}((s.Views||[])[0])),u&&(o["!merges"]||[]).length&&em(r,229,function(t){var e=Du(2+8*t.length);e.write_shift(2,t.length);for(var n=0;n<t.length;++n)kd(t[n],e);return e}(o["!merges"])),u&&function(t,e){for(var n=0;n<e["!links"].length;++n){var a=e["!links"][n];em(t,440,Nd(a)),a[1].Tooltip&&em(t,2048,Pd(a))}delete e["!links"]}(r,o),em(r,442,vd(b)),u&&function(t,e){var n=Du(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),em(t,2151,n),(n=Du(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),kd(Zu(e["!ref"]||"A1"),n),n.write_shift(4,4),em(t,2152,n)}(r,o),em(r,10),r.end()}function cm(t,e,n){var a=ju(),r=(t||{}).Workbook||{},i=r.Sheets||[],o=r.WBProps||{},s=8==n.biff,l=5==n.biff;(em(a,2057,Ad(0,5,n)),"xla"==n.bookType&&em(a,135),em(a,225,s?ud(1200):null),em(a,193,function(t,e){e||(e=Du(t));for(var n=0;n<t;++n)e.write_shift(1,0);return e}(2)),l&&em(a,191),l&&em(a,192),em(a,226),em(a,92,function(t,e){var n=!e||8==e.biff,a=Du(n?112:54);for(a.write_shift(8==e.biff?2:1,7),n&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(n?0:536870912));a.l<a.length;)a.write_shift(1,n?0:32);return a}(0,n)),em(a,66,ud(s?1200:1252)),s&&em(a,353,ud(0)),s&&em(a,448),em(a,317,function(t){for(var e=Du(2*t),n=0;n<t;++n)e.write_shift(2,n+1);return e}(t.SheetNames.length)),s&&t.vbaraw&&em(a,211),s&&t.vbaraw)&&em(a,442,vd(o.CodeName||"ThisWorkbook"));em(a,156,ud(17)),em(a,25,ld(!1)),em(a,18,ld(!1)),em(a,19,ud(0)),s&&em(a,431,ld(!1)),s&&em(a,444,ud(0)),em(a,61,function(){var t=Du(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}()),em(a,64,ld(!1)),em(a,141,ud(0)),em(a,34,ld("true"==function(t){return t.Workbook&&t.Workbook.WBProps&&Bc(t.Workbook.WBProps.date1904)?"true":"false"}(t))),em(a,14,ld(!0)),s&&em(a,439,ld(!1)),em(a,218,ud(0)),im(a,0,n),function(t,e,n){e&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(a){for(var r=a[0];r<=a[1];++r)null!=e[r]&&em(t,1054,Cd(r,e[r],n))}))}(a,t.SSF,n),function(t,e){for(var n=0;n<16;++n)em(t,224,Ed({numFmtId:0,style:!0},0,e));e.cellXfs.forEach((function(n){em(t,224,Ed(n,0,e))}))}(a,n),s&&em(a,352,ld(!1));var c=a.end(),u=ju();s&&em(u,140,function(t){return t||(t=Du(4)),t.write_shift(2,1),t.write_shift(2,1),t}()),s&&n.Strings&&function(t,e,n,a){var r=a||(n||[]).length||0;if(r<=8224)return em(t,e,n,r);var i=e;if(!isNaN(i)){for(var o=n.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=t.next(4);for(u.write_shift(2,i),u.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c;l<r;){for((u=t.next(4)).write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c}}}(u,252,function(t,e){var n=Du(8);n.write_shift(4,t.Count),n.write_shift(4,t.Unique);for(var a=[],r=0;r<t.length;++r)a[r]=hd(t[r]);var i=ll([n].concat(a));return i.parts=[n.length].concat(a.map((function(t){return t.length}))),i}(n.Strings)),em(u,10);var f=u.end(),d=ju(),h=0,p=0;for(p=0;p<t.SheetNames.length;++p)h+=(s?12:11)+(s?2:1)*t.SheetNames[p].length;var m=c.length+h+f.length;for(p=0;p<t.SheetNames.length;++p){em(d,133,Sd({pos:m,hs:(i[p]||{}).Hidden||0,dt:0,name:t.SheetNames[p]},n)),m+=e[p].length}var g=d.end();if(h!=g.length)throw new Error("BS8 "+h+" != "+g.length);var v=[];return c.length&&v.push(c),g.length&&v.push(g),f.length&&v.push(f),ll(v)}function um(t,e){for(var n=0;n<=t.SheetNames.length;++n){var a=t.Sheets[t.SheetNames[n]];if(a&&a["!ref"])Xu(a["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+t.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}var r=e||{};switch(r.biff||2){case 8:case 5:return function(t,e){var n=e||{},a=[];t&&!t.SSF&&(t.SSF=kc(yl)),t&&t.SSF&&(ec(),tc(t.SSF),n.revssf=fc(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Um(n),n.cellXfs=[],mp(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r<t.SheetNames.length;++r)a[a.length]=lm(r,n,t);return a.unshift(cm(t,a,n)),ll(a)}(t,e);case 4:case 3:case 2:return rm(t,e)}throw new Error("invalid type "+r.bookType+" for BIFF")}function fm(t,e,n,a){for(var r=t["!merges"]||[],i=[],o=e.s.c;o<=e.e.c;++o){for(var s=0,l=0,c=0;c<r.length;++c)if(!(r[c].s.r>n||r[c].s.c>o||r[c].e.r<n||r[c].e.c<o)){if(r[c].s.r<n||r[c].s.c<o){s=-1;break}s=r[c].e.r-r[c].s.r+1,l=r[c].e.c-r[c].s.c+1;break}if(!(s<0)){var u=Yu({r:n,c:o}),f=a.dense?(t[n]||[])[o]:t[u],d=f&&null!=f.v&&(f.h||jc(f.w||(tf(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),a.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",null!=f.v&&(h["data-v"]=f.v),null!=f.z&&(h["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(a.id||"sjs")+"-"+u,i.push(Xc("td",d,h))}}return"<tr>"+i.join("")+"</tr>"}var dm='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',hm="</body></html>";function pm(t,e,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function mm(t,e){var n=e||{},a=null!=n.header?n.header:dm,r=null!=n.footer?n.footer:hm,i=[a],o=Xu(t["!ref"]);n.dense=Array.isArray(t),i.push(pm(0,0,n));for(var s=o.s.r;s<=o.e.r;++s)i.push(fm(t,o,s,n));return i.push("</table>"+r),i.join("")}function gm(t,e,n){var a=n||{};null!=Js&&(a.dense=Js);var r=0,i=0;if(null!=a.origin)if("number"==typeof a.origin)r=a.origin;else{var o="string"==typeof a.origin?Gu(a.origin):a.origin;r=o.r,i=o.c}var s=e.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r,c:i}};if(t["!ref"]){var u=Xu(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==r&&(c.e.r=r=u.e.r+1)}var f=[],d=0,h=t["!rows"]||(t["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,_=0;for(t["!cols"]||(t["!cols"]=[]);p<s.length&&m<l;++p){var y=s[p];if(bm(y)){if(a.display)continue;h[m]={hidden:!0}}var w=y.children;for(g=v=0;g<w.length;++g){var x=w[g];if(!a.display||!bm(x)){var k=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):Vc(x.innerHTML),A=x.getAttribute("data-z")||x.getAttribute("z");for(d=0;d<f.length;++d){var S=f[d];S.s.c==v+i&&S.s.r<m+r&&m+r<=S.e.r&&(v=S.e.c+1-i,d=-1)}_=+x.getAttribute("colspan")||1,((b=+x.getAttribute("rowspan")||1)>1||_>1)&&f.push({s:{r:m+r,c:v+i},e:{r:m+r+(b||1)-1,c:v+i+(_||1)-1}});var C={t:"s",v:k},E=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=k&&(0==k.length?C.t=E||"z":a.raw||0==k.trim().length||"s"==E||("TRUE"===k?C={t:"b",v:!0}:"FALSE"===k?C={t:"b",v:!1}:isNaN(Sc(k))?isNaN(Ec(k).getDate())||(C={t:"d",v:wc(k)},a.cellDates||(C={t:"n",v:hc(C.v)}),C.z=a.dateNF||yl[14]):C={t:"n",v:Sc(k)})),void 0===C.z&&null!=A&&(C.z=A);var T="",N=x.getElementsByTagName("A");if(N&&N.length)for(var P=0;P<N.length&&(!N[P].hasAttribute("href")||"#"==(T=N[P].getAttribute("href")).charAt(0));++P);T&&"#"!=T.charAt(0)&&(C.l={Target:T}),a.dense?(t[m+r]||(t[m+r]=[]),t[m+r][v+i]=C):t[Yu({c:v+i,r:m+r})]=C,c.e.c<v+i&&(c.e.c=v+i),v+=_}}++m}return f.length&&(t["!merges"]=(t["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,m-1+r),t["!ref"]=Ju(c),m>=l&&(t["!fullref"]=Ju((c.e.r=s.length-p+m-1+r,c))),t}function vm(t,e){return gm((e||{}).dense?[]:{},t,e)}function bm(t){var e="",n=function(t){return t.ownerDocument.defaultView&&"function"==typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(t);return n&&(e=n(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),"none"===e}var _m=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Yc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Pc+e}}(),ym=function(){var t=" <table:table-cell />\n",e=function(e,n,a){var r=[];r.push(' <table:table table:name="'+Mc(n.SheetNames[a])+'" table:style-name="ta1">\n');var i=0,o=0,s=Xu(e["!ref"]||"A1"),l=e["!merges"]||[],c=0,u=Array.isArray(e);if(e["!cols"])for(o=0;o<=s.e.c;++o)r.push(" <table:table-column"+(e["!cols"][o]?' table:style-name="co'+e["!cols"][o].ods+'"':"")+"></table:table-column>\n");var f="",d=e["!rows"]||[];for(i=0;i<s.s.r;++i)f=d[i]?' table:style-name="ro'+d[i].ods+'"':"",r.push(" <table:table-row"+f+"></table:table-row>\n");for(;i<=s.e.r;++i){for(f=d[i]?' table:style-name="ro'+d[i].ods+'"':"",r.push(" <table:table-row"+f+">\n"),o=0;o<s.s.c;++o)r.push(t);for(;o<=s.e.c;++o){var h=!1,p={},m="";for(c=0;c!=l.length;++c)if(!(l[c].s.c>o||l[c].s.r>i||l[c].e.c<o||l[c].e.r<i)){l[c].s.c==o&&l[c].s.r==i||(h=!0),p["table:number-columns-spanned"]=l[c].e.c-l[c].s.c+1,p["table:number-rows-spanned"]=l[c].e.r-l[c].s.r+1;break}if(h)r.push(" <table:covered-table-cell/>\n");else{var g=Yu({r:i,c:o}),v=u?(e[i]||[])[o]:e[g];if(v&&v.f&&(p["table:formula"]=Mc(up(v.f)),v.F&&v.F.slice(0,g.length)==g)){var b=Xu(v.F);p["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,p["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":m=v.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||String(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":m=v.w||wc(v.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=wc(v.v).toISOString(),p["table:style-name"]="ce1";break;default:r.push(t);continue}var _=Mc(m).replace(/ +/g,(function(t){return'<text:s text:c="'+t.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var y=v.l.Target;"#"==(y="#"==y.charAt(0)?"#"+y.slice(1).replace(/\./,"!"):y).charAt(0)||y.match(/^\w+:/)||(y="../"+y),_=Xc("text:a",_,{"xlink:href":y.replace(/&/g,"&")})}r.push(" "+Xc("table:table-cell",Xc("text:p",_,{}),p)+"\n")}else r.push(t)}}r.push(" </table:table-row>\n")}return r.push(" </table:table>\n"),r.join("")};return function(t,n){var a=[Pc],r=Yc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=Yc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(a.push("<office:document"+r+i+">\n"),a.push($f().replace(/office:document-meta/g,"office:meta"))):a.push("<office:document-content"+r+">\n"),function(t,e){t.push(" <office:automatic-styles>\n"),t.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),t.push(' <number:month number:style="long"/>\n'),t.push(" <number:text>/</number:text>\n"),t.push(' <number:day number:style="long"/>\n'),t.push(" <number:text>/</number:text>\n"),t.push(" <number:year/>\n"),t.push(" </number:date-style>\n");var n=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!cols"])for(var a=0;a<e["!cols"].length;++a)if(e["!cols"][a]){var r=e["!cols"][a];if(null==r.width&&null==r.wpx&&null==r.wch)continue;Jd(r),r.ods=n;var i=e["!cols"][a].wpx+"px";t.push(' <style:style style:name="co'+n+'" style:family="table-column">\n'),t.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),t.push(" </style:style>\n"),++n}}));var a=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!rows"])for(var n=0;n<e["!rows"].length;++n)if(e["!rows"][n]){e["!rows"][n].ods=a;var r=e["!rows"][n].hpx+"px";t.push(' <style:style style:name="ro'+a+'" style:family="table-row">\n'),t.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+r+'"/>\n'),t.push(" </style:style>\n"),++a}})),t.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),t.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),t.push(" </style:style>\n"),t.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),t.push(" </office:automatic-styles>\n")}(a,t),a.push(" <office:body>\n"),a.push(" <office:spreadsheet>\n");for(var o=0;o!=t.SheetNames.length;++o)a.push(e(t.Sheets[t.SheetNames[o]],t,o));return a.push(" </office:spreadsheet>\n"),a.push(" </office:body>\n"),"fods"==n.bookType?a.push("</office:document>"):a.push("</office:document-content>"),a.join("")}}();function wm(t,e){if("fods"==e.bookType)return ym(t,e);var n=Nc(),a="",r=[],i=[];return Tc(n,a="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Tc(n,a="content.xml",ym(t,e)),r.push([a,"text/xml"]),i.push([a,"ContentFile"]),Tc(n,a="styles.xml",_m(t,e)),r.push([a,"text/xml"]),i.push([a,"StylesFile"]),Tc(n,a="meta.xml",Pc+$f()),r.push([a,"text/xml"]),i.push([a,"MetadataFile"]),Tc(n,a="manifest.rdf",function(t){var e,n,a=[Pc];a.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var r=0;r!=t.length;++r)a.push(Vf(t[r][0],t[r][1])),a.push((e="",n=t[r][0],[' <rdf:Description rdf:about="'+e+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+n+'"/>\n'," </rdf:Description>\n"].join("")));return a.push(Vf("","Document","pkg")),a.push("</rdf:RDF>"),a.join("")}(i)),r.push([a,"application/rdf+xml"]),Tc(n,a="META-INF/manifest.xml",function(t){var e=[Pc];e.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),e.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<t.length;++n)e.push(' <manifest:file-entry manifest:full-path="'+t[n][0]+'" manifest:media-type="'+t[n][1]+'"/>\n');return e.push("</manifest:manifest>"),e.join("")}(r)),n}function xm(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function km(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):il(Kc(t))}function Am(t){var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),a=0;return t.forEach((function(t){n.set(t,a),a+=t.length})),n}function Sm(t,e){var n=e?e[0]:0,a=127&t[n];t:if(t[n++]>=128){if(a|=(127&t[n])<<7,t[n++]<128)break t;if(a|=(127&t[n])<<14,t[n++]<128)break t;if(a|=(127&t[n])<<21,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,28),++n,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,35),++n,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,42),++n,t[n++]<128)break t}return e&&(e[0]=n),a}function Cm(t){var e=new Uint8Array(7);e[0]=127&t;var n=1;t:if(t>127){if(e[n-1]|=128,e[n]=t>>7&127,++n,t<=16383)break t;if(e[n-1]|=128,e[n]=t>>14&127,++n,t<=2097151)break t;if(e[n-1]|=128,e[n]=t>>21&127,++n,t<=268435455)break t;if(e[n-1]|=128,e[n]=t/256>>>21&127,++n,t<=34359738367)break t;if(e[n-1]|=128,e[n]=t/65536>>>21&127,++n,t<=4398046511103)break t;e[n-1]|=128,e[n]=t/16777216>>>21&127,++n}return e.slice(0,n)}function Em(t){var e=0,n=127&t[e];t:if(t[e++]>=128){if(n|=(127&t[e])<<7,t[e++]<128)break t;if(n|=(127&t[e])<<14,t[e++]<128)break t;if(n|=(127&t[e])<<21,t[e++]<128)break t;n|=(127&t[e])<<28}return n}function Tm(t){for(var e=[],n=[0];n[0]<t.length;){var a,r=n[0],i=Sm(t,n),o=7&i,s=0;if(0==(i=Math.floor(i/8)))break;switch(o){case 0:for(var l=n[0];t[n[0]++]>=128;);a=t.slice(l,n[0]);break;case 5:s=4,a=t.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=t.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Sm(t,n),a=t.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==e[i]?e[i]=[c]:e[i].push(c)}return e}function Nm(t){var e=[];return t.forEach((function(t,n){t.forEach((function(t){t.data&&(e.push(Cm(8*n+t.type)),2==t.type&&e.push(Cm(t.data.length)),e.push(t.data))}))})),Am(e)}function Pm(t){for(var e,n=[],a=[0];a[0]<t.length;){var r=Sm(t,a),i=Tm(t.slice(a[0],a[0]+r));a[0]+=r;var o={id:Em(i[1][0].data),messages:[]};i[2].forEach((function(e){var n=Tm(e.data),r=Em(n[3][0].data);o.messages.push({meta:n,data:t.slice(a[0],a[0]+r)}),a[0]+=r})),(null==(e=i[3])?void 0:e[0])&&(o.merge=Em(i[3][0].data)>>>0>0),n.push(o)}return n}function Lm(t){var e=[];return t.forEach((function(t){var n=[];n[1]=[{data:Cm(t.id),type:0}],n[2]=[],null!=t.merge&&(n[3]=[{data:Cm(+!!t.merge),type:0}]);var a=[];t.messages.forEach((function(t){a.push(t.data),t.meta[3]=[{type:0,data:Cm(t.data.length)}],n[2].push({data:Nm(t.meta),type:2})}));var r=Nm(n);e.push(Cm(r.length)),e.push(r),a.forEach((function(t){return e.push(t)}))})),Am(e)}function Om(t,e){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var n=[0],a=Sm(e,n),r=[];n[0]<e.length;){var i=3&e[n[0]];if(0!=i){var o=0,s=0;if(1==i?(s=4+(e[n[0]]>>2&7),o=(224&e[n[0]++])<<3,o|=e[n[0]++]):(s=1+(e[n[0]++]>>2),2==i?(o=e[n[0]]|e[n[0]+1]<<8,n[0]+=2):(o=(e[n[0]]|e[n[0]+1]<<8|e[n[0]+2]<<16|e[n[0]+3]<<24)>>>0,n[0]+=4)),r=[Am(r)],0==o)throw new Error("Invalid offset 0");if(o>r[0].length)throw new Error("Invalid offset beyond length");if(s>=o)for(r.push(r[0].slice(-o)),s-=o;s>=r[r.length-1].length;)r.push(r[r.length-1]),s-=r[r.length-1].length;r.push(r[0].slice(-o,-o+s))}else{var l=e[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=e[n[0]],c>1&&(l|=e[n[0]+1]<<8),c>2&&(l|=e[n[0]+2]<<16),c>3&&(l|=e[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}r.push(e.slice(n[0],n[0]+l)),n[0]+=l}}var u=Am(r);if(u.length!=a)throw new Error("Unexpected length: ".concat(u.length," != ").concat(a));return u}function Rm(t){for(var e=[],n=0;n<t.length;){var a=t[n++],r=t[n]|t[n+1]<<8|t[n+2]<<16;n+=3,e.push(Om(a,t.slice(n,n+r))),n+=r}if(n!==t.length)throw new Error("data is not a valid framed stream!");return Am(e)}function Im(t){for(var e=[],n=0;n<t.length;){var a=Math.min(t.length-n,268435455),r=new Uint8Array(4);e.push(r);var i=Cm(a),o=i.length;e.push(i),a<=60?(o++,e.push(new Uint8Array([a-1<<2]))):a<=256?(o+=2,e.push(new Uint8Array([240,a-1&255]))):a<=65536?(o+=3,e.push(new Uint8Array([244,a-1&255,a-1>>8&255]))):a<=16777216?(o+=4,e.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(o+=5,e.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),e.push(t.slice(n,n+a)),o+=a,r[0]=0,r[1]=255&o,r[2]=o>>8&255,r[3]=o>>16&255,n+=a}return Am(e)}function Mm(t,e){var n=new Uint8Array(32),a=xm(n),r=12,i=0;switch(n[0]=5,t.t){case"n":n[1]=2,function(t,e,n){var a=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,r=n/Math.pow(10,a-6176);t[e+15]|=a>>7,t[e+14]|=(127&a)<<1;for(var i=0;r>=1;++i,r/=256)t[e+i]=255&r;t[e+15]|=n>=0?0:128}(n,r,t.v),i|=1,r+=16;break;case"b":n[1]=6,a.setFloat64(r,t.v?1:0,!0),i|=2,r+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[1]=3,a.setUint32(r,e.indexOf(t.v),!0),i|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return a.setUint32(8,i,!0),n.slice(0,r)}function Fm(t,e){var n=new Uint8Array(32),a=xm(n),r=12,i=0;switch(n[0]=3,t.t){case"n":n[2]=2,a.setFloat64(r,t.v,!0),i|=32,r+=8;break;case"b":n[2]=6,a.setFloat64(r,t.v?1:0,!0),i|=32,r+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[2]=3,a.setUint32(r,e.indexOf(t.v),!0),i|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return a.setUint32(4,i,!0),n.slice(0,r)}function Dm(t){return Sm(Tm(t)[1][0].data)}function jm(t,e,n){var a,r,i,o;if(!(null==(a=t[6])?void 0:a[0])||!(null==(r=t[7])?void 0:r[0]))throw"Mutation only works on post-BNC storages!";if((null==(o=null==(i=t[8])?void 0:i[0])?void 0:o.data)&&Em(t[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var s=0,l=xm(t[7][0].data),c=0,u=[],f=xm(t[4][0].data),d=0,h=[],p=0;p<e.length;++p)if(null!=e[p]){var m,g;switch(l.setUint16(2*p,c,!0),f.setUint16(2*p,d,!0),typeof e[p]){case"string":m=Mm({t:"s",v:e[p]},n),g=Fm({t:"s",v:e[p]},n);break;case"number":m=Mm({t:"n",v:e[p]},n),g=Fm({t:"n",v:e[p]},n);break;case"boolean":m=Mm({t:"b",v:e[p]},n),g=Fm({t:"b",v:e[p]},n);break;default:throw new Error("Unsupported value "+e[p])}u.push(m),c+=m.length,h.push(g),d+=g.length,++s}else l.setUint16(2*p,65535,!0),f.setUint16(2*p,65535);for(t[2][0].data=Cm(s);p<t[7][0].data.length/2;++p)l.setUint16(2*p,65535,!0),f.setUint16(2*p,65535,!0);return t[6][0].data=Am(u),t[3][0].data=Am(h),s}function Bm(t){return function(e){for(var n=0;n!=t.length;++n){var a=t[n];void 0===e[a[0]]&&(e[a[0]]=a[1]),"n"===a[2]&&(e[a[0]]=Number(e[a[0]]))}}}function Um(t){Bm([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function zm(t,e){return"ods"==e.bookType?wm(t,e):"numbers"==e.bookType?function(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var a=Xu(n["!ref"]);a.s.r=a.s.c=0;var r=!1;a.e.c>9&&(r=!0,a.e.c=9),a.e.r>49&&(r=!0,a.e.r=49),r&&console.error("The Numbers writer is currently limited to ".concat(Ju(a)));var i=Xm(n,{range:a,header:1}),o=["~Sh33tJ5~"];i.forEach((function(t){return t.forEach((function(t){"string"==typeof t&&o.push(t)}))}));var s={},l=[],c=rc.read(e.numbers,{type:"base64"});c.FileIndex.map((function(t,e){return[t,c.FullPaths[e]]})).forEach((function(t){var e=t[0],n=t[1];2==e.type&&e.name.match(/\.iwa/)&&Pm(Rm(e.content)).forEach((function(t){l.push(t.id),s[t.id]={deps:[],location:n,type:Em(t.messages[0].meta[1][0].data)}}))})),l.sort((function(t,e){return t-e}));var u=l.filter((function(t){return t>1})).map((function(t){return[t,Cm(t)]}));c.FileIndex.map((function(t,e){return[t,c.FullPaths[e]]})).forEach((function(t){var e=t[0];t[1],e.name.match(/\.iwa/)&&Pm(Rm(e.content)).forEach((function(t){t.messages.forEach((function(e){u.forEach((function(e){t.messages.some((function(t){return 11006!=Em(t.meta[1][0].data)&&function(t,e){t:for(var n=0;n<=t.length-e.length;++n){for(var a=0;a<e.length;++a)if(t[n+a]!=e[a])continue t;return!0}return!1}(t.data,e[1])}))&&s[e[0]].deps.push(t.id)}))}))}))}));for(var f,d=rc.find(c,s[1].location),h=Pm(Rm(d.content)),p=0;p<h.length;++p){var m=h[p];1==m.id&&(f=m)}var g=Dm(Tm(f.messages[0].data)[1][0].data);for(h=Pm(Rm((d=rc.find(c,s[g].location)).content)),p=0;p<h.length;++p)(m=h[p]).id==g&&(f=m);for(g=Dm(Tm(f.messages[0].data)[2][0].data),h=Pm(Rm((d=rc.find(c,s[g].location)).content)),p=0;p<h.length;++p)(m=h[p]).id==g&&(f=m);for(g=Dm(Tm(f.messages[0].data)[2][0].data),h=Pm(Rm((d=rc.find(c,s[g].location)).content)),p=0;p<h.length;++p)(m=h[p]).id==g&&(f=m);var v=Tm(f.messages[0].data);v[6][0].data=Cm(a.e.r+1),v[7][0].data=Cm(a.e.c+1);for(var b=Dm(v[46][0].data),_=rc.find(c,s[b].location),y=Pm(Rm(_.content)),w=0;w<y.length&&y[w].id!=b;++w);if(y[w].id!=b)throw"Bad ColumnRowUIDMapArchive";var x=Tm(y[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var k=0;k<=a.e.c;++k){var A=[];A[1]=A[2]=[{type:0,data:Cm(k+420690)}],x[1].push({type:2,data:Nm(A)}),x[2].push({type:0,data:Cm(k)}),x[3].push({type:0,data:Cm(k)})}x[4]=[],x[5]=[],x[6]=[];for(var S=0;S<=a.e.r;++S)(A=[])[1]=A[2]=[{type:0,data:Cm(S+726270)}],x[4].push({type:2,data:Nm(A)}),x[5].push({type:0,data:Cm(S)}),x[6].push({type:0,data:Cm(S)});y[w].messages[0].data=Nm(x),_.content=Im(Lm(y)),_.size=_.content.length,delete v[46];var C=Tm(v[4][0].data);C[7][0].data=Cm(a.e.r+1);var E=Dm(Tm(C[1][0].data)[2][0].data);if((y=Pm(Rm((_=rc.find(c,s[E].location)).content)))[0].id!=E)throw"Bad HeaderStorageBucket";var T=Tm(y[0].messages[0].data);for(S=0;S<i.length;++S){var N=Tm(T[2][0].data);N[1][0].data=Cm(S),N[4][0].data=Cm(i[S].length),T[2][S]={type:T[2][0].type,data:Nm(N)}}y[0].messages[0].data=Nm(T),_.content=Im(Lm(y)),_.size=_.content.length;var P=Dm(C[2][0].data);if((y=Pm(Rm((_=rc.find(c,s[P].location)).content)))[0].id!=P)throw"Bad HeaderStorageBucket";for(T=Tm(y[0].messages[0].data),k=0;k<=a.e.c;++k)(N=Tm(T[2][0].data))[1][0].data=Cm(k),N[4][0].data=Cm(a.e.r+1),T[2][k]={type:T[2][0].type,data:Nm(N)};y[0].messages[0].data=Nm(T),_.content=Im(Lm(y)),_.size=_.content.length;var L=Dm(C[4][0].data);!function(){for(var t,e=rc.find(c,s[L].location),n=Pm(Rm(e.content)),a=0;a<n.length;++a){var r=n[a];r.id==L&&(t=r)}var i=Tm(t.messages[0].data);i[3]=[];var l=[];o.forEach((function(t,e){l[1]=[{type:0,data:Cm(e)}],l[2]=[{type:0,data:Cm(1)}],l[3]=[{type:2,data:km(t)}],i[3].push({type:2,data:Nm(l)})})),t.messages[0].data=Nm(i);var u=Im(Lm(n));e.content=u,e.size=e.content.length}();var O=Tm(C[3][0].data),R=O[1][0];delete O[2];var I=Tm(R.data),M=Dm(I[2][0].data);!function(){for(var t,e=rc.find(c,s[M].location),n=Pm(Rm(e.content)),r=0;r<n.length;++r){var l=n[r];l.id==M&&(t=l)}var u=Tm(t.messages[0].data);delete u[6],delete O[7];var f=new Uint8Array(u[5][0].data);u[5]=[];for(var d=0,h=0;h<=a.e.r;++h){var p=Tm(f);d+=jm(p,i[h],o),p[1][0].data=Cm(h),u[5].push({data:Nm(p),type:2})}u[1]=[{type:0,data:Cm(a.e.c+1)}],u[2]=[{type:0,data:Cm(a.e.r+1)}],u[3]=[{type:0,data:Cm(d)}],u[4]=[{type:0,data:Cm(a.e.r+1)}],t.messages[0].data=Nm(u);var m=Im(Lm(n));e.content=m,e.size=e.content.length}(),R.data=Nm(I),C[3][0].data=Nm(O),v[4][0].data=Nm(C),f.messages[0].data=Nm(v);var F=Im(Lm(h));return d.content=F,d.size=d.content.length,c}(t,e):"xlsb"==e.bookType?function(t,e){bh=1024,t&&!t.SSF&&(t.SSF=kc(yl));t&&t.SSF&&(ec(),tc(t.SSF),e.revssf=fc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF);e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,fp?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xlsb"==e.bookType?"bin":"xml",a=Ah.indexOf(e.bookType)>-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Um(e=e||{});var i=Nc(),o="",s=0;e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});if(o="docProps/core.xml",Tc(i,o,Xf(t.Props,e)),r.coreprops.push(o),Kf(e.rels,2,o,Hf.CORE_PROPS),o="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,Tc(i,o,Qf(t.Props)),r.extprops.push(o),Kf(e.rels,3,o,Hf.EXT_PROPS),t.Custprops!==t.Props&&lc(t.Custprops||{}).length>0&&(Tc(i,o="docProps/custom.xml",td(t.Custprops)),r.custprops.push(o),Kf(e.rels,4,o,Hf.CUST_PROPS));for(s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},f=t.Sheets[t.SheetNames[s-1]];(f||{})["!type"];if(Tc(i,o="xl/worksheets/sheet"+s+"."+n,Wp(s-1,o,e,t,u)),r.sheets.push(o),Kf(e.wbrels,-1,"worksheets/sheet"+s+"."+n,Hf.WS[0]),f){var d=f["!comments"],h=!1,p="";d&&d.length>0&&(Tc(i,p="xl/comments"+s+"."+n,Kp(d,p,e)),r.comments.push(p),Kf(u,-1,"../comments"+s+"."+n,Hf.CMNT),h=!0),f["!legacy"]&&h&&Tc(i,"xl/drawings/vmlDrawing"+s+".vml",_h(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&Tc(i,qf(o),Wf(u))}null!=e.Strings&&e.Strings.length>0&&(Tc(i,o="xl/sharedStrings."+n,function(t,e,n){return(".bin"===e.slice(-4)?zd:Bd)(t,n)}(e.Strings,o,e)),r.strs.push(o),Kf(e.wbrels,-1,"sharedStrings."+n,Hf.SST));o="xl/workbook."+n,Tc(i,o,function(t,e,n){return(".bin"===e.slice(-4)?qp:Up)(t,n)}(t,o,e)),r.workbooks.push(o),Kf(e.rels,1,o,Hf.WB),o="xl/theme/theme1.xml",Tc(i,o,mh(t.Themes,e)),r.themes.push(o),Kf(e.wbrels,-1,"theme/theme1.xml",Hf.THEME),o="xl/styles."+n,Tc(i,o,function(t,e,n){return(".bin"===e.slice(-4)?ph:eh)(t,n)}(t,o,e)),r.styles.push(o),Kf(e.wbrels,-1,"styles."+n,Hf.STY),t.vbaraw&&a&&(Tc(i,o="xl/vbaProject.bin",t.vbaraw),r.vba.push(o),Kf(e.wbrels,-1,"vbaProject.bin",Hf.VBA));return o="xl/metadata."+n,Tc(i,o,function(t){return(".bin"===t.slice(-4)?gh:vh)()}(o)),r.metadata.push(o),Kf(e.wbrels,-1,"metadata."+n,Hf.XLMETA),Tc(i,"[Content_Types].xml",zf(r,e)),Tc(i,"_rels/.rels",Wf(e.rels)),Tc(i,"xl/_rels/workbook."+n+".rels",Wf(e.wbrels)),delete e.revssf,delete e.ssf,i}(t,e):Hm(t,e)}function Hm(t,e){bh=1024,t&&!t.SSF&&(t.SSF=kc(yl)),t&&t.SSF&&(ec(),tc(t.SSF),e.revssf=fc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,fp?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xml",a=Ah.indexOf(e.bookType)>-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Um(e=e||{});var i=Nc(),o="",s=0;if(e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Tc(i,o="docProps/core.xml",Xf(t.Props,e)),r.coreprops.push(o),Kf(e.rels,2,o,Hf.CORE_PROPS),o="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,Tc(i,o,Qf(t.Props)),r.extprops.push(o),Kf(e.rels,3,o,Hf.EXT_PROPS),t.Custprops!==t.Props&&lc(t.Custprops||{}).length>0&&(Tc(i,o="docProps/custom.xml",td(t.Custprops)),r.custprops.push(o),Kf(e.rels,4,o,Hf.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var f={"!id":{}},d=t.Sheets[t.SheetNames[s-1]];(d||{})["!type"];if(Tc(i,o="xl/worksheets/sheet"+s+"."+n,yp(s-1,e,t,f)),r.sheets.push(o),Kf(e.wbrels,-1,"worksheets/sheet"+s+"."+n,Hf.WS[0]),d){var h=d["!comments"],p=!1,m="";if(h&&h.length>0){var g=!1;h.forEach((function(t){t[1].forEach((function(t){1==t.T&&(g=!0)}))})),g&&(Tc(i,m="xl/threadedComments/threadedComment"+s+"."+n,wh(h,u,e)),r.threadedcomments.push(m),Kf(f,-1,"../threadedComments/threadedComment"+s+"."+n,Hf.TCMNT)),Tc(i,m="xl/comments"+s+"."+n,yh(h)),r.comments.push(m),Kf(f,-1,"../comments"+s+"."+n,Hf.CMNT),p=!0}d["!legacy"]&&p&&Tc(i,"xl/drawings/vmlDrawing"+s+".vml",_h(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Tc(i,qf(o),Wf(f))}return null!=e.Strings&&e.Strings.length>0&&(Tc(i,o="xl/sharedStrings."+n,Bd(e.Strings,e)),r.strs.push(o),Kf(e.wbrels,-1,"sharedStrings."+n,Hf.SST)),Tc(i,o="xl/workbook."+n,Up(t)),r.workbooks.push(o),Kf(e.rels,1,o,Hf.WB),Tc(i,o="xl/theme/theme1.xml",mh(t.Themes,e)),r.themes.push(o),Kf(e.wbrels,-1,"theme/theme1.xml",Hf.THEME),Tc(i,o="xl/styles."+n,eh(t,e)),r.styles.push(o),Kf(e.wbrels,-1,"styles."+n,Hf.STY),t.vbaraw&&a&&(Tc(i,o="xl/vbaProject.bin",t.vbaraw),r.vba.push(o),Kf(e.wbrels,-1,"vbaProject.bin",Hf.VBA)),Tc(i,o="xl/metadata."+n,vh()),r.metadata.push(o),Kf(e.wbrels,-1,"metadata."+n,Hf.XLMETA),u.length>1&&(Tc(i,o="xl/persons/person.xml",function(t){var e=[Pc,Xc("personList",null,{xmlns:Zc.TCMNT,"xmlns:x":Qc[0]}).replace(/[\/]>/,">")];return t.forEach((function(t,n){e.push(Xc("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))})),e.push("</personList>"),e.join("")}(u)),r.people.push(o),Kf(e.wbrels,-1,"persons/person.xml",Hf.PEOPLE)),Tc(i,"[Content_Types].xml",zf(r,e)),Tc(i,"_rels/.rels",Wf(e.rels)),Tc(i,"xl/_rels/workbook.xml.rels",Wf(e.wbrels)),delete e.revssf,delete e.ssf,i}function qm(t,e){var n="";switch((e||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":n=tl(t.slice(0,12));break;case"binary":n=t;break;default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Wm(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return sc(e.file,rc.write(t,{type:el?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return rc.write(t,e)}function Km(t,e){var n={},a=el?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(e.compression&&(n.compression="DEFLATE"),e.password)n.type=a;else switch(e.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":n.type=a;break;default:throw new Error("Unrecognized type "+e.type)}var r=t.FullPaths?rc.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!e.compression}):t.generate(n);if("undefined"!=typeof Deno&&"string"==typeof r){if("binary"==e.type||"base64"==e.type)return r;r=new Uint8Array(ol(r))}return e.password&&"undefined"!=typeof encrypt_agile?Wm(encrypt_agile(r,e.password),e):"file"===e.type?sc(e.file,r):"string"==e.type?Wc(r):r}function Vm(t,e,n){n||(n="");var a=n+t;switch(e.type){case"base64":return Qs(Kc(a));case"binary":return Kc(a);case"string":return t;case"file":return sc(e.file,a,"utf8");case"buffer":return el?nl(a,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(a):Vm(a,{type:"binary"}).split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}function $m(t,e){switch(e.type){case"string":case"base64":case"binary":for(var n="",a=0;a<t.length;++a)n+=String.fromCharCode(t[a]);return"base64"==e.type?Qs(n):"string"==e.type?Wc(n):n;case"file":return sc(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function Gm(t,e){Vs(),Bp(t);var n=kc(e||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var a=Gm(t,n);return n.type="array",ol(a)}var r=0;if(n.sheet&&(r="number"==typeof n.sheet?n.sheet:t.SheetNames.indexOf(n.sheet),!t.SheetNames[r]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Vm(Jp(t,n),n);case"slk":case"sylk":return Vm(Rd.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"htm":case"html":return Vm(mm(t.Sheets[t.SheetNames[r]],n),n);case"txt":return function(t,e){switch(e.type){case"base64":return Qs(t);case"binary":case"string":return t;case"file":return sc(e.file,t,"binary");case"buffer":return el?nl(t,"binary"):t.split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}(tg(t.Sheets[t.SheetNames[r]],n),n);case"csv":return Vm(Qm(t.Sheets[t.SheetNames[r]],n),n,"\ufeff");case"dif":return Vm(Id.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"dbf":return $m(Od.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"prn":return Vm(Fd.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"rtf":return Vm(Wd.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"eth":return Vm(Md.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"fods":return Vm(wm(t,n),n);case"wk1":return $m(Dd.sheet_to_wk1(t.Sheets[t.SheetNames[r]],n),n);case"wk3":return $m(Dd.book_to_wk3(t,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),$m(um(t,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(t,e){var n=e||{};return Wm(Qp(t,n),n)}(t,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(t,e){var n=kc(e||{});return Km(zm(t,n),n)}(t,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Ym(t,e,n,a,r,i,o,s){var l=Ku(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(t){d.__rowNum__=n}else d.__rowNum__=n;if(!o||t[n])for(var h=e.s.c;h<=e.e.c;++h){var p=o?t[n][h]:t[a[h]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=i[h]){if(null==m)if("e"==p.t&&null===m)d[i[h]]=null;else if(void 0!==c)d[i[h]]=c;else{if(!u||null!==m)continue;d[i[h]]=null}else d[i[h]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:tf(p,m,s);null!=m&&(f=!1)}}else{if(void 0===c)continue;null!=i[h]&&(d[i[h]]=c)}}return{row:d,isempty:f}}function Xm(t,e){if(null==t||null==t["!ref"])return[];var n={t:"n",v:0},a=0,r=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=null!=c.range?c.range:t["!ref"];switch(1===c.header?a=1:"A"===c.header?a=2:Array.isArray(c.header)?a=3:null==c.header&&(a=0),typeof u){case"string":l=Zu(u);break;case"number":(l=Zu(t["!ref"])).s.r=u;break;default:l=u}a>0&&(r=0);var f=Ku(l.s.r),d=[],h=[],p=0,m=0,g=Array.isArray(t),v=l.s.r,b=0,_={};g&&!t[v]&&(t[v]=[]);var y=c.skipHidden&&t["!cols"]||[],w=c.skipHidden&&t["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(y[b]||{}).hidden)switch(d[b]=$u(b),n=g?t[v][b]:t[d[b]+f],a){case 1:i[b]=b-l.s.c;break;case 2:i[b]=d[b];break;case 3:i[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=o=tf(n,null,c),m=_[o]||0){do{s=o+"_"+m++}while(_[s]);_[o]=m,_[s]=1}else _[o]=1;i[b]=s}for(v=l.s.r+r;v<=l.e.r;++v)if(!(w[v]||{}).hidden){var x=Ym(t,l,v,d,a,i,g,c);(!1===x.isempty||(1===a?!1!==c.blankrows:c.blankrows))&&(h[p++]=x.row)}return h.length=p,h}var Jm=/"/g;function Zm(t,e,n,a,r,i,o,s){for(var l=!0,c=[],u="",f=Ku(n),d=e.s.c;d<=e.e.c;++d)if(a[d]){var h=s.dense?(t[n]||[])[d]:t[a[d]+f];if(null==h)u="";else if(null!=h.v){l=!1,u=""+(s.rawNumbers&&"n"==h.t?h.v:tf(h,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===r||m===i||34===m||s.forceQuotes){u='"'+u.replace(Jm,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==h.f||h.F?u="":(l=!1,(u="="+h.f).indexOf(",")>=0&&(u='"'+u.replace(Jm,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(o)}function Qm(t,e){var n=[],a=null==e?{}:e;if(null==t||null==t["!ref"])return"";var r=Zu(t["!ref"]),i=void 0!==a.FS?a.FS:",",o=i.charCodeAt(0),s=void 0!==a.RS?a.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==i?"\\|":i)+"+$"),u="",f=[];a.dense=Array.isArray(t);for(var d=a.skipHidden&&t["!cols"]||[],h=a.skipHidden&&t["!rows"]||[],p=r.s.c;p<=r.e.c;++p)(d[p]||{}).hidden||(f[p]=$u(p));for(var m=0,g=r.s.r;g<=r.e.r;++g)(h[g]||{}).hidden||null!=(u=Zm(t,r,g,f,o,l,i,a))&&(a.strip&&(u=u.replace(c,"")),(u||!1!==a.blankrows)&&n.push((m++?s:"")+u));return delete a.dense,n.join("")}function tg(t,e){e||(e={}),e.FS="\t",e.RS="\n";var n=Qm(t,e);if(void 0===Gs||"string"==e.type)return n;var a=Gs.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function eg(t,e,n){var a,r=n||{},i=+!r.skipHeader,o=t||{},s=0,l=0;if(o&&null!=r.origin)if("number"==typeof r.origin)s=r.origin;else{var c="string"==typeof r.origin?Gu(r.origin):r.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+e.length-1+i}};if(o["!ref"]){var f=Zu(o["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),-1==s&&(s=f.e.r+1,u.e.r=s+e.length-1+i)}else-1==s&&(s=0,u.e.r=e.length-1+i);var d=r.header||[],h=0;e.forEach((function(t,e){lc(t).forEach((function(n){-1==(h=d.indexOf(n))&&(d[h=d.length]=n);var c=t[n],u="z",f="",p=Yu({c:l+h,r:s+e+i});a=ng(o,p),!c||"object"!=typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",r.cellDates||(u="n",c=hc(c)),f=r.dateNF||yl[14]):null===c&&r.nullError&&(u="e",c=0),a?(a.t=u,a.v=c,delete a.w,delete a.R,f&&(a.z=f)):o[p]=a={t:u,v:c},f&&(a.z=f)):o[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=Ku(s);if(i)for(h=0;h<d.length;++h)o[$u(h+l)+p]={t:"s",v:d[h]};return o["!ref"]=Ju(u),o}function ng(t,e,n){if("string"==typeof e){if(Array.isArray(t)){var a=Gu(e);return t[a.r]||(t[a.r]=[]),t[a.r][a.c]||(t[a.r][a.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return ng(t,Yu("number"!=typeof e?e:{r:e,c:n||0}))}function ag(){return{SheetNames:[],Sheets:{}}}function rg(t,e,n,a){var r=1;if(!n)for(;r<=65535&&-1!=t.SheetNames.indexOf(n="Sheet"+r);++r,n=void 0);if(!n||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&t.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);r=i&&+i[2]||0;var o=i&&i[1]||n;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(n=o+r);++r);}if(jp(n),t.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return t.SheetNames.push(n),t.Sheets[n]=e,n}function ig(t,e,n){return e?(t.l={Target:e},n&&(t.l.Tooltip=n)):delete t.l,t}var og={encode_col:$u,encode_row:Ku,encode_cell:Yu,encode_range:Ju,decode_col:Vu,decode_row:Wu,split_cell:function(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Gu,decode_range:Xu,format_cell:tf,sheet_add_aoa:nf,sheet_add_json:eg,sheet_add_dom:gm,aoa_to_sheet:af,json_to_sheet:function(t,e){return eg(null,t,e)},table_to_sheet:vm,table_to_book:function(t,e){return ef(vm(t,e),e)},sheet_to_csv:Qm,sheet_to_txt:tg,sheet_to_json:Xm,sheet_to_html:mm,sheet_to_formulae:function(t){var e,n="",a="";if(null==t||null==t["!ref"])return[];var r,i=Zu(t["!ref"]),o="",s=[],l=[],c=Array.isArray(t);for(r=i.s.c;r<=i.e.c;++r)s[r]=$u(r);for(var u=i.s.r;u<=i.e.r;++u)for(o=Ku(u),r=i.s.c;r<=i.e.c;++r)if(n=s[r]+o,a="",void 0!==(e=c?(t[u]||[])[r]:t[n])){if(null!=e.F){if(n=e.F,!e.f)continue;a=e.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=e.f)a=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)a=""+e.v;else if("b"==e.t)a=e.v?"TRUE":"FALSE";else if(void 0!==e.w)a="'"+e.w;else{if(void 0===e.v)continue;a="s"==e.t?"'"+e.v:""+e.v}}l[l.length]=n+"="+a}return l},sheet_to_row_object_array:Xm,sheet_get_cell:ng,book_new:ag,book_append_sheet:rg,book_set_sheet_visibility:function(t,e,n){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var a=function(t,e){if("number"==typeof e){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}if("string"==typeof e){var n=t.SheetNames.indexOf(e);if(n>-1)return n;throw new Error("Cannot find sheet name |"+e+"|")}throw new Error("Cannot find sheet |"+e+"|")}(t,e);switch(t.Workbook.Sheets[a]||(t.Workbook.Sheets[a]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}t.Workbook.Sheets[a].Hidden=n},cell_set_number_format:function(t,e){return t.z=e,t},cell_set_hyperlink:ig,cell_set_internal_link:function(t,e,n){return ig(t,"#"+e,n)},cell_add_comment:function(t,e,n){t.c||(t.c=[]),t.c.push({t:e,a:n||"SheetJS"})},sheet_set_array_formula:function(t,e,n,a){for(var r="string"!=typeof e?e:Zu(e),i="string"==typeof e?e:Ju(e),o=r.s.r;o<=r.e.r;++o)for(var s=r.s.c;s<=r.e.c;++s){var l=ng(t,o,s);l.t="n",l.F=i,delete l.v,o==r.s.r&&s==r.s.c&&(l.f=n,a&&(l.D=!0))}return t},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};Bs.version;var sg=n(4213);function lg(t){return lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lg(t)}const cg={name:"AdminDataTable",props:{headers:{type:Array,default:function(){return[]}},items:{type:Array,default:function(){return[]}},itemsPerPage:{type:Number,default:10},showPagination:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},itemKey:{type:String,default:"id"},emptyText:{type:String,default:"Tiada data"},exportable:{type:Boolean,default:!1},exportFileName:{type:String,default:"table-data"},showIndex:{type:Boolean,default:!0},indexTitle:{type:String,default:"Bil"}},data:function(){return{page:1,localPerPage:this.itemsPerPage,sortKey:null,sortDir:"asc",perPageOptions:[10,25,50,100]}},computed:{totalItems:function(){return this.sortedItems.length},totalPages:function(){return Math.ceil(this.totalItems/this.localPerPage)||1},sortedItems:function(){var t=this.items.slice();if(!this.sortKey)return t;var e=this.sortKey,n="desc"===this.sortDir?-1:1;return t.sort((function(t,a){var r=t[e],i=a[e];return null==r&&null==i?0:null==r?1:null==i?-1:"number"==typeof r&&"number"==typeof i?(r-i)*n:String(r).localeCompare(String(i),void 0,{numeric:!0})*n})),t},displayRows:function(){if(!this.showPagination)return this.sortedItems;var t=(this.page-1)*this.localPerPage;return this.sortedItems.slice(t,t+this.localPerPage)},rangeFrom:function(){return this.totalItems?(this.page-1)*this.localPerPage+1:0},rangeTo:function(){return Math.min(this.page*this.localPerPage,this.totalItems)},tableHeaders:function(){return this.showIndex?[{title:this.indexTitle,key:"__adt_index",sortable:!1}].concat(this.headers):this.headers}},watch:{items:function(){this.page>this.totalPages&&(this.page=Math.max(1,this.totalPages))},itemsPerPage:function(t){this.localPerPage=t}},methods:{rowGlobalIndex:function(t){return this.showPagination?(this.page-1)*this.localPerPage+t+1:t+1},cellTdClass:function(t){var e={};return"__adt_index"===t.key&&(e["admin-data-table__col-index"]=!0),e},cellValue:function(t,e){return t[e]},formatCell:function(t,e){var n=t[e];return null==n?"":n},toggleSort:function(t){this.sortKey===t?this.sortDir="asc"===this.sortDir?"desc":"asc":(this.sortKey=t,this.sortDir="asc")},goPage:function(t){t<1||t>this.totalPages||(this.page=t)},onPerPageChange:function(){this.page=1},isActionColumnKey:function(t){if(!t)return!1;var e=String(t).toLowerCase();return"actions"===e||"action"===e||"opsi"===e||"tindakan"===e},resolveFieldValue:function(t,e){if("#"===e)return"";for(var n=String(e).split("."),a=t,r=0;r<n.length;r++){if(!a||"object"!==lg(a)||!(n[r]in a))return null;a=a[n[r]]}return Array.isArray(a)?a.map((function(t){return t&&"object"===lg(t)&&null!=t.name?t.name:String(t)})).join(", "):a&&"object"===lg(a)&&"name"in a?a.name:a},cellStringForExport:function(t,e,n){if("function"==typeof t.exportValue)return t.exportValue(e,n)||"";if("__adt_index"===t.key||"#"===t.key)return String(n+1);if(this.isActionColumnKey(t.key))return"";var a=this.resolveFieldValue(e,t.key);return null==a?"":String(a)},prepareExportMatrix:function(){var t=[],e=this.tableHeaders.map((function(t){return t.title||t.key})),n=this;return this.sortedItems.forEach((function(e,a){var r=n.tableHeaders.map((function(t){return n.cellStringForExport(t,e,a)}));t.push(r)})),{headerTitles:e,rows:t}},exportEmitError:function(t){this.$emit("export-error",t instanceof Error?t:new Error(String(t)))},exportToCSV:function(){try{var t=this.prepareExportMatrix(),e=[t.headerTitles].concat(t.rows).map((function(t){return t.map((function(t){return'"'+String(t).replace(/"/g,'""')+'"'})).join(",")})).join("\n"),n=new Blob([e],{type:"text/csv;charset=utf-8;"});(0,sg.saveAs)(n,this.exportFileName+".csv")}catch(t){this.exportEmitError(t)}},exportToExcel:function(){try{var t=this.prepareExportMatrix(),e=[t.headerTitles].concat(t.rows),n=og.aoa_to_sheet(e),a=og.book_new();og.book_append_sheet(a,n,"Sheet1");var r=Gm(a,{bookType:"xlsx",type:"array"}),i=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});(0,sg.saveAs)(i,this.exportFileName+".xlsx")}catch(t){this.exportEmitError(t)}},exportToPDF:function(){try{var t=this.prepareExportMatrix(),e=t.headerTitles.length,n=new Gr(e>6?"l":"p","pt","a4"),a=8;e>12?a=6:e>8&&(a=7);var r=e>8?4:8,i={head:[t.headerTitles],body:t.rows,styles:{fontSize:a,cellPadding:r},headStyles:{fillColor:[25,118,210]},margin:{top:20}};e>8&&(i.tableWidth="wrap",i.horizontalPageBreak=!0,i.styles=Object.assign({},i.styles,{minCellWidth:36,overflow:"linebreak"})),function(t,e){As(t,_s(t,ls(t,e)))}(n,i),n.save(this.exportFileName+".pdf")}catch(t){this.exportEmitError(t)}},exportToJSON:function(){try{var t=this,e=this.sortedItems.map((function(e,n){var a={};return t.tableHeaders.forEach((function(r){var i=r.title||r.key;if(!t.isActionColumnKey(r.key))if("__adt_index"!==r.key)if("function"!=typeof r.exportValue){for(var o=String(r.key).split("."),s=e,l=0;l<o.length;l++){if(!s||"object"!==lg(s)||!(o[l]in s)){s=null;break}s=s[o[l]]}a[i]=s}else a[i]=r.exportValue(e,n);else a[i]=n+1})),a})),n=JSON.stringify(e,null,2),a=new Blob([n],{type:"application/json"});(0,sg.saveAs)(a,this.exportFileName+".json")}catch(t){this.exportEmitError(t)}}}},ug=cg;var fg=n(5072),dg=n.n(fg),hg=n(1467),pg={insert:"head",singleton:!1};dg()(hg.A,pg);hg.A.locals;var mg=(0,n(4486).A)(ug,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-data-table"},[t.exportable?e("div",{staticClass:"clearfix admin-data-table__toolbar"},[e("div",{staticClass:"btn-group pull-right"},[t._m(0),t._v(" "),e("ul",{staticClass:"dropdown-menu dropdown-menu-right"},[e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToCSV.apply(null,arguments)}}},[t._v("Eksport CSV")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToExcel.apply(null,arguments)}}},[t._v("Eksport Excel")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToPDF.apply(null,arguments)}}},[t._v("Eksport PDF")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToJSON.apply(null,arguments)}}},[t._v("Eksport JSON")])])])])]):t._e(),t._v(" "),e("div",{staticClass:"admin-data-table__shell"},[e("div",{staticClass:"admin-data-table__scroll"},[e("table",{staticClass:"admin-data-table__table table table-hover"},[e("thead",[e("tr",t._l(t.tableHeaders,(function(n){return e("th",{key:n.key,class:{"is-sortable":n.sortable,"admin-data-table__col-index":"__adt_index"===n.key},on:{click:function(e){n.sortable&&t.toggleSort(n.key)}}},[e("div",{staticClass:"admin-data-table__th-inner"},[e("span",{staticClass:"admin-data-table__th-title"},[t._v(t._s(n.title))]),t._v(" "),n.sortable?e("span",{staticClass:"admin-data-table__sort",attrs:{"aria-hidden":"true"}},[t.sortKey===n.key?["asc"===t.sortDir?e("svg",{staticClass:"admin-data-table__sort-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M18 15l-6-6-6 6"}})]):e("svg",{staticClass:"admin-data-table__sort-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M6 9l6 6 6-6"}})])]:e("span",{staticClass:"admin-data-table__sort-hint"},[e("svg",{staticClass:"admin-data-table__sort-icon admin-data-table__sort-icon--faint",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"}},[e("path",{attrs:{d:"M18 15l-6-6-6 6"}})]),t._v(" "),e("svg",{staticClass:"admin-data-table__sort-icon admin-data-table__sort-icon--faint",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"}},[e("path",{attrs:{d:"M6 9l6 6 6-6"}})])])],2):t._e()])])})),0)]),t._v(" "),e("tbody",[t.loading?e("tr",{staticClass:"admin-data-table__state-row"},[e("td",{attrs:{colspan:t.tableHeaders.length}},[t._m(1)])]):t.displayRows.length?t._l(t.displayRows,(function(n,a){return e("tr",{key:String(n[t.itemKey])},t._l(t.tableHeaders,(function(r){return e("td",{key:r.key,class:t.cellTdClass(r)},["__adt_index"===r.key?[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.rowGlobalIndex(a))+"\n\t\t\t\t\t\t\t")]:[t._t("item-"+r.key,(function(){return[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.formatCell(n,r.key))+"\n\t\t\t\t\t\t\t\t")]}),{item:n,value:t.cellValue(n,r.key)})]],2)})),0)})):e("tr",{staticClass:"admin-data-table__state-row"},[e("td",{attrs:{colspan:t.tableHeaders.length}},[e("div",{staticClass:"admin-data-table__state"},[e("i",{staticClass:"fa fa-inbox admin-data-table__state-icon"}),t._v(" "),e("div",{staticClass:"admin-data-table__state-title"},[t._v(t._s(t.emptyText))]),t._v(" "),e("div",{staticClass:"admin-data-table__state-hint"},[t._v("Tiada rekod untuk dipaparkan")])])])])],2)])]),t._v(" "),t.showPagination&&!t.loading&&t.totalItems>0?e("div",{staticClass:"admin-data-table__footer"},[e("div",{staticClass:"admin-data-table__footer-left"},[e("label",{staticClass:"admin-data-table__footer-label"},[t._v("Baris setiap halaman")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model.number",value:t.localPerPage,expression:"localPerPage",modifiers:{number:!0}}],staticClass:"form-control input-sm admin-data-table__page-size",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(e){var n="_value"in e?e._value:e.value;return t._n(n)}));t.localPerPage=e.target.multiple?n:n[0]},t.onPerPageChange]}},t._l(t.perPageOptions,(function(n){return e("option",{key:n,domProps:{value:n}},[t._v(t._s(n))])})),0)]),t._v(" "),e("div",{staticClass:"admin-data-table__footer-mid"},[t._v("\n\t\t\t\t"+t._s(t.rangeFrom)+"–"+t._s(t.rangeTo)+" daripada "+t._s(t.totalItems)+"\n\t\t\t")]),t._v(" "),e("nav",{staticClass:"admin-data-table__footer-right",attrs:{"aria-label":"Pagination"}},[e("ul",{staticClass:"pagination pagination-sm admin-data-table__pagination"},[e("li",{class:{disabled:t.page<=1}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPage(t.page-1)}}},[t._v("Sebelum")])]),t._v(" "),e("li",{class:{disabled:t.page>=t.totalPages}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPage(t.page+1)}}},[t._v("Seterusnya")])])])])]):t._e()])])}),[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-default btn-sm dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"fa fa-download"}),this._v(" Eksport "),t("span",{staticClass:"caret"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-data-table__state"},[e("i",{staticClass:"fa fa-refresh fa-spin admin-data-table__state-icon"}),t._v(" "),e("div",{staticClass:"admin-data-table__state-title"},[t._v("Memuatkan…")])])}],!1,null,"44a9296c",null);const gg=mg.exports},3228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){return(0,this._self._c)("div",{staticClass:"modal-body"},[this._t("default")],2)}),[],!1,null,null,null).exports},3179:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){return(0,this._self._c)("div",{staticClass:"modal-footer"},[this._t("default")],2)}),[],!1,null,null,null).exports},8348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal"}},[t._v("×")]),t._v(" "),e("h4",[t._t("default")],2)])}),[],!1,null,null,null).exports},8881:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const a={props:["id","aClass"]};var r=n(5072),i=n.n(r),o=n(698),s={insert:"head",singleton:!1};i()(o.A,s);o.A.locals;const l=(0,n(4486).A)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade app-modal",attrs:{id:t.id,role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content",class:t.aClass},[t._t("default")],2)])])}),[],!1,null,null,null).exports},7725:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const a={props:{fileId:{default:"fileId"},fileName:{default:"file_name"},imageId:{default:"imageId"},imageSrc:{default:"#"}},methods:{readFile:function(t,e){var n=$("#"+t)[0],a=$("#"+e);if(n.files&&n.files[0]){var r=new FileReader;r.onload=function(t){a.attr("src",t.target.result)},r.readAsDataURL(n.files[0])}}}};var r=n(5072),i=n.n(r),o=n(4829),s={insert:"head",singleton:!1};i()(o.A,s);o.A.locals;const l=(0,n(4486).A)(a,(function(){var t=this,e=t._self._c;return e("center",[e("div",{staticClass:"imgContainer"},[e("input",{staticClass:"file",attrs:{type:"file",id:t.fileId,name:t.fileName},on:{change:function(e){return t.readFile(t.fileId,t.imageId)}}}),t._v(" "),e("img",{staticClass:"imgUpload img-rounded",attrs:{src:t.imageSrc,height:"100%",width:"100%",id:t.imageId}}),t._v(" "),e("span",{staticClass:"imgText"},[t._v("Select Image")])])])}),[],!1,null,null,null).exports},4486:(t,e,n)=>{"use strict";function a(t,e,n,a,r,i,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}n.d(e,{A:()=>a})},3686:()=>{},2284:(t,e,n)=>{"use strict";function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}n.d(e,{A:()=>a})}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.exports}o.m=r,t=[],o.O=(e,n,a,r)=>{if(!n){var i=1/0;for(u=0;u<t.length;u++){for(var[n,a,r]=t[u],s=!0,l=0;l<n.length;l++)(!1&r||i>=r)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(s=!1,r<i&&(i=r));if(s){t.splice(u--,1);var c=a();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[n,a,r]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(t,a){if(1&a&&(t=this(t)),8&a)return t;if("object"==typeof t&&t){if(4&a&&t.__esModule)return t;if(16&a&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var i={};e=e||[null,n({}),n([]),n(n)];for(var s=2&a&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(r,i),r},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](t,e),e)),[])),o.u=t=>354===t?"js/354.js":418===t?"js/418.js":332===t?"js/332.js":void 0,o.miniCssF=t=>"css/app.css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a={},o.l=(t,e,n,r)=>{if(a[t])a[t].push(e);else{var i,s;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.src=t),a[t]=[e];var f=(e,n)=>{i.onerror=i.onload=null,clearTimeout(d);var r=a[t];if(delete a[t],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((t=>t(n))),e)return e(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.p="/",(()=>{var t={847:0,252:0};o.f.j=(e,n)=>{var a=o.o(t,e)?t[e]:void 0;if(0!==a)if(a)n.push(a[2]);else if(252!=e){var r=new Promise(((n,r)=>a=t[e]=[n,r]));n.push(a[2]=r);var i=o.p+o.u(e),s=new Error;o.l(i,(n=>{if(o.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,a[1](s)}}),"chunk-"+e,e)}else t[e]=0},o.O.j=e=>0===t[e];var e=(e,n)=>{var a,r,[i,s,l]=n,c=0;if(i.some((e=>0!==t[e]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(l)var u=l(o)}for(e&&e(n);c<i.length;c++)r=i[c],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return o.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),o.nc=void 0,o.O(void 0,[252],(()=>o(6598)));var s=o.O(void 0,[252],(()=>o(5908)));s=o.O(s)})(); |