function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}!function(a){"use strict";function b(a){return u(a)?void(t(a.objectMaxDepth)&&(ie.objectMaxDepth=c(a.objectMaxDepth)?a.objectMaxDepth:0/0)):ie}function c(a){return x(a)&&a>0}function d(a,b){return b=b||Error,function(){var c,d=arguments[0];for(c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.6.5/"+(a?a+"/":"")+d,d=1;d<arguments.length;d++){c=c+(1==d?"?":"&")+"p"+(d-1)+"=";var e,f=encodeURIComponent;e=arguments[d],e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e,c+=f(e)}return new b(c)}}function e(a){if(null==a||C(a))return!1;if(we(a)||w(a)||fe&&a instanceof fe)return!0;var b="length"in Object(a)&&a.length;return x(b)&&(b>=0&&(b-1 in a||a instanceof Array)||"function"==typeof a.item)}function f(a,b,c){var d,g;if(a)if(A(a))for(d in a)"prototype"!==d&&"length"!==d&&"name"!==d&&a.hasOwnProperty(d)&&b.call(c,a[d],d,a);else if(we(a)||e(a)){var h="object"!=typeof a;for(d=0,g=a.length;g>d;d++)(h||d in a)&&b.call(c,a[d],d,a)}else if(a.forEach&&a.forEach!==f)a.forEach(b,c,a);else if(v(a))for(d in a)b.call(c,a[d],d,a);else if("function"==typeof a.hasOwnProperty)for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d,a);else for(d in a)ke.call(a,d)&&b.call(c,a[d],d,a);return a}function g(a,b,c){for(var d=Object.keys(a).sort(),e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function h(a){return function(b,c){a(c,b)}}function i(){return++ue}function j(a,b,c){for(var d=a.$$hashKey,e=0,f=b.length;f>e;++e){var g=b[e];if(u(g)||A(g))for(var h=Object.keys(g),i=0,k=h.length;k>i;i++){var l=h[i],m=g[l];c&&u(m)?y(m)?a[l]=new Date(m.valueOf()):B(m)?a[l]=new RegExp(m):m.nodeName?a[l]=m.cloneNode(!0):G(m)?a[l]=m.clone():(u(a[l])||(a[l]=we(m)?[]:{}),j(a[l],[m],!0)):a[l]=m}}return d?a.$$hashKey=d:delete a.$$hashKey,a}function k(a){return j(a,ne.call(arguments,1),!1)}function l(a){return j(a,ne.call(arguments,1),!0)}function m(a){return parseInt(a,10)}function n(a,b){return k(Object.create(a),b)}function o(){}function p(a){return a}function q(a){return function(){return a}}function r(a){return A(a.toString)&&a.toString!==qe}function s(a){return"undefined"==typeof a}function t(a){return"undefined"!=typeof a}function u(a){return null!==a&&"object"==typeof a}function v(a){return null!==a&&"object"==typeof a&&!re(a)}function w(a){return"string"==typeof a}function x(a){return"number"==typeof a}function y(a){return"[object Date]"===qe.call(a)}function z(a){switch(qe.call(a)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return a instanceof Error}}function A(a){return"function"==typeof a}function B(a){return"[object RegExp]"===qe.call(a)}function C(a){return a&&a.window===a}function D(a){return a&&a.$evalAsync&&a.$watch}function E(a){return"boolean"==typeof a}function F(a){return a&&x(a.length)&&xe.test(qe.call(a))}function G(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function H(a){var b={};a=a.split(",");var c;for(c=0;c<a.length;c++)b[a[c]]=!0;return b}function I(a){return le(a.nodeName||a[0]&&a[0].nodeName)}function J(a,b){var c=a.indexOf(b);return c>=0&&a.splice(c,1),c}function K(a,b,d){function e(a,b,c){if(c--,0>c)return"...";var d,e=b.$$hashKey;if(we(a)){d=0;for(var f=a.length;f>d;d++)b.push(g(a[d],c))}else if(v(a))for(d in a)b[d]=g(a[d],c);else if(a&&"function"==typeof a.hasOwnProperty)for(d in a)a.hasOwnProperty(d)&&(b[d]=g(a[d],c));else for(d in a)ke.call(a,d)&&(b[d]=g(a[d],c));return e?b.$$hashKey=e:delete b.$$hashKey,b}function g(a,b){if(!u(a))return a;var c=i.indexOf(a);if(-1!==c)return j[c];if(C(a)||D(a))throw se("cpws");var c=!1,d=h(a);return void 0===d&&(d=we(a)?[]:Object.create(re(a)),c=!0),i.push(a),j.push(d),c?e(a,d,b):d}function h(a){switch(qe.call(a)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new a.constructor(g(a.buffer),a.byteOffset,a.length);case"[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);return new Uint8Array(b).set(new Uint8Array(a)),b}return a.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new a.constructor(a.valueOf());case"[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex,b;case"[object Blob]":return new a.constructor([a],{type:a.type})}return A(a.cloneNode)?a.cloneNode(!0):void 0}var i=[],j=[];if(d=c(d)?d:0/0,b){if(F(b)||"[object ArrayBuffer]"===qe.call(b))throw se("cpta");if(a===b)throw se("cpi");return we(b)?b.length=0:f(b,function(a,c){"$$hashKey"!==c&&delete b[c]}),i.push(a),j.push(b),e(a,b,d)}return g(a,d)}function L(a,b){return a===b||a!==a&&b!==b}function M(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var c,d=typeof a;if(d===typeof b&&"object"===d){if(!we(a)){if(y(a))return y(b)?L(a.getTime(),b.getTime()):!1;if(B(a))return B(b)?a.toString()===b.toString():!1;if(D(a)||D(b)||C(a)||C(b)||we(b)||y(b)||B(b))return!1;d=kb();for(c in a)if("$"!==c.charAt(0)&&!A(a[c])){if(!M(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&t(b[c])&&!A(b[c]))return!1;return!0}if(!we(b))return!1;if((d=a.length)===b.length){for(c=0;d>c;c++)if(!M(a[c],b[c]))return!1;return!0}}return!1}function N(a,b,c){return a.concat(ne.call(b,c))}function O(a,b){var c=2<arguments.length?ne.call(arguments,2):[];return!A(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,N(c,arguments,0)):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function P(b,c){var d=c;return"string"==typeof b&&"$"===b.charAt(0)&&"$"===b.charAt(1)?d=void 0:C(c)?d="$WINDOW":c&&a.document===c?d="$DOCUMENT":D(c)&&(d="$SCOPE"),d}function Q(a,b){return s(a)?void 0:(x(b)||(b=b?2:null),JSON.stringify(a,P,b))}function R(a){return w(a)?JSON.parse(a):a}function S(a,b){a=a.replace(Ce,"");var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return ve(c)?b:c}function T(a,b,c){c=c?-1:1;var d=a.getTimezoneOffset();return b=S(b,d),c*=b-d,a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+c),a}function U(a){a=fe(a).clone().empty();var b=fe("<div>").append(a).html();try{return a[0].nodeType===He?le(b):b.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(a,b){return"<"+le(b)})}catch(c){return le(b)}}function V(a){try{return decodeURIComponent(a)}catch(b){}}function W(a){var b={};return f((a||"").split("&"),function(a){var c,d,e;a&&(d=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(d=a.substring(0,c),e=a.substring(c+1)),d=V(d),t(d)&&(e=t(e)?V(e):!0,ke.call(b,d)?we(b[d])?b[d].push(e):b[d]=[b[d],e]:b[d]=e))}),b}function X(a){var b=[];return f(a,function(a,c){we(a)?f(a,function(a){b.push(Z(c,!0)+(!0===a?"":"="+Z(a,!0)))}):b.push(Z(c,!0)+(!0===a?"":"="+Z(a,!0)))}),b.length?b.join("&"):""}function Y(a){return Z(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function $(a,b){var c,d,e=De.length;for(d=0;e>d;++d)if(c=De[d]+b,w(c=a.getAttribute(c)))return c;return null}function _(b,c){var d,e,g={};f(De,function(a){a+="app",!d&&b.hasAttribute&&b.hasAttribute(a)&&(d=b,e=b.getAttribute(a))}),f(De,function(a){a+="app";var c;!d&&(c=b.querySelector("["+a.replace(":","\\:")+"]"))&&(d=c,e=c.getAttribute(a))}),d&&(Ee?(g.strictDi=null!==$(d,"strict-di"),c(d,e?[e]:[],g)):a.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function ab(b,c,d){u(d)||(d={}),d=k({strictDi:!1},d);var e=function(){if(b=fe(b),b.injector()){var e=b[0]===a.document?"document":U(b);throw se("btstrpd",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}return c=c||[],c.unshift(["$provide",function(a){a.value("$rootElement",b)}]),d.debugInfoEnabled&&c.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]),c.unshift("ng"),e=Ub(c,d.strictDi),e.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d),c(b)(a)})}]),e},g=/^NG_ENABLE_DEBUG_INFO!/,h=/^NG_DEFER_BOOTSTRAP!/;return a&&g.test(a.name)&&(d.debugInfoEnabled=!0,a.name=a.name.replace(g,"")),a&&!h.test(a.name)?e():(a.name=a.name.replace(h,""),te.resumeBootstrap=function(a){return f(a,function(a){c.push(a)}),e()},void(A(te.resumeDeferredBootstrap)&&te.resumeDeferredBootstrap()))}function bb(){a.name="NG_ENABLE_DEBUG_INFO!"+a.name,a.location.reload()}function cb(a){if(a=te.element(a).injector(),!a)throw se("test");return a.get("$$testability")}function db(a,b){return b=b||"_",a.replace(Fe,function(a,c){return(c?b:"")+a.toLowerCase()})}function eb(){var b;if(!Ge){var c=Be();(ge=s(c)?a.jQuery:c?a[c]:void 0)&&ge.fn.on?(fe=ge,k(ge.fn,{scope:Ve.scope,isolateScope:Ve.isolateScope,controller:Ve.controller,injector:Ve.injector,inheritedData:Ve.inheritedData}),b=ge.cleanData,ge.cleanData=function(a){for(var c,d,e=0;null!=(d=a[e]);e++)(c=ge._data(d,"events"))&&c.$destroy&&ge(d).triggerHandler("$destroy");b(a)}):fe=ub,te.element=fe,Ge=!0}}function fb(a,b,c){if(!a)throw se("areq",b||"?",c||"required");return a}function gb(a,b,c){return c&&we(a)&&(a=a[a.length-1]),fb(A(a),b,"not a function, got "+(a&&"object"==typeof a?a.constructor.name||"Object":typeof a)),a}function hb(a,b){if("hasOwnProperty"===a)throw se("badname",b)}function ib(a,b,c){if(!b)return a;b=b.split(".");for(var d,e=a,f=b.length,g=0;f>g;g++)d=b[g],a&&(a=(e=a)[d]);return!c&&A(a)?O(e,a):a}function jb(a){for(var b,c=a[0],d=a[a.length-1],e=1;c!==d&&(c=c.nextSibling);e++)(b||a[e]!==c)&&(b||(b=fe(ne.call(a,0,e))),b.push(c));return b||a}function kb(){return Object.create(null)}function lb(a){if(null==a)return"";switch(typeof a){case"string":break;case"number":a=""+a;break;default:a=!r(a)||we(a)||y(a)?Q(a):a.toString()}return a}function mb(a){function b(a,b,c){return a[b]||(a[b]=c())}var c=d("$injector"),e=d("ng");return a=b(a,"angular",Object),a.$$minErr=a.$$minErr||d,b(a,"module",function(){var a={};return function(d,f,g){var h={};if("hasOwnProperty"===d)throw e("badname","module");return f&&a.hasOwnProperty(d)&&(a[d]=null),b(a,d,function(){function a(a,b,c,d){return d||(d=i),function(){return d[c||"push"]([a,b,arguments]),m}}function b(a,b,c){return c||(c=i),function(e,f){return f&&A(f)&&(f.$$moduleName=d),c.push([a,b,arguments]),m}}if(!f)throw c("nomod",d);var i=[],j=[],k=[],l=a("$injector","invoke","push",j),m={_invokeQueue:i,_configBlocks:j,_runBlocks:k,info:function(a){if(t(a)){if(!u(a))throw e("aobj","value");return h=a,this}return h},requires:f,name:d,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator",j),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:l,run:function(a){return k.push(a),this}};return g&&l(g),m})}})}function nb(a,b){if(we(a)){b=b||[];for(var c=0,d=a.length;d>c;c++)b[c]=a[c]}else if(u(a))for(c in b=b||{},a)("$"!==c.charAt(0)||"$"!==c.charAt(1))&&(b[c]=a[c]);return b||a}function ob(a,b){var d=[];return c(b)&&(a=te.copy(a,null,b)),JSON.stringify(a,function(a,b){if(b=P(a,b),u(b)){if(0<=d.indexOf(b))return"...";d.push(b)}return b})}function pb(c){k(c,{errorHandlingConfig:b,bootstrap:ab,copy:K,extend:k,merge:l,equals:M,element:fe,forEach:f,injector:Ub,noop:o,bind:O,toJson:Q,fromJson:R,identity:p,isUndefined:s,isDefined:t,isString:w,isFunction:A,isObject:u,isNumber:x,isElement:G,isArray:we,version:Ie,isDate:y,lowercase:le,uppercase:me,callbacks:{$$counter:0},getTestability:cb,reloadWithDebugInfo:bb,$$minErr:d,$$csp:Ae,$$encodeUriSegment:Y,$$encodeUriQuery:Z,$$stringify:lb}),he=mb(a),he("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:cd}),a.provider("$compile",bc).directive({a:bg,input:sg,textarea:sg,form:fg,script:gh,select:jh,option:kh,ngBind:vg,ngBindHtml:xg,ngBindTemplate:wg,ngClass:zg,ngClassEven:Bg,ngClassOdd:Ag,ngCloak:Cg,ngController:Dg,ngForm:gg,ngHide:_g,ngIf:Gg,ngInclude:Hg,ngInit:Jg,ngNonBindable:Ug,ngPluralize:Yg,ngRepeat:Zg,ngShow:$g,ngStyle:ah,ngSwitch:bh,ngSwitchWhen:ch,ngSwitchDefault:dh,ngOptions:Xg,ngTransclude:fh,ngModel:Rg,ngList:Kg,ngChange:yg,pattern:mh,ngPattern:mh,required:lh,ngRequired:lh,minlength:oh,ngMinlength:oh,maxlength:nh,ngMaxlength:nh,ngValue:ug,ngModelOptions:Tg}).directive({ngInclude:Ig}).directive(cg).directive(Eg),a.provider({$anchorScroll:Vb,$animate:kf,$animateCss:nf,$$animateJs:hf,$$animateQueue:jf,$$AnimateRunner:mf,$$animateAsyncRun:lf,$browser:$b,$cacheFactory:_b,$controller:hc,$document:ic,$$isDocumentHidden:jc,$exceptionHandler:kc,$filter:qd,$$forceReflow:uf,$interpolate:wc,$interval:xc,$http:sc,$httpParamSerializer:mc,$httpParamSerializerJQLike:nc,$httpBackend:uc,$xhrFactory:tc,$jsonpCallbacks:Cf,$location:Kc,$log:Lc,$parse:Yc,$rootScope:bd,$q:Zc,$$q:$c,$sce:gd,$sceDelegate:fd,$sniffer:hd,$templateCache:ac,$templateRequest:id,$$testability:jd,$timeout:kd,$window:nd,$$rAF:ad,$$jqLite:Pb,$$Map:_e,$$cookieReader:pd})}]).info({angularVersion:"1.6.5"})}function qb(a,b){return b.toUpperCase()}function rb(a){return a.replace(Le,qb)}function sb(a){return a=a.nodeType,1===a||!a||9===a}function tb(a,b){var c,d,e=b.createDocumentFragment(),g=[];if(Qe.test(a)){for(c=e.appendChild(b.createElement("div")),d=(Re.exec(a)||["",""])[1].toLowerCase(),d=Te[d]||Te._default,c.innerHTML=d[1]+a.replace(Se,"<$1></$2>")+d[2],d=d[0];d--;)c=c.lastChild;g=N(g,c.childNodes),c=e.firstChild,c.textContent=""}else g.push(b.createTextNode(a));return e.textContent="",e.innerHTML="",f(g,function(a){e.appendChild(a)}),e}function ub(b){if(b instanceof ub)return b;var c;if(w(b)&&(b=ye(b),c=!0),!(this instanceof ub)){if(c&&"<"!==b.charAt(0))throw Oe("nosel");return new ub(b)}if(c){c=a.document;var d;b=(d=Pe.exec(b))?[c.createElement(d[1])]:(d=tb(b,c))?d.childNodes:[],Eb(this,b)}else A(b)?Kb(b):Eb(this,b)}function vb(a){return a.cloneNode(!0)}function wb(a,b){!b&&sb(a)&&fe.cleanData([a]),a.querySelectorAll&&fe.cleanData(a.querySelectorAll("*"))}function xb(a,b,c,d){if(t(d))throw Oe("offargs");var e=(d=zb(a))&&d.events,g=d&&d.handle;if(g)if(b){var h=function(b){var d=e[b];t(c)&&J(d||[],c),t(c)&&d&&0<d.length||(a.removeEventListener(b,g),delete e[b])};f(b.split(" "),function(a){h(a),Ne[a]&&h(Ne[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,g),delete e[b]}function yb(a,b){var c=a.ng339,d=c&&Je[c];d&&(b?delete d.data[b]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),xb(a)),delete Je[c],a.ng339=void 0))}function zb(a,b){var c=a.ng339,c=c&&Je[c];return b&&!c&&(a.ng339=c=++Ke,c=Je[c]={events:{},data:{},handle:void 0}),c}function Ab(a,b,c){if(sb(a)){var d,e=t(c),f=!e&&b&&!u(b),g=!b;if(a=(a=zb(a,!f))&&a.data,e)a[rb(b)]=c;else{if(g)return a;if(f)return a&&a[rb(b)];for(d in b)a[rb(d)]=b[d]}}}function Bb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Cb(a,b){b&&a.setAttribute&&f(b.split(" "),function(b){a.setAttribute("class",ye((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ye(b)+" "," ")))})}function Db(a,b){if(b&&a.setAttribute){var c=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");f(b.split(" "),function(a){a=ye(a),-1===c.indexOf(" "+a+" ")&&(c+=a+" ")}),a.setAttribute("class",ye(c))}}function Eb(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var c=b.length;if("number"==typeof c&&b.window!==b){if(c)for(var d=0;c>d;d++)a[a.length++]=b[d]}else a[a.length++]=b}}function Fb(a,b){return Gb(a,"$"+(b||"ngController")+"Controller")}function Gb(a,b,c){for(9===a.nodeType&&(a=a.documentElement),b=we(b)?b:[b];a;){for(var d=0,e=b.length;e>d;d++)if(t(c=fe.data(a,b[d])))return c;a=a.parentNode||11===a.nodeType&&a.host}}function Hb(a){for(wb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Ib(a,b){b||wb(a);var c=a.parentNode;c&&c.removeChild(a)}function Jb(b,c){c=c||a,"complete"===c.document.readyState?c.setTimeout(b):fe(c).on("load",b)}function Kb(b){function c(){a.document.removeEventListener("DOMContentLoaded",c),a.removeEventListener("load",c),b()}"complete"===a.document.readyState?a.setTimeout(b):(a.document.addEventListener("DOMContentLoaded",c),a.addEventListener("load",c))}function Lb(a,b){var c=We[b.toLowerCase()];return c&&Xe[I(a)]&&c}function Mb(a,b){var c=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=b[d||c.type],f=e?e.length:0;if(f){if(s(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0,c.stopPropagation&&c.stopPropagation(),g&&g.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var h=e.specialHandlerWrapper||Nb;f>1&&(e=nb(e));for(var i=0;f>i;i++)c.isImmediatePropagationStopped()||h(a,c,e[i])}};return c.elem=a,c}function Nb(a,b,c){c.call(a,b)}function Ob(a,b,c){var d=b.relatedTarget;d&&(d===a||Ue.call(a,d))||c.call(a,b)}function Pb(){this.$get=function(){return k(ub,{hasClass:function(a,b){return a.attr&&(a=a[0]),Bb(a,b)},addClass:function(a,b){return a.attr&&(a=a[0]),Db(a,b)},removeClass:function(a,b){return a.attr&&(a=a[0]),Cb(a,b)}})}}function Qb(a,b){var c=a&&a.$$hashKey;return c?("function"==typeof c&&(c=a.$$hashKey()),c):(c=typeof a,c="function"===c||"object"===c&&null!==a?a.$$hashKey=c+":"+(b||i)():c+":"+a)}function Rb(){this._keys=[],this._values=[],this._lastKey=0/0,this._lastIndex=-1}function Sb(a){return a=Function.prototype.toString.call(a).replace(ef,""),a.match(af)||a.match(bf)}function Tb(a){return(a=Sb(a))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Ub(a,b){function c(a){return function(b,c){return u(b)?void f(b,h(a)):a(b,c)}}function d(a,b){if(hb(a,"service"),(A(b)||we(b))&&(b=o.instantiate(b)),!b.$get)throw ff("pget",a);return n[a+"Provider"]=b}function e(a,b){return function(){var c=t.invoke(b,this);if(s(c))throw ff("undef",a);return c}}function g(a,b,c){return d(a,{$get:!1!==c?e(a,b):b})}function i(a){fb(s(a)||we(a),"modulesToLoad","not an array");var b,c=[];return f(a,function(a){function d(a){var b,c;for(b=0,c=a.length;c>b;b++){var d=a[b],e=o.get(d[0]);e[d[1]].apply(e,d[2])}}if(!m.get(a)){m.set(a,!0);try{w(a)?(b=he(a),t.modules[a]=b,c=c.concat(i(b.requires)).concat(b._runBlocks),d(b._invokeQueue),d(b._configBlocks)):A(a)?c.push(o.invoke(a)):we(a)?c.push(o.invoke(a)):gb(a,"module")}catch(e){throw we(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),ff("modulerr",a,e.stack||e.message||e)}}}),c}function j(a,c){function d(b,d){if(a.hasOwnProperty(b)){if(a[b]===k)throw ff("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,d),a[b]}catch(e){throw a[b]===k&&delete a[b],e}finally{l.shift()}}function e(a,c,e){var f=[];a=Ub.$$annotate(a,b,e);for(var g=0,h=a.length;h>g;g++){var i=a[g];if("string"!=typeof i)throw ff("itkn",i);f.push(c&&c.hasOwnProperty(i)?c[i]:d(i,e))}return f}return{invoke:function(a,b,c,d){if("string"==typeof c&&(d=c,c=null),c=e(a,c,d),we(a)&&(a=a[a.length-1]),d=a,ee||"function"!=typeof d)d=!1;else{var f=d.$$ngIsClass;E(f)||(f=d.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(d))),d=f}return d?(c.unshift(null),new(Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=we(a)?a[a.length-1]:a;return a=e(a,b,c),a.unshift(null),new(Function.prototype.bind.apply(d,a))},get:d,annotate:Ub.$$annotate,has:function(b){return n.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new $e,n={$provide:{provider:c(d),factory:c(g),service:c(function(a,b){return g(a,["$injector",function(a){return a.instantiate(b)}])}),value:c(function(a,b){return g(a,q(b),!1)}),constant:c(function(a,b){hb(a,"constant"),n[a]=b,p[a]=b}),decorator:function(a,b){var c=o.get(a+"Provider"),d=c.$get;c.$get=function(){var a=t.invoke(d,c);return t.invoke(b,null,{$delegate:a})}}}},o=n.$injector=j(n,function(a,b){throw te.isString(b)&&l.push(b),ff("unpr",l.join(" <- "))}),p={},r=j(p,function(a,b){var c=o.get(a+"Provider",b);return t.invoke(c.$get,c,void 0,a)}),t=r;n.$injectorProvider={$get:q(r)},t.modules=o.modules=kb();var v=i(a),t=r.get("$injector");return t.strictDi=b,f(v,function(a){a&&t.invoke(a)}),t}function Vb(){var a=!0;this.disableAutoScrolling=function(){a=!1},this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;return Array.prototype.some.call(a,function(a){return"a"===I(a)?(b=a,!0):void 0}),b}function f(a){if(a){a.scrollIntoView();var c;c=g.yOffset,A(c)?c=c():G(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):x(c)||(c=0),c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=w(a)?a:x(a)?a.toString():c.hash();var b;a?(b=h.getElementById(a))?f(b):(b=e(h.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var h=b.document;return a&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||Jb(function(){d.$evalAsync(g)})}),g}]}function Wb(a,b){return a||b?a?b?(we(a)&&(a=a.join(" ")),we(b)&&(b=b.join(" ")),a+" "+b):a:b:""}function Xb(a){w(a)&&(a=a.split(" "));var b=kb();return f(a,function(a){a.length&&(b[a]=!0)}),b}function Yb(a){return u(a)?a:{}}function Zb(a,b,c,d){function e(a){try{a.apply(null,ne.call(arguments,1))}finally{if(q--,0===q)for(;r.length;)try{r.pop()()}catch(b){c.error(b)}}}function g(){x=null,i()}function h(){t=y(),t=s(t)?null:t,M(t,B)&&(t=B),u=B=t}function i(){var a=u;h(),(v!==j.url()||a!==t)&&(v=j.url(),u=t,f(z,function(a){a(j.url(),t)}))}var j=this,k=a.location,l=a.history,m=a.setTimeout,n=a.clearTimeout,p={};j.isMock=!1;var q=0,r=[];j.$$completeOutstandingRequest=e,j.$$incOutstandingRequestCount=function(){q++},j.notifyWhenNoOutstandingRequests=function(a){0===q?a():r.push(a)};var t,u,v=k.href,w=b.find("base"),x=null,y=d.history?function(){try{return l.state}catch(a){}}:o;h(),j.url=function(b,c,e){if(s(e)&&(e=null),k!==a.location&&(k=a.location),l!==a.history&&(l=a.history),b){var f=u===e;if(v===b&&(!d.history||f))return j;var g=v&&Dc(v)===Dc(b);return v=b,u=e,!d.history||g&&f?(g||(x=b),c?k.replace(b):g?(c=k,e=b.indexOf("#"),e=-1===e?"":b.substr(e),c.hash=e):k.href=b,k.href!==b&&(x=b)):(l[c?"replaceState":"pushState"](e,"",b),h()),x&&(x=b),j}return x||k.href.replace(/%27/g,"'")},j.state=function(){return t};var z=[],A=!1,B=null;j.onUrlChange=function(b){return A||(d.history&&fe(a).on("popstate",g),fe(a).on("hashchange",g),A=!0),z.push(b),b},j.$$applicationDestroyed=function(){fe(a).off("hashchange popstate",g)},j.$$checkUrlChange=i,j.baseHref=function(){var a=w.attr("href");return a?a.replace(/^(https?:)?\/\/[^\/]*/,""):""},j.defer=function(a,b){var c;return q++,c=m(function(){delete p[c],e(a)},b||0),p[c]=!0,c},j.defer.cancel=function(a){return p[a]?(delete p[a],n(a),e(o),!0):!1}}function $b(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new Zb(a,d,b,c)}]}function _b(){this.$get=function(){function a(a,c){function e(a){a!==m&&(n?n===a&&(n=a.n):n=a,f(a.n,a.p),f(a,m),m=a,m.n=null)}function f(a,b){a!==b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw d("$cacheFactory")("iid",a);var g=0,h=k({},c,{id:a}),i=kb(),j=c&&c.capacity||Number.MAX_VALUE,l=kb(),m=null,n=null;return b[a]={put:function(a,b){if(!s(b)){if(j<Number.MAX_VALUE){var c=l[a]||(l[a]={key:a});e(c)}return a in i||g++,i[a]=b,g>j&&this.remove(n.key),b}},get:function(a){if(j<Number.MAX_VALUE){var b=l[a];if(!b)return;e(b)}return i[a]},remove:function(a){if(j<Number.MAX_VALUE){var b=l[a];if(!b)return;b===m&&(m=b.p),b===n&&(n=b.n),f(b.n,b.p),delete l[a]}a in i&&(delete i[a],g--)},removeAll:function(){i=kb(),g=0,l=kb(),m=n=null},destroy:function(){l=h=i=null,delete b[a]},info:function(){return k({},h,{size:g})}}}var b={};return a.info=function(){var a={};return f(b,function(b,c){a[c]=b.info()}),a},a.get=function(a){return b[a]},a}}function ac(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function bc(b,c){function d(a,b,c){var d=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,e=kb();return f(a,function(a,f){if(a in x)e[f]=x[a];else{var g=a.match(d);if(!g)throw of("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f},g[4]&&(x[a]=e[f])}}),e}function e(a){var b=a.charAt(0);if(!b||b!==le(b))throw of("baddir",a);if(a!==a.trim())throw of("baddir",a)}function g(a){var b=a.require||a.controller&&a.name;return!we(b)&&u(b)&&f(b,function(a,c){var d=a.match(r);a.substring(d[0].length)||(b[c]=d[0]+c)}),b}var i={},j=/^\s*directive:\s*([\w-]+)\s+(.*)$/,l=/(([\w-]+)(?::([^;]+))?;?)/,m=H("ngSrc,ngSrcset,src,srcset"),r=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,v=/^(on[a-z]+|formaction)$/,x=kb();this.directive=function K(a,c){return fb(a,"name"),hb(a,"directive"),w(a)?(e(a),fb(c,"directiveFactory"),i.hasOwnProperty(a)||(i[a]=[],b.factory(a+"Directive",["$injector","$exceptionHandler",function(b,c){var d=[];return f(i[a],function(e,f){try{var h=b.invoke(e);A(h)?h={compile:q(h)}:!h.compile&&h.link&&(h.compile=q(h.link)),h.priority=h.priority||0,h.index=f,h.name=h.name||a,h.require=g(h);var i=h,j=h.restrict;if(j&&(!w(j)||!/[EACM]/.test(j)))throw of("badrestrict",j,a);i.restrict=j||"EA",h.$$moduleName=e.$$moduleName,d.push(h)}catch(k){c(k)}}),d}])),i[a].push(c)):f(a,h(K)),this},this.component=function N(a,b){function c(a){function c(b){return A(b)||we(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:b}var e=b.template||b.templateUrl?b.template:"",g={controller:d,controllerAs:gc(b.controller)||b.controllerAs||"$ctrl",template:c(e),templateUrl:c(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};return f(b,function(a,b){"$"===b.charAt(0)&&(g[b]=a)}),g}if(!w(a))return f(a,h(O(this,N))),this;var d=b.controller||function(){};return f(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,A(d)&&(d[b]=a))}),c.$inject=["$injector"],this.directive(a,c)},this.aHrefSanitizationWhitelist=function(a){return t(a)?(c.aHrefSanitizationWhitelist(a),this):c.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(a){return t(a)?(c.imgSrcSanitizationWhitelist(a),this):c.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(a){return t(a)?(y=a,this):y};var B=!1;this.preAssignBindingsEnabled=function(a){return t(a)?(B=a,this):B};var C=10;this.onChangesTtl=function(a){return arguments.length?(C=a,this):C};var F=!0;this.commentDirectivesEnabled=function(a){return arguments.length?(F=a,this):F};var G=!0;this.cssClassDirectivesEnabled=function(a){return arguments.length?(G=a,this):G},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(b,c,e,g,h,q,x,H,K,N){function P(){try{if(!--Cb)throw xb=void 0,of("infchng",C);x.$apply(function(){for(var a=[],b=0,c=xb.length;c>b;++b)try{xb[b]()}catch(d){a.push(d)}if(xb=void 0,a.length)throw a})}finally{Cb++}}function Q(a,b){if(b){var c,d,e,f=Object.keys(b);for(c=0,d=f.length;d>c;c++)e=f[c],this[e]=b[e]}else this.$attr={};this.$$element=a}function R(a,b,c){zb.innerHTML="<span "+b+">",b=zb.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name),d.value=c,a.attributes.setNamedItem(d)}function S(a,b){try{a.addClass(b)}catch(c){}}function T(a,b,c,d,e){a instanceof fe||(a=fe(a));var f=V(a,b,a,c,d,e);T.$$addScopeClass(a);var g=null;return function(b,c,d){if(!a)throw of("multilink");fb(b,"scope"),e&&e.needsNewScope&&(b=b.$parent.$new()),d=d||{};var h=d.parentBoundTranscludeFn,i=d.transcludeControllers;if(d=d.futureParentElement,h&&h.$$boundTransclude&&(h=h.$$boundTransclude),g||(g=(d=d&&d[0])&&"foreignobject"!==I(d)&&qe.call(d).match(/SVG/)?"svg":"html"),d="html"!==g?fe(pb(g,fe("<div>").append(a).html())):c?Ve.clone.call(a):a,i)for(var j in i)d.data("$"+j+"Controller",i[j].instance);return T.$$addScopeInfo(d,b),c&&c(d,b),f&&f(b,d,d,h),c||(a=f=null),d}}function V(a,b,c,d,e,f){function g(a,c,d,e){var f,g,h,i,j,k,n;if(l)for(n=Array(c.length),i=0;i<m.length;i+=3)f=m[i],n[f]=c[f];else n=c;for(i=0,j=m.length;j>i;)g=n[m[i++]],c=m[i++],f=m[i++],c?(c.scope?(h=a.$new(),T.$$addScopeInfo(fe(g),h)):h=a,k=c.transcludeOnThisElement?X(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?X(a,b):null,c(f,h,g,d,k)):f&&f(a,g.childNodes,void 0,e)}for(var h,i,j,k,l,m=[],n=we(a)||a instanceof fe,o=0;o<a.length;o++)h=new Q,11===ee&&W(a,o,n),i=Y(a[o],[],h,0===o?d:void 0,e),(f=i.length?bb(i,a[o],h,b,c,null,[],[],f):null)&&f.scope&&T.$$addScopeClass(h.$$element),h=f&&f.terminal||!(j=a[o].childNodes)||!j.length?null:V(j,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b),(f||h)&&(m.push(o,f,h),k=!0,l=l||f),f=null;return k?g:null}function W(a,b,c){var d,e=a[b],f=e.parentNode;if(e.nodeType===He)for(;d=f?e.nextSibling:a[b+1],d&&d.nodeType===He;)e.nodeValue+=d.nodeValue,d.parentNode&&d.parentNode.removeChild(d),c&&d===a[b+1]&&a.splice(b+1,1)}function X(a,b,c){function d(d,e,f,g,h){return d||(d=a.$new(!1,h),d.$$transcluded=!0),b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}var e,f=d.$$slots=kb();for(e in b.$$slots)f[e]=b.$$slots[e]?X(a,b.$$slots[e],c):null;return d}function Y(a,b,c,d,e){var f,g=c.$attr;switch(a.nodeType){case 1:f=I(a),hb(b,dc(f),"E",d,e);for(var h,i,j,k,m=a.attributes,n=0,o=m&&m.length;o>n;n++){var p=!1,q=!1;h=m[n],i=h.name,j=h.value,h=dc(i),(k=Gb.test(h))&&(i=i.replace(qf,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()})),(h=h.match(Hb))&&ib(h[1])&&(p=i,q=i.substr(0,i.length-5)+"end",i=i.substr(0,i.length-6)),h=dc(i.toLowerCase()),g[h]=i,(k||!c.hasOwnProperty(h))&&(c[h]=j,Lb(a,h)&&(c[h]=!0)),rb(a,b,j,h,k),hb(b,h,"A",d,e,p,q)}if("input"===f&&"hidden"===a.getAttribute("type")&&a.setAttribute("autocomplete","off"),!Bb)break;if(g=a.className,u(g)&&(g=g.animVal),w(g)&&""!==g)for(;a=l.exec(g);)h=dc(a[2]),hb(b,h,"C",d,e)&&(c[h]=ye(a[3])),g=g.substr(a.index+a[0].length);break;case He:ob(b,a.nodeValue);break;case 8:if(!Ab)break;Z(a,b,c,d,e)}return b.sort(mb),b}function Z(a,b,c,d,e){try{var f=j.exec(a.nodeValue);if(f){var g=dc(f[1]);hb(b,g,"M",d,e)&&(c[g]=ye(f[2]))}}catch(h){}}function $(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw of("uterdir",b,c);1===a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--),d.push(a),a=a.nextSibling}while(e>0)}else d.push(a);return fe(d)}function _(a,b,c){return function(d,e,f,g,h){return e=$(e[0],b,c),a(d,e,f,g,h)}}function ab(a,b,c,d,e,f){var g;return a?T(b,c,d,e,f):function(){return g||(g=T(b,c,d,e,f),b=c=f=null),g.apply(this,arguments)}}function bb(a,b,c,d,g,h,i,j,l){function m(a,b,c,d){a&&(c&&(a=_(a,c,d)),a.require=o.require,a.directiveName=p,(y===o||o.$$isolateScope)&&(a=tb(a,{isolateScope:!0})),i.push(a)),b&&(c&&(b=_(b,c,d)),b.require=o.require,b.directiveName=p,(y===o||o.$$isolateScope)&&(b=tb(b,{isolateScope:!0})),j.push(b))}function n(a,d,g,h,l){function m(a,b,c,d){var e;if(D(a)||(d=c,c=b,b=a,a=void 0),G&&(e=t),c||(c=G?C.parent():C),!d)return l(a,b,e,c,H);
var f=l.$$slots[d];if(f)return f(a,b,e,c,H);if(s(f))throw of("noslot",d,U(C))}var n,o,p,q,r,t,v,C;b===g?(h=c,C=c.$$element):(C=fe(g),h=new Q(C,c)),r=d,y?q=d.$new(!0):w&&(r=d.$parent),l&&(v=m,v.$$boundTransclude=l,v.isSlotFilled=function(a){return!!l.$$slots[a]}),x&&(t=eb(C,h,v,x,q,d,y)),y&&(T.$$addScopeInfo(C,q,!0,!(z&&(z===y||z===y.$$originalDirective))),T.$$addScopeClass(C,!0),q.$$isolateBindings=y.$$isolateBindings,o=wb(d,h,q,q.$$isolateBindings,y),o.removeWatches&&q.$on("$destroy",o.removeWatches));for(n in t){o=x[n],p=t[n];var E=o.$$bindings.bindToController;if(B){p.bindingInfo=E?wb(r,h,p.instance,E,o):{};var F=p();F!==p.instance&&(p.instance=F,C.data("$"+o.name+"Controller",F),p.bindingInfo.removeWatches&&p.bindingInfo.removeWatches(),p.bindingInfo=wb(r,h,p.instance,E,o))}else p.instance=p(),C.data("$"+o.name+"Controller",p.instance),p.bindingInfo=wb(r,h,p.instance,E,o)}for(f(x,function(a,b){var c=a.require;a.bindToController&&!we(c)&&u(c)&&k(t[b].instance,cb(b,c,C,t))}),f(t,function(a){var b=a.instance;if(A(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(c){e(c)}if(A(b.$onInit))try{b.$onInit()}catch(d){e(d)}A(b.$doCheck)&&(r.$watch(function(){b.$doCheck()}),b.$doCheck()),A(b.$onDestroy)&&r.$on("$destroy",function(){b.$onDestroy()})}),n=0,o=i.length;o>n;n++)p=i[n],ub(p,p.isolateScope?q:d,C,h,p.require&&cb(p.directiveName,p.require,C,t),v);var H=d;for(y&&(y.template||null===y.templateUrl)&&(H=q),a&&a(H,g.childNodes,void 0,l),n=j.length-1;n>=0;n--)p=j[n],ub(p,p.isolateScope?q:d,C,h,p.require&&cb(p.directiveName,p.require,C,t),v);f(t,function(a){a=a.instance,A(a.$postLink)&&a.$postLink()})}l=l||{};for(var o,p,q,r,t,v=-Number.MAX_VALUE,w=l.newScopeDirective,x=l.controllerDirectives,y=l.newIsolateScopeDirective,z=l.templateDirective,C=l.nonTlbTranscludeDirective,E=!1,F=!1,G=l.hasElementTranscludeDirective,H=c.$$element=fe(b),J=d,K=!1,L=!1,M=0,N=a.length;N>M;M++){o=a[M];var P=o.$$start,R=o.$$end;if(P&&(H=$(b,P,R)),q=void 0,v>o.priority)break;if((t=o.scope)&&(o.templateUrl||(u(t)?(nb("new/isolated scope",y||w,o,H),y=o):nb("new/isolated scope",y,o,H)),w=w||o),p=o.name,!K&&(o.replace&&(o.templateUrl||o.template)||o.transclude&&!o.$$tlb)){for(t=M+1;K=a[t++];)if(K.transclude&&!K.$$tlb||K.replace&&(K.templateUrl||K.template)){L=!0;break}K=!0}if(!o.templateUrl&&o.controller&&(x=x||kb(),nb("'"+p+"' controller",x[p],o,H),x[p]=o),t=o.transclude)if(E=!0,o.$$tlb||(nb("transclusion",C,o,H),C=o),"element"===t)G=!0,v=o.priority,q=H,H=c.$$element=fe(T.$$createComment(p,c[p])),b=H[0],sb(g,ne.call(q,0),b),q[0].$$parentNode=q[0].parentNode,J=ab(L,q,d,v,h&&h.name,{nonTlbTranscludeDirective:C});else{var S=kb();if(u(t)){q=[];var V=kb(),W=kb();f(t,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a,V[a]=b,S[b]=null,W[b]=c}),f(H.contents(),function(a){var b=V[dc(I(a))];b?(W[b]=!0,S[b]=S[b]||[],S[b].push(a)):q.push(a)}),f(W,function(a,b){if(!a)throw of("reqslot",b)});for(var X in S)S[X]&&(S[X]=ab(L,S[X],d))}else q=fe(vb(b)).contents();H.empty(),J=ab(L,q,d,void 0,void 0,{needsNewScope:o.$$isolateScope||o.$$newScope}),J.$$slots=S}if(o.template)if(F=!0,nb("template",z,o,H),z=o,t=A(o.template)?o.template(H,c):o.template,t=Fb(t),o.replace){if(h=o,q=Qe.test(t)?fc(pb(o.templateNamespace,ye(t))):[],b=q[0],1!==q.length||1!==b.nodeType)throw of("tplrt",p,"");sb(g,H,b),N={$attr:{}},t=Y(b,[],N);var Z=a.splice(M+1,a.length-(M+1));(y||w)&&gb(t,y,w),a=a.concat(t).concat(Z),jb(c,N),N=a.length}else H.html(t);if(o.templateUrl)F=!0,nb("template",z,o,H),z=o,o.replace&&(h=o),n=lb(a.splice(M,a.length-M),H,c,g,E&&J,i,j,{controllerDirectives:x,newScopeDirective:w!==o&&w,newIsolateScopeDirective:y,templateDirective:z,nonTlbTranscludeDirective:C}),N=a.length;else if(o.compile)try{r=o.compile(H,c,J);var bb=o.$$originalDirective||o;A(r)?m(null,O(bb,r),P,R):r&&m(O(bb,r.pre),O(bb,r.post),P,R)}catch(db){e(db,U(H))}o.terminal&&(n.terminal=!0,v=Math.max(v,o.priority))}return n.scope=w&&!0===w.scope,n.transcludeOnThisElement=E,n.templateOnThisElement=F,n.transclude=J,l.hasElementTranscludeDirective=G,n}function cb(a,b,c,d){var e;if(w(b)){var g=b.match(r);b=b.substring(g[0].length);var h=g[1]||g[3],g="?"===g[2];if("^^"===h?c=c.parent():e=(e=d&&d[b])&&e.instance,!e){var i="$"+b+"Controller";e=h?c.inheritedData(i):c.data(i)}if(!e&&!g)throw of("ctreq",b,a)}else if(we(b))for(e=[],h=0,g=b.length;g>h;h++)e[h]=cb(a,b[h],c,d);else u(b)&&(e={},f(b,function(b,f){e[f]=cb(a,b,c,d)}));return e||null}function eb(a,b,c,d,e,f,g){var h,i=kb();for(h in d){var j=d[h],k={$scope:j===g||j.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},l=j.controller;"@"===l&&(l=b[j.name]),k=q(l,k,!0,j.controllerAs),i[j.name]=k,a.data("$"+j.name+"Controller",k.instance)}return i}function gb(a,b,c){for(var d=0,e=a.length;e>d;d++)a[d]=n(a[d],{$$isolateScope:b,$$newScope:c})}function hb(a,c,e,f,g,h,j){if(c===g)return null;var k=null;if(i.hasOwnProperty(c)){g=b.get(c+"Directive");for(var l=0,m=g.length;m>l;l++)if(c=g[l],(s(f)||f>c.priority)&&-1!==c.restrict.indexOf(e)){if(h&&(c=n(c,{$$start:h,$$end:j})),!c.$$bindings){var o=k=c,p=c.name,q={isolateScope:null,bindToController:null};if(u(o.scope)&&(!0===o.bindToController?(q.bindToController=d(o.scope,p,!0),q.isolateScope={}):q.isolateScope=d(o.scope,p,!1)),u(o.bindToController)&&(q.bindToController=d(o.bindToController,p,!0)),q.bindToController&&!o.controller)throw of("noctrl",p);k=k.$$bindings=q,u(k.isolateScope)&&(c.$$isolateBindings=k.isolateScope)}a.push(c),k=c}}return k}function ib(a){if(i.hasOwnProperty(a))for(var c=b.get(a+"Directive"),d=0,e=c.length;e>d;d++)if(a=c[d],a.multiElement)return!0;return!1}function jb(a,b){var c=b.$attr,d=a.$attr;f(a,function(d,e){"$"!==e.charAt(0)&&(b[e]&&b[e]!==d&&(d=d.length?d+(("style"===e?";":" ")+b[e]):b[e]),a.$set(e,d,!0,c[e]))}),f(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}function lb(a,b,c,d,h,i,j,k){var l,m,o=[],p=b[0],q=a.shift(),r=n(q,{templateUrl:null,transclude:null,replace:null,$$originalDirective:q}),s=A(q.templateUrl)?q.templateUrl(b,c):q.templateUrl,t=q.templateNamespace;return b.empty(),g(s).then(function(e){var g,n;if(e=Fb(e),q.replace){if(e=Qe.test(e)?fc(pb(t,ye(e))):[],g=e[0],1!==e.length||1!==g.nodeType)throw of("tplrt",q.name,s);e={$attr:{}},sb(d,b,g);var v=Y(g,[],e);u(q.scope)&&gb(v,!0),a=v.concat(a),jb(c,e)}else g=p,b.html(e);for(a.unshift(r),l=bb(a,g,c,h,b,q,i,j,k),f(d,function(a,c){a===g&&(d[c]=b[0])}),m=V(b[0].childNodes,h);o.length;){e=o.shift(),n=o.shift();var w=o.shift(),x=o.shift(),v=b[0];if(!e.$$destroyed){if(n!==p){var y=n.className;k.hasElementTranscludeDirective&&q.replace||(v=vb(g)),sb(w,fe(n),v),S(fe(v),y)}n=l.transcludeOnThisElement?X(e,l.transclude,x):x,l(m,e,v,d,n)}}o=null}).catch(function(a){z(a)&&e(a)}),function(a,b,c,d,e){a=e,b.$$destroyed||(o?o.push(b,c,d,a):(l.transcludeOnThisElement&&(a=X(b,l.transclude,e)),l(m,b,c,d,a)))}}function mb(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function nb(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw of("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,U(d))}function ob(a,b){var d=c(b,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;return b&&T.$$addBindingClass(a),function(a,c){var e=c.parent();b||T.$$addBindingClass(e),T.$$addBindingInfo(e,d.expressions),a.$watch(d,function(a){c[0].nodeValue=a})}}})}function pb(b,c){switch(b=le(b||"html")){case"svg":case"math":var d=a.document.createElement("div");return d.innerHTML="<"+b+">"+c+"</"+b+">",d.childNodes[0].childNodes;default:return c}}function qb(a,b){if("srcdoc"===b)return H.HTML;var c=I(a);if("src"===b||"ngSrc"===b){if(-1===["img","video","audio","source","track"].indexOf(c))return H.RESOURCE_URL}else if("xlinkHref"===b||"form"===c&&"action"===b||"link"===c&&"href"===b)return H.RESOURCE_URL}function rb(a,b,d,e,f){var g=qb(a,e),h=m[e]||f,i=c(d,!f,g,h);if(i){if("multiple"===e&&"select"===I(a))throw of("selmulti",U(a));if(v.test(e))throw of("nodomevents");b.push({priority:100,compile:function(){return{pre:function(a,b,f){b=f.$$observers||(f.$$observers=kb());var j=f[e];j!==d&&(i=j&&c(j,!0,g,h),d=j),i&&(f[e]=i(a),(b[e]||(b[e]=[])).$$inter=!0,(f.$$observers&&f.$$observers[e].$$scope||a).$watch(i,function(a,b){"class"===e&&a!==b?f.$updateClass(a,b):f.$set(e,a)}))}}}})}}function sb(b,c,d){var e,f,g=c[0],h=c.length,i=g.parentNode;if(b)for(e=0,f=b.length;f>e;e++)if(b[e]===g){b[e++]=d,f=e+h-1;for(var j=b.length;j>e;e++,f++)j>f?b[e]=b[f]:delete b[e];b.length-=h-1,b.context===g&&(b.context=d);break}for(i&&i.replaceChild(d,g),b=a.document.createDocumentFragment(),e=0;h>e;e++)b.appendChild(c[e]);for(fe.hasData(g)&&(fe.data(d,fe.data(g)),fe(g).off("$destroy")),fe.cleanData(b.querySelectorAll("*")),e=1;h>e;e++)delete c[e];c[0]=d,c.length=1}function tb(a,b){return k(function(){return a.apply(null,arguments)},a,b)}function ub(a,b,c,d,f,g){try{a(b,c,d,f,g)}catch(h){e(h,U(c))}}function wb(a,b,d,e,g){function i(b,c,e){A(d.$onChanges)&&!L(c,e)&&(xb||(a.$$postDigest(P),xb=[]),k||(k={},xb.push(j)),k[b]&&(e=k[b].previousValue),k[b]=new cc(e,c))}function j(){d.$onChanges(k),k=void 0}var k,l=[],m={};return f(e,function(e,f){var j,k,n,p,q=e.attrName,r=e.optional;switch(e.mode){case"@":r||ke.call(b,q)||(d[f]=b[q]=void 0),r=b.$observe(q,function(a){(w(a)||E(a))&&(i(f,a,d[f]),d[f]=a)}),b.$$observers[q].$$scope=a,j=b[q],w(j)?d[f]=c(j)(a):E(j)&&(d[f]=j),m[f]=new cc(pf,d[f]),l.push(r);break;case"=":if(!ke.call(b,q)){if(r)break;b[q]=void 0}if(r&&!b[q])break;k=h(b[q]),p=k.literal?M:L,n=k.assign||function(){throw j=d[f]=k(a),of("nonassign",b[q],q,g.name)},j=d[f]=k(a),r=function(b){return p(b,d[f])||(p(b,j)?n(a,b=d[f]):d[f]=b),j=b},r.$stateful=!0,r=e.collection?a.$watchCollection(b[q],r):a.$watch(h(b[q],r),null,k.literal),l.push(r);break;case"<":if(!ke.call(b,q)){if(r)break;b[q]=void 0}if(r&&!b[q])break;k=h(b[q]);var s=k.literal,t=d[f]=k(a);m[f]=new cc(pf,d[f]),r=a.$watch(k,function(a,b){if(b===a){if(b===t||s&&M(b,t))return;b=t}i(f,a,b),d[f]=a},s),l.push(r);break;case"&":if(k=b.hasOwnProperty(q)?h(b[q]):o,k===o&&r)break;d[f]=function(b){return k(a,b)}}}),{initialChanges:m,removeWatches:l.length&&function(){for(var a=0,b=l.length;b>a;++a)l[a]()}}}var xb,yb=/^\w/,zb=a.document.createElement("div"),Ab=F,Bb=G,Cb=C;Q.prototype={$normalize:dc,$addClass:function(a){a&&0<a.length&&K.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&K.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=ec(a,b);c&&c.length&&K.addClass(this.$$element,c),(c=ec(b,a))&&c.length&&K.removeClass(this.$$element,c)},$set:function(a,b,c,d){var g=Lb(this.$$element[0],a),h=Ye[a],i=a;if(g?(this.$$element.prop(a,b),d=g):h&&(this[h]=b,i=h),this[a]=b,d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=db(a,"-")),g=I(this.$$element),"a"===g&&("href"===a||"xlinkHref"===a)||"img"===g&&"src"===a)this[a]=b=N(b,"src"===a);else if("img"===g&&"srcset"===a&&t(b)){for(var g="",h=ye(b),j=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,j=/\s/.test(h)?j:/(,)/,h=h.split(j),j=Math.floor(h.length/2),k=0;j>k;k++)var l=2*k,g=g+N(ye(h[l]),!0),g=g+(" "+ye(h[l+1]));h=ye(h[2*k]).split(/\s/),g+=N(ye(h[0]),!0),2===h.length&&(g+=" "+ye(h[1])),this[a]=b=g}!1!==c&&(null===b||s(b)?this.$$element.removeAttr(d):yb.test(d)?this.$$element.attr(d,b):R(this.$$element[0],d,b)),(a=this.$$observers)&&f(a[i],function(a){try{a(b)}catch(c){e(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=kb()),e=d[a]||(d[a]=[]);return e.push(b),x.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||s(c[a])||b(c[a])}),function(){J(e,b)}}};var Db=c.startSymbol(),Eb=c.endSymbol(),Fb="{{"===Db&&"}}"===Eb?p:function(a){return a.replace(/\{\{/g,Db).replace(/}}/g,Eb)},Gb=/^ngAttr[A-Z]/,Hb=/^(.+)Start$/;return T.$$addBindingInfo=y?function(a,b){var c=a.data("$binding")||[];we(b)?c=c.concat(b):c.push(b),a.data("$binding",c)}:o,T.$$addBindingClass=y?function(a){S(a,"ng-binding")}:o,T.$$addScopeInfo=y?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:o,T.$$addScopeClass=y?function(a,b){S(a,b?"ng-isolate-scope":"ng-scope")}:o,T.$$createComment=function(b,c){var d="";return y&&(d=" "+(b||"")+": ",c&&(d+=c+" ")),a.document.createComment(d)},T}]}function cc(a,b){this.previousValue=a,this.currentValue=b}function dc(a){return a.replace(qf,"").replace(rf,qb)}function ec(a,b){var c="",d=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g===e[h])continue a;c+=(0<c.length?" ":"")+g}return c}function fc(a){a=fe(a);var b=a.length;if(1>=b)return a;for(;b--;){var c=a[b];(8===c.nodeType||c.nodeType===He&&""===c.nodeValue.trim())&&oe.call(a,b,1)}return a}function gc(a,b){if(b&&w(b))return b;if(w(a)){var c=tf.exec(a);if(c)return c[3]}}function hc(){var a={},b=!1;this.has=function(b){return a.hasOwnProperty(b)},this.register=function(b,c){hb(b,"controller"),u(b)?k(a,b):a[b]=c},this.allowGlobals=function(){b=!0},this.$get=["$injector","$window",function(c,e){function f(a,b,c,e){if(!a||!u(a.$scope))throw d("$controller")("noscp",e,b);a.$scope[b]=c}return function(d,g,h,i){var j,l,m;if(h=!0===h,i&&w(i)&&(m=i),w(d)){if(i=d.match(tf),!i)throw sf("ctrlfmt",d);if(l=i[1],m=m||i[3],d=a.hasOwnProperty(l)?a[l]:ib(g.$scope,l,!0)||(b?ib(e,l,!0):void 0),!d)throw sf("ctrlreg",l);gb(d,l,!0)}return h?(h=(we(d)?d[d.length-1]:d).prototype,j=Object.create(h||null),m&&f(g,m,j,l||d.name),k(function(){var a=c.invoke(d,j,g,l);return a!==j&&(u(a)||A(a))&&(j=a,m&&f(g,m,j,l||d.name)),j},{instance:j,identifier:m})):(j=c.instantiate(d,g,l),m&&f(g,m,j,l||d.name),j)}}]}function ic(){this.$get=["$window",function(a){return fe(a.document)}]}function jc(){this.$get=["$document","$rootScope",function(a,b){function c(){e=d.hidden}var d=a[0],e=d&&d.hidden;return a.on("visibilitychange",c),b.$on("$destroy",function(){a.off("visibilitychange",c)}),function(){return e}}]}function kc(){this.$get=["$log",function(a){return function(){a.error.apply(a,arguments)}}]}function lc(a){return u(a)?y(a)?a.toISOString():Q(a):a}function mc(){this.$get=function(){return function(a){if(!a)return"";var b=[];return g(a,function(a,c){null===a||s(a)||(we(a)?f(a,function(a){b.push(Z(c)+"="+Z(lc(a)))}):b.push(Z(c)+"="+Z(lc(a))))}),b.join("&")}}}function nc(){this.$get=function(){return function(a){function b(a,d,e){null===a||s(a)||(we(a)?f(a,function(a,c){b(a,d+"["+(u(a)?c:"")+"]")}):u(a)&&!y(a)?g(a,function(a,c){b(a,d+(e?"":"[")+c+(e?"":"]"))}):c.push(Z(d)+"="+Z(lc(a))))}if(!a)return"";var c=[];return b(a,"",!0),c.join("&")}}}function oc(a,b){if(w(a)){var c=a.replace(zf,"").trim();if(c){var d=b("Content-Type");if((d=d&&0===d.indexOf(vf))||(d=(d=c.match(xf))&&yf[d[0]].test(c)),d)try{a=R(c)}catch(e){throw Af("baddata",a,e)}}}return a}function pc(a){var b,c=kb();return w(a)?f(a.split("\n"),function(a){b=a.indexOf(":");var d=le(ye(a.substr(0,b)));a=ye(a.substr(b+1)),d&&(c[d]=c[d]?c[d]+", "+a:a)}):u(a)&&f(a,function(a,b){var d=le(b),e=ye(a);d&&(c[d]=c[d]?c[d]+", "+e:e)}),c}function qc(a){var b;return function(c){return b||(b=pc(a)),c?(c=b[le(c)],void 0===c&&(c=null),c):b}}function rc(a,b,c,d){return A(d)?d(a,b,c):(f(d,function(d){a=d(a,b,c)}),a)}function sc(){var a=this.defaults={transformResponse:[oc],transformRequest:[function(a){return u(a)&&"[object File]"!==qe.call(a)&&"[object Blob]"!==qe.call(a)&&"[object FormData]"!==qe.call(a)?Q(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:nb(wf),put:nb(wf),patch:nb(wf)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},b=!1;this.useApplyAsync=function(a){return t(a)?(b=!!a,this):b};var c=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(e,g,h,i,j,l,m,n){function p(b){function c(a,b){for(var c=0,d=b.length;d>c;){var e=b[c++],f=b[c++];a=a.then(e,f)}return b.length=0,a}function g(a,b){var c,d={};return f(a,function(a,e){A(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a}),d}function h(a){var b=k({},a);return b.data=rc(a.data,a.headers,a.status,i.transformResponse),a=a.status,a>=200&&300>a?b:l.reject(b)}if(!u(b))throw d("$http")("badreq",b);if(!w(n.valueOf(b.url)))throw d("$http")("badreq",b.url);var i=k({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer,jsonpCallbackParam:a.jsonpCallbackParam},b);i.headers=function(b){var c,d,e,f=a.headers,h=k({},b.headers),f=k({},f.common,f[le(b.method)]);a:for(c in f){d=le(c);for(e in h)if(le(e)===d)continue a;h[c]=f[c]}return g(h,nb(b))}(b),i.method=me(i.method),i.paramSerializer=w(i.paramSerializer)?m.get(i.paramSerializer):i.paramSerializer,e.$$incOutstandingRequestCount();var j=[],p=[];return b=l.resolve(i),f(y,function(a){(a.request||a.requestError)&&j.unshift(a.request,a.requestError),(a.response||a.responseError)&&p.push(a.response,a.responseError)}),b=c(b,j),b=b.then(function(b){var c=b.headers,d=rc(b.data,qc(c),void 0,b.transformRequest);return s(d)&&f(c,function(a,b){"content-type"===le(b)&&delete c[b]}),s(b.withCredentials)&&!s(a.withCredentials)&&(b.withCredentials=a.withCredentials),q(b,d).then(h,h)}),b=c(b,p),b=b.finally(function(){e.$$completeOutstandingRequest(o)})}function q(c,d){function e(a){if(a){var c={};return f(a,function(a,d){c[d]=function(c){function d(){a(c)}b?j.$applyAsync(d):j.$$phase?d():j.$apply(d)}}),c}}function i(a,c,d,e){function f(){k(c,a,d,e)}q&&(a>=200&&300>a?q.put(E,[a,c,pc(d),e]):q.remove(E)),b?j.$applyAsync(f):(f(),j.$$phase||j.$apply())}function k(a,b,d,e){b=b>=-1?b:0,(b>=200&&300>b?z.resolve:z.reject)({data:a,status:b,headers:qc(d),config:c,statusText:e})}function m(a){k(a.data,a.status,nb(a.headers()),a.statusText)}function o(){var a=p.pendingRequests.indexOf(c);-1!==a&&p.pendingRequests.splice(a,1)}var q,y,z=l.defer(),B=z.promise,C=c.headers,D="jsonp"===le(c.method),E=c.url;return D?E=n.getTrustedResourceUrl(E):w(E)||(E=n.valueOf(E)),E=r(E,c.paramSerializer(c.params)),D&&(E=v(E,c.jsonpCallbackParam)),p.pendingRequests.push(c),B.then(o,o),!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(q=u(c.cache)?c.cache:u(a.cache)?a.cache:x),q&&(y=q.get(E),t(y)?y&&A(y.then)?y.then(m,m):we(y)?k(y[1],y[0],nb(y[2]),y[3]):k(y,200,{},"OK"):q.put(E,B)),s(y)&&((y=md(c.url)?h()[c.xsrfCookieName||a.xsrfCookieName]:void 0)&&(C[c.xsrfHeaderName||a.xsrfHeaderName]=y),g(c.method,E,d,i,C,c.timeout,c.withCredentials,c.responseType,e(c.eventHandlers),e(c.uploadEventHandlers))),B}function r(a,b){return 0<b.length&&(a+=(-1===a.indexOf("?")?"?":"&")+b),a}function v(a,b){if(/[&?][^=]+=JSON_CALLBACK/.test(a))throw Af("badjsonp",a);if(new RegExp("[&?]"+b+"=").test(a))throw Af("badjsonp",b,a);return a+=(-1===a.indexOf("?")?"?":"&")+b+"=JSON_CALLBACK"}var x=i("$http");a.paramSerializer=w(a.paramSerializer)?m.get(a.paramSerializer):a.paramSerializer;var y=[];return f(c,function(a){y.unshift(w(a)?m.get(a):m.invoke(a))}),p.pendingRequests=[],function(){f(arguments,function(a){p[a]=function(b,c){return p(k({},c||{},{method:a,url:b}))}})}("get","delete","head","jsonp"),function(){f(arguments,function(a){p[a]=function(b,c,d){return p(k({},d||{},{method:a,url:b,data:c}))}})}("post","put","patch"),p.defaults=a,p}]}function tc(){this.$get=function(){return function(){return new a.XMLHttpRequest}}}function uc(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(a,b,c,d){return vc(a,d,a.defer,b,c[0])}]}function vc(a,b,c,d,e){function g(a,b,c){a=a.replace("JSON_CALLBACK",b);var f=e.createElement("script"),g=null;return f.type="text/javascript",f.src=a,f.async=!0,g=function(a){f.removeEventListener("load",g),f.removeEventListener("error",g),e.body.removeChild(f),f=null;var h=-1,i="unknown";a&&("load"!==a.type||d.wasCalled(b)||(a={type:"error"}),i=a.type,h="error"===a.type?404:200),c&&c(h,i)},f.addEventListener("load",g),f.addEventListener("error",g),e.body.appendChild(f),g}return function(e,h,i,j,k,l,m,n,o,p){function q(){u&&u(),v&&v.abort()}if(h=h||a.url(),"jsonp"===le(e))var r=d.createCallback(h),u=g(h,r,function(a,b){var e=200===a&&d.getResponse(r);t(x)&&c.cancel(x),u=v=null,j(a,e,"",b),d.removeCallback(r)});else{var v=b(e,h);if(v.open(e,h,!0),f(k,function(a,b){t(a)&&v.setRequestHeader(b,a)}),v.onload=function(){var a=v.statusText||"",b="response"in v?v.response:v.responseText,d=1223===v.status?204:v.status;0===d&&(d=b?200:"file"===ld(h).protocol?404:0);var e=v.getAllResponseHeaders();t(x)&&c.cancel(x),u=v=null,j(d,b,e,a)},e=function(){t(x)&&c.cancel(x),u=v=null,j(-1,null,null,"")},v.onerror=e,v.onabort=e,v.ontimeout=e,f(o,function(a,b){v.addEventListener(b,a)}),f(p,function(a,b){v.upload.addEventListener(b,a)}),m&&(v.withCredentials=!0),n)try{v.responseType=n}catch(w){if("json"!==n)throw w}v.send(s(i)?null:i)}if(l>0)var x=c(q,l);else l&&A(l.then)&&l.then(q)}}function wc(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a},this.endSymbol=function(a){return a?(b=a,this):b},this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(m,a).replace(n,b)}function h(a,b,c,d){var e=a.$watch(function(a){return e(),d(a)},b,c);return e}function i(f,i,m,n){function o(a){try{var b=a;return a=m?e.getTrusted(m,b):e.valueOf(b),n&&!t(a)?a:lb(a)}catch(c){d(Bf.interr(f,c))}}if(!f.length||-1===f.indexOf(a)){var p;return i||(i=g(f),p=q(i),p.exp=f,p.expressions=[],p.$$watchDelegate=h),p}n=!!n;var r,u,v=0,w=[],x=[];p=f.length;for(var y=[],z=[];p>v;){if(-1===(r=f.indexOf(a,v))||-1===(u=f.indexOf(b,r+j))){v!==p&&y.push(g(f.substring(v)));break}v!==r&&y.push(g(f.substring(v,r))),v=f.substring(r+j,u),w.push(v),x.push(c(v,o)),v=u+l,z.push(y.length),y.push("")}if(m&&1<y.length&&Bf.throwNoconcat(f),!i||w.length){var B=function(a){for(var b=0,c=w.length;c>b;b++){if(n&&s(a[b]))return;y[z[b]]=a[b]}return y.join("")};return k(function(a){var b=0,c=w.length,e=Array(c);try{for(;c>b;b++)e[b]=x[b](a);return B(e)}catch(g){d(Bf.interr(f,g))}},{exp:f,expressions:w,$$watchDelegate:function(a,b){var c;return a.$watchGroup(x,function(d,e){var f=B(d);A(b)&&b.call(this,f,d!==e?c:f,a),c=f})}})}}var j=a.length,l=b.length,m=new RegExp(a.replace(/./g,f),"g"),n=new RegExp(b.replace(/./g,f),"g");return i.startSymbol=function(){return a},i.endSymbol=function(){return b},i}]}function xc(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,c,d,e){function f(f,h,i,j){function k(){l?f.apply(null,m):f(p)}var l=4<arguments.length,m=l?ne.call(arguments,4):[],n=b.setInterval,o=b.clearInterval,p=0,q=t(j)&&!j,r=(q?d:c).defer(),s=r.promise;return i=t(i)?i:0,s.$$intervalId=n(function(){q?e.defer(k):a.$evalAsync(k),r.notify(p++),i>0&&p>=i&&(r.resolve(p),o(s.$$intervalId),delete g[s.$$intervalId]),q||a.$apply()},h),g[s.$$intervalId]=r,s}var g={};return f.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].promise.$$state.pur=!0,g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1},f}]}function yc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=Y(a[b]);return a.join("/")}function zc(a,b){var c=ld(a);b.$$protocol=c.protocol,b.$$host=c.hostname,b.$$port=m(c.port)||Ef[c.protocol]||null}function Ac(a,b){if(Gf.test(a))throw Ff("badpath",a);var c="/"!==a.charAt(0);c&&(a="/"+a);var d=ld(a);b.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname),b.$$search=W(d.search),b.$$hash=decodeURIComponent(d.hash),b.$$path&&"/"!==b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function Bc(a,b){return a.slice(0,b.length)===b}function Cc(a,b){return Bc(b,a)?b.substr(a.length):void 0}function Dc(a){var b=a.indexOf("#");return-1===b?a:a.substr(0,b)}function Ec(a){return a.replace(/(#.+)|#$/,"$1")}function Fc(a,b,c){this.$$html5=!0,c=c||"",zc(a,this),this.$$parse=function(a){var c=Cc(b,a);if(!w(c))throw Ff("ipthprfx",a,b);Ac(c,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var a=X(this.$$search),c=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yc(this.$$path)+(a?"?"+a:"")+c,this.$$absUrl=b+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;return t(f=Cc(a,d))?(g=f,g=c&&t(f=Cc(c,f))?b+(Cc("/",f)||f):a+g):t(f=Cc(b,d))?g=b+f:b===d+"/"&&(g=b),g&&this.$$parse(g),!!g}}function Gc(a,b,c){zc(a,this),this.$$parse=function(d){var e,f=Cc(a,d)||Cc(b,d);s(f)||"#"!==f.charAt(0)?this.$$html5?e=f:(e="",s(f)&&(a=d,this.replace())):(e=Cc(c,f),s(e)&&(e=f)),Ac(e,this),d=this.$$path;var f=a,g=/^\/[A-Z]:(\/.*)/;Bc(e,f)&&(e=e.replace(f,"")),g.exec(e)||(d=(e=g.exec(d))?e[1]:d),this.$$path=d,this.$$compose()},this.$$compose=function(){var b=X(this.$$search),d=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yc(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+(this.$$url?c+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(b){return Dc(a)===Dc(b)?(this.$$parse(b),!0):!1}}function Hc(a,b,c){this.$$html5=!0,Gc.apply(this,arguments),this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;return a===Dc(d)?f=d:(g=Cc(b,d))?f=a+c+g:b===d+"/"&&(f=b),f&&this.$$parse(f),!!f},this.$$compose=function(){var b=X(this.$$search),d=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=yc(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+c+this.$$url,this.$$urlUpdatedByLocation=!0}}function Ic(a){return function(){return this[a]}}function Jc(a,b){return function(c){return s(c)?this[a]:(this[a]=b(c),this.$$compose(),this)}}function Kc(){var a="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return t(b)?(a=b,this):a},this.html5Mode=function(a){return E(a)?(b.enabled=a,this):u(a)?(E(a.enabled)&&(b.enabled=a.enabled),E(a.requireBase)&&(b.requireBase=a.requireBase),(E(a.rewriteLinks)||w(a.rewriteLinks))&&(b.rewriteLinks=a.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,g){function h(a,b,c){var e=j.url(),f=j.$$state;try{d.url(a,b,c),j.$$state=d.state()}catch(g){throw j.url(e),j.$$state=f,g}}function i(a,b){c.$broadcast("$locationChangeSuccess",j.absUrl(),a,j.$$state,b)}var j,k;k=d.baseHref();var l,m=d.url();if(b.enabled){if(!k&&b.requireBase)throw Ff("nobase");l=m.substring(0,m.indexOf("/",m.indexOf("//")+2))+(k||"/"),k=e.history?Fc:Hc}else l=Dc(m),k=Gc;var n=l.substr(0,Dc(l).lastIndexOf("/")+1);j=new k(l,n,"#"+a),j.$$parseLinkUrl(m,m),j.$$state=d.state();var o=/^\s*(javascript|mailto):/i;f.on("click",function(a){var e=b.rewriteLinks;if(e&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!==a.which&&2!==a.button){for(var h=fe(a.target);"a"!==I(h[0]);)if(h[0]===f[0]||!(h=h.parent())[0])return;if(!w(e)||!s(h.attr(e))){var e=h.prop("href"),i=h.attr("href")||h.attr("xlink:href");u(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ld(e.animVal).href),o.test(e)||!e||h.attr("target")||a.isDefaultPrevented()||!j.$$parseLinkUrl(e,i)||(a.preventDefault(),j.absUrl()!==d.url()&&(c.$apply(),g.angular["ff-684208-preventDefault"]=!0))}}}),Ec(j.absUrl())!==Ec(m)&&d.url(j.absUrl(),!0);var p=!0;return d.onUrlChange(function(a,b){Bc(a,n)?(c.$evalAsync(function(){var d,e=j.absUrl(),f=j.$$state;a=Ec(a),j.$$parse(a),j.$$state=b,d=c.$broadcast("$locationChangeStart",a,e,b,f).defaultPrevented,j.absUrl()===a&&(d?(j.$$parse(e),j.$$state=f,h(e,!1,f)):(p=!1,i(e,f)))}),c.$$phase||c.$digest()):g.location.href=a}),c.$watch(function(){if(p||j.$$urlUpdatedByLocation){j.$$urlUpdatedByLocation=!1;var a=Ec(d.url()),b=Ec(j.absUrl()),f=d.state(),g=j.$$replace,k=a!==b||j.$$html5&&e.history&&f!==j.$$state;(p||k)&&(p=!1,c.$evalAsync(function(){var b=j.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,j.$$state,f).defaultPrevented;j.absUrl()===b&&(d?(j.$$parse(a),j.$$state=f):(k&&h(b,g,f===j.$$state?null:j.$$state),i(a,f)))}))}j.$$replace=!1}),j}]}function Lc(){var a=!0,b=this;this.debugEnabled=function(b){return t(b)?(a=b,this):a},this.$get=["$window",function(c){function d(a){return z(a)&&(a.stack&&g?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line)),a}function e(a){var b=c.console||{},e=b[a]||b.log||o;return function(){var a=[];return f(arguments,function(b){a.push(d(b))}),Function.prototype.apply.call(e,b,a)}}var g=ee||/\bEdge\//.test(c.navigator&&c.navigator.userAgent);return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Mc(a){return a+""}function Nc(a,b){return"undefined"!=typeof a?a:b}function Oc(a,b){return"undefined"==typeof a?b:"undefined"==typeof b?a:a+b}function Pc(a,b){switch(a.type){case Nf.MemberExpression:if(a.computed)return!1;break;case Nf.UnaryExpression:return 1;case Nf.BinaryExpression:return"+"!==a.operator?1:!1;case Nf.CallExpression:return!1}return void 0===b?Of:b}function Qc(a,b,c){var d,e,g=a.isPure=Pc(a,c);switch(a.type){case Nf.Program:d=!0,f(a.body,function(a){Qc(a.expression,b,g),d=d&&a.expression.constant}),a.constant=d;break;case Nf.Literal:a.constant=!0,a.toWatch=[];break;case Nf.UnaryExpression:Qc(a.argument,b,g),a.constant=a.argument.constant,a.toWatch=a.argument.toWatch;break;case Nf.BinaryExpression:Qc(a.left,b,g),Qc(a.right,b,g),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case Nf.LogicalExpression:Qc(a.left,b,g),Qc(a.right,b,g),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.constant?[]:[a];break;case Nf.ConditionalExpression:Qc(a.test,b,g),Qc(a.alternate,b,g),Qc(a.consequent,b,g),a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant,a.toWatch=a.constant?[]:[a];break;case Nf.Identifier:a.constant=!1,a.toWatch=[a];break;case Nf.MemberExpression:Qc(a.object,b,g),a.computed&&Qc(a.property,b,g),a.constant=a.object.constant&&(!a.computed||a.property.constant),a.toWatch=[a];break;case Nf.CallExpression:d=c=a.filter?!b(a.callee.name).$stateful:!1,e=[],f(a.arguments,function(a){Qc(a,b,g),d=d&&a.constant,a.constant||e.push.apply(e,a.toWatch)}),a.constant=d,a.toWatch=c?e:[a];break;case Nf.AssignmentExpression:Qc(a.left,b,g),Qc(a.right,b,g),a.constant=a.left.constant&&a.right.constant,a.toWatch=[a];break;case Nf.ArrayExpression:d=!0,e=[],f(a.elements,function(a){Qc(a,b,g),d=d&&a.constant,a.constant||e.push.apply(e,a.toWatch)}),a.constant=d,a.toWatch=e;break;case Nf.ObjectExpression:d=!0,e=[],f(a.properties,function(a){Qc(a.value,b,g),d=d&&a.value.constant&&!a.computed,a.value.constant||e.push.apply(e,a.value.toWatch),a.computed&&(Qc(a.key,b,g),a.key.constant||e.push.apply(e,a.key.toWatch))}),a.constant=d,a.toWatch=e;break;case Nf.ThisExpression:a.constant=!1,a.toWatch=[];break;case Nf.LocalsExpression:a.constant=!1,a.toWatch=[]}}function Rc(a){if(1===a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:void 0}}function Sc(a){return a.type===Nf.Identifier||a.type===Nf.MemberExpression}function Tc(a){return 1===a.body.length&&Sc(a.body[0].expression)?{type:Nf.AssignmentExpression,left:a.body[0].expression,right:{type:Nf.NGValueParameter},operator:"="}:void 0}function Uc(a){this.$filter=a}function Vc(a){this.$filter=a}function Wc(a,b,c){this.ast=new Nf(a,c),this.astCompiler=c.csp?new Vc(b):new Uc(b)}function Xc(a){return A(a.valueOf)?a.valueOf():Jf.call(a)}function Yc(){var a,b,c=kb(),d={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(a,b){d[a]=b},this.setIdentifierFns=function(c,d){return a=c,b=d,this},this.$get=["$filter",function(e){function g(a,b,c){return null==a||null==b?a===b:"object"!=typeof a||(a=Xc(a),"object"!=typeof a||c)?a===b||a!==a&&b!==b:!1}function h(a,b,c,d,e){var f,h=d.inputs;if(1===h.length){var i=g,h=h[0];return a.$watch(function(a){var b=h(a);return g(b,i,h.isPure)||(f=d(a,void 0,void 0,[b]),i=b&&Xc(b)),f},b,c,e)}for(var j=[],k=[],l=0,m=h.length;m>l;l++)j[l]=g,k[l]=null;return a.$watch(function(a){for(var b=!1,c=0,e=h.length;e>c;c++){var i=h[c](a);(b||(b=!g(i,j[c],h[c].isPure)))&&(k[c]=i,j[c]=i&&Xc(i))
}return b&&(f=d(a,void 0,void 0,k)),f},b,c,e)}function i(a,b,c,d,e){function f(a){return d(a)}function g(a,c,d){j=a,A(b)&&b(a,c,d),t(a)&&d.$$postDigest(function(){t(j)&&i()})}var i,j;return i=d.inputs?h(a,g,c,d,e):a.$watch(f,g,c)}function j(a,b,c,d){function e(a){var b=!0;return f(a,function(a){t(a)||(b=!1)}),b}var g,h;return g=a.$watch(function(a){return d(a)},function(a,c,d){h=a,A(b)&&b(a,c,d),e(a)&&d.$$postDigest(function(){e(h)&&g()})},c)}function k(a,b,c,d){var e=a.$watch(function(a){return e(),d(a)},b,c);return e}function l(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,e=c!==j&&c!==i?function(c,e,f,g){return f=d&&g?g[0]:a(c,e,f,g),b(f,c,e)}:function(c,d,e,f){return e=a(c,d,e,f),c=b(e,c,d),t(e)?c:e},d=!a.inputs;return c&&c!==h?(e.$$watchDelegate=c,e.inputs=a.inputs):b.$stateful||(e.$$watchDelegate=h,e.inputs=a.inputs?a.inputs:[a]),e.inputs&&(e.inputs=e.inputs.map(function(a){return a.isPure===Of?function(b){return a(b)}:a})),e}var m={csp:Ae().noUnsafeEval,literals:K(d),isIdentifierStart:A(a)&&a,isIdentifierContinue:A(b)&&b};return function(a,b){var d,f,g;switch(typeof a){case"string":return g=a=a.trim(),d=c[g],d||(":"===a.charAt(0)&&":"===a.charAt(1)&&(f=!0,a=a.substring(2)),d=new Mf(m),d=new Wc(d,e,m).parse(a),d.constant?d.$$watchDelegate=k:f?d.$$watchDelegate=d.literal?j:i:d.inputs&&(d.$$watchDelegate=h),c[g]=d),l(d,b);case"function":return l(a,b);default:return l(o,b)}}}]}function Zc(){var a=!0;this.$get=["$rootScope","$exceptionHandler",function(b,c){return _c(function(a){b.$evalAsync(a)},c,a)}],this.errorOnUnhandledRejections=function(b){return t(b)?(a=b,this):a}}function $c(){var a=!0;this.$get=["$browser","$exceptionHandler",function(b,c){return _c(function(a){b.defer(a)},c,a)}],this.errorOnUnhandledRejections=function(b){return t(b)?(a=b,this):a}}function _c(a,b,c){function e(){return new g}function g(){var a=this.promise=new h;this.resolve=function(b){l(a,b)},this.reject=function(b){n(a,b)},this.notify=function(b){p(a,b)}}function h(){this.$$state={status:0}}function i(){for(;!x&&y.length;){var a=y.shift();if(!a.pur){a.pur=!0;var c=a.value,c="Possibly unhandled rejection: "+("function"==typeof c?c.toString().replace(/ \{[\s\S]*$/,""):s(c)?"undefined":"string"!=typeof c?ob(c,void 0):c);z(a.value)?b(a.value,c):b(c)}}}function j(b){!c||b.pending||2!==b.status||b.pur||(0===x&&0===y.length&&a(i),y.push(b)),!b.processScheduled&&b.pending&&(b.processScheduled=!0,++x,a(function(){var d,e,f;f=b.pending,b.processScheduled=!1,b.pending=void 0;try{for(var g=0,h=f.length;h>g;++g){b.pur=!0,e=f[g][0],d=f[g][b.status];try{A(d)?l(e,d(b.value)):1===b.status?l(e,b.value):n(e,b.value)}catch(j){n(e,j)}}}finally{--x,c&&0===x&&a(i)}}))}function l(a,b){a.$$state.status||(b===a?o(a,w("qcycle",b)):m(a,b))}function m(a,b){function c(b){g||(g=!0,m(a,b))}function d(b){g||(g=!0,o(a,b))}function e(b){p(a,b)}var f,g=!1;try{(u(b)||A(b))&&(f=b.then),A(f)?(a.$$state.status=-1,f.call(b,c,d,e)):(a.$$state.value=b,a.$$state.status=1,j(a.$$state))}catch(h){d(h)}}function n(a,b){a.$$state.status||o(a,b)}function o(a,b){a.$$state.value=b,a.$$state.status=2,j(a.$$state)}function p(c,d){var e=c.$$state.pending;0>=c.$$state.status&&e&&e.length&&a(function(){for(var a,c,f=0,g=e.length;g>f;f++){c=e[f][0],a=e[f][3];try{p(c,A(a)?a(d):d)}catch(h){b(h)}}})}function q(a){var b=new h;return n(b,a),b}function r(a,b,c){var d=null;try{A(c)&&(d=c())}catch(e){return q(e)}return d&&A(d.then)?d.then(function(){return b(a)},q):b(a)}function t(a,b,c,d){var e=new h;return l(e,a),e.then(b,c,d)}function v(a){if(!A(a))throw w("norslvr",a);var b=new h;return a(function(a){l(b,a)},function(a){n(b,a)}),b}var w=d("$q",TypeError),x=0,y=[];k(h.prototype,{then:function(a,b,c){if(s(a)&&s(b)&&s(c))return this;var d=new h;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([d,a,b,c]),0<this.$$state.status&&j(this.$$state),d},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return r(b,B,a)},function(b){return r(b,q,a)},b)}});var B=t;return v.prototype=h.prototype,v.defer=e,v.reject=q,v.when=t,v.resolve=B,v.all=function(a){var b=new h,c=0,d=we(a)?[]:{};return f(a,function(a,e){c++,t(a).then(function(a){d[e]=a,--c||l(b,d)},function(a){n(b,a)})}),0===c&&l(b,d),b},v.race=function(a){var b=e();return f(a,function(a){t(a).then(b.resolve,b.reject)}),b.promise},v}function ad(){this.$get=["$window","$timeout",function(a,b){var c=a.requestAnimationFrame||a.webkitRequestAnimationFrame,d=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};return f.supported=e,f}]}function bd(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++ue,this.$$ChildScope=null}return b.prototype=a,b}var b=10,c=d("$rootScope"),g=null,h=null;this.digestTtl=function(a){return arguments.length&&(b=a),b},this.$get=["$exceptionHandler","$parse","$browser",function(d,i,j){function k(a){a.currentScope.$$destroyed=!0}function l(a){9===ee&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling)),a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++ue,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function n(a){if(w.$$phase)throw c("inprog",w.$$phase);w.$$phase=a}function p(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function q(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function r(){}function t(){for(;z.length;)try{z.shift()()}catch(a){d(a)}h=null}function v(){null===h&&(h=j.defer(function(){w.$apply(t)}))}m.prototype={constructor:m,$new:function(b,c){var d;return c=c||this,b?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope),d.$parent=c,d.$$prevSibling=c.$$childTail,c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d,(b||c!==this)&&d.$on("$destroy",k),d},$watch:function(a,b,c,d){var e=i(a);if(e.$$watchDelegate)return e.$$watchDelegate(this,b,c,e,a);var f=this,h=f.$$watchers,j={fn:b,last:r,get:e,exp:d||a,eq:!!c};return g=null,A(b)||(j.fn=o),h||(h=f.$$watchers=[],h.$$digestWatchIndex=-1),h.unshift(j),h.$$digestWatchIndex++,p(this,1),function(){var a=J(h,j);a>=0&&(p(f,-1),a<h.$$digestWatchIndex&&h.$$digestWatchIndex--),g=null}},$watchGroup:function(a,b){function c(){i=!1,j?(j=!1,b(e,e,h)):b(e,d,h)}var d=Array(a.length),e=Array(a.length),g=[],h=this,i=!1,j=!0;if(!a.length){var k=!0;return h.$evalAsync(function(){k&&b(e,e,h)}),function(){k=!1}}return 1===a.length?this.$watch(a[0],function(a,c,f){e[0]=a,d[0]=c,b(e,a===c?e:d,f)}):(f(a,function(a,b){var f=h.$watch(a,function(a,f){e[b]=a,d[b]=f,i||(i=!0,h.$evalAsync(c))});g.push(f)}),function(){for(;g.length;)g.shift()()})},$watchCollection:function(a,b){function c(a){d=a;var b,c,g,h;if(!s(d)){if(u(d))if(e(d))for(f!==m&&(f=m,p=f.length=0,k++),a=d.length,p!==a&&(k++,f.length=p=a),b=0;a>b;b++)h=f[b],g=d[b],c=h!==h&&g!==g,c||h===g||(k++,f[b]=g);else{f!==n&&(f=n={},p=0,k++),a=0;for(b in d)ke.call(d,b)&&(a++,g=d[b],h=f[b],b in f?(c=h!==h&&g!==g,c||h===g||(k++,f[b]=g)):(p++,f[b]=g,k++));if(p>a)for(b in k++,f)ke.call(d,b)||(p--,delete f[b])}else f!==d&&(f=d,k++);return k}}c.$stateful=!0;var d,f,g,h=this,j=1<b.length,k=0,l=i(a,c),m=[],n={},o=!0,p=0;return this.$watch(l,function(){if(o?(o=!1,b(d,d,h)):b(d,g,h),j)if(u(d))if(e(d)){g=Array(d.length);for(var a=0;a<d.length;a++)g[a]=d[a]}else for(a in g={},d)ke.call(d,a)&&(g[a]=d[a]);else g=d})},$digest:function(){var a,e,f,i,k,l,m,o,p,q,s=b,u=[];n("$digest"),j.$$checkUrlChange(),this===w&&null!==h&&(j.defer.cancel(h),t()),g=null;do{for(m=!1,o=this,l=0;l<x.length;l++){try{q=x[l],(i=q.fn)(q.scope,q.locals)}catch(v){d(v)}g=null}x.length=0;a:do{if(l=o.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(a=l[l.$$digestWatchIndex])if(k=a.get,(e=k(o))===(f=a.last)||(a.eq?M(e,f):ve(e)&&ve(f))){if(a===g){m=!1;break a}}else m=!0,g=a,a.last=a.eq?K(e,null):e,i=a.fn,i(e,f===r?e:f,o),5>s&&(p=4-s,u[p]||(u[p]=[]),u[p].push({msg:A(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:e,oldVal:f}))}catch(z){d(z)}if(!(l=o.$$watchersCount&&o.$$childHead||o!==this&&o.$$nextSibling))for(;o!==this&&!(l=o.$$nextSibling);)o=o.$parent}while(o=l);if((m||x.length)&&!s--)throw w.$$phase=null,c("infdig",b,u)}while(m||x.length);for(w.$$phase=null;B<y.length;)try{y[B++]()}catch(C){d(C)}y.length=B=0,j.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===w&&j.$$applicationDestroyed(),p(this,-this.$$watchersCount);for(var b in this.$$listenerCount)q(this,this.$$listenerCount[b],b);a&&a.$$childHead===this&&(a.$$childHead=this.$$nextSibling),a&&a.$$childTail===this&&(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=o,this.$on=this.$watch=this.$watchGroup=function(){return o},this.$$listeners={},this.$$nextSibling=null,l(this)}},$eval:function(a,b){return i(a)(this,b)},$evalAsync:function(a,b){w.$$phase||x.length||j.defer(function(){x.length&&w.$digest()}),x.push({scope:this,fn:i(a),locals:b})},$$postDigest:function(a){y.push(a)},$apply:function(a){try{n("$apply");try{return this.$eval(a)}finally{w.$$phase=null}}catch(b){d(b)}finally{try{w.$digest()}catch(c){throw d(c),c}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&z.push(b),a=i(a),v()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]),c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,q(e,1,a))}},$emit:function(a){var b,c,e,f=[],g=this,h=!1,i={name:a,targetScope:g,stopPropagation:function(){h=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},j=N([i],arguments,1);do{for(b=g.$$listeners[a]||f,i.currentScope=g,c=0,e=b.length;e>c;c++)if(b[c])try{b[c].apply(null,j)}catch(k){d(k)}else b.splice(c,1),c--,e--;if(h)return i.currentScope=null,i;g=g.$parent}while(g);return i.currentScope=null,i},$broadcast:function(a){var b=this,c=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f,g,h=N([e],arguments,1);b=c;){for(e.currentScope=b,c=b.$$listeners[a]||[],f=0,g=c.length;g>f;f++)if(c[f])try{c[f].apply(null,h)}catch(i){d(i)}else c.splice(f,1),f--,g--;if(!(c=b.$$listenerCount[a]&&b.$$childHead||b!==this&&b.$$nextSibling))for(;b!==this&&!(c=b.$$nextSibling);)b=b.$parent}return e.currentScope=null,e}};var w=new m,x=w.$$asyncQueue=[],y=w.$$postDigestQueue=[],z=w.$$applyAsyncQueue=[],B=0;return w}]}function cd(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return t(b)?(a=b,this):a},this.imgSrcSanitizationWhitelist=function(a){return t(a)?(b=a,this):b},this.$get=function(){return function(c,d){var e,f=d?b:a;return e=ld(c).href,""===e||e.match(f)?c:"unsafe:"+e}}}function dd(a){if("self"===a)return a;if(w(a)){if(-1<a.indexOf("***"))throw Pf("iwcard",a);return a=ze(a).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+a+"$")}if(B(a))return new RegExp("^"+a.source+"$");throw Pf("imatcher")}function ed(a){var b=[];return t(a)&&f(a,function(a){b.push(dd(a))}),b}function fd(){this.SCE_CONTEXTS=Qf;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){return arguments.length&&(a=ed(b)),a},this.resourceUrlBlacklist=function(a){return arguments.length&&(b=ed(a)),b},this.$get=["$injector",function(c){function d(a,b){return"self"===a?md(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};return a&&(b.prototype=new a),b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},b}var f=function(){throw Pf("unsafe")};c.has("$sanitize")&&(f=c.get("$sanitize"));var g=e(),h={};return h[Qf.HTML]=e(g),h[Qf.CSS]=e(g),h[Qf.URL]=e(g),h[Qf.JS]=e(g),h[Qf.RESOURCE_URL]=e(h[Qf.URL]),{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw Pf("icontext",a,b);if(null===b||s(b)||""===b)return b;if("string"!=typeof b)throw Pf("itype",a);return new c(b)},getTrusted:function(c,e){if(null===e||s(e)||""===e)return e;var g=h.hasOwnProperty(c)?h[c]:null;if(g&&e instanceof g)return e.$$unwrapTrustedValue();if(c===Qf.RESOURCE_URL){var i,j,g=ld(e.toString()),k=!1;for(i=0,j=a.length;j>i;i++)if(d(a[i],g)){k=!0;break}if(k)for(i=0,j=b.length;j>i;i++)if(d(b[i],g)){k=!1;break}if(k)return e;throw Pf("insecurl",e.toString())}if(c===Qf.HTML)return f(e);throw Pf("unsafe")},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function gd(){var a=!0;this.enabled=function(b){return arguments.length&&(a=!!b),a},this.$get=["$parse","$sceDelegate",function(b,c){if(a&&8>ee)throw Pf("iequirks");var d=nb(Qf);d.isEnabled=function(){return a},d.trustAs=c.trustAs,d.getTrusted=c.getTrusted,d.valueOf=c.valueOf,a||(d.trustAs=d.getTrusted=function(a,b){return b},d.valueOf=p),d.parseAs=function(a,c){var e=b(c);return e.literal&&e.constant?e:b(c,function(b){return d.getTrusted(a,b)})};var e=d.parseAs,g=d.getTrusted,h=d.trustAs;return f(Qf,function(a,b){var c=le(b);d[("parse_as_"+c).replace(Rf,qb)]=function(b){return e(a,b)},d[("get_trusted_"+c).replace(Rf,qb)]=function(b){return g(a,b)},d[("trust_as_"+c).replace(Rf,qb)]=function(b){return h(a,b)}}),d}]}function hd(){this.$get=["$window","$document",function(a,b){var c={},d=!((!a.nw||!a.nw.process)&&a.chrome&&(a.chrome.app&&a.chrome.app.runtime||!a.chrome.app&&a.chrome.runtime&&a.chrome.runtime.id))&&a.history&&a.history.pushState,e=m((/android (\d+)/.exec(le((a.navigator||{}).userAgent))||[])[1]),f=/Boxee/i.test((a.navigator||{}).userAgent),g=b[0]||{},h=g.body&&g.body.style,i=!1,j=!1;return h&&(i=!!("transition"in h||"webkitTransition"in h),j=!!("animation"in h||"webkitAnimation"in h)),{history:!(!d||4>e||f),hasEvent:function(a){if("input"===a&&ee)return!1;if(s(c[a])){var b=g.createElement("div");c[a]="on"+a in b}return c[a]},csp:Ae(),transitions:i,animations:j,android:e}}]}function id(){var a;this.httpOptions=function(b){return b?(a=b,this):a},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(b,c,d,e,f){function g(h,i){g.totalPendingRequests++,(!w(h)||s(c.get(h)))&&(h=f.getTrustedResourceUrl(h));var j=d.defaults&&d.defaults.transformResponse;return we(j)?j=j.filter(function(a){return a!==oc}):j===oc&&(j=null),d.get(h,k({cache:c,transformResponse:j},a)).finally(function(){g.totalPendingRequests--}).then(function(a){return c.put(h,a.data),a.data},function(a){return i||(a=Sf("tpload",h,a.status,a.statusText),b(a)),e.reject(a)})}return g.totalPendingRequests=0,g}]}function jd(){this.$get=["$rootScope","$browser","$location",function(a,b,c){return{findBindings:function(a,b,c){a=a.getElementsByClassName("ng-binding");var d=[];return f(a,function(a){var e=te.element(a).data("$binding");e&&f(e,function(e){c?new RegExp("(^|\\s)"+ze(b)+"(\\s|\\||$)").test(e)&&d.push(a):-1!==e.indexOf(b)&&d.push(a)})}),d},findModels:function(a,b,c){for(var d=["ng-","data-ng-","ng\\:"],e=0;e<d.length;++e){var f=a.querySelectorAll("["+d[e]+"model"+(c?"=":"*=")+'"'+b+'"]');if(f.length)return f}},getLocation:function(){return c.url()},setLocation:function(b){b!==c.url()&&(c.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function kd(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,c,d,e){function f(f,h,i){A(f)||(i=h,h=f,f=o);var j,k=ne.call(arguments,3),l=t(i)&&!i,m=(l?d:c).defer(),n=m.promise;return j=b.defer(function(){try{m.resolve(f.apply(null,k))}catch(b){m.reject(b),e(b)}finally{delete g[n.$$timeoutId]}l||a.$apply()},h),n.$$timeoutId=j,g[j]=m,n}var g={};return f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].promise.$$state.pur=!0,g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1},f}]}function ld(a){return ee&&(Tf.setAttribute("href",a),a=Tf.href),Tf.setAttribute("href",a),{href:Tf.href,protocol:Tf.protocol?Tf.protocol.replace(/:$/,""):"",host:Tf.host,search:Tf.search?Tf.search.replace(/^\?/,""):"",hash:Tf.hash?Tf.hash.replace(/^#/,""):"",hostname:Tf.hostname,port:Tf.port,pathname:"/"===Tf.pathname.charAt(0)?Tf.pathname:"/"+Tf.pathname}}function md(a){return a=w(a)?ld(a):a,a.protocol===Uf.protocol&&a.host===Uf.host}function nd(){this.$get=q(a)}function od(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var c=a[0]||{},d={},e="";return function(){var a,f,g,h,i;try{a=c.cookie||""}catch(j){a=""}if(a!==e)for(e=a,a=e.split("; "),d={},g=0;g<a.length;g++)f=a[g],h=f.indexOf("="),h>0&&(i=b(f.substring(0,h)),s(d[i])&&(d[i]=b(f.substring(h+1))));return d}}function pd(){this.$get=od}function qd(a){function b(c,d){if(u(c)){var e={};return f(c,function(a,c){e[c]=b(c,a)}),e}return a.factory(c+"Filter",d)}this.register=b,this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}],b("currency",vd),b("date",Gd),b("filter",rd),b("json",Hd),b("limitTo",Id),b("lowercase",_f),b("number",wd),b("orderBy",Kd),b("uppercase",ag)}function rd(){return function(a,b,c,f){if(!e(a)){if(null==a)return a;throw d("filter")("notarray",a)}f=f||"$";var g;switch(ud(b)){case"function":break;case"boolean":case"null":case"number":case"string":g=!0;case"object":b=sd(b,c,f,g);break;default:return a}return Array.prototype.filter.call(a,b)}}function sd(a,b,c,d){var e=u(a)&&c in a;return!0===b?b=M:A(b)||(b=function(a,b){return s(a)?!1:null===a||null===b?a===b:u(b)||u(a)&&!r(a)?!1:(a=le(""+a),b=le(""+b),-1!==a.indexOf(b))}),function(f){return e&&!u(f)?td(f,a[c],b,c,!1):td(f,a,b,c,d)}}function td(a,b,c,d,e,f){var g=ud(a),h=ud(b);if("string"===h&&"!"===b.charAt(0))return!td(a,b.substring(1),c,d,e);if(we(a))return a.some(function(a){return td(a,b,c,d,e)});switch(g){case"object":var i;if(e){for(i in a)if(i.charAt&&"$"!==i.charAt(0)&&td(a[i],b,c,d,!0))return!0;return f?!1:td(a,b,c,d,!1)}if("object"===h){for(i in b)if(f=b[i],!A(f)&&!s(f)&&(g=i===d,!td(g?a:a[i],f,c,d,g,g)))return!1;return!0}return c(a,b);case"function":return!1;default:return c(a,b)}}function ud(a){return null===a?"null":typeof a}function vd(a){var b=a.NUMBER_FORMATS;return function(a,c,d){return s(c)&&(c=b.CURRENCY_SYM),s(d)&&(d=b.PATTERNS[1].maxFrac),null==a?a:zd(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,d).replace(/\u00A4/g,c)}}function wd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:zd(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function xd(a){var b,c,d,e,f,g=0;for(-1<(c=a.indexOf(Wf))&&(a=a.replace(Wf,"")),0<(d=a.search(/e/i))?(0>c&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):0>c&&(c=a.length),d=0;a.charAt(d)===Xf;d++);if(d===(f=a.length))b=[0],c=1;else{for(f--;a.charAt(f)===Xf;)f--;for(c-=d,b=[],e=0;f>=d;d++,e++)b[e]=+a.charAt(d)}return c>Vf&&(b=b.splice(0,Vf-1),g=c-1,c=1),{d:b,e:g,i:c}}function yd(a,b,c,d){var e=a.d,f=e.length-a.i;if(b=s(b)?Math.min(Math.max(c,f),d):+b,c=b+a.i,d=e[c],c>0){e.splice(Math.max(a.i,c));for(var g=c;g<e.length;g++)e[g]=0}else for(f=Math.max(0,f),a.i=1,e.length=Math.max(1,c=b+1),e[0]=0,g=1;c>g;g++)e[g]=0;if(d>=5)if(0>c-1){for(d=0;d>c;d--)e.unshift(0),a.i++;e.unshift(1),a.i++}else e[c-1]++;for(;f<Math.max(0,b);f++)e.push(0);(b=e.reduceRight(function(a,b,c,d){return b+=a,d[c]=b%10,Math.floor(b/10)},0))&&(e.unshift(b),a.i++)}function zd(a,b,c,d,e){if(!w(a)&&!x(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,h=Math.abs(a)+"",i="";if(f)i="∞";else{for(g=xd(h),yd(g,e,b.minFrac,b.maxFrac),i=g.d,h=g.i,e=g.e,f=[],g=i.reduce(function(a,b){return a&&!b},!0);0>h;)i.unshift(0),h++;for(h>0?f=i.splice(h,i.length):(f=i,i=[0]),h=[],i.length>=b.lgSize&&h.unshift(i.splice(-b.lgSize,i.length).join(""));i.length>b.gSize;)h.unshift(i.splice(-b.gSize,i.length).join(""));i.length&&h.unshift(i.join("")),i=h.join(c),f.length&&(i+=d+f.join("")),e&&(i+="e+"+e)}return 0>a&&!g?b.negPre+i+b.negSuf:b.posPre+i+b.posSuf}function Ad(a,b,c,d){var e="";for((0>a||d&&0>=a)&&(d?a=-a+1:(a=-a,e="-")),a=""+a;a.length<b;)a=Xf+a;return c&&(a=a.substr(a.length-b)),e+a}function Bd(a,b,c,d,e){return c=c||0,function(f){return f=f["get"+a](),(c>0||f>-c)&&(f+=c),0===f&&-12===c&&(f=12),Ad(f,b,d,e)}}function Cd(a,b,c){return function(d,e){var f=d["get"+a](),g=me((c?"STANDALONE":"")+(b?"SHORT":"")+a);return e[g][f]}}function Dd(a){var b=new Date(a,0,1).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Ed(a){return function(b){var c=Dd(b.getFullYear());return b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+c,b=1+Math.round(b/6048e5),Ad(b,a)}}function Fd(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Gd(a){function b(a){var b;if(b=a.match(c)){a=new Date(0);var d=0,e=0,f=b[8]?a.setUTCFullYear:a.setFullYear,g=b[8]?a.setUTCHours:a.setHours;b[9]&&(d=m(b[9]+b[10]),e=m(b[9]+b[11])),f.call(a,m(b[1]),m(b[2])-1,m(b[3])),d=m(b[4]||0)-d,e=m(b[5]||0)-e,f=m(b[6]||0),b=Math.round(1e3*parseFloat("0."+(b[7]||0))),g.call(a,d,e,f,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,e){var g,h,i="",j=[];if(d=d||"mediumDate",d=a.DATETIME_FORMATS[d]||d,w(c)&&(c=$f.test(c)?m(c):b(c)),x(c)&&(c=new Date(c)),!y(c)||!isFinite(c.getTime()))return c;for(;d;)(h=Zf.exec(d))?(j=N(j,h,1),d=j.pop()):(j.push(d),d=null);var k=c.getTimezoneOffset();return e&&(k=S(e,k),c=T(c,e,!0)),f(j,function(b){g=Yf[b],i+=g?g(c,a.DATETIME_FORMATS,k):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i}}function Hd(){return function(a,b){return s(b)&&(b=2),Q(a,b)}}function Id(){return function(a,b,c){return b=1/0===Math.abs(Number(b))?Number(b):m(b),ve(b)?a:(x(a)&&(a=a.toString()),e(a)?(c=!c||isNaN(c)?0:m(c),c=0>c?Math.max(0,a.length+c):c,b>=0?Jd(a,c,c+b):0===c?Jd(a,b,a.length):Jd(a,Math.max(0,c+b),c)):a)}}function Jd(a,b,c){return w(a)?a.slice(b,c):ne.call(a,b,c)}function Kd(a){function b(b){return b.map(function(b){var c=1,d=p;if(A(b))d=b;else if(w(b)&&(("+"===b.charAt(0)||"-"===b.charAt(0))&&(c="-"===b.charAt(0)?-1:1,b=b.substring(1)),""!==b&&(d=a(b),d.constant)))var e=d(),d=function(a){return a[e]};return{get:d,descending:c}})}function c(a){switch(typeof a){case"number":case"boolean":case"string":return!0;default:return!1}}function f(a,b){var c=0,d=a.type,e=b.type;if(d===e){var e=a.value,f=b.value;"string"===d?(e=e.toLowerCase(),f=f.toLowerCase()):"object"===d&&(u(e)&&(e=a.index),u(f)&&(f=b.index)),e!==f&&(c=f>e?-1:1)}else c=e>d?-1:1;return c}return function(a,g,h,i){if(null==a)return a;if(!e(a))throw d("orderBy")("notarray",a);we(g)||(g=[g]),0===g.length&&(g=["+"]);var j=b(g),k=h?-1:1,l=A(i)?i:f;return a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:j.map(function(d){var e=d.get(a);return d=typeof e,null===e?(d="string",e="null"):"object"===d&&(A(e.valueOf)&&(e=e.valueOf(),c(e))||r(e)&&(e=e.toString(),c(e))),{value:e,type:d,index:b}})}}),a.sort(function(a,b){for(var c=0,d=j.length;d>c;c++){var e=l(a.predicateValues[c],b.predicateValues[c]);if(e)return e*j[c].descending*k}return(l(a.tieBreaker,b.tieBreaker)||f(a.tieBreaker,b.tieBreaker))*k}),a=a.map(function(a){return a.value})}}function Ld(a){return A(a)&&(a={link:a}),a.restrict=a.restrict||"AC",q(a)}function Md(a,b,c,d,e){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=e(b.name||b.ngForm||"")(c),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=dg,this.$$element=a,this.$$animate=d,Nd(this)}function Nd(a){a.$$classCache={},a.$$classCache[Mg]=!(a.$$classCache[Lg]=a.$$element.hasClass(Lg))}function Od(a){function b(a,b,c){c&&!a.$$classCache[b]?(a.$$animate.addClass(a.$$element,b),a.$$classCache[b]=!0):!c&&a.$$classCache[b]&&(a.$$animate.removeClass(a.$$element,b),a.$$classCache[b]=!1)}function c(a,c,d){c=c?"-"+db(c,"-"):"",b(a,Lg+c,!0===d),b(a,Mg+c,!1===d)}var d=a.set,e=a.unset;a.clazz.prototype.$setValidity=function(a,f,g){s(f)?(this.$pending||(this.$pending={}),d(this.$pending,a,g)):(this.$pending&&e(this.$pending,a,g),Pd(this.$pending)&&(this.$pending=void 0)),E(f)?f?(e(this.$error,a,g),d(this.$$success,a,g)):(d(this.$error,a,g),e(this.$$success,a,g)):(e(this.$error,a,g),e(this.$$success,a,g)),this.$pending?(b(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(b(this,"ng-pending",!1),this.$valid=Pd(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),f=this.$pending&&this.$pending[a]?void 0:this.$error[a]?!1:this.$$success[a]?!0:null,c(this,a,f),this.$$parentForm.$setValidity(a,f,this)}}function Pd(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function Qd(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function Rd(a,b,c,d,e,f){var g=le(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(){h=!0}),b.on("compositionend",function(){h=!1,j()})}var i,j=function(a){if(i&&(f.defer.cancel(i),i=null),!h){var e=b.val();a=a&&a.type,"password"===g||c.ngTrim&&"false"===c.ngTrim||(e=ye(e)),(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",j);else{var k=function(a,b,c){i||(i=f.defer(function(){i=null,b&&b.value===c||j(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||b>15&&19>b||b>=37&&40>=b||k(a,this,this.value)}),e.hasEvent("paste")&&b.on("paste cut",k)}b.on("change",j),qg[g]&&d.$$hasNativeValidators&&g===c.type&&b.on("keydown wheel mousedown",function(a){if(!i){var b=this.validity,c=b.badInput,d=b.typeMismatch;i=f.defer(function(){i=null,b.badInput===c&&b.typeMismatch===d||j(a)})}}),d.$render=function(){var a=d.$isEmpty(d.$viewValue)?"":d.$viewValue;b.val()!==a&&b.val(a)}}function Sd(a,b){return function(c,d){var e,g;if(y(c))return c;if(w(c)){if('"'===c.charAt(0)&&'"'===c.charAt(c.length-1)&&(c=c.substring(1,c.length-1)),hg.test(c))return new Date(c);if(a.lastIndex=0,e=a.exec(c))return e.shift(),g=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,dd:d.getDate(),HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},f(e,function(a,c){c<b.length&&(g[b[c]]=+a)}),new Date(g.yyyy,g.MM-1,g.dd,g.HH,g.mm,g.ss||0,1e3*g.sss||0)}return 0/0}}function Td(a,b,c,d){return function(e,f,g,h,i,j,k){function l(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function m(a){return t(a)&&!y(a)?c(a)||void 0:a}Ud(e,f,g,h),Rd(e,f,g,h,i,j);var n,o=h&&h.$options.getOption("timezone");if(h.$$parserName=a,h.$parsers.push(function(a){return h.$isEmpty(a)?null:b.test(a)?(a=c(a,n),o&&(a=T(a,o)),a):void 0}),h.$formatters.push(function(a){if(a&&!y(a))throw Pg("datefmt",a);return l(a)?((n=a)&&o&&(n=T(n,o,!0)),k("date")(a,d,o)):(n=null,"")}),t(g.min)||g.ngMin){var p;h.$validators.min=function(a){return!l(a)||s(p)||c(a)>=p},g.$observe("min",function(a){p=m(a),h.$validate()})}if(t(g.max)||g.ngMax){var q;h.$validators.max=function(a){return!l(a)||s(q)||c(a)<=q},g.$observe("max",function(a){q=m(a),h.$validate()})}}}function Ud(a,b,c,d){(d.$$hasNativeValidators=u(b[0].validity))&&d.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput||c.typeMismatch?void 0:a})}function Vd(a){a.$$parserName="number",a.$parsers.push(function(b){return a.$isEmpty(b)?null:kg.test(b)?parseFloat(b):void 0}),a.$formatters.push(function(b){if(!a.$isEmpty(b)){if(!x(b))throw Pg("numfmt",b);b=b.toString()}return b})}function Wd(a){return t(a)&&!x(a)&&(a=parseFloat(a)),ve(a)?void 0:a}function Xd(a){var b=a.toString(),c=b.indexOf(".");return-1===c?a>-1&&1>a&&(a=/e-(\d+)$/.exec(b))?Number(a[1]):0:b.length-c-1}function Yd(a,b,c){a=Number(a);var d=(0|a)!==a,e=(0|b)!==b,f=(0|c)!==c;if(d||e||f){var g=d?Xd(a):0,h=e?Xd(b):0,i=f?Xd(c):0,g=Math.max(g,h,i),g=Math.pow(10,g);a*=g,b*=g,c*=g,d&&(a=Math.round(a)),e&&(b=Math.round(b)),f&&(c=Math.round(c))}return 0===(a-b)%c}function Zd(a,b,c,d,e){if(t(d)){if(a=a(d),!a.constant)throw Pg("constexpr",c,d);return a(b)}return e}function $d(a,b){function c(a,b){if(!a||!a.length)return[];if(!b||!b.length)return a;var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e===b[f])continue a;c.push(e)}return c}function d(a){var b=a;return we(a)?b=a.map(d).join(" "):u(a)&&(b=Object.keys(a).filter(function(b){return a[b]}).join(" ")),b}function e(a){var b=a;if(we(a))b=a.map(e);else if(u(a)){var c=!1,b=Object.keys(a).filter(function(b){return b=a[b],!c&&s(b)&&(c=!0),b});c&&b.push(void 0)}return b}a="ngClass"+a;var g;return["$parse",function(h){return{restrict:"AC",link:function(i,j,k){function l(a,b){var c=[];return f(a,function(a){(b>0||t[a])&&(t[a]=(t[a]||0)+b,t[a]===+(b>0)&&c.push(a))}),c.join(" ")}function m(a){if(a===b){var c=p,c=l(c&&c.split(" "),1);k.$addClass(c)}else c=p,c=l(c&&c.split(" "),-1),k.$removeClass(c);u=a}function n(a){a=d(a),a!==p&&o(a)}function o(a){if(u===b){var d=p&&p.split(" "),e=a&&a.split(" "),f=c(d,e),d=c(e,d),f=l(f,-1),d=l(d,1);k.$addClass(d),k.$removeClass(f)}p=a}var p,q=k[a].trim(),r=":"===q.charAt(0)&&":"===q.charAt(1),q=h(q,r?e:d),s=r?n:o,t=j.data("$classCounts"),u=!0;t||(t=kb(),j.data("$classCounts",t)),"ngClass"!==a&&(g||(g=h("$index",function(a){return 1&a})),i.$watch(g,m)),i.$watch(q,s,r)}}}]}function _d(a,b,c,d,e,f,g,h,i){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(c.name||"",!1)(a),this.$$parentForm=dg,this.$options=Qg,this.$$parsedNgModel=e(c.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:a}),this.$$attr=c,this.$$element=d,this.$$animate=f,this.$$timeout=g,this.$$parse=e,this.$$q=h,this.$$exceptionHandler=b,Nd(this),ae(this)}function ae(a){a.$$scope.$watch(function(b){if(b=a.$$ngModelGet(b),b!==a.$modelValue&&(a.$modelValue===a.$modelValue||b===b)){a.$modelValue=a.$$rawModelValue=b,a.$$parserValid=void 0;for(var c=a.$formatters,d=c.length,e=b;d--;)e=c[d](e);a.$viewValue!==e&&(a.$$updateEmptyClasses(e),a.$viewValue=a.$$lastCommittedViewValue=e,a.$render(),a.$$runValidators(a.$modelValue,a.$viewValue,o))}return b})}function be(a){this.$$options=a}function ce(a,b){f(b,function(b,c){t(a[c])||(a[c]=b)})}function de(a,b){a.prop("selected",b),a.attr("selected",b)}var ee,fe,ge,he,ie={objectMaxDepth:5},je=/^\/(.+)\/([a-z]*)$/,ke=Object.prototype.hasOwnProperty,le=function(a){return w(a)?a.toLowerCase():a},me=function(a){return w(a)?a.toUpperCase():a},ne=[].slice,oe=[].splice,pe=[].push,qe=Object.prototype.toString,re=Object.getPrototypeOf,se=d("ng"),te=a.angular||(a.angular={}),ue=0;ee=a.document.documentMode;var ve=Number.isNaN||function(a){return a!==a};o.$inject=[],p.$inject=[];var we=Array.isArray,xe=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,ye=function(a){return w(a)?a.trim():a},ze=function(a){return a.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ae=function(){if(!t(Ae.rules)){var b=a.document.querySelector("[ng-csp]")||a.document.querySelector("[data-ng-csp]");
if(b){var c=b.getAttribute("ng-csp")||b.getAttribute("data-ng-csp");Ae.rules={noUnsafeEval:!c||-1!==c.indexOf("no-unsafe-eval"),noInlineStyle:!c||-1!==c.indexOf("no-inline-style")}}else{b=Ae;try{new Function(""),c=!1}catch(d){c=!0}b.rules={noUnsafeEval:c,noInlineStyle:!1}}}return Ae.rules},Be=function(){if(t(Be.name_))return Be.name_;var b,c,d,e,f=De.length;for(c=0;f>c;++c)if(d=De[c],b=a.document.querySelector("["+d.replace(":","\\:")+"jq]")){e=b.getAttribute(d+"jq");break}return Be.name_=e},Ce=/:/g,De=["ng-","data-ng-","ng:","x-ng-"],Ee=function(b){var c=b.currentScript;return c?c instanceof a.HTMLScriptElement||c instanceof a.SVGScriptElement?(c=c.attributes,[c.getNamedItem("src"),c.getNamedItem("href"),c.getNamedItem("xlink:href")].every(function(a){if(!a)return!0;if(!a.value)return!1;var c=b.createElement("a");if(c.href=a.value,b.location.origin===c.origin)return!0;switch(c.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}(a.document),Fe=/[A-Z]/g,Ge=!1,He=3,Ie={full:"1.6.5",major:1,minor:6,dot:5,codeName:"toffee-salinization"};ub.expando="ng339";var Je=ub.cache={},Ke=1;ub._data=function(a){return this.cache[a[this.expando]]||{}};var Le=/-([a-z])/g,Me=/^-ms-/,Ne={mouseleave:"mouseout",mouseenter:"mouseover"},Oe=d("jqLite"),Pe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qe=/<|&#?\w+;/,Re=/<([\w:-]+)/,Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Te={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Te.optgroup=Te.option,Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td;var Ue=a.Node.prototype.contains||function(a){return!!(16&this.compareDocumentPosition(a))},Ve=ub.prototype={ready:Kb,toString:function(){var a=[];return f(this,function(b){a.push(""+b)}),"["+a.join(", ")+"]"},eq:function(a){return fe(a>=0?this[a]:this[this.length+a])},length:0,push:pe,sort:[].sort,splice:[].splice},We={};f("multiple selected checked disabled readOnly required open".split(" "),function(a){We[le(a)]=a});var Xe={};f("input select option textarea button form details".split(" "),function(a){Xe[a]=!0});var Ye={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};f({data:Ab,removeData:yb,hasData:function(a){for(var b in Je[a.ng339])return!0;return!1},cleanData:function(a){for(var b=0,c=a.length;c>b;b++)yb(a[b])}},function(a,b){ub[b]=a}),f({data:Ab,inheritedData:Gb,scope:function(a){return fe.data(a,"$scope")||Gb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return fe.data(a,"$isolateScope")||fe.data(a,"$isolateScopeNoTemplate")},controller:Fb,injector:function(a){return Gb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Bb,css:function(a,b,c){return b=rb(b.replace(Me,"ms-")),t(c)?void(a.style[b]=c):a.style[b]},attr:function(a,b,c){var d=a.nodeType;if(d!==He&&2!==d&&8!==d&&a.getAttribute){var d=le(b),e=We[d];if(!t(c))return a=a.getAttribute(b),e&&null!==a&&(a=d),null===a?void 0:a;null===c||!1===c&&e?a.removeAttribute(b):a.setAttribute(b,e?d:c)}},prop:function(a,b,c){return t(c)?void(a[b]=c):a[b]},text:function(){function a(a,b){if(s(b)){var c=a.nodeType;return 1===c||c===He?a.textContent:""}a.textContent=b}return a.$dv="",a}(),val:function(a,b){if(s(b)){if(a.multiple&&"select"===I(a)){var c=[];return f(a.options,function(a){a.selected&&c.push(a.value||a.text)}),c}return a.value}a.value=b},html:function(a,b){return s(b)?a.innerHTML:(wb(a,!0),void(a.innerHTML=b))},empty:Hb},function(a,b){ub.prototype[b]=function(b,c){var d,e,f=this.length;if(a!==Hb&&s(2===a.length&&a!==Bb&&a!==Fb?b:c)){if(u(b)){for(d=0;f>d;d++)if(a===Ab)a(this[d],b);else for(e in b)a(this[d],e,b[e]);return this}for(d=a.$dv,f=s(d)?Math.min(f,1):f,e=0;f>e;e++){var g=a(this[e],b,c);d=d?d+g:g}return d}for(d=0;f>d;d++)a(this[d],b,c);return this}}),f({removeData:yb,on:function(a,b,c,d){if(t(d))throw Oe("onargs");if(sb(a)){d=zb(a,!0);var e=d.events,f=d.handle;f||(f=d.handle=Mb(a,e)),d=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=d.length,h=function(b,d,g){var h=e[b];h||(h=e[b]=[],h.specialHandlerWrapper=d,"$destroy"===b||g||a.addEventListener(b,f)),h.push(c)};g--;)b=d[g],Ne[b]?(h(Ne[b],Ob),h(b,void 0,!0)):h(b)}},off:xb,one:function(a,b,c){a=fe(a),a.on(b,function d(){a.off(b,c),a.off(b,d)}),a.on(b,c)},replaceWith:function(a,b){var c,d=a.parentNode;wb(a),f(new ub(b),function(b){c?d.insertBefore(b,c.nextSibling):d.replaceChild(b,a),c=b})},children:function(a){var b=[];return f(a.childNodes,function(a){1===a.nodeType&&b.push(a)}),b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var c=a.nodeType;if(1===c||11===c){b=new ub(b);for(var c=0,d=b.length;d>c;c++)a.appendChild(b[c])}},prepend:function(a,b){if(1===a.nodeType){var c=a.firstChild;f(new ub(b),function(b){a.insertBefore(b,c)})}},wrap:function(a,b){var c=fe(b).eq(0).clone()[0],d=a.parentNode;d&&d.replaceChild(c,a),c.appendChild(a)},remove:Ib,detach:function(a){Ib(a,!0)},after:function(a,b){var c=a,d=a.parentNode;if(d){b=new ub(b);for(var e=0,f=b.length;f>e;e++){var g=b[e];d.insertBefore(g,c.nextSibling),c=g}}},addClass:Db,removeClass:Cb,toggleClass:function(a,b,c){b&&f(b.split(" "),function(b){var d=c;s(d)&&(d=!Bb(a,b)),(d?Db:Cb)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:vb,triggerHandler:function(a,b,c){var d,e,g=b.type||b,h=zb(a);(h=(h=h&&h.events)&&h[g])&&(d={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:o,type:g,target:a},b.type&&(d=k(d,b)),b=nb(h),e=c?[d].concat(c):[d],f(b,function(b){d.isImmediatePropagationStopped()||b.apply(a,e)}))}},function(a,b){ub.prototype[b]=function(b,c,d){for(var e,f=0,g=this.length;g>f;f++)s(e)?(e=a(this[f],b,c,d),t(e)&&(e=fe(e))):Eb(e,a(this[f],b,c,d));return t(e)?e:this}}),ub.prototype.bind=ub.prototype.on,ub.prototype.unbind=ub.prototype.off;var Ze=Object.create(null);Rb.prototype={_idx:function(a){return a===this._lastKey?this._lastIndex:(this._lastKey=a,this._lastIndex=this._keys.indexOf(a))},_transformKey:function(a){return ve(a)?Ze:a},get:function(a){return a=this._transformKey(a),a=this._idx(a),-1!==a?this._values[a]:void 0},set:function(a,b){a=this._transformKey(a);var c=this._idx(a);-1===c&&(c=this._lastIndex=this._keys.length),this._keys[c]=a,this._values[c]=b},"delete":function(a){return a=this._transformKey(a),a=this._idx(a),-1===a?!1:(this._keys.splice(a,1),this._values.splice(a,1),this._lastKey=0/0,this._lastIndex=-1,!0)}};var $e=Rb,_e=[function(){this.$get=[function(){return $e}]}],af=/^([^(]+?)=>/,bf=/^[^(]*\(\s*([^)]*)\)/m,cf=/,/,df=/^\s*(_?)(\S+?)\1\s*$/,ef=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ff=d("$injector");Ub.$$annotate=function(a,b,c){var d;if("function"==typeof a){if(!(d=a.$inject)){if(d=[],a.length){if(b)throw w(c)&&c||(c=a.name||Tb(a)),ff("strictdi",c);b=Sb(a),f(b[1].split(cf),function(a){a.replace(df,function(a,b,c){d.push(c)})})}a.$inject=d}}else we(a)?(b=a.length-1,gb(a[b],"fn"),d=a.slice(0,b)):gb(a,"fn",!0);return d};var gf=d("$animate"),hf=function(){this.$get=o},jf=function(){var a=new $e,b=[];this.$get=["$$AnimateRunner","$rootScope",function(c,d){function e(a,b,c){var d=!1;return b&&(b=w(b)?b.split(" "):we(b)?b:[],f(b,function(b){b&&(d=!0,a[b]=c)})),d}function g(){f(b,function(b){var c=a.get(b);if(c){var d=Xb(b.attr("class")),e="",g="";f(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:g+=(g.length?" ":"")+b)}),f(b,function(a){e&&Db(a,e),g&&Cb(a,g)}),a.delete(b)}}),b.length=0}return{enabled:o,on:o,off:o,pin:o,push:function(f,h,i,j){return j&&j(),i=i||{},i.from&&f.css(i.from),i.to&&f.css(i.to),(i.addClass||i.removeClass)&&(h=i.addClass,j=i.removeClass,i=a.get(f)||{},h=e(i,h,!0),j=e(i,j,!1),(h||j)&&(a.set(f,i),b.push(f),1===b.length&&d.$$postDigest(g))),f=new c,f.complete(),f}}}]},kf=["$provide",function(a){var b=this,c=null,d=null;this.$$registeredAnimations=Object.create(null),this.register=function(c,d){if(c&&"."!==c.charAt(0))throw gf("notcsel",c);var e=c+"-animation";b.$$registeredAnimations[c.substr(1)]=e,a.factory(e,d)},this.customFilter=function(a){return 1===arguments.length&&(d=A(a)?a:null),d},this.classNameFilter=function(a){if(1===arguments.length&&(c=a instanceof RegExp?a:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(c.toString()))throw c=null,gf("nongcls","ng-animate");return c},this.$get=["$$animateQueue",function(a){function b(a,b,c){if(c){var d;a:{for(d=0;d<c.length;d++){var e=c[d];if(1===e.nodeType){d=e;break a}}d=void 0}!d||d.parentNode||d.previousElementSibling||(c=null)}c?c.after(a):b.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(c,d,e,f){return d=d&&fe(d),e=e&&fe(e),d=d||e.parent(),b(c,d,e),a.push(c,"enter",Yb(f))},move:function(c,d,e,f){return d=d&&fe(d),e=e&&fe(e),d=d||e.parent(),b(c,d,e),a.push(c,"move",Yb(f))},leave:function(b,c){return a.push(b,"leave",Yb(c),function(){b.remove()})},addClass:function(b,c,d){return d=Yb(d),d.addClass=Wb(d.addclass,c),a.push(b,"addClass",d)},removeClass:function(b,c,d){return d=Yb(d),d.removeClass=Wb(d.removeClass,c),a.push(b,"removeClass",d)},setClass:function(b,c,d,e){return e=Yb(e),e.addClass=Wb(e.addClass,c),e.removeClass=Wb(e.removeClass,d),a.push(b,"setClass",e)},animate:function(b,c,d,e,f){return f=Yb(f),f.from=f.from?k(f.from,c):c,f.to=f.to?k(f.to,d):d,f.tempClasses=Wb(f.tempClasses,e||"ng-inline-animate"),a.push(b,"animate",f)}}}]}],lf=function(){this.$get=["$$rAF",function(a){function b(b){c.push(b),1<c.length||a(function(){for(var a=0;a<c.length;a++)c[a]();c=[]})}var c=[];return function(){var a=!1;return b(function(){a=!0}),function(c){a?c():b(c)}}}]},mf=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(a,b,c,d,e){function g(a){this.setHost(a);var b=c();this._doneCallbacks=[],this._tick=function(a){d()?e(a,0,!1):b(a)},this._state=0}return g.chain=function(a,b){function c(){d===a.length?b(!0):a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()},g.all=function(a,b){function c(c){e=e&&c,++d===a.length&&b(e)}var d=0,e=!0;f(a,function(a){a.done(c)})},g.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:o,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(f(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}},g}]},nf=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,c){return function(b,d){function e(){return a(function(){f.addClass&&(b.addClass(f.addClass),f.addClass=null),f.removeClass&&(b.removeClass(f.removeClass),f.removeClass=null),f.to&&(b.css(f.to),f.to=null),g||h.complete(),g=!0}),h}var f=d||{};f.$$prepared||(f=K(f)),f.cleanupStyles&&(f.from=f.to=null),f.from&&(b.css(f.from),f.from=null);var g,h=new c;return{start:e,end:e}}}]},of=d("$compile"),pf=new function(){};bc.$inject=["$provide","$$sanitizeUriProvider"],cc.prototype.isFirstChange=function(){return this.previousValue===pf};var qf=/^((?:x|data)[:\-_])/i,rf=/[:\-_]+(.)/g,sf=d("$controller"),tf=/^(\S+)(\s+as\s+([\w$]+))?$/,uf=function(){this.$get=["$document",function(a){return function(b){return b?!b.nodeType&&b instanceof fe&&(b=b[0]):b=a[0].body,b.offsetWidth+1}}]},vf="application/json",wf={"Content-Type":vf+";charset=utf-8"},xf=/^\[|^\{(?!\{)/,yf={"[":/]$/,"{":/}$/},zf=/^\)]\}',?\n/,Af=d("$http"),Bf=te.$interpolateMinErr=d("$interpolate");Bf.throwNoconcat=function(a){throw Bf("noconcat",a)},Bf.interr=function(a,b){return Bf("interr",a,b.toString())};var Cf=function(){this.$get=function(){function a(a){var b=function(a){b.data=a,b.called=!0};return b.id=a,b}var b=te.callbacks,c={};return{createCallback:function(d){d="_"+(b.$$counter++).toString(36);var e="angular.callbacks."+d,f=a(d);return c[e]=b[d]=f,e},wasCalled:function(a){return c[a].called},getResponse:function(a){return c[a].data},removeCallback:function(a){delete b[c[a].id],delete c[a]}}}},Df=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Ef={http:80,https:443,ftp:21},Ff=d("$location"),Gf=/^\s*[\\\/]{2,}/,Hf={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Ic("$$absUrl"),url:function(a){if(s(a))return this.$$url;var b=Df.exec(a);return(b[1]||""===a)&&this.path(decodeURIComponent(b[1])),(b[2]||b[1]||""===a)&&this.search(b[3]||""),this.hash(b[5]||""),this},protocol:Ic("$$protocol"),host:Ic("$$host"),port:Ic("$$port"),path:Jc("$$path",function(a){return a=null!==a?a.toString():"","/"===a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(w(a)||x(a))a=a.toString(),this.$$search=W(a);else{if(!u(a))throw Ff("isrcharg");a=K(a,{}),f(a,function(b,c){null==b&&delete a[c]}),this.$$search=a}break;default:s(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}return this.$$compose(),this},hash:Jc("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){return this.$$replace=!0,this}};f([Hc,Gc,Fc],function(a){a.prototype=Object.create(Hf),a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==Fc||!this.$$html5)throw Ff("nostate");return this.$$state=s(b)?null:b,this.$$urlUpdatedByLocation=!0,this}});var If=d("$parse"),Jf={}.constructor.prototype.valueOf,Kf=kb();f("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Kf[a]=!0});var Lf={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},Mf=function(a){this.options=a};Mf.prototype={constructor:Mf,lex:function(a){for(this.text=a,this.index=0,this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),c=b+this.peek(2),d=Kf[b],e=Kf[c];Kf[a]||d||e?(a=e?c:d?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){return a=a||1,this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return a>="0"&&"9">=a&&"string"==typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"	"===a||"\n"===a||""===a||" "===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return a>="a"&&"z">=a||a>="A"&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var c=a.charCodeAt(0),d=b.charCodeAt(0);return c>=55296&&56319>=c&&d>=56320&&57343>=d?a+b:a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,c){throw c=c||this.index,b=t(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,c)+"]":" "+c,If("lexerr",a,b,this.text)},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var c=le(this.text.charAt(this.index));if("."===c||this.isNumber(c))a+=c;else{var d=this.peek();if("e"===c&&this.isExpOperator(d))a+=c;else if(this.isExpOperator(c)&&d&&this.isNumber(d)&&"e"===a.charAt(a.length-1))a+=c;else{if(!this.isExpOperator(c)||d&&this.isNumber(d)||"e"!==a.charAt(a.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var c="",d=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index),d=d+f;if(e)"u"===f?(e=this.text.substring(this.index+1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,c+=String.fromCharCode(parseInt(e,16))):c+=Lf[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a)return this.index++,void this.tokens.push({index:b,text:d,constant:!0,value:c});c+=f}this.index++}this.throwError("Unterminated quote",b)}};var Nf=function(a,b){this.lexer=a,this.options=b};Nf.Program="Program",Nf.ExpressionStatement="ExpressionStatement",Nf.AssignmentExpression="AssignmentExpression",Nf.ConditionalExpression="ConditionalExpression",Nf.LogicalExpression="LogicalExpression",Nf.BinaryExpression="BinaryExpression",Nf.UnaryExpression="UnaryExpression",Nf.CallExpression="CallExpression",Nf.MemberExpression="MemberExpression",Nf.Identifier="Identifier",Nf.Literal="Literal",Nf.ArrayExpression="ArrayExpression",Nf.Property="Property",Nf.ObjectExpression="ObjectExpression",Nf.ThisExpression="ThisExpression",Nf.LocalsExpression="LocalsExpression",Nf.NGValueParameter="NGValueParameter",Nf.prototype={ast:function(a){return this.text=a,this.tokens=this.lexer.lex(a),a=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:Nf.Program,body:a}},expressionStatement:function(){return{type:Nf.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();if(this.expect("=")){if(!Sc(a))throw If("lval");a={type:Nf.AssignmentExpression,left:a,right:this.assignment(),operator:"="}}return a},ternary:function(){var a,b,c=this.logicalOR();return this.expect("?")&&(a=this.expression(),this.consume(":"))?(b=this.expression(),{type:Nf.ConditionalExpression,test:c,alternate:a,consequent:b}):c},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:Nf.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:Nf.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a,b=this.relational();a=this.expect("==","!=","===","!==");)b={type:Nf.BinaryExpression,operator:a.text,left:b,right:this.relational()};return b},relational:function(){for(var a,b=this.additive();a=this.expect("<",">","<=",">=");)b={type:Nf.BinaryExpression,operator:a.text,left:b,right:this.additive()};return b},additive:function(){for(var a,b=this.multiplicative();a=this.expect("+","-");)b={type:Nf.BinaryExpression,operator:a.text,left:b,right:this.multiplicative()};return b},multiplicative:function(){for(var a,b=this.unary();a=this.expect("*","/","%");)b={type:Nf.BinaryExpression,operator:a.text,left:b,right:this.unary()};return b},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:Nf.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=K(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:Nf.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:Nf.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:Nf.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:Nf.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:Nf.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text)do a.push(this.filterChain());while(this.expect(","));return a},identifier:function(){var a=this.consume();return a.identifier||this.throwError("is not a valid identifier",a),{type:Nf.Identifier,name:a.text}},constant:function(){return{type:Nf.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Nf.ArrayExpression,elements:a}},object:function(){var a,b=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;a={type:Nf.Property,kind:"init"},this.peek().constant?(a.key=this.constant(),a.computed=!1,this.consume(":"),a.value=this.expression()):this.peek().identifier?(a.key=this.identifier(),a.computed=!1,this.peek(":")?(this.consume(":"),a.value=this.expression()):a.value=a.key):this.peek("[")?(this.consume("["),a.key=this.expression(),this.consume("]"),a.computed=!0,this.consume(":"),a.value=this.expression()):this.throwError("invalid key",this.peek()),b.push(a)}while(this.expect(","));return this.consume("}"),{type:Nf.ObjectExpression,properties:b}},throwError:function(a,b){throw If("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index))},consume:function(a){if(0===this.tokens.length)throw If("ueoe",this.text);var b=this.expect(a);return b||this.throwError("is unexpected, expecting ["+a+"]",this.peek()),b},peekToken:function(){if(0===this.tokens.length)throw If("ueoe",this.text);return this.tokens[0]},peek:function(a,b,c,d){return this.peekAhead(0,a,b,c,d)},peekAhead:function(a,b,c,d,e){if(this.tokens.length>a){a=this.tokens[a];var f=a.text;if(f===b||f===c||f===d||f===e||!(b||c||d||e))return a}return!1},expect:function(a,b,c,d){return(a=this.peek(a,b,c,d))?(this.tokens.shift(),a):!1},selfReferential:{"this":{type:Nf.ThisExpression},$locals:{type:Nf.LocalsExpression}}};var Of=2;Uc.prototype={compile:function(a){var b=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Qc(a,b.$filter);var c,d="";return this.stage="assign",(c=Tc(a))&&(this.state.computing="assign",d=this.nextId(),this.recurse(c,d),this.return_(d),d="fn.assign="+this.generateFunction("assign","s,v,l")),c=Rc(a.body),b.stage="inputs",f(c,function(a,c){var d="fn"+c;b.state[d]={vars:[],body:[],own:{}},b.state.computing=d;var e=b.nextId();b.recurse(a,e),b.return_(e),b.state.inputs.push({name:d,isPure:a.isPure}),a.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(a),a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+d+this.watchFns()+"return fn;",a=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,Mc,Nc,Oc),this.state=this.stage=void 0,a},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,c=this;return f(b,function(b){a.push("var "+b.name+"="+c.generateFunction(b.name,"s")),b.isPure&&a.push(b.name,".isPure="+JSON.stringify(b.isPure)+";")}),b.length&&a.push("fn.inputs=["+b.map(function(a){return a.name}).join(",")+"];"),a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;return f(this.state.filters,function(c,d){a.push(c+"=$filter("+b.escape(d)+")")}),a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,c,d,e,g){var h,i,j,k,l,m=this;if(d=d||o,!g&&t(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,c,d,e,!0));else switch(a.type){case Nf.Program:f(a.body,function(b,c){m.recurse(b.expression,void 0,void 0,function(a){i=a}),c!==a.body.length-1?m.current().body.push(i,";"):m.return_(i)});break;case Nf.Literal:k=this.escape(a.value),this.assign(b,k),d(b||k);break;case Nf.UnaryExpression:this.recurse(a.argument,void 0,void 0,function(a){i=a}),k=a.operator+"("+this.ifDefined(i,0)+")",this.assign(b,k),d(k);break;case Nf.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){h=a}),this.recurse(a.right,void 0,void 0,function(a){i=a}),k="+"===a.operator?this.plus(h,i):"-"===a.operator?this.ifDefined(h,0)+a.operator+this.ifDefined(i,0):"("+h+")"+a.operator+"("+i+")",this.assign(b,k),d(k);break;case Nf.LogicalExpression:b=b||this.nextId(),m.recurse(a.left,b),m.if_("&&"===a.operator?b:m.not(b),m.lazyRecurse(a.right,b)),d(b);break;case Nf.ConditionalExpression:b=b||this.nextId(),m.recurse(a.test,b),m.if_(b,m.lazyRecurse(a.alternate,b),m.lazyRecurse(a.consequent,b)),d(b);break;case Nf.Identifier:b=b||this.nextId(),c&&(c.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),c.computed=!1,c.name=a.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",a.name)),function(){m.if_("inputs"===m.stage||"s",function(){e&&1!==e&&m.if_(m.isNull(m.nonComputedMember("s",a.name)),m.lazyAssign(m.nonComputedMember("s",a.name),"{}")),m.assign(b,m.nonComputedMember("s",a.name))})},b&&m.lazyAssign(b,m.nonComputedMember("l",a.name))),d(b);break;case Nf.MemberExpression:h=c&&(c.context=this.nextId())||this.nextId(),b=b||this.nextId(),m.recurse(a.object,h,void 0,function(){m.if_(m.notNull(h),function(){a.computed?(i=m.nextId(),m.recurse(a.property,i),m.getStringValue(i),e&&1!==e&&m.if_(m.not(m.computedMember(h,i)),m.lazyAssign(m.computedMember(h,i),"{}")),k=m.computedMember(h,i),m.assign(b,k),c&&(c.computed=!0,c.name=i)):(e&&1!==e&&m.if_(m.isNull(m.nonComputedMember(h,a.property.name)),m.lazyAssign(m.nonComputedMember(h,a.property.name),"{}")),k=m.nonComputedMember(h,a.property.name),m.assign(b,k),c&&(c.computed=!1,c.name=a.property.name))},function(){m.assign(b,"undefined")}),d(b)},!!e);break;case Nf.CallExpression:b=b||this.nextId(),a.filter?(i=m.filter(a.callee.name),j=[],f(a.arguments,function(a){var b=m.nextId();m.recurse(a,b),j.push(b)}),k=i+"("+j.join(",")+")",m.assign(b,k),d(b)):(i=m.nextId(),h={},j=[],m.recurse(a.callee,i,h,function(){m.if_(m.notNull(i),function(){f(a.arguments,function(b){m.recurse(b,a.constant?void 0:m.nextId(),void 0,function(a){j.push(a)})}),k=h.name?m.member(h.context,h.name,h.computed)+"("+j.join(",")+")":i+"("+j.join(",")+")",m.assign(b,k)},function(){m.assign(b,"undefined")}),d(b)}));break;case Nf.AssignmentExpression:i=this.nextId(),h={},this.recurse(a.left,void 0,h,function(){m.if_(m.notNull(h.context),function(){m.recurse(a.right,i),k=m.member(h.context,h.name,h.computed)+a.operator+i,m.assign(b,k),d(b||k)})},1);break;case Nf.ArrayExpression:j=[],f(a.elements,function(b){m.recurse(b,a.constant?void 0:m.nextId(),void 0,function(a){j.push(a)})}),k="["+j.join(",")+"]",this.assign(b,k),d(b||k);break;case Nf.ObjectExpression:j=[],l=!1,f(a.properties,function(a){a.computed&&(l=!0)}),l?(b=b||this.nextId(),this.assign(b,"{}"),f(a.properties,function(a){a.computed?(h=m.nextId(),m.recurse(a.key,h)):h=a.key.type===Nf.Identifier?a.key.name:""+a.key.value,i=m.nextId(),m.recurse(a.value,i),m.assign(m.member(b,h,a.computed),i)})):(f(a.properties,function(b){m.recurse(b.value,a.constant?void 0:m.nextId(),void 0,function(a){j.push(m.escape(b.key.type===Nf.Identifier?b.key.name:""+b.key.value)+":"+a)})}),k="{"+j.join(",")+"}",this.assign(b,k)),d(b||k);break;case Nf.ThisExpression:this.assign(b,"s"),d(b||"s");break;case Nf.LocalsExpression:this.assign(b,"l"),d(b||"l");break;case Nf.NGValueParameter:this.assign(b,"v"),d(b||"v")}},getHasOwnProperty:function(a,b){var c=a+"."+b,d=this.current().own;return d.hasOwnProperty(c)||(d[c]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")")),d[c]},assign:function(a,b){return a?(this.current().body.push(a,"=",b,";"),a):void 0},filter:function(a){return this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0)),this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,c){if(!0===a)b();else{var d=this.current().body;d.push("if(",a,"){"),b(),d.push("}"),c&&(d.push("else{"),c(),d.push("}"))}},not:function(a){return"!("+a+")"},isNull:function(a){return a+"==null"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var c=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b)?a+"."+b:a+'["'+b.replace(c,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,c){return c?this.computedMember(a,b):this.nonComputedMember(a,b)},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},lazyRecurse:function(a,b,c,d,e,f){var g=this;return function(){g.recurse(a,b,c,d,e,f)}},lazyAssign:function(a,b){var c=this;return function(){c.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(w(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"==typeof a)return"undefined";throw If("esc")},nextId:function(a,b){var c="v"+this.state.nextId++;return a||this.current().vars.push(c+(b?"="+b:"")),c},current:function(){return this.state[this.state.computing]}},Vc.prototype={compile:function(a){var b=this;Qc(a,b.$filter);var c,d;(c=Tc(a))&&(d=this.recurse(c)),c=Rc(a.body);var e;c&&(e=[],f(c,function(a,c){var d=b.recurse(a);d.isPure=a.isPure,a.input=d,e.push(d),a.watchId=c}));var g=[];return f(a.body,function(a){g.push(b.recurse(a.expression))}),a=0===a.body.length?o:1===a.body.length?g[0]:function(a,b){var c;return f(g,function(d){c=d(a,b)}),c},d&&(a.assign=function(a,b,c){return d(a,c,b)}),e&&(a.inputs=e),a},recurse:function(a,b,c){var d,e,g,h=this;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case Nf.Literal:return this.value(a.value,b);case Nf.UnaryExpression:return e=this.recurse(a.argument),this["unary"+a.operator](e,b);case Nf.BinaryExpression:return d=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](d,e,b);case Nf.LogicalExpression:return d=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](d,e,b);
case Nf.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case Nf.Identifier:return h.identifier(a.name,b,c);case Nf.MemberExpression:return d=this.recurse(a.object,!1,!!c),a.computed||(e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(d,e,b,c):this.nonComputedMember(d,e,b,c);case Nf.CallExpression:return g=[],f(a.arguments,function(a){g.push(h.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var h=[],i=0;i<g.length;++i)h.push(g[i](a,c,d,f));return a=e.apply(void 0,h,f),b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,f){var h,i=e(a,c,d,f);if(null!=i.value){h=[];for(var j=0;j<g.length;++j)h.push(g[j](a,c,d,f));h=i.value.apply(i.context,h)}return b?{value:h}:h};case Nf.AssignmentExpression:return d=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,c,f,g){var h=d(a,c,f,g);return a=e(a,c,f,g),h.context[h.name]=a,b?{value:a}:a};case Nf.ArrayExpression:return g=[],f(a.elements,function(a){g.push(h.recurse(a))}),function(a,c,d,e){for(var f=[],h=0;h<g.length;++h)f.push(g[h](a,c,d,e));return b?{value:f}:f};case Nf.ObjectExpression:return g=[],f(a.properties,function(a){g.push(a.computed?{key:h.recurse(a.key),computed:!0,value:h.recurse(a.value)}:{key:a.key.type===Nf.Identifier?a.key.name:""+a.key.value,computed:!1,value:h.recurse(a.value)})}),function(a,c,d,e){for(var f={},h=0;h<g.length;++h)g[h].computed?f[g[h].key(a,c,d,e)]=g[h].value(a,c,d,e):f[g[h].key]=g[h].value(a,c,d,e);return b?{value:f}:f};case Nf.ThisExpression:return function(a){return b?{value:a}:a};case Nf.LocalsExpression:return function(a,c){return b?{value:c}:c};case Nf.NGValueParameter:return function(a,c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(c,d,e,f){return c=a(c,d,e,f),c=t(c)?+c:0,b?{value:c}:c}},"unary-":function(a,b){return function(c,d,e,f){return c=a(c,d,e,f),c=t(c)?-c:-0,b?{value:c}:c}},"unary!":function(a,b){return function(c,d,e,f){return c=!a(c,d,e,f),b?{value:c}:c}},"binary+":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g);return d=b(d,e,f,g),h=Oc(h,d),c?{value:h}:h}},"binary-":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g);return d=b(d,e,f,g),h=(t(h)?h:0)-(t(d)?d:0),c?{value:h}:h}},"binary*":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)*b(d,e,f,g),c?{value:d}:d}},"binary/":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)/b(d,e,f,g),c?{value:d}:d}},"binary%":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)%b(d,e,f,g),c?{value:d}:d}},"binary===":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)===b(d,e,f,g),c?{value:d}:d}},"binary!==":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)!==b(d,e,f,g),c?{value:d}:d}},"binary==":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)==b(d,e,f,g),c?{value:d}:d}},"binary!=":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)!=b(d,e,f,g),c?{value:d}:d}},"binary<":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)<b(d,e,f,g),c?{value:d}:d}},"binary>":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)>b(d,e,f,g),c?{value:d}:d}},"binary<=":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)<=b(d,e,f,g),c?{value:d}:d}},"binary>=":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)>=b(d,e,f,g),c?{value:d}:d}},"binary&&":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)&&b(d,e,f,g),c?{value:d}:d}},"binary||":function(a,b,c){return function(d,e,f,g){return d=a(d,e,f,g)||b(d,e,f,g),c?{value:d}:d}},"ternary?:":function(a,b,c,d){return function(e,f,g,h){return e=a(e,f,g,h)?b(e,f,g,h):c(e,f,g,h),d?{value:e}:e}},value:function(a,b){return function(){return b?{context:void 0,name:void 0,value:a}:a}},identifier:function(a,b,c){return function(d,e){return d=e&&a in e?e:d,c&&1!==c&&d&&null==d[a]&&(d[a]={}),e=d?d[a]:void 0,b?{context:d,name:a,value:e}:e}},computedMember:function(a,b,c,d){return function(e,f,g,h){var i,j,k=a(e,f,g,h);return null!=k&&(i=b(e,f,g,h),i+="",d&&1!==d&&k&&!k[i]&&(k[i]={}),j=k[i]),c?{context:k,name:i,value:j}:j}},nonComputedMember:function(a,b,c,d){return function(e,f,g,h){return e=a(e,f,g,h),d&&1!==d&&e&&null==e[b]&&(e[b]={}),f=null!=e?e[b]:void 0,c?{context:e,name:b,value:f}:f}},inputs:function(a,b){return function(c,d,e,f){return f?f[b]:a(c,d,e)}}},Wc.prototype={constructor:Wc,parse:function(a){a=this.ast.ast(a);var b=this.astCompiler.compile(a);return b.literal=0===a.body.length||1===a.body.length&&(a.body[0].expression.type===Nf.Literal||a.body[0].expression.type===Nf.ArrayExpression||a.body[0].expression.type===Nf.ObjectExpression),b.constant=a.constant,b}};var Pf=d("$sce"),Qf={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Rf=/_([a-z])/g,Sf=d("$compile"),Tf=a.document.createElement("a"),Uf=ld(a.location.href);od.$inject=["$document"],qd.$inject=["$provide"];var Vf=22,Wf=".",Xf="0";vd.$inject=["$locale"],wd.$inject=["$locale"];var Yf={yyyy:Bd("FullYear",4,0,!1,!0),yy:Bd("FullYear",2,0,!0,!0),y:Bd("FullYear",1,0,!1,!0),MMMM:Cd("Month"),MMM:Cd("Month",!0),MM:Bd("Month",2,1),M:Bd("Month",1,1),LLLL:Cd("Month",!1,!0),dd:Bd("Date",2),d:Bd("Date",1),HH:Bd("Hours",2),H:Bd("Hours",1),hh:Bd("Hours",2,-12),h:Bd("Hours",1,-12),mm:Bd("Minutes",2),m:Bd("Minutes",1),ss:Bd("Seconds",2),s:Bd("Seconds",1),sss:Bd("Milliseconds",3),EEEE:Cd("Day"),EEE:Cd("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,c){return a=-1*c,a=(a>=0?"+":"")+(Ad(Math[a>0?"floor":"ceil"](a/60),2)+Ad(Math.abs(a%60),2))},ww:Ed(2),w:Ed(1),G:Fd,GG:Fd,GGG:Fd,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},Zf=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,$f=/^-?\d+$/;Gd.$inject=["$locale"];var _f=q(le),ag=q(me);Kd.$inject=["$parse"];var bg=q({restrict:"E",compile:function(a,b){return b.href||b.xlinkHref?void 0:function(a,b){if("a"===b[0].nodeName.toLowerCase()){var c="[object SVGAnimatedString]"===qe.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}}),cg={};f(We,function(a,b){function c(a,c,e){a.$watch(e[d],function(a){e.$set(b,!!a)})}if("multiple"!==a){var d=dc("ng-"+b),e=c;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[d]&&c(a,b,e)}),cg[d]=function(){return{restrict:"A",priority:100,link:e}}}}),f(Ye,function(a,b){cg[b]=function(){return{priority:100,link:function(a,c,d){return"ngPattern"===b&&"/"===d.ngPattern.charAt(0)&&(c=d.ngPattern.match(je))?void d.$set("ngPattern",new RegExp(c[1],c[2])):void a.$watch(d[b],function(a){d.$set(b,a)})}}}}),f(["src","srcset","href"],function(a){var b=dc("ng-"+a);cg[b]=function(){return{priority:99,link:function(c,d,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===qe.call(d.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null),e.$observe(b,function(b){b?(e.$set(g,b),ee&&f&&d.prop(f,e[g])):"href"===a&&e.$set(g,null)})}}}});var dg={$addControl:o,$$renameControl:function(a,b){a.$name=b},$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};Md.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Md.prototype={$rollbackViewValue:function(){f(this.$$controls,function(a){a.$rollbackViewValue()})},$commitViewValue:function(){f(this.$$controls,function(a){a.$commitViewValue()})},$addControl:function(a){hb(a.$name,"input"),this.$$controls.push(a),a.$name&&(this[a.$name]=a),a.$$parentForm=this},$$renameControl:function(a,b){var c=a.$name;this[c]===a&&delete this[c],this[b]=a,a.$name=b},$removeControl:function(a){a.$name&&this[a.$name]===a&&delete this[a.$name],f(this.$pending,function(b,c){this.$setValidity(c,null,a)},this),f(this.$error,function(b,c){this.$setValidity(c,null,a)},this),f(this.$$success,function(b,c){this.$setValidity(c,null,a)},this),J(this.$$controls,a),a.$$parentForm=dg},$setDirty:function(){this.$$animate.removeClass(this.$$element,Ng),this.$$animate.addClass(this.$$element,Og),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Ng,Og+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,f(this.$$controls,function(a){a.$setPristine()})},$setUntouched:function(){f(this.$$controls,function(a){a.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},Od({clazz:Md,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(J(d,c),0===d.length&&delete a[b])}});var eg=function(a){return["$timeout","$parse",function(b,c){function d(a){return""===a?c('this[""]').assign:c(a).assign||o}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Md,compile:function(c,e){c.addClass(Ng).addClass(Lg);var f=e.name?"name":a&&e.ngForm?"ngForm":!1;return{pre:function(a,c,e,g){var h=g[0];if(!("action"in e)){var i=function(b){a.$apply(function(){h.$commitViewValue(),h.$setSubmitted()}),b.preventDefault()};c[0].addEventListener("submit",i),c.on("$destroy",function(){b(function(){c[0].removeEventListener("submit",i)},0,!1)})}(g[1]||h.$$parentForm).$addControl(h);var j=f?d(h.$name):o;f&&(j(a,h),e.$observe(f,function(b){h.$name!==b&&(j(a,void 0),h.$$parentForm.$$renameControl(h,b),(j=d(h.$name))(a,h))})),c.on("$destroy",function(){h.$$parentForm.$removeControl(h),j(a,void 0),k(h,dg)})}}}}}]},fg=eg(),gg=eg(!0),hg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ig=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,jg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,kg=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,lg=/^(\d{4,})-(\d{2})-(\d{2})$/,mg=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ng=/^(\d{4,})-W(\d\d)$/,og=/^(\d{4,})-(\d\d)$/,pg=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qg=kb();f(["date","datetime-local","month","time","week"],function(a){qg[a]=!0});var rg={text:function(a,b,c,d,e,f){Rd(a,b,c,d,e,f),Qd(d)},date:Td("date",lg,Sd(lg,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Td("datetimelocal",mg,Sd(mg,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Td("time",pg,Sd(pg,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Td("week",ng,function(a,b){if(y(a))return a;if(w(a)){ng.lastIndex=0;var c=ng.exec(a);if(c){var d=+c[1],e=+c[2],f=c=0,g=0,h=0,i=Dd(d),e=7*(e-1);return b&&(c=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),h=b.getMilliseconds()),new Date(d,0,i.getDate()+e,c,f,g,h)}}return 0/0},"yyyy-Www"),month:Td("month",og,Sd(og,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,c,d,e,f){Ud(a,b,c,d),Vd(d),Rd(a,b,c,d,e,f);var g,h;if((t(c.min)||c.ngMin)&&(d.$validators.min=function(a){return d.$isEmpty(a)||s(g)||a>=g},c.$observe("min",function(a){g=Wd(a),d.$validate()})),(t(c.max)||c.ngMax)&&(d.$validators.max=function(a){return d.$isEmpty(a)||s(h)||h>=a},c.$observe("max",function(a){h=Wd(a),d.$validate()})),t(c.step)||c.ngStep){var i;d.$validators.step=function(a,b){return d.$isEmpty(b)||s(i)||Yd(b,g||0,i)},c.$observe("step",function(a){i=Wd(a),d.$validate()})}},url:function(a,b,c,d,e,f){Rd(a,b,c,d,e,f),Qd(d),d.$$parserName="url",d.$validators.url=function(a,b){var c=a||b;return d.$isEmpty(c)||ig.test(c)}},email:function(a,b,c,d,e,f){Rd(a,b,c,d,e,f),Qd(d),d.$$parserName="email",d.$validators.email=function(a,b){var c=a||b;return d.$isEmpty(c)||jg.test(c)}},radio:function(a,b,c,d){var e=!c.ngTrim||"false"!==ye(c.ngTrim);s(c.name)&&b.attr("name",++ue),b.on("click",function(a){var f;b[0].checked&&(f=c.value,e&&(f=ye(f)),d.$setViewValue(f,a&&a.type))}),d.$render=function(){var a=c.value;e&&(a=ye(a)),b[0].checked=a===d.$viewValue},c.$observe("value",d.$render)},range:function(a,b,c,d,e,f){function g(a,d){b.attr(a,c[a]),c.$observe(a,d)}function h(a){l=Wd(a),ve(d.$modelValue)||(k?(a=b.val(),l>a&&(a=l,b.val(a)),d.$setViewValue(a)):d.$validate())}function i(a){m=Wd(a),ve(d.$modelValue)||(k?(a=b.val(),a>m&&(b.val(m),a=l>m?l:m),d.$setViewValue(a)):d.$validate())}function j(a){n=Wd(a),ve(d.$modelValue)||(k&&d.$viewValue!==b.val()?d.$setViewValue(b.val()):d.$validate())}Ud(a,b,c,d),Vd(d),Rd(a,b,c,d,e,f);var k=d.$$hasNativeValidators&&"range"===b[0].type,l=k?0:void 0,m=k?100:void 0,n=k?1:void 0,o=b[0].validity;a=t(c.min),e=t(c.max),f=t(c.step);var p=d.$render;d.$render=k&&t(o.rangeUnderflow)&&t(o.rangeOverflow)?function(){p(),d.$setViewValue(b.val())}:p,a&&(d.$validators.min=k?function(){return!0}:function(a,b){return d.$isEmpty(b)||s(l)||b>=l},g("min",h)),e&&(d.$validators.max=k?function(){return!0}:function(a,b){return d.$isEmpty(b)||s(m)||m>=b},g("max",i)),f&&(d.$validators.step=k?function(){return!o.stepMismatch}:function(a,b){return d.$isEmpty(b)||s(n)||Yd(b,l||0,n)},g("step",j))},checkbox:function(a,b,c,d,e,f,g,h){var i=Zd(h,a,"ngTrueValue",c.ngTrueValue,!0),j=Zd(h,a,"ngFalseValue",c.ngFalseValue,!1);b.on("click",function(a){d.$setViewValue(b[0].checked,a&&a.type)}),d.$render=function(){b[0].checked=d.$viewValue},d.$isEmpty=function(a){return!1===a},d.$formatters.push(function(a){return M(a,i)}),d.$parsers.push(function(a){return a?i:j})},hidden:o,button:o,submit:o,reset:o,file:o},sg=["$browser","$sniffer","$filter","$parse",function(a,b,c,d){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(rg[le(g.type)]||rg.text)(e,f,g,h[0],b,a,c,d)}}}}],tg=/^(true|false|\d+)$/,ug=function(){function a(a,b,c){var d=t(c)?c:9===ee?"":null;a.prop("value",d),b.$set("value",c)}return{restrict:"A",priority:100,compile:function(b,c){return tg.test(c.ngValue)?function(b,c,d){b=b.$eval(d.ngValue),a(c,d,b)}:function(b,c,d){b.$watch(d.ngValue,function(b){a(c,d,b)})}}}},vg=["$compile",function(a){return{restrict:"AC",compile:function(b){return a.$$addBindingClass(b),function(b,c,d){a.$$addBindingInfo(c,d.ngBind),c=c[0],b.$watch(d.ngBind,function(a){c.textContent=lb(a)})}}}}],wg=["$interpolate","$compile",function(a,b){return{compile:function(c){return b.$$addBindingClass(c),function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate)),b.$$addBindingInfo(d,c.expressions),d=d[0],e.$observe("ngBindTemplate",function(a){d.textContent=s(a)?"":a})}}}}],xg=["$sce","$parse","$compile",function(a,b,c){return{restrict:"A",compile:function(d,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(b){return a.valueOf(b)});return c.$$addBindingClass(d),function(b,d,e){c.$$addBindingInfo(d,e.ngBindHtml),b.$watch(g,function(){var c=f(b);d.html(a.getTrustedHtml(c)||"")})}}}}],yg=q({restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$viewChangeListeners.push(function(){a.$eval(c.ngChange)})}}),zg=$d("",!0),Ag=$d("Odd",0),Bg=$d("Even",1),Cg=Ld({compile:function(a,b){b.$set("ngCloak",void 0),a.removeClass("ng-cloak")}}),Dg=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Eg={},Fg={blur:!0,focus:!0};f("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=dc("ng-"+a);Eg[b]=["$parse","$rootScope",function(c,d){return{restrict:"A",compile:function(e,f){var g=c(f[b]);return function(b,c){c.on(a,function(c){var e=function(){g(b,{$event:c})};Fg[a]&&d.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Gg=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,i,j;c.$watch(e.ngIf,function(c){c?i||g(function(c,f){i=f,c[c.length++]=b.$$createComment("end ngIf",e.ngIf),h={clone:c},a.enter(c,d.parent(),d)}):(j&&(j.remove(),j=null),i&&(i.$destroy(),i=null),h&&(j=jb(h.clone),a.leave(j).done(function(a){!1!==a&&(j=null)}),h=null))})}}}],Hg=["$templateRequest","$anchorScroll","$animate",function(a,b,c){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:te.noop,compile:function(d,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(d,e,i,j,k){var l,m,n,o=0,p=function(){m&&(m.remove(),m=null),l&&(l.$destroy(),l=null),n&&(c.leave(n).done(function(a){!1!==a&&(m=null)}),m=n,n=null)};d.$watch(f,function(f){var i=function(a){!1===a||!t(h)||h&&!d.$eval(h)||b()},m=++o;f?(a(f,!0).then(function(a){if(!d.$$destroyed&&m===o){var b=d.$new();j.template=a,a=k(b,function(a){p(),c.enter(a,null,e).done(i)}),l=b,n=a,l.$emit("$includeContentLoaded",f),d.$eval(g)}},function(){d.$$destroyed||m!==o||(p(),d.$emit("$includeContentError",f))}),d.$emit("$includeContentRequested",f)):(p(),j.template=null)})}}}}],Ig=["$compile",function(b){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){qe.call(d[0]).match(/SVG/)?(d.empty(),b(tb(f.template,a.document).childNodes)(c,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),b(d.contents())(c))}}}],Jg=Ld({priority:450,compile:function(){return{pre:function(a,b,c){a.$eval(c.ngInit)}}}}),Kg=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,c,d){var e=c.ngList||", ",g="false"!==c.ngTrim,h=g?ye(e):e;d.$parsers.push(function(a){if(!s(a)){var b=[];return a&&f(a.split(h),function(a){a&&b.push(g?ye(a):a)}),b}}),d.$formatters.push(function(a){return we(a)?a.join(e):void 0}),d.$isEmpty=function(a){return!a||!a.length}}}},Lg="ng-valid",Mg="ng-invalid",Ng="ng-pristine",Og="ng-dirty",Pg=d("ngModel");_d.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),_d.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var a=this.$$parse(this.$$attr.ngModel+"()"),b=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(b){var c=this.$$parsedNgModel(b);return A(c)&&(c=a(b)),c},this.$$ngModelSet=function(a,c){A(this.$$parsedNgModel(a))?b(a,{$$$p:c}):this.$$parsedNgModelAssign(a,c)}}else if(!this.$$parsedNgModel.assign)throw Pg("nonassign",this.$$attr.ngModel,U(this.$$element))},$render:o,$isEmpty:function(a){return s(a)||""===a||null===a||a!==a},$$updateEmptyClasses:function(a){this.$isEmpty(a)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Og),this.$$animate.addClass(this.$$element,Ng)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Ng),this.$$animate.addClass(this.$$element,Og),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ve(this.$modelValue)){var a=this.$$lastCommittedViewValue,b=this.$$rawModelValue,c=this.$valid,d=this.$modelValue,e=this.$options.getOption("allowInvalid"),f=this;this.$$runValidators(b,a,function(a){e||c===a||(f.$modelValue=a?b:void 0,f.$modelValue!==d&&f.$$writeModelToScope())})}},$$runValidators:function(a,b,c){function d(){var c=!0;return f(j.$validators,function(d,e){var f=Boolean(d(a,b));c=c&&f,g(e,f)}),c?!0:(f(j.$asyncValidators,function(a,b){g(b,null)}),!1)}function e(){var c=[],d=!0;f(j.$asyncValidators,function(e,f){var h=e(a,b);if(!h||!A(h.then))throw Pg("nopromise",h);g(f,void 0),c.push(h.then(function(){g(f,!0)},function(){d=!1,g(f,!1)}))}),c.length?j.$$q.all(c).then(function(){h(d)},o):h(!0)}function g(a,b){i===j.$$currentValidationRunId&&j.$setValidity(a,b)}function h(a){i===j.$$currentValidationRunId&&c(a)}this.$$currentValidationRunId++;var i=this.$$currentValidationRunId,j=this;(function(){var a=j.$$parserName||"parse";return s(j.$$parserValid)?(g(a,null),!0):(j.$$parserValid||(f(j.$validators,function(a,b){g(b,null)}),f(j.$asyncValidators,function(a,b){g(b,null)})),g(a,j.$$parserValid),j.$$parserValid)})()&&d()?e():h(!1)},$commitViewValue:function(){var a=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==a||""===a&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(a),this.$$lastCommittedViewValue=a,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var a=this.$$lastCommittedViewValue,b=this;if(this.$$parserValid=s(a)?void 0:!0)for(var c=0;c<this.$parsers.length;c++)if(a=this.$parsers[c](a),s(a)){this.$$parserValid=!1;break}ve(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var d=this.$modelValue,e=this.$options.getOption("allowInvalid");this.$$rawModelValue=a,e&&(this.$modelValue=a,b.$modelValue!==d&&b.$$writeModelToScope()),this.$$runValidators(a,this.$$lastCommittedViewValue,function(c){e||(b.$modelValue=c?a:void 0,b.$modelValue!==d&&b.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),f(this.$viewChangeListeners,function(a){try{a()}catch(b){this.$$exceptionHandler(b)}},this)},$setViewValue:function(a,b){this.$viewValue=a,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(b)},$$debounceViewValueCommit:function(a){var b=this.$options.getOption("debounce");x(b[a])?b=b[a]:x(b["default"])&&(b=b["default"]),this.$$timeout.cancel(this.$$pendingDebounce);var c=this;b>0?this.$$pendingDebounce=this.$$timeout(function(){c.$commitViewValue()},b):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){c.$commitViewValue()})},$overrideModelOptions:function(a){this.$options=this.$options.createChild(a)}},Od({clazz:_d,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]}});var Qg,Rg=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_d,priority:1,compile:function(b){return b.addClass(Ng).addClass("ng-untouched").addClass(Lg),{pre:function(a,b,c,d){var e=d[0];b=d[1]||e.$$parentForm,(d=d[2])&&(e.$options=d.$options),e.$$initGetterSetters(),b.$addControl(e),c.$observe("name",function(a){e.$name!==a&&e.$$parentForm.$$renameControl(e,a)}),a.$on("$destroy",function(){e.$$parentForm.$removeControl(e)})},post:function(b,c,d,e){function f(){g.$setTouched()}var g=e[0];g.$options.getOption("updateOn")&&c.on(g.$options.getOption("updateOn"),function(a){g.$$debounceViewValueCommit(a&&a.type)}),c.on("blur",function(){g.$touched||(a.$$phase?b.$evalAsync(f):b.$apply(f))})}}}}}],Sg=/(\s+|^)default(\s+|$)/;be.prototype={getOption:function(a){return this.$$options[a]},createChild:function(a){var b=!1;return a=k({},a),f(a,function(c,d){"$inherit"===c?"*"===d?b=!0:(a[d]=this.$$options[d],"updateOn"===d&&(a.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===d&&(a.updateOnDefault=!1,a[d]=ye(c.replace(Sg,function(){return a.updateOnDefault=!0," "})))},this),b&&(delete a["*"],ce(a,this.$$options)),ce(a,Qg.$$options),new be(a)}},Qg=new be({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Tg=function(){function a(a,b){this.$$attrs=a,this.$$scope=b}return a.$inject=["$attrs","$scope"],a.prototype={$onInit:function(){var a=this.parentCtrl?this.parentCtrl.$options:Qg,b=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=a.createChild(b)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:a}},Ug=Ld({terminal:!0,priority:1e3}),Vg=d("ngOptions"),Wg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Xg=["$compile","$document","$parse",function(b,c,d){function g(a,b,c){function f(a,b,c,d,e){this.selectValue=a,this.viewValue=b,this.label=c,this.group=d,this.disabled=e}function g(a){var b;if(!j&&e(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var h=a.match(Wg);if(!h)throw Vg("iexp",a,U(b));var i=h[5]||h[7],j=h[6];a=/ as /.test(h[0])&&h[1];var k=h[9];b=d(h[2]?h[1]:i);var l=a&&d(a)||b,m=k&&d(k),n=k?function(a,b){return m(c,b)}:function(a){return Qb(a)},o=function(a,b){return n(a,u(a,b))},p=d(h[2]||h[1]),q=d(h[3]||""),r=d(h[4]||""),s=d(h[8]),t={},u=j?function(a,b){return t[j]=b,t[i]=a,t}:function(a){return t[i]=a,t};return{trackBy:k,getTrackByValue:o,getWatchables:d(s,function(a){var b=[];a=a||[];for(var d=g(a),e=d.length,f=0;e>f;f++){var i=a===d?f:d[f],j=a[i],i=u(j,i),j=n(j,i);b.push(j),(h[2]||h[1])&&(j=p(c,i),b.push(j)),h[4]&&(i=r(c,i),b.push(i))}return b}),getOptions:function(){for(var a=[],b={},d=s(c)||[],e=g(d),h=e.length,i=0;h>i;i++){var j=d===e?i:e[i],m=u(d[j],j),t=l(c,m),j=n(t,m),v=p(c,m),w=q(c,m),m=r(c,m),t=new f(j,t,v,w,m);a.push(t),b[j]=t}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[o(a)]},getViewValueFromOption:function(a){return k?K(a.viewValue):a.viewValue}}}}}var h=a.document.createElement("option"),i=a.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=o},post:function(a,d,e,j){function k(a){var b=(a=r.getOptionFromViewValue(a))&&a.element;return b&&!b.selected&&(b.selected=!0),a}function l(a,b){a.element=b,b.disabled=a.disabled,a.label!==b.label&&(b.label=a.label,b.textContent=a.label),b.value=a.selectValue}var m=j[0],n=j[1],o=e.multiple;j=0;for(var p=d.children(),q=p.length;q>j;j++)if(""===p[j].value){m.hasEmptyOption=!0,m.emptyOption=p.eq(j);break}d.empty(),j=!!m.emptyOption,fe(h.cloneNode(!1)).val("?");var r,s=g(e.ngOptions,d,a),u=c[0].createDocumentFragment();m.generateUnknownOptionValue=function(){return"?"},o?(m.writeValue=function(a){if(r){var b=a&&a.map(k)||[];r.items.forEach(function(a){a.element.selected&&-1===Array.prototype.indexOf.call(b,a)&&(a.element.selected=!1)})}},m.readValue=function(){var a=d.val()||[],b=[];return f(a,function(a){(a=r.selectValueMap[a])&&!a.disabled&&b.push(r.getViewValueFromOption(a))}),b},s.trackBy&&a.$watchCollection(function(){return we(n.$viewValue)?n.$viewValue.map(function(a){return s.getTrackByValue(a)}):void 0},function(){n.$render()})):(m.writeValue=function(a){if(r){var b=d[0].options[d[0].selectedIndex],c=r.getOptionFromViewValue(a);b&&b.removeAttribute("selected"),c?(d[0].value!==c.selectValue&&(m.removeUnknownOption(),d[0].value=c.selectValue,c.element.selected=!0),c.element.setAttribute("selected","selected")):m.selectUnknownOrEmptyOption(a)}},m.readValue=function(){var a=r.selectValueMap[d.val()];return a&&!a.disabled?(m.unselectEmptyOption(),m.removeUnknownOption(),r.getViewValueFromOption(a)):null},s.trackBy&&a.$watch(function(){return s.getTrackByValue(n.$viewValue)},function(){n.$render()})),j&&(b(m.emptyOption)(a),d.prepend(m.emptyOption),8===m.emptyOption[0].nodeType?(m.hasEmptyOption=!1,m.registerOption=function(a,b){""===b.val()&&(m.hasEmptyOption=!0,m.emptyOption=b,m.emptyOption.removeClass("ng-scope"),n.$render(),b.on("$destroy",function(){var a=m.$isEmptyOptionSelected();m.hasEmptyOption=!1,m.emptyOption=void 0,a&&n.$render()}))}):m.emptyOption.removeClass("ng-scope")),a.$watchCollection(s.getWatchables,function(){var a=r&&m.readValue();if(r)for(var b=r.items.length-1;b>=0;b--){var c=r.items[b];Ib(t(c.group)?c.element.parentNode:c.element)}r=s.getOptions();var e={};r.items.forEach(function(a){var b;if(t(a.group)){b=e[a.group],b||(b=i.cloneNode(!1),u.appendChild(b),b.label=null===a.group?"null":a.group,e[a.group]=b);var c=h.cloneNode(!1);b.appendChild(c),l(a,c)}else b=h.cloneNode(!1),u.appendChild(b),l(a,b)}),d[0].appendChild(u),n.$render(),n.$isEmpty(a)||(b=m.readValue(),(s.trackBy||o?M(a,b):a===b)||(n.$setViewValue(b),n.$render()))})}}}}],Yg=["$locale","$interpolate","$log",function(a,b,c){var d=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(g,h,i){function j(a){h.text(a||"")}var k,l=i.count,m=i.$attr.when&&h.attr(i.$attr.when),n=i.offset||0,p=g.$eval(m)||{},q={},r=b.startSymbol(),t=b.endSymbol(),u=r+l+"-"+n+t,v=te.noop;f(i,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+le(c[2]),p[c]=h.attr(i.$attr[b]))}),f(p,function(a,c){q[c]=b(a.replace(d,u))}),g.$watch(l,function(b){var d=parseFloat(b),e=ve(d);e||d in p||(d=a.pluralCat(d-n)),d===k||e&&ve(k)||(v(),e=q[d],s(e)?(null!=b&&c.debug("ngPluralize: no rule defined for '"+d+"' in "+m),v=o,j()):v=g.$watch(e,j),k=d)})}}}],Zg=["$parse","$animate","$compile",function(a,b,c){var g=d("ngRepeat"),h=function(a,b,c,d,e,f,g){a[c]=d,e&&(a[e]=f),a.$index=b,a.$first=0===b,a.$last=b===g-1,a.$middle=!(a.$first||a.$last),a.$odd=!(a.$even=0===(1&b))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(d,i){var j=i.ngRepeat,k=c.$$createComment("end ngRepeat",j),l=j.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!l)throw g("iexp",j);var m=l[1],n=l[2],o=l[3],p=l[4],l=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!l)throw g("iidexp",m);var q=l[3]||l[1],r=l[2];if(o&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(o)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(o)))throw g("badident",o);var s,t,u,v,w={$id:Qb};return p?s=a(p):(u=function(a,b){return Qb(b)},v=function(a){return a}),function(a,c,d,i,l){s&&(t=function(b,c,d){return r&&(w[r]=b),w[q]=c,w.$index=d,s(a,w)});var m=kb();a.$watchCollection(n,function(d){var i,n,p,s,w,x,y,z,A,B,C=c[0],D=kb();if(o&&(a[o]=d),e(d))z=d,n=t||u;else for(B in n=t||v,z=[],d)ke.call(d,B)&&"$"!==B.charAt(0)&&z.push(B);for(s=z.length,B=Array(s),i=0;s>i;i++)if(w=d===z?i:z[i],x=d[w],y=n(w,x,i),m[y])A=m[y],delete m[y],D[y]=A,B[i]=A;else{if(D[y])throw f(B,function(a){a&&a.scope&&(m[a.id]=a)}),g("dupes",j,y,x);B[i]={id:y,scope:void 0,clone:void 0},D[y]=!0}for(p in m){if(A=m[p],y=jb(A.clone),b.leave(y),y[0].parentNode)for(i=0,n=y.length;n>i;i++)y[i].$$NG_REMOVED=!0;A.scope.$destroy()}for(i=0;s>i;i++)if(w=d===z?i:z[i],x=d[w],A=B[i],A.scope){p=C;do p=p.nextSibling;while(p&&p.$$NG_REMOVED);A.clone[0]!==p&&b.move(jb(A.clone),null,C),C=A.clone[A.clone.length-1],h(A.scope,i,q,x,r,w,s)}else l(function(a,c){A.scope=c;var d=k.cloneNode(!1);a[a.length++]=d,b.enter(a,null,C),C=d,A.clone=a,D[A.id]=A,h(A.scope,i,q,x,r,w,s)});m=D})}}}}],$g=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngShow,function(b){a[b?"removeClass":"addClass"](c,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],_g=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngHide,function(b){a[b?"addClass":"removeClass"](c,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ah=Ld(function(a,b,c){a.$watch(c.ngStyle,function(a,c){c&&a!==c&&f(c,function(a,c){b.css(c,"")}),a&&b.css(a)},!0)}),bh=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,g){var h=[],i=[],j=[],k=[],l=function(a,b){return function(c){!1!==c&&a.splice(b,1)}};c.$watch(e.ngSwitch||e.on,function(c){for(var d,e;j.length;)a.cancel(j.pop());for(d=0,e=k.length;e>d;++d){var m=jb(i[d].clone);k[d].$destroy(),(j[d]=a.leave(m)).done(l(j,d))}i.length=0,k.length=0,(h=g.cases["!"+c]||g.cases["?"])&&f(h,function(c){c.transclude(function(d,e){k.push(e);var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen"),i.push({clone:d}),a.enter(d,f.parent(),f)})})})}}}],ch=Ld({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){a=c.ngSwitchWhen.split(c.ngSwitchWhenSeparator).sort().filter(function(a,b,c){return c[b-1]!==a
}),f(a,function(a){d.cases["!"+a]=d.cases["!"+a]||[],d.cases["!"+a].push({transclude:e,element:b})})}}),dh=Ld({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["?"]=d.cases["?"]||[],d.cases["?"].push({transclude:e,element:b})}}),eh=d("ngTransclude"),fh=["$compile",function(a){return{restrict:"EAC",terminal:!0,compile:function(b){var c=a(b.contents());return b.empty(),function(a,b,d,e,f){function g(){c(a,function(a){b.append(a)})}if(!f)throw eh("orphan",U(b));d.ngTransclude===d.$attr.ngTransclude&&(d.ngTransclude=""),d=d.ngTransclude||d.ngTranscludeSlot,f(function(a,c){var d;if(d=a.length)a:{d=0;for(var e=a.length;e>d;d++){var f=a[d];if(f.nodeType!==He||f.nodeValue.trim()){d=!0;break a}}d=void 0}d?b.append(a):(g(),c.$destroy())},null,d),d&&!f.isSlotFilled(d)&&g()}}}}],gh=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,c){"text/ng-template"===c.type&&a.put(c.id,b[0].text)}}}],hh={$setViewValue:o,$render:o},ih=["$element","$scope",function(b,c){function d(){h||(h=!0,c.$$postDigest(function(){h=!1,f.ngModelCtrl.$render()}))}function e(a){i||(i=!0,c.$$postDigest(function(){c.$$destroyed||(i=!1,f.ngModelCtrl.$setViewValue(f.readValue()),a&&f.ngModelCtrl.$render())}))}var f=this,g=new $e;f.selectValueMap={},f.ngModelCtrl=hh,f.multiple=!1,f.unknownOption=fe(a.document.createElement("option")),f.hasEmptyOption=!1,f.emptyOption=void 0,f.renderUnknownOption=function(a){a=f.generateUnknownOptionValue(a),f.unknownOption.val(a),b.prepend(f.unknownOption),de(f.unknownOption,!0),b.val(a)},f.updateUnknownOption=function(a){a=f.generateUnknownOptionValue(a),f.unknownOption.val(a),de(f.unknownOption,!0),b.val(a)},f.generateUnknownOptionValue=function(a){return"? "+Qb(a)+" ?"},f.removeUnknownOption=function(){f.unknownOption.parent()&&f.unknownOption.remove()},f.selectEmptyOption=function(){f.emptyOption&&(b.val(""),de(f.emptyOption,!0))},f.unselectEmptyOption=function(){f.hasEmptyOption&&de(f.emptyOption,!1)},c.$on("$destroy",function(){f.renderUnknownOption=o}),f.readValue=function(){var a=b.val(),a=a in f.selectValueMap?f.selectValueMap[a]:a;return f.hasOption(a)?a:null},f.writeValue=function(a){var c=b[0].options[b[0].selectedIndex];c&&de(fe(c),!1),f.hasOption(a)?(f.removeUnknownOption(),c=Qb(a),b.val(c in f.selectValueMap?c:a),de(fe(b[0].options[b[0].selectedIndex]),!0)):f.selectUnknownOrEmptyOption(a)},f.addOption=function(a,b){if(8!==b[0].nodeType){hb(a,'"option value"'),""===a&&(f.hasEmptyOption=!0,f.emptyOption=b);var c=g.get(a)||0;g.set(a,c+1),d()}},f.removeOption=function(a){var b=g.get(a);b&&(1===b?(g.delete(a),""===a&&(f.hasEmptyOption=!1,f.emptyOption=void 0)):g.set(a,b-1))},f.hasOption=function(a){return!!g.get(a)},f.$hasEmptyOption=function(){return f.hasEmptyOption},f.$isUnknownOptionSelected=function(){return b[0].options[0]===f.unknownOption[0]},f.$isEmptyOptionSelected=function(){return f.hasEmptyOption&&b[0].options[b[0].selectedIndex]===f.emptyOption[0]},f.selectUnknownOrEmptyOption=function(a){null==a&&f.emptyOption?(f.removeUnknownOption(),f.selectEmptyOption()):f.unknownOption.parent().length?f.updateUnknownOption(a):f.renderUnknownOption(a)};var h=!1,i=!1;f.registerOption=function(a,b,c,g,h){if(c.$attr.ngValue){var i,j=0/0;c.$observe("value",function(a){var c,d=b.prop("selected");t(j)&&(f.removeOption(i),delete f.selectValueMap[j],c=!0),j=Qb(a),i=a,f.selectValueMap[j]=a,f.addOption(a,b),b.attr("value",j),c&&d&&e()})}else g?c.$observe("value",function(a){f.readValue();var c,d=b.prop("selected");t(i)&&(f.removeOption(i),c=!0),i=a,f.addOption(a,b),c&&d&&e()}):h?a.$watch(h,function(a,d){c.$set("value",a);var g=b.prop("selected");d!==a&&f.removeOption(d),f.addOption(a,b),d&&g&&e()}):f.addOption(c.value,b);c.$observe("disabled",function(a){("true"===a||a&&b.prop("selected"))&&(f.multiple?e(!0):(f.ngModelCtrl.$setViewValue(null),f.ngModelCtrl.$render()))}),b.on("$destroy",function(){var a=f.readValue(),b=c.value;f.removeOption(b),d(),(f.multiple&&a&&-1!==a.indexOf(b)||a===b)&&e(!0)})}}],jh=function(){return{restrict:"E",require:["select","?ngModel"],controller:ih,priority:1,link:{pre:function(a,b,c,d){var e=d[0],g=d[1];if(g){if(e.ngModelCtrl=g,b.on("change",function(){e.removeUnknownOption(),a.$apply(function(){g.$setViewValue(e.readValue())})}),c.multiple){e.multiple=!0,e.readValue=function(){var a=[];return f(b.find("option"),function(b){b.selected&&!b.disabled&&(b=b.value,a.push(b in e.selectValueMap?e.selectValueMap[b]:b))}),a},e.writeValue=function(a){f(b.find("option"),function(b){var c=!!a&&(-1!==Array.prototype.indexOf.call(a,b.value)||-1!==Array.prototype.indexOf.call(a,e.selectValueMap[b.value]));c!==b.selected&&de(fe(b),c)})};var h,i=0/0;a.$watch(function(){i!==g.$viewValue||M(h,g.$viewValue)||(h=nb(g.$viewValue),g.$render()),i=g.$viewValue}),g.$isEmpty=function(a){return!a||0===a.length}}}else e.registerOption=o},post:function(a,b,c,d){var e=d[1];if(e){var f=d[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},kh=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,c){var d,e;return t(c.ngValue)||(t(c.value)?d=a(c.value,!0):(e=a(b.text(),!0))||c.$set("value",b.text())),function(a,b,c){var f=b.parent();(f=f.data("$selectController")||f.parent().data("$selectController"))&&f.registerOption(a,b,c,d,e)}}}}],lh=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){d&&(c.required=!0,d.$validators.required=function(a,b){return!c.required||!d.$isEmpty(b)},c.$observe("required",function(){d.$validate()}))}}},mh=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,e){if(e){var f,g=c.ngPattern||c.pattern;c.$observe("pattern",function(a){if(w(a)&&0<a.length&&(a=new RegExp("^"+a+"$")),a&&!a.test)throw d("ngPattern")("noregexp",g,a,U(b));f=a||void 0,e.$validate()}),e.$validators.pattern=function(a,b){return e.$isEmpty(b)||s(f)||f.test(b)}}}}},nh=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=-1;c.$observe("maxlength",function(a){a=m(a),e=ve(a)?-1:a,d.$validate()}),d.$validators.maxlength=function(a,b){return 0>e||d.$isEmpty(b)||b.length<=e}}}}},oh=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=0;c.$observe("minlength",function(a){e=m(a)||0,d.$validate()}),d.$validators.minlength=function(a,b){return d.$isEmpty(b)||b.length>=e}}}}};a.angular.bootstrap?a.console&&console.log("WARNING: Tried to load angular more than once."):(eb(),pb(te),te.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,c){var d=0|a,e=c;return void 0===e&&(e=Math.min(b(a),3)),Math.pow(10,e),1==d&&0==e?"one":"other"}})}]),fe(function(){_(a.document,ab)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a,b){b=b||cb;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}function d(a){var b=!!a&&"length"in a&&a.length,c=pb.type(a);return"function"!==c&&!pb.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}function e(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function f(a,b,c){return pb.isFunction(b)?pb.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?pb.grep(a,function(a){return a===b!==c}):"string"!=typeof b?pb.grep(a,function(a){return hb.call(b,a)>-1!==c}):zb.test(b)?pb.filter(b,a,c):(b=pb.filter(b,a),pb.grep(a,function(a){return hb.call(b,a)>-1!==c&&1===a.nodeType}))}function g(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function h(a){var b={};return pb.each(a.match(Fb)||[],function(a,c){b[c]=!0}),b}function i(a){return a}function j(a){throw a}function k(a,b,c,d){var e;try{a&&pb.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&pb.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}function l(){cb.removeEventListener("DOMContentLoaded",l),a.removeEventListener("load",l),pb.ready()}function m(){this.expando=pb.expando+m.uid++}function n(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:Mb.test(a)?JSON.parse(a):a)}function o(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Nb,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=n(c)}catch(e){}Lb.set(a,b,c)}else c=void 0;return c}function p(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return pb.css(a,b,"")},i=h(),j=c&&c[3]||(pb.cssNumber[b]?"":"px"),k=(pb.cssNumber[b]||"px"!==j&&+i)&&Pb.exec(pb.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,pb.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function q(a){var b,c=a.ownerDocument,d=a.nodeName,e=Tb[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=pb.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),Tb[d]=e,e)}function r(a,b){for(var c,d,e=[],f=0,g=a.length;g>f;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=Kb.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&Rb(d)&&(e[f]=q(d))):"none"!==c&&(e[f]="none",Kb.set(d,"display",c)));for(f=0;g>f;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}function s(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&e(a,b)?pb.merge([a],c):c}function t(a,b){for(var c=0,d=a.length;d>c;c++)Kb.set(a[c],"globalEval",!b||Kb.get(b[c],"globalEval"))}function u(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;o>n;n++)if(f=a[n],f||0===f)if("object"===pb.type(f))pb.merge(m,f.nodeType?[f]:f);else if(Yb.test(f)){for(g=g||l.appendChild(b.createElement("div")),h=(Vb.exec(f)||["",""])[1].toLowerCase(),i=Xb[h]||Xb._default,g.innerHTML=i[1]+pb.htmlPrefilter(f)+i[2],k=i[0];k--;)g=g.lastChild;pb.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));for(l.textContent="",n=0;f=m[n++];)if(d&&pb.inArray(f,d)>-1)e&&e.push(f);else if(j=pb.contains(f.ownerDocument,f),g=s(l.appendChild(f),"script"),j&&t(g),c)for(k=0;f=g[k++];)Wb.test(f.type||"")&&c.push(f);return l}function v(){return!0}function w(){return!1}function x(){try{return cb.activeElement}catch(a){}}function y(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)y(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=w;else if(!e)return a;return 1===f&&(g=e,e=function(a){return pb().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=pb.guid++)),a.each(function(){pb.event.add(this,b,e,d,c)})}function z(a,b){return e(a,"table")&&e(11!==b.nodeType?b:b.firstChild,"tr")?pb(">tbody",a)[0]||a:a}function A(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function B(a){var b=ec.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function C(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(Kb.hasData(a)&&(f=Kb.access(a),g=Kb.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)pb.event.add(b,e,j[e][c])}Lb.hasData(a)&&(h=Lb.access(a),i=pb.extend({},h),Lb.set(b,i))}}function D(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ub.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function E(a,b,d,e){b=fb.apply([],b);var f,g,h,i,j,k,l=0,m=a.length,n=m-1,o=b[0],p=pb.isFunction(o);if(p||m>1&&"string"==typeof o&&!nb.checkClone&&dc.test(o))return a.each(function(c){var f=a.eq(c);p&&(b[0]=o.call(this,c,f.html())),E(f,b,d,e)});if(m&&(f=u(b,a[0].ownerDocument,!1,a,e),g=f.firstChild,1===f.childNodes.length&&(f=g),g||e)){for(h=pb.map(s(f,"script"),A),i=h.length;m>l;l++)j=f,l!==n&&(j=pb.clone(j,!0,!0),i&&pb.merge(h,s(j,"script"))),d.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,pb.map(h,B),l=0;i>l;l++)j=h[l],Wb.test(j.type||"")&&!Kb.access(j,"globalEval")&&pb.contains(k,j)&&(j.src?pb._evalUrl&&pb._evalUrl(j.src):c(j.textContent.replace(fc,""),k))}return a}function F(a,b,c){for(var d,e=b?pb.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||pb.cleanData(s(d)),d.parentNode&&(c&&pb.contains(d.ownerDocument,d)&&t(s(d,"script")),d.parentNode.removeChild(d));return a}function G(a,b,c){var d,e,f,g,h=a.style;return c=c||ic(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||pb.contains(a.ownerDocument,a)||(g=pb.style(a,b)),!nb.pixelMarginRight()&&hc.test(g)&&gc.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function H(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function I(a){if(a in oc)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=nc.length;c--;)if(a=nc[c]+b,a in oc)return a}function J(a){var b=pb.cssProps[a];return b||(b=pb.cssProps[a]=I(a)||a),b}function K(a,b,c){var d=Pb.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function L(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;4>f;f+=2)"margin"===c&&(g+=pb.css(a,c+Qb[f],!0,e)),d?("content"===c&&(g-=pb.css(a,"padding"+Qb[f],!0,e)),"margin"!==c&&(g-=pb.css(a,"border"+Qb[f]+"Width",!0,e))):(g+=pb.css(a,"padding"+Qb[f],!0,e),"padding"!==c&&(g+=pb.css(a,"border"+Qb[f]+"Width",!0,e)));return g}function M(a,b,c){var d,e=ic(a),f=G(a,b,e),g="border-box"===pb.css(a,"boxSizing",!1,e);return hc.test(f)?f:(d=g&&(nb.boxSizingReliable()||f===a.style[b]),"auto"===f&&(f=a["offset"+b[0].toUpperCase()+b.slice(1)]),f=parseFloat(f)||0,f+L(a,b,c||(g?"border":"content"),d,e)+"px")}function N(a,b,c,d,e){return new N.prototype.init(a,b,c,d,e)}function O(){qc&&(cb.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(O):a.setTimeout(O,pb.fx.interval),pb.fx.tick())}function P(){return a.setTimeout(function(){pc=void 0}),pc=pb.now()}function Q(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=Qb[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function R(a,b,c){for(var d,e=(U.tweeners[b]||[]).concat(U.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function S(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&Rb(a),q=Kb.get(a,"fxshow");c.queue||(g=pb._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,pb.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],rc.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||pb.style(a,d)}if(i=!pb.isEmptyObject(b),i||!pb.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=Kb.get(a,"display")),k=pb.css(a,"display"),"none"===k&&(j?k=j:(r([a],!0),j=a.style.display||j,k=pb.css(a,"display"),r([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===pb.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=Kb.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&r([a],!0),m.done(function(){p||r([a]),Kb.remove(a,"fxshow");for(d in n)pb.style(a,d,n[d])})),i=R(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function T(a,b){var c,d,e,f,g;for(c in a)if(d=pb.camelCase(c),e=b[d],f=a[c],Array.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=pb.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function U(a,b,c){var d,e,f=0,g=U.prefilters.length,h=pb.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=pc||P(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(i||h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:pb.extend({},b),opts:pb.extend(!0,{specialEasing:{},easing:pb.easing._default},c),originalProperties:b,originalOptions:c,startTime:pc||P(),duration:c.duration,tweens:[],createTween:function(b,c){var d=pb.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(T(k,j.opts.specialEasing);g>f;f++)if(d=U.prefilters[f].call(j,a,k,j.opts))return pb.isFunction(d.stop)&&(pb._queueHooks(j.elem,j.opts.queue).stop=pb.proxy(d.stop,d)),d;return pb.map(k,R,j),pb.isFunction(j.opts.start)&&j.opts.start.call(a,j),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always),pb.fx.timer(pb.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j}function V(a){var b=a.match(Fb)||[];return b.join(" ")}function W(a){return a.getAttribute&&a.getAttribute("class")||""}function X(a,b,c,d){var e;if(Array.isArray(b))pb.each(b,function(b,e){c||Cc.test(a)?d(a,e):X(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==pb.type(b))d(a,b);else for(e in b)X(a+"["+e+"]",b[e],c,d)}function Y(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(Fb)||[];if(pb.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Z(a,b,c,d){function e(h){var i;return f[h]=!0,pb.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Oc;return e(b.dataTypes[0])||!f["*"]&&e("*")}function $(a,b){var c,d,e=pb.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&pb.extend(!0,a,d),a}function _(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}var bb=[],cb=a.document,db=Object.getPrototypeOf,eb=bb.slice,fb=bb.concat,gb=bb.push,hb=bb.indexOf,ib={},jb=ib.toString,kb=ib.hasOwnProperty,lb=kb.toString,mb=lb.call(Object),nb={},ob="3.2.1",pb=function(a,b){return new pb.fn.init(a,b)},qb=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rb=/^-ms-/,sb=/-([a-z])/g,tb=function(a,b){return b.toUpperCase()};pb.fn=pb.prototype={jquery:ob,constructor:pb,length:0,toArray:function(){return eb.call(this)},get:function(a){return null==a?eb.call(this):0>a?this[a+this.length]:this[a]},pushStack:function(a){var b=pb.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return pb.each(this,a)},map:function(a){return this.pushStack(pb.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(eb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:gb,sort:bb.sort,splice:bb.splice},pb.extend=pb.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||pb.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(pb.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&pb.isPlainObject(c)?c:{},g[b]=pb.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},pb.extend({expando:"jQuery"+(ob+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===pb.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=pb.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==jb.call(a)||(b=db(a))&&(c=kb.call(b,"constructor")&&b.constructor,"function"!=typeof c||lb.call(c)!==mb))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?ib[jb.call(a)]||"object":typeof a},globalEval:function(a){c(a)},camelCase:function(a){return a.replace(rb,"ms-").replace(sb,tb)},each:function(a,b){var c,e=0;if(d(a))for(c=a.length;c>e&&b.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(b.call(a[e],e,a[e])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(qb,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(d(Object(a))?pb.merge(c,"string"==typeof a?[a]:a):gb.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:hb.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var e,f,g=0,h=[];if(d(a))for(e=a.length;e>g;g++)f=b(a[g],g,c),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,c),null!=f&&h.push(f);return fb.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),pb.isFunction(a)?(d=eb.call(arguments,2),e=function(){return a.apply(b||this,d.concat(eb.call(arguments)))},e.guid=a.guid=a.guid||pb.guid++,e):void 0},now:Date.now,support:nb}),"function"==typeof Symbol&&(pb.fn[Symbol.iterator]=bb[Symbol.iterator]),pb.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){ib["[object "+b+"]"]=b.toLowerCase()});var ub=function(a){function b(a,b,c,d){var e,f,g,h,i,j,k,m=b&&b.ownerDocument,o=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==o&&9!==o&&11!==o)return c;if(!d&&((b?b.ownerDocument||b:P)!==H&&G(b),b=b||H,J)){if(11!==o&&(i=rb.exec(a)))if(e=i[1]){if(9===o){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(m&&(g=m.getElementById(e))&&N(b,g)&&g.id===e)return c.push(g),c}else{if(i[2])return $.apply(c,b.getElementsByTagName(a)),c;if((e=i[3])&&w.getElementsByClassName&&b.getElementsByClassName)return $.apply(c,b.getElementsByClassName(e)),c}if(!(!w.qsa||U[a+" "]||K&&K.test(a))){if(1!==o)m=b,k=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(vb,wb):b.setAttribute("id",h=O),j=A(a),f=j.length;f--;)j[f]="#"+h+" "+n(j[f]);k=j.join(","),m=sb.test(a)&&l(b.parentNode)||b}if(k)try{return $.apply(c,m.querySelectorAll(k)),c}catch(p){}finally{h===O&&b.removeAttribute("id")}}}return C(a.replace(hb,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>x.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[O]=!0,a}function e(a){var b=H.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)x.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&yb(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function k(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function l(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function m(){}function n(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function o(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=R++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[Q,h];if(i){for(;b=b[d];)if((1===b.nodeType||g)&&a(b,c,i))return!0}else for(;b=b[d];)if(1===b.nodeType||g)if(l=b[O]||(b[O]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===Q&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function p(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function q(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function r(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function s(a,b,c,e,f,g){return e&&!e[O]&&(e=s(e)),f&&!f[O]&&(f=s(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=d||q(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?p:r(p,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=r(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?ab(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=r(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function t(a){for(var b,c,d,e=a.length,f=x.relative[a[0].type],g=f||x.relative[" "],h=f?1:0,i=o(function(a){return a===b},g,!0),j=o(function(a){return ab(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==D)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=x.relative[a[h].type])k=[o(p(k),c)];else{if(c=x.filter[a[h].type].apply(null,a[h].matches),c[O]){for(d=++h;e>d&&!x.relative[a[d].type];d++);return s(h>1&&p(k),h>1&&n(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(hb,"$1"),c,d>h&&t(a.slice(h,d)),e>d&&t(a=a.slice(d)),e>d&&n(a))}k.push(c)}return p(k)}function u(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],q=[],s=D,t=d||f&&x.find.TAG("*",j),u=Q+=null==s?1:Math.random()||.1,v=t.length;for(j&&(D=g===H||g||j);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0,g||k.ownerDocument===H||(G(k),h=!J);m=a[l++];)if(m(k,g||H,h)){i.push(k);break}j&&(Q=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,q,g,h);if(d){if(n>0)for(;o--;)p[o]||q[o]||(q[o]=Y.call(i));q=r(q)}$.apply(i,q),j&&!d&&q.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(Q=u,D=s),p};return e?d(g):g}var v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O="sizzle"+1*new Date,P=a.document,Q=0,R=0,S=c(),T=c(),U=c(),V=function(a,b){return a===b&&(F=!0),0},W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,ab=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},bb="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cb="[\\x20\\t\\r\\n\\f]",db="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",eb="\\["+cb+"*("+db+")(?:"+cb+"*([*^$|!~]?=)"+cb+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+db+"))|)"+cb+"*\\]",fb=":("+db+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+eb+")*)|.*)\\)|)",gb=new RegExp(cb+"+","g"),hb=new RegExp("^"+cb+"+|((?:^|[^\\\\])(?:\\\\.)*)"+cb+"+$","g"),ib=new RegExp("^"+cb+"*,"+cb+"*"),jb=new RegExp("^"+cb+"*([>+~]|"+cb+")"+cb+"*"),kb=new RegExp("="+cb+"*([^\\]'\"]*?)"+cb+"*\\]","g"),lb=new RegExp(fb),mb=new RegExp("^"+db+"$"),nb={ID:new RegExp("^#("+db+")"),CLASS:new RegExp("^\\.("+db+")"),TAG:new RegExp("^("+db+"|[*])"),ATTR:new RegExp("^"+eb),PSEUDO:new RegExp("^"+fb),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cb+"*(even|odd|(([+-]|)(\\d*)n|)"+cb+"*(?:([+-]|)"+cb+"*(\\d+)|))"+cb+"*\\)|)","i"),bool:new RegExp("^(?:"+bb+")$","i"),needsContext:new RegExp("^"+cb+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cb+"*((?:-\\d)?\\d*)"+cb+"*\\)|)(?=[^-]|$)","i")},ob=/^(?:input|select|textarea|button)$/i,pb=/^h\d$/i,qb=/^[^{]+\{\s*\[native \w/,rb=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sb=/[+~]/,tb=new RegExp("\\\\([\\da-f]{1,6}"+cb+"?|("+cb+")|.)","ig"),ub=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},vb=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wb=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},xb=function(){G()},yb=o(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{$.apply(X=_.call(P.childNodes),P.childNodes),X[P.childNodes.length].nodeType}catch(zb){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}w=b.support={},z=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},G=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:P;return d!==H&&9===d.nodeType&&d.documentElement?(H=d,I=H.documentElement,J=!z(H),P!==H&&(c=H.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",xb,!1):c.attachEvent&&c.attachEvent("onunload",xb)),w.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),w.getElementsByTagName=e(function(a){return a.appendChild(H.createComment("")),!a.getElementsByTagName("*").length}),w.getElementsByClassName=qb.test(H.getElementsByClassName),w.getById=e(function(a){return I.appendChild(a).id=O,!H.getElementsByName||!H.getElementsByName(O).length}),w.getById?(x.filter.ID=function(a){var b=a.replace(tb,ub);
return function(a){return a.getAttribute("id")===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c=b.getElementById(a);return c?[c]:[]}}):(x.filter.ID=function(a){var b=a.replace(tb,ub);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];for(e=b.getElementsByName(a),d=0;f=e[d++];)if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),x.find.TAG=w.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):w.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},x.find.CLASS=w.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&J?b.getElementsByClassName(a):void 0},L=[],K=[],(w.qsa=qb.test(H.querySelectorAll))&&(e(function(a){I.appendChild(a).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&K.push("[*^$]="+cb+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||K.push("\\["+cb+"*(?:value|"+bb+")"),a.querySelectorAll("[id~="+O+"-]").length||K.push("~="),a.querySelectorAll(":checked").length||K.push(":checked"),a.querySelectorAll("a#"+O+"+*").length||K.push(".#.+[+~]")}),e(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=H.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&K.push("name"+cb+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&K.push(":enabled",":disabled"),I.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&K.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),K.push(",.*:")})),(w.matchesSelector=qb.test(M=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&e(function(a){w.disconnectedMatch=M.call(a,"*"),M.call(a,"[s!='']:x"),L.push("!=",fb)}),K=K.length&&new RegExp(K.join("|")),L=L.length&&new RegExp(L.join("|")),b=qb.test(I.compareDocumentPosition),N=b||qb.test(I.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},V=b?function(a,b){if(a===b)return F=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!w.sortDetached&&b.compareDocumentPosition(a)===c?a===H||a.ownerDocument===P&&N(P,a)?-1:b===H||b.ownerDocument===P&&N(P,b)?1:E?ab(E,a)-ab(E,b):0:4&c?-1:1)}:function(a,b){if(a===b)return F=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===H?-1:b===H?1:e?-1:f?1:E?ab(E,a)-ab(E,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===P?-1:i[d]===P?1:0},H):H},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==H&&G(a),c=c.replace(kb,"='$1']"),!(!w.matchesSelector||!J||U[c+" "]||L&&L.test(c)||K&&K.test(c)))try{var d=M.call(a,c);if(d||w.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,H,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==H&&G(a),N(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==H&&G(a);var c=x.attrHandle[b.toLowerCase()],d=c&&W.call(x.attrHandle,b.toLowerCase())?c(a,b,!J):void 0;return void 0!==d?d:w.attributes||!J?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.escape=function(a){return(a+"").replace(vb,wb)},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(F=!w.detectDuplicates,E=!w.sortStable&&a.slice(0),a.sort(V),F){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return E=null,a},y=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=y(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=y(b);return c},x=b.selectors={cacheLength:50,createPseudo:d,match:nb,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(tb,ub),a[3]=(a[3]||a[4]||a[5]||"").replace(tb,ub),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return nb.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&lb.test(c)&&(b=A(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(tb,ub).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=S[a+" "];return b||(b=new RegExp("(^|"+cb+")"+a+"("+cb+"|$)"))&&S(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:!c||(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(gb," ")+" ").indexOf(d)>-1:"|="===c&&(f===d||f.slice(0,d.length+1)===d+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[Q,n,t];break}}else if(s&&(m=b,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[Q,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=x.pseudos[a]||x.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[O]?f(c):f.length>1?(e=[a,a,"",c],x.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=ab(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=B(a.replace(hb,"$1"));return e[O]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(tb,ub),function(b){return(b.textContent||b.innerText||y(b)).indexOf(a)>-1}}),lang:d(function(a){return mb.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(tb,ub).toLowerCase(),function(b){var c;do if(c=J?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===I},focus:function(a){return a===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:j(!1),disabled:j(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return pb.test(a.nodeName)},input:function(a){return ob.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,b){return[b-1]}),eq:k(function(a,b,c){return[0>c?c+b:c]}),even:k(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:k(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:k(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:k(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},x.pseudos.nth=x.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[v]=h(v);for(v in{submit:!0,reset:!0})x.pseudos[v]=i(v);return m.prototype=x.filters=x.pseudos,x.setFilters=new m,A=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=T[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=x.preFilter;h;){d&&!(e=ib.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=jb.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(hb," ")}),h=h.slice(d.length));for(g in x.filter)!(e=nb[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):T(a,i).slice(0)},B=b.compile=function(a,b){var c,d=[],e=[],f=U[a+" "];if(!f){for(b||(b=A(a)),c=b.length;c--;)f=t(b[c]),f[O]?d.push(f):e.push(f);f=U(a,u(e,d)),f.selector=a}return f},C=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,k=!d&&A(a=j.selector||a);if(c=c||[],1===k.length){if(f=k[0]=k[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&9===b.nodeType&&J&&x.relative[f[1].type]){if(b=(x.find.ID(g.matches[0].replace(tb,ub),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=nb.needsContext.test(a)?0:f.length;e--&&(g=f[e],!x.relative[h=g.type]);)if((i=x.find[h])&&(d=i(g.matches[0].replace(tb,ub),sb.test(f[0].type)&&l(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&n(f),!a)return $.apply(c,d),c;break}}return(j||B(a,k))(d,b,!J,c,!b||sb.test(a)&&l(b.parentNode)||b),c},w.sortStable=O.split("").sort(V).join("")===O,w.detectDuplicates=!!F,G(),w.sortDetached=e(function(a){return 1&a.compareDocumentPosition(H.createElement("fieldset"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),w.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(bb,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);pb.find=ub,pb.expr=ub.selectors,pb.expr[":"]=pb.expr.pseudos,pb.uniqueSort=pb.unique=ub.uniqueSort,pb.text=ub.getText,pb.isXMLDoc=ub.isXML,pb.contains=ub.contains,pb.escapeSelector=ub.escape;var vb=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&pb(a).is(c))break;d.push(a)}return d},wb=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},xb=pb.expr.match.needsContext,yb=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,zb=/^.[^:#\[\.,]*$/;pb.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?pb.find.matchesSelector(d,a)?[d]:[]:pb.find.matches(a,pb.grep(b,function(a){return 1===a.nodeType}))},pb.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(pb(a).filter(function(){for(b=0;d>b;b++)if(pb.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;d>b;b++)pb.find(a,e[b],c);return d>1?pb.uniqueSort(c):c},filter:function(a){return this.pushStack(f(this,a||[],!1))},not:function(a){return this.pushStack(f(this,a||[],!0))},is:function(a){return!!f(this,"string"==typeof a&&xb.test(a)?pb(a):a||[],!1).length}});var Ab,Bb=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Cb=pb.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||Ab,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:Bb.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof pb?b[0]:b,pb.merge(this,pb.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:cb,!0)),yb.test(d[1])&&pb.isPlainObject(b))for(d in b)pb.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=cb.getElementById(d[2]),e&&(this[0]=e,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):pb.isFunction(a)?void 0!==c.ready?c.ready(a):a(pb):pb.makeArray(a,this)};Cb.prototype=pb.fn,Ab=pb(cb);var Db=/^(?:parents|prev(?:Until|All))/,Eb={children:!0,contents:!0,next:!0,prev:!0};pb.fn.extend({has:function(a){var b=pb(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(pb.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&pb(a);if(!xb.test(a))for(;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&pb.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?pb.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?hb.call(pb(a),this[0]):hb.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(pb.uniqueSort(pb.merge(this.get(),pb(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),pb.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return vb(a,"parentNode")},parentsUntil:function(a,b,c){return vb(a,"parentNode",c)},next:function(a){return g(a,"nextSibling")},prev:function(a){return g(a,"previousSibling")},nextAll:function(a){return vb(a,"nextSibling")},prevAll:function(a){return vb(a,"previousSibling")},nextUntil:function(a,b,c){return vb(a,"nextSibling",c)},prevUntil:function(a,b,c){return vb(a,"previousSibling",c)},siblings:function(a){return wb((a.parentNode||{}).firstChild,a)},children:function(a){return wb(a.firstChild)},contents:function(a){return e(a,"iframe")?a.contentDocument:(e(a,"template")&&(a=a.content||a),pb.merge([],a.childNodes))}},function(a,b){pb.fn[a]=function(c,d){var e=pb.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=pb.filter(d,e)),this.length>1&&(Eb[a]||pb.uniqueSort(e),Db.test(a)&&e.reverse()),this.pushStack(e)}});var Fb=/[^\x20\t\r\n\f]+/g;pb.Callbacks=function(a){a="string"==typeof a?h(a):pb.extend({},a);var b,c,d,e,f=[],g=[],i=-1,j=function(){for(e=e||a.once,d=b=!0;g.length;i=-1)for(c=g.shift();++i<f.length;)f[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=f.length,c=!1);a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},k={add:function(){return f&&(c&&!b&&(i=f.length-1,g.push(c)),function d(b){pb.each(b,function(b,c){pb.isFunction(c)?a.unique&&k.has(c)||f.push(c):c&&c.length&&"string"!==pb.type(c)&&d(c)})}(arguments),c&&!b&&j()),this},remove:function(){return pb.each(arguments,function(a,b){for(var c;(c=pb.inArray(b,f,c))>-1;)f.splice(c,1),i>=c&&i--}),this},has:function(a){return a?pb.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},pb.extend({Deferred:function(b){var c=[["notify","progress",pb.Callbacks("memory"),pb.Callbacks("memory"),2],["resolve","done",pb.Callbacks("once memory"),pb.Callbacks("once memory"),0,"resolved"],["reject","fail",pb.Callbacks("once memory"),pb.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return pb.Deferred(function(b){pb.each(c,function(c,d){var e=pb.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&pb.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){function f(b,c,d,e){return function(){var h=this,k=arguments,l=function(){var a,l;if(!(g>b)){if(a=d.apply(h,k),a===c.promise())throw new TypeError("Thenable self-resolution");l=a&&("object"==typeof a||"function"==typeof a)&&a.then,pb.isFunction(l)?e?l.call(a,f(g,c,i,e),f(g,c,j,e)):(g++,l.call(a,f(g,c,i,e),f(g,c,j,e),f(g,c,i,c.notifyWith))):(d!==i&&(h=void 0,k=[a]),(e||c.resolveWith)(h,k))}},m=e?l:function(){try{l()}catch(a){pb.Deferred.exceptionHook&&pb.Deferred.exceptionHook(a,m.stackTrace),b+1>=g&&(d!==j&&(h=void 0,k=[a]),c.rejectWith(h,k))}};b?m():(pb.Deferred.getStackHook&&(m.stackTrace=pb.Deferred.getStackHook()),a.setTimeout(m))}}var g=0;return pb.Deferred(function(a){c[0][3].add(f(0,a,pb.isFunction(e)?e:i,a.notifyWith)),c[1][3].add(f(0,a,pb.isFunction(b)?b:i)),c[2][3].add(f(0,a,pb.isFunction(d)?d:j))}).promise()},promise:function(a){return null!=a?pb.extend(a,e):e}},f={};return pb.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=eb.call(arguments),f=pb.Deferred(),g=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?eb.call(arguments):c,--b||f.resolveWith(d,e)}};if(1>=b&&(k(a,f.done(g(c)).resolve,f.reject,!b),"pending"===f.state()||pb.isFunction(e[c]&&e[c].then)))return f.then();for(;c--;)k(e[c],g(c),f.reject);return f.promise()}});var Gb=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;pb.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Gb.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},pb.readyException=function(b){a.setTimeout(function(){throw b})};var Hb=pb.Deferred();pb.fn.ready=function(a){return Hb.then(a)["catch"](function(a){pb.readyException(a)}),this},pb.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--pb.readyWait:pb.isReady)||(pb.isReady=!0,a!==!0&&--pb.readyWait>0||Hb.resolveWith(cb,[pb]))}}),pb.ready.then=Hb.then,"complete"===cb.readyState||"loading"!==cb.readyState&&!cb.documentElement.doScroll?a.setTimeout(pb.ready):(cb.addEventListener("DOMContentLoaded",l),a.addEventListener("load",l));var Ib=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===pb.type(c)){e=!0;for(h in c)Ib(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,pb.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(pb(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Jb=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};m.uid=1,m.prototype={cache:function(a){var b=a[this.expando];return b||(b={},Jb(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[pb.camelCase(b)]=c;else for(d in b)e[pb.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][pb.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(pb.camelCase):(b=pb.camelCase(b),b=b in d?[b]:b.match(Fb)||[]),c=b.length;for(;c--;)delete d[b[c]]}(void 0===b||pb.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!pb.isEmptyObject(b)}};var Kb=new m,Lb=new m,Mb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Nb=/[A-Z]/g;pb.extend({hasData:function(a){return Lb.hasData(a)||Kb.hasData(a)},data:function(a,b,c){return Lb.access(a,b,c)},removeData:function(a,b){Lb.remove(a,b)},_data:function(a,b,c){return Kb.access(a,b,c)},_removeData:function(a,b){Kb.remove(a,b)}}),pb.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=Lb.get(f),1===f.nodeType&&!Kb.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=pb.camelCase(d.slice(5)),o(f,d,e[d])));Kb.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){Lb.set(this,a)}):Ib(this,function(b){var c;if(f&&void 0===b){if(c=Lb.get(f,a),void 0!==c)return c;if(c=o(f,a),void 0!==c)return c}else this.each(function(){Lb.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){Lb.remove(this,a)})}}),pb.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=Kb.get(a,b),c&&(!d||Array.isArray(c)?d=Kb.access(a,b,pb.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=pb.queue(a,b),d=c.length,e=c.shift(),f=pb._queueHooks(a,b),g=function(){pb.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return Kb.get(a,c)||Kb.access(a,c,{empty:pb.Callbacks("once memory").add(function(){Kb.remove(a,[b+"queue",c])})})}}),pb.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?pb.queue(this[0],a):void 0===b?this:this.each(function(){var c=pb.queue(this,a,b);pb._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&pb.dequeue(this,a)})},dequeue:function(a){return this.each(function(){pb.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=pb.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=Kb.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Ob=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pb=new RegExp("^(?:([+-])=|)("+Ob+")([a-z%]*)$","i"),Qb=["Top","Right","Bottom","Left"],Rb=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&pb.contains(a.ownerDocument,a)&&"none"===pb.css(a,"display")},Sb=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Tb={};pb.fn.extend({show:function(){return r(this,!0)},hide:function(){return r(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Rb(this)?pb(this).show():pb(this).hide()})}});var Ub=/^(?:checkbox|radio)$/i,Vb=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Wb=/^$|\/(?:java|ecma)script/i,Xb={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Xb.optgroup=Xb.option,Xb.tbody=Xb.tfoot=Xb.colgroup=Xb.caption=Xb.thead,Xb.th=Xb.td;var Yb=/<|&#?\w+;/;!function(){var a=cb.createDocumentFragment(),b=a.appendChild(cb.createElement("div")),c=cb.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),nb.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",nb.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var Zb=cb.documentElement,$b=/^key/,_b=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ac=/^([^.]*)(?:\.(.+)|)/;pb.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Kb.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),e&&pb.find.matchesSelector(Zb,e),c.guid||(c.guid=pb.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof pb&&pb.event.triggered!==b.type?pb.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(Fb)||[""],j=b.length;j--;)h=ac.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=pb.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=pb.event.special[n]||{},k=pb.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&pb.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),pb.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Kb.hasData(a)&&Kb.get(a);if(q&&(i=q.events)){for(b=(b||"").match(Fb)||[""],j=b.length;j--;)if(h=ac.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=pb.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||pb.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)pb.event.remove(a,n+b[j],c,d,!0);pb.isEmptyObject(i)&&Kb.remove(a,"handle events")}},dispatch:function(a){var b,c,d,e,f,g,h=pb.event.fix(a),i=new Array(arguments.length),j=(Kb.get(this,"events")||{})[h.type]||[],k=pb.event.special[h.type]||{};for(i[0]=h,b=1;b<arguments.length;b++)i[b]=arguments[b];if(h.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,h)!==!1){for(g=pb.event.handlers.call(this,h,j),b=0;(e=g[b++])&&!h.isPropagationStopped();)for(h.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!h.rnamespace.test(f.namespace)||(h.handleObj=f,h.data=f.data,d=((pb.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,i),void 0!==d&&(h.result=d)===!1&&(h.preventDefault(),h.stopPropagation()));return k.postDispatch&&k.postDispatch.call(this,h),h.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;i>c;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?pb(e,this).index(j)>-1:pb.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(pb.Event.prototype,a,{enumerable:!0,configurable:!0,get:pb.isFunction(b)?function(){return this.originalEvent?b(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[a]:void 0},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[pb.expando]?a:new pb.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==x()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&e(this,"input")?(this.click(),!1):void 0},_default:function(a){return e(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},pb.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},pb.Event=function(a,b){return this instanceof pb.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?v:w,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&pb.extend(this,b),this.timeStamp=a&&a.timeStamp||pb.now(),void(this[pb.expando]=!0)):new pb.Event(a,b)},pb.Event.prototype={constructor:pb.Event,isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=v,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=v,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=v,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},pb.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&$b.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&_b.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},pb.event.addProp),pb.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){pb.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||pb.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),pb.fn.extend({on:function(a,b,c,d){return y(this,a,b,c,d)},one:function(a,b,c,d){return y(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,pb(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=w),this.each(function(){pb.event.remove(this,a,c,b)})}});var bc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,cc=/<script|<style|<link/i,dc=/checked\s*(?:[^=]|=\s*.checked.)/i,ec=/^true\/(.*)/,fc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pb.extend({htmlPrefilter:function(a){return a.replace(bc,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=pb.contains(a.ownerDocument,a);if(!(nb.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||pb.isXMLDoc(a)))for(g=s(h),f=s(a),d=0,e=f.length;e>d;d++)D(f[d],g[d]);if(b)if(c)for(f=f||s(a),g=g||s(h),d=0,e=f.length;e>d;d++)C(f[d],g[d]);else C(a,h);return g=s(h,"script"),g.length>0&&t(g,!i&&s(a,"script")),h},cleanData:function(a){for(var b,c,d,e=pb.event.special,f=0;void 0!==(c=a[f]);f++)if(Jb(c)){if(b=c[Kb.expando]){if(b.events)for(d in b.events)e[d]?pb.event.remove(c,d):pb.removeEvent(c,d,b.handle);c[Kb.expando]=void 0}c[Lb.expando]&&(c[Lb.expando]=void 0)}}}),pb.fn.extend({detach:function(a){return F(this,a,!0)},remove:function(a){return F(this,a)
},text:function(a){return Ib(this,function(a){return void 0===a?pb.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return E(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=z(this,a);b.appendChild(a)}})},prepend:function(){return E(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=z(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return E(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return E(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(pb.cleanData(s(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return pb.clone(this,a,b)})},html:function(a){return Ib(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!cc.test(a)&&!Xb[(Vb.exec(a)||["",""])[1].toLowerCase()]){a=pb.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(pb.cleanData(s(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return E(this,arguments,function(b){var c=this.parentNode;pb.inArray(this,a)<0&&(pb.cleanData(s(this)),c&&c.replaceChild(b,this))},a)}}),pb.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){pb.fn[a]=function(a){for(var c,d=[],e=pb(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),pb(e[g])[b](c),gb.apply(d,c.get());return this.pushStack(d)}});var gc=/^margin/,hc=new RegExp("^("+Ob+")(?!px)[a-z%]+$","i"),ic=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Zb.appendChild(g);var b=a.getComputedStyle(h);c="1%"!==b.top,f="2px"===b.marginLeft,d="4px"===b.width,h.style.marginRight="50%",e="4px"===b.marginRight,Zb.removeChild(g),h=null}}var c,d,e,f,g=cb.createElement("div"),h=cb.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",nb.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),pb.extend(nb,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),d},pixelMarginRight:function(){return b(),e},reliableMarginLeft:function(){return b(),f}}))}();var jc=/^(none|table(?!-c[ea]).+)/,kc=/^--/,lc={position:"absolute",visibility:"hidden",display:"block"},mc={letterSpacing:"0",fontWeight:"400"},nc=["Webkit","Moz","ms"],oc=cb.createElement("div").style;pb.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=G(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=pb.camelCase(b),i=kc.test(b),j=a.style;return i||(b=J(h)),g=pb.cssHooks[b]||pb.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:j[b]:(f=typeof c,"string"===f&&(e=Pb.exec(c))&&e[1]&&(c=p(a,b,e),f="number"),void(null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(pb.cssNumber[h]?"":"px")),nb.clearCloneStyle||""!==c||0!==b.indexOf("background")||(j[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i?j.setProperty(b,c):j[b]=c))))}},css:function(a,b,c,d){var e,f,g,h=pb.camelCase(b),i=kc.test(b);return i||(b=J(h)),g=pb.cssHooks[b]||pb.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=G(a,b,d)),"normal"===e&&b in mc&&(e=mc[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),pb.each(["height","width"],function(a,b){pb.cssHooks[b]={get:function(a,c,d){return c?!jc.test(pb.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?M(a,b,d):Sb(a,lc,function(){return M(a,b,d)}):void 0},set:function(a,c,d){var e,f=d&&ic(a),g=d&&L(a,b,d,"border-box"===pb.css(a,"boxSizing",!1,f),f);return g&&(e=Pb.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=pb.css(a,b)),K(a,c,g)}}}),pb.cssHooks.marginLeft=H(nb.reliableMarginLeft,function(a,b){return b?(parseFloat(G(a,"marginLeft"))||a.getBoundingClientRect().left-Sb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),pb.each({margin:"",padding:"",border:"Width"},function(a,b){pb.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Qb[d]+b]=f[d]||f[d-2]||f[0];return e}},gc.test(a)||(pb.cssHooks[a+b].set=K)}),pb.fn.extend({css:function(a,b){return Ib(this,function(a,b,c){var d,e,f={},g=0;if(Array.isArray(b)){for(d=ic(a),e=b.length;e>g;g++)f[b[g]]=pb.css(a,b[g],!1,d);return f}return void 0!==c?pb.style(a,b,c):pb.css(a,b)},a,b,arguments.length>1)}}),pb.Tween=N,N.prototype={constructor:N,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||pb.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(pb.cssNumber[c]?"":"px")},cur:function(){var a=N.propHooks[this.prop];return a&&a.get?a.get(this):N.propHooks._default.get(this)},run:function(a){var b,c=N.propHooks[this.prop];return this.pos=b=this.options.duration?pb.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=pb.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){pb.fx.step[a.prop]?pb.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[pb.cssProps[a.prop]]&&!pb.cssHooks[a.prop]?a.elem[a.prop]=a.now:pb.style(a.elem,a.prop,a.now+a.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},pb.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},pb.fx=N.prototype.init,pb.fx.step={};var pc,qc,rc=/^(?:toggle|show|hide)$/,sc=/queueHooks$/;pb.Animation=pb.extend(U,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return p(c.elem,a,Pb.exec(b),c),c}]},tweener:function(a,b){pb.isFunction(a)?(b=a,a=["*"]):a=a.match(Fb);for(var c,d=0,e=a.length;e>d;d++)c=a[d],U.tweeners[c]=U.tweeners[c]||[],U.tweeners[c].unshift(b)},prefilters:[S],prefilter:function(a,b){b?U.prefilters.unshift(a):U.prefilters.push(a)}}),pb.speed=function(a,b,c){var d=a&&"object"==typeof a?pb.extend({},a):{complete:c||!c&&b||pb.isFunction(a)&&a,duration:a,easing:c&&b||b&&!pb.isFunction(b)&&b};return pb.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration=d.duration in pb.fx.speeds?pb.fx.speeds[d.duration]:pb.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){pb.isFunction(d.old)&&d.old.call(this),d.queue&&pb.dequeue(this,d.queue)},d},pb.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Rb).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=pb.isEmptyObject(a),f=pb.speed(b,c,d),g=function(){var b=U(this,pb.extend({},a),f);(e||Kb.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=pb.timers,g=Kb.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&sc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||pb.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=Kb.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=pb.timers,g=d?d.length:0;for(c.finish=!0,pb.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),pb.each(["toggle","show","hide"],function(a,b){var c=pb.fn[b];pb.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Q(b,!0),a,d,e)}}),pb.each({slideDown:Q("show"),slideUp:Q("hide"),slideToggle:Q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){pb.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),pb.timers=[],pb.fx.tick=function(){var a,b=0,c=pb.timers;for(pc=pb.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||pb.fx.stop(),pc=void 0},pb.fx.timer=function(a){pb.timers.push(a),pb.fx.start()},pb.fx.interval=13,pb.fx.start=function(){qc||(qc=!0,O())},pb.fx.stop=function(){qc=null},pb.fx.speeds={slow:600,fast:200,_default:400},pb.fn.delay=function(b,c){return b=pb.fx?pb.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=cb.createElement("input"),b=cb.createElement("select"),c=b.appendChild(cb.createElement("option"));a.type="checkbox",nb.checkOn=""!==a.value,nb.optSelected=c.selected,a=cb.createElement("input"),a.value="t",a.type="radio",nb.radioValue="t"===a.value}();var tc,uc=pb.expr.attrHandle;pb.fn.extend({attr:function(a,b){return Ib(this,pb.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){pb.removeAttr(this,a)})}}),pb.extend({attr:function(a,b,c){var d,e,f=a.nodeType;return 3!==f&&8!==f&&2!==f?"undefined"==typeof a.getAttribute?pb.prop(a,b,c):(1===f&&pb.isXMLDoc(a)||(e=pb.attrHooks[b.toLowerCase()]||(pb.expr.match.bool.test(b)?tc:void 0)),void 0!==c?null===c?void pb.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=pb.find.attr(a,b),null==d?void 0:d)):void 0},attrHooks:{type:{set:function(a,b){if(!nb.radioValue&&"radio"===b&&e(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(Fb);if(e&&1===a.nodeType)for(;c=e[d++];)a.removeAttribute(c)}}),tc={set:function(a,b,c){return b===!1?pb.removeAttr(a,c):a.setAttribute(c,c),c}},pb.each(pb.expr.match.bool.source.match(/\w+/g),function(a,b){var c=uc[b]||pb.find.attr;uc[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=uc[g],uc[g]=e,e=null!=c(a,b,d)?g:null,uc[g]=f),e}});var vc=/^(?:input|select|textarea|button)$/i,wc=/^(?:a|area)$/i;pb.fn.extend({prop:function(a,b){return Ib(this,pb.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[pb.propFix[a]||a]})}}),pb.extend({prop:function(a,b,c){var d,e,f=a.nodeType;return 3!==f&&8!==f&&2!==f?(1===f&&pb.isXMLDoc(a)||(b=pb.propFix[b]||b,e=pb.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]):void 0},propHooks:{tabIndex:{get:function(a){var b=pb.find.attr(a,"tabindex");return b?parseInt(b,10):vc.test(a.nodeName)||wc.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),nb.optSelected||(pb.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),pb.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pb.propFix[this.toLowerCase()]=this}),pb.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(pb.isFunction(a))return this.each(function(b){pb(this).addClass(a.call(this,b,W(this)))});if("string"==typeof a&&a)for(b=a.match(Fb)||[];c=this[i++];)if(e=W(c),d=1===c.nodeType&&" "+V(e)+" "){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=V(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(pb.isFunction(a))return this.each(function(b){pb(this).removeClass(a.call(this,b,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(Fb)||[];c=this[i++];)if(e=W(c),d=1===c.nodeType&&" "+V(e)+" "){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=V(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(pb.isFunction(a)?function(c){pb(this).toggleClass(a.call(this,c,W(this),b),b)}:function(){var b,d,e,f;if("string"===c)for(d=0,e=pb(this),f=a.match(Fb)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else void 0!==a&&"boolean"!==c||(b=W(this),b&&Kb.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":Kb.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+V(W(c))+" ").indexOf(b)>-1)return!0;return!1}});var xc=/\r/g;pb.fn.extend({val:function(a){var b,c,d,e=this[0];return arguments.length?(d=pb.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,pb(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=pb.map(e,function(a){return null==a?"":a+""})),b=pb.valHooks[this.type]||pb.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))})):e?(b=pb.valHooks[e.type]||pb.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(xc,""):null==c?"":c)):void 0}}),pb.extend({valHooks:{option:{get:function(a){var b=pb.find.attr(a,"value");return null!=b?b:V(pb.text(a))}},select:{get:function(a){var b,c,d,f=a.options,g=a.selectedIndex,h="select-one"===a.type,i=h?null:[],j=h?g+1:f.length;for(d=0>g?j:h?g:0;j>d;d++)if(c=f[d],!(!c.selected&&d!==g||c.disabled||c.parentNode.disabled&&e(c.parentNode,"optgroup"))){if(b=pb(c).val(),h)return b;i.push(b)}return i},set:function(a,b){for(var c,d,e=a.options,f=pb.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=pb.inArray(pb.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),pb.each(["radio","checkbox"],function(){pb.valHooks[this]={set:function(a,b){return Array.isArray(b)?a.checked=pb.inArray(pb(a).val(),b)>-1:void 0}},nb.checkOn||(pb.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var yc=/^(?:focusinfocus|focusoutblur)$/;pb.extend(pb.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||cb],n=kb.call(b,"type")?b.type:b,o=kb.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||cb,3!==d.nodeType&&8!==d.nodeType&&!yc.test(n+pb.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[pb.expando]?b:new pb.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:pb.makeArray(c,[b]),l=pb.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!pb.isWindow(d)){for(i=l.delegateType||n,yc.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||cb)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(Kb.get(g,"events")||{})[b.type]&&Kb.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&Jb(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!Jb(d)||j&&pb.isFunction(d[n])&&!pb.isWindow(d)&&(h=d[j],h&&(d[j]=null),pb.event.triggered=n,d[n](),pb.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=pb.extend(new pb.Event,c,{type:a,isSimulated:!0});pb.event.trigger(d,null,b)}}),pb.fn.extend({trigger:function(a,b){return this.each(function(){pb.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?pb.event.trigger(a,b,c,!0):void 0}}),pb.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){pb.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),pb.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),nb.focusin="onfocusin"in a,nb.focusin||pb.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){pb.event.simulate(b,a.target,pb.event.fix(a))};pb.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=Kb.access(d,b);e||d.addEventListener(a,c,!0),Kb.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=Kb.access(d,b)-1;e?Kb.access(d,b,e):(d.removeEventListener(a,c,!0),Kb.remove(d,b))}}});var zc=a.location,Ac=pb.now(),Bc=/\?/;pb.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||pb.error("Invalid XML: "+b),c};var Cc=/\[\]$/,Dc=/\r?\n/g,Ec=/^(?:submit|button|image|reset|file)$/i,Fc=/^(?:input|select|textarea|keygen)/i;pb.param=function(a,b){var c,d=[],e=function(a,b){var c=pb.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!pb.isPlainObject(a))pb.each(a,function(){e(this.name,this.value)});else for(c in a)X(c,a[c],b,e);return d.join("&")},pb.fn.extend({serialize:function(){return pb.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=pb.prop(this,"elements");return a?pb.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!pb(this).is(":disabled")&&Fc.test(this.nodeName)&&!Ec.test(a)&&(this.checked||!Ub.test(a))}).map(function(a,b){var c=pb(this).val();return null==c?null:Array.isArray(c)?pb.map(c,function(a){return{name:b.name,value:a.replace(Dc,"\r\n")}}):{name:b.name,value:c.replace(Dc,"\r\n")}}).get()}});var Gc=/%20/g,Hc=/#.*$/,Ic=/([?&])_=[^&]*/,Jc=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lc=/^(?:GET|HEAD)$/,Mc=/^\/\//,Nc={},Oc={},Pc="*/".concat("*"),Qc=cb.createElement("a");Qc.href=zc.href,pb.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zc.href,type:"GET",isLocal:Kc.test(zc.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":pb.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?$($(a,pb.ajaxSettings),b):$(pb.ajaxSettings,a)},ajaxPrefilter:Y(Nc),ajaxTransport:Y(Oc),ajax:function(b,c){function d(b,c,d,h){var j,m,n,u,v,w=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=_(o,x,d)),u=ab(o,u,x,j),j?(o.ifModified&&(v=x.getResponseHeader("Last-Modified"),v&&(pb.lastModified[f]=v),v=x.getResponseHeader("etag"),v&&(pb.etag[f]=v)),204===b||"HEAD"===o.type?w="nocontent":304===b?w="notmodified":(w=u.state,m=u.data,n=u.error,j=!n)):(n=w,!b&&w||(w="error",0>b&&(b=0))),x.status=b,x.statusText=(c||w)+"",j?r.resolveWith(p,[m,w,x]):r.rejectWith(p,[x,w,n]),x.statusCode(t),t=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[x,o,j?m:n]),s.fireWith(p,[x,w]),l&&(q.trigger("ajaxComplete",[x,o]),--pb.active||pb.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=pb.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?pb(p):pb.event,r=pb.Deferred(),s=pb.Callbacks("once memory"),t=o.statusCode||{},u={},v={},w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h)for(h={};b=Jc.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=v[a.toLowerCase()]=v[a.toLowerCase()]||a,u[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)x.always(a[x.status]);else for(b in a)t[b]=[t[b],a[b]];return this},abort:function(a){var b=a||w;return e&&e.abort(b),d(0,b),this}};if(r.promise(x),o.url=((b||o.url||zc.href)+"").replace(Mc,zc.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(Fb)||[""],null==o.crossDomain){j=cb.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Qc.protocol+"//"+Qc.host!=j.protocol+"//"+j.host}catch(y){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=pb.param(o.data,o.traditional)),Z(Nc,o,c,x),k)return x;l=pb.event&&o.global,l&&0===pb.active++&&pb.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Lc.test(o.type),f=o.url.replace(Hc,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Gc,"+")):(n=o.url.slice(f.length),o.data&&(f+=(Bc.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ic,"$1"),n=(Bc.test(f)?"&":"?")+"_="+Ac++ +n),o.url=f+n),o.ifModified&&(pb.lastModified[f]&&x.setRequestHeader("If-Modified-Since",pb.lastModified[f]),pb.etag[f]&&x.setRequestHeader("If-None-Match",pb.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",o.contentType),x.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Pc+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)x.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,x,o)===!1||k))return x.abort();if(w="abort",s.add(o.complete),x.done(o.success),x.fail(o.error),e=Z(Oc,o,c,x)){if(x.readyState=1,l&&q.trigger("ajaxSend",[x,o]),k)return x;o.async&&o.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},o.timeout));try{k=!1,e.send(u,d)}catch(y){if(k)throw y;d(-1,y)}}else d(-1,"No Transport");return x},getJSON:function(a,b,c){return pb.get(a,b,c,"json")},getScript:function(a,b){return pb.get(a,void 0,b,"script")}}),pb.each(["get","post"],function(a,b){pb[b]=function(a,c,d,e){return pb.isFunction(c)&&(e=e||d,d=c,c=void 0),pb.ajax(pb.extend({url:a,type:b,dataType:e,data:c,success:d},pb.isPlainObject(a)&&a))}}),pb._evalUrl=function(a){return pb.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pb.fn.extend({wrapAll:function(a){var b;return this[0]&&(pb.isFunction(a)&&(a=a.call(this[0])),b=pb(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return this.each(pb.isFunction(a)?function(b){pb(this).wrapInner(a.call(this,b))}:function(){var b=pb(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=pb.isFunction(a);return this.each(function(c){pb(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){pb(this).replaceWith(this.childNodes)}),this}}),pb.expr.pseudos.hidden=function(a){return!pb.expr.pseudos.visible(a)},pb.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},pb.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rc={0:200,1223:204},Sc=pb.ajaxSettings.xhr();nb.cors=!!Sc&&"withCredentials"in Sc,nb.ajax=Sc=!!Sc,pb.ajaxTransport(function(b){var c,d;return nb.cors||Sc&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rc[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),pb.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),pb.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return pb.globalEval(a),a}}}),pb.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),pb.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=pb("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),cb.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Tc=[],Uc=/(=)\?(?=&|$)|\?\?/;pb.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Tc.pop()||pb.expando+"_"+Ac++;return this[a]=!0,a}}),pb.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Uc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Uc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=pb.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Uc,"$1"+e):b.jsonp!==!1&&(b.url+=(Bc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||pb.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?pb(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Tc.push(e)),g&&pb.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),nb.createHTMLDocument=function(){var a=cb.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),pb.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var d,e,f;return b||(nb.createHTMLDocument?(b=cb.implementation.createHTMLDocument(""),d=b.createElement("base"),d.href=cb.location.href,b.head.appendChild(d)):b=cb),e=yb.exec(a),f=!c&&[],e?[b.createElement(e[1])]:(e=u([a],b,f),f&&f.length&&pb(f).remove(),pb.merge([],e.childNodes))},pb.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=V(a.slice(h)),a=a.slice(0,h)),pb.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&pb.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?pb("<div>").append(pb.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},pb.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){pb.fn[b]=function(a){return this.on(b,a)}}),pb.expr.pseudos.animated=function(a){return pb.grep(pb.timers,function(b){return a===b.elem}).length},pb.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=pb.css(a,"position"),l=pb(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=pb.css(a,"top"),i=pb.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),pb.isFunction(b)&&(b=b.call(a,c,pb.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},pb.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){pb.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];return f?f.getClientRects().length?(d=f.getBoundingClientRect(),b=f.ownerDocument,c=b.documentElement,e=b.defaultView,{top:d.top+e.pageYOffset-c.clientTop,left:d.left+e.pageXOffset-c.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===pb.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),e(a[0],"html")||(d=a.offset()),d={top:d.top+pb.css(a[0],"borderTopWidth",!0),left:d.left+pb.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-pb.css(c,"marginTop",!0),left:b.left-d.left-pb.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===pb.css(a,"position");)a=a.offsetParent;return a||Zb})}}),pb.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;pb.fn[a]=function(d){return Ib(this,function(a,d,e){var f;return pb.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView),void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),pb.each(["top","left"],function(a,b){pb.cssHooks[b]=H(nb.pixelPosition,function(a,c){return c?(c=G(a,b),hc.test(c)?pb(a).position()[b]+"px":c):void 0})}),pb.each({Height:"height",Width:"width"},function(a,b){pb.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){pb.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return Ib(this,function(b,c,e){var f;return pb.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?pb.css(b,c,h):pb.style(b,c,e,h)},b,g?e:void 0,g)}})}),pb.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),pb.holdReady=function(a){a?pb.readyWait++:pb.ready(!0)},pb.isArray=Array.isArray,pb.parseJSON=JSON.parse,pb.nodeName=e,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pb});var Vc=a.jQuery,Wc=a.$;return pb.noConflict=function(b){return a.$===pb&&(a.$=Wc),b&&a.jQuery===pb&&(a.jQuery=Vc),pb},b||(a.jQuery=a.$=pb),pb}),function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(){var a=document.createElement("input");return a.setAttribute("type","range"),"text"!==a.type}function c(a,b){var c=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)}function d(a,b){return b=b||100,function(){if(!a.debouncing){var c=Array.prototype.slice.apply(arguments);a.lastReturnVal=a.apply(window,c),a.debouncing=!0}return clearTimeout(a.debounceTimeout),a.debounceTimeout=setTimeout(function(){a.debouncing=!1},b),a.lastReturnVal}}function e(a){return a&&(0===a.offsetWidth||0===a.offsetHeight||a.open===!1)}function f(a){for(var b=[],c=a.parentNode;e(c);)b.push(c),c=c.parentNode;
return b}function g(a,b){function c(a){"undefined"!=typeof a.open&&(a.open=a.open?!1:!0)}var d=f(a),e=d.length,g=[],h=a[b];if(e){for(var i=0;e>i;i++)g[i]=d[i].style.cssText,d[i].style.setProperty?d[i].style.setProperty("display","block","important"):d[i].style.cssText+=";display: block !important",d[i].style.height="0",d[i].style.overflow="hidden",d[i].style.visibility="hidden",c(d[i]);h=a[b];for(var j=0;e>j;j++)d[j].style.cssText=g[j],c(d[j])}return h}function h(a,b){var c=parseFloat(a);return Number.isNaN(c)?b:c}function i(a){return a.charAt(0).toUpperCase()+a.substr(1)}function j(b,e){if(this.$window=a(window),this.$document=a(document),this.$element=a(b),this.options=a.extend({},n,e),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=o.orientation[this.orientation].dimension,this.DIRECTION=o.orientation[this.orientation].direction,this.DIRECTION_STYLE=o.orientation[this.orientation].directionStyle,this.COORDINATE=o.orientation[this.orientation].coordinate,this.polyfill&&m)return!1;this.identifier="js-"+k+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=a('<div class="'+this.options.fillClass+'" />'),this.$handle=a('<div class="'+this.options.handleClass+'" />'),this.$range=a('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=a.proxy(this.handleDown,this),this.handleMove=a.proxy(this.handleMove,this),this.handleEnd=a.proxy(this.handleEnd,this),this.init();var f=this;this.$window.on("resize."+this.identifier,d(function(){c(function(){f.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(a,b){if(!b||b.origin!==f.identifier){var c=a.target.value,d=f.getPositionFromValue(c);f.setPosition(d)}})}Number.isNaN=Number.isNaN||function(a){return"number"==typeof a&&a!==a};var k="rangeslider",l=0,m=b(),n={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},o={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return j.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},j.prototype.update=function(a,b){a=a||!1,a&&(this.min=h(this.$element[0].getAttribute("min"),0),this.max=h(this.$element[0].getAttribute("max"),100),this.value=h(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=h(this.$element[0].getAttribute("step"),1)),this.handleDimension=g(this.$handle[0],"offset"+i(this.DIMENSION)),this.rangeDimension=g(this.$range[0],"offset"+i(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,b)},j.prototype.handleDown=function(a){if(a.preventDefault(),this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),!((" "+a.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var b=this.getRelativePosition(a),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=this.getPositionFromNode(this.$handle[0])-c,e="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(e),b>=d&&b<d+this.handleDimension&&(this.grabPos=b-d)}},j.prototype.handleMove=function(a){a.preventDefault();var b=this.getRelativePosition(a),c="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(c)},j.prototype.handleEnd=function(a){a.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},j.prototype.cap=function(a,b,c){return b>a?b:a>c?c:a},j.prototype.setPosition=function(a,b){var c,d;void 0===b&&(b=!0),c=this.getValueFromPosition(this.cap(a,0,this.maxHandlePos)),d=this.getPositionFromValue(c),this.$fill[0].style[this.DIMENSION]=d+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=d+"px",this.setValue(c),this.position=d,this.value=c,b&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(d,c)},j.prototype.getPositionFromNode=function(a){for(var b=0;null!==a;)b+=a.offsetLeft,a=a.offsetParent;return b},j.prototype.getRelativePosition=function(a){var b=i(this.COORDINATE),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=0;return"undefined"!=typeof a.originalEvent["client"+b]?d=a.originalEvent["client"+b]:a.originalEvent.touches&&a.originalEvent.touches[0]&&"undefined"!=typeof a.originalEvent.touches[0]["client"+b]?d=a.originalEvent.touches[0]["client"+b]:a.currentPoint&&"undefined"!=typeof a.currentPoint[this.COORDINATE]&&(d=a.currentPoint[this.COORDINATE]),d-c},j.prototype.getPositionFromValue=function(a){var b,c;return b=(a-this.min)/(this.max-this.min),c=Number.isNaN(b)?0:b*this.maxHandlePos},j.prototype.getValueFromPosition=function(a){var b,c;return b=a/(this.maxHandlePos||1),c=this.step*Math.round(b*(this.max-this.min)/this.step)+this.min,Number(c.toFixed(this.toFixed))},j.prototype.setValue=function(a){(a!==this.value||""===this.$element[0].value)&&this.$element.val(a).trigger("input",{origin:this.identifier})},j.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+k),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},a.fn[k]=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data("plugin_"+k);e||d.data("plugin_"+k,e=new j(this,b)),"string"==typeof b&&e[b].apply(e,c)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],b):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=b():a["pdfjs-dist/build/pdf"]=a.pdfjsDistBuildPdf=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(a){return a},b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a["default"]}:function(){return a};return b.d(c,"a",c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p="",b(b.s=15)}([function(a,b,c){"use strict";function d(a){ib=a}function e(){return ib}function f(a){ib>=fb.infos&&console.log("Info: "+a)}function g(a){ib>=fb.warnings&&console.log("Warning: "+a)}function h(a){console.log("Deprecated API usage: "+a)}function i(a){throw new Error(a)}function j(a,b){a||i(b)}function k(a,b){try{var c=new URL(a);if(!c.origin||"null"===c.origin)return!1}catch(d){return!1}var e=new URL(b,c);return c.origin===e.origin}function l(a){if(!a)return!1;switch(a.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function m(a,b){if(!a)return null;try{var c=b?new URL(a,b):new URL(a);if(l(c))return c}catch(d){}return null}function n(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!1}),c}function o(a){var b;return function(){return a&&(b=Object.create(null),a(b),a=null),b}}function p(a){return"string"!=typeof a?(g("The argument for removeNullCharacters must be a string."),a):a.replace(vb,"")}function q(a){j(null!==a&&"object"===("undefined"==typeof a?"undefined":U(a))&&void 0!==a.length,"Invalid argument for bytesToString");var b=a.length,c=8192;if(c>b)return String.fromCharCode.apply(null,a);for(var d=[],e=0;b>e;e+=c){var f=Math.min(e+c,b),g=a.subarray(e,f);d.push(String.fromCharCode.apply(null,g))}return d.join("")}function r(a){j("string"==typeof a,"Invalid argument for stringToBytes");for(var b=a.length,c=new Uint8Array(b),d=0;b>d;++d)c[d]=255&a.charCodeAt(d);return c}function s(a){return void 0!==a.length?a.length:(j(void 0!==a.byteLength),a.byteLength)}function t(a){if(1===a.length&&a[0]instanceof Uint8Array)return a[0];var b,c,d,e=0,f=a.length;for(b=0;f>b;b++)c=a[b],d=s(c),e+=d;var g=0,h=new Uint8Array(e);for(b=0;f>b;b++)c=a[b],c instanceof Uint8Array||(c="string"==typeof c?r(c):new Uint8Array(c)),d=c.byteLength,h.set(c,g),g+=d;return h}function u(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,255&a)}function v(a){for(var b=1,c=0;a>b;)b<<=1,c++;return c}function w(a,b){return a[b]<<24>>24}function x(a,b){return a[b]<<8|a[b+1]}function y(a,b){return(a[b]<<24|a[b+1]<<16|a[b+2]<<8|a[b+3])>>>0}function z(){var a=new Uint8Array(4);a[0]=1;var b=new Uint32Array(a.buffer,0,1);return 1===b[0]}function A(){try{return new Function(""),!0}catch(a){return!1}}function B(a){var b,c=a.length,d=[];if("þ"===a[0]&&"ÿ"===a[1])for(b=2;c>b;b+=2)d.push(String.fromCharCode(a.charCodeAt(b)<<8|a.charCodeAt(b+1)));else for(b=0;c>b;++b){var e=zb[a.charCodeAt(b)];d.push(e?String.fromCharCode(e):a.charAt(b))}return d.join("")}function C(a){return decodeURIComponent(escape(a))}function D(a){return unescape(encodeURIComponent(a))}function E(a){for(var b in a)return!1;return!0}function F(a){return"boolean"==typeof a}function G(a){return"number"==typeof a&&(0|a)===a}function H(a){return"number"==typeof a}function I(a){return"string"==typeof a}function J(a){return a instanceof Array}function K(a){return"object"===("undefined"==typeof a?"undefined":U(a))&&null!==a&&void 0!==a.byteLength}function L(a){return 32===a||9===a||13===a||10===a}function M(){return"object"===("undefined"==typeof process?"undefined":U(process))&&process+""=="[object process]"}function N(){var a={};return a.promise=new Promise(function(b,c){a.resolve=b,a.reject=c}),a}function O(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return a?new Promise(function(d){d(a.apply(c,b))}):Promise.resolve(void 0)}function P(a){if("object"!==("undefined"==typeof a?"undefined":U(a)))return a;switch(a.name){case"AbortException":return new ub(a.message);case"MissingPDFException":return new ob(a.message);case"UnexpectedResponseException":return new pb(a.message,a.status);default:return new mb(a.message,a.details)}}function Q(a,b,c){b?a.resolve():a.reject(c)}function R(a){return Promise.resolve(a).catch(function(){})}function S(a,b,c){var d=this;this.sourceName=a,this.targetName=b,this.comObj=c,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null);var e=this.callbacksCapabilities=Object.create(null),f=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(a){var b=a.data;if(b.targetName===d.sourceName)if(b.stream)d._processStreamMessage(b);else if(b.isReply){var g=b.callbackId;if(!(b.callbackId in e))throw new Error("Cannot resolve callback "+g);var h=e[g];delete e[g],"error"in b?h.reject(P(b.error)):h.resolve(b.data)}else{if(!(b.action in f))throw new Error("Unknown action from worker: "+b.action);var i=f[b.action];if(b.callbackId){var j=d.sourceName,k=b.sourceName;Promise.resolve().then(function(){return i[0].call(i[1],b.data)}).then(function(a){c.postMessage({sourceName:j,targetName:k,isReply:!0,callbackId:b.callbackId,data:a})},function(a){a instanceof Error&&(a+=""),c.postMessage({sourceName:j,targetName:k,isReply:!0,callbackId:b.callbackId,error:a})})}else b.streamId?d._createStreamSink(b):i[0].call(i[1],b.data)}},c.addEventListener("message",this._onComObjOnMessage)}function T(a,b,c){var d=new Image;d.onload=function(){c.resolve(a,d)},d.onerror=function(){c.resolve(a,null),g("Error during JPEG image loading")},d.src=b}Object.defineProperty(b,"__esModule",{value:!0}),b.unreachable=b.warn=b.utf8StringToString=b.stringToUTF8String=b.stringToPDFString=b.stringToBytes=b.string32=b.shadow=b.setVerbosityLevel=b.ReadableStream=b.removeNullCharacters=b.readUint32=b.readUint16=b.readInt8=b.log2=b.loadJpegStream=b.isEvalSupported=b.isLittleEndian=b.createValidAbsoluteUrl=b.isSameOrigin=b.isNodeJS=b.isSpace=b.isString=b.isNum=b.isInt=b.isEmptyObj=b.isBool=b.isArrayBuffer=b.isArray=b.info=b.globalScope=b.getVerbosityLevel=b.getLookupTableFactory=b.deprecated=b.createObjectURL=b.createPromiseCapability=b.createBlob=b.bytesToString=b.assert=b.arraysToBytes=b.arrayByteLength=b.FormatError=b.XRefParseException=b.Util=b.UnknownErrorException=b.UnexpectedResponseException=b.TextRenderingMode=b.StreamType=b.StatTimer=b.PasswordResponses=b.PasswordException=b.PageViewport=b.NotImplementedException=b.NativeImageDecoding=b.MissingPDFException=b.MissingDataException=b.MessageHandler=b.InvalidPDFException=b.AbortException=b.CMapCompressionType=b.ImageKind=b.FontType=b.AnnotationType=b.AnnotationFlag=b.AnnotationFieldFlag=b.AnnotationBorderStyleType=b.UNSUPPORTED_FEATURES=b.VERBOSITY_LEVELS=b.OPS=b.IDENTITY_MATRIX=b.FONT_IDENTITY_MATRIX=void 0;var U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};c(16);var V=c(17),W="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:void 0,X=[.001,0,0,.001,0,0],Y={NONE:"none",DECODE:"decode",DISPLAY:"display"},Z={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},$={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},_={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},ab={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},bb={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},cb={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},db={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},eb={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},fb={errors:0,warnings:1,infos:5},gb={NONE:0,BINARY:1,STREAM:2},hb={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},ib=fb.warnings,jb={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},kb={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},lb=function(){function a(a,b){this.name="PasswordException",this.message=a,this.code=b}return a.prototype=new Error,a.constructor=a,a}(),mb=function(){function a(a,b){this.name="UnknownErrorException",this.message=a,this.details=b}return a.prototype=new Error,a.constructor=a,a}(),nb=function(){function a(a){this.name="InvalidPDFException",this.message=a}return a.prototype=new Error,a.constructor=a,a}(),ob=function(){function a(a){this.name="MissingPDFException",this.message=a}return a.prototype=new Error,a.constructor=a,a}(),pb=function(){function a(a,b){this.name="UnexpectedResponseException",this.message=a,this.status=b}return a.prototype=new Error,a.constructor=a,a}(),qb=function(){function a(a){this.message=a}return a.prototype=new Error,a.prototype.name="NotImplementedException",a.constructor=a,a}(),rb=function(){function a(a,b){this.begin=a,this.end=b,this.message="Missing data ["+a+", "+b+")"}return a.prototype=new Error,a.prototype.name="MissingDataException",a.constructor=a,a}(),sb=function(){function a(a){this.message=a}return a.prototype=new Error,a.prototype.name="XRefParseException",a.constructor=a,a}(),tb=function(){function a(a){this.message=a}return a.prototype=new Error,a.prototype.name="FormatError",a.constructor=a,a}(),ub=function(){function a(a){this.name="AbortException",this.message=a}return a.prototype=new Error,a.constructor=a,a}(),vb=/\x00/g,wb=[1,0,0,1,0,0],xb=function(){function a(){}var b=["rgb(",0,",",0,",",0,")"];a.makeCssRgb=function(a,c,d){return b[1]=a,b[3]=c,b[5]=d,b.join("")},a.transform=function(a,b){return[a[0]*b[0]+a[2]*b[1],a[1]*b[0]+a[3]*b[1],a[0]*b[2]+a[2]*b[3],a[1]*b[2]+a[3]*b[3],a[0]*b[4]+a[2]*b[5]+a[4],a[1]*b[4]+a[3]*b[5]+a[5]]},a.applyTransform=function(a,b){var c=a[0]*b[0]+a[1]*b[2]+b[4],d=a[0]*b[1]+a[1]*b[3]+b[5];return[c,d]},a.applyInverseTransform=function(a,b){var c=b[0]*b[3]-b[1]*b[2],d=(a[0]*b[3]-a[1]*b[2]+b[2]*b[5]-b[4]*b[3])/c,e=(-a[0]*b[1]+a[1]*b[0]+b[4]*b[1]-b[5]*b[0])/c;return[d,e]},a.getAxialAlignedBoundingBox=function(b,c){var d=a.applyTransform(b,c),e=a.applyTransform(b.slice(2,4),c),f=a.applyTransform([b[0],b[3]],c),g=a.applyTransform([b[2],b[1]],c);return[Math.min(d[0],e[0],f[0],g[0]),Math.min(d[1],e[1],f[1],g[1]),Math.max(d[0],e[0],f[0],g[0]),Math.max(d[1],e[1],f[1],g[1])]},a.inverseTransform=function(a){var b=a[0]*a[3]-a[1]*a[2];return[a[3]/b,-a[1]/b,-a[2]/b,a[0]/b,(a[2]*a[5]-a[4]*a[3])/b,(a[4]*a[1]-a[5]*a[0])/b]},a.apply3dTransform=function(a,b){return[a[0]*b[0]+a[1]*b[1]+a[2]*b[2],a[3]*b[0]+a[4]*b[1]+a[5]*b[2],a[6]*b[0]+a[7]*b[1]+a[8]*b[2]]},a.singularValueDecompose2dScale=function(a){var b=[a[0],a[2],a[1],a[3]],c=a[0]*b[0]+a[1]*b[2],d=a[0]*b[1]+a[1]*b[3],e=a[2]*b[0]+a[3]*b[2],f=a[2]*b[1]+a[3]*b[3],g=(c+f)/2,h=Math.sqrt((c+f)*(c+f)-4*(c*f-e*d))/2,i=g+h||1,j=g-h||1;return[Math.sqrt(i),Math.sqrt(j)]},a.normalizeRect=function(a){var b=a.slice(0);return a[0]>a[2]&&(b[0]=a[2],b[2]=a[0]),a[1]>a[3]&&(b[1]=a[3],b[3]=a[1]),b},a.intersect=function(b,c){function d(a,b){return a-b}var e=[b[0],b[2],c[0],c[2]].sort(d),f=[b[1],b[3],c[1],c[3]].sort(d),g=[];return b=a.normalizeRect(b),c=a.normalizeRect(c),e[0]===b[0]&&e[1]===c[0]||e[0]===c[0]&&e[1]===b[0]?(g[0]=e[1],g[2]=e[2],f[0]===b[1]&&f[1]===c[1]||f[0]===c[1]&&f[1]===b[1]?(g[1]=f[1],g[3]=f[2],g):!1):!1},a.sign=function(a){return 0>a?-1:1};var c=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];return a.toRoman=function(a,b){j(G(a)&&a>0,"The number should be a positive integer.");for(var d,e=[];a>=1e3;)a-=1e3,e.push("M");d=a/100|0,a%=100,e.push(c[d]),d=a/10|0,a%=10,e.push(c[10+d]),e.push(c[20+a]);var f=e.join("");return b?f.toLowerCase():f},a.appendToArray=function(a,b){Array.prototype.push.apply(a,b)},a.prependToArray=function(a,b){Array.prototype.unshift.apply(a,b)},a.extendObj=function(a,b){for(var c in b)a[c]=b[c]},a.getInheritableProperty=function(a,b,c){for(;a&&!a.has(b);)a=a.get("Parent");return a?c?a.getArray(b):a.get(b):null},a.inherit=function(a,b,c){a.prototype=Object.create(b.prototype),a.prototype.constructor=a;for(var d in c)a.prototype[d]=c[d]},a.loadScript=function(a,b){var c=document.createElement("script"),d=!1;c.setAttribute("src",a),b&&(c.onload=function(){d||b(),d=!0}),document.getElementsByTagName("head")[0].appendChild(c)},a}(),yb=function(){function a(a,b,c,d,e,f){this.viewBox=a,this.scale=b,this.rotation=c,this.offsetX=d,this.offsetY=e;var g,h,i,j,k=(a[2]+a[0])/2,l=(a[3]+a[1])/2;switch(c%=360,c=0>c?c+360:c){case 180:g=-1,h=0,i=0,j=1;break;case 90:g=0,h=1,i=1,j=0;break;case 270:g=0,h=-1,i=-1,j=0;break;default:g=1,h=0,i=0,j=-1}f&&(i=-i,j=-j);var m,n,o,p;0===g?(m=Math.abs(l-a[1])*b+d,n=Math.abs(k-a[0])*b+e,o=Math.abs(a[3]-a[1])*b,p=Math.abs(a[2]-a[0])*b):(m=Math.abs(k-a[0])*b+d,n=Math.abs(l-a[1])*b+e,o=Math.abs(a[2]-a[0])*b,p=Math.abs(a[3]-a[1])*b),this.transform=[g*b,h*b,i*b,j*b,m-g*b*k-i*b*l,n-h*b*k-j*b*l],this.width=o,this.height=p,this.fontScale=b}return a.prototype={clone:function(b){b=b||{};var c="scale"in b?b.scale:this.scale,d="rotation"in b?b.rotation:this.rotation;return new a(this.viewBox.slice(),c,d,this.offsetX,this.offsetY,b.dontFlip)},convertToViewportPoint:function(a,b){return xb.applyTransform([a,b],this.transform)},convertToViewportRectangle:function(a){var b=xb.applyTransform([a[0],a[1]],this.transform),c=xb.applyTransform([a[2],a[3]],this.transform);return[b[0],b[1],c[0],c[1]]},convertToPdfPoint:function(a,b){return xb.applyInverseTransform([a,b],this.transform)}},a}(),zb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],Ab=function(){function a(a,b,c){for(;a.length<c;)a+=b;return a}function b(){this.started=Object.create(null),this.times=[],this.enabled=!0}return b.prototype={time:function(a){this.enabled&&(a in this.started&&g("Timer is already running for "+a),this.started[a]=Date.now())},timeEnd:function(a){this.enabled&&(a in this.started||g("Timer has not been started for "+a),this.times.push({name:a,start:this.started[a],end:Date.now()}),delete this.started[a])},toString:function(){var b,c,d=this.times,e="",f=0;for(b=0,c=d.length;c>b;++b){var g=d[b].name;g.length>f&&(f=g.length)}for(b=0,c=d.length;c>b;++b){var h=d[b],i=h.end-h.start;e+=a(h.name," ",f)+" "+i+"ms\n"}return e}},b}(),Bb=function(a,b){if("undefined"!=typeof Blob)return new Blob([a],{type:b});throw new Error('The "Blob" constructor is not supported.')},Cb=function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(b,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!1;if(!d&&URL.createObjectURL){var e=Bb(b,c);return URL.createObjectURL(e)}for(var f="data:"+c+";base64,",g=0,h=b.length;h>g;g+=3){var i=255&b[g],j=255&b[g+1],k=255&b[g+2],l=i>>2,m=(3&i)<<4|j>>4,n=h>g+1?(15&j)<<2|k>>6:64,o=h>g+2?63&k:64;f+=a[l]+a[m]+a[n]+a[o]}return f}}();S.prototype={on:function(a,b,c){var d=this.actionHandler;if(d[a])throw new Error('There is already an actionName called "'+a+'"');d[a]=[b,c]},send:function(a,b,c){var d={sourceName:this.sourceName,targetName:this.targetName,action:a,data:b};this.postMessage(d,c)},sendWithPromise:function(a,b,c){var d=this.callbackId++,e={sourceName:this.sourceName,targetName:this.targetName,action:a,data:b,callbackId:d},f=N();this.callbacksCapabilities[d]=f;try{this.postMessage(e,c)}catch(g){f.reject(g)}return f.promise},sendWithStream:function(a,b,c){var d=this,e=this.streamId++,f=this.sourceName,g=this.targetName;return new V.ReadableStream({start:function(c){var h=N();return d.streamControllers[e]={controller:c,startCall:h,isClosed:!1},d.postMessage({sourceName:f,targetName:g,action:a,streamId:e,data:b,desiredSize:c.desiredSize}),h.promise},pull:function(a){var b=N();return d.streamControllers[e].pullCall=b,d.postMessage({sourceName:f,targetName:g,stream:"pull",streamId:e,desiredSize:a.desiredSize}),b.promise},cancel:function(a){var b=N();return d.streamControllers[e].cancelCall=b,d.streamControllers[e].isClosed=!0,d.postMessage({sourceName:f,targetName:g,stream:"cancel",reason:a,streamId:e}),b.promise}},c)},_createStreamSink:function(a){var b=this,c=this,d=this.actionHandler[a.action],e=a.streamId,f=a.desiredSize,g=this.sourceName,h=a.sourceName,i=N(),j=function(a){var c=a.stream,d=a.chunk,f=a.transfers,i=a.success,j=a.reason;b.postMessage({sourceName:g,targetName:h,stream:c,streamId:e,chunk:d,success:i,reason:j},f)},k={enqueue:function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,c=arguments[2];if(!this.isCancelled){var d=this.desiredSize;this.desiredSize-=b,d>0&&this.desiredSize<=0&&(this.sinkCapability=N(),this.ready=this.sinkCapability.promise),j({stream:"enqueue",chunk:a,transfers:c})}},close:function(){this.isCancelled||(j({stream:"close"}),delete c.streamSinks[e])},error:function(a){this.isCancelled||(this.isCancelled=!0,j({stream:"error",reason:a}))},sinkCapability:i,onPull:null,onCancel:null,isCancelled:!1,desiredSize:f,ready:null};k.sinkCapability.resolve(),k.ready=k.sinkCapability.promise,this.streamSinks[e]=k,O(d[0],[a.data,k],d[1]).then(function(){j({stream:"start_complete",success:!0})},function(a){j({stream:"start_complete",success:!1,reason:a})})},_processStreamMessage:function(a){var b=this,c=this.sourceName,d=a.sourceName,e=a.streamId,f=function(a){var f=a.stream,g=a.success,h=a.reason;b.comObj.postMessage({sourceName:c,targetName:d,stream:f,success:g,streamId:e,reason:h})},g=function(){Promise.all([b.streamControllers[a.streamId].startCall,b.streamControllers[a.streamId].pullCall,b.streamControllers[a.streamId].cancelCall].map(function(a){return a&&R(a.promise)})).then(function(){delete b.streamControllers[a.streamId]})};switch(a.stream){case"start_complete":Q(this.streamControllers[a.streamId].startCall,a.success,P(a.reason));break;case"pull_complete":Q(this.streamControllers[a.streamId].pullCall,a.success,P(a.reason));break;case"pull":if(!this.streamSinks[a.streamId]){f({stream:"pull_complete",success:!0});break}this.streamSinks[a.streamId].desiredSize<=0&&a.desiredSize>0&&this.streamSinks[a.streamId].sinkCapability.resolve(),this.streamSinks[a.streamId].desiredSize=a.desiredSize,O(this.streamSinks[a.streamId].onPull).then(function(){f({stream:"pull_complete",success:!0})},function(a){f({stream:"pull_complete",success:!1,reason:a})});break;case"enqueue":j(this.streamControllers[a.streamId],"enqueue should have stream controller"),this.streamControllers[a.streamId].isClosed||this.streamControllers[a.streamId].controller.enqueue(a.chunk);break;case"close":if(j(this.streamControllers[a.streamId],"close should have stream controller"),this.streamControllers[a.streamId].isClosed)break;this.streamControllers[a.streamId].isClosed=!0,this.streamControllers[a.streamId].controller.close(),g();break;case"error":j(this.streamControllers[a.streamId],"error should have stream controller"),this.streamControllers[a.streamId].controller.error(P(a.reason)),g();break;case"cancel_complete":Q(this.streamControllers[a.streamId].cancelCall,a.success,P(a.reason)),g();break;case"cancel":if(!this.streamSinks[a.streamId])break;O(this.streamSinks[a.streamId].onCancel,[P(a.reason)]).then(function(){f({stream:"cancel_complete",success:!0})},function(a){f({stream:"cancel_complete",success:!1,reason:a})}),this.streamSinks[a.streamId].sinkCapability.reject(P(a.reason)),this.streamSinks[a.streamId].isCancelled=!0,delete this.streamSinks[a.streamId];break;default:throw new Error("Unexpected stream case")}},postMessage:function(a,b){b&&this.postMessageTransfers?this.comObj.postMessage(a,b):this.comObj.postMessage(a)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},b.FONT_IDENTITY_MATRIX=X,b.IDENTITY_MATRIX=wb,b.OPS=hb,b.VERBOSITY_LEVELS=fb,b.UNSUPPORTED_FEATURES=jb,b.AnnotationBorderStyleType=cb,b.AnnotationFieldFlag=bb,b.AnnotationFlag=ab,b.AnnotationType=_,b.FontType=eb,b.ImageKind=$,b.CMapCompressionType=gb,b.AbortException=ub,b.InvalidPDFException=nb,b.MessageHandler=S,b.MissingDataException=rb,b.MissingPDFException=ob,b.NativeImageDecoding=Y,b.NotImplementedException=qb,b.PageViewport=yb,b.PasswordException=lb,b.PasswordResponses=kb,b.StatTimer=Ab,b.StreamType=db,b.TextRenderingMode=Z,b.UnexpectedResponseException=pb,b.UnknownErrorException=mb,b.Util=xb,b.XRefParseException=sb,b.FormatError=tb,b.arrayByteLength=s,b.arraysToBytes=t,b.assert=j,b.bytesToString=q,b.createBlob=Bb,b.createPromiseCapability=N,b.createObjectURL=Cb,b.deprecated=h,b.getLookupTableFactory=o,b.getVerbosityLevel=e,b.globalScope=W,b.info=f,b.isArray=J,b.isArrayBuffer=K,b.isBool=F,b.isEmptyObj=E,b.isInt=G,b.isNum=H,b.isString=I,b.isSpace=L,b.isNodeJS=M,b.isSameOrigin=k,b.createValidAbsoluteUrl=m,b.isLittleEndian=z,b.isEvalSupported=A,b.loadJpegStream=T,b.log2=v,b.readInt8=w,b.readUint16=x,b.readUint32=y,b.removeNullCharacters=p,b.ReadableStream=V.ReadableStream,b.setVerbosityLevel=d,b.shadow=n,b.string32=u,b.stringToBytes=r,b.stringToPDFString=B,b.stringToUTF8String=C,b.utf8StringToString=D,b.warn=g,b.unreachable=i},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){var c=b&&b.url;if(a.href=a.title=c?k.removeNullCharacters(c):"",c){var d=b.target;"undefined"==typeof d&&(d=g("externalLinkTarget")),a.target=r[d];var e=b.rel;"undefined"==typeof e&&(e=g("externalLinkRel")),a.rel=e}}function f(a){var b=a.indexOf("#"),c=a.indexOf("?"),d=Math.min(b>0?b:a.length,c>0?c:a.length);return a.substring(a.lastIndexOf("/",d)+1,d)}function g(a){var b=k.globalScope.PDFJS;switch(a){case"pdfBug":return b?b.pdfBug:!1;case"disableAutoFetch":return b?b.disableAutoFetch:!1;case"disableStream":return b?b.disableStream:!1;case"disableRange":return b?b.disableRange:!1;case"disableFontFace":return b?b.disableFontFace:!1;case"disableCreateObjectURL":return b?b.disableCreateObjectURL:!1;
case"disableWebGL":return b?b.disableWebGL:!0;case"cMapUrl":return b?b.cMapUrl:null;case"cMapPacked":return b?b.cMapPacked:!1;case"postMessageTransfers":return b?b.postMessageTransfers:!0;case"workerPort":return b?b.workerPort:null;case"workerSrc":return b?b.workerSrc:null;case"disableWorker":return b?b.disableWorker:!1;case"maxImageSize":return b?b.maxImageSize:-1;case"imageResourcesPath":return b?b.imageResourcesPath:"";case"isEvalSupported":return b?b.isEvalSupported:!0;case"externalLinkTarget":if(!b)return q.NONE;switch(b.externalLinkTarget){case q.NONE:case q.SELF:case q.BLANK:case q.PARENT:case q.TOP:return b.externalLinkTarget}return k.warn("PDFJS.externalLinkTarget is invalid: "+b.externalLinkTarget),b.externalLinkTarget=q.NONE,q.NONE;case"externalLinkRel":return b?b.externalLinkRel:l;case"enableStats":return!(!b||!b.enableStats);case"pdfjsNext":return!(!b||!b.pdfjsNext);default:throw new Error("Unknown default setting: "+a)}}function h(){var a=g("externalLinkTarget");switch(a){case q.NONE:return!1;case q.SELF:case q.BLANK:case q.PARENT:case q.TOP:return!0}}function i(a,b){k.deprecated("isValidUrl(), please use createValidAbsoluteUrl() instead.");var c=b?"http://example.com":null;return null!==k.createValidAbsoluteUrl(a,c)}Object.defineProperty(b,"__esModule",{value:!0}),b.DOMCMapReaderFactory=b.DOMCanvasFactory=b.DEFAULT_LINK_REL=b.getDefaultSetting=b.LinkTarget=b.getFilenameFromUrl=b.isValidUrl=b.isExternalLinkTargetSet=b.addLinkAttributes=b.RenderingCancelledException=b.CustomStyle=void 0;var j=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),k=c(0),l="noopener noreferrer nofollow",m=function(){function a(){d(this,a)}return j(a,[{key:"create",value:function(a,b){if(0>=a||0>=b)throw new Error("invalid canvas size");var c=document.createElement("canvas"),d=c.getContext("2d");return c.width=a,c.height=b,{canvas:c,context:d}}},{key:"reset",value:function(a,b,c){if(!a.canvas)throw new Error("canvas is not specified");if(0>=b||0>=c)throw new Error("invalid canvas size");a.canvas.width=b,a.canvas.height=c}},{key:"destroy",value:function(a){if(!a.canvas)throw new Error("canvas is not specified");a.canvas.width=0,a.canvas.height=0,a.canvas=null,a.context=null}}]),a}(),n=function(){function a(b){var c=b.baseUrl,e=void 0===c?null:c,f=b.isCompressed,g=void 0===f?!1:f;d(this,a),this.baseUrl=e,this.isCompressed=g}return j(a,[{key:"fetch",value:function(a){var b=this,c=a.name;return c?new Promise(function(a,d){var e=b.baseUrl+c+(b.isCompressed?".bcmap":""),f=new XMLHttpRequest;f.open("GET",e,!0),b.isCompressed&&(f.responseType="arraybuffer"),f.onreadystatechange=function(){if(f.readyState===XMLHttpRequest.DONE){if(200===f.status||0===f.status){var c=void 0;if(b.isCompressed&&f.response?c=new Uint8Array(f.response):!b.isCompressed&&f.responseText&&(c=k.stringToBytes(f.responseText)),c)return void a({cMapData:c,compressionType:b.isCompressed?k.CMapCompressionType.BINARY:k.CMapCompressionType.NONE})}d(new Error("Unable to load "+(b.isCompressed?"binary ":"")+"CMap at: "+e))}},f.send(null)}):Promise.reject(new Error("CMap name must be specified."))}}]),a}(),o=function(){function a(){}var b=["ms","Moz","Webkit","O"],c=Object.create(null);return a.getProp=function(a,d){if(1===arguments.length&&"string"==typeof c[a])return c[a];d=d||document.documentElement;var e,f,g=d.style;if("string"==typeof g[a])return c[a]=a;f=a.charAt(0).toUpperCase()+a.slice(1);for(var h=0,i=b.length;i>h;h++)if(e=b[h]+f,"string"==typeof g[e])return c[a]=e;return c[a]="undefined"},a.setProp=function(a,b,c){var d=this.getProp(a);"undefined"!==d&&(b.style[d]=c)},a}(),p=function s(){function s(a,b){this.message=a,this.type=b}return s.prototype=new Error,s.prototype.name="RenderingCancelledException",s.constructor=s,s}(),q={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},r=["","_self","_blank","_parent","_top"];b.CustomStyle=o,b.RenderingCancelledException=p,b.addLinkAttributes=e,b.isExternalLinkTargetSet=h,b.isValidUrl=i,b.getFilenameFromUrl=f,b.LinkTarget=q,b.getDefaultSetting=g,b.DEFAULT_LINK_REL=l,b.DOMCanvasFactory=m,b.DOMCMapReaderFactory=n},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){x=a}function f(a,b,c,d){var e=new A;arguments.length>1&&k.deprecated("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),b&&(b instanceof B||(b=Object.create(b),b.length=a.length,b.initialData=a.initialData,b.abort||(b.abort=function(){})),a=Object.create(a),a.range=b),e.onPassword=c||null,e.onProgress=d||null;var f;if("string"==typeof a)f={url:a};else if(k.isArrayBuffer(a))f={data:a};else if(a instanceof B)f={range:a};else{if("object"!==("undefined"==typeof a?"undefined":j(a)))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!a.url&&!a.data&&!a.range)throw new Error("Invalid parameter object: need either .data, .range or .url");f=a}var h={},i=null,m=null,n=l.DOMCMapReaderFactory;for(var o in f)if("url"!==o||"undefined"==typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||f[o]instanceof Uint8Array)"CMapReaderFactory"!==o?h[o]=f[o]:n=f[o];else{var r=f[o];if("string"==typeof r)h[o]=k.stringToBytes(r);else if("object"!==("undefined"==typeof r?"undefined":j(r))||null===r||isNaN(r.length)){if(!k.isArrayBuffer(r))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");h[o]=new Uint8Array(r)}else h[o]=new Uint8Array(r)}else m=f[o];else i=f[o];else h[o]=new URL(f[o],window.location).href;if(h.rangeChunkSize=h.rangeChunkSize||q,h.ignoreErrors=h.stopAtErrors!==!0,void 0!==h.disableNativeImageDecoder&&k.deprecated("parameter disableNativeImageDecoder, use nativeImageDecoderSupport instead"),h.nativeImageDecoderSupport=h.nativeImageDecoderSupport||(h.disableNativeImageDecoder===!0?k.NativeImageDecoding.NONE:k.NativeImageDecoding.DECODE),h.nativeImageDecoderSupport!==k.NativeImageDecoding.DECODE&&h.nativeImageDecoderSupport!==k.NativeImageDecoding.NONE&&h.nativeImageDecoderSupport!==k.NativeImageDecoding.DISPLAY&&(k.warn("Invalid parameter nativeImageDecoderSupport: need a state of enum {NativeImageDecoding}"),h.nativeImageDecoderSupport=k.NativeImageDecoding.DECODE),!m){var s=l.getDefaultSetting("workerPort");m=s?F.fromPort(s):new F,e._worker=m}var t=e.docId;return m.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");return g(m,h,i,t).then(function(a){if(e.destroyed)throw new Error("Loading aborted");var b=void 0;i?b=new p.PDFDataTransportStream(h,i):h.data||(b=new x({source:h,disableRange:l.getDefaultSetting("disableRange")}));var c=new k.MessageHandler(t,a,m.port);c.postMessageTransfers=m.postMessageTransfers;var d=new G(c,e,b,n);e._transport=d,c.send("Ready",null)})}).catch(e._capability.reject),e}function g(a,b,c,d){return a.destroyed?Promise.reject(new Error("Worker was destroyed")):(b.disableAutoFetch=l.getDefaultSetting("disableAutoFetch"),b.disableStream=l.getDefaultSetting("disableStream"),b.chunkedViewerLoading=!!c,c&&(b.length=c.length,b.initialData=c.initialData),a.messageHandler.sendWithPromise("GetDocRequest",{docId:d,source:{data:b.data,url:b.url,password:b.password,disableAutoFetch:b.disableAutoFetch,rangeChunkSize:b.rangeChunkSize,length:b.length},maxImageSize:l.getDefaultSetting("maxImageSize"),disableFontFace:l.getDefaultSetting("disableFontFace"),disableCreateObjectURL:l.getDefaultSetting("disableCreateObjectURL"),postMessageTransfers:l.getDefaultSetting("postMessageTransfers")&&!s,docBaseUrl:b.docBaseUrl,nativeImageDecoderSupport:b.nativeImageDecoderSupport,ignoreErrors:b.ignoreErrors}).then(function(b){if(a.destroyed)throw new Error("Worker was destroyed");return b}))}Object.defineProperty(b,"__esModule",{value:!0}),b.build=b.version=b._UnsupportedManager=b.setPDFNetworkStreamClass=b.PDFPageProxy=b.PDFDocumentProxy=b.PDFWorker=b.PDFDataRangeTransport=b.LoopbackPort=b.getDocument=void 0;var h,i=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=c(0),l=c(1),m=c(12),n=c(11),o=c(6),p=c(14),q=65536,r=!1,s=!1,t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:null,u=null,v=!1;"undefined"==typeof window?(r=!0,"undefined"==typeof require.ensure&&(require.ensure=require("node-ensure")),v=!0):"undefined"!=typeof require&&"function"==typeof require.ensure&&(v=!0),"undefined"!=typeof requirejs&&requirejs.toUrl&&(h=requirejs.toUrl("pdfjs-dist/build/pdf.worker.js"));var w="undefined"!=typeof requirejs&&requirejs.load;u=v?function(a){require.ensure([],function(){var b;b=require("./pdf.worker.js"),a(b.WorkerMessageHandler)})}:w?function(a){requirejs(["pdfjs-dist/build/pdf.worker"],function(b){a(b.WorkerMessageHandler)})}:null;var x,y,z,A=function(){function a(){this._capability=k.createPromiseCapability(),this._transport=null,this._worker=null,this.docId="d"+b++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}var b=0;return a.prototype={get promise(){return this._capability.promise},destroy:function(){var a=this;this.destroyed=!0;var b=this._transport?this._transport.destroy():Promise.resolve();return b.then(function(){a._transport=null,a._worker&&(a._worker.destroy(),a._worker=null)})},then:function(){return this.promise.then.apply(this.promise,arguments)}},a}(),B=function(){function a(a,b){this.length=a,this.initialData=b,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._readyCapability=k.createPromiseCapability()}return a.prototype={addRangeListener:function(a){this._rangeListeners.push(a)},addProgressListener:function(a){this._progressListeners.push(a)},addProgressiveReadListener:function(a){this._progressiveReadListeners.push(a)},onDataRange:function(a,b){for(var c=this._rangeListeners,d=0,e=c.length;e>d;++d)c[d](a,b)},onDataProgress:function(a){var b=this;this._readyCapability.promise.then(function(){for(var c=b._progressListeners,d=0,e=c.length;e>d;++d)c[d](a)})},onDataProgressiveRead:function(a){var b=this;this._readyCapability.promise.then(function(){for(var c=b._progressiveReadListeners,d=0,e=c.length;e>d;++d)c[d](a)})},transportReady:function(){this._readyCapability.resolve()},requestDataRange:function(){throw new Error("Abstract method PDFDataRangeTransport.requestDataRange")},abort:function(){}},a}(),C=function(){function a(a,b,c){this.pdfInfo=a,this.transport=b,this.loadingTask=c}return a.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},getPage:function(a){return this.transport.getPage(a)},getPageIndex:function(a){return this.transport.getPageIndex(a)},getDestinations:function(){return this.transport.getDestinations()},getDestination:function(a){return this.transport.getDestination(a)},getPageLabels:function(){return this.transport.getPageLabels()},getPageMode:function(){return this.transport.getPageMode()},getAttachments:function(){return this.transport.getAttachments()},getJavaScript:function(){return this.transport.getJavaScript()},getOutline:function(){return this.transport.getOutline()},getMetadata:function(){return this.transport.getMetadata()},getData:function(){return this.transport.getData()},getDownloadInfo:function(){return this.transport.downloadInfoCapability.promise},getStats:function(){return this.transport.getStats()},cleanup:function(){this.transport.startCleanup()},destroy:function(){return this.loadingTask.destroy()}},a}(),D=function(){function a(a,b,c){this.pageIndex=a,this.pageInfo=b,this.transport=c,this.stats=new k.StatTimer,this.stats.enabled=l.getDefaultSetting("enableStats"),this.commonObjs=c.commonObjs,this.objs=new H,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return a.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this.pageInfo.rotate},get ref(){return this.pageInfo.ref},get userUnit(){return this.pageInfo.userUnit},get view(){return this.pageInfo.view},getViewport:function(a,b){return arguments.length<2&&(b=this.rotate),new k.PageViewport(this.view,a,b,0,0)},getAnnotations:function(a){var b=a&&a.intent||null;return this.annotationsPromise&&this.annotationsIntent===b||(this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,b),this.annotationsIntent=b),this.annotationsPromise},render:function(a){var b=this,c=this.stats;c.time("Overall"),this.pendingCleanup=!1;var d="print"===a.intent?"print":"display",e=a.canvasFactory||new l.DOMCanvasFactory;this.intentStates[d]||(this.intentStates[d]=Object.create(null));var f=this.intentStates[d];f.displayReadyCapability||(f.receivingOperatorList=!0,f.displayReadyCapability=k.createPromiseCapability(),f.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:d,renderInteractiveForms:a.renderInteractiveForms===!0}));var g=function(a){var d=f.renderTasks.indexOf(h);d>=0&&f.renderTasks.splice(d,1),b.cleanupAfterRender&&(b.pendingCleanup=!0),b._tryCleanup(),a?h.capability.reject(a):h.capability.resolve(),c.timeEnd("Rendering"),c.timeEnd("Overall")},h=new J(g,a,this.objs,this.commonObjs,f.operatorList,this.pageNumber,e);h.useRequestAnimationFrame="print"!==d,f.renderTasks||(f.renderTasks=[]),f.renderTasks.push(h);var i=h.task;return a.continueCallback&&(k.deprecated("render is used with continueCallback parameter"),i.onContinue=a.continueCallback),f.displayReadyCapability.promise.then(function(a){return b.pendingCleanup?void g():(c.time("Rendering"),h.initializeGraphics(a),void h.operatorListChanged())}).catch(g),i},getOperatorList:function(){function a(){if(d.operatorList.lastChunk){d.opListReadCapability.resolve(d.operatorList);var a=d.renderTasks.indexOf(c);a>=0&&d.renderTasks.splice(a,1)}}var b="oplist";this.intentStates[b]||(this.intentStates[b]=Object.create(null));var c,d=this.intentStates[b];return d.opListReadCapability||(c={},c.operatorListChanged=a,d.receivingOperatorList=!0,d.opListReadCapability=k.createPromiseCapability(),d.renderTasks=[],d.renderTasks.push(c),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:b})),d.opListReadCapability.promise},streamTextContent:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=100;return this.transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:a.normalizeWhitespace===!0,combineTextItems:a.disableCombineTextItems!==!0},{highWaterMark:b,size:function(a){return a.items.length}})},getTextContent:function(a){a=a||{};var b=this.streamTextContent(a);return new Promise(function(a,c){function d(){e.read().then(function(b){var c=b.value,e=b.done;return e?void a(f):(k.Util.extendObj(f.styles,c.styles),k.Util.appendToArray(f.items,c.items),void d())},c)}var e=b.getReader(),f={items:[],styles:Object.create(null)};d()})},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;var a=[];return Object.keys(this.intentStates).forEach(function(b){if("oplist"!==b){var c=this.intentStates[b];c.renderTasks.forEach(function(b){var c=b.capability.promise.catch(function(){});a.push(c),b.cancel()})}},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(a)},destroy:function(){k.deprecated("page destroy method, use cleanup() instead"),this.cleanup()},cleanup:function(){this.pendingCleanup=!0,this._tryCleanup()},_tryCleanup:function(){this.pendingCleanup&&!Object.keys(this.intentStates).some(function(a){var b=this.intentStates[a];return 0!==b.renderTasks.length||b.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(a){delete this.intentStates[a]},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1)},_startRenderPage:function(a,b){var c=this.intentStates[b];c.displayReadyCapability&&c.displayReadyCapability.resolve(a)},_renderPageChunk:function(a,b){var c,d,e=this.intentStates[b];for(c=0,d=a.length;d>c;c++)e.operatorList.fnArray.push(a.fnArray[c]),e.operatorList.argsArray.push(a.argsArray[c]);for(e.operatorList.lastChunk=a.lastChunk,c=0;c<e.renderTasks.length;c++)e.renderTasks[c].operatorListChanged();a.lastChunk&&(e.receivingOperatorList=!1,this._tryCleanup())}},a}(),E=function(){function a(b){d(this,a),this._listeners=[],this._defer=b,this._deferred=Promise.resolve(void 0)}return i(a,[{key:"postMessage",value:function(a,b){function c(a){if("object"!==("undefined"==typeof a?"undefined":j(a))||null===a)return a;if(e.has(a))return e.get(a);var d,f;if((f=a.buffer)&&k.isArrayBuffer(f)){var g=b&&b.indexOf(f)>=0;return d=a===f?a:g?new a.constructor(f,a.byteOffset,a.byteLength):new a.constructor(a),e.set(a,d),d}d=k.isArray(a)?[]:{},e.set(a,d);for(var h in a){for(var i,l=a;!(i=Object.getOwnPropertyDescriptor(l,h));)l=Object.getPrototypeOf(l);"undefined"!=typeof i.value&&"function"!=typeof i.value&&(d[h]=c(i.value))}return d}var d=this;if(!this._defer)return void this._listeners.forEach(function(b){b.call(this,{data:a})},this);var e=new WeakMap,f={data:c(a)};this._deferred.then(function(){d._listeners.forEach(function(a){a.call(this,f)},d)})}},{key:"addEventListener",value:function(a,b){this._listeners.push(b)}},{key:"removeEventListener",value:function(a,b){var c=this._listeners.indexOf(b);this._listeners.splice(c,1)}},{key:"terminate",value:function(){this._listeners=[]}}]),a}(),F=function(){function a(){if("undefined"!=typeof h)return h;if(l.getDefaultSetting("workerSrc"))return l.getDefaultSetting("workerSrc");if(t)return t.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2");throw new Error("No PDFJS.workerSrc specified")}function b(){if(f)return f.promise;f=k.createPromiseCapability();var b=u||function(b){k.Util.loadScript(a(),function(){b(window.pdfjsDistBuildPdfWorker.WorkerMessageHandler)})};return b(f.resolve),f.promise}function c(a){var b="importScripts('"+a+"');";return URL.createObjectURL(new Blob([b]))}function d(a,b){if(b&&g.has(b))throw new Error("Cannot use more than one PDFWorker per port");return this.name=a,this.destroyed=!1,this.postMessageTransfers=!0,this._readyCapability=k.createPromiseCapability(),this._port=null,this._webWorker=null,this._messageHandler=null,b?(g.set(b,this),void this._initializeFromPort(b)):void this._initialize()}var e=0,f=void 0,g=new WeakMap;return d.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initializeFromPort:function(a){this._port=a,this._messageHandler=new k.MessageHandler("main","worker",a),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()},_initialize:function(){var b=this;if(!r&&!l.getDefaultSetting("disableWorker")&&"undefined"!=typeof Worker){var d=a();try{k.isSameOrigin(window.location.href,d)||(d=c(new URL(d,window.location).href));var e=new Worker(d),f=new k.MessageHandler("main","worker",e),g=function(){e.removeEventListener("error",h),f.destroy(),e.terminate(),b.destroyed?b._readyCapability.reject(new Error("Worker was destroyed")):b._setupFakeWorker()},h=function(){b._webWorker||g()};e.addEventListener("error",h),f.on("test",function(a){if(e.removeEventListener("error",h),b.destroyed)return void g();var c=a&&a.supportTypedArray;c?(b._messageHandler=f,b._port=e,b._webWorker=e,a.supportTransfers||(b.postMessageTransfers=!1,s=!0),b._readyCapability.resolve(),f.send("configure",{verbosity:k.getVerbosityLevel()})):(b._setupFakeWorker(),f.destroy(),e.terminate())}),f.on("console_log",function(a){console.log.apply(console,a)}),f.on("console_error",function(a){console.error.apply(console,a)}),f.on("ready",function(){if(e.removeEventListener("error",h),b.destroyed)return void g();try{i()}catch(a){b._setupFakeWorker()}});var i=function(){var a=l.getDefaultSetting("postMessageTransfers")&&!s,b=new Uint8Array([a?255:0]);try{f.send("test",b,[b.buffer])}catch(c){k.info("Cannot use postMessage transfers"),b[0]=0,f.send("test",b)}};return void i()}catch(j){k.info("The worker has been disabled.")}}this._setupFakeWorker()},_setupFakeWorker:function(){var a=this;r||l.getDefaultSetting("disableWorker")||(k.warn("Setting up fake worker."),r=!0),b().then(function(b){if(a.destroyed)return void a._readyCapability.reject(new Error("Worker was destroyed"));var c=Uint8Array!==Float32Array,d=new E(c);a._port=d;var f="fake"+e++,g=new k.MessageHandler(f+"_worker",f,d);b.setup(g,d);var h=new k.MessageHandler(f,f+"_worker",d);a._messageHandler=h,a._readyCapability.resolve()})},destroy:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),g.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},d.fromPort=function(a){return g.has(a)?g.get(a):new d(null,a)},d}(),G=function(){function a(a,b,c,d){this.messageHandler=a,this.loadingTask=b,this.commonObjs=new H,this.fontLoader=new m.FontLoader(b.docId),this.CMapReaderFactory=new d({baseUrl:l.getDefaultSetting("cMapUrl"),isCompressed:l.getDefaultSetting("cMapPacked")}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=c,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=k.createPromiseCapability(),this.setupMessageHandler()}return a.prototype={destroy:function(){var a=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=k.createPromiseCapability(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var b=[];this.pageCache.forEach(function(a){a&&b.push(a._destroy())}),this.pageCache=[],this.pagePromises=[];var c=this.messageHandler.sendWithPromise("Terminate",null);return b.push(c),Promise.all(b).then(function(){a.fontLoader.clear(),a._networkStream&&a._networkStream.cancelAllRequests(),a.messageHandler&&(a.messageHandler.destroy(),a.messageHandler=null),a.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise},setupMessageHandler:function(){var a=this.messageHandler,b=this.loadingTask;a.on("GetReader",function(a,b){var c=this;k.assert(this._networkStream),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=function(a){c._lastProgress={loaded:a.loaded,total:a.total}},b.onPull=function(){c._fullReader.read().then(function(a){var c=a.value,d=a.done;return d?void b.close():(k.assert(k.isArrayBuffer(c)),void b.enqueue(new Uint8Array(c),1,[c]))}).catch(function(a){b.error(a)})},b.onCancel=function(a){c._fullReader.cancel(a)}},this),a.on("ReaderHeadersReady",function(){var a=this,b=k.createPromiseCapability(),c=this._fullReader;return c.headersReady.then(function(){if(!c.isStreamingSupported||!c.isRangeSupported){if(a._lastProgress){var d=a.loadingTask;d.onProgress&&d.onProgress(a._lastProgress)}c.onProgress=function(b){var c=a.loadingTask;c.onProgress&&c.onProgress({loaded:b.loaded,total:b.total})}}b.resolve({isStreamingSupported:c.isStreamingSupported,isRangeSupported:c.isRangeSupported,contentLength:c.contentLength})},b.reject),b.promise},this),a.on("GetRangeReader",function(a,b){k.assert(this._networkStream);var c=this._networkStream.getRangeReader(a.begin,a.end);b.onPull=function(){c.read().then(function(a){var c=a.value,d=a.done;return d?void b.close():(k.assert(k.isArrayBuffer(c)),void b.enqueue(new Uint8Array(c),1,[c]))}).catch(function(a){b.error(a)})},b.onCancel=function(a){c.cancel(a)}},this),a.on("GetDoc",function(a){var b=a.pdfInfo;this.numPages=a.pdfInfo.numPages;var c=this.loadingTask,d=new C(b,this,c);this.pdfDocument=d,c._capability.resolve(d)},this),a.on("PasswordRequest",function(a){var c=this;if(this._passwordCapability=k.createPromiseCapability(),b.onPassword){var d=function(a){c._passwordCapability.resolve({password:a})};b.onPassword(d,a.code)}else this._passwordCapability.reject(new k.PasswordException(a.message,a.code));return this._passwordCapability.promise},this),a.on("PasswordException",function(a){b._capability.reject(new k.PasswordException(a.message,a.code))},this),a.on("InvalidPDF",function(a){this.loadingTask._capability.reject(new k.InvalidPDFException(a.message))},this),a.on("MissingPDF",function(a){this.loadingTask._capability.reject(new k.MissingPDFException(a.message))},this),a.on("UnexpectedResponse",function(a){this.loadingTask._capability.reject(new k.UnexpectedResponseException(a.message,a.status))},this),a.on("UnknownError",function(a){this.loadingTask._capability.reject(new k.UnknownErrorException(a.message,a.details))},this),a.on("DataLoaded",function(a){this.downloadInfoCapability.resolve(a)},this),a.on("PDFManagerReady",function(){},this),a.on("StartRenderPage",function(a){if(!this.destroyed){var b=this.pageCache[a.pageIndex];b.stats.timeEnd("Page Request"),b._startRenderPage(a.transparency,a.intent)}},this),a.on("RenderPageChunk",function(a){if(!this.destroyed){var b=this.pageCache[a.pageIndex];b._renderPageChunk(a.operatorList,a.intent)}},this),a.on("commonobj",function(a){var b=this;if(!this.destroyed){var c=a[0],d=a[1];if(!this.commonObjs.hasData(c))switch(d){case"Font":var e=a[2];if("error"in e){var f=e.error;k.warn("Error during font loading: "+f),this.commonObjs.resolve(c,f);break}var g=null;l.getDefaultSetting("pdfBug")&&k.globalScope.FontInspector&&k.globalScope.FontInspector.enabled&&(g={registerFont:function(a,b){k.globalScope.FontInspector.fontAdded(a,b)}});var h=new m.FontFaceObject(e,{isEvalSuported:l.getDefaultSetting("isEvalSupported"),disableFontFace:l.getDefaultSetting("disableFontFace"),fontRegistry:g}),i=function(){b.commonObjs.resolve(c,h)};this.fontLoader.bind([h],i);break;case"FontPath":this.commonObjs.resolve(c,a[2]);break;default:throw new Error("Got unknown common object type "+d)}}},this),a.on("obj",function(a){if(!this.destroyed){var b,c=a[0],d=a[1],e=a[2],f=this.pageCache[d];if(!f.objs.hasData(c))switch(e){case"JpegStream":b=a[3],k.loadJpegStream(c,b,f.objs);break;case"Image":b=a[3],f.objs.resolve(c,b);var g=8e6;b&&"data"in b&&b.data.length>g&&(f.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type "+e)}}},this),a.on("DocProgress",function(a){if(!this.destroyed){var b=this.loadingTask;b.onProgress&&b.onProgress({loaded:a.loaded,total:a.total})}},this),a.on("PageError",function(a){if(!this.destroyed){var b=this.pageCache[a.pageNum-1],c=b.intentStates[a.intent];if(!c.displayReadyCapability)throw new Error(a.error);if(c.displayReadyCapability.reject(a.error),c.operatorList){c.operatorList.lastChunk=!0;for(var d=0;d<c.renderTasks.length;d++)c.renderTasks[d].operatorListChanged()}}},this),a.on("UnsupportedFeature",function(a){if(!this.destroyed){var b=a.featureId,c=this.loadingTask;c.onUnsupportedFeature&&c.onUnsupportedFeature(b),K.notify(b)}},this),a.on("JpegDecode",function(a){if(this.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"==typeof document)return Promise.reject(new Error('"document" is not defined.'));var b=a[0],c=a[1];return 3!==c&&1!==c?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function(a,d){var e=new Image;e.onload=function(){var b=e.width,d=e.height,f=b*d,g=4*f,h=new Uint8Array(f*c),i=document.createElement("canvas");i.width=b,i.height=d;var j=i.getContext("2d");j.drawImage(e,0,0);var k,l,m=j.getImageData(0,0,b,d).data;if(3===c)for(k=0,l=0;g>k;k+=4,l+=3)h[l]=m[k],h[l+1]=m[k+1],h[l+2]=m[k+2];else if(1===c)for(k=0,l=0;g>k;k+=4,l++)h[l]=m[k];a({data:h,width:b,height:d})},e.onerror=function(){d(new Error("JpegDecode failed to load image"))},e.src=b})},this),a.on("FetchBuiltInCMap",function(a){return this.destroyed?Promise.reject(new Error("Worker was destroyed")):this.CMapReaderFactory.fetch({name:a.name})},this)},getData:function(){return this.messageHandler.sendWithPromise("GetData",null)},getPage:function(a){var b=this;if(!k.isInt(a)||0>=a||a>this.numPages)return Promise.reject(new Error("Invalid page request"));var c=a-1;if(c in this.pagePromises)return this.pagePromises[c];var d=this.messageHandler.sendWithPromise("GetPage",{pageIndex:c}).then(function(a){if(b.destroyed)throw new Error("Transport destroyed");var d=new D(c,a,b);return b.pageCache[c]=d,d});return this.pagePromises[c]=d,d},getPageIndex:function(a){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:a}).catch(function(a){return Promise.reject(new Error(a))})},getAnnotations:function(a,b){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:a,intent:b})},getDestinations:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(a){return this.messageHandler.sendWithPromise("GetDestination",{id:a})},getPageLabels:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)},getPageMode:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)},getAttachments:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){return this.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(a){return{info:a[0],metadata:a[1]?new o.Metadata(a[1]):null}})},getStats:function(){return this.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){var a=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var b=0,c=a.pageCache.length;c>b;b++){var d=a.pageCache[b];d&&d.cleanup()}a.commonObjs.clear(),a.fontLoader.clear()})}},a}(),H=function(){function a(){this.objs=Object.create(null)}return a.prototype={ensureObj:function(a){if(this.objs[a])return this.objs[a];var b={capability:k.createPromiseCapability(),data:null,resolved:!1};return this.objs[a]=b,b},get:function(a,b){if(b)return this.ensureObj(a).capability.promise.then(b),null;var c=this.objs[a];if(!c||!c.resolved)throw new Error("Requesting object that isn't resolved yet "+a);return c.data},resolve:function(a,b){var c=this.ensureObj(a);c.resolved=!0,c.data=b,c.capability.resolve(b)},isResolved:function(a){var b=this.objs;return b[a]?b[a].resolved:!1},hasData:function(a){return this.isResolved(a)},getData:function(a){var b=this.objs;return b[a]&&b[a].resolved?b[a].data:null},clear:function(){this.objs=Object.create(null)}},a}(),I=function(){function a(a){this._internalRenderTask=a,this.onContinue=null}return a.prototype={get promise(){return this._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(){return this.promise.then.apply(this.promise,arguments)}},a}(),J=function(){function a(a,b,c,d,e,f,g){this.callback=a,this.params=b,this.objs=c,this.commonObjs=d,this.operatorListIdx=null,this.operatorList=e,this.pageNumber=f,this.canvasFactory=g,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=k.createPromiseCapability(),this.task=new I(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=b.canvasContext.canvas}var b=new WeakMap;return a.prototype={initializeGraphics:function(a){if(this._canvas){if(b.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
b.set(this._canvas,this)}if(!this.cancelled){l.getDefaultSetting("pdfBug")&&k.globalScope.StepperManager&&k.globalScope.StepperManager.enabled&&(this.stepper=k.globalScope.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var c=this.params;this.gfx=new n.CanvasGraphics(c.canvasContext,this.commonObjs,this.objs,this.canvasFactory,c.imageLayer),this.gfx.beginDrawing({transform:c.transform,viewport:c.viewport,transparency:a,background:c.background}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1,this.cancelled=!0,this._canvas&&b.delete(this._canvas),this.callback(l.getDefaultSetting("pdfjsNext")?new l.RenderingCancelledException("Rendering cancelled, page "+this.pageNumber,"canvas"):"cancelled")},operatorListChanged:function(){return this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),void(this.running||this._continue())):void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound))},_continue:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){this.useRequestAnimationFrame&&"undefined"!=typeof window?window.requestAnimationFrame(this._nextBound):Promise.resolve(void 0).then(this._nextBound)},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&b.delete(this._canvas),this.callback())))}},a}(),K=function(){var a=[];return{listen:function(b){k.deprecated("Global UnsupportedManager.listen is used:  use PDFDocumentLoadingTask.onUnsupportedFeature instead"),a.push(b)},notify:function(b){for(var c=0,d=a.length;d>c;c++)a[c](b)}}}();b.version=y="1.9.426",b.build=z="2558a58d",b.getDocument=f,b.LoopbackPort=E,b.PDFDataRangeTransport=B,b.PDFWorker=F,b.PDFDocumentProxy=C,b.PDFPageProxy=D,b.setPDFNetworkStreamClass=e,b._UnsupportedManager=K,b.version=y,b.build=z},function(a,b,c){"use strict";function d(){}Object.defineProperty(b,"__esModule",{value:!0}),b.AnnotationLayer=void 0;var e=c(1),f=c(0);d.prototype={create:function(a){var b=a.data.annotationType;switch(b){case f.AnnotationType.LINK:return new h(a);case f.AnnotationType.TEXT:return new i(a);case f.AnnotationType.WIDGET:var c=a.data.fieldType;switch(c){case"Tx":return new k(a);case"Btn":if(a.data.radioButton)return new m(a);if(a.data.checkBox)return new l(a);f.warn("Unimplemented button widget annotation: pushbutton");break;case"Ch":return new n(a)}return new j(a);case f.AnnotationType.POPUP:return new o(a);case f.AnnotationType.LINE:return new q(a);case f.AnnotationType.HIGHLIGHT:return new r(a);case f.AnnotationType.UNDERLINE:return new s(a);case f.AnnotationType.SQUIGGLY:return new t(a);case f.AnnotationType.STRIKEOUT:return new u(a);case f.AnnotationType.FILEATTACHMENT:return new v(a);default:return new g(a)}}};var g=function(){function a(a,b,c){this.isRenderable=b||!1,this.data=a.data,this.layer=a.layer,this.page=a.page,this.viewport=a.viewport,this.linkService=a.linkService,this.downloadManager=a.downloadManager,this.imageResourcesPath=a.imageResourcesPath,this.renderInteractiveForms=a.renderInteractiveForms,b&&(this.container=this._createContainer(c))}return a.prototype={_createContainer:function(a){var b=this.data,c=this.page,d=this.viewport,g=document.createElement("section"),h=b.rect[2]-b.rect[0],i=b.rect[3]-b.rect[1];g.setAttribute("data-annotation-id",b.id);var j=f.Util.normalizeRect([b.rect[0],c.view[3]-b.rect[1]+c.view[1],b.rect[2],c.view[3]-b.rect[3]+c.view[1]]);if(e.CustomStyle.setProp("transform",g,"matrix("+d.transform.join(",")+")"),e.CustomStyle.setProp("transformOrigin",g,-j[0]+"px "+-j[1]+"px"),!a&&b.borderStyle.width>0){g.style.borderWidth=b.borderStyle.width+"px",b.borderStyle.style!==f.AnnotationBorderStyleType.UNDERLINE&&(h-=2*b.borderStyle.width,i-=2*b.borderStyle.width);var k=b.borderStyle.horizontalCornerRadius,l=b.borderStyle.verticalCornerRadius;if(k>0||l>0){var m=k+"px / "+l+"px";e.CustomStyle.setProp("borderRadius",g,m)}switch(b.borderStyle.style){case f.AnnotationBorderStyleType.SOLID:g.style.borderStyle="solid";break;case f.AnnotationBorderStyleType.DASHED:g.style.borderStyle="dashed";break;case f.AnnotationBorderStyleType.BEVELED:f.warn("Unimplemented border style: beveled");break;case f.AnnotationBorderStyleType.INSET:f.warn("Unimplemented border style: inset");break;case f.AnnotationBorderStyleType.UNDERLINE:g.style.borderBottomStyle="solid"}b.color?g.style.borderColor=f.Util.makeCssRgb(0|b.color[0],0|b.color[1],0|b.color[2]):g.style.borderWidth=0}return g.style.left=j[0]+"px",g.style.top=j[1]+"px",g.style.width=h+"px",g.style.height=i+"px",g},_createPopup:function(a,b,c){b||(b=document.createElement("div"),b.style.height=a.style.height,b.style.width=a.style.width,a.appendChild(b));var d=new p({container:a,trigger:b,color:c.color,title:c.title,contents:c.contents,hideWrapper:!0}),e=d.render();e.style.left=a.style.width,a.appendChild(e)},render:function(){throw new Error("Abstract method AnnotationElement.render called")}},a}(),h=function(){function a(a){g.call(this,a,!0)}return f.Util.inherit(a,g,{render:function(){this.container.className="linkAnnotation";var a=document.createElement("a");return e.addLinkAttributes(a,{url:this.data.url,target:this.data.newWindow?e.LinkTarget.BLANK:void 0}),this.data.url||(this.data.action?this._bindNamedAction(a,this.data.action):this._bindLink(a,this.data.dest)),this.container.appendChild(a),this.container},_bindLink:function(a,b){var c=this;a.href=this.linkService.getDestinationHash(b),a.onclick=function(){return b&&c.linkService.navigateTo(b),!1},b&&(a.className="internalLink")},_bindNamedAction:function(a,b){var c=this;a.href=this.linkService.getAnchorUrl(""),a.onclick=function(){return c.linkService.executeNamedAction(b),!1},a.className="internalLink"}}),a}(),i=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b)}return f.Util.inherit(a,g,{render:function(){this.container.className="textAnnotation";var a=document.createElement("img");return a.style.height=this.container.style.height,a.style.width=this.container.style.width,a.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",a.alt="[{{type}} Annotation]",a.dataset.l10nId="text_annotation_type",a.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,a,this.data),this.container.appendChild(a),this.container}}),a}(),j=function(){function a(a,b){g.call(this,a,b)}return f.Util.inherit(a,g,{render:function(){return this.container}}),a}(),k=function(){function a(a){var b=a.renderInteractiveForms||!a.data.hasAppearance&&!!a.data.fieldValue;j.call(this,a,b)}var b=["left","center","right"];return f.Util.inherit(a,j,{render:function(){this.container.className="textWidgetAnnotation";var a=null;if(this.renderInteractiveForms){if(this.data.multiLine?(a=document.createElement("textarea"),a.textContent=this.data.fieldValue):(a=document.createElement("input"),a.type="text",a.setAttribute("value",this.data.fieldValue)),a.disabled=this.data.readOnly,null!==this.data.maxLen&&(a.maxLength=this.data.maxLen),this.data.comb){var c=this.data.rect[2]-this.data.rect[0],d=c/this.data.maxLen;a.classList.add("comb"),a.style.letterSpacing="calc("+d+"px - 1ch)"}}else{a=document.createElement("div"),a.textContent=this.data.fieldValue,a.style.verticalAlign="middle",a.style.display="table-cell";var e=null;this.data.fontRefName&&(e=this.page.commonObjs.getData(this.data.fontRefName)),this._setTextStyle(a,e)}return null!==this.data.textAlignment&&(a.style.textAlign=b[this.data.textAlignment]),this.container.appendChild(a),this.container},_setTextStyle:function(a,b){var c=a.style;if(c.fontSize=this.data.fontSize+"px",c.direction=this.data.fontDirection<0?"rtl":"ltr",b){c.fontWeight=b.black?b.bold?"900":"bold":b.bold?"bold":"normal",c.fontStyle=b.italic?"italic":"normal";var d=b.loadedName?'"'+b.loadedName+'", ':"",e=b.fallbackName||"Helvetica, sans-serif";c.fontFamily=d+e}}}),a}(),l=function(){function a(a){j.call(this,a,a.renderInteractiveForms)}return f.Util.inherit(a,j,{render:function(){this.container.className="buttonWidgetAnnotation checkBox";var a=document.createElement("input");return a.disabled=this.data.readOnly,a.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&a.setAttribute("checked",!0),this.container.appendChild(a),this.container}}),a}(),m=function(){function a(a){j.call(this,a,a.renderInteractiveForms)}return f.Util.inherit(a,j,{render:function(){this.container.className="buttonWidgetAnnotation radioButton";var a=document.createElement("input");return a.disabled=this.data.readOnly,a.type="radio",a.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&a.setAttribute("checked",!0),this.container.appendChild(a),this.container}}),a}(),n=function(){function a(a){j.call(this,a,a.renderInteractiveForms)}return f.Util.inherit(a,j,{render:function(){this.container.className="choiceWidgetAnnotation";var a=document.createElement("select");a.disabled=this.data.readOnly,this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0));for(var b=0,c=this.data.options.length;c>b;b++){var d=this.data.options[b],e=document.createElement("option");e.textContent=d.displayValue,e.value=d.exportValue,this.data.fieldValue.indexOf(d.displayValue)>=0&&e.setAttribute("selected",!0),a.appendChild(e)}return this.container.appendChild(a),this.container}}),a}(),o=function(){function a(a){var b=!(!a.data.title&&!a.data.contents);g.call(this,a,b)}var b=["Line"];return f.Util.inherit(a,g,{render:function(){if(this.container.className="popupAnnotation",b.indexOf(this.data.parentType)>=0)return this.container;var a='[data-annotation-id="'+this.data.parentId+'"]',c=this.layer.querySelector(a);if(!c)return this.container;var d=new p({container:this.container,trigger:c,color:this.data.color,title:this.data.title,contents:this.data.contents}),f=parseFloat(c.style.left),g=parseFloat(c.style.width);return e.CustomStyle.setProp("transformOrigin",this.container,-(f+g)+"px -"+c.style.top),this.container.style.left=f+g+"px",this.container.appendChild(d.render()),this.container}}),a}(),p=function(){function a(a){this.container=a.container,this.trigger=a.trigger,this.color=a.color,this.title=a.title,this.contents=a.contents,this.hideWrapper=a.hideWrapper||!1,this.pinned=!1}var b=.7;return a.prototype={render:function(){var a=document.createElement("div");a.className="popupWrapper",this.hideElement=this.hideWrapper?a:this.container,this.hideElement.setAttribute("hidden",!0);var c=document.createElement("div");c.className="popup";var d=this.color;if(d){var e=b*(255-d[0])+d[0],g=b*(255-d[1])+d[1],h=b*(255-d[2])+d[2];c.style.backgroundColor=f.Util.makeCssRgb(0|e,0|g,0|h)}var i=this._formatContents(this.contents),j=document.createElement("h1");return j.textContent=this.title,this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),c.addEventListener("click",this._hide.bind(this,!0)),c.appendChild(j),c.appendChild(i),a.appendChild(c),a},_formatContents:function(a){for(var b=document.createElement("p"),c=a.split(/(?:\r\n?|\n)/),d=0,e=c.length;e>d;++d){var f=c[d];b.appendChild(document.createTextNode(f)),e-1>d&&b.appendChild(document.createElement("br"))}return b},_toggle:function(){this.pinned?this._hide(!0):this._show(!0)},_show:function(a){a&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)},_hide:function(a){a&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}},a}(),q=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b,!0)}var b="http://www.w3.org/2000/svg";return f.Util.inherit(a,g,{render:function(){this.container.className="lineAnnotation";var a=this.data,c=a.rect[2]-a.rect[0],d=a.rect[3]-a.rect[1],e=document.createElementNS(b,"svg:svg");e.setAttributeNS(null,"version","1.1"),e.setAttributeNS(null,"width",c+"px"),e.setAttributeNS(null,"height",d+"px"),e.setAttributeNS(null,"preserveAspectRatio","none"),e.setAttributeNS(null,"viewBox","0 0 "+c+" "+d);var f=document.createElementNS(b,"svg:line");return f.setAttributeNS(null,"x1",a.rect[2]-a.lineCoordinates[0]),f.setAttributeNS(null,"y1",a.rect[3]-a.lineCoordinates[1]),f.setAttributeNS(null,"x2",a.rect[2]-a.lineCoordinates[2]),f.setAttributeNS(null,"y2",a.rect[3]-a.lineCoordinates[3]),f.setAttributeNS(null,"stroke-width",a.borderStyle.width),f.setAttributeNS(null,"stroke","transparent"),e.appendChild(f),this.container.append(e),this._createPopup(this.container,f,this.data),this.container}}),a}(),r=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b,!0)}return f.Util.inherit(a,g,{render:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),a}(),s=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b,!0)}return f.Util.inherit(a,g,{render:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),a}(),t=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b,!0)}return f.Util.inherit(a,g,{render:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),a}(),u=function(){function a(a){var b=!!(a.data.hasPopup||a.data.title||a.data.contents);g.call(this,a,b,!0)}return f.Util.inherit(a,g,{render:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),a}(),v=function(){function a(a){g.call(this,a,!0);var b=this.data.file;this.filename=e.getFilenameFromUrl(b.filename),this.content=b.content,this.linkService.onFileAttachmentAnnotation({id:f.stringToPDFString(b.filename),filename:b.filename,content:b.content})}return f.Util.inherit(a,g,{render:function(){this.container.className="fileAttachmentAnnotation";var a=document.createElement("div");return a.style.height=this.container.style.height,a.style.width=this.container.style.width,a.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,a,this.data),this.container.appendChild(a),this.container},_download:function(){return this.downloadManager?void this.downloadManager.downloadData(this.content,this.filename,""):void f.warn("Download cannot be started due to unavailable download manager")}}),a}(),w=function(){return{render:function(a){for(var b=new d,c=0,f=a.annotations.length;f>c;c++){var g=a.annotations[c];if(g){var h=b.create({data:g,layer:a.div,page:a.page,viewport:a.viewport,linkService:a.linkService,downloadManager:a.downloadManager,imageResourcesPath:a.imageResourcesPath||e.getDefaultSetting("imageResourcesPath"),renderInteractiveForms:a.renderInteractiveForms||!1});h.isRenderable&&a.div.appendChild(h.render())}}},update:function(a){for(var b=0,c=a.annotations.length;c>b;b++){var d=a.annotations[b],f=a.div.querySelector('[data-annotation-id="'+d.id+'"]');f&&e.CustomStyle.setProp("transform",f,"matrix("+a.viewport.transform.join(",")+")")}a.div.removeAttribute("hidden")}}}();b.AnnotationLayer=w},function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SVGGraphics=void 0;var d=c(0),e=function(){throw new Error("Not implemented: SVGGraphics")},f={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},g=function(){function a(a,b,c){for(var d=-1,e=b;c>e;e++){var f=255&(d^a[e]),g=j[f];d=d>>>8^g}return-1^d}function b(b,c,d,e){var f=e,g=c.length;d[f]=g>>24&255,d[f+1]=g>>16&255,d[f+2]=g>>8&255,d[f+3]=255&g,f+=4,d[f]=255&b.charCodeAt(0),d[f+1]=255&b.charCodeAt(1),d[f+2]=255&b.charCodeAt(2),d[f+3]=255&b.charCodeAt(3),f+=4,d.set(c,f),f+=c.length;var h=a(d,e+4,f);d[f]=h>>24&255,d[f+1]=h>>16&255,d[f+2]=h>>8&255,d[f+3]=255&h}function c(a,b,c){for(var d=1,e=0,f=b;c>f;++f)d=(d+(255&a[f]))%65521,e=(e+d)%65521;return e<<16|d}function e(a){if(!d.isNodeJS())return f(a);try{var b;b=parseInt(process.versions.node)>=8?a:new Buffer(a);var c=require("zlib").deflateSync(b,{level:9});return c instanceof Uint8Array?c:new Uint8Array(c)}catch(e){d.warn("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return f(a)}function f(a){var b=a.length,d=65535,e=Math.ceil(b/d),f=new Uint8Array(2+b+5*e+4),g=0;f[g++]=120,f[g++]=156;for(var h=0;b>d;)f[g++]=0,f[g++]=255,f[g++]=255,f[g++]=0,f[g++]=0,f.set(a.subarray(h,h+d),g),g+=d,h+=d,b-=d;f[g++]=1,f[g++]=255&b,f[g++]=b>>8&255,f[g++]=65535&~b&255,f[g++]=(65535&~b)>>8&255,f.set(a.subarray(h),g),g+=a.length-h;var i=c(a,0,a.length);return f[g++]=i>>24&255,f[g++]=i>>16&255,f[g++]=i>>8&255,f[g++]=255&i,f}function g(a,c,f){var g,j,k,l=a.width,m=a.height,n=a.data;switch(c){case d.ImageKind.GRAYSCALE_1BPP:j=0,g=1,k=l+7>>3;break;case d.ImageKind.RGB_24BPP:j=2,g=8,k=3*l;break;case d.ImageKind.RGBA_32BPP:j=6,g=8,k=4*l;break;default:throw new Error("invalid format")}var o,p,q=new Uint8Array((1+k)*m),r=0,s=0;for(o=0;m>o;++o)q[r++]=0,q.set(n.subarray(s,s+k),r),s+=k,r+=k;if(c===d.ImageKind.GRAYSCALE_1BPP)for(r=0,o=0;m>o;o++)for(r++,p=0;k>p;p++)q[r++]^=255;var t=new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,m>>24&255,m>>16&255,m>>8&255,255&m,g,j,0,0,0]),u=e(q),v=h.length+3*i+t.length+u.length,w=new Uint8Array(v),x=0;return w.set(h,x),x+=h.length,b("IHDR",t,w,x),x+=i+t.length,b("IDATA",u,w,x),x+=i+u.length,b("IEND",new Uint8Array(0),w,x),d.createObjectURL(w,"image/png",f)}for(var h=new Uint8Array([137,80,78,71,13,10,26,10]),i=12,j=new Int32Array(256),k=0;256>k;k++){for(var l=k,m=0;8>m;m++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;j[k]=l}return function(a,b){var c=void 0===a.kind?d.ImageKind.GRAYSCALE_1BPP:a.kind;return g(a,c,b)}}(),h=function(){function a(){this.fontSizeScale=1,this.fontWeight=f.fontWeight,this.fontSize=0,this.textMatrix=d.IDENTITY_MATRIX,this.fontMatrix=d.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=f.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return a.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a,this.y=b}},a}();b.SVGGraphics=e=function(){function a(a){for(var b=[],c=[],d=a.length,e=0;d>e;e++)"save"!==a[e].fn?"restore"===a[e].fn?b=c.pop():b.push(a[e]):(b.push({fnId:92,fn:"group",items:[]}),c.push(b),b=b[b.length-1].items);return b}function b(a){if(a===(0|a))return a.toString();var b=a.toFixed(10),c=b.length-1;if("0"!==b[c])return b;do c--;while("0"===b[c]);return b.substr(0,"."===b[c]?c:c+1)}function c(a){if(0===a[4]&&0===a[5]){if(0===a[1]&&0===a[2])return 1===a[0]&&1===a[3]?"":"scale("+b(a[0])+" "+b(a[3])+")";if(a[0]===a[3]&&a[1]===-a[2]){var c=180*Math.acos(a[0])/Math.PI;return"rotate("+b(c)+")"}}else if(1===a[0]&&0===a[1]&&0===a[2]&&1===a[3])return"translate("+b(a[4])+" "+b(a[5])+")";return"matrix("+b(a[0])+" "+b(a[1])+" "+b(a[2])+" "+b(a[3])+" "+b(a[4])+" "+b(a[5])+")"}function e(a,b,c){this.current=new h,this.transformMatrix=d.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=a,this.objs=b,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!c}var i="http://www.w3.org/2000/svg",j="http://www.w3.org/XML/1998/namespace",k="http://www.w3.org/1999/xlink",l=["butt","round","square"],m=["miter","round","bevel"],n=0,o=0;return e.prototype={save:function(){this.transformStack.push(this.transformMatrix);var a=this.current;this.extraStack.push(a),this.current=a.clone()},restore:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null},group:function(a){this.save(),this.executeOpTree(a),this.restore()},loadDependencies:function(a){for(var b=this,c=a.fnArray,e=c.length,f=a.argsArray,g=0;e>g;g++)if(d.OPS.dependency===c[g])for(var h=f[g],i=0,j=h.length;j>i;i++){var k,l=h[i],m="g_"===l.substring(0,2);k=new Promise(m?function(a){b.commonObjs.get(l,a)}:function(a){b.objs.get(l,a)}),this.current.dependencies.push(k)}return Promise.all(this.current.dependencies)},transform:function(a,b,c,e,f,g){var h=[a,b,c,e,f,g];this.transformMatrix=d.Util.transform(this.transformMatrix,h),this.tgrp=null},getSVG:function(a,b){var c=this;this.viewport=b;var e=this._initialize(b);return this.loadDependencies(a).then(function(){c.transformMatrix=d.IDENTITY_MATRIX;var b=c.convertOpList(a);return c.executeOpTree(b),e})},convertOpList:function(b){var c=b.argsArray,e=b.fnArray,f=e.length,g=[],h=[];for(var i in d.OPS)g[d.OPS[i]]=i;for(var j=0;f>j;j++){var k=e[j];h.push({fnId:k,fn:g[k],args:c[j]})}return a(h)},executeOpTree:function(a){for(var b=a.length,c=0;b>c;c++){var e=a[c].fn,f=a[c].fnId,g=a[c].args;switch(0|f){case d.OPS.beginText:this.beginText();break;case d.OPS.setLeading:this.setLeading(g);break;case d.OPS.setLeadingMoveText:this.setLeadingMoveText(g[0],g[1]);break;case d.OPS.setFont:this.setFont(g);break;case d.OPS.showText:this.showText(g[0]);break;case d.OPS.showSpacedText:this.showText(g[0]);break;case d.OPS.endText:this.endText();break;case d.OPS.moveText:this.moveText(g[0],g[1]);break;case d.OPS.setCharSpacing:this.setCharSpacing(g[0]);break;case d.OPS.setWordSpacing:this.setWordSpacing(g[0]);break;case d.OPS.setHScale:this.setHScale(g[0]);break;case d.OPS.setTextMatrix:this.setTextMatrix(g[0],g[1],g[2],g[3],g[4],g[5]);break;case d.OPS.setLineWidth:this.setLineWidth(g[0]);break;case d.OPS.setLineJoin:this.setLineJoin(g[0]);break;case d.OPS.setLineCap:this.setLineCap(g[0]);break;case d.OPS.setMiterLimit:this.setMiterLimit(g[0]);break;case d.OPS.setFillRGBColor:this.setFillRGBColor(g[0],g[1],g[2]);break;case d.OPS.setStrokeRGBColor:this.setStrokeRGBColor(g[0],g[1],g[2]);break;case d.OPS.setDash:this.setDash(g[0],g[1]);break;case d.OPS.setGState:this.setGState(g[0]);break;case d.OPS.fill:this.fill();break;case d.OPS.eoFill:this.eoFill();break;case d.OPS.stroke:this.stroke();break;case d.OPS.fillStroke:this.fillStroke();break;case d.OPS.eoFillStroke:this.eoFillStroke();break;case d.OPS.clip:this.clip("nonzero");break;case d.OPS.eoClip:this.clip("evenodd");break;case d.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case d.OPS.paintJpegXObject:this.paintJpegXObject(g[0],g[1],g[2]);break;case d.OPS.paintImageXObject:this.paintImageXObject(g[0]);break;case d.OPS.paintInlineImageXObject:this.paintInlineImageXObject(g[0]);break;case d.OPS.paintImageMaskXObject:this.paintImageMaskXObject(g[0]);break;case d.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(g[0],g[1]);break;case d.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case d.OPS.closePath:this.closePath();break;case d.OPS.closeStroke:this.closeStroke();break;case d.OPS.closeFillStroke:this.closeFillStroke();break;case d.OPS.nextLine:this.nextLine();break;case d.OPS.transform:this.transform(g[0],g[1],g[2],g[3],g[4],g[5]);break;case d.OPS.constructPath:this.constructPath(g[0],g[1]);break;case d.OPS.endPath:this.endPath();break;case 92:this.group(a[c].items);break;default:d.warn("Unimplemented operator "+e)}}},setWordSpacing:function(a){this.current.wordSpacing=a},setCharSpacing:function(a){this.current.charSpacing=a},nextLine:function(){this.moveText(0,this.current.leading)},setTextMatrix:function(a,c,d,e,f,g){var h=this.current;this.current.textMatrix=this.current.lineMatrix=[a,c,d,e,f,g],this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,h.xcoords=[],h.tspan=document.createElementNS(i,"svg:tspan"),h.tspan.setAttributeNS(null,"font-family",h.fontFamily),h.tspan.setAttributeNS(null,"font-size",b(h.fontSize)+"px"),h.tspan.setAttributeNS(null,"y",b(-h.y)),h.txtElement=document.createElementNS(i,"svg:text"),h.txtElement.appendChild(h.tspan)},beginText:function(){this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.current.textMatrix=d.IDENTITY_MATRIX,this.current.lineMatrix=d.IDENTITY_MATRIX,this.current.tspan=document.createElementNS(i,"svg:tspan"),this.current.txtElement=document.createElementNS(i,"svg:text"),this.current.txtgrp=document.createElementNS(i,"svg:g"),this.current.xcoords=[]},moveText:function(a,c){var d=this.current;this.current.x=this.current.lineX+=a,this.current.y=this.current.lineY+=c,d.xcoords=[],d.tspan=document.createElementNS(i,"svg:tspan"),d.tspan.setAttributeNS(null,"font-family",d.fontFamily),d.tspan.setAttributeNS(null,"font-size",b(d.fontSize)+"px"),d.tspan.setAttributeNS(null,"y",b(-d.y))},showText:function(a){var e=this.current,g=e.font,h=e.fontSize;if(0!==h){var i,k=e.charSpacing,l=e.wordSpacing,m=e.fontDirection,n=e.textHScale*m,o=a.length,p=g.vertical,q=h*e.fontMatrix[0],r=0;for(i=0;o>i;++i){var s=a[i];if(null!==s)if(d.isNum(s))r+=-s*h*.001;else{e.xcoords.push(e.x+r*n);var t=s.width,u=s.fontChar,v=(s.isSpace?l:0)+k,w=t*q+v*m;r+=w,e.tspan.textContent+=u}else r+=m*l}p?e.y-=r*n:e.x+=r*n,e.tspan.setAttributeNS(null,"x",e.xcoords.map(b).join(" ")),e.tspan.setAttributeNS(null,"y",b(-e.y)),e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size",b(e.fontSize)+"px"),e.fontStyle!==f.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==f.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight),e.fillColor!==f.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.txtElement.setAttributeNS(null,"transform",c(e.textMatrix)+" scale(1, -1)"),e.txtElement.setAttributeNS(j,"xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}},setLeadingMoveText:function(a,b){this.setLeading(-b),this.moveText(a,b)},addFontStyle:function(a){this.cssStyle||(this.cssStyle=document.createElementNS(i,"svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var b=d.createObjectURL(a.data,a.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'+a.loadedName+'"; src: url('+b+"); }\n"},setFont:function(a){var c=this.current,e=this.commonObjs.get(a[0]),f=a[1];this.current.font=e,this.embedFonts&&e.data&&!this.embeddedFonts[e.loadedName]&&(this.addFontStyle(e),this.embeddedFonts[e.loadedName]=e),c.fontMatrix=e.fontMatrix?e.fontMatrix:d.FONT_IDENTITY_MATRIX;var g=e.black?e.bold?"bolder":"bold":e.bold?"bold":"normal",h=e.italic?"italic":"normal";0>f?(f=-f,c.fontDirection=-1):c.fontDirection=1,c.fontSize=f,c.fontFamily=e.loadedName,c.fontWeight=g,c.fontStyle=h,c.tspan=document.createElementNS(i,"svg:tspan"),c.tspan.setAttributeNS(null,"y",b(-c.y)),c.xcoords=[]},endText:function(){},setLineWidth:function(a){this.current.lineWidth=a},setLineCap:function(a){this.current.lineCap=l[a]},setLineJoin:function(a){this.current.lineJoin=m[a]},setMiterLimit:function(a){this.current.miterLimit=a},setStrokeAlpha:function(a){this.current.strokeAlpha=a},setStrokeRGBColor:function(a,b,c){var e=d.Util.makeCssRgb(a,b,c);this.current.strokeColor=e},setFillAlpha:function(a){this.current.fillAlpha=a},setFillRGBColor:function(a,b,c){var e=d.Util.makeCssRgb(a,b,c);this.current.fillColor=e,this.current.tspan=document.createElementNS(i,"svg:tspan"),this.current.xcoords=[]},setDash:function(a,b){this.current.dashArray=a,this.current.dashPhase=b},constructPath:function(a,c){var e=this.current,f=e.x,g=e.y;e.path=document.createElementNS(i,"svg:path");for(var h=[],j=a.length,k=0,l=0;j>k;k++)switch(0|a[k]){case d.OPS.rectangle:f=c[l++],g=c[l++];var m=c[l++],n=c[l++],o=f+m,p=g+n;h.push("M",b(f),b(g),"L",b(o),b(g),"L",b(o),b(p),"L",b(f),b(p),"Z");break;case d.OPS.moveTo:f=c[l++],g=c[l++],h.push("M",b(f),b(g));break;case d.OPS.lineTo:f=c[l++],g=c[l++],h.push("L",b(f),b(g));break;case d.OPS.curveTo:f=c[l+4],g=c[l+5],h.push("C",b(c[l]),b(c[l+1]),b(c[l+2]),b(c[l+3]),b(f),b(g)),l+=6;break;case d.OPS.curveTo2:f=c[l+2],g=c[l+3],h.push("C",b(f),b(g),b(c[l]),b(c[l+1]),b(c[l+2]),b(c[l+3])),l+=4;break;case d.OPS.curveTo3:f=c[l+2],g=c[l+3],h.push("C",b(c[l]),b(c[l+1]),b(f),b(g),b(f),b(g)),l+=4;break;case d.OPS.closePath:h.push("Z")}e.path.setAttributeNS(null,"d",h.join(" ")),e.path.setAttributeNS(null,"fill","none"),this._ensureTransformGroup().appendChild(e.path),e.element=e.path,e.setCurrentPoint(f,g)},endPath:function(){if(this.pendingClip){var a=this.current,b="clippath"+n;n++;var d=document.createElementNS(i,"svg:clipPath");d.setAttributeNS(null,"id",b),d.setAttributeNS(null,"transform",c(this.transformMatrix));var e=a.element.cloneNode();"evenodd"===this.pendingClip?e.setAttributeNS(null,"clip-rule","evenodd"):e.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,d.appendChild(e),this.defs.appendChild(d),a.activeClipUrl&&(a.clipGroup=null,this.extraStack.forEach(function(a){a.clipGroup=null})),a.activeClipUrl="url(#"+b+")",this.tgrp=null}},clip:function(a){this.pendingClip=a},closePath:function(){var a=this.current,b=a.path.getAttributeNS(null,"d");b+="Z",a.path.setAttributeNS(null,"d",b)},setLeading:function(a){this.current.leading=-a},setTextRise:function(a){this.current.textRise=a},setHScale:function(a){this.current.textHScale=a/100},setGState:function(a){for(var b=0,c=a.length;c>b;b++){var e=a[b],f=e[0],g=e[1];switch(f){case"LW":this.setLineWidth(g);break;case"LC":this.setLineCap(g);break;case"LJ":this.setLineJoin(g);break;case"ML":this.setMiterLimit(g);break;case"D":this.setDash(g[0],g[1]);break;case"Font":this.setFont(g);break;case"CA":this.setStrokeAlpha(g);break;case"ca":this.setFillAlpha(g);break;default:d.warn("Unimplemented graphic state "+f)}}},fill:function(){var a=this.current;a.element.setAttributeNS(null,"fill",a.fillColor),a.element.setAttributeNS(null,"fill-opacity",a.fillAlpha)},stroke:function(){var a=this.current;a.element.setAttributeNS(null,"stroke",a.strokeColor),a.element.setAttributeNS(null,"stroke-opacity",a.strokeAlpha),a.element.setAttributeNS(null,"stroke-miterlimit",b(a.miterLimit)),a.element.setAttributeNS(null,"stroke-linecap",a.lineCap),a.element.setAttributeNS(null,"stroke-linejoin",a.lineJoin),a.element.setAttributeNS(null,"stroke-width",b(a.lineWidth)+"px"),a.element.setAttributeNS(null,"stroke-dasharray",a.dashArray.map(b).join(" ")),a.element.setAttributeNS(null,"stroke-dashoffset",b(a.dashPhase)+"px"),a.element.setAttributeNS(null,"fill","none")},eoFill:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()},fillStroke:function(){this.stroke(),this.fill()},eoFillStroke:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()},closeStroke:function(){this.closePath(),this.stroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},paintSolidColorImageMask:function(){var a=this.current,b=document.createElementNS(i,"svg:rect");b.setAttributeNS(null,"x","0"),b.setAttributeNS(null,"y","0"),b.setAttributeNS(null,"width","1px"),b.setAttributeNS(null,"height","1px"),b.setAttributeNS(null,"fill",a.fillColor),this._ensureTransformGroup().appendChild(b)
},paintJpegXObject:function(a,c,d){var e=this.objs.get(a),f=document.createElementNS(i,"svg:image");f.setAttributeNS(k,"xlink:href",e.src),f.setAttributeNS(null,"width",b(c)),f.setAttributeNS(null,"height",b(d)),f.setAttributeNS(null,"x","0"),f.setAttributeNS(null,"y",b(-d)),f.setAttributeNS(null,"transform","scale("+b(1/c)+" "+b(-1/d)+")"),this._ensureTransformGroup().appendChild(f)},paintImageXObject:function(a){var b=this.objs.get(a);return b?void this.paintInlineImageXObject(b):void d.warn("Dependent image isn't ready yet")},paintInlineImageXObject:function(a,c){var d=a.width,e=a.height,f=g(a,this.forceDataSchema),h=document.createElementNS(i,"svg:rect");h.setAttributeNS(null,"x","0"),h.setAttributeNS(null,"y","0"),h.setAttributeNS(null,"width",b(d)),h.setAttributeNS(null,"height",b(e)),this.current.element=h,this.clip("nonzero");var j=document.createElementNS(i,"svg:image");j.setAttributeNS(k,"xlink:href",f),j.setAttributeNS(null,"x","0"),j.setAttributeNS(null,"y",b(-e)),j.setAttributeNS(null,"width",b(d)+"px"),j.setAttributeNS(null,"height",b(e)+"px"),j.setAttributeNS(null,"transform","scale("+b(1/d)+" "+b(-1/e)+")"),c?c.appendChild(j):this._ensureTransformGroup().appendChild(j)},paintImageMaskXObject:function(a){var c=this.current,d=a.width,e=a.height,f=c.fillColor;c.maskId="mask"+o++;var g=document.createElementNS(i,"svg:mask");g.setAttributeNS(null,"id",c.maskId);var h=document.createElementNS(i,"svg:rect");h.setAttributeNS(null,"x","0"),h.setAttributeNS(null,"y","0"),h.setAttributeNS(null,"width",b(d)),h.setAttributeNS(null,"height",b(e)),h.setAttributeNS(null,"fill",f),h.setAttributeNS(null,"mask","url(#"+c.maskId+")"),this.defs.appendChild(g),this._ensureTransformGroup().appendChild(h),this.paintInlineImageXObject(a,g)},paintFormXObjectBegin:function(a,c){if(d.isArray(a)&&6===a.length&&this.transform(a[0],a[1],a[2],a[3],a[4],a[5]),d.isArray(c)&&4===c.length){var e=c[2]-c[0],f=c[3]-c[1],g=document.createElementNS(i,"svg:rect");g.setAttributeNS(null,"x",c[0]),g.setAttributeNS(null,"y",c[1]),g.setAttributeNS(null,"width",b(e)),g.setAttributeNS(null,"height",b(f)),this.current.element=g,this.clip("nonzero"),this.endPath()}},paintFormXObjectEnd:function(){},_initialize:function(a){var b=document.createElementNS(i,"svg:svg");b.setAttributeNS(null,"version","1.1"),b.setAttributeNS(null,"width",a.width+"px"),b.setAttributeNS(null,"height",a.height+"px"),b.setAttributeNS(null,"preserveAspectRatio","none"),b.setAttributeNS(null,"viewBox","0 0 "+a.width+" "+a.height);var d=document.createElementNS(i,"svg:defs");b.appendChild(d),this.defs=d;var e=document.createElementNS(i,"svg:g");return e.setAttributeNS(null,"transform",c(a.transform)),b.appendChild(e),this.svg=e,b},_ensureClipGroup:function(){if(!this.current.clipGroup){var a=document.createElementNS(i,"svg:g");a.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(a),this.current.clipGroup=a}return this.current.clipGroup},_ensureTransformGroup:function(){return this.tgrp||(this.tgrp=document.createElementNS(i,"svg:g"),this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}},e}(),b.SVGGraphics=e},function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.renderTextLayer=void 0;var d=c(0),e=c(1),f=function(){function a(a){return!l.test(a)}function b(b,c,f){var g=document.createElement("div"),h={style:null,angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(b._textDivs.push(g),a(c.str))return h.isWhitespace=!0,void b._textDivProperties.set(g,h);var i=d.Util.transform(b._viewport.transform,c.transform),j=Math.atan2(i[1],i[0]),k=f[c.fontName];k.vertical&&(j+=Math.PI/2);var l=Math.sqrt(i[2]*i[2]+i[3]*i[3]),n=l;k.ascent?n=k.ascent*n:k.descent&&(n=(1+k.descent)*n);var o,p;if(0===j?(o=i[4],p=i[5]-n):(o=i[4]+n*Math.sin(j),p=i[5]-n*Math.cos(j)),m[1]=o,m[3]=p,m[5]=l,m[7]=k.fontFamily,h.style=m.join(""),g.setAttribute("style",h.style),g.textContent=c.str,e.getDefaultSetting("pdfBug")&&(g.dataset.fontName=c.fontName),0!==j&&(h.angle=j*(180/Math.PI)),c.str.length>1&&(h.canvasWidth=k.vertical?c.height*b._viewport.scale:c.width*b._viewport.scale),b._textDivProperties.set(g,h),b._textContentStream&&b._layoutText(g),b._enhanceTextSelection){var q=1,r=0;0!==j&&(q=Math.cos(j),r=Math.sin(j));var s,t,u=(k.vertical?c.height:c.width)*b._viewport.scale,v=l;0!==j?(s=[q,r,-r,q,o,p],t=d.Util.getAxialAlignedBoundingBox([0,0,u,v],s)):t=[o,p,o+u,p+v],b._bounds.push({left:t[0],top:t[1],right:t[2],bottom:t[3],div:g,size:[u,v],m:s})}}function c(a){if(!a._canceled){var b=a._textDivs,c=a._capability,d=b.length;if(d>k)return a._renderingDone=!0,void c.resolve();if(!a._textContentStream)for(var e=0;d>e;e++)a._layoutText(b[e]);a._renderingDone=!0,c.resolve()}}function f(a){for(var b=a._bounds,c=a._viewport,e=g(c.width,c.height,b),f=0;f<e.length;f++){var h=b[f].div,i=a._textDivProperties.get(h);if(0!==i.angle){var j=e[f],k=b[f],l=k.m,m=l[0],n=l[1],o=[[0,0],[0,k.size[1]],[k.size[0],0],k.size],p=new Float64Array(64);o.forEach(function(a,b){var c=d.Util.applyTransform(a,l);p[b+0]=m&&(j.left-c[0])/m,p[b+4]=n&&(j.top-c[1])/n,p[b+8]=m&&(j.right-c[0])/m,p[b+12]=n&&(j.bottom-c[1])/n,p[b+16]=n&&(j.left-c[0])/-n,p[b+20]=m&&(j.top-c[1])/m,p[b+24]=n&&(j.right-c[0])/-n,p[b+28]=m&&(j.bottom-c[1])/m,p[b+32]=m&&(j.left-c[0])/-m,p[b+36]=n&&(j.top-c[1])/-n,p[b+40]=m&&(j.right-c[0])/-m,p[b+44]=n&&(j.bottom-c[1])/-n,p[b+48]=n&&(j.left-c[0])/n,p[b+52]=m&&(j.top-c[1])/-m,p[b+56]=n&&(j.right-c[0])/n,p[b+60]=m&&(j.bottom-c[1])/-m});var q=function(a,b,c){for(var d=0,e=0;c>e;e++){var f=a[b++];f>0&&(d=d?Math.min(f,d):f)}return d},r=1+Math.min(Math.abs(m),Math.abs(n));i.paddingLeft=q(p,32,16)/r,i.paddingTop=q(p,48,16)/r,i.paddingRight=q(p,0,16)/r,i.paddingBottom=q(p,16,16)/r,a._textDivProperties.set(h,i)}else i.paddingLeft=b[f].left-e[f].left,i.paddingTop=b[f].top-e[f].top,i.paddingRight=e[f].right-b[f].right,i.paddingBottom=e[f].bottom-b[f].bottom,a._textDivProperties.set(h,i)}}function g(a,b,c){var d=c.map(function(a,b){return{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom,index:b,x1New:void 0,x2New:void 0}});h(a,d);var e=new Array(c.length);return d.forEach(function(a){var b=a.index;e[b]={left:a.x1New,top:0,right:a.x2New,bottom:0}}),c.map(function(b,c){var f=e[c],g=d[c];g.x1=b.top,g.y1=a-f.right,g.x2=b.bottom,g.y2=a-f.left,g.index=c,g.x1New=void 0,g.x2New=void 0}),h(b,d),d.forEach(function(a){var b=a.index;e[b].top=a.x1New,e[b].bottom=a.x2New}),e}function h(a,b){b.sort(function(a,b){return a.x1-b.x1||a.index-b.index});var c={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},d=[{start:-1/0,end:1/0,boundary:c}];b.forEach(function(a){for(var b=0;b<d.length&&d[b].end<=a.y1;)b++;for(var c=d.length-1;c>=0&&d[c].start>=a.y2;)c--;var e,f,g,h,i=-1/0;for(g=b;c>=g;g++){e=d[g],f=e.boundary;var j;j=f.x2>a.x1?f.index>a.index?f.x1New:a.x1:void 0===f.x2New?(f.x2+a.x1)/2:f.x2New,j>i&&(i=j)}for(a.x1New=i,g=b;c>=g;g++)e=d[g],f=e.boundary,void 0===f.x2New?f.x2>a.x1?f.index>a.index&&(f.x2New=f.x2):f.x2New=i:f.x2New>i&&(f.x2New=Math.max(i,f.x2));var k=[],l=null;for(g=b;c>=g;g++){e=d[g],f=e.boundary;var m=f.x2>a.x2?f:a;l===m?k[k.length-1].end=e.end:(k.push({start:e.start,end:e.end,boundary:m}),l=m)}for(d[b].start<a.y1&&(k[0].start=a.y1,k.unshift({start:d[b].start,end:a.y1,boundary:d[b].boundary})),a.y2<d[c].end&&(k[k.length-1].end=a.y2,k.push({start:a.y2,end:d[c].end,boundary:d[c].boundary})),g=b;c>=g;g++)if(e=d[g],f=e.boundary,void 0===f.x2New){var n=!1;for(h=b-1;!n&&h>=0&&d[h].start>=f.y1;h--)n=d[h].boundary===f;for(h=c+1;!n&&h<d.length&&d[h].end<=f.y2;h++)n=d[h].boundary===f;for(h=0;!n&&h<k.length;h++)n=k[h].boundary===f;n||(f.x2New=i)}Array.prototype.splice.apply(d,[b,c-b+1].concat(k))}),d.forEach(function(b){var c=b.boundary;void 0===c.x2New&&(c.x2New=Math.max(a,c.x2))})}function i(a){var b=a.textContent,c=a.textContentStream,e=a.container,f=a.viewport,g=a.textDivs,h=a.textContentItemsStr,i=a.enhanceTextSelection;this._textContent=b,this._textContentStream=c,this._container=e,this._viewport=f,this._textDivs=g||[],this._textContentItemsStr=h||[],this._enhanceTextSelection=!!i,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=d.createPromiseCapability(),this._renderTimer=null,this._bounds=[]}function j(a){var b=new i({textContent:a.textContent,textContentStream:a.textContentStream,container:a.container,viewport:a.viewport,textDivs:a.textDivs,textContentItemsStr:a.textContentItemsStr,enhanceTextSelection:a.enhanceTextSelection});return b._render(a.timeout),b}var k=1e5,l=/\S/,m=["left: ",0,"px; top: ",0,"px; font-size: ",0,"px; font-family: ","",";"];return i.prototype={get promise(){return this._capability.promise},cancel:function(){this._reader&&(this._reader.cancel(new d.AbortException("text layer task cancelled")),this._reader=null),this._canceled=!0,null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject("canceled")},_processItems:function(a,c){for(var d=0,e=a.length;e>d;d++)this._textContentItemsStr.push(a[d].str),b(this,a[d],c)},_layoutText:function(a){var b=this._container,c=this._textDivProperties.get(a);if(!c.isWhitespace){var d=a.style.fontSize,f=a.style.fontFamily;(d!==this._layoutTextLastFontSize||f!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=d+" "+f,this._lastFontSize=d,this._lastFontFamily=f);var g=this._layoutTextCtx.measureText(a.textContent).width,h="";0!==c.canvasWidth&&g>0&&(c.scale=c.canvasWidth/g,h="scaleX("+c.scale+")"),0!==c.angle&&(h="rotate("+c.angle+"deg) "+h),""!==h&&(c.originalTransform=h,e.CustomStyle.setProp("transform",a,h)),this._textDivProperties.set(a,c),b.appendChild(a)}},_render:function(a){var b=this,e=d.createPromiseCapability(),f=Object.create(null),g=document.createElement("canvas");if(g.mozOpaque=!0,this._layoutTextCtx=g.getContext("2d",{alpha:!1}),this._textContent){var h=this._textContent.items,i=this._textContent.styles;this._processItems(h,i),e.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var j=function k(){b._reader.read().then(function(a){var c=a.value,g=a.done;return g?void e.resolve():(d.Util.extendObj(f,c.styles),b._processItems(c.items,f),void k())},e.reject)};this._reader=this._textContentStream.getReader(),j()}e.promise.then(function(){f=null,a?b._renderTimer=setTimeout(function(){c(b),b._renderTimer=null},a):c(b)},this._capability.reject)},expandTextDivs:function(a){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(f(this),this._bounds=null);for(var b=0,c=this._textDivs.length;c>b;b++){var d=this._textDivs[b],g=this._textDivProperties.get(d);if(!g.isWhitespace)if(a){var h="",i="";1!==g.scale&&(h="scaleX("+g.scale+")"),0!==g.angle&&(h="rotate("+g.angle+"deg) "+h),0!==g.paddingLeft&&(i+=" padding-left: "+g.paddingLeft/g.scale+"px;",h+=" translateX("+-g.paddingLeft/g.scale+"px)"),0!==g.paddingTop&&(i+=" padding-top: "+g.paddingTop+"px;",h+=" translateY("+-g.paddingTop+"px)"),0!==g.paddingRight&&(i+=" padding-right: "+g.paddingRight/g.scale+"px;"),0!==g.paddingBottom&&(i+=" padding-bottom: "+g.paddingBottom+"px;"),""!==i&&d.setAttribute("style",g.style+i),""!==h&&e.CustomStyle.setProp("transform",d,h)}else d.style.padding=0,e.CustomStyle.setProp("transform",d,g.originalTransform||"")}}}},j}();b.renderTextLayer=f},function(a,b){"use strict";function c(a){return a.replace(/>\\376\\377([^<]+)/g,function(a,b){for(var c=b.replace(/\\([0-3])([0-7])([0-7])/g,function(a,b,c,d){return String.fromCharCode(64*b+8*c+1*d)}),d="",e=0;e<c.length;e+=2){var f=256*c.charCodeAt(e)+c.charCodeAt(e+1);d+=f>=32&&127>f&&60!==f&&62!==f&&38!==f?String.fromCharCode(f):"&#x"+(65536+f).toString(16).substring(1)+";"}return">"+d})}function d(a){if("string"==typeof a){a=c(a);var b=new DOMParser;a=b.parseFromString(a,"application/xml")}else if(!(a instanceof Document))throw new Error("Metadata: Invalid metadata object");this.metaDocument=a,this.metadata=Object.create(null),this.parse()}Object.defineProperty(b,"__esModule",{value:!0}),d.prototype={parse:function(){var a=this.metaDocument,b=a.documentElement;if("rdf:rdf"!==b.nodeName.toLowerCase())for(b=b.firstChild;b&&"rdf:rdf"!==b.nodeName.toLowerCase();)b=b.nextSibling;var c=b?b.nodeName.toLowerCase():null;if(b&&"rdf:rdf"===c&&b.hasChildNodes()){var d,e,f,g,h,i,j,k=b.childNodes;for(g=0,i=k.length;i>g;g++)if(d=k[g],"rdf:description"===d.nodeName.toLowerCase())for(h=0,j=d.childNodes.length;j>h;h++)"#text"!==d.childNodes[h].nodeName.toLowerCase()&&(e=d.childNodes[h],f=e.nodeName.toLowerCase(),this.metadata[f]=e.textContent.trim())}},get:function(a){return this.metadata[a]||null},has:function(a){return"undefined"!=typeof this.metadata[a]}},b.Metadata=d},function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.WebGLUtils=void 0;var d=c(1),e=c(0),f=function(){function a(a,b,c){var d=a.createShader(c);a.shaderSource(d,b),a.compileShader(d);var e=a.getShaderParameter(d,a.COMPILE_STATUS);if(!e){var f=a.getShaderInfoLog(d);throw new Error("Error during shader compilation: "+f)}return d}function b(b,c){return a(b,c,b.VERTEX_SHADER)}function c(b,c){return a(b,c,b.FRAGMENT_SHADER)}function f(a,b){for(var c=a.createProgram(),d=0,e=b.length;e>d;++d)a.attachShader(c,b[d]);a.linkProgram(c);var f=a.getProgramParameter(c,a.LINK_STATUS);if(!f){var g=a.getProgramInfoLog(c);throw new Error("Error during program linking: "+g)}return c}function g(a,b,c){a.activeTexture(c);var d=a.createTexture();return a.bindTexture(a.TEXTURE_2D,d),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b),d}function h(){n||(o=document.createElement("canvas"),n=o.getContext("webgl",{premultipliedalpha:!1}))}function i(){var a,d;h(),a=o,o=null,d=n,n=null;var e=b(d,p),g=c(d,q),i=f(d,[e,g]);d.useProgram(i);var j={};j.gl=d,j.canvas=a,j.resolutionLocation=d.getUniformLocation(i,"u_resolution"),j.positionLocation=d.getAttribLocation(i,"a_position"),j.backdropLocation=d.getUniformLocation(i,"u_backdrop"),j.subtypeLocation=d.getUniformLocation(i,"u_subtype");var k=d.getAttribLocation(i,"a_texCoord"),l=d.getUniformLocation(i,"u_image"),m=d.getUniformLocation(i,"u_mask"),s=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,s),d.bufferData(d.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),d.STATIC_DRAW),d.enableVertexAttribArray(k),d.vertexAttribPointer(k,2,d.FLOAT,!1,0,0),d.uniform1i(l,0),d.uniform1i(m,1),r=j}function j(a,b,c){var d=a.width,e=a.height;r||i();var f=r,h=f.canvas,j=f.gl;h.width=d,h.height=e,j.viewport(0,0,j.drawingBufferWidth,j.drawingBufferHeight),j.uniform2f(f.resolutionLocation,d,e),c.backdrop?j.uniform4f(f.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):j.uniform4f(f.resolutionLocation,0,0,0,0),j.uniform1i(f.subtypeLocation,"Luminosity"===c.subtype?1:0);var k=g(j,a,j.TEXTURE0),l=g(j,b,j.TEXTURE1),m=j.createBuffer();return j.bindBuffer(j.ARRAY_BUFFER,m),j.bufferData(j.ARRAY_BUFFER,new Float32Array([0,0,d,0,0,e,0,e,d,0,d,e]),j.STATIC_DRAW),j.enableVertexAttribArray(f.positionLocation),j.vertexAttribPointer(f.positionLocation,2,j.FLOAT,!1,0,0),j.clearColor(0,0,0,0),j.enable(j.BLEND),j.blendFunc(j.ONE,j.ONE_MINUS_SRC_ALPHA),j.clear(j.COLOR_BUFFER_BIT),j.drawArrays(j.TRIANGLES,0,6),j.flush(),j.deleteTexture(k),j.deleteTexture(l),j.deleteBuffer(m),h}function k(){var a,d;h(),a=o,o=null,d=n,n=null;var e=b(d,s),g=c(d,t),i=f(d,[e,g]);d.useProgram(i);var j={};j.gl=d,j.canvas=a,j.resolutionLocation=d.getUniformLocation(i,"u_resolution"),j.scaleLocation=d.getUniformLocation(i,"u_scale"),j.offsetLocation=d.getUniformLocation(i,"u_offset"),j.positionLocation=d.getAttribLocation(i,"a_position"),j.colorLocation=d.getAttribLocation(i,"a_color"),u=j}function l(a,b,c,d,e){u||k();var f=u,g=f.canvas,h=f.gl;g.width=a,g.height=b,h.viewport(0,0,h.drawingBufferWidth,h.drawingBufferHeight),h.uniform2f(f.resolutionLocation,a,b);var i,j,l,m=0;for(i=0,j=d.length;j>i;i++)switch(d[i].type){case"lattice":l=d[i].coords.length/d[i].verticesPerRow|0,m+=(l-1)*(d[i].verticesPerRow-1)*6;break;case"triangles":m+=d[i].coords.length}var n=new Float32Array(2*m),o=new Uint8Array(3*m),p=e.coords,q=e.colors,r=0,s=0;for(i=0,j=d.length;j>i;i++){var t=d[i],v=t.coords,w=t.colors;switch(t.type){case"lattice":var x=t.verticesPerRow;l=v.length/x|0;for(var y=1;l>y;y++)for(var z=y*x+1,A=1;x>A;A++,z++)n[r]=p[v[z-x-1]],n[r+1]=p[v[z-x-1]+1],n[r+2]=p[v[z-x]],n[r+3]=p[v[z-x]+1],n[r+4]=p[v[z-1]],n[r+5]=p[v[z-1]+1],o[s]=q[w[z-x-1]],o[s+1]=q[w[z-x-1]+1],o[s+2]=q[w[z-x-1]+2],o[s+3]=q[w[z-x]],o[s+4]=q[w[z-x]+1],o[s+5]=q[w[z-x]+2],o[s+6]=q[w[z-1]],o[s+7]=q[w[z-1]+1],o[s+8]=q[w[z-1]+2],n[r+6]=n[r+2],n[r+7]=n[r+3],n[r+8]=n[r+4],n[r+9]=n[r+5],n[r+10]=p[v[z]],n[r+11]=p[v[z]+1],o[s+9]=o[s+3],o[s+10]=o[s+4],o[s+11]=o[s+5],o[s+12]=o[s+6],o[s+13]=o[s+7],o[s+14]=o[s+8],o[s+15]=q[w[z]],o[s+16]=q[w[z]+1],o[s+17]=q[w[z]+2],r+=12,s+=18;break;case"triangles":for(var B=0,C=v.length;C>B;B++)n[r]=p[v[B]],n[r+1]=p[v[B]+1],o[s]=q[w[B]],o[s+1]=q[w[B]+1],o[s+2]=q[w[B]+2],r+=2,s+=3}}c?h.clearColor(c[0]/255,c[1]/255,c[2]/255,1):h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT);var D=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,D),h.bufferData(h.ARRAY_BUFFER,n,h.STATIC_DRAW),h.enableVertexAttribArray(f.positionLocation),h.vertexAttribPointer(f.positionLocation,2,h.FLOAT,!1,0,0);var E=h.createBuffer();return h.bindBuffer(h.ARRAY_BUFFER,E),h.bufferData(h.ARRAY_BUFFER,o,h.STATIC_DRAW),h.enableVertexAttribArray(f.colorLocation),h.vertexAttribPointer(f.colorLocation,3,h.UNSIGNED_BYTE,!1,0,0),h.uniform2f(f.scaleLocation,e.scaleX,e.scaleY),h.uniform2f(f.offsetLocation,e.offsetX,e.offsetY),h.drawArrays(h.TRIANGLES,0,m),h.flush(),h.deleteBuffer(D),h.deleteBuffer(E),g}function m(){r&&r.canvas&&(r.canvas.width=0,r.canvas.height=0),u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),r=null,u=null}var n,o,p="  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             ",q="  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ",r=null,s="  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             ",t="  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ",u=null;return{get isEnabled(){if(d.getDefaultSetting("disableWebGL"))return!1;var a=!1;try{h(),a=!!n}catch(b){}return e.shadow(this,"isEnabled",a)},composeSMask:j,drawFigures:l,clear:m}}();b.WebGLUtils=f},function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.PDFJS=b.isWorker=b.globalScope=void 0;var d=c(2),e=c(1),f=c(0),g=c(3),h=c(6),i=c(5),j=c(4),k="undefined"==typeof window;f.globalScope.PDFJS||(f.globalScope.PDFJS={});var l=f.globalScope.PDFJS;l.version="1.9.426",l.build="2558a58d",l.pdfBug=!1,void 0!==l.verbosity&&f.setVerbosityLevel(l.verbosity),delete l.verbosity,Object.defineProperty(l,"verbosity",{get:function(){return f.getVerbosityLevel()},set:function(a){f.setVerbosityLevel(a)},enumerable:!0,configurable:!0}),l.VERBOSITY_LEVELS=f.VERBOSITY_LEVELS,l.OPS=f.OPS,l.UNSUPPORTED_FEATURES=f.UNSUPPORTED_FEATURES,l.isValidUrl=e.isValidUrl,l.shadow=f.shadow,l.createBlob=f.createBlob,l.createObjectURL=function(a,b){return f.createObjectURL(a,b,l.disableCreateObjectURL)},Object.defineProperty(l,"isLittleEndian",{configurable:!0,get:function(){return f.shadow(l,"isLittleEndian",f.isLittleEndian())}}),l.removeNullCharacters=f.removeNullCharacters,l.PasswordResponses=f.PasswordResponses,l.PasswordException=f.PasswordException,l.UnknownErrorException=f.UnknownErrorException,l.InvalidPDFException=f.InvalidPDFException,l.MissingPDFException=f.MissingPDFException,l.UnexpectedResponseException=f.UnexpectedResponseException,l.Util=f.Util,l.PageViewport=f.PageViewport,l.createPromiseCapability=f.createPromiseCapability,l.maxImageSize=void 0===l.maxImageSize?-1:l.maxImageSize,l.cMapUrl=void 0===l.cMapUrl?null:l.cMapUrl,l.cMapPacked=void 0===l.cMapPacked?!1:l.cMapPacked,l.disableFontFace=void 0===l.disableFontFace?!1:l.disableFontFace,l.imageResourcesPath=void 0===l.imageResourcesPath?"":l.imageResourcesPath,l.disableWorker=void 0===l.disableWorker?!1:l.disableWorker,l.workerSrc=void 0===l.workerSrc?null:l.workerSrc,l.workerPort=void 0===l.workerPort?null:l.workerPort,l.disableRange=void 0===l.disableRange?!1:l.disableRange,l.disableStream=void 0===l.disableStream?!1:l.disableStream,l.disableAutoFetch=void 0===l.disableAutoFetch?!1:l.disableAutoFetch,l.pdfBug=void 0===l.pdfBug?!1:l.pdfBug,l.postMessageTransfers=void 0===l.postMessageTransfers?!0:l.postMessageTransfers,l.disableCreateObjectURL=void 0===l.disableCreateObjectURL?!1:l.disableCreateObjectURL,l.disableWebGL=void 0===l.disableWebGL?!0:l.disableWebGL,l.externalLinkTarget=void 0===l.externalLinkTarget?e.LinkTarget.NONE:l.externalLinkTarget,l.externalLinkRel=void 0===l.externalLinkRel?e.DEFAULT_LINK_REL:l.externalLinkRel,l.isEvalSupported=void 0===l.isEvalSupported?!0:l.isEvalSupported,l.pdfjsNext=void 0===l.pdfjsNext?!1:l.pdfjsNext;var m=l.openExternalLinksInNewWindow;delete l.openExternalLinksInNewWindow,Object.defineProperty(l,"openExternalLinksInNewWindow",{get:function(){return l.externalLinkTarget===e.LinkTarget.BLANK},set:function(a){return a&&f.deprecated('PDFJS.openExternalLinksInNewWindow, please use "PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK" instead.'),l.externalLinkTarget!==e.LinkTarget.NONE?void f.warn("PDFJS.externalLinkTarget is already initialized"):void(l.externalLinkTarget=a?e.LinkTarget.BLANK:e.LinkTarget.NONE)},enumerable:!0,configurable:!0}),m&&(l.openExternalLinksInNewWindow=m),l.getDocument=d.getDocument,l.LoopbackPort=d.LoopbackPort,l.PDFDataRangeTransport=d.PDFDataRangeTransport,l.PDFWorker=d.PDFWorker,l.hasCanvasTypedArrays=!0,l.CustomStyle=e.CustomStyle,l.LinkTarget=e.LinkTarget,l.addLinkAttributes=e.addLinkAttributes,l.getFilenameFromUrl=e.getFilenameFromUrl,l.isExternalLinkTargetSet=e.isExternalLinkTargetSet,l.AnnotationLayer=g.AnnotationLayer,l.renderTextLayer=i.renderTextLayer,l.Metadata=h.Metadata,l.SVGGraphics=j.SVGGraphics,l.UnsupportedManager=d._UnsupportedManager,b.globalScope=f.globalScope,b.isWorker=k,b.PDFJS=l},function(a,b,c){"use strict";function d(a,b){this.url=a,b=b||{},this.isHttp=/^https?:/i.test(a),this.httpHeaders=this.isHttp&&b.httpHeaders||{},this.withCredentials=b.withCredentials||!1,this.getXhr=b.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null),this.loadedRequests=Object.create(null)}function e(a){var b=a.response;if("string"!=typeof b)return b;for(var c=b.length,d=new Uint8Array(c),e=0;c>e;e++)d[e]=255&b.charCodeAt(e);return d.buffer}function f(a){this._options=a;var b=a.source;this._manager=new d(b.url,{httpHeaders:b.httpHeaders,withCredentials:b.withCredentials}),this._rangeChunkSize=b.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}function g(a,b){this._manager=a;var c=b.source,d={onHeadersReceived:this._onHeadersReceived.bind(this),onProgressiveData:c.disableStream?null:this._onProgressiveData.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=c.url,this._fullRequestId=a.requestFull(d),this._headersReceivedCapability=i.createPromiseCapability(),this._disableRange=b.disableRange||!1,this._contentLength=c.length,this._rangeChunkSize=c.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this.onProgress=null}function h(a,b,c){this._manager=a;var d={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=a.requestRange(b,c,d),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}Object.defineProperty(b,"__esModule",{value:!0}),b.NetworkManager=b.PDFNetworkStream=void 0;var i=c(0),j=c(2),k=200,l=206,m=function(){try{var a=new XMLHttpRequest;return a.open("GET",i.globalScope.location.href),a.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===a.responseType}catch(b){return!1}}();d.prototype={requestRange:function(a,b,c){var d={begin:a,end:b};for(var e in c)d[e]=c[e];return this.request(d)},requestFull:function(a){return this.request(a)},request:function(a){var b=this.getXhr(),c=this.currXhrId++,d=this.pendingRequests[c]={xhr:b};b.open("GET",this.url),b.withCredentials=this.withCredentials;for(var e in this.httpHeaders){var f=this.httpHeaders[e];"undefined"!=typeof f&&b.setRequestHeader(e,f)}if(this.isHttp&&"begin"in a&&"end"in a){var g=a.begin+"-"+(a.end-1);b.setRequestHeader("Range","bytes="+g),d.expectedStatus=206}else d.expectedStatus=200;var h=m&&!!a.onProgressiveData;return h?(b.responseType="moz-chunked-arraybuffer",d.onProgressiveData=a.onProgressiveData,d.mozChunked=!0):b.responseType="arraybuffer",a.onError&&(b.onerror=function(){a.onError(b.status)}),b.onreadystatechange=this.onStateChange.bind(this,c),b.onprogress=this.onProgress.bind(this,c),d.onHeadersReceived=a.onHeadersReceived,d.onDone=a.onDone,d.onError=a.onError,d.onProgress=a.onProgress,b.send(null),c},onProgress:function(a,b){var c=this.pendingRequests[a];if(c){if(c.mozChunked){var d=e(c.xhr);c.onProgressiveData(d)}var f=c.onProgress;f&&f(b)}},onStateChange:function(a){var b=this.pendingRequests[a];if(b){var c=b.xhr;if(c.readyState>=2&&b.onHeadersReceived&&(b.onHeadersReceived(),delete b.onHeadersReceived),4===c.readyState&&a in this.pendingRequests){if(delete this.pendingRequests[a],0===c.status&&this.isHttp)return void(b.onError&&b.onError(c.status));var d=c.status||k,f=d===k&&b.expectedStatus===l;if(!f&&d!==b.expectedStatus)return void(b.onError&&b.onError(c.status));this.loadedRequests[a]=!0;var g=e(c);if(d===l){var h=c.getResponseHeader("Content-Range"),i=/bytes (\d+)-(\d+)\/(\d+)/.exec(h),j=parseInt(i[1],10);b.onDone({begin:j,chunk:g})}else b.onProgressiveData?b.onDone(null):g?b.onDone({begin:0,chunk:g}):b.onError&&b.onError(c.status)}}},hasPendingRequests:function(){for(var a in this.pendingRequests)return!0;return!1},getRequestXhr:function(a){return this.pendingRequests[a].xhr},isStreamingRequest:function(a){return!!this.pendingRequests[a].onProgressiveData},isPendingRequest:function(a){return a in this.pendingRequests},isLoadedRequest:function(a){return a in this.loadedRequests},abortAllRequests:function(){for(var a in this.pendingRequests)this.abortRequest(0|a)},abortRequest:function(a){var b=this.pendingRequests[a].xhr;delete this.pendingRequests[a],b.abort()}},f.prototype={_onRangeRequestReaderClosed:function(a){var b=this._rangeRequestReaders.indexOf(a);b>=0&&this._rangeRequestReaders.splice(b,1)},getFullReader:function(){return i.assert(!this._fullRequestReader),this._fullRequestReader=new g(this._manager,this._options),this._fullRequestReader},getRangeReader:function(a,b){var c=new h(this._manager,a,b);return c.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(c),c},cancelAllRequests:function(a){this._fullRequestReader&&this._fullRequestReader.cancel(a);var b=this._rangeRequestReaders.slice(0);b.forEach(function(b){b.cancel(a)})}},g.prototype={_validateRangeRequestCapabilities:function(){if(this._disableRange)return!1;var a=this._manager;if(!a.isHttp)return!1;var b=this._fullRequestId,c=a.getRequestXhr(b);if("bytes"!==c.getResponseHeader("Accept-Ranges"))return!1;var d=c.getResponseHeader("Content-Encoding")||"identity";if("identity"!==d)return!1;var e=c.getResponseHeader("Content-Length");return e=parseInt(e,10),i.isInt(e)?(this._contentLength=e,e<=2*this._rangeChunkSize?!1:!0):!1},_onHeadersReceived:function(){this._validateRangeRequestCapabilities()&&(this._isRangeSupported=!0);var a=this._manager,b=this._fullRequestId;a.isStreamingRequest(b)?this._isStreamingSupported=!0:this._isRangeSupported&&a.abortRequest(b),this._headersReceivedCapability.resolve()
},_onProgressiveData:function(a){if(this._requests.length>0){var b=this._requests.shift();b.resolve({value:a,done:!1})}else this._cachedChunks.push(a)},_onDone:function(a){a&&this._onProgressiveData(a.chunk),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[])},_onError:function(a){var b,c=this._url;b=404===a||0===a&&/^file:/.test(c)?new i.MissingPDFException('Missing PDF "'+c+'".'):new i.UnexpectedResponseException("Unexpected server response ("+a+') while retrieving PDF "'+c+'".',a),this._storedError=b,this._headersReceivedCapability.reject(b),this._requests.forEach(function(a){a.reject(b)}),this._requests=[],this._cachedChunks=[]},_onProgress:function(a){this.onProgress&&this.onProgress({loaded:a.loaded,total:a.lengthComputable?a.total:this._contentLength})},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:function(){if(this._storedError)return Promise.reject(this._storedError);if(this._cachedChunks.length>0){var a=this._cachedChunks.shift();return Promise.resolve({value:a,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var b=i.createPromiseCapability();return this._requests.push(b),b.promise},cancel:function(a){this._done=!0,this._headersReceivedCapability.reject(a),this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},h.prototype={_close:function(){this.onClosed&&this.onClosed(this)},_onDone:function(a){var b=a.chunk;if(this._requests.length>0){var c=this._requests.shift();c.resolve({value:b,done:!1})}else this._queuedChunk=b;this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._close()},_onProgress:function(a){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:a.loaded})},get isStreamingSupported(){return!1},read:function(){if(null!==this._queuedChunk){var a=this._queuedChunk;return this._queuedChunk=null,Promise.resolve({value:a,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var b=i.createPromiseCapability();return this._requests.push(b),b.promise},cancel:function(){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},j.setPDFNetworkStreamClass(f),b.PDFNetworkStream=f,b.NetworkManager=d},function(a,b){"use strict";var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};!function(a,b){for(var c in b)a[c]=b[c]}(b,function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(a){return a},b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a["default"]}:function(){return a};return b.d(c,"a",c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p="",b(b.s=7)}([function(a,b,d){function e(a){return"string"==typeof a||"symbol"===("undefined"==typeof a?"undefined":g(a))}function f(a,b,c){if("function"!=typeof a)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(a,b,c)}var g="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(a){return"undefined"==typeof a?"undefined":c(a)}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":"undefined"==typeof a?"undefined":c(a)},h=d(1),i=h.assert;b.typeIsObject=function(a){return"object"===("undefined"==typeof a?"undefined":g(a))&&null!==a||"function"==typeof a},b.createDataProperty=function(a,c,d){i(b.typeIsObject(a)),Object.defineProperty(a,c,{value:d,writable:!0,enumerable:!0,configurable:!0})},b.createArrayFromList=function(a){return a.slice()},b.ArrayBufferCopy=function(a,b,c,d,e){new Uint8Array(a).set(new Uint8Array(c,d,e),b)},b.CreateIterResultObject=function(a,b){i("boolean"==typeof b);var c={};return Object.defineProperty(c,"value",{value:a,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(c,"done",{value:b,enumerable:!0,writable:!0,configurable:!0}),c},b.IsFiniteNonNegativeNumber=function(a){return Number.isNaN(a)?!1:1/0===a?!1:0>a?!1:!0},b.InvokeOrNoop=function(a,b,c){i(void 0!==a),i(e(b)),i(Array.isArray(c));var d=a[b];return void 0===d?void 0:f(d,a,c)},b.PromiseInvokeOrNoop=function(a,c,d){i(void 0!==a),i(e(c)),i(Array.isArray(d));try{return Promise.resolve(b.InvokeOrNoop(a,c,d))}catch(f){return Promise.reject(f)}},b.PromiseInvokeOrPerformFallback=function(a,b,c,d,g){i(void 0!==a),i(e(b)),i(Array.isArray(c)),i(Array.isArray(g));var h=void 0;try{h=a[b]}catch(j){return Promise.reject(j)}if(void 0===h)return d.apply(null,g);try{return Promise.resolve(f(h,a,c))}catch(k){return Promise.reject(k)}},b.TransferArrayBuffer=function(a){return a.slice()},b.ValidateAndNormalizeHighWaterMark=function(a){if(a=Number(a),Number.isNaN(a)||0>a)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return a},b.ValidateAndNormalizeQueuingStrategy=function(a,c){if(void 0!==a&&"function"!=typeof a)throw new TypeError("size property of a queuing strategy must be a function");return c=b.ValidateAndNormalizeHighWaterMark(c),{size:a,highWaterMark:c}}},function(a){function b(a){a&&a.constructor===c&&setTimeout(function(){throw a},0)}function c(a){this.name="AssertionError",this.message=a||"",this.stack=(new Error).stack}function d(a,b){if(!a)throw new c(b)}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,a.exports={rethrowAssertionErrorRejection:b,AssertionError:c,assert:d}},function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){return new tb(a)}function f(a){return jb(a)&&Object.prototype.hasOwnProperty.call(a,"_writableStreamController")?!0:!1}function g(a){return lb(f(a)===!0,"IsWritableStreamLocked should only be used on known writable streams"),void 0===a._writer?!1:!0}function h(a,b){var c=a._state;if("closed"===c)return Promise.resolve(void 0);if("errored"===c)return Promise.reject(a._storedError);var d=new TypeError("Requested to abort");if(void 0!==a._pendingAbortRequest)return Promise.reject(d);lb("writable"===c||"erroring"===c,"state must be writable or erroring");var e=!1;"erroring"===c&&(e=!0,b=void 0);var f=new Promise(function(c,d){a._pendingAbortRequest={_resolve:c,_reject:d,_reason:b,_wasAlreadyErroring:e}});return e===!1&&k(a,d),f}function i(a){lb(g(a)===!0),lb("writable"===a._state);var b=new Promise(function(b,c){var d={_resolve:b,_reject:c};a._writeRequests.push(d)});return b}function j(a,b){var c=a._state;return"writable"===c?void k(a,b):(lb("erroring"===c),void l(a))}function k(a,b){lb(void 0===a._storedError,"stream._storedError === undefined"),lb("writable"===a._state,"state must be writable");var c=a._writableStreamController;lb(void 0!==c,"controller must not be undefined"),a._state="erroring",a._storedError=b;var d=a._writer;void 0!==d&&B(d,b),r(a)===!1&&c._started===!0&&l(a)}function l(a){lb("erroring"===a._state,"stream._state === erroring"),lb(r(a)===!1,"WritableStreamHasOperationMarkedInFlight(stream) === false"),a._state="errored",a._writableStreamController.__errorSteps();for(var b=a._storedError,c=0;c<a._writeRequests.length;c++){var d=a._writeRequests[c];d._reject(b)}if(a._writeRequests=[],void 0===a._pendingAbortRequest)return void u(a);var e=a._pendingAbortRequest;if(a._pendingAbortRequest=void 0,e._wasAlreadyErroring===!0)return e._reject(b),void u(a);var f=a._writableStreamController.__abortSteps(e._reason);f.then(function(){e._resolve(),u(a)},function(b){e._reject(b),u(a)})}function m(a){lb(void 0!==a._inFlightWriteRequest),a._inFlightWriteRequest._resolve(void 0),a._inFlightWriteRequest=void 0}function n(a,b){lb(void 0!==a._inFlightWriteRequest),a._inFlightWriteRequest._reject(b),a._inFlightWriteRequest=void 0,lb("writable"===a._state||"erroring"===a._state),j(a,b)}function o(a){lb(void 0!==a._inFlightCloseRequest),a._inFlightCloseRequest._resolve(void 0),a._inFlightCloseRequest=void 0;var b=a._state;lb("writable"===b||"erroring"===b),"erroring"===b&&(a._storedError=void 0,void 0!==a._pendingAbortRequest&&(a._pendingAbortRequest._resolve(),a._pendingAbortRequest=void 0)),a._state="closed";var c=a._writer;void 0!==c&&Y(c),lb(void 0===a._pendingAbortRequest,"stream._pendingAbortRequest === undefined"),lb(void 0===a._storedError,"stream._storedError === undefined")}function p(a,b){lb(void 0!==a._inFlightCloseRequest),a._inFlightCloseRequest._reject(b),a._inFlightCloseRequest=void 0,lb("writable"===a._state||"erroring"===a._state),void 0!==a._pendingAbortRequest&&(a._pendingAbortRequest._reject(b),a._pendingAbortRequest=void 0),j(a,b)}function q(a){return void 0===a._closeRequest&&void 0===a._inFlightCloseRequest?!1:!0}function r(a){return void 0===a._inFlightWriteRequest&&void 0===a._inFlightCloseRequest?!1:!0}function s(a){lb(void 0===a._inFlightCloseRequest),lb(void 0!==a._closeRequest),a._inFlightCloseRequest=a._closeRequest,a._closeRequest=void 0}function t(a){lb(void 0===a._inFlightWriteRequest,"there must be no pending write request"),lb(0!==a._writeRequests.length,"writeRequests must not be empty"),a._inFlightWriteRequest=a._writeRequests.shift()}function u(a){lb("errored"===a._state,'_stream_.[[state]] is `"errored"`'),void 0!==a._closeRequest&&(lb(void 0===a._inFlightCloseRequest),a._closeRequest._reject(a._storedError),a._closeRequest=void 0);var b=a._writer;void 0!==b&&(W(b,a._storedError),b._closedPromise.catch(function(){}))}function v(a,b){lb("writable"===a._state),lb(q(a)===!1);var c=a._writer;void 0!==c&&b!==a._backpressure&&(b===!0?bb(c):(lb(b===!1),db(c))),a._backpressure=b}function w(a){return jb(a)&&Object.prototype.hasOwnProperty.call(a,"_ownerWritableStream")?!0:!1}function x(a,b){var c=a._ownerWritableStream;return lb(void 0!==c),h(c,b)}function y(a){var b=a._ownerWritableStream;lb(void 0!==b);var c=b._state;if("closed"===c||"errored"===c)return Promise.reject(new TypeError("The stream (in "+c+" state) is not in the writable state and cannot be closed"));lb("writable"===c||"erroring"===c),lb(q(b)===!1);var d=new Promise(function(a,c){var d={_resolve:a,_reject:c};b._closeRequest=d});return b._backpressure===!0&&"writable"===c&&db(a),F(b._writableStreamController),d}function z(a){var b=a._ownerWritableStream;lb(void 0!==b);var c=b._state;return q(b)===!0||"closed"===c?Promise.resolve():"errored"===c?Promise.reject(b._storedError):(lb("writable"===c||"erroring"===c),y(a))}function A(a,b){"pending"===a._closedPromiseState?W(a,b):X(a,b),a._closedPromise.catch(function(){})}function B(a,b){"pending"===a._readyPromiseState?ab(a,b):cb(a,b),a._readyPromise.catch(function(){})}function C(a){var b=a._ownerWritableStream,c=b._state;return"errored"===c||"erroring"===c?null:"closed"===c?0:H(b._writableStreamController)}function D(a){var b=a._ownerWritableStream;lb(void 0!==b),lb(b._writer===a);var c=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");B(a,c),A(a,c),b._writer=void 0,a._ownerWritableStream=void 0}function E(a,b){var c=a._ownerWritableStream;lb(void 0!==c);var d=c._writableStreamController,e=G(d,b);if(c!==a._ownerWritableStream)return Promise.reject(S("write to"));var f=c._state;if("errored"===f)return Promise.reject(c._storedError);if(q(c)===!0||"closed"===f)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===f)return Promise.reject(c._storedError);lb("writable"===f);var g=i(c);return I(d,b,e),g}function F(a){pb(a,"close",0),K(a)}function G(a,b){var c=a._strategySize;if(void 0===c)return 1;try{return c(b)}catch(d){return L(a,d),1}}function H(a){return a._strategyHWM-a._queueTotalSize}function I(a,b,c){var d={chunk:b};try{pb(a,d,c)}catch(e){return void L(a,e)}var f=a._controlledWritableStream;if(q(f)===!1&&"writable"===f._state){var g=O(a);v(f,g)}K(a)}function J(a){return jb(a)&&Object.prototype.hasOwnProperty.call(a,"_underlyingSink")?!0:!1}function K(a){var b=a._controlledWritableStream;if(a._started!==!1&&void 0===b._inFlightWriteRequest){var c=b._state;if("closed"!==c&&"errored"!==c){if("erroring"===c)return void l(b);if(0!==a._queue.length){var d=qb(a);"close"===d?M(a):N(a,d.chunk)}}}}function L(a,b){"writable"===a._controlledWritableStream._state&&P(a,b)}function M(a){var b=a._controlledWritableStream;s(b),ob(a),lb(0===a._queue.length,"queue must be empty once the final write record is dequeued");var c=hb(a._underlyingSink,"close",[]);c.then(function(){o(b)},function(a){p(b,a)}).catch(mb)}function N(a,b){var c=a._controlledWritableStream;t(c);var d=hb(a._underlyingSink,"write",[b,a]);d.then(function(){m(c);var b=c._state;if(lb("writable"===b||"erroring"===b),ob(a),q(c)===!1&&"writable"===b){var d=O(a);v(c,d)}K(a)},function(a){n(c,a)}).catch(mb)}function O(a){var b=H(a);return 0>=b}function P(a,b){var c=a._controlledWritableStream;lb("writable"===c._state),k(c,b)}function Q(a){return new TypeError("WritableStream.prototype."+a+" can only be used on a WritableStream")}function R(a){return new TypeError("WritableStreamDefaultWriter.prototype."+a+" can only be used on a WritableStreamDefaultWriter")}function S(a){return new TypeError("Cannot "+a+" a stream using a released writer")}function T(a){a._closedPromise=new Promise(function(b,c){a._closedPromise_resolve=b,a._closedPromise_reject=c,a._closedPromiseState="pending"})}function U(a,b){a._closedPromise=Promise.reject(b),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0,a._closedPromiseState="rejected"}function V(a){a._closedPromise=Promise.resolve(void 0),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0,a._closedPromiseState="resolved"}function W(a,b){lb(void 0!==a._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),lb(void 0!==a._closedPromise_reject,"writer._closedPromise_reject !== undefined"),lb("pending"===a._closedPromiseState,"writer._closedPromiseState is pending"),a._closedPromise_reject(b),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0,a._closedPromiseState="rejected"}function X(a,b){lb(void 0===a._closedPromise_resolve,"writer._closedPromise_resolve === undefined"),lb(void 0===a._closedPromise_reject,"writer._closedPromise_reject === undefined"),lb("pending"!==a._closedPromiseState,"writer._closedPromiseState is not pending"),a._closedPromise=Promise.reject(b),a._closedPromiseState="rejected"}function Y(a){lb(void 0!==a._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),lb(void 0!==a._closedPromise_reject,"writer._closedPromise_reject !== undefined"),lb("pending"===a._closedPromiseState,"writer._closedPromiseState is pending"),a._closedPromise_resolve(void 0),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0,a._closedPromiseState="resolved"}function Z(a){a._readyPromise=new Promise(function(b,c){a._readyPromise_resolve=b,a._readyPromise_reject=c}),a._readyPromiseState="pending"}function $(a,b){a._readyPromise=Promise.reject(b),a._readyPromise_resolve=void 0,a._readyPromise_reject=void 0,a._readyPromiseState="rejected"}function _(a){a._readyPromise=Promise.resolve(void 0),a._readyPromise_resolve=void 0,a._readyPromise_reject=void 0,a._readyPromiseState="fulfilled"}function ab(a,b){lb(void 0!==a._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),lb(void 0!==a._readyPromise_reject,"writer._readyPromise_reject !== undefined"),a._readyPromise_reject(b),a._readyPromise_resolve=void 0,a._readyPromise_reject=void 0,a._readyPromiseState="rejected"}function bb(a){lb(void 0===a._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),lb(void 0===a._readyPromise_reject,"writer._readyPromise_reject === undefined"),a._readyPromise=new Promise(function(b,c){a._readyPromise_resolve=b,a._readyPromise_reject=c}),a._readyPromiseState="pending"}function cb(a,b){lb(void 0===a._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),lb(void 0===a._readyPromise_reject,"writer._readyPromise_reject === undefined"),a._readyPromise=Promise.reject(b),a._readyPromiseState="rejected"}function db(a){lb(void 0!==a._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),lb(void 0!==a._readyPromise_reject,"writer._readyPromise_reject !== undefined"),a._readyPromise_resolve(void 0),a._readyPromise_resolve=void 0,a._readyPromise_reject=void 0,a._readyPromiseState="fulfilled"}var eb=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),fb=c(0),gb=fb.InvokeOrNoop,hb=fb.PromiseInvokeOrNoop,ib=fb.ValidateAndNormalizeQueuingStrategy,jb=fb.typeIsObject,kb=c(1),lb=kb.assert,mb=kb.rethrowAssertionErrorRejection,nb=c(3),ob=nb.DequeueValue,pb=nb.EnqueueValueWithSize,qb=nb.PeekQueueValue,rb=nb.ResetQueue,sb=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=c.size,f=c.highWaterMark,g=void 0===f?1:f;d(this,a),this._state="writable",this._storedError=void 0,this._writer=void 0,this._writableStreamController=void 0,this._writeRequests=[],this._inFlightWriteRequest=void 0,this._closeRequest=void 0,this._inFlightCloseRequest=void 0,this._pendingAbortRequest=void 0,this._backpressure=!1;var h=b.type;if(void 0!==h)throw new RangeError("Invalid type is specified");this._writableStreamController=new ub(this,b,e,g),this._writableStreamController.__startSteps()}return eb(a,[{key:"abort",value:function(a){return f(this)===!1?Promise.reject(Q("abort")):g(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):h(this,a)}},{key:"getWriter",value:function(){if(f(this)===!1)throw Q("getWriter");return e(this)}},{key:"locked",get:function(){if(f(this)===!1)throw Q("locked");return g(this)}}]),a}();a.exports={AcquireWritableStreamDefaultWriter:e,IsWritableStream:f,IsWritableStreamLocked:g,WritableStream:sb,WritableStreamAbort:h,WritableStreamDefaultControllerError:P,WritableStreamDefaultWriterCloseWithErrorPropagation:z,WritableStreamDefaultWriterRelease:D,WritableStreamDefaultWriterWrite:E,WritableStreamCloseQueuedOrInFlight:q};var tb=function(){function a(b){if(d(this,a),f(b)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(g(b)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=b,b._writer=this;var c=b._state;if("writable"===c)q(b)===!1&&b._backpressure===!0?Z(this):_(this),T(this);else if("erroring"===c)$(this,b._storedError),this._readyPromise.catch(function(){}),T(this);else if("closed"===c)_(this),V(this);else{lb("errored"===c,"state must be errored");var e=b._storedError;$(this,e),this._readyPromise.catch(function(){}),U(this,e),this._closedPromise.catch(function(){})}}return eb(a,[{key:"abort",value:function(a){return w(this)===!1?Promise.reject(R("abort")):void 0===this._ownerWritableStream?Promise.reject(S("abort")):x(this,a)}},{key:"close",value:function(){if(w(this)===!1)return Promise.reject(R("close"));var a=this._ownerWritableStream;return void 0===a?Promise.reject(S("close")):q(a)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):y(this)}},{key:"releaseLock",value:function(){if(w(this)===!1)throw R("releaseLock");var a=this._ownerWritableStream;void 0!==a&&(lb(void 0!==a._writer),D(this))}},{key:"write",value:function(a){return w(this)===!1?Promise.reject(R("write")):void 0===this._ownerWritableStream?Promise.reject(S("write to")):E(this,a)}},{key:"closed",get:function(){return w(this)===!1?Promise.reject(R("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(w(this)===!1)throw R("desiredSize");if(void 0===this._ownerWritableStream)throw S("desiredSize");return C(this)}},{key:"ready",get:function(){return w(this)===!1?Promise.reject(R("ready")):this._readyPromise}}]),a}(),ub=function(){function a(b,c,e,g){if(d(this,a),f(b)===!1)throw new TypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void 0!==b._writableStreamController)throw new TypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=b,this._underlyingSink=c,this._queue=void 0,this._queueTotalSize=void 0,rb(this),this._started=!1;var h=ib(e,g);this._strategySize=h.size,this._strategyHWM=h.highWaterMark;var i=O(this);v(b,i)}return eb(a,[{key:"error",value:function(a){if(J(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var b=this._controlledWritableStream._state;"writable"===b&&P(this,a)}},{key:"__abortSteps",value:function(a){return hb(this._underlyingSink,"abort",[a])}},{key:"__errorSteps",value:function(){rb(this)}},{key:"__startSteps",value:function(){var a=this,b=gb(this._underlyingSink,"start",[this]),c=this._controlledWritableStream;Promise.resolve(b).then(function(){lb("writable"===c._state||"erroring"===c._state),a._started=!0,K(a)},function(b){lb("writable"===c._state||"erroring"===c._state),a._started=!0,j(c,b)}).catch(mb)}}]),a}()},function(a,b,c){var d=c(0),e=d.IsFiniteNonNegativeNumber,f=c(1),g=f.assert;b.DequeueValue=function(a){g("_queue"in a&&"_queueTotalSize"in a,"Spec-level failure: DequeueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),g(a._queue.length>0,"Spec-level failure: should never dequeue from an empty queue.");var b=a._queue.shift();return a._queueTotalSize-=b.size,a._queueTotalSize<0&&(a._queueTotalSize=0),b.value},b.EnqueueValueWithSize=function(a,b,c){if(g("_queue"in a&&"_queueTotalSize"in a,"Spec-level failure: EnqueueValueWithSize should only be used on containers with [[queue]] and [[queueTotalSize]]."),c=Number(c),!e(c))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");a._queue.push({value:b,size:c}),a._queueTotalSize+=c},b.PeekQueueValue=function(a){g("_queue"in a&&"_queueTotalSize"in a,"Spec-level failure: PeekQueueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),g(a._queue.length>0,"Spec-level failure: should never peek at an empty queue.");var b=a._queue[0];return b.value},b.ResetQueue=function(a){g("_queue"in a&&"_queueTotalSize"in a,"Spec-level failure: ResetQueue should only be used on containers with [[queue]] and [[queueTotalSize]]."),a._queue=[],a._queueTotalSize=0}},function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){return new bc(a)}function f(a){return new ac(a)}function g(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_readableStreamController")?!0:!1}function h(a){return Mb(g(a)===!0,"IsReadableStreamDisturbed should only be used on known readable streams"),a._disturbed}function i(a){return Mb(g(a)===!0,"IsReadableStreamLocked should only be used on known readable streams"),void 0===a._reader?!1:!0}function j(a,b){Mb(g(a)===!0),Mb("boolean"==typeof b);var c=f(a),d={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:void 0,reason2:void 0};d.promise=new Promise(function(a){d._resolve=a});var e=k();e._reader=c,e._teeState=d,e._cloneForBranch2=b;var h=l();h._stream=a,h._teeState=d;var i=m();i._stream=a,i._teeState=d;var j=Object.create(Object.prototype);Jb(j,"pull",e),Jb(j,"cancel",h);var n=new _b(j),o=Object.create(Object.prototype);Jb(o,"pull",e),Jb(o,"cancel",i);var p=new _b(o);return e._branch1=n._readableStreamController,e._branch2=p._readableStreamController,c._closedPromise.catch(function(a){d.closedOrErrored!==!0&&(K(e._branch1,a),K(e._branch2,a),d.closedOrErrored=!0)}),[n,p]}function k(){function a(){var b=a._reader,c=a._branch1,d=a._branch2,e=a._teeState;return E(b).then(function(a){Mb(Kb(a));var b=a.value,f=a.done;if(Mb("boolean"==typeof f),f===!0&&e.closedOrErrored===!1&&(e.canceled1===!1&&I(c),e.canceled2===!1&&I(d),e.closedOrErrored=!0),e.closedOrErrored!==!0){var g=b,h=b;e.canceled1===!1&&J(c,g),e.canceled2===!1&&J(d,h)}})}return a}function l(){function a(b){var c=a._stream,d=a._teeState;if(d.canceled1=!0,d.reason1=b,d.canceled2===!0){var e=Ib([d.reason1,d.reason2]),f=p(c,e);d._resolve(f)}return d.promise}return a}function m(){function a(b){var c=a._stream,d=a._teeState;if(d.canceled2=!0,d.reason2=b,d.canceled1===!0){var e=Ib([d.reason1,d.reason2]),f=p(c,e);d._resolve(f)}return d.promise}return a}function n(a){Mb(y(a._reader)===!0),Mb("readable"===a._state||"closed"===a._state);var b=new Promise(function(b,c){var d={_resolve:b,_reject:c};a._reader._readIntoRequests.push(d)});return b}function o(a){Mb(z(a._reader)===!0),Mb("readable"===a._state);var b=new Promise(function(b,c){var d={_resolve:b,_reject:c};a._reader._readRequests.push(d)});return b}function p(a,b){if(a._disturbed=!0,"closed"===a._state)return Promise.resolve(void 0);if("errored"===a._state)return Promise.reject(a._storedError);q(a);var c=a._readableStreamController.__cancelSteps(b);return c.then(function(){return void 0})}function q(a){Mb("readable"===a._state),a._state="closed";var b=a._reader;if(void 0===b)return void 0;if(z(b)===!0){for(var c=0;c<b._readRequests.length;c++){var d=b._readRequests[c]._resolve;d(Ab(void 0,!0))}b._readRequests=[]}return void rb(b)}function r(a,b){Mb(g(a)===!0,"stream must be ReadableStream"),Mb("readable"===a._state,"state must be readable"),a._state="errored",a._storedError=b;var c=a._reader;if(void 0===c)return void 0;if(z(c)===!0){for(var d=0;d<c._readRequests.length;d++){var e=c._readRequests[d];e._reject(b)}c._readRequests=[]}else{Mb(y(c),"reader must be ReadableStreamBYOBReader");for(var f=0;f<c._readIntoRequests.length;f++){var h=c._readIntoRequests[f];h._reject(b)}c._readIntoRequests=[]}pb(c,b),c._closedPromise.catch(function(){})}function s(a,b,c){var d=a._reader;Mb(d._readIntoRequests.length>0);var e=d._readIntoRequests.shift();e._resolve(Ab(b,c))}function t(a,b,c){var d=a._reader;Mb(d._readRequests.length>0);var e=d._readRequests.shift();e._resolve(Ab(b,c))}function u(a){return a._reader._readIntoRequests.length}function v(a){return a._reader._readRequests.length}function w(a){var b=a._reader;return void 0===b?!1:y(b)===!1?!1:!0}function x(a){var b=a._reader;return void 0===b?!1:z(b)===!1?!1:!0}function y(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_readIntoRequests")?!0:!1}function z(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_readRequests")?!0:!1}function A(a,b){a._ownerReadableStream=b,b._reader=a,"readable"===b._state?mb(a):"closed"===b._state?ob(a):(Mb("errored"===b._state,"state must be errored"),nb(a,b._storedError),a._closedPromise.catch(function(){}))}function B(a,b){var c=a._ownerReadableStream;return Mb(void 0!==c),p(c,b)}function C(a){Mb(void 0!==a._ownerReadableStream),Mb(a._ownerReadableStream._reader===a),"readable"===a._ownerReadableStream._state?pb(a,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):qb(a,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),a._closedPromise.catch(function(){}),a._ownerReadableStream._reader=void 0,a._ownerReadableStream=void 0}function D(a,b){var c=a._ownerReadableStream;return Mb(void 0!==c),c._disturbed=!0,"errored"===c._state?Promise.reject(c._storedError):Z(c._readableStreamController,b)}function E(a){var b=a._ownerReadableStream;return Mb(void 0!==b),b._disturbed=!0,"closed"===b._state?Promise.resolve(Ab(void 0,!0)):"errored"===b._state?Promise.reject(b._storedError):(Mb("readable"===b._state),b._readableStreamController.__pullSteps())}function F(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_underlyingSource")?!0:!1}function G(a){var b=H(a);if(b===!1)return void 0;if(a._pulling===!0)return void(a._pullAgain=!0);Mb(a._pullAgain===!1),a._pulling=!0;var c=Db(a._underlyingSource,"pull",[a]);return void c.then(function(){return a._pulling=!1,a._pullAgain===!0?(a._pullAgain=!1,G(a)):void 0},function(b){L(a,b)}).catch(Nb)}function H(a){var b=a._controlledReadableStream;if("closed"===b._state||"errored"===b._state)return!1;if(a._closeRequested===!0)return!1;if(a._started===!1)return!1;if(i(b)===!0&&v(b)>0)return!0;var c=M(a);return c>0?!0:!1}function I(a){var b=a._controlledReadableStream;Mb(a._closeRequested===!1),Mb("readable"===b._state),a._closeRequested=!0,0===a._queue.length&&q(b)}function J(a,b){var c=a._controlledReadableStream;if(Mb(a._closeRequested===!1),Mb("readable"===c._state),i(c)===!0&&v(c)>0)t(c,b,!1);else{var d=1;if(void 0!==a._strategySize){var e=a._strategySize;try{d=e(b)}catch(f){throw L(a,f),f}}try{Qb(a,b,d)}catch(g){throw L(a,g),g}}return void G(a)}function K(a,b){var c=a._controlledReadableStream;Mb("readable"===c._state),Rb(a),r(c,b)}function L(a,b){"readable"===a._controlledReadableStream._state&&K(a,b)}function M(a){var b=a._controlledReadableStream,c=b._state;return"errored"===c?null:"closed"===c?0:a._strategyHWM-a._queueTotalSize}function N(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_underlyingByteSource")?!0:!1}function O(a){return Kb(a)&&Object.prototype.hasOwnProperty.call(a,"_associatedReadableByteStreamController")?!0:!1}function P(a){var b=cb(a);if(b===!1)return void 0;if(a._pulling===!0)return void(a._pullAgain=!0);Mb(a._pullAgain===!1),a._pulling=!0;var c=Db(a._underlyingByteSource,"pull",[a]);return void c.then(function(){a._pulling=!1,a._pullAgain===!0&&(a._pullAgain=!1,P(a))},function(b){"readable"===a._controlledReadableStream._state&&fb(a,b)}).catch(Nb)}function Q(a){X(a),a._pendingPullIntos=[]}function R(a,b){Mb("errored"!==a._state,"state must not be errored");var c=!1;"closed"===a._state&&(Mb(0===b.bytesFilled),c=!0);var d=S(b);"default"===b.readerType?t(a,d,c):(Mb("byob"===b.readerType),s(a,d,c))}function S(a){var b=a.bytesFilled,c=a.elementSize;return Mb(b<=a.byteLength),Mb(b%c===0),new a.ctor(a.buffer,a.byteOffset,b/c)}function T(a,b,c,d){a._queue.push({buffer:b,byteOffset:c,byteLength:d}),a._queueTotalSize+=d}function U(a,b){var c=b.elementSize,d=b.bytesFilled-b.bytesFilled%c,e=Math.min(a._queueTotalSize,b.byteLength-b.bytesFilled),f=b.bytesFilled+e,g=f-f%c,h=e,i=!1;g>d&&(h=g-b.bytesFilled,i=!0);for(var j=a._queue;h>0;){var k=j[0],l=Math.min(h,k.byteLength),m=b.byteOffset+b.bytesFilled;zb(b.buffer,m,k.buffer,k.byteOffset,l),k.byteLength===l?j.shift():(k.byteOffset+=l,k.byteLength-=l),a._queueTotalSize-=l,V(a,l,b),h-=l}return i===!1&&(Mb(0===a._queueTotalSize,"queue must be empty"),Mb(b.bytesFilled>0),Mb(b.bytesFilled<b.elementSize)),i}function V(a,b,c){Mb(0===a._pendingPullIntos.length||a._pendingPullIntos[0]===c),X(a),c.bytesFilled+=b}function W(a){Mb("readable"===a._controlledReadableStream._state),0===a._queueTotalSize&&a._closeRequested===!0?q(a._controlledReadableStream):P(a)}function X(a){void 0!==a._byobRequest&&(a._byobRequest._associatedReadableByteStreamController=void 0,a._byobRequest._view=void 0,a._byobRequest=void 0)}function Y(a){for(Mb(a._closeRequested===!1);a._pendingPullIntos.length>0;){if(0===a._queueTotalSize)return;var b=a._pendingPullIntos[0];U(a,b)===!0&&(bb(a),R(a._controlledReadableStream,b))}}function Z(a,b){var c=a._controlledReadableStream,d=1;b.constructor!==DataView&&(d=b.constructor.BYTES_PER_ELEMENT);var e=b.constructor,f={buffer:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength,bytesFilled:0,elementSize:d,ctor:e,readerType:"byob"};
if(a._pendingPullIntos.length>0)return f.buffer=Eb(f.buffer),a._pendingPullIntos.push(f),n(c);if("closed"===c._state){var g=new b.constructor(f.buffer,f.byteOffset,0);return Promise.resolve(Ab(g,!0))}if(a._queueTotalSize>0){if(U(a,f)===!0){var h=S(f);return W(a),Promise.resolve(Ab(h,!1))}if(a._closeRequested===!0){var i=new TypeError("Insufficient bytes to fill elements in the given buffer");return fb(a,i),Promise.reject(i)}}f.buffer=Eb(f.buffer),a._pendingPullIntos.push(f);var j=n(c);return P(a),j}function $(a,b){b.buffer=Eb(b.buffer),Mb(0===b.bytesFilled,"bytesFilled must be 0");var c=a._controlledReadableStream;if(w(c)===!0)for(;u(c)>0;){var d=bb(a);R(c,d)}}function _(a,b,c){if(c.bytesFilled+b>c.byteLength)throw new RangeError("bytesWritten out of range");if(V(a,b,c),!(c.bytesFilled<c.elementSize)){bb(a);var d=c.bytesFilled%c.elementSize;if(d>0){var e=c.byteOffset+c.bytesFilled,f=c.buffer.slice(e-d,e);T(a,f,0,f.byteLength)}c.buffer=Eb(c.buffer),c.bytesFilled-=d,R(a._controlledReadableStream,c),Y(a)}}function ab(a,b){var c=a._pendingPullIntos[0],d=a._controlledReadableStream;if("closed"===d._state){if(0!==b)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");$(a,c)}else Mb("readable"===d._state),_(a,b,c)}function bb(a){var b=a._pendingPullIntos.shift();return X(a),b}function cb(a){var b=a._controlledReadableStream;return"readable"!==b._state?!1:a._closeRequested===!0?!1:a._started===!1?!1:x(b)===!0&&v(b)>0?!0:w(b)===!0&&u(b)>0?!0:gb(a)>0?!0:!1}function db(a){var b=a._controlledReadableStream;if(Mb(a._closeRequested===!1),Mb("readable"===b._state),a._queueTotalSize>0)return void(a._closeRequested=!0);if(a._pendingPullIntos.length>0){var c=a._pendingPullIntos[0];if(c.bytesFilled>0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");throw fb(a,d),d}}q(b)}function eb(a,b){var c=a._controlledReadableStream;Mb(a._closeRequested===!1),Mb("readable"===c._state);var d=b.buffer,e=b.byteOffset,f=b.byteLength,g=Eb(d);if(x(c)===!0)if(0===v(c))T(a,g,e,f);else{Mb(0===a._queue.length);var h=new Uint8Array(g,e,f);t(c,h,!1)}else w(c)===!0?(T(a,g,e,f),Y(a)):(Mb(i(c)===!1,"stream must not be locked"),T(a,g,e,f))}function fb(a,b){var c=a._controlledReadableStream;Mb("readable"===c._state),Q(a),Rb(a),r(c,b)}function gb(a){var b=a._controlledReadableStream,c=b._state;return"errored"===c?null:"closed"===c?0:a._strategyHWM-a._queueTotalSize}function hb(a,b){if(b=Number(b),Bb(b)===!1)throw new RangeError("bytesWritten must be a finite");Mb(a._pendingPullIntos.length>0),ab(a,b)}function ib(a,b){Mb(a._pendingPullIntos.length>0);var c=a._pendingPullIntos[0];if(c.byteOffset+c.bytesFilled!==b.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(c.byteLength!==b.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");c.buffer=b.buffer,ab(a,b.byteLength)}function jb(a){return new TypeError("ReadableStream.prototype."+a+" can only be used on a ReadableStream")}function kb(a){return new TypeError("Cannot "+a+" a stream using a released reader")}function lb(a){return new TypeError("ReadableStreamDefaultReader.prototype."+a+" can only be used on a ReadableStreamDefaultReader")}function mb(a){a._closedPromise=new Promise(function(b,c){a._closedPromise_resolve=b,a._closedPromise_reject=c})}function nb(a,b){a._closedPromise=Promise.reject(b),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0}function ob(a){a._closedPromise=Promise.resolve(void 0),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0}function pb(a,b){Mb(void 0!==a._closedPromise_resolve),Mb(void 0!==a._closedPromise_reject),a._closedPromise_reject(b),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0}function qb(a,b){Mb(void 0===a._closedPromise_resolve),Mb(void 0===a._closedPromise_reject),a._closedPromise=Promise.reject(b)}function rb(a){Mb(void 0!==a._closedPromise_resolve),Mb(void 0!==a._closedPromise_reject),a._closedPromise_resolve(void 0),a._closedPromise_resolve=void 0,a._closedPromise_reject=void 0}function sb(a){return new TypeError("ReadableStreamBYOBReader.prototype."+a+" can only be used on a ReadableStreamBYOBReader")}function tb(a){return new TypeError("ReadableStreamDefaultController.prototype."+a+" can only be used on a ReadableStreamDefaultController")}function ub(a){return new TypeError("ReadableStreamBYOBRequest.prototype."+a+" can only be used on a ReadableStreamBYOBRequest")}function vb(a){return new TypeError("ReadableByteStreamController.prototype."+a+" can only be used on a ReadableByteStreamController")}function wb(a){try{Promise.prototype.then.call(a,void 0,function(){})}catch(b){}}var xb=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),yb=c(0),zb=yb.ArrayBufferCopy,Ab=yb.CreateIterResultObject,Bb=yb.IsFiniteNonNegativeNumber,Cb=yb.InvokeOrNoop,Db=yb.PromiseInvokeOrNoop,Eb=yb.TransferArrayBuffer,Fb=yb.ValidateAndNormalizeQueuingStrategy,Gb=yb.ValidateAndNormalizeHighWaterMark,Hb=c(0),Ib=Hb.createArrayFromList,Jb=Hb.createDataProperty,Kb=Hb.typeIsObject,Lb=c(1),Mb=Lb.assert,Nb=Lb.rethrowAssertionErrorRejection,Ob=c(3),Pb=Ob.DequeueValue,Qb=Ob.EnqueueValueWithSize,Rb=Ob.ResetQueue,Sb=c(2),Tb=Sb.AcquireWritableStreamDefaultWriter,Ub=Sb.IsWritableStream,Vb=Sb.IsWritableStreamLocked,Wb=Sb.WritableStreamAbort,Xb=Sb.WritableStreamDefaultWriterCloseWithErrorPropagation,Yb=Sb.WritableStreamDefaultWriterRelease,Zb=Sb.WritableStreamDefaultWriterWrite,$b=Sb.WritableStreamCloseQueuedOrInFlight,_b=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=c.size,f=c.highWaterMark;d(this,a),this._state="readable",this._reader=void 0,this._storedError=void 0,this._disturbed=!1,this._readableStreamController=void 0;var g=b.type,h=String(g);if("bytes"===h)void 0===f&&(f=0),this._readableStreamController=new ec(this,b,f);else{if(void 0!==g)throw new RangeError("Invalid type is specified");void 0===f&&(f=1),this._readableStreamController=new cc(this,b,e,f)}}return xb(a,[{key:"cancel",value:function(a){return g(this)===!1?Promise.reject(jb("cancel")):i(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):p(this,a)}},{key:"getReader",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=a.mode;if(g(this)===!1)throw jb("getReader");if(void 0===b)return f(this);if(b=String(b),"byob"===b)return e(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(a,b){var c=a.writable,d=a.readable,e=this.pipeTo(c,b);return wb(e),d}},{key:"pipeTo",value:function(a){var b=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=c.preventClose,e=c.preventAbort,h=c.preventCancel;if(g(this)===!1)return Promise.reject(jb("pipeTo"));if(Ub(a)===!1)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(d=Boolean(d),e=Boolean(e),h=Boolean(h),i(this)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(Vb(a)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var j=f(this),k=Tb(a),l=!1,m=Promise.resolve();return new Promise(function(c,f){function g(){return m=Promise.resolve(),l===!0?Promise.resolve():k._readyPromise.then(function(){return E(j).then(function(a){var b=a.value,c=a.done;c!==!0&&(m=Zb(k,b).catch(function(){}))})}).then(g)}function i(){var a=m;return m.then(function(){return a!==m?i():void 0})}function n(a,b,c){"errored"===a._state?c(a._storedError):b.catch(c).catch(Nb)}function o(a,b,c){"closed"===a._state?c():b.then(c).catch(Nb)}function q(b,c,d){function e(){b().then(function(){return s(c,d)},function(a){return s(!0,a)}).catch(Nb)}l!==!0&&(l=!0,"writable"===a._state&&$b(a)===!1?i().then(e):e())}function r(b,c){l!==!0&&(l=!0,"writable"===a._state&&$b(a)===!1?i().then(function(){return s(b,c)}).catch(Nb):s(b,c))}function s(a,b){Yb(k),C(j),a?f(b):c(void 0)}if(n(b,j._closedPromise,function(b){e===!1?q(function(){return Wb(a,b)},!0,b):r(!0,b)}),n(a,k._closedPromise,function(a){h===!1?q(function(){return p(b,a)},!0,a):r(!0,a)}),o(b,j._closedPromise,function(){d===!1?q(function(){return Xb(k)}):r()}),$b(a)===!0||"closed"===a._state){var t=new TypeError("the destination writable stream closed before all data could be piped to it");h===!1?q(function(){return p(b,t)},!0,t):r(!0,t)}g().catch(function(a){m=Promise.resolve(),Nb(a)})})}},{key:"tee",value:function(){if(g(this)===!1)throw jb("tee");var a=j(this,!1);return Ib(a)}},{key:"locked",get:function(){if(g(this)===!1)throw jb("locked");return i(this)}}]),a}();a.exports={ReadableStream:_b,IsReadableStreamDisturbed:h,ReadableStreamDefaultControllerClose:I,ReadableStreamDefaultControllerEnqueue:J,ReadableStreamDefaultControllerError:K,ReadableStreamDefaultControllerGetDesiredSize:M};var ac=function(){function a(b){if(d(this,a),g(b)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(i(b)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");A(this,b),this._readRequests=[]}return xb(a,[{key:"cancel",value:function(a){return z(this)===!1?Promise.reject(lb("cancel")):void 0===this._ownerReadableStream?Promise.reject(kb("cancel")):B(this,a)}},{key:"read",value:function(){return z(this)===!1?Promise.reject(lb("read")):void 0===this._ownerReadableStream?Promise.reject(kb("read from")):E(this)}},{key:"releaseLock",value:function(){if(z(this)===!1)throw lb("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");C(this)}}},{key:"closed",get:function(){return z(this)===!1?Promise.reject(lb("closed")):this._closedPromise}}]),a}(),bc=function(){function a(b){if(d(this,a),!g(b))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(N(b._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(i(b))throw new TypeError("This stream has already been locked for exclusive reading by another reader");A(this,b),this._readIntoRequests=[]}return xb(a,[{key:"cancel",value:function(a){return y(this)?void 0===this._ownerReadableStream?Promise.reject(kb("cancel")):B(this,a):Promise.reject(sb("cancel"))}},{key:"read",value:function(a){return y(this)?void 0===this._ownerReadableStream?Promise.reject(kb("read from")):ArrayBuffer.isView(a)?0===a.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):D(this,a):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(sb("read"))}},{key:"releaseLock",value:function(){if(!y(this))throw sb("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");C(this)}}},{key:"closed",get:function(){return y(this)?this._closedPromise:Promise.reject(sb("closed"))}}]),a}(),cc=function(){function a(b,c,e,f){if(d(this,a),g(b)===!1)throw new TypeError("ReadableStreamDefaultController can only be constructed with a ReadableStream instance");if(void 0!==b._readableStreamController)throw new TypeError("ReadableStreamDefaultController instances can only be created by the ReadableStream constructor");this._controlledReadableStream=b,this._underlyingSource=c,this._queue=void 0,this._queueTotalSize=void 0,Rb(this),this._started=!1,this._closeRequested=!1,this._pullAgain=!1,this._pulling=!1;var h=Fb(e,f);this._strategySize=h.size,this._strategyHWM=h.highWaterMark;var i=this,j=Cb(c,"start",[this]);Promise.resolve(j).then(function(){i._started=!0,Mb(i._pulling===!1),Mb(i._pullAgain===!1),G(i)},function(a){L(i,a)}).catch(Nb)}return xb(a,[{key:"close",value:function(){if(F(this)===!1)throw tb("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var a=this._controlledReadableStream._state;if("readable"!==a)throw new TypeError("The stream (in "+a+" state) is not in the readable state and cannot be closed");I(this)}},{key:"enqueue",value:function(a){if(F(this)===!1)throw tb("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var b=this._controlledReadableStream._state;if("readable"!==b)throw new TypeError("The stream (in "+b+" state) is not in the readable state and cannot be enqueued to");return J(this,a)}},{key:"error",value:function(a){if(F(this)===!1)throw tb("error");var b=this._controlledReadableStream;if("readable"!==b._state)throw new TypeError("The stream is "+b._state+" and so cannot be errored");K(this,a)}},{key:"__cancelSteps",value:function(a){return Rb(this),Db(this._underlyingSource,"cancel",[a])}},{key:"__pullSteps",value:function(){var a=this._controlledReadableStream;if(this._queue.length>0){var b=Pb(this);return this._closeRequested===!0&&0===this._queue.length?q(a):G(this),Promise.resolve(Ab(b,!1))}var c=o(a);return G(this),c}},{key:"desiredSize",get:function(){if(F(this)===!1)throw tb("desiredSize");return M(this)}}]),a}(),dc=function(){function a(b,c){d(this,a),this._associatedReadableByteStreamController=b,this._view=c}return xb(a,[{key:"respond",value:function(a){if(O(this)===!1)throw ub("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");hb(this._associatedReadableByteStreamController,a)}},{key:"respondWithNewView",value:function(a){if(O(this)===!1)throw ub("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(a))throw new TypeError("You can only respond with array buffer views");ib(this._associatedReadableByteStreamController,a)}},{key:"view",get:function(){return this._view}}]),a}(),ec=function(){function a(b,c,e){if(d(this,a),g(b)===!1)throw new TypeError("ReadableByteStreamController can only be constructed with a ReadableStream instance given a byte source");if(void 0!==b._readableStreamController)throw new TypeError("ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte source");this._controlledReadableStream=b,this._underlyingByteSource=c,this._pullAgain=!1,this._pulling=!1,Q(this),this._queue=this._queueTotalSize=void 0,Rb(this),this._closeRequested=!1,this._started=!1,this._strategyHWM=Gb(e);var f=c.autoAllocateChunkSize;if(void 0!==f&&(Number.isInteger(f)===!1||0>=f))throw new RangeError("autoAllocateChunkSize must be a positive integer");this._autoAllocateChunkSize=f,this._pendingPullIntos=[];var h=this,i=Cb(c,"start",[this]);Promise.resolve(i).then(function(){h._started=!0,Mb(h._pulling===!1),Mb(h._pullAgain===!1),P(h)},function(a){"readable"===b._state&&fb(h,a)}).catch(Nb)}return xb(a,[{key:"close",value:function(){if(N(this)===!1)throw vb("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var a=this._controlledReadableStream._state;if("readable"!==a)throw new TypeError("The stream (in "+a+" state) is not in the readable state and cannot be closed");db(this)}},{key:"enqueue",value:function(a){if(N(this)===!1)throw vb("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var b=this._controlledReadableStream._state;if("readable"!==b)throw new TypeError("The stream (in "+b+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(a))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");eb(this,a)}},{key:"error",value:function(a){if(N(this)===!1)throw vb("error");var b=this._controlledReadableStream;if("readable"!==b._state)throw new TypeError("The stream is "+b._state+" and so cannot be errored");fb(this,a)}},{key:"__cancelSteps",value:function(a){if(this._pendingPullIntos.length>0){var b=this._pendingPullIntos[0];b.bytesFilled=0}return Rb(this),Db(this._underlyingByteSource,"cancel",[a])}},{key:"__pullSteps",value:function(){var a=this._controlledReadableStream;if(Mb(x(a)===!0),this._queueTotalSize>0){Mb(0===v(a));var b=this._queue.shift();this._queueTotalSize-=b.byteLength,W(this);var c=void 0;try{c=new Uint8Array(b.buffer,b.byteOffset,b.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Ab(c,!1))}var e=this._autoAllocateChunkSize;if(void 0!==e){var f=void 0;try{f=new ArrayBuffer(e)}catch(g){return Promise.reject(g)}var h={buffer:f,byteOffset:0,byteLength:e,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(h)}var i=o(a);return P(this),i}},{key:"byobRequest",get:function(){if(N(this)===!1)throw vb("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var a=this._pendingPullIntos[0],b=new Uint8Array(a.buffer,a.byteOffset+a.bytesFilled,a.byteLength-a.bytesFilled);this._byobRequest=new dc(this,b)}return this._byobRequest}},{key:"desiredSize",get:function(){if(N(this)===!1)throw vb("desiredSize");return gb(this)}}]),a}()},function(a,b,c){var d=c(6),e=c(4),f=c(2);b.TransformStream=d.TransformStream,b.ReadableStream=e.ReadableStream,b.IsReadableStreamDisturbed=e.IsReadableStreamDisturbed,b.ReadableStreamDefaultControllerClose=e.ReadableStreamDefaultControllerClose,b.ReadableStreamDefaultControllerEnqueue=e.ReadableStreamDefaultControllerEnqueue,b.ReadableStreamDefaultControllerError=e.ReadableStreamDefaultControllerError,b.ReadableStreamDefaultControllerGetDesiredSize=e.ReadableStreamDefaultControllerGetDesiredSize,b.AcquireWritableStreamDefaultWriter=f.AcquireWritableStreamDefaultWriter,b.IsWritableStream=f.IsWritableStream,b.IsWritableStreamLocked=f.IsWritableStreamLocked,b.WritableStream=f.WritableStream,b.WritableStreamAbort=f.WritableStreamAbort,b.WritableStreamDefaultControllerError=f.WritableStreamDefaultControllerError,b.WritableStreamDefaultWriterCloseWithErrorPropagation=f.WritableStreamDefaultWriterCloseWithErrorPropagation,b.WritableStreamDefaultWriterRelease=f.WritableStreamDefaultWriterRelease,b.WritableStreamDefaultWriterWrite=f.WritableStreamDefaultWriterWrite},function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){if(a._errored===!0)throw new TypeError("TransformStream is already errored");if(a._readableClosed===!0)throw new TypeError("Readable side is already closed");h(a)}function f(a,b){if(a._errored===!0)throw new TypeError("TransformStream is already errored");if(a._readableClosed===!0)throw new TypeError("Readable side is already closed");var c=a._readableController;try{D(c,b)}catch(d){throw a._readableClosed=!0,i(a,d),a._storedError}var e=F(c),f=0>=e;f===!0&&a._backpressure===!1&&l(a,!0)}function g(a,b){if(a._errored===!0)throw new TypeError("TransformStream is already errored");j(a,b)}function h(a){u(a._errored===!1),u(a._readableClosed===!1);try{C(a._readableController)}catch(b){u(!1)}a._readableClosed=!0}function i(a,b){a._errored===!1&&j(a,b)}function j(a,b){u(a._errored===!1),a._errored=!0,a._storedError=b,a._writableDone===!1&&I(a._writableController,b),a._readableClosed===!1&&E(a._readableController,b)}function k(a){return u(void 0!==a._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),a._backpressure===!1?Promise.resolve():(u(a._backpressure===!0,"_backpressure should have been initialized"),a._backpressureChangePromise)}function l(a,b){u(a._backpressure!==b,"TransformStreamSetBackpressure() should be called only when backpressure is changed"),void 0!==a._backpressureChangePromise&&a._backpressureChangePromise_resolve(b),a._backpressureChangePromise=new Promise(function(b){a._backpressureChangePromise_resolve=b}),a._backpressureChangePromise.then(function(a){u(a!==b,"_backpressureChangePromise should be fulfilled only when backpressure is changed")}),a._backpressure=b}function m(a,b){var c=b._controlledTransformStream;return f(c,a),Promise.resolve()}function n(a,b){u(a._errored===!1),u(a._transforming===!1),u(a._backpressure===!1),a._transforming=!0;var c=a._transformer,d=a._transformStreamController,e=x(c,"transform",[b,d],m,[b,d]);return e.then(function(){return a._transforming=!1,k(a)},function(b){return i(a,b),Promise.reject(b)})}function o(a){return z(a)&&Object.prototype.hasOwnProperty.call(a,"_controlledTransformStream")?!0:!1}function p(a){return z(a)&&Object.prototype.hasOwnProperty.call(a,"_transformStreamController")?!0:!1}function q(a){return new TypeError("TransformStreamDefaultController.prototype."+a+" can only be used on a TransformStreamDefaultController")}function r(a){return new TypeError("TransformStream.prototype."+a+" can only be used on a TransformStream")}var s=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),t=c(1),u=t.assert,v=c(0),w=v.InvokeOrNoop,x=v.PromiseInvokeOrPerformFallback,y=v.PromiseInvokeOrNoop,z=v.typeIsObject,A=c(4),B=A.ReadableStream,C=A.ReadableStreamDefaultControllerClose,D=A.ReadableStreamDefaultControllerEnqueue,E=A.ReadableStreamDefaultControllerError,F=A.ReadableStreamDefaultControllerGetDesiredSize,G=c(2),H=G.WritableStream,I=G.WritableStreamDefaultControllerError,J=function(){function a(b,c){d(this,a),this._transformStream=b,this._startPromise=c}return s(a,[{key:"start",value:function(a){var b=this._transformStream;return b._writableController=a,this._startPromise.then(function(){return k(b)})}},{key:"write",value:function(a){var b=this._transformStream;return n(b,a)}},{key:"abort",value:function(){var a=this._transformStream;a._writableDone=!0,j(a,new TypeError("Writable side aborted"))}},{key:"close",value:function(){var a=this._transformStream;u(a._transforming===!1),a._writableDone=!0;var b=y(a._transformer,"flush",[a._transformStreamController]);return b.then(function(){return a._errored===!0?Promise.reject(a._storedError):(a._readableClosed===!1&&h(a),Promise.resolve())}).catch(function(b){return i(a,b),Promise.reject(a._storedError)})}}]),a}(),K=function(){function a(b,c){d(this,a),this._transformStream=b,this._startPromise=c}return s(a,[{key:"start",value:function(a){var b=this._transformStream;return b._readableController=a,this._startPromise.then(function(){return u(void 0!==b._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),b._backpressure===!0?Promise.resolve():(u(b._backpressure===!1,"_backpressure should have been initialized"),b._backpressureChangePromise)})}},{key:"pull",value:function(){var a=this._transformStream;return u(a._backpressure===!0,"pull() should be never called while _backpressure is false"),u(void 0!==a._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),l(a,!1),a._backpressureChangePromise}},{key:"cancel",value:function(){var a=this._transformStream;a._readableClosed=!0,j(a,new TypeError("Readable side canceled"))}}]),a}(),L=function(){function a(b){if(d(this,a),p(b)===!1)throw new TypeError("TransformStreamDefaultController can only be constructed with a TransformStream instance");if(void 0!==b._transformStreamController)throw new TypeError("TransformStreamDefaultController instances can only be created by the TransformStream constructor");this._controlledTransformStream=b}return s(a,[{key:"enqueue",value:function(a){if(o(this)===!1)throw q("enqueue");f(this._controlledTransformStream,a)}},{key:"close",value:function(){if(o(this)===!1)throw q("close");e(this._controlledTransformStream)}},{key:"error",value:function(a){if(o(this)===!1)throw q("error");g(this._controlledTransformStream,a)}},{key:"desiredSize",get:function(){if(o(this)===!1)throw q("desiredSize");var a=this._controlledTransformStream,b=a._readableController;return F(b)}}]),a}(),M=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,a),this._transformer=b;var c=b.readableStrategy,e=b.writableStrategy;this._transforming=!1,this._errored=!1,this._storedError=void 0,this._writableController=void 0,this._readableController=void 0,this._transformStreamController=void 0,this._writableDone=!1,this._readableClosed=!1,this._backpressure=void 0,this._backpressureChangePromise=void 0,this._backpressureChangePromise_resolve=void 0,this._transformStreamController=new L(this);var f=void 0,g=new Promise(function(a){f=a}),h=new K(this,g);this._readable=new B(h,c);var i=new J(this,g);this._writable=new H(i,e),u(void 0!==this._writableController),u(void 0!==this._readableController);var j=F(this._readableController);l(this,0>=j);var k=this,m=w(b,"start",[k._transformStreamController]);f(m),g.catch(function(a){k._errored===!1&&(k._errored=!0,k._storedError=a)})}return s(a,[{key:"readable",get:function(){if(p(this)===!1)throw r("readable");return this._readable}},{key:"writable",get:function(){if(p(this)===!1)throw r("writable");return this._writable}}]),a}();a.exports={TransformStream:M}},function(a,b,c){a.exports=c(5)}]))},function(a,b,c){"use strict";function d(a){a.mozCurrentTransform||(a._originalSave=a.save,a._originalRestore=a.restore,a._originalRotate=a.rotate,a._originalScale=a.scale,a._originalTranslate=a.translate,a._originalTransform=a.transform,a._originalSetTransform=a.setTransform,a._transformMatrix=a._transformMatrix||[1,0,0,1,0,0],a._transformStack=[],Object.defineProperty(a,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(a,"mozCurrentTransformInverse",{get:function(){var a=this._transformMatrix,b=a[0],c=a[1],d=a[2],e=a[3],f=a[4],g=a[5],h=b*e-c*d,i=c*d-b*e;return[e/h,c/i,d/i,b/h,(e*f-d*g)/i,(c*f-b*g)/h]}}),a.save=function(){var a=this._transformMatrix;this._transformStack.push(a),this._transformMatrix=a.slice(0,6),this._originalSave()},a.restore=function(){var a=this._transformStack.pop();a&&(this._transformMatrix=a,this._originalRestore())},a.translate=function(a,b){var c=this._transformMatrix;c[4]=c[0]*a+c[2]*b+c[4],c[5]=c[1]*a+c[3]*b+c[5],this._originalTranslate(a,b)},a.scale=function(a,b){var c=this._transformMatrix;c[0]=c[0]*a,c[1]=c[1]*a,c[2]=c[2]*b,c[3]=c[3]*b,this._originalScale(a,b)},a.transform=function(b,c,d,e,f,g){var h=this._transformMatrix;this._transformMatrix=[h[0]*b+h[2]*c,h[1]*b+h[3]*c,h[0]*d+h[2]*e,h[1]*d+h[3]*e,h[0]*f+h[2]*g+h[4],h[1]*f+h[3]*g+h[5]],a._originalTransform(b,c,d,e,f,g)},a.setTransform=function(b,c,d,e,f,g){this._transformMatrix=[b,c,d,e,f,g],a._originalSetTransform(b,c,d,e,f,g)},a.rotate=function(a){var b=Math.cos(a),c=Math.sin(a),d=this._transformMatrix;this._transformMatrix=[d[0]*b+d[2]*c,d[1]*b+d[3]*c,d[0]*-c+d[2]*b,d[1]*-c+d[3]*b,d[4],d[5]],this._originalRotate(a)})}function e(a){var b,c,d,e,f=1e3,g=a.width,h=a.height,i=g+1,j=new Uint8Array(i*(h+1)),k=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=g+7&-8,m=a.data,n=new Uint8Array(l*h),o=0;for(b=0,e=m.length;e>b;b++)for(var p=128,q=m[b];p>0;)n[o++]=q&p?0:255,p>>=1;var r=0;for(o=0,0!==n[o]&&(j[0]=1,++r),c=1;g>c;c++)n[o]!==n[o+1]&&(j[c]=n[o]?2:1,++r),o++;for(0!==n[o]&&(j[c]=2,++r),b=1;h>b;b++){o=b*l,d=b*i,n[o-l]!==n[o]&&(j[d]=n[o]?1:8,++r);var s=(n[o]?4:0)+(n[o-l]?8:0);for(c=1;g>c;c++)s=(s>>2)+(n[o+1]?4:0)+(n[o-l+1]?8:0),k[s]&&(j[d+c]=k[s],++r),o++;if(n[o-l]!==n[o]&&(j[d+c]=n[o]?2:4,++r),r>f)return null}for(o=l*(h-1),d=b*i,0!==n[o]&&(j[d]=8,++r),c=1;g>c;c++)n[o]!==n[o+1]&&(j[d+c]=n[o]?4:8,++r),o++;if(0!==n[o]&&(j[d+c]=4,++r),r>f)return null;var t=new Int32Array([0,i,-1,0,-i,0,0,0,1]),u=[];for(b=0;r&&h>=b;b++){for(var v=b*i,w=v+g;w>v&&!j[v];)v++;if(v!==w){var x,y=[v%i,b],z=j[v],A=v;do{var B=t[z];do v+=B;while(!j[v]);x=j[v],5!==x&&10!==x?(z=x,j[v]=0):(z=x&51*z>>4,j[v]&=z>>2|z<<2),y.push(v%i),y.push(v/i|0),--r}while(A!==v);u.push(y),--b}}var C=function(a){a.save(),a.scale(1/g,-1/h),a.translate(0,-h),a.beginPath();for(var b=0,c=u.length;c>b;b++){var d=u[b];a.moveTo(d[0],d[1]);for(var e=2,f=d.length;f>e;e+=2)a.lineTo(d[e],d[e+1])}a.fill(),a.beginPath(),a.restore()};return C}Object.defineProperty(b,"__esModule",{value:!0}),b.CanvasGraphics=void 0;var f=c(0),g=c(13),h=c(7),i=16,j=100,k=4096,l=.65,m=!0,n=1e3,o=16,p={get value(){return f.shadow(p,"value",f.isLittleEndian())}},q=function(){function a(a){this.canvasFactory=a,this.cache=Object.create(null)}return a.prototype={getCanvas:function(a,b,c,e){var f;return void 0!==this.cache[a]?(f=this.cache[a],this.canvasFactory.reset(f,b,c),f.context.setTransform(1,0,0,1,0,0)):(f=this.canvasFactory.create(b,c),this.cache[a]=f),e&&d(f.context),f},clear:function(){for(var a in this.cache){var b=this.cache[a];this.canvasFactory.destroy(b),delete this.cache[a]}}},a}(),r=function(){function a(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=f.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=f.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return a.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a,this.y=b}},a}(),s=function(){function a(a,b,c,e,f){this.ctx=a,this.current=new r,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=b,this.objs=c,this.canvasFactory=e,this.imageLayer=f,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new q(this.canvasFactory),a&&d(a),this.cachedGetSinglePixelWidth=null}function b(a,b){if("undefined"!=typeof ImageData&&b instanceof ImageData)return void a.putImageData(b,0,0);var c,d,e,g,h,i=b.height,j=b.width,k=i%o,l=(i-k)/o,m=0===k?l:l+1,n=a.createImageData(j,o),q=0,r=b.data,s=n.data;if(b.kind===f.ImageKind.GRAYSCALE_1BPP){var t=r.byteLength,u=new Uint32Array(s.buffer,0,s.byteLength>>2),v=u.length,w=j+7>>3,x=4294967295,y=p.value?4278190080:255;for(d=0;m>d;d++){for(g=l>d?o:k,c=0,e=0;g>e;e++){for(var z=t-q,A=0,B=z>w?j:8*z-7,C=-8&B,D=0,E=0;C>A;A+=8)E=r[q++],u[c++]=128&E?x:y,u[c++]=64&E?x:y,u[c++]=32&E?x:y,u[c++]=16&E?x:y,u[c++]=8&E?x:y,u[c++]=4&E?x:y,u[c++]=2&E?x:y,u[c++]=1&E?x:y;for(;B>A;A++)0===D&&(E=r[q++],D=128),u[c++]=E&D?x:y,D>>=1}for(;v>c;)u[c++]=0;a.putImageData(n,0,d*o)}}else if(b.kind===f.ImageKind.RGBA_32BPP){for(e=0,h=j*o*4,d=0;l>d;d++)s.set(r.subarray(q,q+h)),q+=h,a.putImageData(n,0,e),e+=o;m>d&&(h=j*k*4,s.set(r.subarray(q,q+h)),a.putImageData(n,0,e))}else{if(b.kind!==f.ImageKind.RGB_24BPP)throw new Error("bad image kind: "+b.kind);for(g=o,h=j*g,d=0;m>d;d++){for(d>=l&&(g=k,h=j*g),c=0,e=h;e--;)s[c++]=r[q++],s[c++]=r[q++],s[c++]=r[q++],s[c++]=255;a.putImageData(n,0,d*o)}}}function c(a,b){for(var c=b.height,d=b.width,e=c%o,f=(c-e)/o,g=0===e?f:f+1,h=a.createImageData(d,o),i=0,j=b.data,k=h.data,l=0;g>l;l++){for(var m=f>l?o:e,n=3,p=0;m>p;p++)for(var q=0,r=0;d>r;r++){if(!q){var s=j[i++];q=128}k[n]=s&q?0:255,n+=4,q>>=1}a.putImageData(h,0,l*o)}}function s(a,b){for(var c=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],d=0,e=c.length;e>d;d++){var f=c[d];void 0!==a[f]&&(b[f]=a[f])}void 0!==a.setLineDash&&(b.setLineDash(a.getLineDash()),b.lineDashOffset=a.lineDashOffset)
}function t(a){a.strokeStyle="#000000",a.fillStyle="#000000",a.fillRule="nonzero",a.globalAlpha=1,a.lineWidth=1,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=10,a.globalCompositeOperation="source-over",a.font="10px sans-serif",void 0!==a.setLineDash&&(a.setLineDash([]),a.lineDashOffset=0)}function u(a,b,c,d){for(var e=a.length,f=3;e>f;f+=4){var g=a[f];if(0===g)a[f-3]=b,a[f-2]=c,a[f-1]=d;else if(255>g){var h=255-g;a[f-3]=a[f-3]*g+b*h>>8,a[f-2]=a[f-2]*g+c*h>>8,a[f-1]=a[f-1]*g+d*h>>8}}}function v(a,b,c){for(var d=a.length,e=1/255,f=3;d>f;f+=4){var g=c?c[a[f]]:a[f];b[f]=b[f]*g*e|0}}function w(a,b,c){for(var d=a.length,e=3;d>e;e+=4){var f=77*a[e-3]+152*a[e-2]+28*a[e-1];b[e]=c?b[e]*c[f>>8]>>8:b[e]*f>>16}}function x(a,b,c,d,e,f,g){var h,i=!!f,j=i?f[0]:0,k=i?f[1]:0,l=i?f[2]:0;h="Luminosity"===e?w:v;for(var m=1048576,n=Math.min(d,Math.ceil(m/c)),o=0;d>o;o+=n){var p=Math.min(n,d-o),q=a.getImageData(0,o,c,p),r=b.getImageData(0,o,c,p);i&&u(q.data,j,k,l),h(q.data,r.data,g),a.putImageData(r,0,o)}}function y(a,b,c){var d=b.canvas,e=b.context;a.setTransform(b.scaleX,0,0,b.scaleY,b.offsetX,b.offsetY);var f=b.backdrop||null;if(!b.transferMap&&h.WebGLUtils.isEnabled){var g=h.WebGLUtils.composeSMask(c.canvas,d,{subtype:b.subtype,backdrop:f});return a.setTransform(1,0,0,1,0,0),void a.drawImage(g,b.offsetX,b.offsetY)}x(e,c,d.width,d.height,b.subtype,f,b.transferMap),a.drawImage(d,0,0)}var z=15,A=10,B=["butt","round","square"],C=["miter","round","bevel"],D={},E={};a.prototype={beginDrawing:function(a){var b=a.transform,c=a.viewport,d=a.transparency,e=a.background,f=void 0===e?null:e,g=this.ctx.canvas.width,h=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=f||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,g,h),this.ctx.restore(),d){var i=this.cachedCanvases.getCanvas("transparent",g,h,!0);this.compositeCtx=this.ctx,this.transparentCanvas=i.canvas,this.ctx=i.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),t(this.ctx),b&&this.ctx.transform.apply(this.ctx,b),this.ctx.transform.apply(this.ctx,c.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(a,b,c,d){var e=a.argsArray,g=a.fnArray,h=b||0,i=e.length;if(i===h)return h;for(var j,k=i-h>A&&"function"==typeof c,l=k?Date.now()+z:0,m=0,n=this.commonObjs,o=this.objs;;){if(void 0!==d&&h===d.nextBreakPoint)return d.breakIt(h,c),h;if(j=g[h],j!==f.OPS.dependency)this[j].apply(this,e[h]);else for(var p=e[h],q=0,r=p.length;r>q;q++){var s=p[q],t="g"===s[0]&&"_"===s[1],u=t?n:o;if(!u.isResolved(s))return u.get(s,c),h}if(h++,h===i)return h;if(k&&++m>A){if(Date.now()>l)return c(),h;m=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),h.WebGLUtils.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(a){this.current.lineWidth=a,this.ctx.lineWidth=a},setLineCap:function(a){this.ctx.lineCap=B[a]},setLineJoin:function(a){this.ctx.lineJoin=C[a]},setMiterLimit:function(a){this.ctx.miterLimit=a},setDash:function(a,b){var c=this.ctx;void 0!==c.setLineDash&&(c.setLineDash(a),c.lineDashOffset=b)},setRenderingIntent:function(){},setFlatness:function(){},setGState:function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b],e=d[0],f=d[1];switch(e){case"LW":this.setLineWidth(f);break;case"LC":this.setLineCap(f);break;case"LJ":this.setLineJoin(f);break;case"ML":this.setMiterLimit(f);break;case"D":this.setDash(f[0],f[1]);break;case"RI":this.setRenderingIntent(f);break;case"FL":this.setFlatness(f);break;case"Font":this.setFont(f[0],f[1]);break;case"CA":this.current.strokeAlpha=d[1];break;case"ca":this.current.fillAlpha=d[1],this.ctx.globalAlpha=d[1];break;case"BM":this.ctx.globalCompositeOperation=f;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=f?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var a=this.current.activeSMask,b=a.canvas.width,c=a.canvas.height,d="smaskGroupAt"+this.groupLevel,e=this.cachedCanvases.getCanvas(d,b,c,!0),f=this.ctx,g=f.mozCurrentTransform;this.ctx.save();var h=e.context;h.scale(1/a.scaleX,1/a.scaleY),h.translate(-a.offsetX,-a.offsetY),h.transform.apply(h,g),a.startTransformInverse=h.mozCurrentTransformInverse,s(f,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(f),this.groupLevel++},suspendSMaskGroup:function(){var a=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),y(this.ctx,this.current.activeSMask,a),this.ctx.restore(),this.ctx.save(),s(a,this.ctx),this.current.resumeSMaskCtx=a;var b=f.Util.transform(this.current.activeSMask.startTransformInverse,a.mozCurrentTransform);this.ctx.transform.apply(this.ctx,b),a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,a.canvas.width,a.canvas.height),a.restore()},resumeSMaskGroup:function(){var a=this.current.resumeSMaskCtx,b=this.ctx;this.ctx=a,this.groupStack.push(b),this.groupLevel++},endSMaskGroup:function(){var a=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),y(this.ctx,this.current.activeSMask,a),this.ctx.restore(),s(a,this.ctx);var b=f.Util.transform(this.current.activeSMask.startTransformInverse,a.mozCurrentTransform);this.ctx.transform.apply(this.ctx,b)},save:function(){this.ctx.save();var a=this.current;this.stateStack.push(a),this.current=a.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this.cachedGetSinglePixelWidth=null)},transform:function(a,b,c,d,e,f){this.ctx.transform(a,b,c,d,e,f),this.cachedGetSinglePixelWidth=null},constructPath:function(a,b){for(var c=this.ctx,d=this.current,e=d.x,g=d.y,h=0,i=0,j=a.length;j>h;h++)switch(0|a[h]){case f.OPS.rectangle:e=b[i++],g=b[i++];var k=b[i++],l=b[i++];0===k&&(k=this.getSinglePixelWidth()),0===l&&(l=this.getSinglePixelWidth());var m=e+k,n=g+l;this.ctx.moveTo(e,g),this.ctx.lineTo(m,g),this.ctx.lineTo(m,n),this.ctx.lineTo(e,n),this.ctx.lineTo(e,g),this.ctx.closePath();break;case f.OPS.moveTo:e=b[i++],g=b[i++],c.moveTo(e,g);break;case f.OPS.lineTo:e=b[i++],g=b[i++],c.lineTo(e,g);break;case f.OPS.curveTo:e=b[i+4],g=b[i+5],c.bezierCurveTo(b[i],b[i+1],b[i+2],b[i+3],e,g),i+=6;break;case f.OPS.curveTo2:c.bezierCurveTo(e,g,b[i],b[i+1],b[i+2],b[i+3]),e=b[i+2],g=b[i+3],i+=4;break;case f.OPS.curveTo3:e=b[i+2],g=b[i+3],c.bezierCurveTo(b[i],b[i+1],e,g,e,g),i+=4;break;case f.OPS.closePath:c.closePath()}d.setCurrentPoint(e,g)},closePath:function(){this.ctx.closePath()},stroke:function(a){a="undefined"!=typeof a?a:!0;var b=this.ctx,c=this.current.strokeColor;b.lineWidth=Math.max(this.getSinglePixelWidth()*l,this.current.lineWidth),b.globalAlpha=this.current.strokeAlpha,c&&c.hasOwnProperty("type")&&"Pattern"===c.type?(b.save(),b.strokeStyle=c.getPattern(b,this),b.stroke(),b.restore()):b.stroke(),a&&this.consumePath(),b.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(a){a="undefined"!=typeof a?a:!0;var b=this.ctx,c=this.current.fillColor,d=this.current.patternFill,e=!1;d&&(b.save(),this.baseTransform&&b.setTransform.apply(b,this.baseTransform),b.fillStyle=c.getPattern(b,this),e=!0),this.pendingEOFill?(b.fill("evenodd"),this.pendingEOFill=!1):b.fill(),e&&b.restore(),a&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=D},eoClip:function(){this.pendingClip=E},beginText:function(){this.current.textMatrix=f.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var a=this.pendingTextPaths,b=this.ctx;if(void 0===a)return void b.beginPath();b.save(),b.beginPath();for(var c=0;c<a.length;c++){var d=a[c];b.setTransform.apply(b,d.transform),b.translate(d.x,d.y),d.addToPath(b,d.fontSize)}b.restore(),b.clip(),b.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(a){this.current.charSpacing=a},setWordSpacing:function(a){this.current.wordSpacing=a},setHScale:function(a){this.current.textHScale=a/100},setLeading:function(a){this.current.leading=-a},setFont:function(a,b){var c=this.commonObjs.get(a),d=this.current;if(!c)throw new Error("Can't find font for "+a);if(d.fontMatrix=c.fontMatrix?c.fontMatrix:f.FONT_IDENTITY_MATRIX,(0===d.fontMatrix[0]||0===d.fontMatrix[3])&&f.warn("Invalid font matrix for font "+a),0>b?(b=-b,d.fontDirection=-1):d.fontDirection=1,this.current.font=c,this.current.fontSize=b,!c.isType3Font){var e=c.loadedName||"sans-serif",g=c.black?"900":c.bold?"bold":"normal",h=c.italic?"italic":"normal",k='"'+e+'", '+c.fallbackName,l=i>b?i:b>j?j:b;this.current.fontSizeScale=b/l;var m=h+" "+g+" "+l+"px "+k;this.ctx.font=m}},setTextRenderingMode:function(a){this.current.textRenderingMode=a},setTextRise:function(a){this.current.textRise=a},moveText:function(a,b){this.current.x=this.current.lineX+=a,this.current.y=this.current.lineY+=b},setLeadingMoveText:function(a,b){this.setLeading(-b),this.moveText(a,b)},setTextMatrix:function(a,b,c,d,e,f){this.current.textMatrix=[a,b,c,d,e,f],this.current.textMatrixScale=Math.sqrt(a*a+b*b),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(a,b,c){var d,e=this.ctx,g=this.current,h=g.font,i=g.textRenderingMode,j=g.fontSize/g.fontSizeScale,k=i&f.TextRenderingMode.FILL_STROKE_MASK,l=!!(i&f.TextRenderingMode.ADD_TO_PATH_FLAG);if((h.disableFontFace||l)&&(d=h.getPathGenerator(this.commonObjs,a)),h.disableFontFace?(e.save(),e.translate(b,c),e.beginPath(),d(e,j),(k===f.TextRenderingMode.FILL||k===f.TextRenderingMode.FILL_STROKE)&&e.fill(),(k===f.TextRenderingMode.STROKE||k===f.TextRenderingMode.FILL_STROKE)&&e.stroke(),e.restore()):((k===f.TextRenderingMode.FILL||k===f.TextRenderingMode.FILL_STROKE)&&e.fillText(a,b,c),(k===f.TextRenderingMode.STROKE||k===f.TextRenderingMode.FILL_STROKE)&&e.strokeText(a,b,c)),l){var m=this.pendingTextPaths||(this.pendingTextPaths=[]);m.push({transform:e.mozCurrentTransform,x:b,y:c,fontSize:j,addToPath:d})}},get isFontSubpixelAAEnabled(){var a=this.canvasFactory.create(10,10).context;a.scale(1.5,1),a.fillText("I",0,10);for(var b=a.getImageData(0,0,10,10).data,c=!1,d=3;d<b.length;d+=4)if(b[d]>0&&b[d]<255){c=!0;break}return f.shadow(this,"isFontSubpixelAAEnabled",c)},showText:function(a){var b=this.current,c=b.font;if(c.isType3Font)return this.showType3Text(a);var d=b.fontSize;if(0!==d){var e=this.ctx,g=b.fontSizeScale,h=b.charSpacing,i=b.wordSpacing,j=b.fontDirection,k=b.textHScale*j,m=a.length,n=c.vertical,o=n?1:-1,p=c.defaultVMetrics,q=d*b.fontMatrix[0],r=b.textRenderingMode===f.TextRenderingMode.FILL&&!c.disableFontFace;e.save(),e.transform.apply(e,b.textMatrix),e.translate(b.x,b.y+b.textRise),b.patternFill&&(e.fillStyle=b.fillColor.getPattern(e,this)),j>0?e.scale(k,-1):e.scale(k,1);var s=b.lineWidth,t=b.textMatrixScale;if(0===t||0===s){var u=b.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;(u===f.TextRenderingMode.STROKE||u===f.TextRenderingMode.FILL_STROKE)&&(this.cachedGetSinglePixelWidth=null,s=this.getSinglePixelWidth()*l)}else s/=t;1!==g&&(e.scale(g,g),s/=g),e.lineWidth=s;var v,w=0;for(v=0;m>v;++v){var x=a[v];if(f.isNum(x))w+=o*x*d/1e3;else{var y,z,A,B,C=!1,D=(x.isSpace?i:0)+h,E=x.fontChar,F=x.accent,G=x.width;if(n){var H,I,J;H=x.vmetric||p,I=x.vmetric?H[1]:.5*G,I=-I*q,J=H[2]*q,G=H?-H[0]:G,y=I/g,z=(w+J)/g}else y=w/g,z=0;if(c.remeasure&&G>0){var K=1e3*e.measureText(E).width/d*g;if(K>G&&this.isFontSubpixelAAEnabled){var L=G/K;C=!0,e.save(),e.scale(L,1),y/=L}else G!==K&&(y+=(G-K)/2e3*d/g)}(x.isInFont||c.missingFile)&&(r&&!F?e.fillText(E,y,z):(this.paintChar(E,y,z),F&&(A=y+F.offset.x/g,B=z-F.offset.y/g,this.paintChar(F.fontChar,A,B))));var M=G*q+D*j;w+=M,C&&e.restore()}}n?b.y-=w*k:b.x+=w*k,e.restore()}},showType3Text:function(a){var b,c,d,e,g=this.ctx,h=this.current,i=h.font,j=h.fontSize,k=h.fontDirection,l=i.vertical?1:-1,m=h.charSpacing,n=h.wordSpacing,o=h.textHScale*k,p=h.fontMatrix||f.FONT_IDENTITY_MATRIX,q=a.length,r=h.textRenderingMode===f.TextRenderingMode.INVISIBLE;if(!r&&0!==j){for(this.cachedGetSinglePixelWidth=null,g.save(),g.transform.apply(g,h.textMatrix),g.translate(h.x,h.y),g.scale(o,k),b=0;q>b;++b)if(c=a[b],f.isNum(c))e=l*c*j/1e3,this.ctx.translate(e,0),h.x+=e*o;else{var s=(c.isSpace?n:0)+m,t=i.charProcOperatorList[c.operatorListId];if(t){this.processingType3=c,this.save(),g.scale(j,j),g.transform.apply(g,p),this.executeOperatorList(t),this.restore();var u=f.Util.applyTransform([c.width,0],p);d=u[0]*j+s,g.translate(d,0),h.x+=d*o}else f.warn('Type3 character "'+c.operatorListId+'" is not available.')}g.restore(),this.processingType3=null}},setCharWidth:function(){},setCharWidthAndBounds:function(a,b,c,d,e,f){this.ctx.rect(c,d,e-c,f-d),this.clip(),this.endPath()},getColorN_Pattern:function(b){var c,d=this;if("TilingPattern"===b[0]){var e=b[1],f=this.baseTransform||this.ctx.mozCurrentTransform.slice(),h={createCanvasGraphics:function(b){return new a(b,d.commonObjs,d.objs,d.canvasFactory)}};c=new g.TilingPattern(b,e,this.ctx,h,f)}else c=g.getShadingPatternFromIR(b);return c},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(a,b,c){var d=f.Util.makeCssRgb(a,b,c);this.ctx.strokeStyle=d,this.current.strokeColor=d},setFillRGBColor:function(a,b,c){var d=f.Util.makeCssRgb(a,b,c);this.ctx.fillStyle=d,this.current.fillColor=d,this.current.patternFill=!1},shadingFill:function(a){var b=this.ctx;this.save();var c=g.getShadingPatternFromIR(a);b.fillStyle=c.getPattern(b,this,!0);var d=b.mozCurrentTransformInverse;if(d){var e=b.canvas,h=e.width,i=e.height,j=f.Util.applyTransform([0,0],d),k=f.Util.applyTransform([0,i],d),l=f.Util.applyTransform([h,0],d),m=f.Util.applyTransform([h,i],d),n=Math.min(j[0],k[0],l[0],m[0]),o=Math.min(j[1],k[1],l[1],m[1]),p=Math.max(j[0],k[0],l[0],m[0]),q=Math.max(j[1],k[1],l[1],m[1]);this.ctx.fillRect(n,o,p-n,q-o)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){throw new Error("Should not call beginInlineImage")},beginImageData:function(){throw new Error("Should not call beginImageData")},paintFormXObjectBegin:function(a,b){if(this.save(),this.baseTransformStack.push(this.baseTransform),f.isArray(a)&&6===a.length&&this.transform.apply(this,a),this.baseTransform=this.ctx.mozCurrentTransform,f.isArray(b)&&4===b.length){var c=b[2]-b[0],d=b[3]-b[1];this.ctx.rect(b[0],b[1],c,d),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(a){this.save();var b=this.ctx;a.isolated||f.info("TODO: Support non-isolated groups."),a.knockout&&f.warn("Knockout groups not supported.");var c=b.mozCurrentTransform;if(a.matrix&&b.transform.apply(b,a.matrix),!a.bbox)throw new Error("Bounding box is required.");var d=f.Util.getAxialAlignedBoundingBox(a.bbox,b.mozCurrentTransform),e=[0,0,b.canvas.width,b.canvas.height];d=f.Util.intersect(d,e)||[0,0,0,0];var g=Math.floor(d[0]),h=Math.floor(d[1]),i=Math.max(Math.ceil(d[2])-g,1),j=Math.max(Math.ceil(d[3])-h,1),l=1,m=1;i>k&&(l=i/k,i=k),j>k&&(m=j/k,j=k);var n="groupAt"+this.groupLevel;a.smask&&(n+="_smask_"+this.smaskCounter++%2);var o=this.cachedCanvases.getCanvas(n,i,j,!0),p=o.context;p.scale(1/l,1/m),p.translate(-g,-h),p.transform.apply(p,c),a.smask?this.smaskStack.push({canvas:o.canvas,context:p,offsetX:g,offsetY:h,scaleX:l,scaleY:m,subtype:a.smask.subtype,backdrop:a.smask.backdrop,transferMap:a.smask.transferMap||null,startTransformInverse:null}):(b.setTransform(1,0,0,1,0,0),b.translate(g,h),b.scale(l,m)),s(b,p),this.ctx=p,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(b),this.groupLevel++,this.current.activeSMask=null},endGroup:function(a){this.groupLevel--;var b=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,a.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(b.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(a,b,c){if(this.save(),t(this.ctx),this.current=new r,f.isArray(a)&&4===a.length){var d=a[2]-a[0],e=a[3]-a[1];this.ctx.rect(a[0],a[1],d,e),this.clip(),this.endPath()}this.transform.apply(this,b),this.transform.apply(this,c)},endAnnotation:function(){this.restore()},paintJpegXObject:function(a,b,c){var d=this.objs.get(a);if(!d)return void f.warn("Dependent image isn't ready yet");this.save();var e=this.ctx;if(e.scale(1/b,-1/c),e.drawImage(d,0,0,d.width,d.height,0,-c,b,c),this.imageLayer){var g=e.mozCurrentTransformInverse,h=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:a,left:h[0],top:h[1],width:b/g[0],height:c/g[3]})}this.restore()},paintImageMaskXObject:function(a){var b=this.ctx,d=a.width,f=a.height,g=this.current.fillColor,h=this.current.patternFill,i=this.processingType3;if(m&&i&&void 0===i.compiled&&(i.compiled=n>=d&&n>=f?e({data:a.data,width:d,height:f}):null),i&&i.compiled)return void i.compiled(b);var j=this.cachedCanvases.getCanvas("maskCanvas",d,f),k=j.context;k.save(),c(k,a),k.globalCompositeOperation="source-in",k.fillStyle=h?g.getPattern(k,this):g,k.fillRect(0,0,d,f),k.restore(),this.paintInlineImageXObject(j.canvas)},paintImageMaskXObjectRepeat:function(a,b,d,e){var f=a.width,g=a.height,h=this.current.fillColor,i=this.current.patternFill,j=this.cachedCanvases.getCanvas("maskCanvas",f,g),k=j.context;k.save(),c(k,a),k.globalCompositeOperation="source-in",k.fillStyle=i?h.getPattern(k,this):h,k.fillRect(0,0,f,g),k.restore();for(var l=this.ctx,m=0,n=e.length;n>m;m+=2)l.save(),l.transform(b,0,0,d,e[m],e[m+1]),l.scale(1,-1),l.drawImage(j.canvas,0,0,f,g,0,-1,1,1),l.restore()},paintImageMaskXObjectGroup:function(a){for(var b=this.ctx,d=this.current.fillColor,e=this.current.patternFill,f=0,g=a.length;g>f;f++){var h=a[f],i=h.width,j=h.height,k=this.cachedCanvases.getCanvas("maskCanvas",i,j),l=k.context;l.save(),c(l,h),l.globalCompositeOperation="source-in",l.fillStyle=e?d.getPattern(l,this):d,l.fillRect(0,0,i,j),l.restore(),b.save(),b.transform.apply(b,h.transform),b.scale(1,-1),b.drawImage(k.canvas,0,0,i,j,0,-1,1,1),b.restore()}},paintImageXObject:function(a){var b=this.objs.get(a);return b?void this.paintInlineImageXObject(b):void f.warn("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(a,b,c,d){var e=this.objs.get(a);if(!e)return void f.warn("Dependent image isn't ready yet");for(var g=e.width,h=e.height,i=[],j=0,k=d.length;k>j;j+=2)i.push({transform:[b,0,0,c,d[j],d[j+1]],x:0,y:0,w:g,h:h});this.paintInlineImageXObjectGroup(e,i)},paintInlineImageXObject:function(a){var c=a.width,d=a.height,e=this.ctx;this.save(),e.scale(1/c,-1/d);var f,g,h=e.mozCurrentTransformInverse,i=h[0],j=h[1],k=Math.max(Math.sqrt(i*i+j*j),1),l=h[2],m=h[3],n=Math.max(Math.sqrt(l*l+m*m),1);if(a instanceof HTMLElement||!a.data)f=a;else{g=this.cachedCanvases.getCanvas("inlineImage",c,d);var o=g.context;b(o,a),f=g.canvas}for(var p=c,q=d,r="prescale1";k>2&&p>1||n>2&&q>1;){var s=p,t=q;k>2&&p>1&&(s=Math.ceil(p/2),k/=p/s),n>2&&q>1&&(t=Math.ceil(q/2),n/=q/t),g=this.cachedCanvases.getCanvas(r,s,t),o=g.context,o.clearRect(0,0,s,t),o.drawImage(f,0,0,p,q,0,0,s,t),f=g.canvas,p=s,q=t,r="prescale1"===r?"prescale2":"prescale1"}if(e.drawImage(f,0,0,p,q,0,-d,c,d),this.imageLayer){var u=this.getCanvasPosition(0,-d);this.imageLayer.appendImage({imgData:a,left:u[0],top:u[1],width:c/h[0],height:d/h[3]})}this.restore()},paintInlineImageXObjectGroup:function(a,c){var d=this.ctx,e=a.width,f=a.height,g=this.cachedCanvases.getCanvas("inlineImage",e,f),h=g.context;b(h,a);for(var i=0,j=c.length;j>i;i++){var k=c[i];if(d.save(),d.transform.apply(d,k.transform),d.scale(1,-1),d.drawImage(g.canvas,k.x,k.y,k.w,k.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(k.x,k.y);this.imageLayer.appendImage({imgData:a,left:l[0],top:l[1],width:e,height:f})}d.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){f.warn("Unsupported 'paintXObject' command.")},markPoint:function(){},markPointProps:function(){},beginMarkedContent:function(){},beginMarkedContentProps:function(){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var a=this.ctx;this.pendingClip&&(this.pendingClip===E?a.clip("evenodd"):a.clip(),this.pendingClip=null),a.beginPath()},getSinglePixelWidth:function(){if(null===this.cachedGetSinglePixelWidth){this.ctx.save();var a=this.ctx.mozCurrentTransformInverse;this.ctx.restore(),this.cachedGetSinglePixelWidth=Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3]))}return this.cachedGetSinglePixelWidth},getCanvasPosition:function(a,b){var c=this.ctx.mozCurrentTransform;return[c[0]*a+c[2]*b+c[4],c[1]*a+c[3]*b+c[5]]}};for(var F in f.OPS)a.prototype[f.OPS[F]]=a.prototype[F];return a}();b.CanvasGraphics=s},function(a,b,c){"use strict";function d(a){this.docId=a,this.styleElement=null,this.nativeFontFaces=[],this.loadTestFontId=0,this.loadingContext={requests:[],nextRequestId:0}}Object.defineProperty(b,"__esModule",{value:!0}),b.FontLoader=b.FontFaceObject=void 0;var e=c(0);d.prototype={insertRule:function(a){var b=this.styleElement;b||(b=this.styleElement=document.createElement("style"),b.id="PDFJS_FONT_STYLE_TAG_"+this.docId,document.documentElement.getElementsByTagName("head")[0].appendChild(b));var c=b.sheet;c.insertRule(a,c.cssRules.length)},clear:function(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null),this.nativeFontFaces.forEach(function(a){document.fonts.delete(a)}),this.nativeFontFaces.length=0}};var f=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};Object.defineProperty(d.prototype,"loadTestFont",{get:function(){return e.shadow(this,"loadTestFont",f())},configurable:!0}),d.prototype.addNativeFontFace=function(a){this.nativeFontFaces.push(a),document.fonts.add(a)},d.prototype.bind=function(a,b){for(var c=[],f=[],g=[],h=function(a){return a.loaded.catch(function(b){e.warn('Failed to load font "'+a.family+'": '+b)})},i=d.isFontLoadingAPISupported&&!d.isSyncFontLoadingSupported,j=0,k=a.length;k>j;j++){var l=a[j];if(!l.attached&&l.loading!==!1)if(l.attached=!0,i){var m=l.createNativeFontFace();m&&(this.addNativeFontFace(m),g.push(h(m)))}else{var n=l.createFontFaceRule();n&&(this.insertRule(n),c.push(n),f.push(l))}}var o=this.queueLoadingCallback(b);i?Promise.all(g).then(function(){o.complete()}):c.length>0&&!d.isSyncFontLoadingSupported?this.prepareFontLoadEvent(c,f,o):o.complete()},d.prototype.queueLoadingCallback=function(a){function b(){for(e.assert(!f.end,"completeRequest() cannot be called twice"),f.end=Date.now();c.requests.length>0&&c.requests[0].end;){var a=c.requests.shift();setTimeout(a.callback,0)}}var c=this.loadingContext,d="pdfjs-font-loading-"+c.nextRequestId++,f={id:d,complete:b,callback:a,started:Date.now()};return c.requests.push(f),f},d.prototype.prepareFontLoadEvent=function(a,b,c){function d(a,b){return a.charCodeAt(b)<<24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|255&a.charCodeAt(b+3)}function f(a,b,c,d){var e=a.substr(0,b),f=a.substr(b+c);return e+d+f}function g(a,b){if(l++,l>30)return e.warn("Load test font never loaded."),void b();k.font="30px "+a,k.fillText(".",0,20);var c=k.getImageData(0,0,1,1);return c.data[3]>0?void b():void setTimeout(g.bind(null,a,b))}var h,i,j=document.createElement("canvas");j.width=1,j.height=1;var k=j.getContext("2d"),l=0,m="lt"+Date.now()+this.loadTestFontId++,n=this.loadTestFont,o=976;n=f(n,o,m.length,m);var p=16,q=1482184792,r=d(n,p);for(h=0,i=m.length-3;i>h;h+=4)r=r-q+d(m,h)|0;h<m.length&&(r=r-q+d(m+"XXX",h)|0),n=f(n,p,4,e.string32(r));var s="url(data:font/opentype;base64,"+btoa(n)+");",t='@font-face { font-family:"'+m+'";src:'+s+"}";this.insertRule(t);var u=[];for(h=0,i=b.length;i>h;h++)u.push(b[h].loadedName);u.push(m);var v=document.createElement("div");for(v.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),h=0,i=u.length;i>h;++h){var w=document.createElement("span");w.textContent="Hi",w.style.fontFamily=u[h],v.appendChild(w)}document.body.appendChild(v),g(m,function(){document.body.removeChild(v),c.complete()})},d.isFontLoadingAPISupported="undefined"!=typeof document&&!!document.fonts;var g=function(){if("undefined"==typeof navigator)return!0;var a=!1,b=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);return b&&b[1]>=14&&(a=!0),a};Object.defineProperty(d,"isSyncFontLoadingSupported",{get:function(){return e.shadow(d,"isSyncFontLoadingSupported",g())},enumerable:!0,configurable:!0});var h={get value(){return e.shadow(this,"value",e.isEvalSupported())}},i=function(){function a(a,b){this.compiledGlyphs=Object.create(null);for(var c in a)this[c]=a[c];this.options=b}return a.prototype={createNativeFontFace:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var a=new FontFace(this.loadedName,this.data,{});return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this),a},createFontFaceRule:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var a=e.bytesToString(new Uint8Array(this.data)),b=this.loadedName,c="url(data:"+this.mimetype+";base64,"+btoa(a)+");",d='@font-face { font-family:"'+b+'";src:'+c+"}";return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this,c),d},getPathGenerator:function(a,b){if(!(b in this.compiledGlyphs)){var c,d,e,f=a.get(this.loadedName+"_path_"+b);if(this.options.isEvalSupported&&h.value){var g,i="";for(d=0,e=f.length;e>d;d++)c=f[d],g=void 0!==c.args?c.args.join(","):"",i+="c."+c.cmd+"("+g+");\n";this.compiledGlyphs[b]=new Function("c","size",i)}else this.compiledGlyphs[b]=function(a,b){for(d=0,e=f.length;e>d;d++)c=f[d],"scale"===c.cmd&&(c.args=[b,-b]),a[c.cmd].apply(a,c.args)}}return this.compiledGlyphs[b]}},a}();b.FontFaceObject=i,b.FontLoader=d},function(a,b,c){"use strict";function d(a){var b=g[a[0]];if(!b)throw new Error("Unknown IR type: "+a[0]);return b.fromIR(a)}Object.defineProperty(b,"__esModule",{value:!0}),b.TilingPattern=b.getShadingPatternFromIR=void 0;var e=c(0),f=c(7),g={};g.RadialAxial={fromIR:function(a){var b=a[1],c=a[2],d=a[3],e=a[4],f=a[5],g=a[6];return{type:"Pattern",getPattern:function(a){var h;"axial"===b?h=a.createLinearGradient(d[0],d[1],e[0],e[1]):"radial"===b&&(h=a.createRadialGradient(d[0],d[1],f,e[0],e[1],g));for(var i=0,j=c.length;j>i;++i){var k=c[i];h.addColorStop(k[0],k[1])}return h}}}};var h=function(){function a(a,b,c,d,e,f,g,h){var i,j=b.coords,k=b.colors,l=a.data,m=4*a.width;j[c+1]>j[d+1]&&(i=c,c=d,d=i,i=f,f=g,g=i),j[d+1]>j[e+1]&&(i=d,d=e,e=i,i=g,g=h,h=i),j[c+1]>j[d+1]&&(i=c,c=d,d=i,i=f,f=g,g=i);var n=(j[c]+b.offsetX)*b.scaleX,o=(j[c+1]+b.offsetY)*b.scaleY,p=(j[d]+b.offsetX)*b.scaleX,q=(j[d+1]+b.offsetY)*b.scaleY,r=(j[e]+b.offsetX)*b.scaleX,s=(j[e+1]+b.offsetY)*b.scaleY;if(!(o>=s))for(var t,u,v,w,x,y,z,A,B,C=k[f],D=k[f+1],E=k[f+2],F=k[g],G=k[g+1],H=k[g+2],I=k[h],J=k[h+1],K=k[h+2],L=Math.round(o),M=Math.round(s),N=L;M>=N;N++){q>N?(B=o>N?0:o===q?1:(o-N)/(o-q),t=n-(n-p)*B,u=C-(C-F)*B,v=D-(D-G)*B,w=E-(E-H)*B):(B=N>s?1:q===s?0:(q-N)/(q-s),t=p-(p-r)*B,u=F-(F-I)*B,v=G-(G-J)*B,w=H-(H-K)*B),B=o>N?0:N>s?1:(o-N)/(o-s),x=n-(n-r)*B,y=C-(C-I)*B,z=D-(D-J)*B,A=E-(E-K)*B;for(var O=Math.round(Math.min(t,x)),P=Math.round(Math.max(t,x)),Q=m*N+4*O,R=O;P>=R;R++)B=(t-R)/(t-x),B=0>B?0:B>1?1:B,l[Q++]=u-(u-y)*B|0,l[Q++]=v-(v-z)*B|0,l[Q++]=w-(w-A)*B|0,l[Q++]=255}}function b(b,c,d){var e,f,g=c.coords,h=c.colors;switch(c.type){case"lattice":var i=c.verticesPerRow,j=Math.floor(g.length/i)-1,k=i-1;for(e=0;j>e;e++)for(var l=e*i,m=0;k>m;m++,l++)a(b,d,g[l],g[l+1],g[l+i],h[l],h[l+1],h[l+i]),a(b,d,g[l+i+1],g[l+1],g[l+i],h[l+i+1],h[l+1],h[l+i]);break;case"triangles":for(e=0,f=g.length;f>e;e+=3)a(b,d,g[e],g[e+1],g[e+2],h[e],h[e+1],h[e+2]);break;default:throw new Error("illegal figure")}}function c(a,c,d,e,g,h,i){var j,k,l,m,n=1.1,o=3e3,p=2,q=Math.floor(a[0]),r=Math.floor(a[1]),s=Math.ceil(a[2])-q,t=Math.ceil(a[3])-r,u=Math.min(Math.ceil(Math.abs(s*c[0]*n)),o),v=Math.min(Math.ceil(Math.abs(t*c[1]*n)),o),w=s/u,x=t/v,y={coords:d,colors:e,offsetX:-q,offsetY:-r,scaleX:1/w,scaleY:1/x},z=u+2*p,A=v+2*p;if(f.WebGLUtils.isEnabled)j=f.WebGLUtils.drawFigures(u,v,h,g,y),k=i.getCanvas("mesh",z,A,!1),k.context.drawImage(j,p,p),j=k.canvas;else{k=i.getCanvas("mesh",z,A,!1);var B=k.context,C=B.createImageData(u,v);if(h){var D=C.data;for(l=0,m=D.length;m>l;l+=4)D[l]=h[0],D[l+1]=h[1],D[l+2]=h[2],D[l+3]=255}for(l=0;l<g.length;l++)b(C,g[l],y);B.putImageData(C,p,p),j=k.canvas}return{canvas:j,offsetX:q-p*w,offsetY:r-p*x,scaleX:w,scaleY:x}}return c}();g.Mesh={fromIR:function(a){var b=a[2],c=a[3],d=a[4],f=a[5],g=a[6],i=a[8];return{type:"Pattern",getPattern:function(a,j,k){var l;if(k)l=e.Util.singularValueDecompose2dScale(a.mozCurrentTransform);else if(l=e.Util.singularValueDecompose2dScale(j.baseTransform),g){var m=e.Util.singularValueDecompose2dScale(g);l=[l[0]*m[0],l[1]*m[1]]}var n=h(f,l,b,c,d,k?null:i,j.cachedCanvases);return k||(a.setTransform.apply(a,j.baseTransform),g&&a.transform.apply(a,g)),a.translate(n.offsetX,n.offsetY),a.scale(n.scaleX,n.scaleY),a.createPattern(n.canvas,"no-repeat")}}}},g.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"
}}}};var i=function(){function a(a,b,c,d,e){this.operatorList=a[2],this.matrix=a[3]||[1,0,0,1,0,0],this.bbox=a[4],this.xstep=a[5],this.ystep=a[6],this.paintType=a[7],this.tilingType=a[8],this.color=b,this.canvasGraphicsFactory=d,this.baseTransform=e,this.type="Pattern",this.ctx=c}var b={COLORED:1,UNCOLORED:2},c=3e3;return a.prototype={createPatternCanvas:function(a){var b=this.operatorList,d=this.bbox,f=this.xstep,g=this.ystep,h=this.paintType,i=this.tilingType,j=this.color,k=this.canvasGraphicsFactory;e.info("TilingType: "+i);var l=d[0],m=d[1],n=d[2],o=d[3],p=[l,m],q=[l+f,m+g],r=q[0]-p[0],s=q[1]-p[1],t=e.Util.singularValueDecompose2dScale(this.matrix),u=e.Util.singularValueDecompose2dScale(this.baseTransform),v=[t[0]*u[0],t[1]*u[1]];r=Math.min(Math.ceil(Math.abs(r*v[0])),c),s=Math.min(Math.ceil(Math.abs(s*v[1])),c);var w=a.cachedCanvases.getCanvas("pattern",r,s,!0),x=w.context,y=k.createCanvasGraphics(x);y.groupLevel=a.groupLevel,this.setFillAndStrokeStyleToContext(x,h,j),this.setScale(r,s,f,g),this.transformToScale(y);var z=[1,0,0,1,-p[0],-p[1]];return y.transform.apply(y,z),this.clipBbox(y,d,l,m,n,o),y.executeOperatorList(b),w.canvas},setScale:function(a,b,c,d){this.scale=[a/c,b/d]},transformToScale:function(a){var b=this.scale,c=[b[0],0,0,b[1],0,0];a.transform.apply(a,c)},scaleToContext:function(){var a=this.scale;this.ctx.scale(1/a[0],1/a[1])},clipBbox:function(a,b,c,d,f,g){if(e.isArray(b)&&4===b.length){var h=f-c,i=g-d;a.ctx.rect(c,d,h,i),a.clip(),a.endPath()}},setFillAndStrokeStyleToContext:function(a,c,d){switch(c){case b.COLORED:var f=this.ctx;a.fillStyle=f.fillStyle,a.strokeStyle=f.strokeStyle;break;case b.UNCOLORED:var g=e.Util.makeCssRgb(d[0],d[1],d[2]);a.fillStyle=g,a.strokeStyle=g;break;default:throw new e.FormatError("Unsupported paint type: "+c)}},getPattern:function(a,b){var c=this.createPatternCanvas(b);return a=this.ctx,a.setTransform.apply(a,this.baseTransform),a.transform.apply(a,this.matrix),this.scaleToContext(),a.createPattern(c,"repeat")}},a}();b.getShadingPatternFromIR=d,b.TilingPattern=i},function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.PDFDataTransportStream=void 0;var d=c(0),e=function(){function a(a,b){var c=this;d.assert(b),this._queuedChunks=[];var e=a.initialData;if(e&&e.length>0){var f=new Uint8Array(e).buffer;this._queuedChunks.push(f)}this._pdfDataRangeTransport=b,this._isRangeSupported=!a.disableRange,this._isStreamingSupported=!a.disableStream,this._contentLength=a.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(a,b){c._onReceiveData({begin:a,chunk:b})}),this._pdfDataRangeTransport.addProgressListener(function(a){c._onProgress({loaded:a})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(a){c._onReceiveData({chunk:a})}),this._pdfDataRangeTransport.transportReady()}function b(a,b){this._stream=a,this._done=!1,this._queuedChunks=b||[],this._requests=[],this._headersReady=Promise.resolve(),a._fullRequestReader=this,this.onProgress=null}function c(a,b,c){this._stream=a,this._begin=b,this._end=c,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return a.prototype={_onReceiveData:function(a){var b=new Uint8Array(a.chunk).buffer;if(void 0===a.begin)this._fullRequestReader?this._fullRequestReader._enqueue(b):this._queuedChunks.push(b);else{var c=this._rangeReaders.some(function(c){return c._begin!==a.begin?!1:(c._enqueue(b),!0)});d.assert(c)}},_onProgress:function(a){if(this._rangeReaders.length>0){var b=this._rangeReaders[0];b.onProgress&&b.onProgress({loaded:a.loaded})}},_removeRangeReader:function(a){var b=this._rangeReaders.indexOf(a);b>=0&&this._rangeReaders.splice(b,1)},getFullReader:function(){d.assert(!this._fullRequestReader);var a=this._queuedChunks;return this._queuedChunks=null,new b(this,a)},getRangeReader:function(a,b){var d=new c(this,a,b);return this._pdfDataRangeTransport.requestDataRange(a,b),this._rangeReaders.push(d),d},cancelAllRequests:function(a){this._fullRequestReader&&this._fullRequestReader.cancel(a);var b=this._rangeReaders.slice(0);b.forEach(function(b){b.cancel(a)}),this._pdfDataRangeTransport.abort()}},b.prototype={_enqueue:function(a){if(!this._done){if(this._requests.length>0){var b=this._requests.shift();return void b.resolve({value:a,done:!1})}this._queuedChunks.push(a)}},get headersReady(){return this._headersReady},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:function(){if(this._queuedChunks.length>0){var a=this._queuedChunks.shift();return Promise.resolve({value:a,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var b=d.createPromiseCapability();return this._requests.push(b),b.promise},cancel:function(){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[]}},c.prototype={_enqueue:function(a){if(!this._done){if(0===this._requests.length)this._queuedChunk=a;else{var b=this._requests.shift();b.resolve({value:a,done:!1}),this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}},get isStreamingSupported(){return!1},read:function(){if(this._queuedChunk){var a=this._queuedChunk;return this._queuedChunk=null,Promise.resolve({value:a,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var b=d.createPromiseCapability();return this._requests.push(b),b.promise},cancel:function(){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},a}();b.PDFDataTransportStream=e},function(a,b,c){"use strict";var d=c(0),e=c(8),f=c(2),g=c(5),h=c(3),i=c(1),j=c(4);c(9),b.PDFJS=e.PDFJS,b.build=f.build,b.version=f.version,b.getDocument=f.getDocument,b.LoopbackPort=f.LoopbackPort,b.PDFDataRangeTransport=f.PDFDataRangeTransport,b.PDFWorker=f.PDFWorker,b.renderTextLayer=g.renderTextLayer,b.AnnotationLayer=h.AnnotationLayer,b.CustomStyle=i.CustomStyle,b.createPromiseCapability=d.createPromiseCapability,b.PasswordResponses=d.PasswordResponses,b.InvalidPDFException=d.InvalidPDFException,b.MissingPDFException=d.MissingPDFException,b.SVGGraphics=j.SVGGraphics,b.NativeImageDecoding=d.NativeImageDecoding,b.UnexpectedResponseException=d.UnexpectedResponseException,b.OPS=d.OPS,b.UNSUPPORTED_FEATURES=d.UNSUPPORTED_FEATURES,b.isValidUrl=i.isValidUrl,b.createValidAbsoluteUrl=d.createValidAbsoluteUrl,b.createObjectURL=d.createObjectURL,b.removeNullCharacters=d.removeNullCharacters,b.shadow=d.shadow,b.createBlob=d.createBlob,b.RenderingCancelledException=i.RenderingCancelledException,b.getFilenameFromUrl=i.getFilenameFromUrl,b.addLinkAttributes=i.addLinkAttributes,b.StatTimer=d.StatTimer},function(){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};if("undefined"==typeof PDFJS||!PDFJS.compatibilityChecked){var b="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{},c="undefined"!=typeof navigator&&navigator.userAgent||"",d=/Android/.test(c),e=/Android\s[0-2][^\d]/.test(c),f=/Android\s[0-4][^\d]/.test(c),g=c.indexOf("Chrom")>=0,h=/Chrome\/(39|40)\./.test(c),i=c.indexOf("CriOS")>=0,j=c.indexOf("Trident")>=0,k=/\b(iPad|iPhone|iPod)(?=;)/.test(c),l=c.indexOf("Opera")>=0,m=/Safari\//.test(c)&&!/(Chrome\/|Android\s)/.test(c),n="object"===("undefined"==typeof window?"undefined":a(window))&&"object"===("undefined"==typeof document?"undefined":a(document));"undefined"==typeof PDFJS&&(b.PDFJS={}),PDFJS.compatibilityChecked=!0,function(){function c(a,b){return new h(this.slice(a,b))}function d(a,b){arguments.length<2&&(b=0);for(var c=0,d=a.length;d>c;++c,++b)this[b]=255&a[c]}function e(a,b){this.buffer=a,this.byteLength=a.length,this.length=b,g(this.length)}function f(a){return{get:function(){var b=this.buffer,c=a<<2;return(b[c]|b[c+1]<<8|b[c+2]<<16|b[c+3]<<24)>>>0},set:function(b){var c=this.buffer,d=a<<2;c[d]=255&b,c[d+1]=b>>8&255,c[d+2]=b>>16&255,c[d+3]=b>>>24&255}}}function g(a){for(;a>i;)Object.defineProperty(e.prototype,i,f(i)),i++}function h(b){var e,f,g;if("number"==typeof b)for(e=[],f=0;b>f;++f)e[f]=0;else if("slice"in b)e=b.slice(0);else for(e=[],f=0,g=b.length;g>f;++f)e[f]=b[f];return e.subarray=c,e.buffer=e,e.byteLength=e.length,e.set=d,"object"===("undefined"==typeof b?"undefined":a(b))&&b.buffer&&(e.buffer=b.buffer),e}if("undefined"!=typeof Uint8Array)return"undefined"==typeof Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(a,b){return new Uint8Array(this.slice(a,b))},Float32Array.prototype.subarray=function(a,b){return new Float32Array(this.slice(a,b))}),void("undefined"==typeof Float64Array&&(b.Float64Array=Float32Array));e.prototype=Object.create(null);var i=0;b.Uint8Array=h,b.Int8Array=h,b.Int32Array=h,b.Uint16Array=h,b.Float32Array=h,b.Float64Array=h,b.Uint32Array=function(){if(3===arguments.length){if(0!==arguments[1])throw new Error("offset !== 0 is not supported");return new e(arguments[0],arguments[2])}return h.apply(this,arguments)}}(),function(){if(n&&window.CanvasPixelArray){var a=window.CanvasPixelArray.prototype;"buffer"in a||(Object.defineProperty(a,"buffer",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(a,"byteLength",{get:function(){return this.length},enumerable:!1,configurable:!0}))}}(),function(){b.URL||(b.URL=b.webkitURL)}(),function(){if("undefined"!=typeof Object.defineProperty){var a=!0;try{n&&Object.defineProperty(new Image,"id",{value:"test"});var b=function(){};b.prototype={get id(){}},Object.defineProperty(new b,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(c){a=!1}if(a)return}Object.defineProperty=function(a,b,c){delete a[b],"get"in c&&a.__defineGetter__(b,c.get),"set"in c&&a.__defineSetter__(b,c.set),"value"in c&&(a.__defineSetter__(b,function(a){return this.__defineGetter__(b,function(){return a}),a}),a[b]=c.value)}}(),function(){if("undefined"!=typeof XMLHttpRequest){var a=XMLHttpRequest.prototype,b=new XMLHttpRequest;if("overrideMimeType"in b||Object.defineProperty(a,"overrideMimeType",{value:function(){}}),!("responseType"in b))return Object.defineProperty(a,"responseType",{get:function(){return this._responseType||"text"},set:function(a){("text"===a||"arraybuffer"===a)&&(this._responseType=a,"arraybuffer"===a&&"function"==typeof this.overrideMimeType&&this.overrideMimeType("text/plain; charset=x-user-defined"))}}),"undefined"!=typeof VBArray?void Object.defineProperty(a,"response",{get:function(){return"arraybuffer"===this.responseType?new Uint8Array(new VBArray(this.responseBody).toArray()):this.responseText}}):void Object.defineProperty(a,"response",{get:function(){if("arraybuffer"!==this.responseType)return this.responseText;var a,b=this.responseText,c=b.length,d=new Uint8Array(c);for(a=0;c>a;++a)d[a]=255&b.charCodeAt(a);return d.buffer}})}}(),function(){if(!("btoa"in b)){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";b.btoa=function(b){var c,d,e="";for(c=0,d=b.length;d>c;c+=3){var f=255&b.charCodeAt(c),g=255&b.charCodeAt(c+1),h=255&b.charCodeAt(c+2),i=f>>2,j=(3&f)<<4|g>>4,k=d>c+1?(15&g)<<2|h>>6:64,l=d>c+2?63&h:64;e+=a.charAt(i)+a.charAt(j)+a.charAt(k)+a.charAt(l)}return e}}}(),function(){if(!("atob"in b)){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";b.atob=function(b){if(b=b.replace(/=+$/,""),b.length%4===1)throw new Error("bad atob input");for(var c,d,e=0,f=0,g="";d=b.charAt(f++);~d&&(c=e%4?64*c+d:d,e++%4)?g+=String.fromCharCode(255&c>>(-2*e&6)):0)d=a.indexOf(d);return g}}}(),function(){"undefined"==typeof Function.prototype.bind&&(Function.prototype.bind=function(a){var b=this,c=Array.prototype.slice.call(arguments,1),d=function(){var d=c.concat(Array.prototype.slice.call(arguments));return b.apply(a,d)};return d})}(),function(){if(n){var a=document.createElement("div");"dataset"in a||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var a={},b=0,c=this.attributes.length;c>b;b++){var d=this.attributes[b];if("data-"===d.name.substring(0,5)){var e=d.name.substring(5).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});a[e]=d.value}}return Object.defineProperty(this,"_dataset",{value:a,writable:!1,enumerable:!1}),a},enumerable:!0})}}(),function(){function a(a,b,c,d){var e=a.className||"",f=e.split(/\s+/g);""===f[0]&&f.shift();var g=f.indexOf(b);return 0>g&&c&&f.push(b),g>=0&&d&&f.splice(g,1),a.className=f.join(" "),g>=0}if(n){var b=document.createElement("div");if(!("classList"in b)){var c={add:function(b){a(this.element,b,!0,!1)},contains:function(b){return a(this.element,b,!1,!1)},remove:function(b){a(this.element,b,!1,!0)},toggle:function(b){a(this.element,b,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var a=Object.create(c,{element:{value:this,writable:!1,enumerable:!0}});return Object.defineProperty(this,"_classList",{value:a,writable:!1,enumerable:!1}),a},enumerable:!0})}}}(),function(){if(!("undefined"==typeof importScripts||"console"in b)){var a={},c={log:function(){var a=Array.prototype.slice.call(arguments);b.postMessage({targetName:"main",action:"console_log",data:a})},error:function(){var a=Array.prototype.slice.call(arguments);b.postMessage({targetName:"main",action:"console_error",data:a})},time:function(b){a[b]=Date.now()},timeEnd:function(b){var c=a[b];if(!c)throw new Error("Unknown timer name "+b);this.log("Timer:",b,Date.now()-c)}};b.console=c}}(),function(){return n?"console"in window?"bind"in console.log?void 0:(console.log=function(a){return function(b){return a(b)}}(console.log),console.error=function(a){return function(b){return a(b)}}(console.error),void(console.warn=function(a){return function(b){return a(b)}}(console.warn))):void(window.console={log:function(){},error:function(){},warn:function(){}}):void 0}(),function(){function a(a){b(a.target)&&a.stopPropagation()}function b(a){return a.disabled||a.parentNode&&b(a.parentNode)}l&&document.addEventListener("click",a,!0)}(),function(){(j||i)&&(PDFJS.disableCreateObjectURL=!0)}(),function(){"undefined"!=typeof navigator&&("language"in navigator||(PDFJS.locale=navigator.userLanguage||"en-US"))}(),function(){(m||e||h||k)&&(PDFJS.disableRange=!0,PDFJS.disableStream=!0)}(),function(){n&&(!history.pushState||e)&&(PDFJS.disableHistory=!0)}(),function(){if(n)if(window.CanvasPixelArray)"function"!=typeof window.CanvasPixelArray.prototype.set&&(window.CanvasPixelArray.prototype.set=function(a){for(var b=0,c=this.length;c>b;b++)this[b]=a[b]});else{var a,b=!1;if(g?(a=c.match(/Chrom(e|ium)\/([0-9]+)\./),b=a&&parseInt(a[2])<21):d?b=f:m&&(a=c.match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//),b=a&&parseInt(a[1])<6),b){var e=window.CanvasRenderingContext2D.prototype,h=e.createImageData;e.createImageData=function(a,b){var c=h.call(this,a,b);return c.data.set=function(a){for(var b=0,c=this.length;c>b;b++)this[b]=a[b]},c},e=null}}}(),function(){function a(){window.requestAnimationFrame=function(a){return window.setTimeout(a,20)},window.cancelAnimationFrame=function(a){window.clearTimeout(a)}}if(n)return k?void a():void("requestAnimationFrame"in window||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame,window.requestAnimationFrame||a()))}(),function(){(k||d)&&(PDFJS.maxCanvasPixels=5242880)}(),function(){n&&j&&window.parent!==window&&(PDFJS.disableFullscreen=!0)}(),function(){n&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var a=document.getElementsByTagName("script");return a[a.length-1]},enumerable:!0,configurable:!0}))}(),function(){if(n){var a=document.createElement("input");try{a.type="number"}catch(b){var c=a.constructor.prototype,d=Object.getOwnPropertyDescriptor(c,"type");Object.defineProperty(c,"type",{get:function(){return d.get.call(this)},set:function(a){d.set.call(this,"number"===a?"text":a)},enumerable:!0,configurable:!0})}}}(),function(){if(n&&document.attachEvent){var a=document.constructor.prototype,b=Object.getOwnPropertyDescriptor(a,"readyState");Object.defineProperty(a,"readyState",{get:function(){var a=b.get.call(this);return"interactive"===a?"loading":a},set:function(a){b.set.call(this,a)},enumerable:!0,configurable:!0})}}(),function(){n&&"undefined"==typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){Number.isNaN||(Number.isNaN=function(a){return"number"==typeof a&&isNaN(a)})}(),function(){Number.isInteger||(Number.isInteger=function(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a})}(),function(){if(b.Promise)return"function"!=typeof b.Promise.all&&(b.Promise.all=function(a){var c,d,e=0,f=[],g=new b.Promise(function(a,b){c=a,d=b});return a.forEach(function(a,b){e++,a.then(function(a){f[b]=a,e--,0===e&&c(f)},d)}),0===e&&c(f),g}),"function"!=typeof b.Promise.resolve&&(b.Promise.resolve=function(a){return new b.Promise(function(b){b(a)})}),"function"!=typeof b.Promise.reject&&(b.Promise.reject=function(a){return new b.Promise(function(b,c){c(a)})}),void("function"!=typeof b.Promise.prototype.catch&&(b.Promise.prototype.catch=function(a){return b.Promise.prototype.then(void 0,a)}));var a=0,c=1,d=2,e=500,f={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(b){b._status!==a&&(this.handlers=this.handlers.concat(b._handlers),b._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(var a=1,b=Date.now()+a;this.handlers.length>0;){var e=this.handlers.shift(),f=e.thisPromise._status,g=e.thisPromise._value;try{f===c?"function"==typeof e.onResolve&&(g=e.onResolve(g)):"function"==typeof e.onReject&&(g=e.onReject(g),f=c,e.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(e.thisPromise))}catch(h){f=d,g=h}if(e.nextPromise._updateStatus(f,g),Date.now()>=b)break}return this.handlers.length>0?void setTimeout(this.runHandlers.bind(this),0):void(this.running=!1)},addUnhandledRejection:function(a){this.unhandledRejections.push({promise:a,time:Date.now()}),this.scheduleRejectionCheck()},removeUnhandeledRejection:function(a){a._unhandledRejection=!1;for(var b=0;b<this.unhandledRejections.length;b++)this.unhandledRejections[b].promise===a&&(this.unhandledRejections.splice(b),b--)},scheduleRejectionCheck:function(){var a=this;this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){a.pendingRejectionCheck=!1;for(var b=Date.now(),c=0;c<a.unhandledRejections.length;c++)if(b-a.unhandledRejections[c].time>e){var d=a.unhandledRejections[c].promise._value,f="Unhandled rejection: "+d;d.stack&&(f+="\n"+d.stack);try{throw new Error(f)}catch(g){console.warn(f)}a.unhandledRejections.splice(c),c--}a.unhandledRejections.length&&a.scheduleRejectionCheck()},e))}},g=function(b){this._status=a,this._handlers=[];try{b.call(this,this._resolve.bind(this),this._reject.bind(this))}catch(c){this._reject(c)}};g.all=function(a){function b(a){f._status!==d&&(i=[],e(a))}var c,e,f=new g(function(a,b){c=a,e=b}),h=a.length,i=[];if(0===h)return c(i),f;for(var j=0,k=a.length;k>j;++j){var l=a[j],m=function(a){return function(b){f._status!==d&&(i[a]=b,h--,0===h&&c(i))}}(j);g.isPromise(l)?l.then(m,b):m(l)}return f},g.isPromise=function(a){return a&&"function"==typeof a.then},g.resolve=function(a){return new g(function(b){b(a)})},g.reject=function(a){return new g(function(b,c){c(a)})},g.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(a,b){if(this._status!==c&&this._status!==d){if(a===c&&g.isPromise(b))return void b.then(this._updateStatus.bind(this,c),this._updateStatus.bind(this,d));this._status=a,this._value=b,a===d&&0===this._handlers.length&&(this._unhandledRejection=!0,f.addUnhandledRejection(this)),f.scheduleHandlers(this)}},_resolve:function(a){this._updateStatus(c,a)},_reject:function(a){this._updateStatus(d,a)},then:function(a,b){var c=new g(function(a,b){this.resolve=a,this.reject=b});return this._handlers.push({thisPromise:this,onResolve:a,onReject:b,nextPromise:c}),f.scheduleHandlers(this),c},"catch":function(a){return this.then(void 0,a)}},b.Promise=g}(),function(){function c(){this.id="$weakmap"+d++}if(!b.WeakMap){var d=0;c.prototype={has:function(b){return"object"!==("undefined"==typeof b?"undefined":a(b))&&"function"!=typeof b||null===b?!1:!!Object.getOwnPropertyDescriptor(b,this.id)},get:function(a){return this.has(a)?a[this.id]:void 0},set:function(a,b){Object.defineProperty(a,this.id,{value:b,enumerable:!1,configurable:!0})},"delete":function(a){delete a[this.id]}},b.WeakMap=c}}(),function(){function c(a){return void 0!==n[a]}function d(){i.call(this),this._isInvalid=!0}function e(a){return""===a&&d.call(this),a.toLowerCase()}function f(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1===[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function g(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1===[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function h(a,b,h){function i(a){t.push(a)}var j=b||"scheme start",k=0,l="",m=!1,s=!1,t=[];a:for(;(a[k-1]!==p||0===k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(!u||!q.test(u)){if(b){i("Invalid scheme.");break a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";break;case"scheme":if(u&&r.test(u))l+=u.toLowerCase();else{if(":"!==u){if(b){if(u===p)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",b)break a;c(this._scheme)&&(this._isRelative=!0),j="file"===this._scheme?"relative":this._isRelative&&h&&h._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"===u?(this._query="?",j="query"):"#"===u?(this._fragment="#",j="fragment"):u!==p&&"	"!==u&&"\n"!==u&&"\r"!==u&&(this._schemeData+=f(u));break;case"no scheme":if(h&&c(h._scheme)){j="relative";continue}i("Missing scheme."),d.call(this);break;case"relative or authority":if("/"!==u||"/"!==a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=h._scheme),u===p){this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query,this._username=h._username,this._password=h._password;break a}if("/"===u||"\\"===u)"\\"===u&&i("\\ is an invalid code point."),j="relative slash";else if("?"===u)this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query="?",this._username=h._username,this._password=h._password,j="query";else{if("#"!==u){var v=a[k+1],w=a[k+2];("file"!==this._scheme||!q.test(u)||":"!==v&&"|"!==v||w!==p&&"/"!==w&&"\\"!==w&&"?"!==w&&"#"!==w)&&(this._host=h._host,this._port=h._port,this._username=h._username,this._password=h._password,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query,this._fragment="#",this._username=h._username,this._password=h._password,j="fragment"}break;case"relative slash":if("/"!==u&&"\\"!==u){"file"!==this._scheme&&(this._host=h._host,this._port=h._port,this._username=h._username,this._password=h._password),j="relative path";continue}"\\"===u&&i("\\ is an invalid code point."),j="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==u){i("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority second slash";break;case"authority second slash":if(j="authority ignore slashes","/"!==u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":if("/"!==u&&"\\"!==u){j="authority";continue}i("Expected authority, got: "+u);break;case"authority":if("@"===u){m&&(i("@ already seen."),l+="%40"),m=!0;for(var x=0;x<l.length;x++){var y=l[x];if("	"!==y&&"\n"!==y&&"\r"!==y)if(":"!==y||null!==this._password){var z=f(y);null!==this._password?this._password+=z:this._username+=z}else this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(u===p||"/"===u||"\\"===u||"?"===u||"#"===u){k-=l.length,l="",j="host";continue}l+=u}break;case"file host":if(u===p||"/"===u||"\\"===u||"?"===u||"#"===u){2!==l.length||!q.test(l[0])||":"!==l[1]&&"|"!==l[1]?0===l.length?j="relative path start":(this._host=e.call(this,l),l="",j="relative path start"):j="relative path";continue}"	"===u||"\n"===u||"\r"===u?i("Invalid whitespace in file host."):l+=u;break;case"host":case"hostname":if(":"!==u||s){if(u===p||"/"===u||"\\"===u||"?"===u||"#"===u){if(this._host=e.call(this,l),l="",j="relative path start",b)break a;continue}"	"!==u&&"\n"!==u&&"\r"!==u?("["===u?s=!0:"]"===u&&(s=!1),l+=u):i("Invalid code point in host/hostname: "+u)}else if(this._host=e.call(this,l),l="",j="port","hostname"===b)break a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(u===p||"/"===u||"\\"===u||"?"===u||"#"===u||b){if(""!==l){var A=parseInt(l,10);A!==n[this._scheme]&&(this._port=A+""),l=""}if(b)break a;j="relative path start";continue}"	"===u||"\n"===u||"\r"===u?i("Invalid code point in port: "+u):d.call(this)}break;case"relative path start":if("\\"===u&&i("'\\' not allowed in path."),j="relative path","/"!==u&&"\\"!==u)continue;break;case"relative path":if(u!==p&&"/"!==u&&"\\"!==u&&(b||"?"!==u&&"#"!==u))"	"!==u&&"\n"!==u&&"\r"!==u&&(l+=f(u));else{"\\"===u&&i("\\ not allowed in relative path.");var B;(B=o[l.toLowerCase()])&&(l=B),".."===l?(this._path.pop(),"/"!==u&&"\\"!==u&&this._path.push("")):"."===l&&"/"!==u&&"\\"!==u?this._path.push(""):"."!==l&&("file"===this._scheme&&0===this._path.length&&2===l.length&&q.test(l[0])&&"|"===l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"===u?(this._query="?",j="query"):"#"===u&&(this._fragment="#",j="fragment")}break;case"query":b||"#"!==u?u!==p&&"	"!==u&&"\n"!==u&&"\r"!==u&&(this._query+=g(u)):(this._fragment="#",j="fragment");break;case"fragment":u!==p&&"	"!==u&&"\n"!==u&&"\r"!==u&&(this._fragment+=u)}k++}}function i(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function j(a,b){void 0===b||b instanceof j||(b=new j(String(b))),this._url=a,i.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");h.call(this,c,null,b)}var k=!1;try{if("function"==typeof URL&&"object"===a(URL.prototype)&&"origin"in URL.prototype){var l=new URL("b","http://a");l.pathname="c%20d",k="http://a/c%20d"===l.href}}catch(m){}if(!k){var n=Object.create(null);n.ftp=21,n.file=0,n.gopher=70,n.http=80,n.https=443,n.ws=80,n.wss=443;var o=Object.create(null);o["%2e"]=".",o[".%2e"]="..",o["%2e."]="..",o["%2e%2e"]="..";var p,q=/[a-zA-Z]/,r=/[a-zA-Z0-9\+\-\.]/;j.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var a="";return(""!==this._username||null!==this._password)&&(a=this._username+(null!==this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query+this._fragment},set href(a){i.call(this),h.call(this,a)},get protocol(){return this._scheme+":"},set protocol(a){this._isInvalid||h.call(this,a+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(a){!this._isInvalid&&this._isRelative&&h.call(this,a,"host")},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isRelative&&h.call(this,a,"hostname")},get port(){return this._port},set port(a){!this._isInvalid&&this._isRelative&&h.call(this,a,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],h.call(this,a,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"===this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(this._query="?","?"===a[0]&&(a=a.slice(1)),h.call(this,a,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"===this._fragment?"":this._fragment},set hash(a){this._isInvalid||(this._fragment="#","#"===a[0]&&(a=a.slice(1)),h.call(this,a,"fragment"))},get origin(){var a;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null";case"blob":try{return new j(this._schemeData).origin||"null"}catch(b){}return"null"}return a=this.host,a?this._scheme+"://"+a:""}};var s=b.URL;s&&(j.createObjectURL=function(){return s.createObjectURL.apply(s,arguments)},j.revokeObjectURL=function(a){s.revokeObjectURL(a)}),b.URL=j}}()}},function(a,b,c){"use strict";var d=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(a){a.close()}}),d=!0}catch(e){}b.ReadableStream=d?ReadableStream:c(10).ReadableStream}])}),!function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=a()}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=g.assign({level:m,method:o,chunkSize:16384,windowBits:15,memLevel:8,strategy:n,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j,this.strm.avail_out=0;var c=f.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==l)throw new Error(i[c]);if(b.header&&f.deflateSetHeader(this.strm,b.header),b.dictionary){var e;if(e="string"==typeof b.dictionary?h.string2buf(b.dictionary):"[object ArrayBuffer]"===k.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,(c=f.deflateSetDictionary(this.strm,e))!==l)throw new Error(i[c]);this._dict_set=!0}}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg||i[c.err];return c.result}var f=a("./zlib/deflate"),g=a("./utils/common"),h=a("./utils/strings"),i=a("./zlib/messages"),j=a("./zlib/zstream"),k=Object.prototype.toString,l=0,m=-1,n=0,o=8;d.prototype.push=function(a,b){var c,d,e=this.strm,i=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:!0===b?4:0,e.input="string"==typeof a?h.string2buf(a):"[object ArrayBuffer]"===k.call(a)?new Uint8Array(a):a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new g.Buf8(i),e.next_out=0,e.avail_out=i),1!==(c=f.deflate(e,d))&&c!==l)return this.onEnd(c),this.ended=!0,!1;0!==e.avail_out&&(0!==e.avail_in||4!==d&&2!==d)||this.onData("string"===this.options.to?h.buf2binstring(g.shrinkBuf(e.output,e.next_out)):g.shrinkBuf(e.output,e.next_out))}while((e.avail_in>0||0===e.avail_out)&&1!==c);return 4===d?(c=f.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===l):2!==d||(this.onEnd(l),e.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===l&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg
},c.Deflate=d,c.deflate=e,c.deflateRaw=function(a,b){return b=b||{},b.raw=!0,e(a,b)},c.gzip=function(a,b){return b=b||{},b.gzip=!0,e(a,b)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=g.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0==(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=f.inflateInit2(this.strm,b.windowBits);if(c!==i.Z_OK)throw new Error(j[c]);this.header=new l,f.inflateGetHeader(this.strm,this.header)}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg||j[c.err];return c.result}var f=a("./zlib/inflate"),g=a("./utils/common"),h=a("./utils/strings"),i=a("./zlib/constants"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=a("./zlib/gzheader"),m=Object.prototype.toString;d.prototype.push=function(a,b){var c,d,e,j,k,l,n=this.strm,o=this.options.chunkSize,p=this.options.dictionary,q=!1;if(this.ended)return!1;d=b===~~b?b:!0===b?i.Z_FINISH:i.Z_NO_FLUSH,n.input="string"==typeof a?h.binstring2buf(a):"[object ArrayBuffer]"===m.call(a)?new Uint8Array(a):a,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new g.Buf8(o),n.next_out=0,n.avail_out=o),(c=f.inflate(n,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&p&&(l="string"==typeof p?h.string2buf(p):"[object ArrayBuffer]"===m.call(p)?new Uint8Array(p):p,c=f.inflateSetDictionary(this.strm,l)),c===i.Z_BUF_ERROR&&!0===q&&(c=i.Z_OK,q=!1),c!==i.Z_STREAM_END&&c!==i.Z_OK)return this.onEnd(c),this.ended=!0,!1;n.next_out&&(0!==n.avail_out&&c!==i.Z_STREAM_END&&(0!==n.avail_in||d!==i.Z_FINISH&&d!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(e=h.utf8border(n.output,n.next_out),j=n.next_out-e,k=h.buf2string(n.output,e),n.next_out=j,n.avail_out=o-j,j&&g.arraySet(n.output,n.output,e,j,0),this.onData(k)):this.onData(g.shrinkBuf(n.output,n.next_out)))),0===n.avail_in&&0===n.avail_out&&(q=!0)}while((n.avail_in>0||0===n.avail_out)&&c!==i.Z_STREAM_END);return c===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(c=f.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===i.Z_OK):d!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),n.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===i.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=d,c.inflate=e,c.inflateRaw=function(a,b){return b=b||{},b.raw=!0,e(a,b)},c.ungzip=e},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var e in c)d(c,e)&&(a[e]=c[e])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var f={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},g={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,f)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,g))},c.setTyped(e)},{}],4:[function(a,b,c){"use strict";function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;b>d;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(a){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){g=!1}for(var h=new e.Buf8(256),i=0;256>i;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)55296==(64512&(c=a.charCodeAt(f)))&&h>f+1&&56320==(64512&(d=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(d-56320),f++),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=new e.Buf8(i),g=0,f=0;i>g;f++)55296==(64512&(c=a.charCodeAt(f)))&&h>f+1&&56320==(64512&(d=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(d-56320),f++),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){for(var b=new e.Buf8(a.length),c=0,d=b.length;d>c;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,i=b||a.length,j=new Array(2*i);for(e=0,c=0;i>c;)if((f=a[c++])<128)j[e++]=f;else if((g=h[f])>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&i>c;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:65536>f?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&128==(192&a[c]);)c--;return 0>c?b:0===c?b:c+h[a[c]]>b?c:b}},{"./common":3}],5:[function(a,b){"use strict";b.exports=function(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){c-=g=c>2e3?2e3:c;do f=f+(e=e+b[d++]|0)|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}},{}],6:[function(a,b){"use strict";b.exports={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_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}},{}],7:[function(a,b){"use strict";var c=function(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}();b.exports=function(a,b,d,e){var f=c,g=e+d;a^=-1;for(var h=e;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}},{}],8:[function(a,b,c){"use strict";function d(a,b){return a.msg=C[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(y.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){z._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,y.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=A(a.adler,b,e,c):2===a.state.wrap&&(a.adler=B(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-db?a.strstart-(a.w_size-db):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+cb,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=cb-(m-f),f=m-cb,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!=--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-db)){y.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,b=c=a.hash_size;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);b=c=g;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=bb)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+bb-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<bb)););}while(a.lookahead<db&&0!==a.strm.avail_in)}function n(a,b){for(var c,d;;){if(a.lookahead<db){if(m(a),a.lookahead<db&&b===D)return mb;if(0===a.lookahead)break}if(c=0,a.lookahead>=bb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+bb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-db&&(a.match_length=l(a,c)),a.match_length>=bb)if(d=z._tr_tally(a,a.strstart-a.match_start,a.match_length-bb),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=bb){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+bb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!=--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=z._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return mb}return a.insert=a.strstart<bb-1?a.strstart:bb-1,b===G?(h(a,!0),0===a.strm.avail_out?ob:pb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?mb:nb}function o(a,b){for(var c,d,e;;){if(a.lookahead<db){if(m(a),a.lookahead<db&&b===D)return mb;if(0===a.lookahead)break}if(c=0,a.lookahead>=bb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+bb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=bb-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-db&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===O||a.match_length===bb&&a.strstart-a.match_start>4096)&&(a.match_length=bb-1)),a.prev_length>=bb&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-bb,d=z._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-bb),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+bb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!=--a.prev_length);if(a.match_available=0,a.match_length=bb-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return mb}else if(a.match_available){if((d=z._tr_tally(a,0,a.window[a.strstart-1]))&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return mb}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=z._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<bb-1?a.strstart:bb-1,b===G?(h(a,!0),0===a.strm.avail_out?ob:pb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?mb:nb}function p(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=cb){if(m(a),a.lookahead<=cb&&b===D)return mb;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=bb&&a.strstart>0&&(e=a.strstart-1,(d=g[e])===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+cb;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=cb-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=bb?(c=z._tr_tally(a,1,a.match_length-bb),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=z._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return mb}return a.insert=0,b===G?(h(a,!0),0===a.strm.avail_out?ob:pb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?mb:nb}function q(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===D)return mb;break}if(a.match_length=0,c=z._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return mb}return a.insert=0,b===G?(h(a,!0),0===a.strm.avail_out?ob:pb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?mb:nb}function r(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=x[a.level].max_lazy,a.good_match=x[a.level].good_length,a.nice_match=x[a.level].nice_length,a.max_chain_length=x[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=bb-1,a.match_available=0,a.ins_h=0}function t(){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=U,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 y.Buf16(2*_),this.dyn_dtree=new y.Buf16(2*(2*Z+1)),this.bl_tree=new y.Buf16(2*(2*$+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(ab+1),this.heap=new y.Buf16(2*Y+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(2*Y+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=T,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?fb:kb,a.adler=2===b.wrap?0:1,b.last_flush=D,z._tr_init(b),I):d(a,K)}function v(a){var b=u(a);return b===I&&s(a.state),b}function w(a,b,c,e,f,g){if(!a)return K;var h=1;if(b===N&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>V||c!==U||8>e||e>15||0>b||b>9||0>g||g>R)return d(a,K);8===e&&(e=9);var i=new t;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+bb-1)/bb),i.window=new y.Buf8(2*i.w_size),i.head=new y.Buf16(i.hash_size),i.prev=new y.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new y.Buf8(i.pending_buf_size),i.d_buf=1*i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,v(a)}var x,y=a("../utils/common"),z=a("./trees"),A=a("./adler32"),B=a("./crc32"),C=a("./messages"),D=0,E=1,F=3,G=4,H=5,I=0,J=1,K=-2,L=-3,M=-5,N=-1,O=1,P=2,Q=3,R=4,S=0,T=2,U=8,V=9,W=15,X=8,Y=286,Z=30,$=19,_=2*Y+1,ab=15,bb=3,cb=258,db=cb+bb+1,eb=32,fb=42,gb=69,hb=73,ib=91,jb=103,kb=113,lb=666,mb=1,nb=2,ob=3,pb=4,qb=3;x=[new r(0,0,0,0,function(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===D)return mb;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return mb;if(a.strstart-a.block_start>=a.w_size-db&&(h(a,!1),0===a.strm.avail_out))return mb}return a.insert=0,b===G?(h(a,!0),0===a.strm.avail_out?ob:pb):(a.strstart>a.block_start&&(h(a,!1),a.strm.avail_out),mb)}),new r(4,4,8,4,n),new r(4,5,16,8,n),new r(4,6,32,32,n),new r(4,4,16,16,o),new r(8,16,32,32,o),new r(8,16,128,128,o),new r(8,32,128,256,o),new r(32,128,258,1024,o),new r(32,258,258,4096,o)],c.deflateInit=function(a,b){return w(a,b,U,W,X,S)},c.deflateInit2=w,c.deflateReset=v,c.deflateResetKeep=u,c.deflateSetHeader=function(a,b){return a&&a.state?2!==a.state.wrap?K:(a.state.gzhead=b,I):K},c.deflate=function(a,b){var c,h,k,l;if(!a||!a.state||b>H||0>b)return a?d(a,K):K;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===lb&&b!==G)return d(a,0===a.avail_out?M:K);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===fb)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=P||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=B(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=gb):(i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=P||h.level<2?4:0),i(h,qb),h.status=kb);else{var m=U+(h.w_bits-8<<4)<<8;m|=(h.strategy>=P||h.level<2?0:h.level<6?1:6===h.level?2:3)<<6,0!==h.strstart&&(m|=eb),m+=31-m%31,h.status=kb,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===gb)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=hb)}else h.status=hb;if(h.status===hb)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=ib)}else h.status=ib;if(h.status===ib)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=B(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=jb)}else h.status=jb;if(h.status===jb&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=kb)):h.status=kb),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,I}else if(0===a.avail_in&&e(b)<=e(c)&&b!==G)return d(a,M);if(h.status===lb&&0!==a.avail_in)return d(a,M);if(0!==a.avail_in||0!==h.lookahead||b!==D&&h.status!==lb){var n=h.strategy===P?q(h,b):h.strategy===Q?p(h,b):x[h.level].func(h,b);if(n!==ob&&n!==pb||(h.status=lb),n===mb||n===ob)return 0===a.avail_out&&(h.last_flush=-1),I;if(n===nb&&(b===E?z._tr_align(h):b!==H&&(z._tr_stored_block(h,0,0,!1),b===F&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,I}return b!==G?I:h.wrap<=0?J:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?I:J)},c.deflateEnd=function(a){var b;return a&&a.state?(b=a.state.status)!==fb&&b!==gb&&b!==hb&&b!==ib&&b!==jb&&b!==kb&&b!==lb?d(a,K):(a.state=null,b===kb?d(a,L):I):K},c.deflateSetDictionary=function(a,b){var c,d,e,g,h,i,j,k,l=b.length;if(!a||!a.state)return K;if(c=a.state,2===(g=c.wrap)||1===g&&c.status!==fb||c.lookahead)return K;for(1===g&&(a.adler=A(a.adler,b,l,0)),c.wrap=0,l>=c.w_size&&(0===g&&(f(c.head),c.strstart=0,c.block_start=0,c.insert=0),k=new y.Buf8(c.w_size),y.arraySet(k,b,l-c.w_size,c.w_size,0),b=k,l=c.w_size),h=a.avail_in,i=a.next_in,j=a.input,a.avail_in=l,a.next_in=0,a.input=b,m(c);c.lookahead>=bb;){d=c.strstart,e=c.lookahead-(bb-1);do c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+bb-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++;while(--e);c.strstart=d,c.lookahead=bb-1,m(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=bb-1,c.match_available=0,a.next_in=i,a.input=j,a.avail_in=h,c.wrap=g,I},c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(a,b){"use strict";b.exports=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}},{}],10:[function(a,b){"use strict";b.exports=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;c=a.state,d=a.next_in,z=a.input,e=d+(a.avail_in-5),f=a.next_out,A=a.output,g=f-(b-a.avail_out),h=f+(a.avail_out-257),i=c.dmax,j=c.wsize,k=c.whave,l=c.wnext,m=c.window,n=c.hold,o=c.bits,p=c.lencode,q=c.distcode,r=(1<<c.lenbits)-1,s=(1<<c.distbits)-1;a:do{15>o&&(n+=z[d++]<<o,o+=8,n+=z[d++]<<o,o+=8),t=p[n&r];b:for(;;){if(u=t>>>24,n>>>=u,o-=u,0===(u=t>>>16&255))A[f++]=65535&t;else{if(!(16&u)){if(0==(64&u)){t=p[(65535&t)+(n&(1<<u)-1)];continue b}if(32&u){c.mode=12;break a}a.msg="invalid literal/length code",c.mode=30;break a}v=65535&t,(u&=15)&&(u>o&&(n+=z[d++]<<o,o+=8),v+=n&(1<<u)-1,n>>>=u,o-=u),15>o&&(n+=z[d++]<<o,o+=8,n+=z[d++]<<o,o+=8),t=q[n&s];c:for(;;){if(u=t>>>24,n>>>=u,o-=u,!(16&(u=t>>>16&255))){if(0==(64&u)){t=q[(65535&t)+(n&(1<<u)-1)];continue c}a.msg="invalid distance code",c.mode=30;break a}if(w=65535&t,u&=15,u>o&&(n+=z[d++]<<o,(o+=8)<u&&(n+=z[d++]<<o,o+=8)),(w+=n&(1<<u)-1)>i){a.msg="invalid distance too far back",c.mode=30;break a}if(n>>>=u,o-=u,u=f-g,w>u){if((u=w-u)>k&&c.sane){a.msg="invalid distance too far back",c.mode=30;break a}if(x=0,y=m,0===l){if(x+=j-u,v>u){v-=u;do A[f++]=m[x++];while(--u);x=f-w,y=A}}else if(u>l){if(x+=j+l-u,(u-=l)<v){v-=u;do A[f++]=m[x++];while(--u);if(x=0,v>l){v-=u=l;do A[f++]=m[x++];while(--u);x=f-w,y=A}}}else if(x+=l-u,v>u){v-=u;do A[f++]=m[x++];while(--u);x=f-w,y=A}for(;v>2;)A[f++]=y[x++],A[f++]=y[x++],A[f++]=y[x++],v-=3;v&&(A[f++]=y[x++],v>1&&(A[f++]=y[x++]))}else{x=f-w;do A[f++]=A[x++],A[f++]=A[x++],A[f++]=A[x++],v-=3;while(v>2);v&&(A[f++]=A[x++],v>1&&(A[f++]=A[x++]))}break}}break}}while(e>d&&h>f);d-=v=o>>3,n&=(1<<(o-=v<<3))-1,a.next_in=d,a.next_out=f,a.avail_in=e>d?e-d+5:5-(d-e),a.avail_out=h>f?h-f+257:257-(f-h),c.hold=n,c.bits=o}},{}],11:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=G,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new n.Buf32(kb),b.distcode=b.distdyn=new n.Buf32(lb),b.sane=1,b.back=-1,y):B}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):B}function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=1+(b>>4),48>b&&(b&=15)),b&&(8>b||b>15)?B:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):B}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,(c=h(a,b))!==y&&(a.state=null),c):B}function j(a){if(nb){var b;for(l=new n.Buf32(512),m=new n.Buf32(32),b=0;144>b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(r(t,a.lens,0,288,l,0,a.work,{bits:9}),b=0;32>b;)a.lens[b++]=5;r(u,a.lens,0,32,m,0,a.work,{bits:5}),nb=!1}a.lencode=l,a.lenbits=9,a.distcode=m,a.distbits=5}function k(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new n.Buf8(f.wsize)),d>=f.wsize?(n.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):((e=f.wsize-f.wnext)>d&&(e=d),n.arraySet(f.window,b,c-d,e,f.wnext),(d-=e)?(n.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}var l,m,n=a("../utils/common"),o=a("./adler32"),p=a("./crc32"),q=a("./inffast"),r=a("./inftrees"),s=0,t=1,u=2,v=4,w=5,x=6,y=0,z=1,A=2,B=-2,C=-3,D=-4,E=-5,F=8,G=1,H=2,I=3,J=4,K=5,L=6,M=7,N=8,O=9,P=10,Q=11,R=12,S=13,T=14,U=15,V=16,W=17,X=18,Y=19,Z=20,$=21,_=22,ab=23,bb=24,cb=25,db=26,eb=27,fb=28,gb=29,hb=30,ib=31,jb=32,kb=852,lb=592,mb=15,nb=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=function(a){return i(a,mb)},c.inflateInit2=i,c.inflate=function(a,b){var c,e,f,g,h,i,l,m,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab=0,Bb=new n.Buf8(4),Cb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return B;(c=a.state).mode===R&&(c.mode=S),h=a.next_out,f=a.output,l=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,kb=c.bits,lb=i,mb=l,xb=y;a:for(;;)switch(c.mode){case G:if(0===c.wrap){c.mode=S;break}for(;16>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(2&c.wrap&&35615===m){c.check=0,Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=p(c.check,Bb,2,0),m=0,kb=0,c.mode=H;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=hb;break}if((15&m)!==F){a.msg="unknown compression method",c.mode=hb;break}if(m>>>=4,kb-=4,wb=8+(15&m),0===c.wbits)c.wbits=wb;else if(wb>c.wbits){a.msg="invalid window size",c.mode=hb;break}c.dmax=1<<wb,a.adler=c.check=1,c.mode=512&m?P:R,m=0,kb=0;break;case H:for(;16>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(c.flags=m,(255&c.flags)!==F){a.msg="unknown compression method",c.mode=hb;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=hb;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=p(c.check,Bb,2,0)),m=0,kb=0,c.mode=I;case I:for(;32>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.head&&(c.head.time=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,Bb[2]=m>>>16&255,Bb[3]=m>>>24&255,c.check=p(c.check,Bb,4,0)),m=0,kb=0,c.mode=J;case J:for(;16>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=p(c.check,Bb,2,0)),m=0,kb=0,c.mode=K;case K:if(1024&c.flags){for(;16>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=p(c.check,Bb,2,0)),m=0,kb=0}else c.head&&(c.head.extra=null);c.mode=L;case L:if(1024&c.flags&&((nb=c.length)>i&&(nb=i),nb&&(c.head&&(wb=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),n.arraySet(c.head.extra,e,g,nb,wb)),512&c.flags&&(c.check=p(c.check,e,nb,g)),i-=nb,g+=nb,c.length-=nb),c.length))break a;c.length=0,c.mode=M;case M:if(2048&c.flags){if(0===i)break a;nb=0;do wb=e[g+nb++],c.head&&wb&&c.length<65536&&(c.head.name+=String.fromCharCode(wb));while(wb&&i>nb);if(512&c.flags&&(c.check=p(c.check,e,nb,g)),i-=nb,g+=nb,wb)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=N;case N:if(4096&c.flags){if(0===i)break a;nb=0;do wb=e[g+nb++],c.head&&wb&&c.length<65536&&(c.head.comment+=String.fromCharCode(wb));while(wb&&i>nb);if(512&c.flags&&(c.check=p(c.check,e,nb,g)),i-=nb,g+=nb,wb)break a}else c.head&&(c.head.comment=null);c.mode=O;case O:if(512&c.flags){for(;16>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=hb;break}m=0,kb=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=R;break;case P:for(;32>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}a.adler=c.check=d(m),m=0,kb=0,c.mode=Q;case Q:if(0===c.havedict)return a.next_out=h,a.avail_out=l,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=kb,A;a.adler=c.check=1,c.mode=R;case R:if(b===w||b===x)break a;case S:if(c.last){m>>>=7&kb,kb-=7&kb,c.mode=eb;break}for(;3>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}switch(c.last=1&m,m>>>=1,kb-=1,3&m){case 0:c.mode=T;break;case 1:if(j(c),c.mode=Z,b===x){m>>>=2,kb-=2;break a}break;case 2:c.mode=W;break;case 3:a.msg="invalid block type",c.mode=hb}m>>>=2,kb-=2;break;case T:for(m>>>=7&kb,kb-=7&kb;32>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if((65535&m)!=(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=hb;break}if(c.length=65535&m,m=0,kb=0,c.mode=U,b===x)break a;case U:c.mode=V;case V:if(nb=c.length){if(nb>i&&(nb=i),nb>l&&(nb=l),0===nb)break a;n.arraySet(f,e,g,nb,h),i-=nb,g+=nb,l-=nb,h+=nb,c.length-=nb;break}c.mode=R;break;case W:for(;14>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(c.nlen=257+(31&m),m>>>=5,kb-=5,c.ndist=1+(31&m),m>>>=5,kb-=5,c.ncode=4+(15&m),m>>>=4,kb-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=hb;break}c.have=0,c.mode=X;case X:for(;c.have<c.ncode;){for(;3>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.lens[Cb[c.have++]]=7&m,m>>>=3,kb-=3}for(;c.have<19;)c.lens[Cb[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,yb={bits:c.lenbits},xb=r(s,c.lens,0,19,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid code lengths set",c.mode=hb;break}c.have=0,c.mode=Y;case Y:for(;c.have<c.nlen+c.ndist;){for(;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(kb>=qb);){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(16>sb)m>>>=qb,kb-=qb,c.lens[c.have++]=sb;else{if(16===sb){for(zb=qb+2;zb>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(m>>>=qb,kb-=qb,0===c.have){a.msg="invalid bit length repeat",c.mode=hb;break}wb=c.lens[c.have-1],nb=3+(3&m),m>>>=2,kb-=2}else if(17===sb){for(zb=qb+3;zb>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}kb-=qb,wb=0,nb=3+(7&(m>>>=qb)),m>>>=3,kb-=3}else{for(zb=qb+7;zb>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}kb-=qb,wb=0,nb=11+(127&(m>>>=qb)),m>>>=7,kb-=7}if(c.have+nb>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=hb;break}for(;nb--;)c.lens[c.have++]=wb}}if(c.mode===hb)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=hb;break}if(c.lenbits=9,yb={bits:c.lenbits},xb=r(t,c.lens,0,c.nlen,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid literal/lengths set",c.mode=hb;break}if(c.distbits=6,c.distcode=c.distdyn,yb={bits:c.distbits},xb=r(u,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,yb),c.distbits=yb.bits,xb){a.msg="invalid distances set",c.mode=hb;break}if(c.mode=Z,b===x)break a;case Z:c.mode=$;case $:if(i>=6&&l>=258){a.next_out=h,a.avail_out=l,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=kb,q(a,mb),h=a.next_out,f=a.output,l=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,kb=c.bits,c.mode===R&&(c.back=-1);break}for(c.back=0;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(kb>=qb);){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(rb&&0==(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.lencode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(kb>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}m>>>=tb,kb-=tb,c.back+=tb}if(m>>>=qb,kb-=qb,c.back+=qb,c.length=sb,0===rb){c.mode=db;
break}if(32&rb){c.back=-1,c.mode=R;break}if(64&rb){a.msg="invalid literal/length code",c.mode=hb;break}c.extra=15&rb,c.mode=_;case _:if(c.extra){for(zb=c.extra;zb>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,kb-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=ab;case ab:for(;Ab=c.distcode[m&(1<<c.distbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(kb>=qb);){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(0==(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.distcode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(kb>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}m>>>=tb,kb-=tb,c.back+=tb}if(m>>>=qb,kb-=qb,c.back+=qb,64&rb){a.msg="invalid distance code",c.mode=hb;break}c.offset=sb,c.extra=15&rb,c.mode=bb;case bb:if(c.extra){for(zb=c.extra;zb>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,kb-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=hb;break}c.mode=cb;case cb:if(0===l)break a;if(nb=mb-l,c.offset>nb){if((nb=c.offset-nb)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=hb;break}nb>c.wnext?(nb-=c.wnext,ob=c.wsize-nb):ob=c.wnext-nb,nb>c.length&&(nb=c.length),pb=c.window}else pb=f,ob=h-c.offset,nb=c.length;nb>l&&(nb=l),l-=nb,c.length-=nb;do f[h++]=pb[ob++];while(--nb);0===c.length&&(c.mode=$);break;case db:if(0===l)break a;f[h++]=c.length,l--,c.mode=$;break;case eb:if(c.wrap){for(;32>kb;){if(0===i)break a;i--,m|=e[g++]<<kb,kb+=8}if(mb-=l,a.total_out+=mb,c.total+=mb,mb&&(a.adler=c.check=c.flags?p(c.check,f,mb,h-mb):o(c.check,f,mb,h-mb)),mb=l,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=hb;break}m=0,kb=0}c.mode=fb;case fb:if(c.wrap&&c.flags){for(;32>kb;){if(0===i)break a;i--,m+=e[g++]<<kb,kb+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=hb;break}m=0,kb=0}c.mode=gb;case gb:xb=z;break a;case hb:xb=C;break a;case ib:return D;case jb:default:return B}return a.next_out=h,a.avail_out=l,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=kb,(c.wsize||mb!==a.avail_out&&c.mode<hb&&(c.mode<eb||b!==v))&&k(a,a.output,a.next_out,mb-a.avail_out)?(c.mode=ib,D):(lb-=a.avail_in,mb-=a.avail_out,a.total_in+=lb,a.total_out+=mb,c.total+=mb,c.wrap&&mb&&(a.adler=c.check=c.flags?p(c.check,f,mb,a.next_out-mb):o(c.check,f,mb,a.next_out-mb)),a.data_type=c.bits+(c.last?64:0)+(c.mode===R?128:0)+(c.mode===Z||c.mode===U?256:0),(0===lb&&0===mb||b===v)&&xb===y&&(xb=E),xb)},c.inflateEnd=function(a){if(!a||!a.state)return B;var b=a.state;return b.window&&(b.window=null),a.state=null,y},c.inflateGetHeader=function(a,b){var c;return a&&a.state?0==(2&(c=a.state).wrap)?B:(c.head=b,b.done=!1,y):B},c.inflateSetDictionary=function(a,b){var c,d,e=b.length;return a&&a.state?0!==(c=a.state).wrap&&c.mode!==Q?B:c.mode===Q&&(d=1,(d=o(d,b,e,0))!==c.check)?C:k(a,b,e,e)?(c.mode=ib,D):(c.havedict=1,y):B},c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(a,b){"use strict";var c=a("../utils/common"),d=[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],e=[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],f=[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],g=[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];b.exports=function(a,b,h,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new c.Buf16(16),K=new c.Buf16(16),L=null,M=0;for(x=0;15>=x;x++)J[x]=0;for(y=0;i>y;y++)J[b[h+y]]++;for(B=w,A=15;A>=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=20971520,j[k++]=20971520,m.bits=1,0;for(z=1;A>z&&0===J[z];z++);for(z>B&&(B=z),E=1,x=1;15>=x;x++)if(E<<=1,(E-=J[x])<0)return-1;if(E>0&&(0===a||1!==A))return-1;for(K[1]=0,x=1;15>x;x++)K[x+1]=K[x]+J[x];for(y=0;i>y;y++)0!==b[h+y]&&(l[K[b[h+y]]++]=y);if(0===a?(H=L=l,s=19):1===a?(H=d,I-=257,L=e,M-=257,s=256):(H=f,L=g,s=-1),G=0,y=0,x=z,r=k,C=B,D=0,p=-1,F=1<<B,q=F-1,1===a&&F>852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]<s?(u=0,v=l[y]):l[y]>s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<<x-D,z=o=1<<C;do j[r+(G>>D)+(o-=n)]=t<<24|u<<16|v|0;while(0!==o);for(n=1<<x-1;G&n;)n>>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[h+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);A>C+D&&!((E-=J[C+D])<=0);)C++,E<<=1;if(F+=1<<C,1===a&&F>852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k|0}}return 0!==G&&(j[r+G]=x-D<<24|64<<16|0),m.bits=B,0}},{"../utils/common":3}],13:[function(a,b){"use strict";b.exports={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"}},{}],14:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function f(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function g(a){return 256>a?bb[a]:bb[256+(a>>>7)]}function h(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function i(a,b,c){a.bi_valid>R-c?(a.bi_buf|=b<<a.bi_valid&65535,h(a,a.bi_buf),a.bi_buf=b>>R-a.bi_valid,a.bi_valid+=c-R):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function j(a,b,c){i(a,c[2*b],c[2*b+1])}function k(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function l(a){16===a.bi_valid?(h(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function m(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;Q>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;P>c;c++)(f=i[2*i[2*(d=a.heap[c])+1]+1]+1)>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)(e=a.heap[--c])>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function n(a,b,c){var d,e,f=new Array(Q+1),g=0;for(d=1;Q>=d;d++)f[d]=g=g+c[d-1]<<1;for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=k(f[h]++,h))}}function o(){var a,b,c,d,f,g=new Array(Q+1);for(c=0,d=0;K-1>d;d++)for(db[d]=c,a=0;a<1<<X[d];a++)cb[c++]=d;for(cb[c-1]=d,f=0,d=0;16>d;d++)for(eb[d]=f,a=0;a<1<<Y[d];a++)bb[f++]=d;for(f>>=7;N>d;d++)for(eb[d]=f<<7,a=0;a<1<<Y[d]-7;a++)bb[256+f++]=d;for(b=0;Q>=b;b++)g[b]=0;for(a=0;143>=a;)_[2*a+1]=8,a++,g[8]++;for(;255>=a;)_[2*a+1]=9,a++,g[9]++;for(;279>=a;)_[2*a+1]=7,a++,g[7]++;for(;287>=a;)_[2*a+1]=8,a++,g[8]++;for(n(_,M+1,g),a=0;N>a;a++)ab[2*a+1]=5,ab[2*a]=k(a,5);fb=new e(_,X,L+1,M,Q),gb=new e(ab,Y,0,N,Q),hb=new e(new Array(0),Z,0,O,S)}function p(a){var b;for(b=0;M>b;b++)a.dyn_ltree[2*b]=0;for(b=0;N>b;b++)a.dyn_dtree[2*b]=0;for(b=0;O>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*T]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function q(a){a.bi_valid>8?h(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function r(a,b,c,d){q(a),d&&(h(a,c),h(a,~c)),C.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function s(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function t(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&s(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!s(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function u(a,b,c){var d,e,f,h,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],e=a.pending_buf[a.l_buf+k],k++,0===d?j(a,e,b):(j(a,(f=cb[e])+L+1,b),0!==(h=X[f])&&i(a,e-=db[f],h),j(a,f=g(--d),c),0!==(h=Y[f])&&i(a,d-=eb[f],h));while(k<a.last_lit);j(a,T,b)}function v(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=P,c=0;i>c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)f[2*(e=a.heap[++a.heap_len]=2>j?++j:0)]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)t(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],t(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,t(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],m(a,b),n(f,j,a.bl_count)}function w(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(j>h?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*U]++):10>=h?a.bl_tree[2*V]++:a.bl_tree[2*W]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function x(a,b,c){var d,e,f=-1,g=b[1],h=0,k=7,l=4;for(0===g&&(k=138,l=3),d=0;c>=d;d++)if(e=g,g=b[2*(d+1)+1],!(++h<k&&e===g)){if(l>h){do j(a,e,a.bl_tree);while(0!=--h)}else 0!==e?(e!==f&&(j(a,e,a.bl_tree),h--),j(a,U,a.bl_tree),i(a,h-3,2)):10>=h?(j(a,V,a.bl_tree),i(a,h-3,3)):(j(a,W,a.bl_tree),i(a,h-11,7));h=0,f=e,0===g?(k=138,l=3):e===g?(k=6,l=3):(k=7,l=4)}}function y(a){var b;for(w(a,a.dyn_ltree,a.l_desc.max_code),w(a,a.dyn_dtree,a.d_desc.max_code),v(a,a.bl_desc),b=O-1;b>=3&&0===a.bl_tree[2*$[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function z(a,b,c,d){var e;for(i(a,b-257,5),i(a,c-1,5),i(a,d-4,4),e=0;d>e;e++)i(a,a.bl_tree[2*$[e]+1],3);x(a,a.dyn_ltree,b-1),x(a,a.dyn_dtree,c-1)}function A(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return E;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return F;for(b=32;L>b;b++)if(0!==a.dyn_ltree[2*b])return F;return E}function B(a,b,c,d){i(a,(H<<1)+(d?1:0),3),r(a,b,c,!0)}var C=a("../utils/common"),D=4,E=0,F=1,G=2,H=0,I=1,J=2,K=29,L=256,M=L+1+K,N=30,O=19,P=2*M+1,Q=15,R=16,S=7,T=256,U=16,V=17,W=18,X=[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],Y=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(M+2));d(_);var ab=new Array(2*N);d(ab);var bb=new Array(512);d(bb);var cb=new Array(256);d(cb);var db=new Array(K);d(db);var eb=new Array(N);d(eb);var fb,gb,hb,ib=!1;c._tr_init=function(a){ib||(o(),ib=!0),a.l_desc=new f(a.dyn_ltree,fb),a.d_desc=new f(a.dyn_dtree,gb),a.bl_desc=new f(a.bl_tree,hb),a.bi_buf=0,a.bi_valid=0,p(a)},c._tr_stored_block=B,c._tr_flush_block=function(a,b,c,d){var e,f,g=0;a.level>0?(a.strm.data_type===G&&(a.strm.data_type=A(a)),v(a,a.l_desc),v(a,a.d_desc),g=y(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?B(a,b,c,d):a.strategy===D||f===e?(i(a,(I<<1)+(d?1:0),3),u(a,_,ab)):(i(a,(J<<1)+(d?1:0),3),z(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),u(a,a.dyn_ltree,a.dyn_dtree)),p(a),d&&q(a)},c._tr_tally=function(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(cb[c]+L+1)]++,a.dyn_dtree[2*g(b)]++),a.last_lit===a.lit_bufsize-1},c._tr_align=function(a){i(a,I<<1,3),j(a,T,_),l(a)}},{"../utils/common":3}],15:[function(a,b){"use strict";b.exports=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}},{}],"/":[function(a,b){"use strict";var c={};a("./lib/utils/common").assign(c,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),b.exports=c},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}),!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.JSZip=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d=a("./utils"),e=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l<a.length;)n=m-l,o?(b=a[l++],c=m>l?a[l++]:0,e=m>l?a[l++]:0):(b=a.charCodeAt(l++),c=m>l?a.charCodeAt(l++):0,e=m>l?a.charCodeAt(l++):0),g=b>>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},c.decode=function(a){var b,c,d,g,h,i,j,k=0,l=0,m="data:";if(a.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");var n=3*a.length/4;if(a.charAt(a.length-1)===f.charAt(64)&&n--,a.charAt(a.length-2)===f.charAt(64)&&n--,n%1!==0)throw new Error("Invalid base64 input, bad content length.");var o;for(o=e.uint8array?new Uint8Array(0|n):new Array(0|n);k<a.length;)g=f.indexOf(a.charAt(k++)),h=f.indexOf(a.charAt(k++)),i=f.indexOf(a.charAt(k++)),j=f.indexOf(a.charAt(k++)),b=g<<2|h>>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,o[l++]=b,64!==i&&(o[l++]=c),64!==j&&(o[l++]=d);return o}},{"./support":30,"./utils":32}],2:[function(a,b){"use strict";function c(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}var d=a("./external"),e=a("./stream/DataWorker"),f=a("./stream/DataLengthProbe"),g=a("./stream/Crc32Probe"),f=a("./stream/DataLengthProbe");c.prototype={getContentWorker:function(){var a=new e(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new e(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(a,b,c){return a.pipe(new g).pipe(new f("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new f("compressedSize")).withStreamInfo("compression",b)},b.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,b,c){"use strict";var d=a("./stream/GenericWorker");c.STORE={magic:"\x00\x00",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},c.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var e=g,f=d+c;a^=-1;for(var h=d;f>h;h++)a=a>>>8^e[255&(a^b[h])];return-1^a}function e(a,b,c,d){var e=g,f=d+c;a^=-1;for(var h=d;f>h;h++)a=a>>>8^e[255&(a^b.charCodeAt(h))];return-1^a}var f=a("./utils"),g=c();b.exports=function(a,b){if("undefined"==typeof a||!a.length)return 0;var c="string"!==f.getTypeOf(a);return c?d(0|b,a,a.length,0):e(0|b,a,a.length,0)}},{"./utils":32}],5:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],6:[function(a,b){"use strict";var c=null;c="undefined"!=typeof Promise?Promise:a("lie"),b.exports={Promise:c}},{lie:58}],7:[function(a,b,c){"use strict";function d(a,b){h.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,f=a("pako"),g=a("./utils"),h=a("./stream/GenericWorker"),i=e?"uint8array":"array";c.magic="\b\x00",g.inherits(d,h),d.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(g.transformTo(i,a.data),!1)},d.prototype.flush=function(){h.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new f[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},c.compressWorker=function(a){return new d("Deflate",a)},c.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:59}],8:[function(a,b){"use strict";function c(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var d=a("../utils"),e=a("../stream/GenericWorker"),f=a("../utf8"),g=a("../crc32"),h=a("../signature"),i=function(a,b){var c,d="";for(c=0;b>c;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a){return 63&(a||0)},l=function(a,b,c,e,l,m){var n,o,p=a.file,q=a.compression,r=m!==f.utf8encode,s=d.transformTo("string",m(p.name)),t=d.transformTo("string",f.utf8encode(p.name)),u=p.comment,v=d.transformTo("string",m(u)),w=d.transformTo("string",f.utf8encode(u)),x=t.length!==p.name.length,y=w.length!==u.length,z="",A="",B="",C=p.dir,D=p.date,E={crc32:0,compressedSize:0,uncompressedSize:0};b&&!c||(E.crc32=a.crc32,E.compressedSize=a.compressedSize,E.uncompressedSize=a.uncompressedSize);var F=0;b&&(F|=8),r||!x&&!y||(F|=2048);var G=0,H=0;C&&(G|=16),"UNIX"===l?(H=798,G|=j(p.unixPermissions,C)):(H=20,G|=k(p.dosPermissions,C)),n=D.getUTCHours(),n<<=6,n|=D.getUTCMinutes(),n<<=5,n|=D.getUTCSeconds()/2,o=D.getUTCFullYear()-1980,o<<=4,o|=D.getUTCMonth()+1,o<<=5,o|=D.getUTCDate(),x&&(A=i(1,1)+i(g(s),4)+t,z+="up"+i(A.length,2)+A),y&&(B=i(1,1)+i(g(v),4)+w,z+="uc"+i(B.length,2)+B);var I="";I+="\n\x00",I+=i(F,2),I+=q.magic,I+=i(n,2),I+=i(o,2),I+=i(E.crc32,4),I+=i(E.compressedSize,4),I+=i(E.uncompressedSize,4),I+=i(s.length,2),I+=i(z.length,2);var J=h.LOCAL_FILE_HEADER+I+s+z,K=h.CENTRAL_FILE_HEADER+i(H,2)+I+i(v.length,2)+"\x00\x00\x00\x00"+i(G,4)+i(e,4)+s+z+v;return{fileRecord:J,dirRecord:K}},m=function(a,b,c,e,f){var g="",j=d.transformTo("string",f(e));return g=h.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(j.length,2)+j},n=function(a){var b="";return b=h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};d.inherits(c,e),c.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},c.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=l(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=l(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:n(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var c=this.bytesWritten-a,d=m(this.dirRecords.length,c,a,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},c.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(a){var b=this._sources;if(!e.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},c.prototype.lock=function(){e.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},b.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,b,c){"use strict";var d=a("../compressions"),e=a("./ZipFileWorker"),f=function(a,b){var c=a||b,e=d[c];if(!e)throw new Error(c+" is not a valid compression method !");return e};c.generateWorker=function(a,b,c){var d=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=f(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(h){d.error(h)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,b){"use strict";function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var a=new c;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}c.prototype=a("./object"),c.prototype.loadAsync=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.version="3.1.5",c.loadAsync=function(a,b){return(new c).loadAsync(a,b)},c.external=a("./external"),b.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,b){"use strict";function c(a){return new e.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new h);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}var d=a("./utils"),e=a("./external"),f=a("./utf8"),d=a("./utils"),g=a("./zipEntries"),h=a("./stream/Crc32Probe"),i=a("./nodejsUtils");b.exports=function(a,b){var h=this;return b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a)?e.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var d=[e.Promise.resolve(a)],f=a.files;if(b.checkCRC32)for(var g=0;g<f.length;g++)d.push(c(f[g]));return e.Promise.all(d)}).then(function(a){for(var c=a.shift(),d=c.files,e=0;e<d.length;e++){var f=d[e];h.file(f.fileNameStr,f.decompressed,{binary:!0,optimizedBinaryString:!0,date:f.date,dir:f.dir,comment:f.fileCommentStr.length?f.fileCommentStr:null,unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions,createFolders:b.createFolders})}return c.zipComment.length&&(h.comment=c.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,b){"use strict";function c(a,b){e.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}var d=a("../utils"),e=a("../stream/GenericWorker");d.inherits(c,e),c.prototype._bindStream=function(a){var b=this;this._stream=a,a.pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},c.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},c.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},b.exports=c},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,b){"use strict";function c(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}var d=a("readable-stream").Readable,e=a("../utils");e.inherits(c,d),c.prototype._read=function(){this._helper.resume()},b.exports=c},{"../utils":32,"readable-stream":16}],14:[function(a,b){"use strict";b.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(a,b){return new Buffer(a,b)},allocBuffer:function(a){return Buffer.alloc?Buffer.alloc(a):new Buffer(a)},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},{}],15:[function(a,b){"use strict";function c(a){return"[object RegExp]"===Object.prototype.toString.call(a)}var d=a("./utf8"),e=a("./utils"),f=a("./stream/GenericWorker"),g=a("./stream/StreamHelper"),h=a("./defaults"),i=a("./compressedObject"),j=a("./zipObject"),k=a("./generate"),l=a("./nodejsUtils"),m=a("./nodejs/NodejsStreamInputAdapter"),n=function(a,b,c){var d,g=e.getTypeOf(b),k=e.extend(c||{},h);k.date=k.date||new Date,null!==k.compression&&(k.compression=k.compression.toUpperCase()),"string"==typeof k.unixPermissions&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(a=p(a)),k.createFolders&&(d=o(a))&&q.call(this,d,!0);var n="string"===g&&k.binary===!1&&k.base64===!1;c&&"undefined"!=typeof c.binary||(k.binary=!n);var r=b instanceof i&&0===b.uncompressedSize;(r||k.dir||!b||0===b.length)&&(k.base64=!1,k.binary=!0,b="",k.compression="STORE",g="string");var s=null;s=b instanceof i||b instanceof f?b:l.isNode&&l.isStream(b)?new m(a,b):e.prepareContent(a,b,k.binary,k.optimizedBinaryString,k.base64);var t=new j(a,s,k);this.files[a]=t},o=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},p=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},q=function(a,b){return b="undefined"!=typeof b?b:h.createFolders,a=p(a),this.files[a]||n.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]},r={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],c=b.slice(this.root.length,b.length),c&&b.slice(0,this.root.length)===this.root&&a(c,d))},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,d){if(1===arguments.length){if(c(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}var f=this.files[this.root+a];return f&&!f.dir?f:null}return a=this.root+a,n.call(this,a,b,d),this},folder:function(a){if(!a)return this;if(c(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,d=q.call(this,b),e=this.clone();return e.root=d.name,e},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(a){var b,c={};try{if(c=e.extend(a||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode}),c.type=c.type.toLowerCase(),c.compression=c.compression.toUpperCase(),"binarystring"===c.type&&(c.type="string"),!c.type)throw new Error("No output type specified.");e.checkSupport(c.type),"darwin"!==c.platform&&"freebsd"!==c.platform&&"linux"!==c.platform&&"sunos"!==c.platform||(c.platform="UNIX"),"win32"===c.platform&&(c.platform="DOS");var h=c.comment||this.comment||"";b=k.generateWorker(this,c,h)}catch(i){b=new f("error"),b.error(i)}return new g(b,c.type||"string",c.mimeType)},generateAsync:function(a,b){return this.generateInternalStream(a).accumulate(b)},generateNodeStream:function(a,b){return a=a||{},a.type||(a.type="nodebuffer"),this.generateInternalStream(a).toNodejsStream(b)}};b.exports=r},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,b){b.exports=a("stream")},{stream:void 0}],17:[function(a,b){"use strict";function c(a){d.call(this,a);for(var b=0;b<this.data.length;b++)a[b]=255&a[b]}var d=a("./DataReader"),e=a("../utils");e.inherits(c,d),c.prototype.byteAt=function(a){return this.data[this.zero+a]},c.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return-1},c.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},c.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=c},{"../utils":32,"./DataReader":18}],18:[function(a,b){"use strict";function c(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}var d=a("../utils");c.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||0>a)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},b.exports=c},{"../utils":32}],19:[function(a,b){"use strict";function c(a){d.call(this,a)}var d=a("./Uint8ArrayReader"),e=a("../utils");e.inherits(c,d),c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,b){"use strict";
function c(a){d.call(this,a)}var d=a("./DataReader"),e=a("../utils");e.inherits(c,d),c.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},c.prototype.readAndCheckSignature=function(a){var b=this.readData(4);return a===b},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=c},{"../utils":32,"./DataReader":18}],21:[function(a,b){"use strict";function c(a){d.call(this,a)}var d=a("./ArrayReader"),e=a("../utils");e.inherits(c,d),c.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(a,b){"use strict";var c=a("../utils"),d=a("../support"),e=a("./ArrayReader"),f=a("./StringReader"),g=a("./NodeBufferReader"),h=a("./Uint8ArrayReader");b.exports=function(a){var b=c.getTypeOf(a);return c.checkSupport(b),"string"!==b||d.uint8array?"nodebuffer"===b?new g(a):d.uint8array?new h(c.transformTo("uint8array",a)):new e(c.transformTo("array",a)):new f(a)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\b"},{}],24:[function(a,b){"use strict";function c(a){d.call(this,"ConvertWorker to "+a),this.destType=a}var d=a("./GenericWorker"),e=a("../utils");e.inherits(c,d),c.prototype.processChunk=function(a){this.push({data:e.transformTo(this.destType,a.data),meta:a.meta})},b.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(a,b){"use strict";function c(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var d=a("./GenericWorker"),e=a("../crc32"),f=a("../utils");f.inherits(c,d),c.prototype.processChunk=function(a){this.streamInfo.crc32=e(a.data,this.streamInfo.crc32||0),this.push(a)},b.exports=c},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,b){"use strict";function c(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}var d=a("../utils"),e=a("./GenericWorker");d.inherits(c,e),c.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},b.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(a,b){"use strict";function c(a){e.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=d.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}var d=a("../utils"),e=a("./GenericWorker"),f=16384;d.inherits(c,e),c.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},c.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},c.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},c.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=f,b=null,c=Math.min(this.max,this.index+a);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,c);break;case"uint8array":b=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":b=this.data.slice(this.index,c)}return this.index=c,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},b.exports=c},{"../utils":32,"./GenericWorker":28}],28:[function(a,b){"use strict";function c(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,b)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.end()}),a.on("error",function(a){b.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var a=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,b){return this.extraStreamInfo[a]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},b.exports=c},{}],29:[function(a,b){"use strict";function c(a,b,c){switch(a){case"blob":return g.newBlob(g.transformTo("arraybuffer",b),c);case"base64":return j.encode(b);default:return g.transformTo(a,b)}}function d(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw new Error("concat : unsupported type '"+a+"'")}}function e(a,b){return new l.Promise(function(e,f){var g=[],h=a._internalType,i=a._outputType,j=a._mimeType;a.on("data",function(a,c){g.push(a),b&&b(c)}).on("error",function(a){g=[],f(a)}).on("end",function(){try{var a=c(i,d(h,g),j);e(a)}catch(b){f(b)}g=[]}).resume()})}function f(a,b,c){var d=b;switch(b){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=b,this._mimeType=c,g.checkSupport(d),this._worker=a.pipe(new h(d)),a.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}var g=a("../utils"),h=a("./ConvertWorker"),i=a("./GenericWorker"),j=a("../base64"),k=a("../support"),l=a("../external"),m=null;if(k.nodestream)try{m=a("../nodejs/NodejsStreamOutputAdapter")}catch(n){}f.prototype={accumulate:function(a){return e(this,a)},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){g.delay(b,arguments,c)}),this},resume:function(){return g.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(g.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:"nodebuffer"!==this._outputType},a)}},b.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,b,c){"use strict";if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer="undefined"!=typeof Buffer,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var d=new ArrayBuffer(0);try{c.blob=0===new Blob([d],{type:"application/zip"}).size}catch(e){try{var f=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,g=new f;g.append(d),c.blob=0===g.getBlob("application/zip").size}catch(e){c.blob=!1}}}try{c.nodestream=!!a("readable-stream").Readable}catch(e){c.nodestream=!1}},{"readable-stream":16}],31:[function(a,b,c){"use strict";function d(){i.call(this,"utf-8 decode"),this.leftOver=null}function e(){i.call(this,"utf-8 encode")}for(var f=a("./utils"),g=a("./support"),h=a("./nodejsUtils"),i=a("./stream/GenericWorker"),j=new Array(256),k=0;256>k;k++)j[k]=k>=252?6:k>=248?5:k>=240?4:k>=224?3:k>=192?2:1;j[254]=j[254]=1;var l=function(a){var b,c,d,e,f,h=a.length,i=0;for(e=0;h>e;e++)c=a.charCodeAt(e),55296===(64512&c)&&h>e+1&&(d=a.charCodeAt(e+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),e++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=g.uint8array?new Uint8Array(i):new Array(i),f=0,e=0;i>f;e++)c=a.charCodeAt(e),55296===(64512&c)&&h>e+1&&(d=a.charCodeAt(e+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),e++)),128>c?b[f++]=c:2048>c?(b[f++]=192|c>>>6,b[f++]=128|63&c):65536>c?(b[f++]=224|c>>>12,b[f++]=128|c>>>6&63,b[f++]=128|63&c):(b[f++]=240|c>>>18,b[f++]=128|c>>>12&63,b[f++]=128|c>>>6&63,b[f++]=128|63&c);return b},m=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+j[a[c]]>b?c:b},n=function(a){var b,c,d,e,g=a.length,h=new Array(2*g);for(c=0,b=0;g>b;)if(d=a[b++],128>d)h[c++]=d;else if(e=j[d],e>4)h[c++]=65533,b+=e-1;else{for(d&=2===e?31:3===e?15:7;e>1&&g>b;)d=d<<6|63&a[b++],e--;e>1?h[c++]=65533:65536>d?h[c++]=d:(d-=65536,h[c++]=55296|d>>10&1023,h[c++]=56320|1023&d)}return h.length!==c&&(h.subarray?h=h.subarray(0,c):h.length=c),f.applyFromCharCode(h)};c.utf8encode=function(a){return g.nodebuffer?h.newBufferFrom(a,"utf-8"):l(a)},c.utf8decode=function(a){return g.nodebuffer?f.transformTo("nodebuffer",a).toString("utf-8"):(a=f.transformTo(g.uint8array?"uint8array":"array",a),n(a))},f.inherits(d,i),d.prototype.processChunk=function(a){var b=f.transformTo(g.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var d=b;b=new Uint8Array(d.length+this.leftOver.length),b.set(this.leftOver,0),b.set(d,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var e=m(b),h=b;e!==b.length&&(g.uint8array?(h=b.subarray(0,e),this.leftOver=b.subarray(e,b.length)):(h=b.slice(0,e),this.leftOver=b.slice(e,b.length))),this.push({data:c.utf8decode(h),meta:a.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:c.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},c.Utf8DecodeWorker=d,f.inherits(e,i),e.prototype.processChunk=function(a){this.push({data:c.utf8encode(a.data),meta:a.meta})},c.Utf8EncodeWorker=e},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,b,c){"use strict";function d(a){var b=null;return b=i.uint8array?new Uint8Array(a.length):new Array(a.length),f(a,b)}function e(a){return a}function f(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}function g(a){var b=65536,d=c.getTypeOf(a),e=!0;if("uint8array"===d?e=n.applyCanBeUsed.uint8array:"nodebuffer"===d&&(e=n.applyCanBeUsed.nodebuffer),e)for(;b>1;)try{return n.stringifyByChunk(a,d,b)}catch(f){b=Math.floor(b/2)}return n.stringifyByChar(a)}function h(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}var i=a("./support"),j=a("./base64"),k=a("./nodejsUtils"),l=a("core-js/library/fn/set-immediate"),m=a("./external");c.newBlob=function(a,b){c.checkSupport("blob");try{return new Blob([a],{type:b})}catch(d){try{var e=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,f=new e;return f.append(a),f.getBlob(b)}catch(d){throw new Error("Bug : can't construct the Blob.")}}};var n={stringifyByChunk:function(a,b,c){var d=[],e=0,f=a.length;if(c>=f)return String.fromCharCode.apply(null,a);for(;f>e;)d.push("array"===b||"nodebuffer"===b?String.fromCharCode.apply(null,a.slice(e,Math.min(e+c,f))):String.fromCharCode.apply(null,a.subarray(e,Math.min(e+c,f)))),e+=c;return d.join("")},stringifyByChar:function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(a){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,k.allocBuffer(1)).length}catch(a){return!1}}()}};c.applyFromCharCode=g;var o={};o.string={string:e,array:function(a){return f(a,new Array(a.length))},arraybuffer:function(a){return o.string.uint8array(a).buffer},uint8array:function(a){return f(a,new Uint8Array(a.length))},nodebuffer:function(a){return f(a,k.allocBuffer(a.length))}},o.array={string:g,array:e,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return k.newBufferFrom(a)}},o.arraybuffer={string:function(a){return g(new Uint8Array(a))},array:function(a){return h(new Uint8Array(a),new Array(a.byteLength))},arraybuffer:e,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return k.newBufferFrom(new Uint8Array(a))}},o.uint8array={string:g,array:function(a){return h(a,new Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:e,nodebuffer:function(a){return k.newBufferFrom(a)}},o.nodebuffer={string:g,array:function(a){return h(a,new Array(a.length))},arraybuffer:function(a){return o.nodebuffer.uint8array(a).buffer},uint8array:function(a){return h(a,new Uint8Array(a.length))},nodebuffer:e},c.transformTo=function(a,b){if(b||(b=""),!a)return b;c.checkSupport(a);var d=c.getTypeOf(b),e=o[d][a](b);return e},c.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":i.nodebuffer&&k.isBuffer(a)?"nodebuffer":i.uint8array&&a instanceof Uint8Array?"uint8array":i.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(a){var b=i[a.toLowerCase()];if(!b)throw new Error(a+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\x"+(16>b?"0":"")+b.toString(16).toUpperCase();return d},c.delay=function(a,b,c){l(function(){a.apply(c||null,b||[])})},c.inherits=function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c},c.extend=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeof c[b]&&(c[b]=arguments[a][b]);return c},c.prepareContent=function(a,b,e,f,g){var h=m.Promise.resolve(b).then(function(a){var b=i.blob&&(a instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(a)));return b&&"undefined"!=typeof FileReader?new m.Promise(function(b,c){var d=new FileReader;d.onload=function(a){b(a.target.result)},d.onerror=function(a){c(a.target.error)},d.readAsArrayBuffer(a)}):a});return h.then(function(b){var h=c.getTypeOf(b);return h?("arraybuffer"===h?b=c.transformTo("uint8array",b):"string"===h&&(g?b=j.decode(b):e&&f!==!0&&(b=d(b))),b):m.Promise.reject(new Error("Can't read the data of '"+a+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"core-js/library/fn/set-immediate":36}],33:[function(a,b){"use strict";function c(a){this.files=[],this.loadOptions=a}var d=a("./reader/readerFor"),e=a("./utils"),f=a("./signature"),g=a("./zipEntry"),h=(a("./utf8"),a("./support"));c.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4),e=d===b;return this.reader.setIndex(c),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44,e=0;d>e;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)a=new g({zip64:this.zip64},this.loadOptions),a.readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(0>a){var b=!this.isSignature(0,f.LOCAL_FILE_HEADER);throw new Error(b?"Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html":"Corrupted zip: can't find end of central directory")}this.reader.setIndex(a);var c=a;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),0>a)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var g=c-d;if(g>0)this.isSignature(c,f.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(0>g)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(a,b){"use strict";function c(a,b){this.options=a,this.loadOptions=b}var d=a("./reader/readerFor"),e=a("./utils"),f=a("./compressedObject"),g=a("./crc32"),h=a("./utf8"),i=a("./compressions"),j=a("./support"),k=0,l=3,m=function(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b].magic===a)return i[b];return null};c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(b=m(this.compressionMethod),null===b)throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),a===k&&(this.dosPermissions=63&this.externalFileAttributes),a===l&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d}},handleUTF8:function(){var a=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=e.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var f=e.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=d(a.value);return 1!==b.readInt(1)?null:g(this.fileName)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=d(a.value);return 1!==b.readInt(1)?null:g(this.fileComment)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null}},b.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,b){"use strict";var c=a("./stream/StreamHelper"),d=a("./stream/DataWorker"),e=a("./utf8"),f=a("./compressedObject"),g=a("./stream/GenericWorker"),h=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}};h.prototype={internalStream:function(a){var b=null,d="string";try{if(!a)throw new Error("No output type specified.");d=a.toLowerCase();var f="string"===d||"text"===d;"binarystring"!==d&&"text"!==d||(d="string"),b=this._decompressWorker();var h=!this._dataBinary;h&&!f&&(b=b.pipe(new e.Utf8EncodeWorker)),!h&&f&&(b=b.pipe(new e.Utf8DecodeWorker))}catch(i){b=new g("error"),b.error(i)}return new c(b,d,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof f&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new e.Utf8EncodeWorker)),f.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof g?this._data:new d(this._data)}};for(var i=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],j=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},k=0;k<i.length;k++)h.prototype[i[k]]=j;b.exports=h},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,b){a("../modules/web.immediate"),b.exports=a("../modules/_core").setImmediate},{"../modules/_core":40,"../modules/web.immediate":56}],37:[function(a,b){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],38:[function(a,b){var c=a("./_is-object");b.exports=function(a){if(!c(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":51}],39:[function(a,b){var c={}.toString;b.exports=function(a){return c.call(a).slice(8,-1)}},{}],40:[function(a,b){var c=b.exports={version:"2.3.0"};"number"==typeof __e&&(__e=c)},{}],41:[function(a,b){var c=a("./_a-function");b.exports=function(a,b,d){if(c(a),void 0===b)return a;switch(d){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":37}],42:[function(a,b){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":45}],43:[function(a,b){var c=a("./_is-object"),d=a("./_global").document,e=c(d)&&c(d.createElement);b.exports=function(a){return e?d.createElement(a):{}}},{"./_global":46,"./_is-object":51}],44:[function(a,b){var c=a("./_global"),d=a("./_core"),e=a("./_ctx"),f=a("./_hide"),g="prototype",h=function(a,b,i){var j,k,l,m=a&h.F,n=a&h.G,o=a&h.S,p=a&h.P,q=a&h.B,r=a&h.W,s=n?d:d[b]||(d[b]={}),t=s[g],u=n?c:o?c[b]:(c[b]||{})[g];n&&(i=b);for(j in i)k=!m&&u&&void 0!==u[j],k&&j in s||(l=k?u[j]:i[j],s[j]=n&&"function"!=typeof u[j]?i[j]:q&&k?e(l,c):r&&u[j]==l?function(a){var b=function(b,c,d){if(this instanceof a){switch(arguments.length){case 0:return new a;case 1:return new a(b);case 2:return new a(b,c)}return new a(b,c,d)}return a.apply(this,arguments)};return b[g]=a[g],b}(l):p&&"function"==typeof l?e(Function.call,l):l,p&&((s.virtual||(s.virtual={}))[j]=l,a&h.R&&t&&!t[j]&&f(t,j,l)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,b.exports=h},{"./_core":40,"./_ctx":41,"./_global":46,"./_hide":47}],45:[function(a,b){b.exports=function(a){try{return!!a()}catch(b){return!0}}},{}],46:[function(a,b){var c=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},{}],47:[function(a,b){var c=a("./_object-dp"),d=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,e){return c.f(a,b,d(1,e))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":42,"./_object-dp":52,"./_property-desc":53}],48:[function(a,b){b.exports=a("./_global").document&&document.documentElement},{"./_global":46}],49:[function(a,b){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":42,"./_dom-create":43,"./_fails":45}],50:[function(a,b){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},{}],51:[function(a,b){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],52:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(h){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},{"./_an-object":38,"./_descriptors":42,"./_ie8-dom-define":49,"./_to-primitive":55}],53:[function(a,b){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],54:[function(a,b){var c,d,e,f=a("./_ctx"),g=a("./_invoke"),h=a("./_html"),i=a("./_dom-create"),j=a("./_global"),k=j.process,l=j.setImmediate,m=j.clearImmediate,n=j.MessageChannel,o=0,p={},q="onreadystatechange",r=function(){var a=+this;if(p.hasOwnProperty(a)){var b=p[a];delete p[a],b()}},s=function(a){r.call(a.data)};l&&m||(l=function(a){for(var b=[],d=1;arguments.length>d;)b.push(arguments[d++]);return p[++o]=function(){g("function"==typeof a?a:Function(a),b)},c(o),o},m=function(a){delete p[a]},"process"==a("./_cof")(k)?c=function(a){k.nextTick(f(r,a,1))}:n?(d=new n,e=d.port2,d.port1.onmessage=s,c=f(e.postMessage,e,1)):j.addEventListener&&"function"==typeof postMessage&&!j.importScripts?(c=function(a){j.postMessage(a+"","*")},j.addEventListener("message",s,!1)):c=q in i("script")?function(a){h.appendChild(i("script"))[q]=function(){h.removeChild(this),r.call(a)}}:function(a){setTimeout(f(r,a,1),0)}),b.exports={set:l,clear:m}},{"./_cof":39,"./_ctx":41,"./_dom-create":43,"./_global":46,"./_html":48,"./_invoke":50}],55:[function(a,b){var c=a("./_is-object");b.exports=function(a,b){if(!c(a))return a;var d,e;if(b&&"function"==typeof(d=a.toString)&&!c(e=d.call(a)))return e;if("function"==typeof(d=a.valueOf)&&!c(e=d.call(a)))return e;if(!b&&"function"==typeof(d=a.toString)&&!c(e=d.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],56:[function(a){var b=a("./_export"),c=a("./_task");b(b.G+b.B,{setImmediate:c.set,clearImmediate:c.clear})},{"./_export":44,"./_task":54}],57:[function(a,b){(function(a){"use strict";function c(){k=!0;for(var a,b,c=l.length;c;){for(b=l,l=[],a=-1;++a<c;)b[a]();c=l.length}k=!1}function d(a){1!==l.push(a)||k||e()}var e,f=a.MutationObserver||a.WebKitMutationObserver;if(f){var g=0,h=new f(c),i=a.document.createTextNode("");h.observe(i,{characterData:!0}),e=function(){i.data=g=++g%2
}}else if(a.setImmediate||"undefined"==typeof a.MessageChannel)e="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var b=a.document.createElement("script");b.onreadystatechange=function(){c(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:function(){setTimeout(c,0)};else{var j=new a.MessageChannel;j.port1.onmessage=c,e=function(){j.port2.postMessage(0)}}var k,l=[];b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(a,b){"use strict";function c(){}function d(a){if("function"!=typeof a)throw new TypeError("resolver must be a function");this.state=r,this.queue=[],this.outcome=void 0,a!==c&&h(this,a)}function e(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function f(a,b,c){n(function(){var d;try{d=b(c)}catch(e){return o.reject(a,e)}d===a?o.reject(a,new TypeError("Cannot resolve promise with itself")):o.resolve(a,d)})}function g(a){var b=a&&a.then;return!a||"object"!=typeof a&&"function"!=typeof a||"function"!=typeof b?void 0:function(){b.apply(a,arguments)}}function h(a,b){function c(b){f||(f=!0,o.reject(a,b))}function d(b){f||(f=!0,o.resolve(a,b))}function e(){b(d,c)}var f=!1,g=i(e);"error"===g.status&&c(g.value)}function i(a,b){var c={};try{c.value=a(b),c.status="success"}catch(d){c.status="error",c.value=d}return c}function j(a){return a instanceof this?a:o.resolve(new this(c),a)}function k(a){var b=new this(c);return o.reject(b,a)}function l(a){function b(a,b){function c(a){g[b]=a,++h!==e||f||(f=!0,o.resolve(j,g))}d.resolve(a).then(c,function(a){f||(f=!0,o.reject(j,a))})}var d=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=new Array(e),h=0,i=-1,j=new this(c);++i<e;)b(a[i],i);return j}function m(a){function b(a){d.resolve(a).then(function(a){f||(f=!0,o.resolve(h,a))},function(a){f||(f=!0,o.reject(h,a))})}var d=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=-1,h=new this(c);++g<e;)b(a[g]);return h}var n=a("immediate"),o={},p=["REJECTED"],q=["FULFILLED"],r=["PENDING"];b.exports=d,d.prototype["catch"]=function(a){return this.then(null,a)},d.prototype.then=function(a,b){if("function"!=typeof a&&this.state===q||"function"!=typeof b&&this.state===p)return this;var d=new this.constructor(c);if(this.state!==r){var g=this.state===q?a:b;f(d,g,this.outcome)}else this.queue.push(new e(d,a,b));return d},e.prototype.callFulfilled=function(a){o.resolve(this.promise,a)},e.prototype.otherCallFulfilled=function(a){f(this.promise,this.onFulfilled,a)},e.prototype.callRejected=function(a){o.reject(this.promise,a)},e.prototype.otherCallRejected=function(a){f(this.promise,this.onRejected,a)},o.resolve=function(a,b){var c=i(g,b);if("error"===c.status)return o.reject(a,c.value);var d=c.value;if(d)h(a,d);else{a.state=q,a.outcome=b;for(var e=-1,f=a.queue.length;++e<f;)a.queue[e].callFulfilled(b)}return a},o.reject=function(a,b){a.state=p,a.outcome=b;for(var c=-1,d=a.queue.length;++c<d;)a.queue[c].callRejected(b);return a},d.resolve=j,d.reject=k,d.all=l,d.race=m},{immediate:57}],59:[function(a,b){"use strict";var c=a("./lib/utils/common").assign,d=a("./lib/deflate"),e=a("./lib/inflate"),f=a("./lib/zlib/constants"),g={};c(g,d,e,f),b.exports=g},{"./lib/deflate":60,"./lib/inflate":61,"./lib/utils/common":62,"./lib/zlib/constants":65}],60:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=i.assign({level:s,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:t,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var c=h.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==p)throw new Error(k[c]);if(b.header&&h.deflateSetHeader(this.strm,b.header),b.dictionary){var e;if(e="string"==typeof b.dictionary?j.string2buf(b.dictionary):"[object ArrayBuffer]"===m.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=h.deflateSetDictionary(this.strm,e),c!==p)throw new Error(k[c]);this._dict_set=!0}}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg||k[c.err];return c.result}function f(a,b){return b=b||{},b.raw=!0,e(a,b)}function g(a,b){return b=b||{},b.gzip=!0,e(a,b)}var h=a("./zlib/deflate"),i=a("./utils/common"),j=a("./utils/strings"),k=a("./zlib/messages"),l=a("./zlib/zstream"),m=Object.prototype.toString,n=0,o=4,p=0,q=1,r=2,s=-1,t=0,u=8;d.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?o:n,e.input="string"==typeof a?j.string2buf(a):"[object ArrayBuffer]"===m.call(a)?new Uint8Array(a):a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new i.Buf8(f),e.next_out=0,e.avail_out=f),c=h.deflate(e,d),c!==q&&c!==p)return this.onEnd(c),this.ended=!0,!1;0!==e.avail_out&&(0!==e.avail_in||d!==o&&d!==r)||this.onData("string"===this.options.to?j.buf2binstring(i.shrinkBuf(e.output,e.next_out)):i.shrinkBuf(e.output,e.next_out))}while((e.avail_in>0||0===e.avail_out)&&c!==q);return d===o?(c=h.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===p):d!==r||(this.onEnd(p),e.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===p&&(this.result="string"===this.options.to?this.chunks.join(""):i.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=d,c.deflate=e,c.deflateRaw=f,c.gzip=g},{"./utils/common":62,"./utils/strings":63,"./zlib/deflate":67,"./zlib/messages":72,"./zlib/zstream":74}],61:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var c=g.inflateInit2(this.strm,b.windowBits);if(c!==j.Z_OK)throw new Error(k[c]);this.header=new m,g.inflateGetHeader(this.strm,this.header)}function e(a,b){var c=new d(b);if(c.push(a,!0),c.err)throw c.msg||k[c.err];return c.result}function f(a,b){return b=b||{},b.raw=!0,e(a,b)}var g=a("./zlib/inflate"),h=a("./utils/common"),i=a("./utils/strings"),j=a("./zlib/constants"),k=a("./zlib/messages"),l=a("./zlib/zstream"),m=a("./zlib/gzheader"),n=Object.prototype.toString;d.prototype.push=function(a,b){var c,d,e,f,k,l,m=this.strm,o=this.options.chunkSize,p=this.options.dictionary,q=!1;if(this.ended)return!1;d=b===~~b?b:b===!0?j.Z_FINISH:j.Z_NO_FLUSH,m.input="string"==typeof a?i.binstring2buf(a):"[object ArrayBuffer]"===n.call(a)?new Uint8Array(a):a,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new h.Buf8(o),m.next_out=0,m.avail_out=o),c=g.inflate(m,j.Z_NO_FLUSH),c===j.Z_NEED_DICT&&p&&(l="string"==typeof p?i.string2buf(p):"[object ArrayBuffer]"===n.call(p)?new Uint8Array(p):p,c=g.inflateSetDictionary(this.strm,l)),c===j.Z_BUF_ERROR&&q===!0&&(c=j.Z_OK,q=!1),c!==j.Z_STREAM_END&&c!==j.Z_OK)return this.onEnd(c),this.ended=!0,!1;m.next_out&&(0!==m.avail_out&&c!==j.Z_STREAM_END&&(0!==m.avail_in||d!==j.Z_FINISH&&d!==j.Z_SYNC_FLUSH)||("string"===this.options.to?(e=i.utf8border(m.output,m.next_out),f=m.next_out-e,k=i.buf2string(m.output,e),m.next_out=f,m.avail_out=o-f,f&&h.arraySet(m.output,m.output,e,f,0),this.onData(k)):this.onData(h.shrinkBuf(m.output,m.next_out)))),0===m.avail_in&&0===m.avail_out&&(q=!0)}while((m.avail_in>0||0===m.avail_out)&&c!==j.Z_STREAM_END);return c===j.Z_STREAM_END&&(d=j.Z_FINISH),d===j.Z_FINISH?(c=g.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===j.Z_OK):d!==j.Z_SYNC_FLUSH||(this.onEnd(j.Z_OK),m.avail_out=0,!0)},d.prototype.onData=function(a){this.chunks.push(a)},d.prototype.onEnd=function(a){a===j.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=d,c.inflate=e,c.inflateRaw=f,c.ungzip=e},{"./utils/common":62,"./utils/strings":63,"./zlib/constants":65,"./zlib/gzheader":68,"./zlib/inflate":70,"./zlib/messages":72,"./zlib/zstream":74}],62:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],63:[function(a,b,c){"use strict";function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;b>d;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(h){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){g=!1}for(var i=new e.Buf8(256),j=0;256>j;j++)i[j]=j>=252?6:j>=248?5:j>=240?4:j>=224?3:j>=192?2:1;i[254]=i[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=new e.Buf8(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){for(var b=new e.Buf8(a.length),c=0,d=b.length;d>c;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,h=b||a.length,j=new Array(2*h);for(e=0,c=0;h>c;)if(f=a[c++],128>f)j[e++]=f;else if(g=i[f],g>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&h>c;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:65536>f?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+i[a[c]]>b?c:b}},{"./common":62}],64:[function(a,b){"use strict";function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=c},{}],65:[function(a,b){"use strict";b.exports={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_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}},{}],66:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var f=e,g=d+c;a^=-1;for(var h=d;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}var e=c();b.exports=d},{}],67:[function(a,b,c){"use strict";function d(a,b){return a.msg=I[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(E.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){F._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,E.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=G(a.adler,b,e,c):2===a.state.wrap&&(a.adler=H(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-lb?a.strstart-(a.w_size-lb):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+kb,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=kb-(m-f),f=m-kb,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-lb)){E.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=jb)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+jb-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<jb)););}while(a.lookahead<lb&&0!==a.strm.avail_in)}function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===J)return ub;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return ub;if(a.strstart-a.block_start>=a.w_size-lb&&(h(a,!1),0===a.strm.avail_out))return ub}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wb:xb):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?ub:ub}function o(a,b){for(var c,d;;){if(a.lookahead<lb){if(m(a),a.lookahead<lb&&b===J)return ub;if(0===a.lookahead)break}if(c=0,a.lookahead>=jb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+jb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-lb&&(a.match_length=l(a,c)),a.match_length>=jb)if(d=F._tr_tally(a,a.strstart-a.match_start,a.match_length-jb),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=jb){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+jb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return ub}return a.insert=a.strstart<jb-1?a.strstart:jb-1,b===M?(h(a,!0),0===a.strm.avail_out?wb:xb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ub:vb}function p(a,b){for(var c,d,e;;){if(a.lookahead<lb){if(m(a),a.lookahead<lb&&b===J)return ub;if(0===a.lookahead)break}if(c=0,a.lookahead>=jb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+jb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=jb-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-lb&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===U||a.match_length===jb&&a.strstart-a.match_start>4096)&&(a.match_length=jb-1)),a.prev_length>=jb&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-jb,d=F._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-jb),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+jb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=jb-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return ub}else if(a.match_available){if(d=F._tr_tally(a,0,a.window[a.strstart-1]),d&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return ub}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=F._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<jb-1?a.strstart:jb-1,b===M?(h(a,!0),0===a.strm.avail_out?wb:xb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ub:vb}function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=kb){if(m(a),a.lookahead<=kb&&b===J)return ub;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=jb&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+kb;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=kb-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=jb?(c=F._tr_tally(a,1,a.match_length-jb),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return ub}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wb:xb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ub:vb}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===J)return ub;break}if(a.match_length=0,c=F._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return ub}return a.insert=0,b===M?(h(a,!0),0===a.strm.avail_out?wb:xb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?ub:vb}function s(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function t(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=D[a.level].max_lazy,a.good_match=D[a.level].good_length,a.nice_match=D[a.level].nice_length,a.max_chain_length=D[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=jb-1,a.match_available=0,a.ins_h=0}function u(){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=$,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 E.Buf16(2*hb),this.dyn_dtree=new E.Buf16(2*(2*fb+1)),this.bl_tree=new E.Buf16(2*(2*gb+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(ib+1),this.heap=new E.Buf16(2*eb+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*eb+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function v(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=Z,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?nb:sb,a.adler=2===b.wrap?0:1,b.last_flush=J,F._tr_init(b),O):d(a,Q)}function w(a){var b=v(a);return b===O&&t(a.state),b}function x(a,b){return a&&a.state?2!==a.state.wrap?Q:(a.state.gzhead=b,O):Q}function y(a,b,c,e,f,g){if(!a)return Q;var h=1;if(b===T&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>_||c!==$||8>e||e>15||0>b||b>9||0>g||g>X)return d(a,Q);8===e&&(e=9);var i=new u;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+jb-1)/jb),i.window=new E.Buf8(2*i.w_size),i.head=new E.Buf16(i.hash_size),i.prev=new E.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new E.Buf8(i.pending_buf_size),i.d_buf=1*i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,w(a)}function z(a,b){return y(a,b,$,ab,bb,Y)}function A(a,b){var c,h,k,l;if(!a||!a.state||b>N||0>b)return a?d(a,Q):Q;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===tb&&b!==M)return d(a,0===a.avail_out?S:Q);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===nb)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=V||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=H(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=ob):(i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=V||h.level<2?4:0),i(h,yb),h.status=sb);else{var m=$+(h.w_bits-8<<4)<<8,n=-1;n=h.strategy>=V||h.level<2?0:h.level<6?1:6===h.level?2:3,m|=n<<6,0!==h.strstart&&(m|=mb),m+=31-m%31,h.status=sb,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===ob)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=pb)}else h.status=pb;if(h.status===pb)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=qb)}else h.status=qb;if(h.status===qb)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=H(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=rb)}else h.status=rb;if(h.status===rb&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=sb)):h.status=sb),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,O}else if(0===a.avail_in&&e(b)<=e(c)&&b!==M)return d(a,S);if(h.status===tb&&0!==a.avail_in)return d(a,S);if(0!==a.avail_in||0!==h.lookahead||b!==J&&h.status!==tb){var o=h.strategy===V?r(h,b):h.strategy===W?q(h,b):D[h.level].func(h,b);if(o!==wb&&o!==xb||(h.status=tb),o===ub||o===wb)return 0===a.avail_out&&(h.last_flush=-1),O;if(o===vb&&(b===K?F._tr_align(h):b!==N&&(F._tr_stored_block(h,0,0,!1),b===L&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,O}return b!==M?O:h.wrap<=0?P:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?O:P)}function B(a){var b;return a&&a.state?(b=a.state.status,b!==nb&&b!==ob&&b!==pb&&b!==qb&&b!==rb&&b!==sb&&b!==tb?d(a,Q):(a.state=null,b===sb?d(a,R):O)):Q}function C(a,b){var c,d,e,g,h,i,j,k,l=b.length;if(!a||!a.state)return Q;if(c=a.state,g=c.wrap,2===g||1===g&&c.status!==nb||c.lookahead)return Q;for(1===g&&(a.adler=G(a.adler,b,l,0)),c.wrap=0,l>=c.w_size&&(0===g&&(f(c.head),c.strstart=0,c.block_start=0,c.insert=0),k=new E.Buf8(c.w_size),E.arraySet(k,b,l-c.w_size,c.w_size,0),b=k,l=c.w_size),h=a.avail_in,i=a.next_in,j=a.input,a.avail_in=l,a.next_in=0,a.input=b,m(c);c.lookahead>=jb;){d=c.strstart,e=c.lookahead-(jb-1);do c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+jb-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++;while(--e);c.strstart=d,c.lookahead=jb-1,m(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=jb-1,c.match_available=0,a.next_in=i,a.input=j,a.avail_in=h,c.wrap=g,O}var D,E=a("../utils/common"),F=a("./trees"),G=a("./adler32"),H=a("./crc32"),I=a("./messages"),J=0,K=1,L=3,M=4,N=5,O=0,P=1,Q=-2,R=-3,S=-5,T=-1,U=1,V=2,W=3,X=4,Y=0,Z=2,$=8,_=9,ab=15,bb=8,cb=29,db=256,eb=db+1+cb,fb=30,gb=19,hb=2*eb+1,ib=15,jb=3,kb=258,lb=kb+jb+1,mb=32,nb=42,ob=69,pb=73,qb=91,rb=103,sb=113,tb=666,ub=1,vb=2,wb=3,xb=4,yb=3;D=[new s(0,0,0,0,n),new s(4,4,8,4,o),new s(4,5,16,8,o),new s(4,6,32,32,o),new s(4,4,16,16,p),new s(8,16,32,32,p),new s(8,16,128,128,p),new s(8,32,128,256,p),new s(32,128,258,1024,p),new s(32,258,258,4096,p)],c.deflateInit=z,c.deflateInit2=y,c.deflateReset=w,c.deflateResetKeep=v,c.deflateSetHeader=x,c.deflate=A,c.deflateEnd=B,c.deflateSetDictionary=C,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./messages":72,"./trees":73}],68:[function(a,b){"use strict";function c(){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}b.exports=c},{}],69:[function(a,b){"use strict";var c=30,d=12;b.exports=function(a,b){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;e=a.state,f=a.next_in,B=a.input,g=f+(a.avail_in-5),h=a.next_out,C=a.output,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=e.dmax,l=e.wsize,m=e.whave,n=e.wnext,o=e.window,p=e.hold,q=e.bits,r=e.lencode,s=e.distcode,t=(1<<e.lenbits)-1,u=(1<<e.distbits)-1;a:do{15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=r[p&t];b:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<<w)-1)];continue b}if(32&w){e.mode=d;break a}a.msg="invalid literal/length code",e.mode=c;break a}x=65535&v,w&=15,w&&(w>q&&(p+=B[f++]<<q,q+=8),x+=p&(1<<w)-1,p>>>=w,q-=w),15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=s[p&u];c:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<<w)-1)];continue c}a.msg="invalid distance code",e.mode=c;break a}if(y=65535&v,w&=15,w>q&&(p+=B[f++]<<q,q+=8,w>q&&(p+=B[f++]<<q,q+=8)),y+=p&(1<<w)-1,y>k){a.msg="invalid distance too far back",e.mode=c;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&e.sane){a.msg="invalid distance too far back",e.mode=c;break a}if(z=0,A=o,0===n){if(z+=l-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(w>n){if(z+=l+n-w,w-=n,x>w){x-=w;do C[h++]=o[z++];while(--w);if(z=0,x>n){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(g>f&&j>h);x=q>>3,f-=x,q-=x<<3,p&=(1<<q)-1,a.next_in=f,a.next_out=h,a.avail_in=g>f?5+(g-f):5-(f-g),a.avail_out=j>h?257+(j-h):257-(h-j),e.hold=p,e.bits=q}},{}],70:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){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 s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=L,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new s.Buf32(pb),b.distcode=b.distdyn=new s.Buf32(qb),b.sane=1,b.back=-1,D):G}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):G}function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||b>15)?G:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):G}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,b),c!==D&&(a.state=null),c):G}function j(a){return i(a,sb)}function k(a){if(tb){var b;for(q=new s.Buf32(512),r=new s.Buf32(32),b=0;144>b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(w(y,a.lens,0,288,q,0,a.work,{bits:9}),b=0;32>b;)a.lens[b++]=5;w(z,a.lens,0,32,r,0,a.work,{bits:5}),tb=!1}a.lencode=q,a.lenbits=9,a.distcode=r,a.distbits=5}function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new s.Buf8(f.wsize)),d>=f.wsize?(s.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),s.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(s.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,r,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab=0,Bb=new s.Buf8(4),Cb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return G;c=a.state,c.mode===W&&(c.mode=X),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,o=i,p=j,xb=D;a:for(;;)switch(c.mode){case L:if(0===c.wrap){c.mode=X;break}for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(2&c.wrap&&35615===m){c.check=0,Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=u(c.check,Bb,2,0),m=0,n=0,c.mode=M;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=mb;break}if((15&m)!==K){a.msg="unknown compression method",c.mode=mb;break}if(m>>>=4,n-=4,wb=(15&m)+8,0===c.wbits)c.wbits=wb;else if(wb>c.wbits){a.msg="invalid window size",c.mode=mb;break}c.dmax=1<<wb,a.adler=c.check=1,c.mode=512&m?U:W,m=0,n=0;
break;case M:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.flags=m,(255&c.flags)!==K){a.msg="unknown compression method",c.mode=mb;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=mb;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=u(c.check,Bb,2,0)),m=0,n=0,c.mode=N;case N:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.time=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,Bb[2]=m>>>16&255,Bb[3]=m>>>24&255,c.check=u(c.check,Bb,4,0)),m=0,n=0,c.mode=O;case O:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=u(c.check,Bb,2,0)),m=0,n=0,c.mode=P;case P:if(1024&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=u(c.check,Bb,2,0)),m=0,n=0}else c.head&&(c.head.extra=null);c.mode=Q;case Q:if(1024&c.flags&&(q=c.length,q>i&&(q=i),q&&(c.head&&(wb=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),s.arraySet(c.head.extra,e,g,q,wb)),512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,c.length-=q),c.length))break a;c.length=0,c.mode=R;case R:if(2048&c.flags){if(0===i)break a;q=0;do wb=e[g+q++],c.head&&wb&&c.length<65536&&(c.head.name+=String.fromCharCode(wb));while(wb&&i>q);if(512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,wb)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=S;case S:if(4096&c.flags){if(0===i)break a;q=0;do wb=e[g+q++],c.head&&wb&&c.length<65536&&(c.head.comment+=String.fromCharCode(wb));while(wb&&i>q);if(512&c.flags&&(c.check=u(c.check,e,q,g)),i-=q,g+=q,wb)break a}else c.head&&(c.head.comment=null);c.mode=T;case T:if(512&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=mb;break}m=0,n=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=W;break;case U:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}a.adler=c.check=d(m),m=0,n=0,c.mode=V;case V:if(0===c.havedict)return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,F;a.adler=c.check=1,c.mode=W;case W:if(b===B||b===C)break a;case X:if(c.last){m>>>=7&n,n-=7&n,c.mode=jb;break}for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}switch(c.last=1&m,m>>>=1,n-=1,3&m){case 0:c.mode=Y;break;case 1:if(k(c),c.mode=cb,b===C){m>>>=2,n-=2;break a}break;case 2:c.mode=_;break;case 3:a.msg="invalid block type",c.mode=mb}m>>>=2,n-=2;break;case Y:for(m>>>=7&n,n-=7&n;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if((65535&m)!==(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=mb;break}if(c.length=65535&m,m=0,n=0,c.mode=Z,b===C)break a;case Z:c.mode=$;case $:if(q=c.length){if(q>i&&(q=i),q>j&&(q=j),0===q)break a;s.arraySet(f,e,g,q,h),i-=q,g+=q,j-=q,h+=q,c.length-=q;break}c.mode=W;break;case _:for(;14>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.nlen=(31&m)+257,m>>>=5,n-=5,c.ndist=(31&m)+1,m>>>=5,n-=5,c.ncode=(15&m)+4,m>>>=4,n-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=mb;break}c.have=0,c.mode=ab;case ab:for(;c.have<c.ncode;){for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.lens[Cb[c.have++]]=7&m,m>>>=3,n-=3}for(;c.have<19;)c.lens[Cb[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,yb={bits:c.lenbits},xb=w(x,c.lens,0,19,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid code lengths set",c.mode=mb;break}c.have=0,c.mode=bb;case bb:for(;c.have<c.nlen+c.ndist;){for(;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(16>sb)m>>>=qb,n-=qb,c.lens[c.have++]=sb;else{if(16===sb){for(zb=qb+2;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m>>>=qb,n-=qb,0===c.have){a.msg="invalid bit length repeat",c.mode=mb;break}wb=c.lens[c.have-1],q=3+(3&m),m>>>=2,n-=2}else if(17===sb){for(zb=qb+3;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qb,n-=qb,wb=0,q=3+(7&m),m>>>=3,n-=3}else{for(zb=qb+7;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qb,n-=qb,wb=0,q=11+(127&m),m>>>=7,n-=7}if(c.have+q>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=mb;break}for(;q--;)c.lens[c.have++]=wb}}if(c.mode===mb)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=mb;break}if(c.lenbits=9,yb={bits:c.lenbits},xb=w(y,c.lens,0,c.nlen,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid literal/lengths set",c.mode=mb;break}if(c.distbits=6,c.distcode=c.distdyn,yb={bits:c.distbits},xb=w(z,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,yb),c.distbits=yb.bits,xb){a.msg="invalid distances set",c.mode=mb;break}if(c.mode=cb,b===C)break a;case cb:c.mode=db;case db:if(i>=6&&j>=258){a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,v(a,p),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,c.mode===W&&(c.back=-1);break}for(c.back=0;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(rb&&0===(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.lencode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=tb,n-=tb,c.back+=tb}if(m>>>=qb,n-=qb,c.back+=qb,c.length=sb,0===rb){c.mode=ib;break}if(32&rb){c.back=-1,c.mode=W;break}if(64&rb){a.msg="invalid literal/length code",c.mode=mb;break}c.extra=15&rb,c.mode=eb;case eb:if(c.extra){for(zb=c.extra;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=fb;case fb:for(;Ab=c.distcode[m&(1<<c.distbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(0===(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.distcode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=tb,n-=tb,c.back+=tb}if(m>>>=qb,n-=qb,c.back+=qb,64&rb){a.msg="invalid distance code",c.mode=mb;break}c.offset=sb,c.extra=15&rb,c.mode=gb;case gb:if(c.extra){for(zb=c.extra;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=mb;break}c.mode=hb;case hb:if(0===j)break a;if(q=p-j,c.offset>q){if(q=c.offset-q,q>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=mb;break}q>c.wnext?(q-=c.wnext,r=c.wsize-q):r=c.wnext-q,q>c.length&&(q=c.length),pb=c.window}else pb=f,r=h-c.offset,q=c.length;q>j&&(q=j),j-=q,c.length-=q;do f[h++]=pb[r++];while(--q);0===c.length&&(c.mode=db);break;case ib:if(0===j)break a;f[h++]=c.length,j--,c.mode=db;break;case jb:if(c.wrap){for(;32>n;){if(0===i)break a;i--,m|=e[g++]<<n,n+=8}if(p-=j,a.total_out+=p,c.total+=p,p&&(a.adler=c.check=c.flags?u(c.check,f,p,h-p):t(c.check,f,p,h-p)),p=j,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=mb;break}m=0,n=0}c.mode=kb;case kb:if(c.wrap&&c.flags){for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=mb;break}m=0,n=0}c.mode=lb;case lb:xb=E;break a;case mb:xb=H;break a;case nb:return I;case ob:default:return G}return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,(c.wsize||p!==a.avail_out&&c.mode<mb&&(c.mode<jb||b!==A))&&l(a,a.output,a.next_out,p-a.avail_out)?(c.mode=nb,I):(o-=a.avail_in,p-=a.avail_out,a.total_in+=o,a.total_out+=p,c.total+=p,c.wrap&&p&&(a.adler=c.check=c.flags?u(c.check,f,p,a.next_out-p):t(c.check,f,p,a.next_out-p)),a.data_type=c.bits+(c.last?64:0)+(c.mode===W?128:0)+(c.mode===cb||c.mode===Z?256:0),(0===o&&0===p||b===A)&&xb===D&&(xb=J),xb)}function n(a){if(!a||!a.state)return G;var b=a.state;return b.window&&(b.window=null),a.state=null,D}function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?G:(c.head=b,b.done=!1,D)):G}function p(a,b){var c,d,e,f=b.length;return a&&a.state?(c=a.state,0!==c.wrap&&c.mode!==V?G:c.mode===V&&(d=1,d=t(d,b,f,0),d!==c.check)?H:(e=l(a,b,f,f))?(c.mode=nb,I):(c.havedict=1,D)):G}var q,r,s=a("../utils/common"),t=a("./adler32"),u=a("./crc32"),v=a("./inffast"),w=a("./inftrees"),x=0,y=1,z=2,A=4,B=5,C=6,D=0,E=1,F=2,G=-2,H=-3,I=-4,J=-5,K=8,L=1,M=2,N=3,O=4,P=5,Q=6,R=7,S=8,T=9,U=10,V=11,W=12,X=13,Y=14,Z=15,$=16,_=17,ab=18,bb=19,cb=20,db=21,eb=22,fb=23,gb=24,hb=25,ib=26,jb=27,kb=28,lb=29,mb=30,nb=31,ob=32,pb=852,qb=592,rb=15,sb=rb,tb=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=j,c.inflateInit2=i,c.inflate=m,c.inflateEnd=n,c.inflateGetHeader=o,c.inflateSetDictionary=p,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./inffast":69,"./inftrees":71}],71:[function(a,b){"use strict";var c=a("../utils/common"),d=15,e=852,f=592,g=0,h=1,i=2,j=[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],k=[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],l=[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],m=[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];b.exports=function(a,b,n,o,p,q,r,s){var t,u,v,w,x,y,z,A,B,C=s.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new c.Buf16(d+1),Q=new c.Buf16(d+1),R=null,S=0;for(D=0;d>=D;D++)P[D]=0;for(E=0;o>E;E++)P[b[n+E]]++;for(H=C,G=d;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return p[q++]=20971520,p[q++]=20971520,s.bits=1,0;for(F=1;G>F&&0===P[F];F++);for(F>H&&(H=F),K=1,D=1;d>=D;D++)if(K<<=1,K-=P[D],0>K)return-1;if(K>0&&(a===g||1!==G))return-1;for(Q[1]=0,D=1;d>D;D++)Q[D+1]=Q[D]+P[D];for(E=0;o>E;E++)0!==b[n+E]&&(r[Q[b[n+E]]++]=E);if(a===g?(N=R=r,y=19):a===h?(N=j,O-=257,R=k,S-=257,y=256):(N=l,R=m,y=-1),M=0,E=0,D=F,x=q,I=H,J=0,v=-1,L=1<<H,w=L-1,a===h&&L>e||a===i&&L>f)return 1;for(;;){z=D-J,r[E]<y?(A=0,B=r[E]):r[E]>y?(A=R[S+r[E]],B=N[O+r[E]]):(A=96,B=0),t=1<<D-J,u=1<<I,F=u;do u-=t,p[x+(M>>J)+u]=z<<24|A<<16|B|0;while(0!==u);for(t=1<<D-1;M&t;)t>>=1;if(0!==t?(M&=t-1,M+=t):M=0,E++,0===--P[D]){if(D===G)break;D=b[n+r[E]]}if(D>H&&(M&w)!==v){for(0===J&&(J=H),x+=F,I=D-J,K=1<<I;G>I+J&&(K-=P[I+J],!(0>=K));)I++,K<<=1;if(L+=1<<I,a===h&&L>e||a===i&&L>f)return 1;v=M&w,p[v]=H<<24|I<<16|x-q|0}}return 0!==M&&(p[x+M]=D-J<<24|64<<16|0),s.bits=H,0}},{"../utils/common":62}],72:[function(a,b){"use strict";b.exports={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"}},{}],73:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function f(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function g(a){return 256>a?ib[a]:ib[256+(a>>>7)]}function h(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function i(a,b,c){a.bi_valid>X-c?(a.bi_buf|=b<<a.bi_valid&65535,h(a,a.bi_buf),a.bi_buf=b>>X-a.bi_valid,a.bi_valid+=c-X):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function j(a,b,c){i(a,c[2*b],c[2*b+1])}function k(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function l(a){16===a.bi_valid?(h(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function m(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;W>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;V>c;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function n(a,b,c){var d,e,f=new Array(W+1),g=0;for(d=1;W>=d;d++)f[d]=g=g+c[d-1]<<1;for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=k(f[h]++,h))}}function o(){var a,b,c,d,f,g=new Array(W+1);for(c=0,d=0;Q-1>d;d++)for(kb[d]=c,a=0;a<1<<bb[d];a++)jb[c++]=d;for(jb[c-1]=d,f=0,d=0;16>d;d++)for(lb[d]=f,a=0;a<1<<cb[d];a++)ib[f++]=d;for(f>>=7;T>d;d++)for(lb[d]=f<<7,a=0;a<1<<cb[d]-7;a++)ib[256+f++]=d;for(b=0;W>=b;b++)g[b]=0;for(a=0;143>=a;)gb[2*a+1]=8,a++,g[8]++;for(;255>=a;)gb[2*a+1]=9,a++,g[9]++;for(;279>=a;)gb[2*a+1]=7,a++,g[7]++;for(;287>=a;)gb[2*a+1]=8,a++,g[8]++;for(n(gb,S+1,g),a=0;T>a;a++)hb[2*a+1]=5,hb[2*a]=k(a,5);mb=new e(gb,bb,R+1,S,W),nb=new e(hb,cb,0,T,W),ob=new e(new Array(0),db,0,U,Y)}function p(a){var b;for(b=0;S>b;b++)a.dyn_ltree[2*b]=0;for(b=0;T>b;b++)a.dyn_dtree[2*b]=0;for(b=0;U>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*Z]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function q(a){a.bi_valid>8?h(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function r(a,b,c,d){q(a),d&&(h(a,c),h(a,~c)),G.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function s(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function t(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&s(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!s(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function u(a,b,c){var d,e,f,h,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],e=a.pending_buf[a.l_buf+k],k++,0===d?j(a,e,b):(f=jb[e],j(a,f+R+1,b),h=bb[f],0!==h&&(e-=kb[f],i(a,e,h)),d--,f=g(d),j(a,f,c),h=cb[f],0!==h&&(d-=lb[f],i(a,d,h)));while(k<a.last_lit);j(a,Z,b)}function v(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=V,c=0;i>c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=2>j?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)t(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],t(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,t(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],m(a,b),n(f,j,a.bl_count)}function w(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(j>h?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*$]++):10>=h?a.bl_tree[2*_]++:a.bl_tree[2*ab]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function x(a,b,c){var d,e,f=-1,g=b[1],h=0,k=7,l=4;for(0===g&&(k=138,l=3),d=0;c>=d;d++)if(e=g,g=b[2*(d+1)+1],!(++h<k&&e===g)){if(l>h){do j(a,e,a.bl_tree);while(0!==--h)}else 0!==e?(e!==f&&(j(a,e,a.bl_tree),h--),j(a,$,a.bl_tree),i(a,h-3,2)):10>=h?(j(a,_,a.bl_tree),i(a,h-3,3)):(j(a,ab,a.bl_tree),i(a,h-11,7));h=0,f=e,0===g?(k=138,l=3):e===g?(k=6,l=3):(k=7,l=4)}}function y(a){var b;for(w(a,a.dyn_ltree,a.l_desc.max_code),w(a,a.dyn_dtree,a.d_desc.max_code),v(a,a.bl_desc),b=U-1;b>=3&&0===a.bl_tree[2*eb[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function z(a,b,c,d){var e;for(i(a,b-257,5),i(a,c-1,5),i(a,d-4,4),e=0;d>e;e++)i(a,a.bl_tree[2*eb[e]+1],3);x(a,a.dyn_ltree,b-1),x(a,a.dyn_dtree,c-1)}function A(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return I;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return J;for(b=32;R>b;b++)if(0!==a.dyn_ltree[2*b])return J;return I}function B(a){pb||(o(),pb=!0),a.l_desc=new f(a.dyn_ltree,mb),a.d_desc=new f(a.dyn_dtree,nb),a.bl_desc=new f(a.bl_tree,ob),a.bi_buf=0,a.bi_valid=0,p(a)}function C(a,b,c,d){i(a,(L<<1)+(d?1:0),3),r(a,b,c,!0)}function D(a){i(a,M<<1,3),j(a,Z,gb),l(a)}function E(a,b,c,d){var e,f,g=0;a.level>0?(a.strm.data_type===K&&(a.strm.data_type=A(a)),v(a,a.l_desc),v(a,a.d_desc),g=y(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,e>=f&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?C(a,b,c,d):a.strategy===H||f===e?(i(a,(M<<1)+(d?1:0),3),u(a,gb,hb)):(i(a,(N<<1)+(d?1:0),3),z(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),u(a,a.dyn_ltree,a.dyn_dtree)),p(a),d&&q(a)}function F(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(jb[c]+R+1)]++,a.dyn_dtree[2*g(b)]++),a.last_lit===a.lit_bufsize-1}var G=a("../utils/common"),H=4,I=0,J=1,K=2,L=0,M=1,N=2,O=3,P=258,Q=29,R=256,S=R+1+Q,T=30,U=19,V=2*S+1,W=15,X=16,Y=7,Z=256,$=16,_=17,ab=18,bb=[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],cb=[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],db=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],eb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fb=512,gb=new Array(2*(S+2));d(gb);var hb=new Array(2*T);d(hb);var ib=new Array(fb);d(ib);var jb=new Array(P-O+1);d(jb);var kb=new Array(Q);d(kb);var lb=new Array(T);d(lb);var mb,nb,ob,pb=!1;c._tr_init=B,c._tr_stored_block=C,c._tr_flush_block=E,c._tr_tally=F,c._tr_align=D},{"../utils/common":62}],74:[function(a,b){"use strict";function c(){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}b.exports=c},{}]},{},[10])(10)}),function(){var a,b={};"object"==typeof module?module.exports=b:window.UPNG=b,a="function"==typeof require?require("pako"):window.pako,function(a,b){a.toRGBA8=function(b){var c=b.width,d=b.height;if(null==b.tabs.acTL)return[a.toRGBA8.decodeImage(b.data,c,d,b).buffer];var e=[];null==b.frames[0].data&&(b.frames[0].data=b.data);for(var f,g=new Uint8Array(c*d*4),h=0;h<b.frames.length;h++){var i=b.frames[h],j=i.rect.x,k=i.rect.y,l=i.rect.width,m=i.rect.height,n=a.toRGBA8.decodeImage(i.data,l,m,b);if(0==h?f=n:0==i.blend?a._copyTile(n,l,m,f,c,d,j,k,0):1==i.blend&&a._copyTile(n,l,m,f,c,d,j,k,1),e.push(f.buffer),f=f.slice(0),0==i.dispose);else if(1==i.dispose)a._copyTile(g,l,m,f,c,d,j,k,0);else if(2==i.dispose){for(var o=h-1;2==b.frames[o].dispose;)o--;f=new Uint8Array(e[o]).slice(0)}}return e},a.toRGBA8.decodeImage=function(b,c,d,e){var f=c*d,g=a.decode._getBPP(e),h=Math.ceil(c*g/8),i=new Uint8Array(4*f),j=new Uint32Array(i.buffer),k=e.ctype,l=e.depth,m=a._bin.readUshort;if(6==k){var n=f<<2;if(8==l)for(var o=0;n>o;o++)i[o]=b[o];if(16==l)for(var o=0;n>o;o++)i[o]=b[o<<1]}else if(2==k){var p=e.tabs.tRNS,q=-1,r=-1,s=-1;if(p&&(q=p[0],r=p[1],s=p[2]),8==l)for(var o=0;f>o;o++){var t=o<<2,u=3*o;i[t]=b[u],i[t+1]=b[u+1],i[t+2]=b[u+2],i[t+3]=255,-1!=q&&b[u]==q&&b[u+1]==r&&b[u+2]==s&&(i[t+3]=0)}if(16==l)for(var o=0;f>o;o++){var t=o<<2,u=6*o;i[t]=b[u],i[t+1]=b[u+2],i[t+2]=b[u+4],i[t+3]=255,-1!=q&&m(b,u)==q&&m(b,u+2)==r&&m(b,u+4)==s&&(i[t+3]=0)}}else if(3==k){var v=e.tabs.PLTE,w=e.tabs.tRNS,x=w?w.length:0;if(1==l)for(var y=0;d>y;y++)for(var z=y*h,A=y*c,o=0;c>o;o++){var t=A+o<<2,B=b[z+(o>>3)]>>7-((7&o)<<0)&1,C=3*B;i[t]=v[C],i[t+1]=v[C+1],i[t+2]=v[C+2],i[t+3]=x>B?w[B]:255}if(2==l)for(var y=0;d>y;y++)for(var z=y*h,A=y*c,o=0;c>o;o++){var t=A+o<<2,B=b[z+(o>>2)]>>6-((3&o)<<1)&3,C=3*B;i[t]=v[C],i[t+1]=v[C+1],i[t+2]=v[C+2],i[t+3]=x>B?w[B]:255}if(4==l)for(var y=0;d>y;y++)for(var z=y*h,A=y*c,o=0;c>o;o++){var t=A+o<<2,B=b[z+(o>>1)]>>4-((1&o)<<2)&15,C=3*B;i[t]=v[C],i[t+1]=v[C+1],i[t+2]=v[C+2],i[t+3]=x>B?w[B]:255}if(8==l)for(var o=0;f>o;o++){var t=o<<2,B=b[o],C=3*B;i[t]=v[C],i[t+1]=v[C+1],i[t+2]=v[C+2],i[t+3]=x>B?w[B]:255}}else if(4==k){if(8==l)for(var o=0;f>o;o++){var t=o<<2,D=o<<1,E=b[D];i[t]=E,i[t+1]=E,i[t+2]=E,i[t+3]=b[D+1]}if(16==l)for(var o=0;f>o;o++){var t=o<<2,D=o<<2,E=b[D];i[t]=E,i[t+1]=E,i[t+2]=E,i[t+3]=b[D+2]}}else if(0==k){var q=e.tabs.tRNS?e.tabs.tRNS:-1;if(1==l)for(var o=0;f>o;o++){var E=255*(b[o>>3]>>7-(7&o)&1),F=E==255*q?0:255;j[o]=F<<24|E<<16|E<<8|E}if(2==l)for(var o=0;f>o;o++){var E=85*(b[o>>2]>>6-((3&o)<<1)&3),F=E==85*q?0:255;j[o]=F<<24|E<<16|E<<8|E}if(4==l)for(var o=0;f>o;o++){var E=17*(b[o>>1]>>4-((1&o)<<2)&15),F=E==17*q?0:255;j[o]=F<<24|E<<16|E<<8|E}if(8==l)for(var o=0;f>o;o++){var E=b[o],F=E==q?0:255;j[o]=F<<24|E<<16|E<<8|E}if(16==l)for(var o=0;f>o;o++){var E=b[o<<1],F=m(b,o<<1)==q?0:255;j[o]=F<<24|E<<16|E<<8|E}}return i},a.decode=function(b){for(var c,d=new Uint8Array(b),e=8,f=a._bin,g=f.readUshort,h=f.readUint,i={tabs:{},frames:[]},j=new Uint8Array(d.length),k=0,l=0,m=[137,80,78,71,13,10,26,10],n=0;8>n;n++)if(d[n]!=m[n])throw"The input is not a PNG file!";for(;e<d.length;){var o=f.readUint(d,e);e+=4;var p=f.readASCII(d,e,4);if(e+=4,"IHDR"==p)a.decode._IHDR(d,e,i);else if("IDAT"==p){for(var n=0;o>n;n++)j[k+n]=d[e+n];k+=o}else if("acTL"==p)i.tabs[p]={num_frames:h(d,e),num_plays:h(d,e+4)},c=new Uint8Array(d.length);else if("fcTL"==p){if(0!=l){var q=i.frames[i.frames.length-1];q.data=a.decode._decompress(i,c.slice(0,l),q.rect.width,q.rect.height),l=0}var r={x:h(d,e+12),y:h(d,e+16),width:h(d,e+4),height:h(d,e+8)},s=g(d,e+22);s=g(d,e+20)/(0==s?100:s);var t={rect:r,delay:Math.round(1e3*s),dispose:d[e+24],blend:d[e+25]};i.frames.push(t)}else if("fdAT"==p){for(var n=0;o-4>n;n++)c[l+n]=d[e+n+4];l+=o-4}else if("pHYs"==p)i.tabs[p]=[f.readUint(d,e),f.readUint(d,e+4),d[e+8]];else if("cHRM"==p){i.tabs[p]=[];for(var n=0;8>n;n++)i.tabs[p].push(f.readUint(d,e+4*n))}else if("tEXt"==p){null==i.tabs[p]&&(i.tabs[p]={});var u=f.nextZero(d,e),v=f.readASCII(d,e,u-e),w=f.readASCII(d,u+1,e+o-u-1);i.tabs[p][v]=w}else if("iTXt"==p){null==i.tabs[p]&&(i.tabs[p]={});var u=0,x=e;u=f.nextZero(d,x);var v=f.readASCII(d,x,u-x);x=u+1;{d[x],d[x+1]}x+=2,u=f.nextZero(d,x);{f.readASCII(d,x,u-x)}x=u+1,u=f.nextZero(d,x);{f.readUTF8(d,x,u-x)}x=u+1;var w=f.readUTF8(d,x,o-(x-e));i.tabs[p][v]=w}else if("PLTE"==p)i.tabs[p]=f.readBytes(d,e,o);else if("hIST"==p){var y=i.tabs.PLTE.length/3;i.tabs[p]=[];for(var n=0;y>n;n++)i.tabs[p].push(g(d,e+2*n))}else if("tRNS"==p)3==i.ctype?i.tabs[p]=f.readBytes(d,e,o):0==i.ctype?i.tabs[p]=g(d,e):2==i.ctype&&(i.tabs[p]=[g(d,e),g(d,e+2),g(d,e+4)]);else if("gAMA"==p)i.tabs[p]=f.readUint(d,e)/1e5;else if("sRGB"==p)i.tabs[p]=d[e];else if("bKGD"==p)0==i.ctype||4==i.ctype?i.tabs[p]=[g(d,e)]:2==i.ctype||6==i.ctype?i.tabs[p]=[g(d,e),g(d,e+2),g(d,e+4)]:3==i.ctype&&(i.tabs[p]=d[e]);else if("IEND"==p){if(0!=l){var q=i.frames[i.frames.length-1];q.data=a.decode._decompress(i,c.slice(0,l),q.rect.width,q.rect.height),l=0}i.data=a.decode._decompress(i,j,i.width,i.height);break}e+=o;{f.readUint(d,e)}e+=4}return delete i.compress,delete i.interlace,delete i.filter,i},a.decode._decompress=function(b,c,d,e){return 0==b.compress&&(c=a.decode._inflate(c)),0==b.interlace?c=a.decode._filterZero(c,b,0,d,e):1==b.interlace&&(c=a.decode._readInterlace(c,b)),c},a.decode._inflate=function(a){return b.inflate(a)},a.decode._readInterlace=function(b,c){for(var d=c.width,e=c.height,f=a.decode._getBPP(c),g=f>>3,h=Math.ceil(d*f/8),i=new Uint8Array(e*h),j=0,k=[0,0,4,0,2,0,1],l=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],n=[8,8,4,4,2,2,1],o=0;7>o;){for(var p=m[o],q=n[o],r=0,s=0,t=k[o];e>t;)t+=p,s++;for(var u=l[o];d>u;)u+=q,r++;var v=Math.ceil(r*f/8);a.decode._filterZero(b,c,j,r,s);for(var w=0,x=k[o];e>x;){for(var y=l[o],z=j+w*v<<3;d>y;){if(1==f){var A=b[z>>3];A=A>>7-(7&z)&1,i[x*h+(y>>3)]|=A<<7-((3&y)<<0)}if(2==f){var A=b[z>>3];A=A>>6-(7&z)&3,i[x*h+(y>>2)]|=A<<6-((3&y)<<1)}if(4==f){var A=b[z>>3];A=A>>4-(7&z)&15,i[x*h+(y>>1)]|=A<<4-((1&y)<<2)}if(f>=8)for(var B=x*h+y*g,C=0;g>C;C++)i[B+C]=b[(z>>3)+C];z+=f,y+=q}w++,x+=p}r*s!=0&&(j+=s*(1+v)),o+=1}return i},a.decode._getBPP=function(a){var b=[1,null,3,1,2,null,4][a.ctype];return b*a.depth},a.decode._filterZero=function(b,c,d,e,f){var g=a.decode._getBPP(c),h=Math.ceil(e*g/8),i=a.decode._paeth;g=Math.ceil(g/8);for(var j=0;f>j;j++){var k=d+j*h,l=k+j+1,m=b[l-1];if(0==m)for(var n=0;h>n;n++)b[k+n]=b[l+n];else if(1==m){for(var n=0;g>n;n++)b[k+n]=b[l+n];for(var n=g;h>n;n++)b[k+n]=b[l+n]+b[k+n-g]&255}else if(0==j){for(var n=0;g>n;n++)b[k+n]=b[l+n];if(2==m)for(var n=g;h>n;n++)b[k+n]=255&b[l+n];if(3==m)for(var n=g;h>n;n++)b[k+n]=b[l+n]+(b[k+n-g]>>1)&255;if(4==m)for(var n=g;h>n;n++)b[k+n]=b[l+n]+i(b[k+n-g],0,0)&255}else{if(2==m)for(var n=0;h>n;n++)b[k+n]=b[l+n]+b[k+n-h]&255;if(3==m){for(var n=0;g>n;n++)b[k+n]=b[l+n]+(b[k+n-h]>>1)&255;for(var n=g;h>n;n++)b[k+n]=b[l+n]+(b[k+n-h]+b[k+n-g]>>1)&255}if(4==m){for(var n=0;g>n;n++)b[k+n]=b[l+n]+i(0,b[k+n-h],0)&255;for(var n=g;h>n;n++)b[k+n]=b[l+n]+i(b[k+n-g],b[k+n-h],b[k+n-g-h])&255}}}return b},a.decode._paeth=function(a,b,c){var d=a+b-c,e=Math.abs(d-a),f=Math.abs(d-b),g=Math.abs(d-c);return f>=e&&g>=e?a:g>=f?b:c},a.decode._IHDR=function(b,c,d){var e=a._bin;d.width=e.readUint(b,c),c+=4,d.height=e.readUint(b,c),c+=4,d.depth=b[c],c++,d.ctype=b[c],c++,d.compress=b[c],c++,d.filter=b[c],c++,d.interlace=b[c],c++},a._bin={nextZero:function(a,b){for(;0!=a[b];)b++;return b},readUshort:function(a,b){return a[b]<<8|a[b+1]},writeUshort:function(a,b,c){a[b]=c>>8&255,a[b+1]=255&c},readUint:function(a,b){return 16777216*a[b]+(a[b+1]<<16|a[b+2]<<8|a[b+3])},writeUint:function(a,b,c){a[b]=c>>24&255,a[b+1]=c>>16&255,a[b+2]=c>>8&255,a[b+3]=255&c},readASCII:function(a,b,c){for(var d="",e=0;c>e;e++)d+=String.fromCharCode(a[b+e]);return d},writeASCII:function(a,b,c){for(var d=0;d<c.length;d++)a[b+d]=c.charCodeAt(d)},readBytes:function(a,b,c){for(var d=[],e=0;c>e;e++)d.push(a[b+e]);return d},pad:function(a){return a.length<2?"0"+a:a},readUTF8:function(b,c,d){for(var e,f="",g=0;d>g;g++)f+="%"+a._bin.pad(b[c+g].toString(16));try{e=decodeURIComponent(f)}catch(h){return a._bin.readASCII(b,c,d)}return e}},a._copyTile=function(a,b,c,d,e,f,g,h,i){for(var j=Math.min(b,e),k=Math.min(c,f),l=0,m=0,n=0;k>n;n++)for(var o=0;j>o;o++)if(g>=0&&h>=0?(l=n*b+o<<2,m=(h+n)*e+g+o<<2):(l=(-h+n)*b-g+o<<2,m=n*e+o<<2),0==i)d[m]=a[l],d[m+1]=a[l+1],d[m+2]=a[l+2],d[m+3]=a[l+3];else if(1==i){var p=a[l+3]*(1/255),q=a[l]*p,r=a[l+1]*p,s=a[l+2]*p,t=d[m+3]*(1/255),u=d[m]*t,v=d[m+1]*t,w=d[m+2]*t,x=1-p,y=p+t*x,z=0==y?0:1/y;d[m+3]=255*y,d[m+0]=(q+u*x)*z,d[m+1]=(r+v*x)*z,d[m+2]=(s+w*x)*z}else if(2==i){var p=a[l+3],q=a[l],r=a[l+1],s=a[l+2],t=d[m+3],u=d[m],v=d[m+1],w=d[m+2];p==t&&q==u&&r==v&&s==w?(d[m]=0,d[m+1]=0,d[m+2]=0,d[m+3]=0):(d[m]=q,d[m+1]=r,d[m+2]=s,d[m+3]=p)}else if(3==i){var p=a[l+3],q=a[l],r=a[l+1],s=a[l+2],t=d[m+3],u=d[m],v=d[m+1],w=d[m+2];if(p==t&&q==u&&r==v&&s==w)continue;if(220>p&&t>20)return!1}return!0},a.encode=function(b,c,d,e,f,g){null==e&&(e=0),null==g&&(g=!1);for(var h=new Uint8Array(b[0].byteLength*b.length+100),i=[137,80,78,71,13,10,26,10],j=0;8>j;j++)h[j]=i[j];var k=8,l=a._bin,m=a.crc.crc,n=l.writeUint,o=l.writeUshort,p=l.writeASCII,q=a.encode.compressPNG(b,c,d,e,g);n(h,k,13),k+=4,p(h,k,"IHDR"),k+=4,n(h,k,c),k+=4,n(h,k,d),k+=4,h[k]=q.depth,k++,h[k]=q.ctype,k++,h[k]=0,k++,h[k]=0,k++,h[k]=0,k++,n(h,k,m(h,k-17,17)),k+=4,n(h,k,1),k+=4,p(h,k,"sRGB"),k+=4,h[k]=1,k++,n(h,k,m(h,k-5,5)),k+=4;var r=b.length>1;if(r&&(n(h,k,8),k+=4,p(h,k,"acTL"),k+=4,n(h,k,b.length),k+=4,n(h,k,0),k+=4,n(h,k,m(h,k-12,12)),k+=4),3==q.ctype){var s=q.plte.length;n(h,k,3*s),k+=4,p(h,k,"PLTE"),k+=4;for(var j=0;s>j;j++){var t=3*j,u=q.plte[j],v=255&u,w=u>>8&255,x=u>>16&255;h[k+t+0]=v,h[k+t+1]=w,h[k+t+2]=x}if(k+=3*s,n(h,k,m(h,k-3*s-4,3*s+4)),k+=4,q.gotAlpha){n(h,k,s),k+=4,p(h,k,"tRNS"),k+=4;for(var j=0;s>j;j++)h[k+j]=q.plte[j]>>24&255;k+=s,n(h,k,m(h,k-s-4,s+4)),k+=4}}for(var y=0,z=0;z<q.frames.length;z++){var A=q.frames[z];r&&(n(h,k,26),k+=4,p(h,k,"fcTL"),k+=4,n(h,k,y++),k+=4,n(h,k,A.rect.width),k+=4,n(h,k,A.rect.height),k+=4,n(h,k,A.rect.x),k+=4,n(h,k,A.rect.y),k+=4,o(h,k,f[z]),k+=2,o(h,k,1e3),k+=2,h[k]=A.dispose,k++,h[k]=A.blend,k++,n(h,k,m(h,k-30,30)),k+=4);var B=A.cimg,s=B.length;n(h,k,s+(0==z?0:4)),k+=4;var C=k;p(h,k,0==z?"IDAT":"fdAT"),k+=4,0!=z&&(n(h,k,y++),k+=4);for(var j=0;s>j;j++)h[k+j]=B[j];k+=s,n(h,k,m(h,C,k-C)),k+=4}return n(h,k,0),k+=4,p(h,k,"IEND"),k+=4,n(h,k,m(h,k-4,4)),k+=4,h.buffer.slice(0,k)},a.encode.compressPNG=function(b,c,d,e,f){for(var g=a.encode.compress(b,c,d,e,!1,f),h=0;h<b.length;h++){var i=g.frames[h],j=(i.rect.width,i.rect.height),k=i.bpl,l=i.bpp,m=new Uint8Array(j*k+j);i.cimg=a.encode._filterZero(i.img,j,l,k,m)}return g},a.encode.compress=function(b,c,d,e,f,g){null==g&&(g=!1);for(var h=6,i=8,j=4,k=255,l=0;l<b.length;l++)for(var m=new Uint8Array(b[l]),n=m.length,o=0;n>o;o+=4)k&=m[o+3];var p=255!=k,q={},r=[];if(0!=b.length&&(q[0]=0,r.push(0),0!=e&&e--),0!=e){var s=a.quantize(b,e,f);b=s.bufs;for(var o=0;o<s.plte.length;o++){var t=s.plte[o].est.rgba;null==q[t]&&(q[t]=r.length,r.push(t))}}else for(var l=0;l<b.length;l++)for(var u=new Uint32Array(b[l]),n=u.length,o=0;n>o;o++){var t=u[o];if((c>o||t!=u[o-1]&&t!=u[o-c])&&null==q[t]&&(q[t]=r.length,r.push(t),r.length>=300))break}var v=p?f:!1,w=r.length;256>=w&&0==g&&(i=2>=w?1:4>=w?2:16>=w?4:8,f&&(i=8),p=!0);for(var x=[],l=0;l<b.length;l++){var y=new Uint8Array(b[l]),z=new Uint32Array(y.buffer),A=0,B=0,C=c,D=d,E=0;if(0!=l&&!v){for(var F=f||1==l||2==x[x.length-2].dispose?1:2,G=0,H=1e9,I=0;F>I;I++){for(var J=new Uint8Array(b[l-1-I]),K=new Uint32Array(b[l-1-I]),L=c,M=d,N=-1,O=-1,P=0;d>P;P++)for(var Q=0;c>Q;Q++){var o=P*c+Q;z[o]!=K[o]&&(L>Q&&(L=Q),Q>N&&(N=Q),M>P&&(M=P),P>O&&(O=P))}var R=-1==N?1:(N-L+1)*(O-M+1);H>R&&(H=R,G=I,-1==N?(A=B=0,C=D=1):(A=L,B=M,C=N-L+1,D=O-M+1))}var J=new Uint8Array(b[l-1-G]);1==G&&(x[x.length-1].dispose=2);{var S=new Uint8Array(C*D*4);new Uint32Array(S.buffer)}a._copyTile(J,c,d,S,C,D,-A,-B,0),a._copyTile(y,c,d,S,C,D,-A,-B,3)?(a._copyTile(y,c,d,S,C,D,-A,-B,2),E=1):(a._copyTile(y,c,d,S,C,D,-A,-B,0),E=0),y=S,z=new Uint32Array(y.buffer)}var T=4*C;if(256>=w&&0==g){T=Math.ceil(i*C/8);for(var S=new Uint8Array(T*D),P=0;D>P;P++){var o=P*T,U=P*C;if(8==i)for(var Q=0;C>Q;Q++)S[o+Q]=q[z[U+Q]];else if(4==i)for(var Q=0;C>Q;Q++)S[o+(Q>>1)]|=q[z[U+Q]]<<4-4*(1&Q);else if(2==i)for(var Q=0;C>Q;Q++)S[o+(Q>>2)]|=q[z[U+Q]]<<6-2*(3&Q);else if(1==i)for(var Q=0;C>Q;Q++)S[o+(Q>>3)]|=q[z[U+Q]]<<7-1*(7&Q)}y=S,h=3,j=1}else if(0==p&&1==b.length){for(var S=new Uint8Array(C*D*3),V=C*D,o=0;V>o;o++){var W=3*o,X=4*o;S[W]=y[X],S[W+1]=y[X+1],S[W+2]=y[X+2]}y=S,h=2,j=3,T=3*C}x.push({rect:{x:A,y:B,width:C,height:D},img:y,bpl:T,bpp:j,blend:E,dispose:v?1:0})}return{ctype:h,depth:i,plte:r,gotAlpha:p,frames:x}},a.encode._filterZero=function(c,d,e,f,g){for(var h=[],i=0;5>i;i++)if(!(d*f>5e5)||2!=i&&3!=i&&4!=i){for(var j=0;d>j;j++)a.encode._filterLine(g,c,j,f,e,i);if(h.push(b.deflate(g)),1==e)break}for(var k,l=1e9,m=0;m<h.length;m++)h[m].length<l&&(k=m,l=h[m].length);return h[k]},a.encode._filterLine=function(b,c,d,e,f,g){var h=d*e,i=h+d,j=a.decode._paeth;if(b[i]=g,i++,0==g)for(var k=0;e>k;k++)b[i+k]=c[h+k];else if(1==g){for(var k=0;f>k;k++)b[i+k]=c[h+k];for(var k=f;e>k;k++)b[i+k]=c[h+k]-c[h+k-f]+256&255}else if(0==d){for(var k=0;f>k;k++)b[i+k]=c[h+k];if(2==g)for(var k=f;e>k;k++)b[i+k]=c[h+k];if(3==g)for(var k=f;e>k;k++)b[i+k]=c[h+k]-(c[h+k-f]>>1)+256&255;if(4==g)for(var k=f;e>k;k++)b[i+k]=c[h+k]-j(c[h+k-f],0,0)+256&255}else{if(2==g)for(var k=0;e>k;k++)b[i+k]=c[h+k]+256-c[h+k-e]&255;if(3==g){for(var k=0;f>k;k++)b[i+k]=c[h+k]+256-(c[h+k-e]>>1)&255;for(var k=f;e>k;k++)b[i+k]=c[h+k]+256-(c[h+k-e]+c[h+k-f]>>1)&255}if(4==g){for(var k=0;f>k;k++)b[i+k]=c[h+k]+256-j(0,c[h+k-e],0)&255;for(var k=f;e>k;k++)b[i+k]=c[h+k]+256-j(c[h+k-f],c[h+k-e],c[h+k-f-e])&255}}},a.crc={table:function(){for(var a=new Uint32Array(256),b=0;256>b;b++){for(var c=b,d=0;8>d;d++)1&c?c=3988292384^c>>>1:c>>>=1;a[b]=c}return a}(),update:function(b,c,d,e){for(var f=0;e>f;f++)b=a.crc.table[255&(b^c[d+f])]^b>>>8;return b},crc:function(b,c,d){return 4294967295^a.crc.update(4294967295,b,c,d)}},a.quantize=function(b,c,d){for(var e=[],f=0,g=0;g<b.length;g++)e.push(a.encode.alphaMul(new Uint8Array(b[g]),d)),f+=b[g].byteLength;for(var h=new Uint8Array(f),i=new Uint32Array(h.buffer),j=0,g=0;g<e.length;g++){for(var k=e[g],l=k.length,m=0;l>m;m++)h[j+m]=k[m];j+=l}var n={i0:0,i1:h.length,bst:null,est:null,tdst:0,left:null,right:null};
n.bst=a.quantize.stats(h,n.i0,n.i1),n.est=a.quantize.estats(n.bst);for(var o=[n];o.length<c;){for(var p=0,q=0,g=0;g<o.length;g++)o[g].est.L>p&&(p=o[g].est.L,q=g);if(.001>p)break;var r=o[q],s=a.quantize.splitPixels(h,i,r.i0,r.i1,r.est.e,r.est.eMq255),t={i0:r.i0,i1:s,bst:null,est:null,tdst:0,left:null,right:null};t.bst=a.quantize.stats(h,t.i0,t.i1),t.est=a.quantize.estats(t.bst);var u={i0:s,i1:r.i1,bst:null,est:null,tdst:0,left:null,right:null};u.bst={R:[],m:[],N:r.bst.N-t.bst.N};for(var g=0;16>g;g++)u.bst.R[g]=r.bst.R[g]-t.bst.R[g];for(var g=0;4>g;g++)u.bst.m[g]=r.bst.m[g]-t.bst.m[g];u.est=a.quantize.estats(u.bst),r.left=t,r.right=u,o[q]=t,o.push(u)}o.sort(function(a,b){return b.bst.N-a.bst.N});for(var v=0;v<e.length;v++){for(var w=a.quantize.planeDst,x=new Uint8Array(e[v].buffer),y=new Uint32Array(e[v].buffer),z=x.length,g=0;z>g;g+=4){for(var A=x[g]*(1/255),B=x[g+1]*(1/255),C=x[g+2]*(1/255),D=x[g+3]*(1/255),E=n;E.left;)E=w(E.est,A,B,C,D)<=0?E.left:E.right;y[g>>2]=E.est.rgba}e[v]=y.buffer}return{bufs:e,plte:o}},a.quantize.getNearest=function(b,c,d,e,f){if(null==b.left)return b.tdst=a.quantize.dist(b.est.q,c,d,e,f),b;var g=a.quantize.planeDst(b.est,c,d,e,f),h=b.left,i=b.right;g>0&&(h=b.right,i=b.left);var j=a.quantize.getNearest(h,c,d,e,f);if(j.tdst<=g*g)return j;var k=a.quantize.getNearest(i,c,d,e,f);return k.tdst<j.tdst?k:j},a.quantize.planeDst=function(a,b,c,d,e){var f=a.e;return f[0]*b+f[1]*c+f[2]*d+f[3]*e-a.eMq},a.quantize.dist=function(a,b,c,d,e){var f=b-a[0],g=c-a[1],h=d-a[2],i=e-a[3];return f*f+g*g+h*h+i*i},a.quantize.splitPixels=function(b,c,d,e,f,g){var h=a.quantize.vecDot;e-=4;for(;e>d;){for(;h(b,d,f)<=g;)d+=4;for(;h(b,e,f)>g;)e-=4;if(d>=e)break;var i=c[d>>2];c[d>>2]=c[e>>2],c[e>>2]=i,d+=4,e-=4}for(;h(b,d,f)>g;)d-=4;return d+4},a.quantize.vecDot=function(a,b,c){return a[b]*c[0]+a[b+1]*c[1]+a[b+2]*c[2]+a[b+3]*c[3]},a.quantize.stats=function(a,b,c){for(var d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=[0,0,0,0],f=c-b>>2,g=b;c>g;g+=4){var h=a[g]*(1/255),i=a[g+1]*(1/255),j=a[g+2]*(1/255),k=a[g+3]*(1/255);e[0]+=h,e[1]+=i,e[2]+=j,e[3]+=k,d[0]+=h*h,d[1]+=h*i,d[2]+=h*j,d[3]+=h*k,d[5]+=i*i,d[6]+=i*j,d[7]+=i*k,d[10]+=j*j,d[11]+=j*k,d[15]+=k*k}return d[4]=d[1],d[8]=d[2],d[12]=d[3],d[9]=d[6],d[13]=d[7],d[14]=d[11],{R:d,m:e,N:f}},a.quantize.estats=function(b){var c=b.R,d=b.m,e=b.N,f=d[0],g=d[1],h=d[2],i=d[3],j=0==e?0:1/e,k=[c[0]-f*f*j,c[1]-f*g*j,c[2]-f*h*j,c[3]-f*i*j,c[4]-g*f*j,c[5]-g*g*j,c[6]-g*h*j,c[7]-g*i*j,c[8]-h*f*j,c[9]-h*g*j,c[10]-h*h*j,c[11]-h*i*j,c[12]-i*f*j,c[13]-i*g*j,c[14]-i*h*j,c[15]-i*i*j],l=k,m=a.M4,n=[.5,.5,.5,.5],o=0,p=0;if(0!=e)for(var q=0;10>q&&(n=m.multVec(l,n),p=Math.sqrt(m.dot(n,n)),n=m.sml(1/p,n),!(Math.abs(p-o)<1e-9));q++)o=p;var r=[f*j,g*j,h*j,i*j],s=m.dot(m.sml(255,r),n),t=r[3]<.001?0:1/r[3];return{Cov:k,q:r,e:n,L:o,eMq255:s,eMq:m.dot(n,r),rgba:(Math.round(255*r[3])<<24|Math.round(255*r[2]*t)<<16|Math.round(255*r[1]*t)<<8|Math.round(255*r[0]*t)<<0)>>>0}},a.M4={multVec:function(a,b){return[a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3],a[4]*b[0]+a[5]*b[1]+a[6]*b[2]+a[7]*b[3],a[8]*b[0]+a[9]*b[1]+a[10]*b[2]+a[11]*b[3],a[12]*b[0]+a[13]*b[1]+a[14]*b[2]+a[15]*b[3]]},dot:function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]},sml:function(a,b){return[a*b[0],a*b[1],a*b[2],a*b[3]]}},a.encode.alphaMul=function(a,b){for(var c=new Uint8Array(a.length),d=a.length>>2,e=0;d>e;e++){var f=e<<2,g=a[f+3];b&&(g=128>g?0:255);var h=g*(1/255);c[f+0]=a[f+0]*h,c[f+1]=a[f+1]*h,c[f+2]=a[f+2]*h,c[f+3]=g}return c}}(b,a)}(),function(){var a={};a.parse=function(b){for(var c=a.bin,d=0,e={},f=b.length-4;101010256!=c.readUint(b,f);)f--;var d=f;d+=4,d+=4;var g=c.readUshort(b,d);d+=2;c.readUshort(b,d);d+=2;c.readUint(b,d);d+=4;var h=c.readUint(b,d);d+=4,d=h;for(var i=0;g>i;i++){{c.readUint(b,d)}d+=4,d+=4,d+=4,d+=4;{c.readUint(b,d)}d+=4,d+=8;var j=c.readUshort(b,d),k=c.readUshort(b,d+2),l=c.readUshort(b,d+4);d+=6,d+=8;var m=c.readUint(b,d);d+=4,d+=j+k+l,a._readLocal(b,m,e)}return e},a._readLocal=function(b,c,d){{var e=a.bin;e.readUint(b,c)}c+=4;e.readUshort(b,c);c+=2;e.readUshort(b,c);c+=2;var f=e.readUshort(b,c);c+=2;PUtils.readUint(b,c);c+=4;e.readUint(b,c);c+=4;var g=e.readUint(b,c);c+=4;e.readUint(b,c);c+=4;var h=e.readUshort(b,c);c+=2;var i=e.readUshort(b,c);c+=2;var j=e.readASCII(b,c,h);c+=h,c+=i;var k=new Uint8Array(b.buffer,c);if(0==f)d[j]=new Uint8Array(k.buffer.slice(c,c+g));else{if(8!=f)throw"unknown compression method: "+f;d[j]=pako.inflateRaw(k)}},a.encode=function(b){var c=0;for(var d in b)c+=b[d].length+30+d.length+46+d.length;c+=22;var e=new Uint8Array(c),f=0,g=a.bin,h=[];for(var d in b){var i=b[d];h.push(f),f=a._writeHeader(e,f,d,i,0)}var j=0,k=f;for(var d in b){var i=b[d];h.push(f),f=a._writeHeader(e,f,d,i,1,h[j++])}var l=f-k;return g.writeUint(e,f,101010256),f+=4,f+=4,g.writeUshort(e,f,j),f+=2,g.writeUshort(e,f,j),f+=2,g.writeUint(e,f,l),f+=4,g.writeUint(e,f,k),f+=4,f+=2,e},a._writeHeader=function(b,c,d,e,f,g){var h=a.bin;if(h.writeUint(b,c,0==f?67324752:33639248),c+=4,1==f&&(c+=2),h.writeUshort(b,c,20),c+=2,h.writeUshort(b,c,0),c+=2,h.writeUshort(b,c,0),c+=2,h.writeUint(b,c,0),c+=4,h.writeUint(b,c,a.crc.crc(e,0,e.length)),c+=4,h.writeUint(b,c,e.length),c+=4,h.writeUint(b,c,e.length),c+=4,h.writeUshort(b,c,d.length),c+=2,h.writeUshort(b,c,0),c+=2,1==f&&(c+=2,c+=2,c+=6,h.writeUint(b,c,g),c+=4),h.writeASCII(b,c,d),c+=d.length,0==f){for(var i=0;i<e.length;i++)b[c+i]=e[i];c+=e.length}return c},a.crc={table:function(){for(var a=new Uint32Array(256),b=0;256>b;b++){for(var c=b,d=0;8>d;d++)1&c?c=3988292384^c>>>1:c>>>=1;a[b]=c}return a}(),update:function(a,b,c,d){for(var e=0;d>e;e++)a=UPNG.crc.table[255&(a^b[c+e])]^a>>>8;return a},crc:function(a,b,c){return 4294967295^UPNG.crc.update(4294967295,a,b,c)}},a.bin={readUshort:function(a,b){return a[b]|a[b+1]<<8},writeUshort:function(a,b,c){a[b]=255&c,a[b+1]=c>>8&255},readUint:function(a,b){return 16777216*a[b+3]+(a[b+2]<<16|a[b+1]<<8|a[b])},writeUint:function(a,b,c){a[b+3]=c>>24&255,a[b+2]=c>>16&255,a[b+1]=c>>8&255,a[b]=255&c},readASCII:function(a,b,c){for(var d="",e=0;c>e;e++)d+=String.fromCharCode(a[b+e]);return d},writeASCII:function(a,b,c){for(var d=0;d<c.length;d++)a[b+d]=c.charCodeAt(d)}},window.UZIP=a}(),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.ImageCompressor=b()}(this,function(){"use strict";function a(a,b){return b={exports:{}},a(b,b.exports),b.exports}function b(a){return l.test(a)}function c(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0,d=b(a)?a.substr(6):"";return"jpeg"===d&&(d="jpg"),d&&c&&(d="."+d),d}function d(a,b,c){var d="",e=void 0;for(c+=b,e=b;c>e;e+=1)d+=m(a.getUint8(e));return d}function e(a,b){var c=new Uint8Array(a),d=c.length,e="",f=void 0;for(f=0;d>f;f+=1)e+=m(c[f]);return"data:"+b+";base64,"+o(e)}function f(a){var b=new DataView(a),c=void 0,e=void 0,f=void 0,g=void 0;if(255===b.getUint8(0)&&216===b.getUint8(1))for(var h=b.byteLength,i=2;h>i;){if(255===b.getUint8(i)&&225===b.getUint8(i+1)){f=i;break}i+=1}if(f){var j=f+4,k=f+10;if("Exif"===d(b,j,4)){var l=b.getUint16(k);if(e=18761===l,(e||19789===l)&&42===b.getUint16(k+2,e)){var m=b.getUint32(k+4,e);m>=8&&(g=k+m)}}}if(g){var n=b.getUint16(g,e),o=void 0,p=void 0;for(p=0;n>p;p+=1)if(o=g+12*p+2,274===b.getUint16(o,e)){o+=8,c=b.getUint16(o,e),b.setUint16(o,1,e);break}}return c}function g(a){var b=0,c=1,d=1;switch(a){case 2:c=-1;break;case 3:b=-180;break;case 4:d=-1;break;case 5:b=90,d=-1;break;case 6:b=90;break;case 7:b=90,c=-1;break;case 8:b=-90}return{rotate:b,scaleX:c,scaleY:d}}var h=a(function(a){!function(b){var c=b.HTMLCanvasElement&&b.HTMLCanvasElement.prototype,d=b.Blob&&function(){try{return Boolean(new Blob)}catch(a){return!1}}(),e=d&&b.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(a){return!1}}(),f=b.BlobBuilder||b.WebKitBlobBuilder||b.MozBlobBuilder||b.MSBlobBuilder,g=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,h=(d||f)&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&function(a){var b,c,h,i,j,k,l,m,n;if(b=a.match(g),!b)throw new Error("invalid data URI");for(c=b[2]?b[1]:"text/plain"+(b[3]||";charset=US-ASCII"),h=!!b[4],i=a.slice(b[0].length),j=h?atob(i):decodeURIComponent(i),k=new ArrayBuffer(j.length),l=new Uint8Array(k),m=0;m<j.length;m+=1)l[m]=j.charCodeAt(m);return d?new Blob([e?l:k],{type:c}):(n=new f,n.append(k),n.getBlob(c))};b.HTMLCanvasElement&&!c.toBlob&&(c.mozGetAsFile?c.toBlob=function(a,b,d){var e=this;setTimeout(function(){a(d&&c.toDataURL&&h?h(e.toDataURL(b,d)):e.mozGetAsFile("blob",b))})}:c.toDataURL&&h&&(c.toBlob=function(a,b,c){var d=this;setTimeout(function(){a(h(d.toDataURL(b,c)))})})),a.exports?a.exports=h:b.dataURLtoBlob=h}(window)}),i=Object.prototype.toString,j=function(a){return a instanceof Blob||"[object Blob]"===i.call(a)},k={checkOrientation:!0,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,quality:.8,mimeType:"auto",convertSize:5e6,success:null,error:null},l=/^image\/.+$/,m=String.fromCharCode,n=window,o=n.btoa,p=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},q=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),r=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},s=window,t=s.ArrayBuffer,u=s.FileReader,v=window.URL||window.webkitURL,w=/\.\w+$/,x=function(){function a(b,c){p(this,a),this.result=null,b&&this.compress(b,c)}return q(a,[{key:"compress",value:function(a,d){var i=this,l=new Image;return d=r({},k,d),t||(d.checkOrientation=!1),new Promise(function(c,h){if(!j(a))return void h(new Error("The first argument must be a File or Blob object."));var i=a.type;if(!b(i))return void h(new Error("The first argument must be an image File or Blob object."));if(!v&&!u)return void h(new Error("The current browser does not support image compression."));if(v&&!d.checkOrientation)c(v.createObjectURL(a));else if(u){var k=new u,l=d.checkOrientation&&"image/jpeg"===i;k.onload=function(a){var b=a.target,d=b.result;c(l?r({url:e(d,i)},g(f(d))):{url:d})},k.onabort=h,k.onerror=h,l?k.readAsArrayBuffer(a):k.readAsDataURL(a)}}).then(function(b){return new Promise(function(c,d){l.onload=function(){return c(r({},b,{naturalWidth:l.naturalWidth,naturalHeight:l.naturalHeight}))},l.onabort=d,l.onerror=d,l.alt=a.name,l.src=b.url})}).then(function(c){var e=c.naturalWidth,f=c.naturalHeight,g=c.rotate,i=void 0===g?0:g,j=c.scaleX,k=void 0===j?1:j,m=c.scaleY,n=void 0===m?1:m;return new Promise(function(c){var g=document.createElement("canvas"),j=g.getContext("2d"),m=e/f,o=Math.max(d.maxWidth,0)||1/0,p=Math.max(d.maxHeight,0)||1/0,q=Math.max(d.minWidth,0)||0,r=Math.max(d.minHeight,0)||0,s=e,t=f;if(1/0>o&&1/0>p?p*m>o?p=o/m:o=p*m:1/0>o?p=o/m:1/0>p&&(o=p*m),q>0&&r>0?r*m>q?r=q/m:q=r*m:q>0?r=q/m:r>0&&(q=r*m),d.width>0){var u=d;s=u.width,t=s/m}else if(d.height>0){var v=d;t=v.height,s=t*m}s=Math.min(Math.max(s,q),o),t=Math.min(Math.max(t,r),p);var w=-s/2,x=-t/2,y=s,z=t;if(Math.abs(i)%180===90){var A={width:t,height:s};s=A.width,t=A.height}g.width=s,g.height=t,j.fillStyle="transparent",j.fillRect(0,0,s,t),j.save(),j.translate(s/2,t/2),j.rotate(i*Math.PI/180),j.scale(k,n),j.drawImage(l,Math.floor(w),Math.floor(x),Math.floor(y),Math.floor(z)),j.restore(),b(d.mimeType)||(d.mimeType=a.type),a.size>d.convertSize&&"image/png"===d.mimeType&&(d.mimeType="image/jpeg");var B=function(a){c({naturalWidth:e,naturalHeight:f,result:a})};g.toBlob?g.toBlob(B,d.mimeType,d.quality):B(h(g.toDataURL(d.mimeType,d.quality)))})}).then(function(b){var e=b.naturalWidth,f=b.naturalHeight,g=b.result;if(v&&v.revokeObjectURL(l.src),g)if(g.size>a.size&&!(d.width>e||d.height>f||d.minWidth>e||d.minHeight>f))g=a;else{var h=new Date;g.lastModified=h.getTime(),g.lastModifiedDate=h,g.name=a.name,g.name&&g.type!==a.type&&(g.name=g.name.replace(w,c(g.type)))}else g=a;return i.result=g,d.success&&d.success(g),Promise.resolve(g)}).catch(function(a){if(!d.error)throw a;d.error(a)})}}]),a}();return x});var _createClass=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),App=angular.module("App",[]),GenericFile=function(){function a(b,c,d){_classCallCheck(this,a),this.buffer=b,this.blob=c,this.fileName=d,this.editable=!0,this.originalFileSize=b.byteLength}return _createClass(a,[{key:"_updateObjectUrl",value:function(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),this._objectUrl=URL.createObjectURL(this.blob)}},{key:"_convertFileFormat",value:function(a){a(!0)}},{key:"compress",value:function(a){this._updateObjectUrl(),a(!0)}},{key:"getArrayBuffer",value:function(){return this.buffer}},{key:"getType",value:function(){throw"Implement required"}},{key:"getName",value:function(){return this.fileName||"Unknown"}},{key:"getOriginalSize",value:function(){return this.originalFileSize}},{key:"getNewSize",value:function(){return this.blob.size}},{key:"getSizeDiff",value:function(){var a=this.getOriginalSize(),b=this.getNewSize();return((a-b)/a*100).toFixed(1)}},{key:"getObjectUrl",value:function(){return this._objectUrl}},{key:"download",value:function(){Helpers.saveDataUrl(this.getObjectUrl(),this.getName())}}],[{key:"fromFile",value:function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,d=this;Helpers.blobToArrayBuffer(a,function(e){e||b(null);var f=new d(e,a,c||a.name);f._convertFileFormat(function(a){b(a?f:null)})})}},{key:"fromSrc",value:function(a,b){var c=this;Helpers.loadFile(a,function(d){c.fromFile(d,b,d.name||a)})}}]),a}(),DocImage=function(a){function b(a,c,d){_classCallCheck(this,b);var e=_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c,d));return e.isDoc=!0,e.encodedImage=null,e.setSliderValue(20),e}return _inherits(b,a),_createClass(b,[{key:"_convertFileFormat",value:function(a){var b=this;return this._isPng()?a(!0):"application/pdf"===this.blob.type?Helpers.pdfToDataUrl(this.buffer,function(c){c||a(!1),b.buffer=Helpers.dataUrlToBuffer(c),b.fileName+=".png",a(!0)}):0===this.blob.type.indexOf("image")?Helpers.formatImage(this.blob,"image/png",function(c){b.buffer=Helpers.dataUrlToBuffer(c),b.fileName+=".png",a(!0)}):void a(!1)}},{key:"_isPng",value:function(){for(var a=[137,80,78,71,13,10,26,10],b=new Uint8Array(this.buffer),c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}},{key:"_updateObjectUrl",value:function(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl);var a=new Uint8Array(this.encodedImage),b=new Blob([a]);b.type="image/png",this._objectUrl=URL.createObjectURL(b)}},{key:"getArrayBuffer",value:function(){return this.encodedImage}},{key:"setSliderValue",value:function(a){var b=[3,5,7,9,12,16,32,48,64,96,128];this.sliderValue=a,this.colorDepth=b[a/10]}},{key:"getObjectUrl",value:function(){return this._objectUrl}},{key:"getNewSize",value:function(){return this.encodedImage?this.encodedImage.byteLength:null}},{key:"compress",value:function(a){var b=UPNG.decode(this.buffer),c=UPNG.toRGBA8(b)[0];this.encodedImage=UPNG.encode([c],b.width,b.height,this.colorDepth),this._updateObjectUrl(),a(!0)}},{key:"getType",value:function(){return"Document"}}]),b}(GenericFile),DummyFile=function(a){function b(a,c,d){_classCallCheck(this,b);var e=_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c,d));return e.editable=!1,e}return _inherits(b,a),_createClass(b,[{key:"getType",value:function(){return"Other file"}},{key:"getNewSize",value:function(){return null}},{key:"getSizeDiff",value:function(){return null}}]),b}(GenericFile),DummyImage=function(a){function b(a,c,d){_classCallCheck(this,b);var e=_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c,d));return e.isImage=!0,e.newBlob=null,e.setSliderValue(20),e}return _inherits(b,a),_createClass(b,[{key:"_convertFileFormat",value:function(a){var b=this;return 0===this.blob.type.indexOf("image")?a(!0):"application/pdf"===this.blob.type?Helpers.pdfToDataUrl(this.buffer,function(c){c||a(!1),b.buffer=Helpers.dataUrlToBuffer(c),b.blob=new Blob([b.buffer],{type:"image/jpeg"}),b.fileName+=".jpg",a(!0)},"image/jpeg"):void a(!1)}},{key:"_updateObjectUrl",value:function(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),this._objectUrl=URL.createObjectURL(this.newBlob)}},{key:"setSliderValue",value:function(a){this.sliderValue=a,this.quality=a/100}},{key:"compress",value:function(a){{var b=this;new ImageCompressor(this.blob,{quality:b.quality,maxWidth:1240,maxHeight:1240,mimeType:"image/jpeg",success:function(c){b.newBlob=c,Helpers.blobToArrayBuffer(c,function(c){b.buffer=c,b._updateObjectUrl(),a(!0)})}})}}},{key:"getObjectUrl",value:function(){return this._objectUrl}},{key:"getNewSize",value:function(){return this.newBlob?this.newBlob.size:null}},{key:"getType",value:function(){return"Photo"}}]),b}(GenericFile),Helpers=function(){function a(){_classCallCheck(this,a)}return _createClass(a,null,[{key:"saveDataUrl",value:function(a,b){var c=document.createElement("a");c.href=a,c.download=b,document.body.appendChild(c),c.click(),document.body.removeChild(c)}},{key:"blobToArrayBuffer",value:function(a,b){var c=new FileReader;c.onload=function(a){b(a.target.result)},c.readAsArrayBuffer(a)}},{key:"pdfToDataUrl",value:function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png";PDFJS.workerSrc="pdf.worker.js",PDFJS.getDocument(a).then(function(a){a.getPage(1).then(function(a){var d=1,e=a.getViewport(d),f=document.createElement("canvas"),g=f.getContext("2d");f.height=e.height,f.width=e.width;var h=a.render({canvasContext:g,viewport:e});h.promise.then(function(){b(f.toDataURL(c))})})})}},{key:"dataUrlToBuffer",value:function(a){a=a.replace(/^data:image\/\w+;base64,/,""),a=atob(a);for(var b=a.length,c=new Uint8Array(b),d=0;b>d;d++)c[d]=a.charCodeAt(d);return c}},{key:"formatImage",value:function(a,b,c){var d=document.createElement("canvas"),e=d.getContext("2d"),f=new Image;f.onload=function(){d.height=f.naturalHeight,d.width=f.naturalWidth,e.drawImage(f,0,0,f.naturalWidth,f.naturalHeight),c(d.toDataURL(b))},f.src=URL.createObjectURL(a)}},{key:"imageToBlob",value:function(a,b,c){var d=document.createElement("canvas"),e=d.getContext("2d"),f=new Image;f.onload=function(){d.height=f.naturalHeight,d.width=f.naturalWidth,e.drawImage(f,0,0,f.naturalWidth,f.naturalHeight),d.toBlob(function(a){c(a)},b)},f.src=URL.createObjectURL(a)}},{key:"loadFile",value:function(a,b){var c=new XMLHttpRequest;c.open("GET",a),c.responseType="blob",c.onerror=function(){b(null)},c.onload=function(){return 200!==c.status?b(null):void b(c.response)},c.send()}}]),a}();App.directive("filePicker",[function(){function a(a){var b=$("<input>",{type:"file"});b.on("change",function(){a(b[0].files)}),b[0].click()}return{restrict:"A",scope:{callback:"=filePicker"},link:function(b,c){var d=$(c[0]),e=d[0];e.addEventListener("dragover",function(a){a.stopPropagation(),a.preventDefault(),a.dataTransfer.dropEffect="copy"},!0),e.addEventListener("drop",function(a){a.stopPropagation(),a.preventDefault(),d.removeClass("-active");var c=a.dataTransfer.files;c&&c.length&&b.callback(c[0])},!0),e.addEventListener("dragenter",function(){d.addClass("-active")},!0),e.addEventListener("dragleave",function(a){a.target===e&&d.removeClass("-active")},!1),d.find(".picker-item-button").on("click",function(){a(function(a){a.length&&b.callback(a[0])})})}}}]),App.filter("bytes",function(){return function(a,b){if(isNaN(parseFloat(a))||!isFinite(a))return"TBD";"undefined"==typeof b&&(b=1);var c=["bytes","kB","MB","GB","TB","PB"],d=Math.floor(Math.log(a)/Math.log(1024));return(a/Math.pow(1024,Math.floor(d))).toFixed(b)+" "+c[d]}}),App.controller("Main",["$scope",function(a){function b(b){b?b.editable?c(b,function(){a.files.push(b),a.$$phase||a.$digest()}):b.compress(function(){a.files.push(b),a.$$phase||a.$digest()}):alert("Unable to process this file")}function c(b){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:angular.noop;f=b,g=c,h.val(f.sliderValue).change(),a.inProgress=!0,setTimeout(d,0),a.openEditor()}function d(){return f?(a.inProgress=!0,setTimeout(function(){f.compress(function(){a.inProgress=!1,a.$$phase||a.$digest()})},30),void(a.$$phase||a.$digest())):null}function e(a){f.setSliderValue(a),d()}var f=null,g=null,h=$(".js-range");a.editorOpened=!1,a.files=[],a.quality="0.5",a.inProgress=!1,a.editFile=c,a.openEditor=function(){a.editorOpened=!0,a.$$phase||a.$digest()},a.closeEditor=function(){a.editorOpened=!1,f=null,g=null},a.applyFile=function(){g(f),a.closeEditor()},a.handleDocument=function(a){DocImage.fromFile(a,b)},a.handlePhoto=function(a){DummyImage.fromFile(a,b)},a.handleFile=function(a){DummyFile.fromFile(a,b)},a.getFilePreview=function(){return f?f.getObjectUrl():null},a.getFile=function(){return f},a.getOverallOriginalSize=function(){for(var b=0,c=0;c<a.files.length;c++)b+=a.files[c].getOriginalSize();return b},a.getOverallNewSize=function(){for(var b=0,c=0;c<a.files.length;c++){var d=a.files[c],e=d.getNewSize();if(!e)return null;b+=e}return b},a.getOverallDiffString=function(){var b=a.getOverallNewSize();if(!b)return"TBD";var c=a.getOverallOriginalSize();return((c-b)/c*100).toFixed(1)+"%"},a.downloadArchive=function(){for(var b=new JSZip,c=0;c<a.files.length;c++){var d=a.files[c];b.file(d.getName(),d.getArrayBuffer())}var e=b.generateAsync({type:"uint8array",compression:"DEFLATE",compressionOptions:{level:6}});e.then(function(a){var b=new Blob([a]);Helpers.saveDataUrl(URL.createObjectURL(b),"files.zip")})},h.val(20).rangeslider({polyfill:!1,onInit:function(){},onSlide:function(){},onSlideEnd:function(a,b){e(b)}})}]);