UNPKG

pdftest

Version:

Client-side visual testing library for PDFs

2 lines 1.22 MB
/*! For license information please see pdftest.client.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdftest",[],t):"object"==typeof exports?exports.pdftest=t():e.pdftest=t()}(self,(function(){return function(){var e={5938:function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(9601),r(6992),r(9575),r(1539),r(9135),r(2990),r(8927),r(3105),r(5035),r(4345),r(7174),r(2846),r(4731),r(7209),r(6319),r(8867),r(7789),r(3739),r(9368),r(4483),r(2056),r(3462),r(678),r(7462),r(3824),r(5021),r(2974),r(5016),r(2222),r(6938),r(8264),r(2526),r(1817),r(2165),r(8783),r(3948),r(1038),r(7042),r(8309),e.exports=function(e,t,r,a,c,u){if(!o(e)||!o(t)||r&&!o(r))throw new Error("Image data: Uint8Array, Uint8ClampedArray or Buffer expected.");if(e.length!==t.length||r&&r.length!==e.length)throw new Error("Image sizes do not match.");if(e.length!==a*c*4)throw new Error("Image data size does not match width/height.");u=Object.assign({},i,u);for(var h=a*c,f=new Uint32Array(e.buffer,e.byteOffset,h),d=new Uint32Array(t.buffer,t.byteOffset,h),m=!0,v=0;v<h;v++)if(f[v]!==d[v]){m=!1;break}if(m){if(r&&!u.diffMask)for(var y=0;y<h;y++)g(e,4*y,u.alpha,r);return 0}for(var b=35215*u.threshold*u.threshold,w=0,k=0;k<c;k++)for(var S=0;S<a;S++){var A=4*(k*a+S),x=l(e,t,A,A);Math.abs(x)>b?u.includeAA||!s(e,S,k,a,c,t)&&!s(t,S,k,a,c,e)?(r&&p.apply(void 0,[r,A].concat(n(x<0&&u.diffColorAlt||u.diffColor))),w++):r&&!u.diffMask&&p.apply(void 0,[r,A].concat(n(u.aaColor))):r&&(u.diffMask||g(e,A,u.alpha,r))}return w};var i={threshold:.1,includeAA:!1,alpha:.1,aaColor:[255,255,0],diffColor:[255,0,0],diffColorAlt:null,diffMask:!1};function o(e){return ArrayBuffer.isView(e)&&1===e.constructor.BYTES_PER_ELEMENT}function s(e,t,r,n,a,i){for(var o,s,u,h,f=Math.max(t-1,0),d=Math.max(r-1,0),p=Math.min(t+1,n-1),g=Math.min(r+1,a-1),m=4*(r*n+t),v=t===f||t===p||r===d||r===g?1:0,y=0,b=0,w=f;w<=p;w++)for(var k=d;k<=g;k++)if(w!==t||k!==r){var S=l(e,e,m,4*(k*n+w),!0);if(0===S){if(++v>2)return!1}else S<y?(y=S,o=w,s=k):S>b&&(b=S,u=w,h=k)}return 0!==y&&0!==b&&(c(e,o,s,n,a)&&c(i,o,s,n,a)||c(e,u,h,n,a)&&c(i,u,h,n,a))}function c(e,t,r,n,a){for(var i=Math.max(t-1,0),o=Math.max(r-1,0),s=Math.min(t+1,n-1),c=Math.min(r+1,a-1),l=4*(r*n+t),u=t===i||t===s||r===o||r===c?1:0,h=i;h<=s;h++)for(var f=o;f<=c;f++)if(h!==t||f!==r){var d=4*(f*n+h);if(e[l]===e[d]&&e[l+1]===e[d+1]&&e[l+2]===e[d+2]&&e[l+3]===e[d+3]&&u++,u>2)return!0}return!1}function l(e,t,r,n,a){var i=e[r+0],o=e[r+1],s=e[r+2],c=e[r+3],l=t[n+0],p=t[n+1],g=t[n+2],m=t[n+3];if(c===m&&i===l&&o===p&&s===g)return 0;c<255&&(i=d(i,c/=255),o=d(o,c),s=d(s,c)),m<255&&(l=d(l,m/=255),p=d(p,m),g=d(g,m));var v=u(i,o,s),y=u(l,p,g),b=v-y;if(a)return b;var w=h(i,o,s)-h(l,p,g),k=f(i,o,s)-f(l,p,g),S=.5053*b*b+.299*w*w+.1957*k*k;return v>y?-S:S}function u(e,t,r){return.29889531*e+.58662247*t+.11448223*r}function h(e,t,r){return.59597799*e-.2741761*t-.32180189*r}function f(e,t,r){return.21147017*e-.52261711*t+.31114694*r}function d(e,t){return 255+(e-255)*t}function p(e,t,r,n,a){e[t+0]=r,e[t+1]=n,e[t+2]=a,e[t+3]=255}function g(e,t,r,n){var a=d(u(e[t+0],e[t+1],e[t+2]),r*e[t+3]/255);p(n,t,a,a,a)}},352:function(e,t,r){"use strict";r.r(t),r.d(t,{api:function(){return n},compare:function(){return $},compareToSnapshot:function(){return te},showDiff:function(){return U}});var n={};r.r(n),r.d(n,{connect:function(){return f},get:function(){return b},getConnection:function(){return p},getSnapshot:function(){return k},put:function(){return A}}),r(5666),r(1539),r(8674),r(2222),r(1249),r(4916),r(4723),r(6992),r(8783),r(3948),r(2526),r(1817),r(2165),r(7042),r(8309),r(1038),r(7941),r(7327),r(5003),r(4747),r(9337);var a=r(5938),i=(r(9601),r(9299)),o=r(9016),s=r(4098),c=r.n(s);function l(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){l(i,n,a,o,s,"next",e)}function s(e){l(i,n,a,o,s,"throw",e)}o(void 0)}))}}var h={connection:null};function f(e){return d.apply(this,arguments)}function d(){return(d=u(regeneratorRuntime.mark((function e(t){var r,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},h.connection=t,e.next=4,g();case 4:r.verbose&&console.log("pdftest: Successfully connected to ".concat(p(),"."));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){return h.connection}function g(){try{return b("","text")}catch(e){throw new Error("Failed to connect to ".concat(p(),": ").concat(e.message))}}function m(){if(!p())throw new Error("Not connected to a server. Use api.connect(url) first.")}function v(e,t){return y.apply(this,arguments)}function y(){return(y=u(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error("Server returned a status of ".concat(t.status,"."));case 2:return e.next=4,t[r]();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return(w=u(regeneratorRuntime.mark((function e(t){var r,n,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"arrayBuffer",m(),e.next=4,c()("".concat(p(),"/").concat(t));case 4:return n=e.sent,e.next=7,v(n,r);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,t){return S.apply(this,arguments)}function S(){return(S=u(regeneratorRuntime.mark((function e(t,r){var n,a,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:"arrayBuffer",m(),e.next=4,c()("".concat(p(),"/").concat(t),{method:"POST",body:r,headers:{"Content-Type":"application/octet-stream"}});case 4:return a=e.sent,e.next=7,v(a,n);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e,t){return x.apply(this,arguments)}function x(){return(x=u(regeneratorRuntime.mark((function e(t,r){var n,a,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:"arrayBuffer",m(),e.next=4,c()("".concat(p(),"/").concat(t),{method:"PUT",body:r,headers:{"Content-Type":"application/octet-stream"}});case 4:return a=e.sent,e.next=7,v(a,n);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){C(i,n,a,o,s,"next",e)}function s(e){C(i,n,a,o,s,"throw",e)}o(void 0)}))}}function P(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){return t(n.result)},n.onerror=r,n.readAsArrayBuffer(e)}))}function T(e){return E.apply(this,arguments)}function E(){return(E=_(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("undefined"!=typeof File&&t instanceof File)){e.next=6;break}return e.next=3,P(t);case 3:t=e.sent,e.next=10;break;case 6:if("string"!=typeof t){e.next=10;break}return e.next=9,b(t);case 9:t=e.sent;case 10:return e.next=12,i.getDocument(t).promise;case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return Promise.all([e,t].map(T))}function R(e,t,r){return I.apply(this,arguments)}function I(){return(I=_(regeneratorRuntime.mark((function e(t,r,n){var a,i,o,s,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0>r||r>=t.numPages)){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,t.getPage(r+1);case 4:return a=e.sent,i=n?n/Math.floor(a.view[2]):1,o=a.getViewport({scale:i}),(s=document.createElement("canvas")).width=o.width,s.height=o.height,c=s.getContext("2d"),e.next=13,a.render({canvasContext:c,viewport:o,intent:"print"}).promise;case 13:return l=c.getImageData(0,0,s.width,s.height),e.abrupt("return",Object.assign(l,{scale:i}));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t){return L.apply(this,arguments)}function L(){return(L=_(regeneratorRuntime.mark((function e(t,r){var n,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(t[0],r);case 2:return n=e.sent,e.next=5,R(t[1],r,n&&n.width);case 5:return a=e.sent,n&&a?n.width===a.width&&n.height===a.height||(i="mismatched_size"):i="missing_page",e.abrupt("return",[n,a,i]);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function B(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){j(i,n,a,o,s,"next",e)}function s(e){j(i,n,a,o,s,"throw",e)}o(void 0)}))}}function U(e,t){return q.apply(this,arguments)}function q(){return(q=B(regeneratorRuntime.mark((function e(t,r){var n,a,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.open("","_blank","width=400,height=700"),(a=n.document).body.innerHTML='\n <h3>Visual change detected</h3>\n <p>How would you like to treat the new PDF?</p>\n <div>\n <img id="diffImg" style="width: 100%; border: 1px solid black;">\n </div>\n <div>\n <button id="ignore">Ignore (Skip)</button>\n <button id="reject">Reject (Fail test)</button>\n <button id="accept">Accept (Overwrite)</button>\n </div>\n ',i=document.createElement("canvas"),o=t.pageResults[0].diffImg,i.width=o.width,i.height=o.height,i.getContext("2d").putImageData(o,0,0),a.body.querySelector("#diffImg").src=i.toDataURL("image/png"),e.abrupt("return",new Promise((function(e,i){var o=function(r){e(D(D({},t),{},{match:r})),n.close()};n.addEventListener("unload",(function(){return o(!1)})),a.querySelector("#ignore").addEventListener("click",(function(){return o(!0)})),a.querySelector("#reject").addEventListener("click",(function(){return o(!1)})),a.querySelector("#accept").addEventListener("click",B(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A(r,t.source[0]);case 2:o(!0);case 3:case"end":return e.stop()}}),e)}))))})));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){H(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||Y(e,t)||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 Y(e,t){if(e){if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function J(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){K(i,n,a,o,s,"next",e)}function s(e){K(i,n,a,o,s,"throw",e)}o(void 0)}))}}function Z(e,t,r){return Q.apply(this,arguments)}function Q(){return(Q=J(regeneratorRuntime.mark((function e(t,r,n){var i,o,s,c,l,u,h,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=!1,o=null,s=null,e.next=5,F(t,r);case 5:return c=e.sent,l=X(c,3),u=l[0],h=l[1],(f=l[2])?n.verbose&&console.log("pdftest: Page ".concat(r+1," comparison failed with error '").concat(f,"'")):(d=document.createElement("canvas"),s=d.getContext("2d").createImageData(u.width,u.height),o=a(u.data,h.data,s.data,s.width,s.height,n.customDiffConfig),"percent"===n.failureThresholdType?(p=u.width*u.height,i=o/p<=n.failureThreshold):i=o<=n.failureThreshold),e.abrupt("return",{match:i,pageImg:[u,h],diffImg:s,numDiffPixels:o,error:f});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e,t,r){return ee.apply(this,arguments)}function ee(){return(ee=J(regeneratorRuntime.mark((function e(t,r,n){var a,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=W({failureThreshold:0,failureThresholdType:"pixel",customDiffConfig:{threshold:.1}},n),e.next=3,O(t,r);case 3:return a=e.sent,i={match:!0,nPages:Math.max(a[0].numPages,a[1].numPages),pageResults:[],source:[t,r]},o=z(Array(i.nPages)).map(function(){var e=J(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z(a,r,n);case 2:i.pageResults[r]=e.sent,i.match=i.match&&i.pageResults[r].match;case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),e.next=8,Promise.all(o);case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(e,t,r){return re.apply(this,arguments)}function re(){return(re=J(regeneratorRuntime.mark((function e(t,r,n){var a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(r,t);case 2:return a=e.sent,e.next=5,$(t,a,n);case 5:if((i=e.sent).match||!n.interactive){e.next=13;break}return e.next=10,U(i,r);case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=i;case 14:return e.abrupt("return",e.t0);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}i.GlobalWorkerOptions.workerSrc=o},3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,r){var n=r(111);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,r){var n=r(5112),a=r(30),i=r(3070),o=n("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},1530:function(e,t,r){"use strict";var n=r(8710).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},5787:function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},9670:function(e,t,r){var n=r(111);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},4019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,r){"use strict";var n,a=r(4019),i=r(9781),o=r(7854),s=r(111),c=r(6656),l=r(648),u=r(8880),h=r(1320),f=r(3070).f,d=r(9518),p=r(7674),g=r(5112),m=r(9711),v=o.Int8Array,y=v&&v.prototype,b=o.Uint8ClampedArray,w=b&&b.prototype,k=v&&d(v),S=y&&d(y),A=Object.prototype,x=A.isPrototypeOf,C=g("toStringTag"),_=m("TYPED_ARRAY_TAG"),P=a&&!!p&&"Opera"!==l(o.opera),T=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O={BigInt64Array:8,BigUint64Array:8},R=function(e){if(!s(e))return!1;var t=l(e);return c(E,t)||c(O,t)};for(n in E)o[n]||(P=!1);if((!P||"function"!=typeof k||k===Function.prototype)&&(k=function(){throw TypeError("Incorrect invocation")},P))for(n in E)o[n]&&p(o[n],k);if((!P||!S||S===A)&&(S=k.prototype,P))for(n in E)o[n]&&p(o[n].prototype,S);if(P&&d(w)!==S&&p(w,S),i&&!c(S,C))for(n in T=!0,f(S,C,{get:function(){return s(this)?this[_]:void 0}}),E)o[n]&&u(o[n],_,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:T&&_,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(x.call(k,e))return e}else for(var t in E)if(c(E,n)){var r=o[t];if(r&&(e===r||x.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){if(i){if(r)for(var n in E){var a=o[n];a&&c(a.prototype,e)&&delete a.prototype[e]}S[e]&&!r||h(S,e,r?t:P&&y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(i){if(p){if(r)for(n in E)(a=o[n])&&c(a,e)&&delete a[e];if(k[e]&&!r)return;try{return h(k,e,r?t:P&&v[e]||t)}catch(e){}}for(n in E)!(a=o[n])||a[e]&&!r||h(a,e,t)}},isView:function(e){if(!s(e))return!1;var t=l(e);return"DataView"===t||c(E,t)||c(O,t)},isTypedArray:R,TypedArray:k,TypedArrayPrototype:S}},3331:function(e,t,r){"use strict";var n=r(7854),a=r(9781),i=r(4019),o=r(8880),s=r(2248),c=r(7293),l=r(5787),u=r(9958),h=r(7466),f=r(7067),d=r(1179),p=r(9518),g=r(7674),m=r(8006).f,v=r(3070).f,y=r(1285),b=r(8003),w=r(9909),k=w.get,S=w.set,A="ArrayBuffer",x="DataView",C="Wrong index",_=n.ArrayBuffer,P=_,T=n.DataView,E=T&&T.prototype,O=Object.prototype,R=n.RangeError,I=d.pack,F=d.unpack,L=function(e){return[255&e]},M=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},N=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},j=function(e){return I(e,23,4)},B=function(e){return I(e,52,8)},U=function(e,t){v(e.prototype,t,{get:function(){return k(this)[t]}})},q=function(e,t,r,n){var a=f(r),i=k(e);if(a+t>i.byteLength)throw R(C);var o=k(i.buffer).bytes,s=a+i.byteOffset,c=o.slice(s,s+t);return n?c:c.reverse()},z=function(e,t,r,n,a,i){var o=f(r),s=k(e);if(o+t>s.byteLength)throw R(C);for(var c=k(s.buffer).bytes,l=o+s.byteOffset,u=n(+a),h=0;h<t;h++)c[l+h]=u[i?h:t-h-1]};if(i){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),_.name!=A}))){for(var G,W=(P=function(e){return l(this,P),new _(f(e))}).prototype=_.prototype,H=m(_),X=0;H.length>X;)(G=H[X++])in P||o(P,G,_[G]);W.constructor=P}g&&p(E)!==O&&g(E,O);var Y=new T(new P(2)),V=E.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||s(E,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else P=function(e){l(this,P,A);var t=f(e);S(this,{bytes:y.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},T=function(e,t,r){l(this,T,x),l(e,P,x);var n=k(e).byteLength,i=u(t);if(i<0||i>n)throw R("Wrong offset");if(i+(r=void 0===r?n-i:h(r))>n)throw R("Wrong length");S(this,{buffer:e,byteLength:r,byteOffset:i}),a||(this.buffer=e,this.byteLength=r,this.byteOffset=i)},a&&(U(P,"byteLength"),U(T,"buffer"),U(T,"byteLength"),U(T,"byteOffset")),s(T.prototype,{getInt8:function(e){return q(this,1,e)[0]<<24>>24},getUint8:function(e){return q(this,1,e)[0]},getInt16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return N(q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return N(q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){z(this,1,e,L,t)},setUint8:function(e,t){z(this,1,e,L,t)},setInt16:function(e,t){z(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){z(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){z(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){z(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){z(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){z(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});b(P,A),b(T,x),e.exports={ArrayBuffer:P,DataView:T}},1048:function(e,t,r){"use strict";var n=r(7908),a=r(1400),i=r(7466),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=i(r.length),c=a(e,s),l=a(t,s),u=arguments.length>2?arguments[2]:void 0,h=o((void 0===u?s:a(u,s))-l,s-c),f=1;for(l<c&&c<l+h&&(f=-1,l+=h-1,c+=h-1);h-- >0;)l in r?r[c]=r[l]:delete r[c],c+=f,l+=f;return r}},1285:function(e,t,r){"use strict";var n=r(7908),a=r(1400),i=r(7466);e.exports=function(e){for(var t=n(this),r=i(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),c=o>2?arguments[2]:void 0,l=void 0===c?r:a(c,r);l>s;)t[s++]=e;return t}},8533:function(e,t,r){"use strict";var n=r(2092).forEach,a=r(9341)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,r){"use strict";var n=r(9974),a=r(7908),i=r(3411),o=r(7659),s=r(7466),c=r(6135),l=r(1246);e.exports=function(e){var t,r,u,h,f,d,p=a(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=l(p),w=0;if(y&&(v=n(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&o(b))for(r=new g(t=s(p.length));t>w;w++)d=y?v(p[w],w):p[w],c(r,w,d);else for(f=(h=b.call(p)).next,r=new g;!(u=f.call(h)).done;w++)d=y?i(h,v,[u.value,w],!0):u.value,c(r,w,d);return r.length=w,r}},1318:function(e,t,r){var n=r(5656),a=r(7466),i=r(1400),o=function(e){return function(t,r,o){var s,c=n(t),l=a(c.length),u=i(o,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},2092:function(e,t,r){var n=r(9974),a=r(8361),i=r(7908),o=r(7466),s=r(5417),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,g,m,v){for(var y,b,w=i(p),k=a(w),S=n(g,m,3),A=o(k.length),x=0,C=v||s,_=t?C(p,A):r||f?C(p,0):void 0;A>x;x++)if((d||x in k)&&(b=S(y=k[x],x,w),e))if(t)_[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c.call(_,y)}else switch(e){case 4:return!1;case 7:c.call(_,y)}return h?-1:l||u?u:_}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}},6583:function(e,t,r){"use strict";var n=r(5656),a=r(9958),i=r(7466),o=r(9341),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o("lastIndexOf"),h=l||!u;e.exports=h?function(e){if(l)return c.apply(this,arguments)||0;var t=n(this),r=i(t.length),o=r-1;for(arguments.length>1&&(o=s(o,a(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},1194:function(e,t,r){var n=r(7293),a=r(5112),i=r(7392),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,r){"use strict";var n=r(7293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,r){var n=r(3099),a=r(7908),i=r(8361),o=r(7466),s=function(e){return function(t,r,s,c){n(r);var l=a(t),u=i(l),h=o(l.length),f=e?h-1:0,d=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in u&&(c=r(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}},5417:function(e,t,r){var n=r(111),a=r(3157),i=r(5112)("species");e.exports=function(e,t){var r;return a(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!a(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},3411:function(e,t,r){var n=r(9670),a=r(9212);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){throw a(e),t}}},7072:function(e,t,r){var n=r(5112)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,r){var n=r(1694),a=r(4326),i=r(5112)("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},9920:function(e,t,r){var n=r(6656),a=r(3887),i=r(1236),o=r(3070);e.exports=function(e,t){for(var r=a(t),s=o.f,c=i.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},8544:function(e,t,r){var n=r(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,r){"use strict";var n=r(3383).IteratorPrototype,a=r(30),i=r(9114),o=r(8003),s=r(7497),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,l,!1,!0),s[l]=c,e}},8880:function(e,t,r){var n=r(9781),a=r(3070),i=r(9114);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,r){"use strict";var n=r(7593),a=r(3070),i=r(9114);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},654:function(e,t,r){"use strict";var n=r(2109),a=r(4994),i=r(9518),o=r(7674),s=r(8003),c=r(8880),l=r(1320),u=r(5112),h=r(1913),f=r(7497),d=r(3383),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,r,u,d,k,S){a(r,t,u);var A,x,C,_=function(e){if(e===d&&R)return R;if(!g&&e in E)return E[e];switch(e){case v:case y:case b:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",T=!1,E=e.prototype,O=E[m]||E["@@iterator"]||d&&E[d],R=!g&&O||_(d),I="Array"==t&&E.entries||O;if(I&&(A=i(I.call(new e)),p!==Object.prototype&&A.next&&(h||i(A)===p||(o?o(A,p):"function"!=typeof A[m]&&c(A,m,w)),s(A,P,!0,!0),h&&(f[P]=w))),d==y&&O&&O.name!==y&&(T=!0,R=function(){return O.call(this)}),h&&!S||E[m]===R||c(E,m,R),f[t]=R,d)if(x={values:_(y),keys:k?R:_(v),entries:_(b)},S)for(C in x)(g||T||!(C in E))&&l(E,C,x[C]);else n({target:t,proto:!0,forced:g||T},x);return x}},7235:function(e,t,r){var n=r(857),a=r(6656),i=r(6061),o=r(3070).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},9781:function(e,t,r){var n=r(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,r){var n=r(7854),a=r(111),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6833:function(e,t,r){var n=r(8113);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},5268:function(e,t,r){var n=r(4326),a=r(7854);e.exports="process"==n(a.process)},1036:function(e,t,r){var n=r(8113);e.exports=/web0s(?!.*chrome)/i.test(n)},8113:function(e,t,r){var n=r(5005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,r){var n,a,i=r(7854),o=r(8113),s=i.process,c=s&&s.versions,l=c&&c.v8;l?a=(n=l.split("."))[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=n[1]),e.exports=a&&+a},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){var n=r(7854),a=r(1236).f,i=r(8880),o=r(1320),s=r(3505),c=r(9920),l=r(4705);e.exports=function(e,t){var r,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(f=t[u],h=e.noTargetGet?(d=a(r,u))&&d.value:r[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(r,u,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,r){"use strict";r(4916);var n=r(1320),a=r(7293),i=r(5112),o=r(8880),s=i("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),u=i("replace"),h=!!/./[u]&&""===/./[u]("a","$0"),f=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,u){var d=i(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),g=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!g||"replace"===e&&(!c||!l||h)||"split"===e&&!f){var m=/./[d],v=r(d,""[e],(function(e,t,r,n,a){return t.exec===RegExp.prototype.exec?p&&!a?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=v[0],b=v[1];n(String.prototype,e,y),n(RegExp.prototype,d,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}u&&o(RegExp.prototype[d],"sham",!0)}},9974:function(e,t,r){var n=r(3099);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,r){var n=r(857),a=r(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},1246:function(e,t,r){var n=r(648),a=r(7497),i=r(5112)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[n(e)]}},7854:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6656:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},3501:function(e){e.exports={}},842:function(e,t,r){var n=r(7854);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},490:function(e,t,r){var n=r(5005);e.exports=n("document","documentElement")},4664:function(e,t,r){var n=r(9781),a=r(7293),i=r(317);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1179:function(e){var t=Math.abs,r=Math.pow,n=Math.floor,a=Math.log,i=Math.LN2;e.exports={pack:function(e,o,s){var c,l,u,h=new Array(s),f=8*s-o-1,d=(1<<f)-1,p=d>>1,g=23===o?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(l=e!=e?1:0,c=d):(c=n(a(e)/i),e*(u=r(2,-c))<1&&(c--,u*=2),(e+=c+p>=1?g/u:g*r(2,1-p))*u>=2&&(c++,u/=2),c+p>=d?(l=0,c=d):c+p>=1?(l=(e*u-1)*r(2,o),c+=p):(l=e*r(2,p-1)*r(2,o),c=0));o>=8;h[v++]=255&l,l/=256,o-=8);for(c=c<<o|l,f+=o;f>0;h[v++]=255&c,c/=256,f-=8);return h[--v]|=128*m,h},unpack:function(e,t){var n,a=e.length,i=8*a-t-1,o=(1<<i)-1,s=o>>1,c=i-7,l=a-1,u=e[l--],h=127&u;for(u>>=7;c>0;h=256*h+e[l],l--,c-=8);for(n=h&(1<<-c)-1,h>>=-c,c+=t;c>0;n=256*n+e[l],l--,c-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:u?-1/0:1/0;n+=r(2,t),h-=s}return(u?-1:1)*n*r(2,h-t)}}},8361:function(e,t,r){var n=r(7293),a=r(4326),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},9587:function(e,t,r){var n=r(111),a=r(7674);e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},2788:function(e,t,r){var n=r(5465),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},9909:function(e,t,r){var n,a,i,o=r(8536),s=r(7854),c=r(111),l=r(8880),u=r(6656),h=r(5465),f=r(6200),d=r(3501),p=s.WeakMap;if(o){var g=h.state||(h.state=new p),m=g.get,v=g.has,y=g.set;n=function(e,t){return t.facade=e,y.call(g,e,t),t},a=function(e){return m.call(g,e)||{}},i=function(e){return v.call(g,e)}}else{var b=f("state");d[b]=!0,n=function(e,t){return t.facade=e,l(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},7659:function(e,t,r){var n=r(5112),a=r(7497),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},3157:function(e,t,r){var n=r(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},4705:function(e,t,r){var n=r(7293),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==l||r!=c&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},408:function(e,t,r){var n=r(9670),a=r(7659),i=r(7466),o=r(9974),s=r(1246),c=r(9212),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var u,h,f,d,p,g,m,v=r&&r.that,y=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),k=o(t,v,1+y+w),S=function(e){return u&&c(u),new l(!0,e)},A=function(e){return y?(n(e),w?k(e[0],e[1],S):k(e[0],e[1])):w?k(e,S):k(e)};if(b)u=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(a(h)){for(f=0,d=i(e.length);d>f;f++)if((p=A(e[f]))&&p instanceof l)return p;return new l(!1)}u=h.call(e)}for(g=u.next;!(m=g.call(u)).done;){try{p=A(m.value)}catch(e){throw c(u),e}if("object"==typeof p&&p&&p instanceof l)return p}return new l(!1)}},9212:function(e,t,r){var n=r(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},3383:function(e,t,r){"use strict";var n,a,i,o=r(7293),s=r(9518),c=r(8880),l=r(6656),u=r(5112),h=r(1913),f=u("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(a=s(s(i)))!==Object.prototype&&(n=a):d=!0);var p=null==n||o((function(){var e={};return n[f].call(e)!==e}));p&&(n={}),h&&!p||l(n,f)||c(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7497:function(e){e.exports={}},5948:function(e,t,r){var n,a,i,o,s,c,l,u,h=r(7854),f=r(1236).f,d=r(261).set,p=r(6833),g=r(1036),m=r(5268),v=h.MutationObserver||h.WebKitMutationObserver,y=h.document,b=h.process,w=h.Promise,k=f(h,"queueMicrotask"),S=k&&k.value;S||(n=function(){var e,t;for(m&&(e=b.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},p||m||g||!v||!y?w&&w.resolve?(l=w.resolve(void 0),u=l.then,o=function(){u.call(l,n)}):o=m?function(){b.nextTick(n)}:function(){d.call(h,n)}:(s=!0,c=y.createTextNode(""),new v(n).observe(c,{characterData:!0}),o=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},3366:function(e,t,r){var n=r(7854);e.exports=n.Promise},133:function(e,t,r){var n=r(5268),a=r(7392),i=r(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(n?38===a:a>37&&a<41)}))},8536:function(e,t,r){var n=r(7854),a=r(2788),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},8523:function(e,t,r){"use strict";var n=r(3099),a=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new a(e)}},1574:function(e,t,r){"use strict";var n=r(9781),a=r(7293),i=r(1956),o=r(5181),s=r(5296),c=r(7908),l=r(8361),u=Object.assign,h=Object.defineProperty;e.exports=!u||a((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||i(u({},t)).join("")!=a}))?function(e,t){for(var r=c(e),a=arguments.length,u=1,h=o.f,f=s.f;a>u;)for(var d,p=l(arguments[u++]),g=h?i(p).concat(h(p)):i(p),m=g.length,v=0;m>v;)d=g[v++],n&&!f.call(p,d)||(r[d]=p[d]);return r}:u},30:function(e,t,r){var n,a=r(9670),i=r(6048),o=r(748),s=r(3501),c=r(490),l=r(317),u=r(6200)("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=n?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var r=o.length;r--;)delete d.prototype[o[r]];return d()};s[u]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=a(e),r=new h,h.prototype=null,r[u]=e):r=d(),void 0===t?r:i(r,t)}},6048:function(e,t,r){var n=r(9781),a=r(3070),i=r(9670),o=r(1956);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=o(t),s=n.length,c=0;s>c;)a.f(e,r=n[c++],t[r]);return e}},3070:function(e,t,r){var n=r(9781),a=r(4664),i=r(9670),o=r(7593),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),a)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){var n=r(9781),a=r(5296),i=r(9114),o=r(5656),s=r(7593),c=r(6656),l=r(4664),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!a.f.call(e,t),e[t])}},1156:function(e,t,r){var n=r(5656),a=r(8006).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return a(e)}catch(e){return o.slice()}}(e):a(n(e))}},8006:function(e,t,r){var n=r(6324),a=r(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,r){var n=r(6656),a=r(7908),i=r(6200),o=r(8544),s=i("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},6324:function(e,t,r){var n=r(6656),a=r(5656),i=r(1318).indexOf,o=r(3501);e.exports=function(e,t){var r,s=a(e),c=0,l=[];for(r in s)!n(o,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},1956:function(e,t,r){var n=r(6324),a=r(748);e.exports=Object.keys||function(e){return n(e,a)}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7674:function(e,t,r){var n=r(9670),a=r(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},288:function(e,t,r){"use strict";var n=r(1694),a=r(648);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},3887:function(e,t,r){var n=r(5005),a=r(8006),i=r(5181),o=r(9670);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},857:function(e,t,r){var n=r(7854);e.exports=n},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:function(e,t,r){var n=r(9670),a=r(111),i=r(8523);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},2248:function(e,t,r){var n=r(1320);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},1320:function(e,t,r){var n=r(7854),a=r(8880),i=r(6656),o=r(3505),s=r(2788),c=r(9909),l=c.get,u=c.enforce,h=String(String).split("String");(e.exports=function(e,t,r,s){var c,l=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),(c=u(r)).source||(c.source=h.join("string"==typeof t?t:""))),e!==n?(l?!d&&e[t]&&(f=!0):delete e[t],f?e[t]=r:a(e,t,r)):f?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},7651:function(e,t,r){var n=r(4326),a=r(2261);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var i=r.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},2261:function(e,t,r){"use strict";var n,a,i=r(7066),o=r(2999),s=r(2309),c=RegExp.prototype.exec,l=s("native-string-replace",String.prototype.replace),u=c,h=(n=/a/,a=/b*/g,c.call(n,"a"),c.call(a,"a"),0!==n.lastIndex||0!==a.lastIndex),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(h||d||f)&&(u=function(e){var t,r,n,a,o=this,s=f&&o.sticky,u=i.call(o),p=o.source,g=0,m=e;return s&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),m=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),r=new RegExp("^(?:"+p+")",u)),d&&(r=new RegExp("^"+p+"$(?!\\s)",u)),h&&(t=o.lastIndex),n=c.call(s?r:o,m),s?n?(n.input=n.input.slice(g),n[0]=n[0].slice(g),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:h&&n&&(o.lastIndex=o.global?n.index+n[0].length:t),d&&n&&n.length>1&&l.call(n[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n}),e.exports=u},7066:function(e,t,r){"use strict";var n=r(9670);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,r){"use strict";var n=r(7293);function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:function(e,t,r){var n=r(7854),a=r(8880);e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},6340:function(e,t,r){"use strict";var n=r(5005),a=r(3070),i=r(5112),o=r(9781),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,r){var n=r(3070).f,a=r(6656),i=r(5112)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},6200:function(e,t,r){var n=r(2309),a=r(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},5465:function(e,t,r){var n=r(7854),a=r(3505),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},2309:function(e,t,r){var n=r(1913),a=r(5465);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.10.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,r){var n=r(9670),a=r(3099),i=r(5112)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||null==(r=n(o)[i])?t:a(r)}},8710:function(e,t,r){var n=r(9958),a=r(4488),i=function(e){return function(t,r){var i,o,s=String(a(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):i:e?s.slice(c,c+2):o-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},261:function(e,t,r){var n,a,i,o=r(7854),s=r(7293),c=r(9974),l=r(490),u=r(317),h=r(6833),f=r(5268),d=o.location,p=o.setImmediate,g=o.clearImmediate,m=o.process,v=o.MessageChannel,y=o.Dispatch,b=0,w={},k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},S=function(e){return function(){k(e)}},A=function(e){k(e.data)},x=function(e){o.postMessage(e+"",d.protocol+"//"+d.host)};p&&g||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},g=function(e){delete w[e]},f?n=function(e){m.nextTick(S(e))}:y&&y.now?n=function(e){y.now(S(e))}:v&&!h?(i=(a=new v).port2,a.port1.onmessage=A,n=c(i.postMessage,i,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&d&&"file:"!==d.protocol&&!s(x)?(n=x,o.addEventListener("message",A,!1)):n="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),k(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:p,clear:g}},1400:function(e,t,r){var n=r(9958),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},7067:function(e,t,r){var n=r(9958),a=r(7466);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=a(t);if(t!==r)throw RangeError("Wrong length or index");return r}},5656:function(e,t,r){var n=r(8361),a=r(4488);e.exports=function(e){return n(a(e))}},9958:function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},7466:function(e,t,r){var n=r(9958),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},7908:function(e,t,r){var n=r(4488);e.exports=function(e){return Object(n(e))}},4590:function(e,t,r){var n=r(3002);e.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},3002:function(e,t,r){var n=r(9958);e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},7593:function(e,t,r){var n=r(111);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},1694:function(e,t,r){var n={};n[r(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},9843:function(e,t,r){"use strict";var n=r(2109),a=r(7854),i=r(9781),o=r(3832),s=r(260),c=r(3331),l=r(5787),u=r(9114),h=r(8880),f=r(7466),d=r(7067),p=r(4590),g=r(7593),m=r(6656),v=r(648),y=r(111),b=r(30),w=r(7674),k=r(8006).f,S=r