UNPKG

pdftest

Version:

Client-side visual testing library for PDFs

2 lines 33.9 kB
!function(){var t={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},1530:function(t,n,r){"use strict";var e=r(8710).charAt;t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},5787:function(t){t.exports=function(t,n,r){if(!(t instanceof n))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},9670:function(t,n,r){var e=r(111);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},1318:function(t,n,r){var e=r(5656),o=r(7466),i=r(1400),c=function(t){return function(n,r,c){var u,a=e(n),f=o(a.length),s=i(c,f);if(t&&r!=r){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},1194:function(t,n,r){var e=r(7293),o=r(5112),i=r(7392),c=o("species");t.exports=function(t){return i>=51||!e((function(){var n=[];return(n.constructor={})[c]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},5417:function(t,n,r){var e=r(111),o=r(3157),i=r(5112)("species");t.exports=function(t,n){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?e(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===n?0:n)}},7072:function(t,n,r){var e=r(5112)("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[e]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i={};i[e]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},4326:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},648:function(t,n,r){var e=r(1694),o=r(4326),i=r(5112)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=e?o:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:c?o(n):"Object"==(e=o(n))&&"function"==typeof n.callee?"Arguments":e}},9920:function(t,n,r){var e=r(6656),o=r(3887),i=r(1236),c=r(3070);t.exports=function(t,n){for(var r=o(n),u=c.f,a=i.f,f=0;f<r.length;f++){var s=r[f];e(t,s)||u(t,s,a(n,s))}}},8880:function(t,n,r){var e=r(9781),o=r(3070),i=r(9114);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},9114:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},6135:function(t,n,r){"use strict";var e=r(7593),o=r(3070),i=r(9114);t.exports=function(t,n,r){var c=e(n);c in t?o.f(t,c,i(0,r)):t[c]=r}},9781:function(t,n,r){var e=r(7293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,n,r){var e=r(7854),o=r(111),i=e.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},6833:function(t,n,r){var e=r(8113);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(e)},5268:function(t,n,r){var e=r(4326),o=r(7854);t.exports="process"==e(o.process)},1036:function(t,n,r){var e=r(8113);t.exports=/web0s(?!.*chrome)/i.test(e)},8113:function(t,n,r){var e=r(5005);t.exports=e("navigator","userAgent")||""},7392:function(t,n,r){var e,o,i=r(7854),c=r(8113),u=i.process,a=u&&u.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:c&&(!(e=c.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=c.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,n,r){var e=r(7854),o=r(1236).f,i=r(8880),c=r(1320),u=r(3505),a=r(9920),f=r(4705);t.exports=function(t,n){var r,s,l,p,v,h=t.target,d=t.global,y=t.stat;if(r=d?e:y?e[h]||u(h,{}):(e[h]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!f(d?s:h+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(r,s,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,n,r){"use strict";r(4916);var e=r(1320),o=r(7293),i=r(5112),c=r(8880),u=i("species"),a=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f="$0"==="a".replace(/./,"$0"),s=i("replace"),l=!!/./[s]&&""===/./[s]("a","$0"),p=!o((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,n,r,s){var v=i(t),h=!o((function(){var n={};return n[v]=function(){return 7},7!=""[t](n)})),d=h&&!o((function(){var n=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return n=!0,null},r[v](""),!n}));if(!h||!d||"replace"===t&&(!a||!f||l)||"split"===t&&!p){var y=/./[v],g=r(v,""[t],(function(t,n,r,e,o){return n.exec===RegExp.prototype.exec?h&&!o?{done:!0,value:y.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:l}),x=g[0],m=g[1];e(String.prototype,t,x),e(RegExp.prototype,v,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}s&&c(RegExp.prototype[v],"sham",!0)}},9974:function(t,n,r){var e=r(3099);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},5005:function(t,n,r){var e=r(857),o=r(7854),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},1246:function(t,n,r){var e=r(648),o=r(7497),i=r(5112)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},647:function(t,n,r){var e=r(7908),o=Math.floor,i="".replace,c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,n,r,a,f,s){var l=r+t.length,p=a.length,v=u;return void 0!==f&&(f=e(f),v=c),i.call(s,v,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":c=f[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>p){var s=o(u/10);return 0===s?e:s<=p?void 0===a[s-1]?i.charAt(1):a[s-1]+i.charAt(1):e}c=a[u-1]}return void 0===c?"":c}))}},7854:function(t){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6656:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},3501:function(t){t.exports={}},842:function(t,n,r){var e=r(7854);t.exports=function(t,n){var r=e.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,n))}},490:function(t,n,r){var e=r(5005);t.exports=e("document","documentElement")},4664:function(t,n,r){var e=r(9781),o=r(7293),i=r(317);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,n,r){var e=r(7293),o=r(4326),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:function(t,n,r){var e=r(5465),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},9909:function(t,n,r){var e,o,i,c=r(8536),u=r(7854),a=r(111),f=r(8880),s=r(6656),l=r(5465),p=r(6200),v=r(3501),h=u.WeakMap;if(c){var d=l.state||(l.state=new h),y=d.get,g=d.has,x=d.set;e=function(t,n){return n.facade=t,x.call(d,t,n),n},o=function(t){return y.call(d,t)||{}},i=function(t){return g.call(d,t)}}else{var m=p("state");v[m]=!0,e=function(t,n){return n.facade=t,f(t,m,n),n},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},7659:function(t,n,r){var e=r(5112),o=r(7497),i=e("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},3157:function(t,n,r){var e=r(4326);t.exports=Array.isArray||function(t){return"Array"==e(t)}},4705:function(t,n,r){var e=r(7293),o=/#|\.prototype\./,i=function(t,n){var r=u[c(t)];return r==f||r!=a&&("function"==typeof n?e(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},408:function(t,n,r){var e=r(9670),o=r(7659),i=r(7466),c=r(9974),u=r(1246),a=r(9212),f=function(t,n){this.stopped=t,this.result=n};t.exports=function(t,n,r){var s,l,p,v,h,d,y,g=r&&r.that,x=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),b=c(n,g,1+x+w),E=function(t){return s&&a(s),new f(!0,t)},S=function(t){return x?(e(t),w?b(t[0],t[1],E):b(t[0],t[1])):w?b(t,E):b(t)};if(m)s=t;else{if("function"!=typeof(l=u(t)))throw TypeError("Target is not iterable");if(o(l)){for(p=0,v=i(t.length);v>p;p++)if((h=S(t[p]))&&h instanceof f)return h;return new f(!1)}s=l.call(t)}for(d=s.next;!(y=d.call(s)).done;){try{h=S(y.value)}catch(t){throw a(s),t}if("object"==typeof h&&h&&h instanceof f)return h}return new f(!1)}},9212:function(t,n,r){var e=r(9670);t.exports=function(t){var n=t.return;if(void 0!==n)return e(n.call(t)).value}},7497:function(t){t.exports={}},5948:function(t,n,r){var e,o,i,c,u,a,f,s,l=r(7854),p=r(1236).f,v=r(261).set,h=r(6833),d=r(1036),y=r(5268),g=l.MutationObserver||l.WebKitMutationObserver,x=l.document,m=l.process,w=l.Promise,b=p(l,"queueMicrotask"),E=b&&b.value;E||(e=function(){var t,n;for(y&&(t=m.domain)&&t.exit();o;){n=o.fn,o=o.next;try{n()}catch(t){throw o?c():i=void 0,t}}i=void 0,t&&t.enter()},h||y||d||!g||!x?w&&w.resolve?(f=w.resolve(void 0),s=f.then,c=function(){s.call(f,e)}):c=y?function(){m.nextTick(e)}:function(){v.call(l,e)}:(u=!0,a=x.createTextNode(""),new g(e).observe(a,{characterData:!0}),c=function(){a.data=u=!u})),t.exports=E||function(t){var n={fn:t,next:void 0};i&&(i.next=n),o||(o=n,c()),i=n}},3366:function(t,n,r){var e=r(7854);t.exports=e.Promise},133:function(t,n,r){var e=r(5268),o=r(7392),i=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(e?38===o:o>37&&o<41)}))},8536:function(t,n,r){var e=r(7854),o=r(2788),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},8523:function(t,n,r){"use strict";var e=r(3099),o=function(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)};t.exports.f=function(t){return new o(t)}},3070:function(t,n,r){var e=r(9781),o=r(4664),i=r(9670),c=r(7593),u=Object.defineProperty;n.f=e?u:function(t,n,r){if(i(t),n=c(n,!0),i(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},1236:function(t,n,r){var e=r(9781),o=r(5296),i=r(9114),c=r(5656),u=r(7593),a=r(6656),f=r(4664),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=c(t),n=u(n,!0),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},8006:function(t,n,r){var e=r(6324),o=r(748).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},5181:function(t,n){n.f=Object.getOwnPropertySymbols},6324:function(t,n,r){var e=r(6656),o=r(5656),i=r(1318).indexOf,c=r(3501);t.exports=function(t,n){var r,u=o(t),a=0,f=[];for(r in u)!e(c,r)&&e(u,r)&&f.push(r);for(;n.length>a;)e(u,r=n[a++])&&(~i(f,r)||f.push(r));return f}},5296:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},288:function(t,n,r){"use strict";var e=r(1694),o=r(648);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},3887:function(t,n,r){var e=r(5005),o=r(8006),i=r(5181),c=r(9670);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(c(t)),r=i.f;return r?n.concat(r(t)):n}},857:function(t,n,r){var e=r(7854);t.exports=e},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,n,r){var e=r(9670),o=r(111),i=r(8523);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},2248:function(t,n,r){var e=r(1320);t.exports=function(t,n,r){for(var o in n)e(t,o,n[o],r);return t}},1320:function(t,n,r){var e=r(7854),o=r(8880),i=r(6656),c=r(3505),u=r(2788),a=r(9909),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,r,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(a=s(r)).source||(a.source=l.join("string"==typeof n?n:""))),t!==e?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=r:o(t,n,r)):p?t[n]=r:c(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},7651:function(t,n,r){var e=r(4326),o=r(2261);t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var i=r.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},2261:function(t,n,r){"use strict";var e,o,i=r(7066),c=r(2999),u=r(2309),a=RegExp.prototype.exec,f=u("native-string-replace",String.prototype.replace),s=a,l=(e=/a/,o=/b*/g,a.call(e,"a"),a.call(o,"a"),0!==e.lastIndex||0!==o.lastIndex),p=c.UNSUPPORTED_Y||c.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(l||v||p)&&(s=function(t){var n,r,e,o,c=this,u=p&&c.sticky,s=i.call(c),h=c.source,d=0,y=t;return u&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),y=String(t).slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==t[c.lastIndex-1])&&(h="(?: "+h+")",y=" "+y,d++),r=new RegExp("^(?:"+h+")",s)),v&&(r=new RegExp("^"+h+"$(?!\\s)",s)),l&&(n=c.lastIndex),e=a.call(u?r:c,y),u?e?(e.input=e.input.slice(d),e[0]=e[0].slice(d),e.index=c.lastIndex,c.lastIndex+=e[0].length):c.lastIndex=0:l&&e&&(c.lastIndex=c.global?e.index+e[0].length:n),v&&e&&e.length>1&&f.call(e[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(e[o]=void 0)})),e}),t.exports=s},7066:function(t,n,r){"use strict";var e=r(9670);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},2999:function(t,n,r){"use strict";var e=r(7293);function o(t,n){return RegExp(t,n)}n.UNSUPPORTED_Y=e((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),n.BROKEN_CARET=e((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,n,r){var e=r(7854),o=r(8880);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},6340:function(t,n,r){"use strict";var e=r(5005),o=r(3070),i=r(5112),c=r(9781),u=i("species");t.exports=function(t){var n=e(t),r=o.f;c&&n&&!n[u]&&r(n,u,{configurable:!0,get:function(){return this}})}},8003:function(t,n,r){var e=r(3070).f,o=r(6656),i=r(5112)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},6200:function(t,n,r){var e=r(2309),o=r(9711),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,n,r){var e=r(7854),o=r(3505),i="__core-js_shared__",c=e[i]||o(i,{});t.exports=c},2309:function(t,n,r){var e=r(1913),o=r(5465);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.10.1",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(t,n,r){var e=r(9670),o=r(3099),i=r(5112)("species");t.exports=function(t,n){var r,c=e(t).constructor;return void 0===c||null==(r=e(c)[i])?n:o(r)}},8710:function(t,n,r){var e=r(9958),o=r(4488),i=function(t){return function(n,r){var i,c,u=String(o(n)),a=e(r),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},261:function(t,n,r){var e,o,i,c=r(7854),u=r(7293),a=r(9974),f=r(490),s=r(317),l=r(6833),p=r(5268),v=c.location,h=c.setImmediate,d=c.clearImmediate,y=c.process,g=c.MessageChannel,x=c.Dispatch,m=0,w={},b=function(t){if(w.hasOwnProperty(t)){var n=w[t];delete w[t],n()}},E=function(t){return function(){b(t)}},S=function(t){b(t.data)},j=function(t){c.postMessage(t+"",v.protocol+"//"+v.host)};h&&d||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},e(m),m},d=function(t){delete w[t]},p?e=function(t){y.nextTick(E(t))}:x&&x.now?e=function(t){x.now(E(t))}:g&&!l?(i=(o=new g).port2,o.port1.onmessage=S,e=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts&&v&&"file:"!==v.protocol&&!u(j)?(e=j,c.addEventListener("message",S,!1)):e="onreadystatechange"in s("script")?function(t){f.appendChild(s("script")).onreadystatechange=function(){f.removeChild(this),b(t)}}:function(t){setTimeout(E(t),0)}),t.exports={set:h,clear:d}},1400:function(t,n,r){var e=r(9958),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},5656:function(t,n,r){var e=r(8361),o=r(4488);t.exports=function(t){return e(o(t))}},9958:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},7466:function(t,n,r){var e=r(9958),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},7908:function(t,n,r){var e=r(4488);t.exports=function(t){return Object(e(t))}},7593:function(t,n,r){var e=r(111);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},1694:function(t,n,r){var e={};e[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(e)},9711:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},3307:function(t,n,r){var e=r(133);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,n,r){var e=r(7854),o=r(2309),i=r(6656),c=r(9711),u=r(133),a=r(3307),f=o("wks"),s=e.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},2222:function(t,n,r){"use strict";var e=r(2109),o=r(7293),i=r(3157),c=r(111),u=r(7908),a=r(7466),f=r(6135),s=r(5417),l=r(1194),p=r(5112),v=r(7392),h=p("isConcatSpreadable"),d=9007199254740991,y="Maximum allowed index exceeded",g=v>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),x=l("concat"),m=function(t){if(!c(t))return!1;var n=t[h];return void 0!==n?!!n:i(t)};e({target:"Array",proto:!0,forced:!g||!x},{concat:function(t){var n,r,e,o,i,c=u(this),l=s(c,0),p=0;for(n=-1,e=arguments.length;n<e;n++)if(m(i=-1===n?c:arguments[n])){if(p+(o=a(i.length))>d)throw TypeError(y);for(r=0;r<o;r++,p++)r in i&&f(l,p,i[r])}else{if(p>=d)throw TypeError(y);f(l,p++,i)}return l.length=p,l}})},1539:function(t,n,r){var e=r(1694),o=r(1320),i=r(288);e||o(Object.prototype,"toString",i,{unsafe:!0})},8674:function(t,n,r){"use strict";var e,o,i,c,u=r(2109),a=r(1913),f=r(7854),s=r(5005),l=r(3366),p=r(1320),v=r(2248),h=r(8003),d=r(6340),y=r(111),g=r(3099),x=r(5787),m=r(2788),w=r(408),b=r(7072),E=r(6707),S=r(261).set,j=r(5948),O=r(9478),T=r(842),P=r(8523),L=r(2534),R=r(9909),_=r(4705),I=r(5112),A=r(5268),k=r(7392),M=I("species"),N="Promise",C=R.get,F=R.set,U=R.getterFor(N),$=l,D=f.TypeError,G=f.document,B=f.process,K=s("fetch"),z=P.f,Y=z,q=!!(G&&G.createEvent&&f.dispatchEvent),W="function"==typeof PromiseRejectionEvent,X="unhandledrejection",H=_(N,(function(){if(m($)===String($)){if(66===k)return!0;if(!A&&!W)return!0}if(a&&!$.prototype.finally)return!0;if(k>=51&&/native code/.test($))return!1;var t=$.resolve(1),n=function(t){t((function(){}),(function(){}))};return(t.constructor={})[M]=n,!(t.then((function(){}))instanceof n)})),V=H||!b((function(t){$.all(t).catch((function(){}))})),J=function(t){var n;return!(!y(t)||"function"!=typeof(n=t.then))&&n},Q=function(t,n){if(!t.notified){t.notified=!0;var r=t.reactions;j((function(){for(var e=t.value,o=1==t.state,i=0;r.length>i;){var c,u,a,f=r[i++],s=o?f.ok:f.fail,l=f.resolve,p=f.reject,v=f.domain;try{s?(o||(2===t.rejection&&rt(t),t.rejection=1),!0===s?c=e:(v&&v.enter(),c=s(e),v&&(v.exit(),a=!0)),c===f.promise?p(D("Promise-chain cycle")):(u=J(c))?u.call(c,l,p):l(c)):p(e)}catch(t){v&&!a&&v.exit(),p(t)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&tt(t)}))}},Z=function(t,n,r){var e,o;q?((e=G.createEvent("Event")).promise=n,e.reason=r,e.initEvent(t,!1,!0),f.dispatchEvent(e)):e={promise:n,reason:r},!W&&(o=f["on"+t])?o(e):t===X&&T("Unhandled promise rejection",r)},tt=function(t){S.call(f,(function(){var n,r=t.facade,e=t.value;if(nt(t)&&(n=L((function(){A?B.emit("unhandledRejection",e,r):Z(X,r,e)})),t.rejection=A||nt(t)?2:1,n.error))throw n.value}))},nt=function(t){return 1!==t.rejection&&!t.parent},rt=function(t){S.call(f,(function(){var n=t.facade;A?B.emit("rejectionHandled",n):Z("rejectionhandled",n,t.value)}))},et=function(t,n,r){return function(e){t(n,e,r)}},ot=function(t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(t,!0))},it=function(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw D("Promise can't be resolved itself");var e=J(n);e?j((function(){var r={done:!1};try{e.call(n,et(it,r,t),et(ot,r,t))}catch(n){ot(r,n,t)}})):(t.value=n,t.state=1,Q(t,!1))}catch(n){ot({done:!1},n,t)}}};H&&($=function(t){x(this,$,N),g(t),e.call(this);var n=C(this);try{t(et(it,n),et(ot,n))}catch(t){ot(n,t)}},(e=function(t){F(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v($.prototype,{then:function(t,n){var r=U(this),e=z(E(this,$));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=A?B.domain:void 0,r.parent=!0,r.reactions.push(e),0!=r.state&&Q(r,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e,n=C(t);this.promise=t,this.resolve=et(it,n),this.reject=et(ot,n)},P.f=z=function(t){return t===$||t===i?new o(t):Y(t)},a||"function"!=typeof l||(c=l.prototype.then,p(l.prototype,"then",(function(t,n){var r=this;return new $((function(t,n){c.call(r,t,n)})).then(t,n)}),{unsafe:!0}),"function"==typeof K&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O($,K.apply(f,arguments))}}))),u({global:!0,wrap:!0,forced:H},{Promise:$}),h($,N,!1,!0),d(N),i=s(N),u({target:N,stat:!0,forced:H},{reject:function(t){var n=z(this);return n.reject.call(void 0,t),n.promise}}),u({target:N,stat:!0,forced:a||H},{resolve:function(t){return O(a&&this===i?$:this,t)}}),u({target:N,stat:!0,forced:V},{all:function(t){var n=this,r=z(n),e=r.resolve,o=r.reject,i=L((function(){var r=g(n.resolve),i=[],c=0,u=1;w(t,(function(t){var a=c++,f=!1;i.push(void 0),u++,r.call(n,t).then((function(t){f||(f=!0,i[a]=t,--u||e(i))}),o)})),--u||e(i)}));return i.error&&o(i.value),r.promise},race:function(t){var n=this,r=z(n),e=r.reject,o=L((function(){var o=g(n.resolve);w(t,(function(t){o.call(n,t).then(r.resolve,e)}))}));return o.error&&e(o.value),r.promise}})},4916:function(t,n,r){"use strict";var e=r(2109),o=r(2261);e({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},4723:function(t,n,r){"use strict";var e=r(7007),o=r(9670),i=r(7466),c=r(4488),u=r(1530),a=r(7651);e("match",1,(function(t,n,r){return[function(n){var r=c(this),e=null==n?void 0:n[t];return void 0!==e?e.call(n,r):new RegExp(n)[t](String(r))},function(t){var e=r(n,t,this);if(e.done)return e.value;var c=o(t),f=String(this);if(!c.global)return a(c,f);var s=c.unicode;c.lastIndex=0;for(var l,p=[],v=0;null!==(l=a(c,f));){var h=String(l[0]);p[v]=h,""===h&&(c.lastIndex=u(f,i(c.lastIndex),s)),v++}return 0===v?null:p}]}))},5306:function(t,n,r){"use strict";var e=r(7007),o=r(9670),i=r(7466),c=r(9958),u=r(4488),a=r(1530),f=r(647),s=r(7651),l=Math.max,p=Math.min;e("replace",2,(function(t,n,r,e){var v=e.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=e.REPLACE_KEEPS_$0,d=v?"$":"$0";return[function(r,e){var o=u(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,e):n.call(String(o),r,e)},function(t,e){if(!v&&h||"string"==typeof e&&-1===e.indexOf(d)){var u=r(n,t,this,e);if(u.done)return u.value}var y=o(t),g=String(this),x="function"==typeof e;x||(e=String(e));var m=y.global;if(m){var w=y.unicode;y.lastIndex=0}for(var b=[];;){var E=s(y,g);if(null===E)break;if(b.push(E),!m)break;""===String(E[0])&&(y.lastIndex=a(g,i(y.lastIndex),w))}for(var S,j="",O=0,T=0;T<b.length;T++){E=b[T];for(var P=String(E[0]),L=l(p(c(E.index),g.length),0),R=[],_=1;_<E.length;_++)R.push(void 0===(S=E[_])?S:String(S));var I=E.groups;if(x){var A=[P].concat(R,L,g);void 0!==I&&A.push(I);var k=String(e.apply(void 0,A))}else k=f(P,g,L,R,I,e);L>=O&&(j+=g.slice(O,L)+k,O=L+P.length)}return j+g.slice(O)}]}))},5666:function(t){var n=function(t){"use strict";var n,r=Object.prototype,e=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function a(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{a({},"")}catch(t){a=function(t,n,r){return t[n]=r}}function f(t,n,r,e){var o=n&&n.prototype instanceof y?n:y,i=Object.create(o.prototype),c=new L(e||[]);return i._invoke=function(t,n,r){var e=l;return function(o,i){if(e===v)throw new Error("Generator is already running");if(e===h){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=v;var a=s(t,n,r);if("normal"===a.type){if(e=r.done?h:p,a.arg===d)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e=h,r.method="throw",r.arg=a.arg)}}}(t,r,c),i}function s(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",v="executing",h="completed",d={};function y(){}function g(){}function x(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(R([])));b&&b!==r&&e.call(b,i)&&(m=b);var E=x.prototype=y.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(n){a(t,n,(function(t){return this._invoke(n,t)}))}))}function j(t,n){function r(o,i,c,u){var a=s(t[o],t,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&e.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return r("throw",t,c,u)}))}u(a.arg)}var o;this._invoke=function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}}function O(t,r){var e=t.iterator[r.method];if(e===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=n,O(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(e,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=n),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(e.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=n,r.done=!0,r};return c.next=c}}return{next:_}}function _(){return{value:n,done:!0}}return g.prototype=E.constructor=x,x.constructor=g,g.displayName=a(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,a(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},S(j.prototype),j.prototype[c]=function(){return this},t.AsyncIterator=j,t.async=function(n,r,e,o,i){void 0===i&&(i=Promise);var c=new j(f(n,r,e,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},S(E),a(E,u,"Generator"),E[i]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=R,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(e,o){return u.type="throw",u.arg=t,r.next=e,o&&(r.method="next",r.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=e.call(c,"catchLoc"),f=e.call(c,"finallyLoc");if(a&&f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(c)},complete:function(t,n){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&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:R(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}!function(){function t(t,n,r,e,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void r(t)}u.done?n(a):Promise.resolve(a).then(e,o)}function n(n){return function(){var r=this,e=arguments;return new Promise((function(o,i){var c=n.apply(r,e);function u(n){t(c,o,i,u,a,"next",n)}function a(n){t(c,o,i,u,a,"throw",n)}u(void 0)}))}}if(r(5666),r(4916),r(4723),r(5306),r(2222),r(1539),r(8674),"undefined"==typeof window||!window.Mocha||!window.chai)throw new Error("chai-pdftest requires access to window.Mocha and window.chai.");function e(t,n){var r,e;return"".concat((r=function t(n){return"".concat(n.parent?t(n.parent):""," ").concat(n.title)}(t),e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,function(t){return t.match(e)||[]}(r.replace(/['\u2019]/g,"")).reduce((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()}),"")),"-").concat(n+1,".pdf")}var o={context:null,index:0},i=window.Mocha.Runnable.prototype.run;window.Mocha.Runnable.prototype.run=function(){return o.context=this.ctx,o.index=0,i.apply(this,arguments)},window.chai.Assertion.addMethod("matchPdfSnapshot",n(regeneratorRuntime.mark((function t(){var n,r,i,c,u,a,f=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:{},r=n.customSnapshotIdentifier,o.context.timeout(0),i=o.context.currentTest||o.context.test,c=r||e(i,o.index++),u=this._obj,t.next=8,pdftest.compareToSnapshot(u,c,n);case 8:a=t.sent,this.assert(!0===a.match,"PDF does not match stored snapshot ".concat(c,"."),"PDF matches stored snapshot ".concat(c,"."));case 10:case"end":return t.stop()}}),t,this)}))))}()}(); //# sourceMappingURL=chai-pdftest.min.js.map