if(!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var R;function h(){return R.apply(null,arguments)}function N(t){return"[object Array]"===Object.prototype.toString.call(t)}function F(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function L(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function H(t,e,n,i){return Wt(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function z(t){var e;return null==t._isValid&&(e=f(t),t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict)&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),t._isValid}function U(t){var e=H(NaN);return null!=t?L(f(e),t):f(e).userInvalidated=!0,e}var W=h.momentProperties=[];function V(t,e){var n,i,r;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=f(e)),void 0!==e._locale&&(t._locale=e._locale),0=n&&Y(a,i,!0)>=n-1)break;n--}o++}return null}var tt={};function t(t,e){var n=t.toLowerCase();tt[n]=tt[n+"s"]=tt[e]=t}function a(t){return"string"==typeof t?tt[t]||tt[t.toLowerCase()]:void 0}function et(t){var e,n,i={};for(n in t)d(t,n)&&(e=a(n))&&(i[e]=t[n]);return i}function nt(e,n){return function(t){return null!=t?(rt(this,e,t),h.updateOffset(this,n),this):it(this,e)}}function it(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function rt(t,e,n){t._d["set"+(t._isUTC?"UTC":"")+e](n)}function at(t,e){if("object"==typeof t)for(var n in t)this.set(n,t[n]);else if("function"==typeof this[t=a(t)])return this[t](e);return this}function st(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var ot=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ct={},ut={};function i(t,e,n,i){var r="string"==typeof i?function(){return this[i]()}:i;t&&(ut[t]=r),e&&(ut[e[0]]=function(){return st(r.apply(this,arguments),e[1],e[2])}),n&&(ut[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function ht(t,e){return t.isValid()?(e=dt(e,t.localeData()),ct[e]=ct[e]||function(n){for(var t,i=n.match(ot),r=0,a=i.length;r_t(e[_],e[C])?S:e[x]<0||24Rt(r)&&(f(t)._overflowDayOfYear=!0),a=Mt(r,0,t._dayOfYear),t._a[C]=a.getUTCMonth(),t._a[S]=a.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=u[e]=n[e];for(;e<7;e++)t._a[e]=u[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[x]&&0===t._a[T]&&0===t._a[k]&&0===t._a[E]&&(t._nextDay=!0,t._a[x]=0),t._d=(t._useUTC?Mt:Ot).apply(null,u),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[x]=24)}}function zt(t){if(t._f===h.ISO_8601)Bt(t);else{t._a=[],f(t).empty=!0;for(var e,n,i,r,a,s=""+t._i,o=s.length,l=0,c=dt(t._f,t._locale).match(ot)||[],u=0;uthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},e.isDSTShifted=function(){var t,e;return void 0===this._isDSTShifted&&(V(t={},this),(t=Ut(t))._a?(e=(t._isUTC?H:A)(t._a),this._isDSTShifted=this.isValid()&&0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=Y(e||this.defaultElement||this)[0],this.element=Y(e),this.uuid=M++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=Y(),this.hoverable=Y(),this.focusable=Y(),this.classesElementLookup={},e!==this&&(Y.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=Y(e.style?e.ownerDocument:e.document||e),this.window=Y(this.document[0].defaultView||this.document[0].parentWindow)),this.options=Y.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:Y.noop,_create:Y.noop,_init:Y.noop,destroy:function(){var n=this;this._destroy(),Y.each(this.classesElementLookup,function(t,e){n._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:Y.noop,widget:function(){return this.element},option:function(t,e){var n,i,r,a=t;if(0===arguments.length)return Y.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(n=t.split(".")).shift(),n.length){for(i=a[t]=Y.widget.extend({},this.options[t]),r=0;r
")).children()[0],Y("body").append(e),t=n.offsetWidth,e.css("overflow","scroll"),t===(n=n.offsetWidth)&&(n=e[0].clientWidth),e.remove(),i=t-n)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(S(i),S(r))?a.important="horizontal":a.important="vertical",h.using.call(this,t,a)}),s.offset(Y.extend(c,{using:t}))})):n.apply(this,arguments)},Y.ui.position={fit:{left:function(t,e){var n=e.within,i=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=t.left-e.collisionPosition.marginLeft,s=i-a,o=a+e.collisionWidth-r-i;e.collisionWidth>r?0r?0")[0],g=h.each;function m(t){return null==t?t+"":"object"==typeof t?d[F.call(t)]||"object":typeof t}function v(t,e,n){var i=z[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:Math.min(i.max,Math.max(0,t)))}function W(i){var r=f(),a=r._rgba=[];return i=i.toLowerCase(),g(H,function(t,e){var n=(n=e.re.exec(i))&&e.parse(n),e=e.space||"rgba";if(n)return n=r[e](n),r[p[e].cache]=n[p[e].cache],a=r._rgba=n._rgba,!1}),a.length?("0,0,0,0"===a.join()&&h.extend(a,w.transparent),r):w[i]}function b(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}t.style.cssText="background-color:rgba(1,1,1,.5)",U.rgba=-1a.mod/2?i+=a.mod:i-r>a.mod/2&&(i-=a.mod)),l[n]=v((r-i)*s+i,e)))}),this[e](l)},blend:function(t){var e,n,i;return 1===this._rgba[3]?this:(e=this._rgba.slice(),n=e.pop(),i=f(t)._rgba,f(h.map(e,function(t,e){return(1-n)*i[e]+n*t})))},toRgbaString:function(){var t="rgba(",e=h.map(this._rgba,function(t,e){return null!=t?t:2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},r=document.activeElement;try{r.id}catch(t){r=document.body}return n.wrap(t),n[0]!==r&&!Y.contains(n[0],r)||Y(r).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(Y.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),Y.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!Y.contains(t[0],e)||Y(e).trigger("focus")),t}}),Y.extend(Y.effects,{version:"1.13.2",define:function(t,e,n){return n||(n=e,e="effect"),Y.effects.effect[t]=n,Y.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,e="vertical"!==n?(e||100)/100:1,{height:t.height()*e,width:t.width()*i,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(_+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=_+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){Y.effects.restoreStyle(t),Y.effects.removePlaceholder(t)},setTransition:function(i,t,r,a){return a=a||{},Y.each(t,function(t,e){var n=i.cssUnit(e);0");l.appendTo("body").addClass(t.className).css({top:o.top-a,left:o.left-s,height:n.innerHeight(),width:n.innerWidth(),position:i?"fixed":"absolute"}).animate(r,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),Y.fx.step.clip=function(t){t.clipInit||(t.start=Y(t.elem).cssClip(),"string"==typeof t.end&&(t.end=rt(t.end,t.elem)),t.clipInit=!0),Y(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},y={},Y.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){y[t]=function(t){return Math.pow(t,e+2)}}),Y.extend(y,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),Y.each(y,function(t,e){Y.easing["easeIn"+t]=e,Y.easing["easeOut"+t]=function(t){return 1-e(1-t)},Y.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),t=Y.effects,Y.effects.define("blind","hide",function(t,e){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},i=Y(this),r=t.direction||"up",a=i.cssClip(),s={clip:Y.extend({},a)},o=Y.effects.createPlaceholder(i);s.clip[n[r][0]]=s.clip[n[r][1]],"show"===t.mode&&(i.cssClip(s.clip),o&&o.css(Y.effects.clipToBox(s)),s.clip=a),o&&o.animate(Y.effects.clipToBox(s),t.duration,t.easing),i.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),Y.effects.define("bounce",function(t,e){var n,i,r=Y(this),a=t.mode,s="hide"===a,o="show"===a,l=t.direction||"up",c=t.distance,u=t.times||5,h=t.duration/(a=2*u+(o||s?1:0)),d=t.easing,f="up"===l||"down"===l?"top":"left",p="up"===l||"left"===l,g=0,t=r.queue().length;for(Y.effects.createPlaceholder(r),l=r.css(f),c=c||r["top"==f?"outerHeight":"outerWidth"]()/3,o&&((i={opacity:1})[f]=l,r.css("opacity",0).css(f,p?2*-c:2*c).animate(i,h,d)),s&&(c/=Math.pow(2,u-1)),(i={})[f]=l;g").css({position:"absolute",visibility:"visible",left:-i*f,top:-n*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:p,left:r+(h?s*f:0),top:a+(h?o*p:0),opacity:h?0:1}).animate({left:r+(h?0:s*f),top:a+(h?0:o*p),opacity:h?1:0},t.duration||500,t.easing,m)}),Y.effects.define("fade","toggle",function(t,e){var n="show"===t.mode;Y(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),Y.effects.define("fold","hide",function(e,t){var n=Y(this),i="show"===(p=e.mode),r="hide"===p,a=e.size||15,s=/([0-9]+)%/.exec(a),o=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,c=Y.effects.createPlaceholder(n),u=n.cssClip(),h={clip:Y.extend({},u)},d={clip:Y.extend({},u)},f=[u[o[0]],u[o[1]]],p=n.queue().length;s&&(a=parseInt(s[1],10)/100*f[r?0:1]),h.clip[o[0]]=a,d.clip[o[0]]=a,d.clip[o[1]]=0,i&&(n.cssClip(d.clip),c&&c.css(Y.effects.clipToBox(d)),d.clip=u),n.queue(function(t){c&&c.animate(Y.effects.clipToBox(h),l,e.easing).animate(Y.effects.clipToBox(d),l,e.easing),t()}).animate(h,l,e.easing).animate(d,l,e.easing).queue(t),Y.effects.unshift(n,p,4)}),Y.effects.define("highlight","show",function(t,e){var n=Y(this),i={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(i.opacity=0),Y.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),Y.effects.define("size",function(i,e){var r,n=Y(this),t=["fontSize"],a=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=i.mode,l="effect"!==o,c=i.scale||"both",u=i.origin||["middle","center"],h=n.css("position"),d=n.position(),f=Y.effects.scaledDimensions(n),p=i.from||f,g=i.to||Y.effects.scaledDimensions(n,0);Y.effects.createPlaceholder(n),"show"===o&&(o=p,p=g,g=o),r={from:{y:p.height/f.height,x:p.width/f.width},to:{y:g.height/f.height,x:g.width/f.width}},"box"!==c&&"both"!==c||(r.from.y!==r.to.y&&(p=Y.effects.setTransition(n,a,r.from.y,p),g=Y.effects.setTransition(n,a,r.to.y,g)),r.from.x!==r.to.x&&(p=Y.effects.setTransition(n,s,r.from.x,p),g=Y.effects.setTransition(n,s,r.to.x,g))),"content"!==c&&"both"!==c||r.from.y!==r.to.y&&(p=Y.effects.setTransition(n,t,r.from.y,p),g=Y.effects.setTransition(n,t,r.to.y,g)),u&&(u=Y.effects.getBaseline(u,f),p.top=(f.outerHeight-p.outerHeight)*u.y+d.top,p.left=(f.outerWidth-p.outerWidth)*u.x+d.left,g.top=(f.outerHeight-g.outerHeight)*u.y+d.top,g.left=(f.outerWidth-g.outerWidth)*u.x+d.left),delete p.outerHeight,delete p.outerWidth,n.css(p),"content"!==c&&"both"!==c||(a=a.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var t=Y(this),e={height:(n=Y.effects.scaledDimensions(t)).height*r.from.y,width:n.width*r.from.x,outerHeight:n.outerHeight*r.from.y,outerWidth:n.outerWidth*r.from.x},n={height:n.height*r.to.y,width:n.width*r.to.x,outerHeight:n.height*r.to.y,outerWidth:n.width*r.to.x};r.from.y!==r.to.y&&(e=Y.effects.setTransition(t,a,r.from.y,e),n=Y.effects.setTransition(t,a,r.to.y,n)),r.from.x!==r.to.x&&(e=Y.effects.setTransition(t,s,r.from.x,e),n=Y.effects.setTransition(t,s,r.to.x,n)),l&&Y.effects.saveStyle(t),t.css(e),t.animate(n,i.duration,i.easing,function(){l&&Y.effects.restoreStyle(t)})})),n.animate(g,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=n.offset();0===g.opacity&&n.css("opacity",p.opacity),l||(n.css("position","static"===h?"relative":h).offset(t),Y.effects.saveStyle(n)),e()}})}),Y.effects.define("scale",function(t,e){var n=Y(this),i=t.mode,i=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==i?0:100),i=Y.extend(!0,{from:Y.effects.scaledDimensions(n),to:Y.effects.scaledDimensions(n,i,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),Y.effects.effect.size.call(this,i,e)}),Y.effects.define("puff","hide",function(t,e){t=Y.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150}),Y.effects.effect.scale.call(this,t,e)}),Y.effects.define("pulsate","show",function(t,e){var n=Y(this),i="show"===(l=t.mode),r=2*(t.times||5)+(i||"hide"===l?1:0),a=t.duration/r,s=0,o=1,l=n.queue().length;for(!i&&n.is(":visible")||(n.css("opacity",0).show(),s=1);o li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=Y(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():Y()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=Y(""),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons()):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=Y.ui.keyCode,n=this.headers.length,i=this.headers.index(t.target),r=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:r=this.headers[(i+1)%n];break;case e.LEFT:case e.UP:r=this.headers[(i-1+n)%n];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:r=this.headers[0];break;case e.END:r=this.headers[n-1]}r&&(Y(t.target).attr("tabIndex",-1),Y(r).attr("tabIndex",0),Y(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===Y.ui.keyCode.UP&&t.ctrlKey&&Y(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=Y()):!1===t.active?this._activate(0):this.active.length&&!Y.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=Y()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var n,t=this.options,e=t.heightStyle,i=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=Y(this),e=t.uniqueId().attr("id"),n=t.next(),i=n.uniqueId().attr("id");t.attr("aria-controls",i),n.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(n=i.height(),this.element.siblings(":visible").each(function(){var t=Y(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.headers.each(function(){n-=Y(this).outerHeight(!0)}),this.headers.next().each(function(){Y(this).height(Math.max(0,n-Y(this).innerHeight()+Y(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.headers.next().each(function(){var t=Y(this).is(":visible");t||Y(this).show(),n=Math.max(n,Y(this).css("height","").height()),t||Y(this).hide()}).height(n))},_activate:function(t){(t=this._findActive(t)[0])!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:Y.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):Y()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&Y.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,n=this.active,i=Y(t.currentTarget),r=i[0]===n[0],a=r&&e.collapsible,s=a?Y():i.next(),o=n.next(),s={oldHeader:n,oldPanel:o,newHeader:a?Y():i,newPanel:s};t.preventDefault(),r&&!e.collapsible||!1===this._trigger("beforeActivate",t,s)||(e.active=!a&&this.headers.index(i),this.active=r?Y():i,this._toggle(s),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(n=n.children(".ui-accordion-header-icon"),this._removeClass(n,null,e.icons.activeHeader)._addClass(n,null,e.icons.header)),r)||(this._removeClass(i,"ui-accordion-header-collapsed")._addClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(r=i.children(".ui-accordion-header-icon"),this._removeClass(r,null,e.icons.header)._addClass(r,null,e.icons.activeHeader)),this._addClass(i.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=n,this.options.animate?this._animate(e,n,t):(n.hide(),e.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(Y(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,n,e){var i,r=this,a=0,s=t.css("box-sizing"),o=t.length&&(!n.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=Y(t.target),n=Y(Y.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this._menuItems().first();e||this.focus(t,n)},blur:function(t){this._delay(function(){Y.contains(this.element[0],Y.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,n;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=Y(t.target).closest(".ui-menu-item"),n=Y(t.currentTarget),e[0]!==n[0])||n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=Y(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,n,i,r=!0;switch(t.keyCode){case Y.ui.keyCode.PAGE_UP:this.previousPage(t);break;case Y.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case Y.ui.keyCode.HOME:this._move("first","first",t);break;case Y.ui.keyCode.END:this._move("last","last",t);break;case Y.ui.keyCode.UP:this.previous(t);break;case Y.ui.keyCode.DOWN:this.next(t);break;case Y.ui.keyCode.LEFT:this.collapse(t);break;case Y.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case Y.ui.keyCode.ENTER:case Y.ui.keyCode.SPACE:this._activate(t);break;case Y.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",i=r=!1,n=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===e?i=!0:n=e+n,e=this._filterMenuItems(n),(e=i&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,i=this,r=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=n.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=Y(this),e=t.prev(),n=Y("").data("ui-menu-submenu-caret",!0);i._addClass(n,"ui-menu-icon","ui-icon "+r),e.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=Y(this);i._isDivider(t)&&i._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!Y.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var n;"icons"===t&&(n=this.element.find(".ui-menu-icon"),this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,n,i;this._hasScroll()&&(n=parseFloat(Y.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(Y.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-n-i,n=this.activeMenu.scrollTop(),i=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(n+e):i",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var n,i,r,t="textarea"===(e=this.element[0].nodeName.toLowerCase()),e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))i=r=n=!0;else{i=r=n=!1;var e=Y.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:n=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:n=!0,this._move("nextPage",t);break;case e.UP:n=!0,this._keyEvent("previous",t);break;case e.DOWN:n=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(n=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:i=!0,this._searchTimeout(t)}}},keypress:function(t){if(n)n=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!i){var e=Y.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){r?(r=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=Y("'),p.dropdownMenu.replaceWith(r),p.dropdownMenu=r),l.close(g,o),p.selectedOption=null),angular.isFunction(b)&&b(s,t)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,i){!i||angular.isDefined(n.dropdownNested)||(e.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu)||(i.dropdownMenu=e)}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,n,i,r){var t;r&&(n.addClass("dropdown-toggle"),(r.toggleElement=n).bind("click",t=function(t){t.preventDefault(),n.hasClass("disabled")||i.disabled||e.$apply(function(){r.toggle()})}),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.unbind("click",t)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var i=[];return{add:function(t,e){i.push({key:t,value:e})},get:function(t){for(var e=0;e')).attr("backdrop-class",e.backdropClass),e.animation&&h.attr("modal-animation","true"),s(h)(d),o.enter(h,t),(f=u.scrollbarPadding(t)).heightOverflow)&&f.scrollbarWidth&&t.css({paddingRight:f.right+"px"}),b=y?parseInt(y.value.modalDomEl.attr("index"),10)+1:0;r=angular.element('
');r.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,"window-top-class":e.windowTopClass,size:e.size,index:b,animate:"animate"}).html(e.content),e.animation&&r.attr("modal-animation","true"),t.addClass(i),o.enter(s(r)(e.scope),t),g.top().value.modalDomEl=r,g.top().value.modalOpener=n},v.close=function(t,e){var n=g.get(t);return n&&S(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),i(t,n.value.modalOpener),!0):!n},v.dismiss=function(t,e){var n=g.get(t);return n&&S(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),i(t,n.value.modalOpener),!0):!n},v.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},v.getTop=function(){return g.top()},v.modalRendered=function(t){t=g.get(t);t&&t.value.renderDeferred.resolve()},v.focusFirstFocusableElement=function(t){return 0i.totalPages?i.selectPage(i.totalPages):n.ngModelCtrl.$render()},i.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(t,e,n,i){t.align=angular.isDefined(e.align)?t.$parent.$eval(e.align):i.align,n.create(this,t,e)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(a){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(t,e){return e.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,e,n,i){var r=i[0],i=i[1];i&&r.init(i,a)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,n,t,i,r){var a=this,l=angular.isDefined(n.maxSize)?e.$parent.$eval(n.maxSize):r.maxSize,c=angular.isDefined(n.rotate)?e.$parent.$eval(n.rotate):r.rotate,u=angular.isDefined(n.forceEllipses)?e.$parent.$eval(n.forceEllipses):r.forceEllipses,h=angular.isDefined(n.boundaryLinkNumbers)?e.$parent.$eval(n.boundaryLinkNumbers):r.boundaryLinkNumbers,d=angular.isDefined(n.pageLabel)?function(t){return e.$parent.$eval(n.pageLabel,{$page:t})}:angular.identity;function f(t,e,n){return{number:t,text:e,active:n}}e.boundaryLinks=angular.isDefined(n.boundaryLinks)?e.$parent.$eval(n.boundaryLinks):r.boundaryLinks,e.directionLinks=angular.isDefined(n.directionLinks)?e.$parent.$eval(n.directionLinks):r.directionLinks,i.create(this,e,n),n.maxSize&&a._watchers.push(e.$parent.$watch(t(n.maxSize),function(t){l=parseInt(t,10),a.render()}));var s=this.render;this.render=function(){s(),0';return{compile:function(t,e){var P=a(r);return function(n,i,r,t){function e(){a&&a.html()&&(u=u||N(function(){var t=L.positionElements(i,a,g.placement,d);a.css({top:t.top+"px",left:t.left+"px"}),a.hasClass(t.placement.split("-")[0])||(a.removeClass(h.split("-")[0]),a.addClass(t.placement.split("-")[0])),a.hasClass(M.placementClassPrefix+t.placement)||(a.removeClass(M.placementClassPrefix+h),a.addClass(M.placementClassPrefix+t.placement)),a.hasClass("uib-position-measure")?(L.positionArrow(a,t.placement),a.removeClass("uib-position-measure")):h!==t.placement&&L.positionArrow(a,t.placement),h=t.placement,u=null},0,!1))}var a,s,o,l,c,u,h,d=!!angular.isDefined(M.appendToBody)&&M.appendToBody,f=R(void 0),p=angular.isDefined(r[O+"Enable"]),g=n.$new(!0),m=!1,v=!!angular.isDefined(r[O+"IsOpen"])&&H(r[O+"IsOpen"]),b=!!M.useContentExp&&H(r[B]),y=[];function w(){(g.isOpen?C:_)()}function _(){var t,e;p&&!n.$eval(r[O+"Enable"])||(k(),g.title=r[O+"Title"],g.content=b?b(n):r[B],g.popupClass=r[O+"Class"],g.placement=angular.isDefined(r[O+"Placement"])?r[O+"Placement"]:M.placement,t=L.parsePlacement(g.placement),h=t[1]?t[0]+"-"+t[1]:t[0],t=parseInt(r[O+"PopupDelay"],10),e=parseInt(r[O+"PopupCloseDelay"],10),g.popupDelay=isNaN(t)?M.popupDelay:t,g.popupCloseDelay=isNaN(e)?M.popupCloseDelay:e,g.popupDelay?l=l||N(S,g.popupDelay,!1):S())}function C(){x(),g.popupCloseDelay?c=c||N(T,g.popupCloseDelay,!1):T()}function S(){if(x(),k(),!g.content)return angular.noop;a||(s=g.$new(),a=P(s,function(t){d?F.find("body").append(t):i.after(t)}),y.length=0,b?(y.push(n.$watch(b,function(t){!(g.content=t)&&g.isOpen&&T()})),y.push(s.$watch(function(){m||(m=!0,s.$$postDigest(function(){m=!1,g&&g.isOpen&&e()}))}))):y.push(r.$observe(B,function(t){(!(g.content=t)&&g.isOpen?T:e)()})),y.push(r.$observe(O+"Title",function(t){g.title=t,g.isOpen&&e()})),y.push(r.$observe(O+"Placement",function(t){g.placement=t||M.placement,g.isOpen&&e()}))),g.$evalAsync(function(){D(g.isOpen=!0),e()})}function x(){l&&(N.cancel(l),l=null),u&&(N.cancel(u),u=null)}function T(){g&&g.$evalAsync(function(){g&&(D(g.isOpen=!1),g.animation?o=o||N(E,150,!1):E())})}function k(){c&&(N.cancel(c),c=null),o&&(N.cancel(o),o=null)}function E(){x(),k(),y.length&&(angular.forEach(y,function(t){t()}),y.length=0),a&&(a.remove(),a=null),s&&(s.$destroy(),s=null)}function D(t){v&&angular.isFunction(v.assign)&&v.assign(n,t)}function I(t){g&&g.isOpen&&a&&(i[0].contains(t.target)||a[0].contains(t.target)||C())}g.origScope=n,g.isOpen=!1,z.add(g,{close:T}),g.contentExp=function(){return g.content},r.$observe("disabled",function(t){t&&x(),t&&g.isOpen&&T()}),v&&n.$watch(v,function(t){g&&!t===g.isOpen&&w()});function A(){f.show.forEach(function(t){"outsideClick"===t?i.off("click",w):(i.off(t,_),i.off(t,w))}),f.hide.forEach(function(t){"outsideClick"===t?F.off("click",I):i.off(t,C)})}$=r[O+"Trigger"],A(),"none"!==(f=R($)).show&&f.show.forEach(function(t,e){"outsideClick"===t?(i.on("click",w),F.on("click",I)):t===f.hide[e]?i.on(t,w):t&&(i.on(t,_),i.on(f.hide[e],C)),i.on("keypress",function(t){27===t.which&&C()})});var $=n.$eval(r[O+"Animation"]),$=(g.animation=angular.isDefined($)?!!$:M.animation,O+"AppendToBody"),$=$ in r&&void 0===r[$]||n.$eval(r[$]),d=angular.isDefined($)?$:d;n.$on("$destroy",function(){A(),E(),z.remove(g),g=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(u,i,h,d){return{link:function(t,r,e){function a(){n&&(n.remove(),n=null),s&&(s.$destroy(),s=null),o&&(u.leave(o).then(function(){n=null}),n=o,o=null)}var s,n,o,l=t.$eval(e.tooltipTemplateTranscludeScope),c=0;t.$watch(i.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(n){var i=++c;n?(d(n,!0).then(function(t){var e;i===c&&(e=l.$new(),t=h(t)(e,function(t){a(),u.enter(t,r)}),o=t,(s=e).$emit("$includeContentLoaded",n))},function(){i===c&&(a(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):a()}),t.$on("$destroy",a)}}}]).directive("uibTooltipClasses",["$uibPosition",function(r){return{restrict:"A",link:function(t,e,n){var i;t.placement&&(i=r.parsePlacement(t.placement),e.addClass(i[0])),t.popupClass&&e.addClass(t.popupClass),t.animation()&&e.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(t,e,n){var i=this,r=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;function a(){return angular.isDefined(t.maxParam)?t.maxParam:n.max}this.bars=[],t.max=a(),this.addBar=function(e,t,n){r||t.css({transition:"none"}),this.bars.push(e),e.max=a(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=i.bars.reduce(function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent},0);100=this.titles.length?t+1:this.titles[t]},e.rate=function(t){!e.readonly&&0<=t&&t<=e.range.length&&(t=a.enableReset&&r.$viewValue===t?0:t,r.$setViewValue(t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue,e.title=a.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(t,e,n,i){var r=i[0],i=i[1];r.init(i)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var i,r,a=this;function s(t){for(var e=0;ee.index?1:t.indexl:m||T(c,-720)")).css("position","relative"),l.after(a),(g=l.clone()).attr("placeholder",""),g.attr("tabindex","-1"),g.val(""),g.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),l.css({position:"relative","vertical-align":"top","background-color":"transparent"}),a.append(g),g.after(l)),angular.element("
")),Y=(A.attr({id:I,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(s.typeaheadTemplateUrl)&&A.attr("template-url",s.typeaheadTemplateUrl),angular.isDefined(s.typeaheadPopupTemplateUrl)&&A.attr("popup-template-url",s.typeaheadPopupTemplateUrl),function(){T&&g.val("")}),$=function(){D.matches=[],D.activeIdx=-1,l.attr("aria-expanded",!1),Y()},P=function(t){return I+"-option-"+t},q=(D.$watch("activeIdx",function(t){t<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",P(t))}),function(t,e){return!!(D.matches.length>e&&t)&&t.toUpperCase()===D.matches[e].label.toUpperCase()}),B=function(r,a){var s={$viewValue:r};w(o,!0),_(o,!1),N.when(E.source(o,s)).then(function(t){var e=r===h.$viewValue;if(e&&f)if(t&&0=v?0/g.test(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"$&"):t,t=r?t:n.trustAsHtml(t)}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion-group.html",'
\n \n
\n
\n
\n
\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion.html",'
')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("uib/template/alert/alert.html",'\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/carousel.html",'\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/slide.html",'
\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/datepicker.html",'
\n \n \n \n
\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/day.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{::label.abbr}}
{{ weekNumbers[$index] }}\n \n
\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/month.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/year.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepickerPopup/popup.html",'
\n \n
\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/backdrop.html",'\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html",'\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(t){t.put("uib/template/pager/pager.html",'\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("uib/template/pagination/pagination.html",'\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'
\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-html.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-template.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover.html",'
\n
\n\n
\n

\n
\n
\n
\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/bar.html",'
\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progress.html",'
')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progressbar.html",'
\n
\n
\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("uib/template/rating/rating.html",'\n ({{ $index < value ? \'*\' : \' \' }})\n \n\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tab.html",'\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tabset.html",'
\n \n
\n
\n
\n
\n
\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/timepicker/timepicker.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
  
\n \n :\n \n :\n \n
  
\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-match.html",'\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-popup.html",'\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend(''),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend(''),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend(''),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend(''),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend(''),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend(''),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend(''),angular.$$uibTypeaheadCss=!0}),!function(){var e,n="angularUtils.directives.dirPagination",d="__default";try{e=angular.module(n)}catch(t){e=angular.module(n,[])}e.directive("dirPaginate",["$compile","$parse","paginationService",function(c,u,h){return{terminal:!0,multiElement:!0,compile:function(t,e){var o=e.dirPaginate,n=o.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),i=/\|\s*itemsPerPage\s*:[^|]*/;if(null===n[2].match(i))throw"pagination directive: the 'itemsPerPage' filter must be set.";var n=n[2].replace(i,""),l=u(n),i=(function(t){angular.forEach(t,function(t){t.nodeType===Node.ELEMENT_NODE&&angular.element(t).attr("dir-paginate-no-compile",!0)})}(t),e.paginationId||d);return h.registerInstance(i),function(t,e,n){var i,r=u(n.paginationId)(t)||n.paginationId||d,a=(h.registerInstance(r),function(t,e){var n=!!t.match(/(\|\s*itemsPerPage\s*:[^|]*:[^|]*)/);n=e===d||n?t:t.replace(/(\|\s*itemsPerPage\s*:[^|]*)/,"$1 : '"+e+"'");return n}(o,r)),s=(s=n,a=a,(i=e)[0].hasAttribute("dir-paginate-start")||i[0].hasAttribute("data-dir-paginate-start")?(s.$set("ngRepeatStart",a),i.eq(i.length-1).attr("ng-repeat-end",!0)):s.$set("ngRepeat",a),i=e,angular.forEach(i,function(t){t.nodeType===Node.ELEMENT_NODE&&angular.element(t).removeAttr("dir-paginate-no-compile")}),i.eq(0).removeAttr("dir-paginate-start").removeAttr("dir-paginate").removeAttr("data-dir-paginate-start").removeAttr("data-dir-paginate"),i.eq(i.length-1).removeAttr("dir-paginate-end").removeAttr("data-dir-paginate-end"),c(e)),a=function(t,e,n){t=e.currentPage?u(e.currentPage):(t[e=n+"__currentPage"]=1,u(e));return t}(t,n,r);h.setCurrentPageParser(r,a,t),void 0!==n.totalItems?(h.setAsyncModeTrue(r),t.$watch(function(){return u(n.totalItems)(t)},function(t){0<=t&&h.setCollectionLength(r,t)})):t.$watchCollection(function(){return l(t)},function(t){t&&h.setCollectionLength(r,t.length)}),s(t)}}}}]).directive("dirPaginateNoCompile",function(){return{priority:5e3,terminal:!0}}).directive("dirPaginationControls",["paginationService","paginationTemplate",function(c,n){var u=/^\d+$/;return{restrict:"AE",templateUrl:function(t,e){return e.templateUrl||n.getPath()},scope:{maxSize:"=?",onPageChange:"&?",paginationId:"=?"},link:function(i,t,e){var n=e.paginationId||d,r=i.paginationId||e.paginationId||d;if(!c.isRegistered(r)&&!c.isRegistered(n))throw"pagination directive: the pagination controls"+(r!==d?" (id: "+r+") ":" ")+"cannot be used without the corresponding pagination directive.";i.maxSize||(i.maxSize=9);i.directionLinks=!angular.isDefined(e.directionLinks)||i.$parent.$eval(e.directionLinks),i.boundaryLinks=!!angular.isDefined(e.boundaryLinks)&&i.$parent.$eval(e.boundaryLinks);var a=Math.max(i.maxSize,5);function s(t){l(t)&&(i.pages=h(t,c.getCollectionLength(r),c.getItemsPerPage(r),a),i.pagination.current=t,o(),i.onPageChange)&&i.onPageChange({newPageNumber:t})}function o(){var t=c.getCurrentPage(r),e=c.getItemsPerPage(r),n=c.getCollectionLength(r);i.range.lower=(t-1)*e+1,i.range.upper=Math.min(t*e,n),i.range.total=n}function l(t){return u.test(t)&&0
  • «
  • {{ pageNumber }}
  • »
  • ')}])}(),!function(){var e,n="angularUtils.directives.dirPagination",d="__default";try{e=angular.module(n)}catch(t){e=angular.module(n,[])}e.directive("dirPaginate",["$compile","$parse","paginationService",function(c,u,h){return{terminal:!0,multiElement:!0,compile:function(t,e){var o=e.dirPaginate,n=o.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),i=/\|\s*itemsPerPage\s*:[^|]*/;if(null===n[2].match(i))throw"pagination directive: the 'itemsPerPage' filter must be set.";var n=n[2].replace(i,""),l=u(n),i=(function(t){angular.forEach(t,function(t){t.nodeType===Node.ELEMENT_NODE&&angular.element(t).attr("dir-paginate-no-compile",!0)})}(t),e.paginationId||d);return h.registerInstance(i),function(t,e,n){var i,r=u(n.paginationId)(t)||n.paginationId||d,a=(h.registerInstance(r),function(t,e){var n=!!t.match(/(\|\s*itemsPerPage\s*:[^|]*:[^|]*)/);n=e===d||n?t:t.replace(/(\|\s*itemsPerPage\s*:[^|]*)/,"$1 : '"+e+"'");return n}(o,r)),s=(s=n,a=a,(i=e)[0].hasAttribute("dir-paginate-start")||i[0].hasAttribute("data-dir-paginate-start")?(s.$set("ngRepeatStart",a),i.eq(i.length-1).attr("ng-repeat-end",!0)):s.$set("ngRepeat",a),i=e,angular.forEach(i,function(t){t.nodeType===Node.ELEMENT_NODE&&angular.element(t).removeAttr("dir-paginate-no-compile")}),i.eq(0).removeAttr("dir-paginate-start").removeAttr("dir-paginate").removeAttr("data-dir-paginate-start").removeAttr("data-dir-paginate"),i.eq(i.length-1).removeAttr("dir-paginate-end").removeAttr("data-dir-paginate-end"),c(e)),a=function(t,e,n){t=e.currentPage?u(e.currentPage):(t[e=n+"__currentPage"]=1,u(e));return t}(t,n,r);h.setCurrentPageParser(r,a,t),void 0!==n.totalItems?(h.setAsyncModeTrue(r),t.$watch(function(){return u(n.totalItems)(t)},function(t){0<=t&&h.setCollectionLength(r,t)})):t.$watchCollection(function(){return l(t)},function(t){t&&h.setCollectionLength(r,t.length)}),s(t)}}}}]).directive("dirPaginateNoCompile",function(){return{priority:5e3,terminal:!0}}).directive("dirPaginationControls",["paginationService","paginationTemplate",function(c,n){var u=/^\d+$/;return{restrict:"AE",templateUrl:function(t,e){return e.templateUrl||n.getPath()},scope:{maxSize:"=?",onPageChange:"&?",paginationId:"=?"},link:function(i,t,e){var n=e.paginationId||d,r=i.paginationId||e.paginationId||d;if(!c.isRegistered(r)&&!c.isRegistered(n))throw"pagination directive: the pagination controls"+(r!==d?" (id: "+r+") ":" ")+"cannot be used without the corresponding pagination directive.";i.maxSize||(i.maxSize=9);i.directionLinks=!angular.isDefined(e.directionLinks)||i.$parent.$eval(e.directionLinks),i.boundaryLinks=!!angular.isDefined(e.boundaryLinks)&&i.$parent.$eval(e.boundaryLinks);var a=Math.max(i.maxSize,5);function s(t){l(t)&&(i.pages=h(t,c.getCollectionLength(r),c.getItemsPerPage(r),a),i.pagination.current=t,o(),i.onPageChange)&&i.onPageChange({newPageNumber:t})}function o(){var t=c.getCurrentPage(r),e=c.getItemsPerPage(r),n=c.getCollectionLength(r);i.range.lower=(t-1)*e+1,i.range.upper=Math.min(t*e,n),i.range.total=n}function l(t){return u.test(t)&&0e&&(t.page=e);t.page<=0&&(t.page=1);t.adjacent<=0&&(t.adjacent=2);e<=1&&(t.Hide=t.hideIfEmpty)}(t,r),2*t.adjacent+2);o(t,r,"prev"),r<=2+e?l(n=1,r,t):t.page-t.adjacent<=2?(l(n=1,i=1+e,t),u(r,t,i)):t.page
  • '};function a(t,e){t.page!=e&&(t.page=e,t.pagingAction({page:t.page,pageSize:t.pageSize,total:t.total}),t.scrollTop)&&scrollTo(0,0)}function o(n,t,e){var i,r;!n.showPrevNext||t<1||(e="prev"===e?(i=n.page-1<=0,r={value:"<<",title:"First Page",page:1},{value:"<",title:"Previous Page",page:n.page-1<=0?1:n.page-1}):(i=n.page+1>t,r={value:">",title:"Next Page",page:n.page+1>=t?t:n.page+1},{value:">>",title:"Last Page",page:t}),(t=function(t,e){n.List.push({value:t.value,title:t.title,liClass:e?n.disabledClass:"",action:function(){e||a(n,t.page)}})})(r,i),t(e,i))}function l(t,e,n){for(var i=0,i=t;i<=e;i++){var r={value:i,title:"Page "+i,liClass:n.page==i?n.activeClass:"",action:function(){a(n,this.value)}};n.List.push(r)}}function i(t){t.List.push({value:t.dots})}function c(t,e){l(1,2,t),3!=e&&i(t)}function u(t,e,n){n!=t-2&&i(e),l(t-1,t,e)}});var wysihtml5={version:"0.3.0",commands:{},dom:{},quirks:{},toolbar:{},lang:{},selection:{},views:{},INVISIBLE_SPACE:"\ufeff",EMPTY_FUNCTION:function(){},ELEMENT_NODE:1,TEXT_NODE:3,BACKSPACE_KEY:8,ENTER_KEY:13,ESCAPE_KEY:27,SPACE_KEY:32,DELETE_KEY:46},Base=(window.rangy=function(){var n="undefined",o=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer","START_TO_START","START_TO_END","END_TO_START","END_TO_END"],l=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],e=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],i=["collapse","compareEndPoints","duplicate","getBookmark","moveToBookmark","moveToElementText","parentElement","pasteHTML","select","setEndPoint","getBoundingClientRect"];function c(t,e){var n=typeof t[e];return"function"==n||!("object"!=n||!t[e])||"unknown"==n}function u(t,e){return!("object"!=typeof t[e]||!t[e])}function t(t,e){return typeof t[e]!=n}function r(i){return function(t,e){for(var n=e.length;n--;)if(!i(t,e[n]))return!1;return!0}}var h=r(c),a=r(u),d=r(t);function f(t){return t&&h(t,i)&&d(t,e)}var p={version:"1.2.2",initialized:!1,supported:!0,util:{isHostMethod:c,isHostObject:u,isHostProperty:t,areHostMethods:h,areHostObjects:a,areHostProperties:d,isTextRange:f},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}};function g(t){window.alert("Rangy not supported in your browser. Reason: "+t),p.initialized=!0,p.supported=!1}p.fail=g,p.warn=function(t){t="Rangy warning: "+t,p.config.alertOnWarn?window.alert(t):typeof window.console!=n&&typeof window.console.log!=n&&window.console.log(t)},!{}.hasOwnProperty?g("hasOwnProperty not supported"):p.util.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};var m=[],v=[];function s(){if(!p.initialized)for(var t,e=!1,n=!1,i=(c(document,"createRange")&&(t=document.createRange(),h(t,l)&&d(t,o)&&(e=!0),t.detach()),u(document,"body")?document.body:document.getElementsByTagName("body")[0]),r=(i&&c(i,"createTextRange")&&f(t=i.createTextRange())&&(n=!0),e||n||g("Neither Range nor TextRange are implemented"),p.initialized=!0,p.features={implementsDomRange:e,implementsTextRange:n},v.concat(m)),a=0,s=r.length;a["+t.childNodes.length+"]"):t.nodeName:"[No node]"}function f(t){this.root=t,this._next=t}function p(t,e){this.node=t,this.offset=e}function g(t){this.code=this[t],this.codeName=t,this.message="DOMException: "+this.codeName}f.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var t,e,n=this._current=this._next;if(this._current)if(t=n.firstChild)this._next=t;else{for(e=null;n!==this.root&&!(e=n.nextSibling);)n=n.parentNode;this._next=e}return this._current},detach:function(){this._current=this._next=this.root=null}},p.prototype={equals:function(t){return this.node===t.node&this.offset==t.offset},inspect:function(){return"[DomPosition("+d(this.node)+":"+this.offset+")]"}},(g.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11}).toString=function(){return this.message},t.dom={arrayContains:r,isHtmlNamespace:function(t){return typeof t.namespaceURI==n||null===(t=t.namespaceURI)||"http://www.w3.org/1999/xhtml"==t},parentElement:function(t){return 1==(t=t.parentNode).nodeType?t:null},getNodeIndex:l,getNodeLength:function(t){return s(t)?t.length:(t=t.childNodes)?t.length:0},getCommonAncestor:c,isAncestorOf:function(t,e,n){for(var i=n?e:e.parentNode;i;){if(i===t)return!0;i=i.parentNode}return!1},getClosestAncestorIn:u,isCharacterDataNode:s,insertAfter:o,splitDataNode:function(t,e){var n=t.cloneNode(!1);return n.deleteData(0,e),t.deleteData(e,t.length-e),o(n,t),n},getDocument:h,getWindow:function(t){if(typeof(t=h(t)).defaultView!=n)return t.defaultView;if(typeof t.parentWindow!=n)return t.parentWindow;throw new Error("Cannot get a window object for node")},getIframeWindow:function(t){if(typeof t.contentWindow!=n)return t.contentWindow;if(typeof t.contentDocument!=n)return t.contentDocument.defaultView;throw new Error("getIframeWindow: No Window object found for iframe element")},getIframeDocument:function(t){if(typeof t.contentDocument!=n)return t.contentDocument;if(typeof t.contentWindow!=n)return t.contentWindow.document;throw new Error("getIframeWindow: No Document object found for iframe element")},getBody:function(t){return i.isHostObject(t,"body")?t.body:t.getElementsByTagName("body")[0]},getRootContainer:function(t){for(var e;e=t.parentNode;)t=e;return t},comparePoints:function(t,e,n,i){var r,a,s,o;if(t==n)return e===i?0:e=e.childNodes.length?e.appendChild(t):e.insertBefore(t,e.childNodes[n]),i}function f(t,e,n){var i,r,a,s;for(n=n||{stop:!1};a=t.next();)if(t.isPartiallySelectedSubtree()){if(!1===e(a))return void(n.stop=!0);if(f(s=t.getSubtreeIterator(),e,n),s.detach(!0),n.stop)return}else for(i=c.createIterator(a);r=i.next();)if(!1===e(r))return void(n.stop=!0)}function p(t){for(var e;t.next();)t.isPartiallySelectedSubtree()?(p(e=t.getSubtreeIterator()),e.detach(!0)):t.remove()}function g(t){for(var e,n,i=l(t.range).createDocumentFragment();e=t.next();){if(t.isPartiallySelectedSubtree()?(e=e.cloneNode(!1),n=t.getSubtreeIterator(),e.appendChild(g(n)),n.detach(!0)):t.remove(),10==e.nodeType)throw new s("HIERARCHY_REQUEST_ERR");i.appendChild(e)}return i}function i(t,e,n){var i,r=!(!e||!e.length),a=!!n,s=(r&&(i=new RegExp("^("+e.join("|")+")$")),[]);return f(new m(t,!1),function(t){r&&!i.test(t.nodeType)||a&&!n(t)||s.push(t)}),s}function t(t){return"["+(void 0===t.getName?"Range":t.getName())+"("+c.inspectNode(t.startContainer)+":"+t.startOffset+", "+c.inspectNode(t.endContainer)+":"+t.endOffset+")]"}function m(t,e){this.range=t,this.clonePartiallySelectedTextNodes=e,t.collapsed||(this.sc=t.startContainer,this.so=t.startOffset,this.ec=t.endContainer,this.eo=t.endOffset,e=t.commonAncestorContainer,this.sc===this.ec&&c.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==e||c.isCharacterDataNode(this.sc)?c.getClosestAncestorIn(this.sc,e,!0):this.sc.childNodes[this.so],this._last=this.ec!==e||c.isCharacterDataNode(this.ec)?c.getClosestAncestorIn(this.ec,e,!0):this.ec.childNodes[this.eo-1]))}function r(t){this.code=this[t],this.codeName=t,this.message="RangeException: "+this.codeName}function v(t,e,n){this.nodes=i(t,e,n),this._next=this.nodes[0],this._position=0}m.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var t=this._current=this._next;return t&&(this._next=t!==this._last?t.nextSibling:null,c.isCharacterDataNode(t))&&this.clonePartiallySelectedTextNodes&&(t===this.ec&&(t=t.cloneNode(!0)).deleteData(this.eo,t.length-this.eo),this._current===this.sc)&&(t=t.cloneNode(!0)).deleteData(0,this.so),t},remove:function(){var t,e,n=this._current;!c.isCharacterDataNode(n)||n!==this.sc&&n!==this.ec?n.parentNode&&n.parentNode.removeChild(n):(t=n===this.sc?this.so:0)!=(e=n===this.ec?this.eo:n.length)&&n.deleteData(t,e-t)},isPartiallySelectedSubtree:function(){return o(this._current,this.range)},getSubtreeIterator:function(){var t,e,n,i,r,a;return this.isSingleCharacterDataNode?(t=this.range.cloneRange()).collapse():(t=new M(l(this.range)),e=this._current,i=0,a=c.getNodeLength(r=n=e),c.isAncestorOf(e,this.sc,!0)&&(n=this.sc,i=this.so),c.isAncestorOf(e,this.ec,!0)&&(r=this.ec,a=this.eo),nt(t,n,i,r,a)),new m(t,this.clonePartiallySelectedTextNodes)},detach:function(t){t&&this.range.detach(),this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}},(r.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2}).toString=function(){return this.message},v.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){return this._current=this._next,this._next=this.nodes[++this._position],this._current},detach:function(){this._current=this._next=this.nodes=null}};var b=[1,3,4,5,7,8,10],N=[2,9,11],F=[1,3,4,5,7,8,10,11],L=[1,3,4,5,7,8];function y(r){return function(t,e){for(var n,i=e?t:t.parentNode;i;){if(n=i.nodeType,c.arrayContains(r,n))return i;i=i.parentNode}return null}}var w=c.getRootContainer,_=y([9,11]),H=y([5,6,10,12]),z=y([6,10,12]);function C(t,e){if(z(t,e))throw new r("INVALID_NODE_TYPE_ERR")}function S(t){if(!t.startContainer)throw new s("INVALID_STATE_ERR")}function x(t,e){if(!c.arrayContains(e,t.nodeType))throw new r("INVALID_NODE_TYPE_ERR")}function T(t,e){if(e<0||e>(c.isCharacterDataNode(t)?t:t.childNodes).length)throw new s("INDEX_SIZE_ERR")}function k(t,e){if(_(t,!0)!==_(e,!0))throw new s("WRONG_DOCUMENT_ERR")}function E(t){if(H(t,!0))throw new s("NO_MODIFICATION_ALLOWED_ERR")}function D(t,e){if(!t)throw new s(e)}function U(t){return!c.arrayContains(N,t.nodeType)&&!_(t,!0)}function W(t,e){return e<=(c.isCharacterDataNode(t)?t:t.childNodes).length}function I(t){if(S(t),U(t.startContainer)||U(t.endContainer)||!W(t.startContainer,t.startOffset)||!W(t.endContainer,t.endOffset))throw new Error("Range error: Range is no longer valid after DOM mutation ("+t.inspect()+")")}var V=document.createElement("style"),A=!1;try{V.innerHTML="x",A=3==V.firstChild.nodeType}catch(t){}a.features.htmlParsingConforms=A;var $=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],P=0,j=1,G=2,Y=3,q=0,X=1,K=2,B=3;function O(){}function Z(t){t.START_TO_START=P,t.START_TO_END=j,t.END_TO_END=G,t.END_TO_START=Y,t.NODE_BEFORE=q,t.NODE_AFTER=X,t.NODE_BEFORE_AND_AFTER=K,t.NODE_INSIDE=B}function J(t){Z(t),Z(t.prototype)}function Q(r,a){return function(){I(this);var t=this.startContainer,e=this.startOffset,n=this.commonAncestorContainer,i=new m(this,!0),n=(t!==n&&(t=(n=d(c.getClosestAncestorIn(t,n,!0))).node,e=n.offset),f(i,E),i.reset(),r(i));return i.detach(),a(this,t,e,t,e),n}}function tt(t,l,e){function n(e,n){return function(t){S(this),x(t,b),x(w(t),N);t=(e?h:d)(t);(n?i:r)(this,t.node,t.offset)}}function i(t,e,n){var i=t.endContainer,r=t.endOffset;e===t.startContainer&&n===t.startOffset||(w(e)==w(i)&&1!=c.comparePoints(e,n,i,r)||(i=e,r=n),l(t,e,n,i,r))}function r(t,e,n){var i=t.startContainer,r=t.startOffset;e===t.endContainer&&n===t.endOffset||(w(e)==w(i)&&-1!=c.comparePoints(e,n,i,r)||(i=e,r=n),l(t,i,r,e,n))}t.prototype=new O,a.util.extend(t.prototype,{setStart:function(t,e){S(this),C(t,!0),T(t,e),i(this,t,e)},setEnd:function(t,e){S(this),C(t,!0),T(t,e),r(this,t,e)},setStartBefore:n(!0,!0),setStartAfter:n(!1,!0),setEndBefore:n(!0,!1),setEndAfter:n(!1,!1),collapse:function(t){I(this),t?l(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):l(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(t){S(this),C(t,!0),l(this,t,0,t,c.getNodeLength(t))},selectNode:function(t){S(this),C(t,!1),x(t,b);var e=h(t),t=d(t);l(this,e.node,e.offset,t.node,t.offset)},extractContents:Q(g,l),deleteContents:Q(p,l),canSurroundContents:function(){I(this),E(this.startContainer),E(this.endContainer);var t=new m(this,!0),e=t._first&&o(t._first,this)||t._last&&o(t._last,this);return t.detach(),!e},detach:function(){e(this)},splitBoundaries:function(){I(this);var t=this.startContainer,e=this.startOffset,n=this.endContainer,i=this.endOffset,r=t===n;c.isCharacterDataNode(n)&&0=c.getNodeIndex(t)&&i++,e=0),l(this,t,e,n,i)},normalizeBoundaries:function(){I(this);function t(t){var e=t.nextSibling;e&&e.nodeType==t.nodeType&&(s=(a=t).length,t.appendData(e.data),e.parentNode.removeChild(e))}function e(t){var e,n=t.previousSibling;n&&n.nodeType==t.nodeType&&(e=(i=t).length,r=n.length,t.insertData(0,n.data),n.parentNode.removeChild(n),i==a?(s+=r,a=i):a==t.parentNode&&(n=c.getNodeIndex(t),s==n?(a=t,s=e):n12"),p.close(),O=l.getIframeWindow(f).getSelection(),m=p.documentElement.lastChild.firstChild,(p=p.createRange()).setStart(m,1),p.collapse(!0),O.addRange(p),N=1==O.rangeCount,O.removeAllRanges(),g=p.cloneRange(),p.setStart(m,0),g.setEnd(m,2),O.addRange(p),O.addRange(g),T=2==O.rangeCount,p.detach(),g.detach(),C.removeChild(f)),a.features.selectionSupportsMultipleRanges=T,a.features.collapsedNonEditableSelectionsSupported=N,!1);function E(t,e,n){var i=n?"end":"start",n=n?"start":"end";t.anchorNode=e[i+"Container"],t.anchorOffset=e[i+"Offset"],t.focusNode=e[n+"Container"],t.focusOffset=e[n+"Offset"]}function D(t){t.anchorNode=t.focusNode=null,t.anchorOffset=t.focusOffset=0,t.rangeCount=0,t.isCollapsed=!0,t._ranges.length=0}function I(t){var e;return t instanceof o?(e=t._selectionNativeRange)||((e=a.createNativeRange(l.getDocument(t.startContainer))).setEnd(t.endContainer,t.endOffset),e.setStart(t.startContainer,t.startOffset),t._selectionNativeRange=e,t.attachListener("detach",function(){this._selectionNativeRange=null})):t instanceof n?e=t.nativeRange:a.features.implementsDomRange&&t instanceof l.getWindow(t.startContainer).Range&&(e=t),e}function A(t){var e=t.getNodes();if(function(t){if(t.length&&1==t[0].nodeType){for(var e=1,n=t.length;e=this.rangeCount)throw new c("INDEX_SIZE_ERR");return this._ranges[t]},w)B=function(t){var e;a.isSelectionValid(t.win)?e=t.docSelection.createRange():(e=l.getBody(t.win.document).createTextRange()).collapse(!0),t.docSelection.type==h?$(t):F(e)?L(t,e):D(t)};else if(e.isHostMethod(b,"getRangeAt")&&"number"==typeof b.rangeCount)B=function(t){if(k&&y&&t.docSelection.type==h)$(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var e=0,n=t.rangeCount;efoo";return t.innerHTML=e,t.innerHTML.toLowerCase()===e},supportsCommand:(n={formatBlock:r,insertUnorderedList:r||l||s,insertOrderedList:r||l||s},i={insertHTML:t},function(t,e){if(!n[e]){try{return t.queryCommandSupported(e)}catch(t){}try{return t.queryCommandEnabled(e)}catch(t){return!!i[e]}}return!1}),doesAutoLinkingInContentEditable:function(){return r},canDisableAutoLinking:function(){return this.supportsCommand(document,"AutoUrlDetect")},clearsContentEditableCorrectly:function(){return t||l||s},supportsGetAttributeCorrectly:function(){return"1"!=document.createElement("td").getAttribute("rowspan")},canSelectImagesInContentEditable:function(){return t||r||l},clearsListsInContentEditableCorrectly:function(){return t||r||s},autoScrollsToCaret:function(){return!s},autoClosesUnclosedTags:function(){var t,e=a.cloneNode(!1);return e.innerHTML="

    ",e=e.innerHTML.toLowerCase(),t="

    "===e||"

    "===e,this.autoClosesUnclosedTags=function(){return t},t},supportsNativeGetElementsByClassName:function(){return-1!==String(document.getElementsByClassName).indexOf("[native code]")},supportsSelectionModify:function(){return"getSelection"in window&&"modify"in window.getSelection()},supportsClassList:function(){return"classList"in a},needsSpaceAfterLineBreak:function(){return l},supportsSpeechApiOn:function(t){return 11<=(e.match(/Chrome\/(\d+)/)||[,0])[1]&&("onwebkitspeechchange"in t||"speech"in t)},crashesWhenDefineProperty:function(t){return r&&("XMLHttpRequest"===t||"XDomainRequest"===t)},doesAsyncFocus:function(){return r},hasProblemsSettingCaretAfterImg:function(){return r},hasUndoInContextMenu:function(){return t||o||l}}}(),wysihtml5.lang.array=function(r){return{contains:function(t){if(r.indexOf)return-1!==r.indexOf(t);for(var e=0,n=r.length;e
    "+t.data.replace(o,function(t,e){var n=(e.match(l)||[])[1]||"",i=c[n],i=((e=e.replace(l,"")).split(i).length>e.split(n).length&&(e+=n,n=""),e),r=e;return 100'+r+""+n}),i.removeChild(i.firstChild);i.firstChild;)n.insertBefore(i.firstChild,t);n.removeChild(t)}a.dom.autoLink=function(t){return function(t){var e;for(;t.parentNode;){if(t=t.parentNode,e=t.nodeName,s.contains(e))return 1;if("body"===e)return}return}(t)?t:function t(e){if(s.contains(e.nodeName))return;if(e.nodeType===a.TEXT_NODE&&e.data.match(o))return void u(e);var n=a.lang.array(e.childNodes).get(),i=n.length,r=0;for(;r"===t.outerHTML.slice(-4).toLowerCase()||(i="div"));if(i in n){if(!(e=n[i])||e.remove)return null;e="string"==typeof e?{rename_tag:e}:e}else{if(!t.firstChild)return null;e={rename_tag:c}}return r=t.ownerDocument.createElement(e.rename_tag||i),function(t,e,n){var i,r,a,s,o,l,c,u={},h=n.set_class,d=n.add_class,f=n.set_attributes,p=n.check_attributes,g=_.classes,m=0,v=[],b=[],y=[],n=[];f&&(u=wysihtml5.lang.object(f).clone());if(p)for(o in p)(c=S[p[o]])&&"string"==typeof(l=c(C(t,o)))&&(u[o]=l);h&&v.push(h);if(d)for(o in d)(c=x[d[o]])&&"string"==typeof(s=c(C(t,o)))&&v.push(s);g["_wysihtml5-temp-placeholder"]=1,(n=t.getAttribute("class"))&&(v=v.concat(n.split(w)));for(i=v.length;m';return t.stylesheets=i,o.lang.string('#{stylesheets}').interpolate(t)},_unset:function(t,e,n,i){try{t[e]=n}catch(t){}try{t.__defineGetter__(e,function(){return n})}catch(t){}if(i)try{t.__defineSetter__(e,function(){})}catch(t){}if(!o.browser.crashesWhenDefineProperty(e))try{var r={get:function(){return n}};i&&(r.set=function(){}),Object.defineProperty(t,e,r)}catch(t){}}})}(wysihtml5),!function(){var i={className:"class"};wysihtml5.dom.setAttributes=function(n){return{on:function(t){for(var e in n)t.setAttribute(i[e]||e,n[e])}}}}(),wysihtml5.dom.setStyles=function(i){return{on:function(t){var e=t.style;if("string"==typeof i)e.cssText+=";"+i;else for(var n in i)"float"===n?(e.cssFloat=i[n],e.styleFloat=i[n]):e[n]=i[n]}}},!function(s){s.simulatePlaceholder=function(t,e,n){function i(){e.hasPlaceholderSet()&&e.clear(),s.removeClass(e.element,a)}function r(){e.isEmpty()&&(e.setValue(n),s.addClass(e.element,a))}var a="placeholder";t.observe("set_placeholder",r).observe("unset_placeholder",i).observe("focus:composer",i).observe("paste:composer",i).observe("blur:composer",r),r()}}(wysihtml5.dom),!function(t){var e=document.documentElement;"textContent"in e?(t.setTextContent=function(t,e){t.textContent=e},t.getTextContent=function(t){return t.textContent}):"innerText"in e?(t.setTextContent=function(t,e){t.innerText=e},t.getTextContent=function(t){return t.innerText}):(t.setTextContent=function(t,e){t.nodeValue=e},t.getTextContent=function(t){return t.nodeValue})}(wysihtml5.dom),wysihtml5.quirks.cleanPastedHTML=function(){var u={"a u":wysihtml5.dom.replaceWithChildNodes};return function(t,e,n){e=e||u,n=n||t.ownerDocument||document;var i,r,a,s,o="string"==typeof t,l=0,c=o?wysihtml5.dom.getAsDom(t,n):t;for(s in e)for(r=c.querySelectorAll(s),i=e[s],a=r.length;l 

    "!=t&&"

     

     

    "!=t||(e.innerHTML="")},0)}i.quirks.ensureProperClearing=function(t){a.observe(t.element,["cut","keydown"],e)},i.quirks.ensureProperClearingOfLists=(r=["OL","UL","MENU"],function(n){a.observe(n.element,"keydown",function(t){var e;t.keyCode===i.BACKSPACE_KEY&&(t=n.selection.getSelectedNode(),t=t,(e=n.element).firstChild)&&i.lang.array(r).contains(e.firstChild.nodeName)&&(t=a.getParentElement(t,{nodeName:r}))&&t==e.firstChild&&t.childNodes.length<=1&&(!t.firstChild||""===t.firstChild.innerHTML)&&t.parentNode.removeChild(t)})})}(wysihtml5),!function(o){o.quirks.getCorrectInnerHTML=function(t){var e=t.innerHTML;if(-1!==e.indexOf("%7E"))for(var n,i,r=t.querySelectorAll("[href*='~'], [src*='~']"),a=0,s=r.length;a'+l.INVISIBLE_SPACE+"
    ",o=this.getRange(this.doc);if(o){var s=o.createContextualFragment(s);o.insertNode(s);try{t(o.startContainer,o.endContainer)}catch(t){setTimeout(function(){throw t},0)}(caretPlaceholder=this.doc.querySelector("."+a))?((s=rangy.createRange(this.doc)).selectNode(caretPlaceholder),s.deleteContents(),this.setSelection(s)):n.focus(),e&&(n.scrollTop=i,n.scrollLeft=r);try{caretPlaceholder.parentNode.removeChild(caretPlaceholder)}catch(t){}}else t(n,n)},executeAndRestoreSimple:function(t){var e,n,i=this.getRange(),r=this.doc.body;if(i){n=(e=i.getNodes([3]))[0]||i.startContainer,e=e[e.length-1]||i.endContainer,n={collapsed:i.collapsed,startContainer:n,startOffset:n===i.startContainer?i.startOffset:0,endContainer:e,endOffset:e===i.endContainer?i.endOffset:e.length};try{t(i.startContainer,i.endContainer)}catch(t){setTimeout(function(){throw t},0)}e=rangy.createRange(this.doc);try{e.setStart(n.startContainer,n.startOffset)}catch(t){}try{e.setEnd(n.endContainer,n.endOffset)}catch(t){}try{this.setSelection(e)}catch(t){}}else t(r,r)},insertHTML:function(t){var t=rangy.createRange(this.doc).createContextualFragment(t),e=t.lastChild;this.insertNode(t),e&&this.setAfter(e)},insertNode:function(t){var e=this.getRange();e&&e.insertNode(t)},surround:function(e){var n=this.getRange();if(n)try{n.surroundContents(e),this.selectNode(e)}catch(t){e.appendChild(n.extractContents()),n.insertNode(e)}},scrollIntoView:function(){var t=this.doc,e=t.documentElement.scrollHeight>t.documentElement.offsetHeight,n=t._wysihtml5ScrollIntoViewElement=t._wysihtml5ScrollIntoViewElement||((n=t.createElement("span")).innerHTML=l.INVISIBLE_SPACE,n);e&&(this.insertNode(n),e=function(t){var e=0;if(t.parentNode)for(;e+=t.offsetTop||0,t=t.offsetParent;);return e}(n),n.parentNode.removeChild(n),e>t.body.scrollTop)&&(t.body.scrollTop=e)},selectLine:function(){l.browser.supportsSelectionModify()?this._selectLine_W3C():this.doc.selection&&this._selectLine_MSIE()},_selectLine_W3C:function(){var t=this.doc.defaultView.getSelection();t.modify("extend","left","lineboundary"),t.modify("extend","right","lineboundary")},_selectLine_MSIE:function(){var t,e,n,i,r,a=this.doc.selection.createRange(),s=a.boundingTop,o=(a.boundingHeight,this.doc.body.scrollWidth);if(a.moveToPoint){for(0===s&&(n=this.doc.createElement("span"),this.insertNode(n),s=n.offsetTop,n.parentNode.removeChild(n)),s+=1,i=-10;i",l=''+s.INVISIBLE_SPACE+"",c=s.dom;s.UndoManager=s.lang.Dispatcher.extend({constructor:function(t){this.editor=t,this.composer=t.composer,this.element=this.composer.element,this.history=[this.composer.getValue()],this.position=1,this.composer.commands.support("insertHTML")&&this._observe()},_observe:function(){var e,n,t,i,r=this,a=this.composer.sandbox.getDocument();c.observe(this.element,"keydown",function(t){var e,n;t.altKey||!t.ctrlKey&&!t.metaKey||(e=90===(n=t.keyCode)&&!t.shiftKey,n=90===n&&t.shiftKey||89===n,e?(r.undo(),t.preventDefault()):n&&(r.redo(),t.preventDefault()))}),c.observe(this.element,"keydown",function(t){t=t.keyCode;t===e||8!==(e=t)&&46!==t||r.transact()}),s.browser.hasUndoInContextMenu()&&(i=function(){for(var t,e=a;t=e.querySelector("._wysihtml5-temp");)t.parentNode.removeChild(t);clearInterval(n)},c.observe(this.element,"contextmenu",function(){i(),r.composer.selection.executeAndRestoreSimple(function(){r.element.lastChild&&r.composer.selection.setAfter(r.element.lastChild),a.execCommand("insertHTML",!1,o),a.execCommand("insertHTML",!1,l),a.execCommand("undo",!1,null)}),n=setInterval(function(){a.getElementById("_wysihtml5-redo")?(i(),r.redo()):a.getElementById("_wysihtml5-undo")||(i(),r.undo())},400),t||(t=!0,c.observe(document,"mousedown",i),c.observe(a,["mousedown","paste","cut","copy"],i))})),this.editor.observe("newword:composer",function(){r.transact()}).observe("beforecommand:composer",function(){r.transact()})},transact:function(){var t=this.history[this.position-1],e=this.composer.getValue();e!=t&&(40<(this.history.length=this.position)&&(this.history.shift(),this.position--),this.position++,this.history.push(e))},undo:function(){this.transact(),this.position<=1||(this.set(this.history[--this.position-1]),this.editor.fire("undo:composer"))},redo:function(){this.position>=this.history.length||(this.set(this.history[++this.position-1]),this.editor.fire("redo:composer"))},set:function(t){this.composer.setValue(t),this.editor.focus(!0)}})}(wysihtml5),wysihtml5.views.View=Base.extend({constructor:function(t,e,n){this.parent=t,this.element=e,this.config=n,this._observeViewChange()},_observeViewChange:function(){var e=this;this.parent.observe("beforeload",function(){e.parent.observe("change_view",function(t){t===e.name?((e.parent.currentView=e).show(),setTimeout(function(){e.focus()},0)):e.hide()})})},focus:function(){if(this.element.ownerDocument.querySelector(":focus")!==this.element)try{this.element.focus()}catch(t){}},hide:function(){this.element.style.display="none"},show:function(){this.element.style.display=""},disable:function(){this.element.setAttribute("disabled","disabled")},enable:function(){this.element.removeAttribute("disabled")}}),!function(l){var c=l.dom,n=l.browser;l.views.Composer=l.views.View.extend({name:"composer",CARET_HACK:"
    ",constructor:function(t,e,n){this.base(t,e,n),this.textarea=this.parent.textarea,this._initSandbox()},clear:function(){this.element.innerHTML=n.displaysCaretInEmptyContentEditableCorrectly()?"":this.CARET_HACK},getValue:function(t){var e=this.isEmpty()?"":l.quirks.getCorrectInnerHTML(this.element);return t&&(e=this.parent.parse(e)),e=l.lang.string(e).replace(l.INVISIBLE_SPACE).by("")},setValue:function(t,e){e&&(t=this.parent.parse(t)),this.element.innerHTML=t},show:function(){this.iframe.style.display=this._displayStyle||"",this.disable(),this.enable()},hide:function(){this._displayStyle=c.getStyle("display").from(this.iframe),"none"===this._displayStyle&&(this._displayStyle=null),this.iframe.style.display="none"},disable:function(){this.element.removeAttribute("contentEditable"),this.base()},enable:function(){this.element.setAttribute("contentEditable","true"),this.base()},focus:function(t){l.browser.doesAsyncFocus()&&this.hasPlaceholderSet()&&this.clear(),this.base();var e=this.element.lastChild;t&&e&&("BR"===e.nodeName?this.selection.setBefore(this.element.lastChild):this.selection.setAfter(this.element.lastChild))},getTextContent:function(){return c.getTextContent(this.element)},hasPlaceholderSet:function(){return this.getTextContent()==this.textarea.element.getAttribute("placeholder")},isEmpty:function(){var t=this.element.innerHTML;return""===t||t===this.CARET_HACK||this.hasPlaceholderSet()||""===this.getTextContent()&&!this.element.querySelector("blockquote, ul, ol, img, embed, object, table, iframe, svg, video, audio, button, input, select, textarea")},_initSandbox:function(){var t=this,e=(this.sandbox=new c.Sandbox(function(){t._create()},{stylesheets:this.config.stylesheets}),this.iframe=this.sandbox.getIframe(),document.createElement("input")),n=(e.type="hidden",e.name="_wysihtml5_mode",e.value=1,this.textarea.element);c.insert(this.iframe).after(n),c.insert(e).after(n)},_create:function(){var t=this,e=(this.doc=this.sandbox.getDocument(),this.element=this.doc.body,this.textarea=this.parent.textarea,this.element.innerHTML=this.textarea.getValue(!0),this.enable(),this.selection=new l.Selection(this.parent),this.commands=new l.Commands(this.parent),c.copyAttributes(["className","spellcheck","title","lang","dir","accessKey"]).from(this.textarea.element).to(this.element),c.addClass(this.element,this.config.composerClassName),this.config.style&&this.style(),this.observe(),this.config.name),e=(e&&(c.addClass(this.element,e),c.addClass(this.iframe,e)),"string"==typeof this.config.placeholder?this.config.placeholder:this.textarea.element.getAttribute("placeholder"));e&&c.simulatePlaceholder(this.parent,this,e),this.commands.exec("styleWithCSS",!1),this._initAutoLinking(),this._initObjectResizing(),this._initUndoManager(),!this.textarea.element.hasAttribute("autofocus")&&document.querySelector(":focus")!=this.textarea.element||setTimeout(function(){t.focus()},100),l.quirks.insertLineBreakOnReturn(this),n.clearsContentEditableCorrectly()||l.quirks.ensureProperClearing(this),n.clearsListsInContentEditableCorrectly()||l.quirks.ensureProperClearingOfLists(this),this.initSync&&this.config.sync&&this.initSync(),this.textarea.hide(),this.parent.fire("beforeload").fire("load")},_initAutoLinking:function(){var i,r,a,s=this,t=n.canDisableAutoLinking(),e=n.doesAutoLinkingInContentEditable();t&&this.commands.exec("autoUrlDetect",!1),this.config.autoLink&&(e&&!t||this.parent.observe("newword:composer",function(){s.selection.executeAndRestore(function(t,e){c.autoLink(e.parentNode)})}),i=this.sandbox.getDocument().getElementsByTagName("a"),r=c.autoLink.URL_REG_EXP,a=function(t){t=l.lang.string(c.getTextContent(t)).trim();return t="www."===t.substr(0,4)?"http://"+t:t},c.observe(this.element,"keydown",function(t){var e,n;i.length&&(t=s.selection.getSelectedNode(t.target.ownerDocument),e=c.getParentElement(t,{nodeName:"A"},4))&&(n=a(e),setTimeout(function(){var t=a(e);t!==n&&t.match(r)&&e.setAttribute("href",t)},0))}))},_initObjectResizing:function(){var a=["width","height"],s=a.length,o=this.element;this.commands.exec("enableObjectResizing",this.config.allowObjectResizing),this.config.allowObjectResizing?n.supportsEvent("resizeend")&&c.observe(o,"resizeend",function(t){for(var e,n=t.target||t.srcElement,i=n.style,r=0;r "+t.font_styles.normal+" "},emphasis:function(t,e){e=e&&e.size?" btn-"+e.size:"";return"
  • "},lists:function(t,e){e=e&&e.size?" btn-"+e.size:"";return"
  • "},link:function(t,e){e=e&&e.size?" btn-"+e.size:"";return"
  • "},image:function(t,e){e=e&&e.size?" btn-"+e.size:"";return"
  • "},html:function(t,e){return"
  • "},color:function(t,e){return""}},e=(n.prototype={constructor:n,createEditor:function(t){(t=t||{}).toolbar=this.toolbar[0];var e=new i.Editor(this.el[0],t);if(t&&t.events)for(var n in t.events)e.on(n,t.events[n]);return e},createToolbar:function(t,e){var n,i,r=this,a=l("
      ",{class:"wysihtml5-toolbar",style:"display:none"}),s=e.locale||u.locale||"en";for(n in u){var o=!1;void 0!==e[n]?!0===e[n]&&(o=!0):o=u[n],!0===o&&(a.append((o=n,i=h[s],c[o](i,e))),"html"===n&&this.initHtml(a),"link"===n&&this.initInsertLink(a),"image"===n)&&this.initInsertImage(a)}if(e.toolbar)for(n in e.toolbar)a.append(e.toolbar[n]);return a.find("a[data-wysihtml5-command='formatBlock']").click(function(t){t=t.target||t.srcElement,t=l(t);r.toolbar.find(".current-font").text(t.html())}),a.find("a[data-wysihtml5-command='foreColor']").click(function(t){t=t.target||t.srcElement,t=l(t);r.toolbar.find(".current-color").text(t.html())}),this.el.before(a),a},initHtml:function(e){var n="a[data-wysihtml5-action='change_view']";e.find(n).click(function(t){e.find("a.btn").not(n).toggleClass("disabled")})},initInsertImage:function(t){function e(){var t=r.val();r.val(s),n.editor.currentView.element.focus(),n.editor.composer.commands.exec("insertImage",t)}var n=this,i=t.find(".bootstrap-wysihtml5-insert-image-modal"),r=i.find(".bootstrap-wysihtml5-insert-image-url"),a=i.find("a.btn-primary"),s=r.val();r.keypress(function(t){13==t.which&&(e(),i.modal("hide"))}),a.click(e),i.on("shown",function(){r.focus()}),i.on("hide",function(){n.editor.currentView.element.focus()}),t.find("a[data-wysihtml5-command=insertImage]").click(function(){return!!l(this).hasClass("wysihtml5-command-active")||(i.modal("show"),i.on("click.dismiss.modal",'[data-dismiss="modal"]',function(t){t.stopPropagation()}),!1)})},initInsertLink:function(t){function e(){var t=r.val();r.val(s),n.editor.currentView.element.focus(),n.editor.composer.commands.exec("createLink",{href:t,target:"_blank",rel:"nofollow"})}var n=this,i=t.find(".bootstrap-wysihtml5-insert-link-modal"),r=i.find(".bootstrap-wysihtml5-insert-link-url"),a=i.find("a.btn-primary"),s=r.val();r.keypress(function(t){13==t.which&&(e(),i.modal("hide"))}),a.click(e),i.on("shown",function(){r.focus()}),i.on("hide",function(){n.editor.currentView.element.focus()}),t.find("a[data-wysihtml5-command=createLink]").click(function(){return!!l(this).hasClass("wysihtml5-command-active")||(i.appendTo("body").modal("show"),i.on("click.dismiss.modal",'[data-dismiss="modal"]',function(t){t.stopPropagation()}),!1)})}},{resetDefaults:function(){l.fn.wysihtml5.defaultOptions=l.extend(!0,{},l.fn.wysihtml5.defaultOptionsCache)},bypassDefaults:function(e){return this.each(function(){var t=l(this);t.data("wysihtml5",new n(t,e))})},shallowExtend:function(t){t=l.extend({},l.fn.wysihtml5.defaultOptions,t||{});return e.bypassDefaults.apply(this,[t])},deepExtend:function(t){t=l.extend(!0,{},l.fn.wysihtml5.defaultOptions,t||{});return e.bypassDefaults.apply(this,[t])},init:function(t){return e.shallowExtend.apply(this,[t])}}),u=(l.fn.wysihtml5=function(t){return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void l.error("Method "+t+" does not exist on jQuery.wysihtml5"):e.init.apply(this,arguments)},l.fn.wysihtml5.Constructor=n,l.fn.wysihtml5.defaultOptions={"font-styles":!0,color:!0,emphasis:!0,lists:!0,html:!1,link:!0,image:!0,events:{},parserRules:{classes:{"wysiwyg-color-silver":1,"wysiwyg-color-gray":1,"wysiwyg-color-white":1,"wysiwyg-color-maroon":1,"wysiwyg-color-red":1,"wysiwyg-color-purple":1,"wysiwyg-color-fuchsia":1,"wysiwyg-color-green":1,"wysiwyg-color-lime":1,"wysiwyg-color-olive":1,"wysiwyg-color-yellow":1,"wysiwyg-color-navy":1,"wysiwyg-color-blue":1,"wysiwyg-color-teal":1,"wysiwyg-color-aqua":1,"wysiwyg-color-orange":1},tags:{b:{},i:{},br:{},ol:{},ul:{},li:{},h1:{},h2:{},h3:{},blockquote:{},u:1,img:{check_attributes:{width:"numbers",alt:"alt",src:"url",height:"numbers"}},a:{set_attributes:{target:"_blank",rel:"nofollow"},check_attributes:{href:"url"}},span:1,div:1}},stylesheets:["./assets/plugins/bootstrap-wysihtml5/wysiwyg-color.css"],locale:"en"}),h=(void 0===l.fn.wysihtml5.defaultOptionsCache&&(l.fn.wysihtml5.defaultOptionsCache=l.extend(!0,{},l.fn.wysihtml5.defaultOptions)),l.fn.wysihtml5.locale={en:{font_styles:{normal:"Normal text",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6"},emphasis:{bold:"Bold",italic:"Italic",underline:"Underline"},lists:{unordered:"Unordered list",ordered:"Ordered list",outdent:"Outdent",indent:"Indent"},link:{insert:"Insert link",cancel:"Cancel"},image:{insert:"Insert image",cancel:"Cancel"},html:{edit:"Edit HTML"},colours:{black:"Black",silver:"Silver",gray:"Grey",maroon:"Maroon",red:"Red",purple:"Purple",green:"Green",olive:"Olive",navy:"Navy",blue:"Blue",orange:"Orange"}}})}(window.jQuery,window.wysihtml5),!function(w,_,C){"use strict";!function i(r,a,s){function o(n,t){if(!a[n]){if(!r[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}e=a[n]={exports:{}};r[n][0].call(e.exports,function(t){var e=r[n][1][t];return o(e||t)},e,e.exports,i,r,a,s)}return a[n].exports}for(var l="function"==typeof require&&require,t=0;t
      \n \n \n \n \n
      \n \n \n
      \n \n \n\n
      \n
      \n

      Title

      \n

      Text

      \n
      \n \n
      \n
      \n
      !
      \n

      Not valid!

      \n
      \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      ',e.exports=n.default},{}],8:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});var c=t("./utils"),u=t("./handle-swal-dom"),h=t("./handle-dom"),d=["error","warning","info","success","input","prompt"];n.default=function(r){var t,e,a=u.getModal(),n=a.querySelector("h2"),i=a.querySelector("p"),s=a.querySelector("button.cancel"),o=a.querySelector("button.confirm");if(n.innerHTML=r.html?r.title:h.escapeHtml(r.title).split("\n").join("
      "),i.innerHTML=r.html?r.text:h.escapeHtml(r.text||"").split("\n").join("
      "),r.text&&h.show(i),r.customClass?(h.addClass(a,r.customClass),a.setAttribute("data-custom-class",r.customClass)):(n=a.getAttribute("data-custom-class"),h.removeClass(a,n),a.setAttribute("data-custom-class","")),h.hide(a.querySelectorAll(".sa-icon")),r.type&&!c.isIE8()){var i=function(){for(var t=!1,e=0;e"),t.text||t.html){if("object"==typeof t.html)if(a.innerHTML="",0 in t.html)for(d=0;d in t.html;d++)a.appendChild(t.html[d]);else a.appendChild(t.html);else a.innerHTML=t.html||t.text.split("\n").join("
      ");O(a)}else M(a);if((t.showCloseButton?O:M)(o),e.className=k.modal,t.customClass&&$(e,t.customClass),M(e.querySelectorAll("."+k.icon)),t.type){var l,c=!1;for(l in k.iconTypes)if(t.type===l){c=!0;break}if(!c)return console.error("Unknown alert type: "+t.type),!1;var u=e.querySelector("."+k.icon+"."+k.iconTypes[t.type]);switch(O(u),t.type){case"success":$(u,"animate"),$(u.querySelector(".tip"),"animate-success-tip"),$(u.querySelector(".long"),"animate-success-long");break;case"error":$(u,"animate-error-icon"),$(u.querySelector(".x-mark"),"animate-x-mark");break;case"warning":$(u,"pulse-warning")}}r=e.querySelector("."+k.image);t.imageUrl?(r.setAttribute("src",t.imageUrl),O(r),t.imageWidth&&r.setAttribute("width",t.imageWidth),t.imageHeight&&r.setAttribute("height",t.imageHeight),t.imageClass&&$(r,t.imageClass)):M(r);for(var h=["input","select","radio","checkbox","textarea"],d=0;d',(t=document.createElement("div")).className=k.container,t.innerHTML=i,document.body.appendChild(t),i=A(),t=B(i,k.input),e=B(i,k.select),n=i.querySelector("#"+k.checkbox),i=B(i,k.textarea),t.oninput=function(){p.resetValidationError()},t.onkeyup=function(t){t.stopPropagation(),13===t.keyCode&&p.clickConfirm()},e.onchange=function(){p.resetValidationError()},n.onchange=function(){p.resetValidationError()},i.onchange=function(){p.resetValidationError()})},p.setDefaults=function(t){if(!t)throw new Error("userParams is required");if("object"!=typeof t)throw new Error("userParams has to be a object");s(e,t)},f.sweetAlert=f.swal=p,"complete"===document.readyState||"interactive"===document.readyState&&document.body?p.init():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),p.init()},!1):document.attachEvent&&document.attachEvent("onreadystatechange",function t(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",t),p.init())}),p}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function c(t){return"function"==typeof t}function e(){var t=setTimeout;return function(){return t(n,1)}}function n(){for(var t=0;t',e.attr("class")||"",m('title="%s"',e.attr("title")))),this.$choice=g(m(['"].join(""),this.options.placeholder)),this.$drop=g(m('
      ',this.options.position,m(' style="width: %s"',this.options.dropWidth))),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),this.$el.prop("disabled")&&this.$choice.addClass("disabled"),this.$parent.css("width",this.options.width||this.$el.css("width")||this.$el.outerWidth()+20),this.selectAllName='data-name="selectAll'+i+'"',this.selectGroupName='data-name="selectGroup'+i+'"',this.selectItemName='data-name="selectItem'+i+'"',this.options.keepOpen||g(document).click(function(t){g(t.target)[0]!==n.$choice[0]&&g(t.target).parents(".ms-choice")[0]!==n.$choice[0]&&(g(t.target)[0]===n.$drop[0]||g(t.target).parents(".ms-drop")[0]!==n.$drop[0]&&t.target!==e[0])&&n.options.isOpen&&n.close()})}o.prototype={constructor:o,init:function(){var n=this,i=g("
        ");this.$drop.html(""),this.options.filter&&this.$drop.append(['"].join("")),this.options.selectAll&&!this.options.single&&i.append(['
      • ',"","
      • "].join("")),g.each(this.$el.children(),function(t,e){i.append(n.optionToHtml(t,e))}),i.append(m('
      • %s
      • ',this.options.noMatchesFound)),this.$drop.append(i),this.$drop.find("ul").css("max-height",this.options.maxHeight+"px"),this.$drop.find(".multiple").css("width",this.options.multipleWidth+"px"),this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input["+this.selectAllName+"]"),this.$selectGroups=this.$drop.find("input["+this.selectGroupName+"]"),this.$selectItems=this.$drop.find("input["+this.selectItemName+"]:enabled"),this.$disableItems=this.$drop.find("input["+this.selectItemName+"]:disabled"),this.$noResults=this.$drop.find(".ms-no-results"),this.events(),this.updateSelectAll(!0),this.update(!0),this.options.isOpen&&this.open()},optionToHtml:function(t,e,n,i){var r,a,s,o,l,c,u=this,e=g(e),h=e.attr("class")||"",d=m('title="%s"',e.attr("title")),f=this.options.multiple?"multiple":"",p=this.options.single?"radio":"checkbox";return e.is("option")?(r=e.val(),a=u.options.textTemplate(e),s=e.prop("selected"),o=m('style="%s"',this.options.styler(r)),l=i||e.prop("disabled"),(i=g([m('
      • ',f,h,d,o),m('","
      • "].join(""))).find("input").val(r),i):e.is("optgroup")?(f=u.options.labelTemplate(e),c=g("
        "),n="group_"+t,l=e.prop("disabled"),c.append(['
      • ',m('","
      • "].join("")),g.each(e.children(),function(t,e){c.append(u.optionToHtml(t,e,n,l))}),c.html()):void 0},events:function(){function e(t){t.preventDefault(),n[n.options.isOpen?"close":"open"]()}var n=this;this.$label&&this.$label.off("click").on("click",function(t){"label"===t.target.nodeName.toLowerCase()&&t.target===this&&(e(t),n.options.filter&&n.options.isOpen||n.focus(),t.stopPropagation())}),this.$choice.off("click").on("click",e).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",function(t){27===t.which&&(n.close(),n.$choice.focus())}),this.$searchInput.off("keydown").on("keydown",function(t){9===t.keyCode&&t.shiftKey&&n.close()}).off("keyup").on("keyup",function(t){n.options.filterAcceptOnEnter&&(13===t.which||32==t.which)&&n.$searchInput.val()?(n.$selectAll.click(),n.close(),n.focus()):n.filter()}),this.$selectAll.off("click").on("click",function(){var t=g(this).prop("checked"),e=n.$selectItems.filter(":visible");e.length===n.$selectItems.length?n[t?"checkAll":"uncheckAll"]():(n.$selectGroups.prop("checked",t),e.prop("checked",t),n.options[t?"onCheckAll":"onUncheckAll"](),n.update())}),this.$selectGroups.off("click").on("click",function(){var t=g(this).parent().attr("data-group"),t=n.$selectItems.filter(":visible").filter(m('[data-group="%s"]',t)),e=t.length!==t.filter(":checked").length;t.prop("checked",e),n.updateSelectAll(),n.update(),n.options.onOptgroupClick({label:g(this).parent().text(),checked:e,children:t.get(),instance:n})}),this.$selectItems.off("click").on("click",function(){var t;n.updateSelectAll(),n.update(),n.updateOptGroupSelect(),n.options.onClick({label:g(this).parent().text(),value:g(this).val(),checked:g(this).prop("checked"),instance:n}),n.options.single&&n.options.isOpen&&!n.options.keepOpen&&n.close(),n.options.single&&(t=g(this).val(),n.$selectItems.filter(function(){return g(this).val()!==t}).each(function(){g(this).prop("checked",!1)}),n.update())})},open:function(){var t;this.$choice.hasClass("disabled")||(this.options.isOpen=!0,this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.$el.children().length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container&&(t=this.$drop.offset(),this.$drop.appendTo(g(this.options.container)),this.$drop.offset({top:t.top,left:t.left})),this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter()),this.options.onOpen())},close:function(){this.options.isOpen=!1,this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()},animateMethod:function(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t},update:function(t){var e=this.options.displayValues?this.getSelects():this.getSelects("text"),n=this.$choice.find(">span"),i=e.length;0===i?n.addClass("placeholder").html(this.options.placeholder):this.options.allSelected&&i===this.$selectItems.length+this.$disableItems.length?n.removeClass("placeholder").html(this.options.allSelected):this.options.ellipsis&&i>this.options.minimumCountSelected?n.removeClass("placeholder").text(e.slice(0,this.options.minimumCountSelected).join(this.options.delimiter)+"..."):this.options.countSelected&&i>this.options.minimumCountSelected?n.removeClass("placeholder").html(this.options.countSelected.replace("#",e.length).replace("%",this.$selectItems.length+this.$disableItems.length)):n.removeClass("placeholder").text(e.join(this.options.delimiter)),this.options.addTitle&&n.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()).trigger("change"),this.$drop.find("li").removeClass("selected"),this.$drop.find("input:checked").each(function(){g(this).parents("li").first().addClass("selected")}),t||this.$el.trigger("change")},updateSelectAll:function(t){var e=this.$selectItems;t||(e=e.filter(":visible")),this.$selectAll.prop("checked",e.length&&e.length===e.filter(":checked").length),!t&&this.$selectAll.prop("checked")&&this.options.onCheckAll()},updateOptGroupSelect:function(){var i=this.$selectItems.filter(":visible");g.each(this.$selectGroups,function(t,e){var n=g(e).parent().attr("data-group"),n=i.filter(m('[data-group="%s"]',n));g(e).prop("checked",n.length&&n.length===n.filter(":checked").length)})},getSelects:function(t){var a=this,s=[],e=[];return this.$drop.find(m("input[%s]:checked",this.selectItemName)).each(function(){s.push(g(this).parents("li").first().text()),e.push(g(this).val())}),"text"===t&&this.$selectGroups.length&&(s=[],this.$selectGroups.each(function(){var t,e=[],n=g.trim(g(this).parent().text()),i=g(this).parent().data("group"),i=a.$drop.find(m('[%s][data-group="%s"]',a.selectItemName,i)),r=i.filter(":checked");r.length&&(e.push("["),e.push(n),i.length>r.length&&(t=[],r.each(function(){t.push(g(this).parent().text())}),e.push(": "+t.join(", "))),e.push("]"),s.push(e.join("")))})),"text"===t?s:e},setSelects:function(t){var i=this;this.$selectItems.prop("checked",!1),this.$disableItems.prop("checked",!1),g.each(t,function(t,e){i.$selectItems.filter(m('[value="%s"]',e)).prop("checked",!0),i.$disableItems.filter(m('[value="%s"]',e)).prop("checked",!0)}),this.$selectAll.prop("checked",this.$selectItems.length===this.$selectItems.filter(":checked").length+this.$disableItems.filter(":checked").length),g.each(i.$selectGroups,function(t,e){var n=g(e).parent().attr("data-group"),n=i.$selectItems.filter('[data-group="'+n+'"]');g(e).prop("checked",n.length&&n.length===n.filter(":checked").length)}),this.update()},enable:function(){this.$choice.removeClass("disabled")},disable:function(){this.$choice.addClass("disabled")},checkAll:function(){this.$selectItems.prop("checked",!0),this.$selectGroups.prop("checked",!0),this.$selectAll.prop("checked",!0),this.update(),this.options.onCheckAll()},uncheckAll:function(){this.$selectItems.prop("checked",!1),this.$selectGroups.prop("checked",!1),this.$selectAll.prop("checked",!1),this.update(),this.options.onUncheckAll()},focus:function(){this.$choice.focus(),this.options.onFocus()},blur:function(){this.$choice.blur(),this.options.onBlur()},refresh:function(){this.init()},filter:function(){var n=this,e=g.trim(this.$searchInput.val()).toLowerCase();0===e.length?(this.$selectAll.parent().show(),this.$selectItems.parent().show(),this.$disableItems.parent().show(),this.$selectGroups.parent().show(),this.$noResults.hide()):(this.$selectItems.each(function(){var t=g(this).parent();t[i(t.text().toLowerCase()).indexOf(i(e))<0?"hide":"show"]()}),this.$disableItems.parent().hide(),this.$selectGroups.each(function(){var t=g(this).parent(),e=t.attr("data-group");t[n.$selectItems.filter(":visible").filter(m('[data-group="%s"]',e)).length?"show":"hide"]()}),this.$selectItems.parent().filter(":visible").length?(this.$selectAll.parent().show(),this.$noResults.hide()):(this.$selectAll.parent().hide(),this.$noResults.show())),this.updateOptGroupSelect(),this.updateSelectAll(),this.options.onFilter(e)}},g.fn.multipleSelect=function(){var i,r=arguments[0],a=arguments,s=["getSelects","setSelects","enable","disable","open","close","checkAll","uncheckAll","focus","blur","refresh","close"];return this.each(function(){var t=g(this),e=t.data("multipleSelect"),n=g.extend({},g.fn.multipleSelect.defaults,t.data(),"object"==typeof r&&r);if(e||(e=new o(t,n),t.data("multipleSelect",e)),"string"==typeof r){if(g.inArray(r,s)<0)throw"Unknown method: "+r;i=e[r](a[1])}else e.init(),a[1]&&(i=e[a[1]].apply(e,[].slice.call(a,2)))}),void 0!==i?i:this},g.fn.multipleSelect.defaults={name:"",isOpen:!1,placeholder:"",selectAll:!0,selectAllDelimiter:["[","]"],minimumCountSelected:3,ellipsis:!1,multiple:!1,multipleWidth:80,single:!1,filter:!1,width:void 0,dropWidth:void 0,maxHeight:250,container:null,position:"bottom",keepOpen:!1,animate:"none",displayValues:!1,delimiter:", ",addTitle:!1,filterAcceptOnEnter:!1,hideOptgroupCheckboxes:!1,selectAllText:"Select all",allSelected:"All selected",countSelected:"# of % selected",noMatchesFound:"No matches found",styler:function(){return!1},textTemplate:function(t){return t.html()},labelTemplate:function(t){return t.attr("label")},onOpen:function(){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onClick:function(){return!1},onFilter:function(){return!1}}}(jQuery),angular.module("dndLists",[]).directive("dndDraggable",["$parse","$timeout","dndDropEffectWorkaround","dndDragTypeWorkaround",function(a,s,o,l){return function(n,i,r){i.attr("draggable","true"),r.dndDisableIf&&n.$watch(r.dndDisableIf,function(t){i.attr("draggable",!t)}),i.on("dragstart",function(t){if(t=t.originalEvent||t,"false"==i.attr("draggable"))return!0;t.dataTransfer.setData("Text",angular.toJson(n.$eval(r.dndDraggable))),t.dataTransfer.effectAllowed=r.dndEffectAllowed||"move",i.addClass("dndDragging"),s(function(){i.addClass("dndDraggingSource")},0),o.dropEffect="none",l.isDragging=!0,l.dragType=r.dndType?n.$eval(r.dndType):void 0,t._dndHandle&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(i[0],0,0),a(r.dndDragstart)(n,{event:t}),t.stopPropagation()}),i.on("dragend",function(t){t=t.originalEvent||t;var e=o.dropEffect;n.$apply(function(){switch(e){case"move":a(r.dndMoved)(n,{event:t});break;case"copy":a(r.dndCopied)(n,{event:t});break;case"none":a(r.dndCanceled)(n,{event:t})}a(r.dndDragend)(n,{event:t,dropEffect:e})}),i.removeClass("dndDragging"),s(function(){i.removeClass("dndDraggingSource")},0),l.isDragging=!1,t.stopPropagation()}),i.on("click",function(t){r.dndSelected&&(t=t.originalEvent||t,n.$apply(function(){a(r.dndSelected)(n,{event:t})}),t.stopPropagation())}),i.on("selectstart",function(){this.dragDrop&&this.dragDrop()})}}]).directive("dndList",["$parse","$timeout","dndDropEffectWorkaround","dndDragTypeWorkaround",function(g,m,v,b){return function(r,n,a){angular.forEach(n.children(),function(t){t=angular.element(t);t.hasClass("dndPlaceholder")&&(e=t)});var e,i=e||angular.element("
      • "),s=i[0],o=n[0],l=(i.remove(),a.dndHorizontalList&&r.$eval(a.dndHorizontalList)),c=a.dndExternalSources&&r.$eval(a.dndExternalSources);function u(t,e,n){var t=l?t.offsetX||t.layerX:t.offsetY||t.layerY,i=l?e.offsetWidth:e.offsetHeight,e=l?e.offsetLeft:e.offsetTop;return t<(n?e:0)+i/2}function h(){return Array.prototype.indexOf.call(o.children,s)}function d(t){if((b.isDragging||c)&&function(t){if(!t)return 1;for(var e=0;e *").css("top",r),o.foot&&this.find("tfoot tr > *").css("bottom",n-i-r),0 *")),t.css({position:"relative"})),1==o.foot&&((t=l(o.table).find("tfoot")).find("tr"),n(t=t.find("tr > *")),t.css({position:"relative"})),0 *:nth-child("+a+")"),s=a.prop("colspan");a.cellPos().left *:nth-last-child("+a+")"),s=a.prop("colspan");e(a),i=s}}}}(jQuery),!function(l){l.fn.cellPos=function(t){var o,e=this.first();return e.data("cellPos")&&!t||(t=e.closest("table, thead, tbody, tfoot"),o=[],t.children("tr").each(function(s,t){l(t).children("td, th").each(function(t,e){for(var n,i,e=l(e),r=0|e.attr("colspan")||1,a=0|e.attr("rowspan")||1;o[s]&&o[s][t];++t);for(n=t;n",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},a.types={},a.helpers={}),d=h.each=function(t,e,n){var i=Array.prototype.slice.call(arguments,3);if(t)if(t.length===+t.length)for(var r=0;r)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):n[t],e)?t(e):t}),x=(h.generateLabels=function(n,t,i,r){var a=new Array(t);return labelTemplateString&&d(a,function(t,e){a[e]=S(n,{value:i+r*(e+1)})}),a},h.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t=+t-1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=+t-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return(t/=1)*t*t*t*t},easeOutQuint:function(t){return(t=+t-1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(+t*(Math.PI/2))+1},easeOutSine:function(t){return+Math.sin(+t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?1:+Math.pow(2,10*(+t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return+Math.sqrt(1-(t=+t-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n=n||.3,e=ithis.chart.width/2?i:t,y:(r+n)/2}}.call(this,l);new a.MultiTooltip({x:e.x,y:e.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:c,legendColors:u,legendColorBackground:this.options.multiTooltipKeyBackground,title:t[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else d(t,function(t){var e=t.tooltipPosition();new a.Tooltip({x:Math.round(e.x),y:Math.round(e.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:S(this.options.tooltipTemplate,t),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),a.Type.extend=function(t){function n(){return r.apply(this,arguments)}var i,e,r=this;return n.prototype=s(r.prototype),o(n.prototype,t),n.extend=a.Type.extend,t.name||r.prototype.name?(i=t.name||r.prototype.name,e=a.defaults[r.prototype.name]?s(a.defaults[r.prototype.name]):{},a.defaults[i]=o(e,t.defaults),a.types[i]=n,a.prototype[i]=function(t,e){e=l(a.defaults.global,a.defaults[i],e||{});return new n(t,e,this)}):p("Name not provided for this chart, so it hasn't been registered"),r},o((a.Element=function(t){o(this,t),this.initialize.apply(this,arguments),this.save()}).prototype,{initialize:function(){},restore:function(t){return t?d(t,function(t){this[t]=this._saved[t]},this):o(this,this._saved),this},save:function(){return this._saved=s(this),delete this._saved._saved,this},update:function(t){return d(t,function(t,e){this._saved[e]=this[e],this[e]=t},this),this},transition:function(t,n){return d(t,function(t,e){this[e]=(t-this._saved[e])*n+this._saved[e]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return m(this.value)}}),a.Element.extend=c,a.Point=a.Element.extend({display:!0,inRange:function(t,e){var n=this.hitDetectionRadius+this.radius;return Math.pow(t-this.x,2)+Math.pow(e-this.y,2)=this.startAngle&&t.angle<=this.endAngle,t=t.distance>=this.innerRadius&&t.distance<=this.outerRadius;return e&&t},tooltipPosition:function(){var t=this.startAngle+(this.endAngle-this.startAngle)/2,e=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(t)*e,y:this.y+Math.sin(t)*e}},draw:function(t){var e=this.ctx;e.beginPath(),e.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),e.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),e.closePath(),e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.fillStyle=this.fillColor,e.fill(),e.lineJoin="bevel",this.showStroke&&e.stroke()}}),a.Rectangle=a.Element.extend({draw:function(){var t=this.ctx,e=this.width/2,n=this.x-e,e=this.x+e,i=this.base-(this.base-this.y),r=this.strokeWidth/2;this.showStroke&&(n+=r,e-=r,i+=r),t.beginPath(),t.fillStyle=this.fillColor,t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.moveTo(n,this.base),t.lineTo(n,i),t.lineTo(e,i),t.lineTo(e,this.base),t.fill(),this.showStroke&&t.stroke()},height:function(){return this.base-this.y},inRange:function(t,e){return t>=this.x-this.width/2&&t<=this.x+this.width/2&&e>=this.y&&e<=this.base}}),a.Tooltip=a.Element.extend({draw:function(){var t=this.chart.ctx,e=(t.font=B(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above",this.caretPadding=2,t.measureText(this.text).width+2*this.xPadding),n=this.fontSize+2*this.yPadding,i=n+this.caretHeight+2,r=(this.x+e/2>this.chart.width?this.xAlign="left":this.x-e/2<0&&(this.xAlign="right"),this.y-i<0&&(this.yAlign="below"),this.x-e/2),a=this.y-i;if(t.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":t.beginPath(),t.moveTo(this.x,this.y-2),t.lineTo(this.x+this.caretHeight,this.y-(2+this.caretHeight)),t.lineTo(this.x-this.caretHeight,this.y-(2+this.caretHeight)),t.closePath(),t.fill();break;case"below":a=this.y+2+this.caretHeight,t.beginPath(),t.moveTo(this.x,this.y+2),t.lineTo(this.x+this.caretHeight,this.y+2+this.caretHeight),t.lineTo(this.x-this.caretHeight,this.y+2+this.caretHeight),t.closePath(),t.fill()}switch(this.xAlign){case"left":r=this.x-e+(this.cornerRadius+this.caretHeight);break;case"right":r=this.x-(this.cornerRadius+this.caretHeight)}M(t,r,a,e,n,this.cornerRadius),t.fill(),t.fillStyle=this.textColor,t.textAlign="center",t.textBaseline="middle",t.fillText(this.text,r+e/2,a+n/2)}}}),a.MultiTooltip=a.Element.extend({initialize:function(){this.font=B(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=B(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var t=this.ctx.measureText(this.title).width,e=O(this.ctx,this.font,this.labels)+this.fontSize+3,e=v([e,t]),t=(this.width=e+2*this.xPadding,this.height/2);this.y-t<0?this.y=t:this.y+t>this.chart.height&&(this.y=this.chart.height-t),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(t){var e=this.y-this.height/2+this.yPadding;return 0===t?e+this.titleFontSize/2:e+(1.5*this.fontSize*(t-1)+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){var n;this.custom?this.custom(this):(M(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius),(n=this.ctx).fillStyle=this.fillColor,n.fill(),n.closePath(),n.textAlign="left",n.textBaseline="middle",n.fillStyle=this.titleTextColor,n.font=this.titleFont,n.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),n.font=this.font,h.each(this.labels,function(t,e){n.fillStyle=this.textColor,n.fillText(t,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(e+1)),n.fillStyle=this.legendColorBackground,n.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize),n.fillStyle=this.legendColors[e].fill,n.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize)},this))}}),a.Scale=a.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var t=y(this.stepValue),e=0;e<=this.steps;e++)this.yLabels.push(S(this.templateString,{value:(this.min+e*this.stepValue).toFixed(t)}));this.yLabelWidth=this.display&&this.showLabels?O(this.ctx,this.font,this.yLabels):0},addXLabel:function(t){this.xLabels.push(t),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var t,e=this.endPoint-this.startPoint;for(this.calculateYRange(e),this.buildYLabels(),this.calculateXLabelRotation();e>this.endPoint-this.startPoint;)e=this.endPoint-this.startPoint,t=this.yLabelWidth,this.calculateYRange(e),this.buildYLabels(),tthis.yLabelWidth+10?e/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var i,r=O(this.ctx,this.font,this.xLabels);this.xLabelWidth=r;for(var a=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>a&&0===this.xLabelRotation||this.xLabelWidth>a&&this.xLabelRotation<=90&&0this.yLabelWidth+8&&(this.xScalePaddingLeft=t+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=i*r;0h&&(h=t.x+i,r=e),t.x-ih&&(h=t.x+n,r=e):e>this.valuesCount/2&&t.x-n<% for (var i=0; i
      • <%if(datasets[i].label){%><%=datasets[i].label%><%}%>
      • <%}%>
      '},initialize:function(r){var a=this.options;this.ScaleClass=t.Scale.extend({offsetGridLines:!0,calculateBarX:function(t,e,n){var i=this.calculateBaseWidth(),n=this.calculateX(n)-i/2,i=this.calculateBarWidth(t);return n+i*e+e*a.barDatasetSpacing+i/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*a.barValueSpacing},calculateBarWidth:function(t){return(this.calculateBaseWidth()-(t-1)*a.barDatasetSpacing)/t}}),this.datasets=[],this.options.showTooltips&&s.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getBarsAtEvent(t):[];this.eachBars(function(t){t.restore(["fillColor","strokeColor"])}),s.each(t,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(t)}),this.BarClass=t.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),s.each(r.datasets,function(n){var i={label:n.label||null,fillColor:n.fillColor,strokeColor:n.strokeColor,bars:[]};this.datasets.push(i),s.each(n.data,function(t,e){i.bars.push(new this.BarClass({value:t,label:r.labels[e],datasetLabel:n.label,strokeColor:n.strokeColor,fillColor:n.fillColor,highlightFill:n.highlightFill||n.fillColor,highlightStroke:n.highlightStroke||n.strokeColor}))},this)},this),this.buildScale(r.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(t,e,n){s.extend(t,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,n,e),y:this.scale.endPoint}),t.save()},this),this.render()},update:function(){this.scale.update(),s.each(this.activeElements,function(t){t.restore(["fillColor","strokeColor"])}),this.eachBars(function(t){t.save()}),this.render()},eachBars:function(n){s.each(this.datasets,function(t,e){s.each(t.bars,n,this,e)},this)},getBarsAtEvent:function(t){for(var e,n=[],i=s.getRelativePosition(t),r=function(t){n.push(t.bars[e])},a=0;a<% for (var i=0; i
    • <%if(segments[i].label){%><%=segments[i].label%><%}%>
    • <%}%>'};e.Type.extend({name:"Doughnut",defaults:t,initialize:function(t){this.segments=[],this.outerRadius=(i.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=e.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&i.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];i.each(this.segments,function(t){t.restore(["fillColor"])}),i.each(t,function(t){t.fillColor=t.highlightColor}),this.showTooltip(t)}),this.calculateTotal(t),i.each(t,function(t,e){this.addData(t,e,!0)},this),this.render()},getSegmentsAtEvent:function(t){var e=[],n=i.getRelativePosition(t);return i.each(this.segments,function(t){t.inRange(n.x,n.y)&&e.push(t)},this),e},addData:function(t,e,n){e=e||this.segments.length;this.segments.splice(e,0,new this.SegmentArc({value:t.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:t.color,highlightColor:t.highlight||t.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(t.value),label:t.label})),n||(this.reflow(),this.update())},calculateCircumference:function(t){return 2*Math.PI*(t/this.total)},calculateTotal:function(t){this.total=0,i.each(t,function(t){this.total+=t.value},this)},update:function(){this.calculateTotal(this.segments),i.each(this.activeElements,function(t){t.restore(["fillColor"])}),i.each(this.segments,function(t){t.save()}),this.render()},removeData:function(t){t=i.isNumber(t)?t:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},reflow:function(){i.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(i.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,i.each(this.segments,function(t){t.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(t){var n=t||1;this.clear(),i.each(this.segments,function(t,e){t.transition({circumference:this.calculateCircumference(t.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},n),t.endAngle=t.startAngle+t.circumference,t.draw(),0===e&&(t.startAngle=1.5*Math.PI),e<% for (var i=0; i
    • <%if(datasets[i].label){%><%=datasets[i].label%><%}%>
    • <%}%>'},initialize:function(r){this.PointClass=e.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(t){return Math.pow(t-this.x,2)this.scale.endPoint?t.controlPoints.outer.y=this.scale.endPoint:t.controlPoints.outer.ythis.scale.endPoint?t.controlPoints.inner.y=this.scale.endPoint:t.controlPoints.inner.y<% for (var i=0; i
    • <%if(segments[i].label){%><%=segments[i].label%><%}%>
    • <%}%>'},initialize:function(t){this.segments=[],this.SegmentArc=e.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new e.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:t.length}),this.updateScaleRange(t),this.scale.update(),i.each(t,function(t,e){this.addData(t,e,!0)},this),this.options.showTooltips&&i.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];i.each(this.segments,function(t){t.restore(["fillColor"])}),i.each(t,function(t){t.fillColor=t.highlightColor}),this.showTooltip(t)}),this.render()},getSegmentsAtEvent:function(t){var e=[],n=i.getRelativePosition(t);return i.each(this.segments,function(t){t.inRange(n.x,n.y)&&e.push(t)},this),e},addData:function(t,e,n){e=e||this.segments.length;this.segments.splice(e,0,new this.SegmentArc({fillColor:t.color,highlightColor:t.highlight||t.color,label:t.label,value:t.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(t.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),n||(this.reflow(),this.update())},removeData:function(t){t=i.isNumber(t)?t:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},calculateTotal:function(t){this.total=0,i.each(t,function(t){this.total+=t.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(t){var e=[],t=(i.each(t,function(t){e.push(t.value)}),this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:i.calculateScaleRange(e,i.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly));i.extend(this.scale,t,{size:i.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),i.each(this.segments,function(t){t.save()}),this.render()},reflow:function(){i.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),i.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),i.each(this.segments,function(t){t.update({outerRadius:this.scale.calculateCenterOffset(t.value)})},this)},draw:function(t){var n=t||1;this.clear(),i.each(this.segments,function(t,e){t.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(t.value)},n),t.endAngle=t.startAngle+t.circumference,0===e&&(t.startAngle=1.5*Math.PI),e<% for (var i=0; i
    • <%if(datasets[i].label){%><%=datasets[i].label%><%}%>
    • <%}%>'},initialize:function(a){this.PointClass=e.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(a),this.options.showTooltips&&s.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),s.each(t,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(t)}),s.each(a.datasets,function(i){var r={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(r),s.each(i.data,function(t,e){var n;this.scale.animation||(n=this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t))),r.points.push(new this.PointClass({value:t,label:a.labels[e],datasetLabel:i.label,x:this.options.animation?this.scale.xCenter:n.x,y:this.options.animation?this.scale.yCenter:n.y,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(e){s.each(this.datasets,function(t){s.each(t.points,e,this)},this)},getPointsAtEvent:function(t){var t=s.getRelativePosition(t),t=s.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},t),e=2*Math.PI/this.scale.valuesCount,n=Math.round((t.angle-1.5*Math.PI)/e),i=[];return(n>=this.scale.valuesCount||n<0)&&(n=0),t.distance<=this.scale.drawingArea&&s.each(this.datasets,function(t){i.push(t.points[n])}),i},buildScale:function(t){this.scale=new e.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:t.labels,valuesCount:t.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(t.datasets),this.scale.buildYLabels()},updateScaleRange:function(t){e=[],s.each(t,function(t){t.data?e=e.concat(t.data):s.each(t.points,function(t){e.push(t.value)})});var e,t=e,t=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:s.calculateScaleRange(t,s.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);s.extend(this.scale,t)},addData:function(t,i){this.scale.valuesCount++,s.each(t,function(t,e){var n=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(t));this.datasets[e].points.push(new this.PointClass({value:t,label:i,x:n.x,y:n.y,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.labels.push(i),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),s.each(this.datasets,function(t){t.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(t){t.save()}),this.reflow(),this.render()},reflow:function(){s.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:s.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(t){var n=t||1,i=this.chart.ctx;this.clear(),this.scale.draw(),s.each(this.datasets,function(t){s.each(t.points,function(t,e){t.hasValue()&&t.transition(this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t.value)),n)},this),i.lineWidth=this.options.datasetStrokeWidth,i.strokeStyle=t.strokeColor,i.beginPath(),s.each(t.points,function(t,e){0===e?i.moveTo(t.x,t.y):i.lineTo(t.x,t.y)},this),i.closePath(),i.stroke(),i.fillStyle=t.fillColor,i.fill(),s.each(t.points,function(t){t.hasValue()&&t.draw()})},this)}})}.call(this),!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function i(r,a,s){function o(n,t){if(!a[n]){if(!r[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}e=a[n]={exports:{}};r[n][0].call(e.exports,function(t){var e=r[n][1][t];return o(e||t)},e,e.exports,i,r,a,s)}return a[n].exports}for(var l="function"==typeof require&&require,t=0;t=n.y-n.height/2&&e<=n.y+n.height/2&&t>=n.x&&t<=n.base:e>=n.y-n.height/2&&e<=n.y+n.height/2&&t>=n.base&&t<=n.x:i}}),t.pivot()},calculateBarBase:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.xAxisID),r=0;if(i.options.stacked){for(var a=this.chart,s=a.data.datasets,o=Number(s[t].data[e]),l=0;l'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var r=0;r'),i[r]&&e.push(i[r]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(o){var l=o.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=o.getDatasetMeta(0),i=l.datasets[0],r=n.data[e],r=r&&r.custom||{},a=b.getValueAtIndexOrDefault,s=o.options.elements.arc;return{text:t,fillStyle:r.backgroundColor||a(i.backgroundColor,e,s.backgroundColor),strokeStyle:r.borderColor||a(i.borderColor,e,s.borderColor),lineWidth:r.borderWidth||a(i.borderWidth,e,s.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,r=this.chart,a=0,s=(r.data.datasets||[]).length;a=Math.PI?-1:h<-Math.PI?1:0))+v,o=Math.cos(h),t=Math.sin(h),e=Math.cos(v),i=Math.sin(v),s=h<=0&&0<=v||h<=2*Math.PI&&2*Math.PI<=v,r=h<=.5*Math.PI&&.5*Math.PI<=v||h<=2.5*Math.PI&&2.5*Math.PI<=v,a=h<=-Math.PI&&-Math.PI<=v||h<=Math.PI&&Math.PI<=v,h=h<=.5*-Math.PI&&.5*-Math.PI<=v||h<=1.5*Math.PI&&1.5*Math.PI<=v,v=m/100,a=a?-1:Math.min(o*(o<0?1:v),e*(e<0?1:v)),h=h?-1:Math.min(t*(t<0?1:v),i*(i<0?1:v)),s=s?1:Math.max(o*(0'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var r=0;r'),i[r]&&e.push(i[r]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(o){var l=o.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=o.getDatasetMeta(0),i=l.datasets[0],r=n.data[e].custom||{},a=b.getValueAtIndexOrDefault,s=o.options.elements.arc;return{text:t,fillStyle:r.backgroundColor||a(i.backgroundColor,e,s.backgroundColor),strokeStyle:r.borderColor||a(i.borderColor,e,s.borderColor),lineWidth:r.borderWidth||a(i.borderWidth,e,s.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,r=this.chart,a=0,s=(r.data.datasets||[]).length;at.animations[i].animationObject.numSteps&&(t.animations[i].animationObject.currentStep=t.animations[i].animationObject.numSteps),t.animations[i].animationObject.render(t.animations[i].chartInstance,t.animations[i].animationObject),t.animations[i].animationObject.onAnimationProgress&&t.animations[i].animationObject.onAnimationProgress.call&&t.animations[i].animationObject.onAnimationProgress.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].animationObject.currentStep===t.animations[i].animationObject.numSteps?(t.animations[i].animationObject.onAnimationComplete&&t.animations[i].animationObject.onAnimationComplete.call&&t.animations[i].animationObject.onAnimationComplete.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].chartInstance.animating=!1,t.animations.splice(i,1)):++i;e=(Date.now()-e)/t.frameDuration;t.dropFrames+=e,0=r[i].length||!r[i][e].type?r[i].push(u.configMerge(n,t)):t.type&&t.type!==r[i][e].type?r[i][e]=u.configMerge(r[i][e],n,t):r[i][e]=u.configMerge(r[i][e],t)}):(r[i]=[],u.each(t,function(t){var e=u.getValueOrDefault(t.type,"xAxes"===i?"category":"linear");r[i].push(u.configMerge(a.scaleService.getScaleDefaults(e),t))})):r.hasOwnProperty(i)&&"object"==typeof r[i]&&null!==r[i]&&"object"==typeof t?r[i]=u.configMerge(r[i],t):r[i]=t}),r},getValueAtIndexOrDefault:function(t,e,n){return null==t?n:u.isArray(t)?e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},u.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},u.niceNum=function(t,e){var n=Math.floor(u.log10(t)),t=t/Math.pow(10,n);return(e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10)*Math.pow(10,n)},u.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t=+t-1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=+t-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return(t/=1)*t*t*t*t},easeOutQuint:function(t){return(t=+t-1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(+t*(Math.PI/2))+1},easeOutSine:function(t){return+Math.sin(+t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?1:+Math.pow(2,10*(+t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return+Math.sqrt(1-(t=+t-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n=n||.3,e=in.length){for(var l=0;le&&(e=t.length)}),e},u.drawRoundedRectangle=function(t,e,n,i,r,a){t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+i-a,n),t.quadraticCurveTo(e+i,n,e+i,n+a),t.lineTo(e+i,n+r-a),t.quadraticCurveTo(e+i,n+r,e+i-a,n+r),t.lineTo(e+a,n+r),t.quadraticCurveTo(e,n+r,e,n+r-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath()},u.color=function(t){return i?i(t instanceof CanvasGradient?a.defaults.global.defaultColor:t):(console.log("Color.js not found!"),t)},u.addResizeListener=function(t,e){var n=document.createElement("iframe"),i="chartjs-hidden-iframe",i=(n.classlist?n.classlist.add(i):n.setAttribute("class",i),n.style);i.width="100%",i.display="block",i.border=0,i.height=0,i.margin=0,i.position="absolute",i.left=0,i.right=0,i.top=0,i.bottom=0,t.insertBefore(n,t.firstChild),(n.contentWindow||n).onresize=function(){e&&e()}},u.removeResizeListener=function(t){t=t.querySelector(".chartjs-hidden-iframe");t&&t.parentNode.removeChild(t)},u.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},u.arrayEquals=function(t,e){var n,i,r,a;if(!t||!e||t.length!=e.length)return!1;for(n=0,i=t.length;n');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}},r.Chart=r}},{}],28:[function(t,e,n){"use strict";e.exports=function(t){var k=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(e,n,t){function i(e){var t,n=k.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:b,right:y,top:0,bottom:0},e.update(e.options.fullWidth?u:g,h/2,t)):e.update(n.minSize.width,m))}function r(t){t.isHorizontal()?(t.left=t.options.fullWidth?0:b,t.right=t.options.fullWidth?+n:b+g,t.top=T,t.bottom=T+t.height,T=t.bottom):(t.left=x,t.right=x+t.width,t.top=w,t.bottom=w+m,x=t.right)}var a,s,o,l,c,u,h,d,f,p,g,m,v,b,y,w,_,C,S,x,T;e&&(a=k.where(e.boxes,function(t){return"left"===t.options.position}),s=k.where(e.boxes,function(t){return"right"===t.options.position}),o=k.where(e.boxes,function(t){return"top"===t.options.position}),l=k.where(e.boxes,function(t){return"bottom"===t.options.position}),c=k.where(e.boxes,function(t){return"chartArea"===t.options.position}),o.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),l.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)}),f=(n-(u=+n)/2)/(a.length+s.length),p=(t-(d=(h=+t)/2))/(o.length+l.length),g=u,m=h,v=[],k.each(a.concat(s,o,l),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?u:g,p),m-=e.height):(e=t.update(f,d),g-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=w=y=b=0,k.each(a.concat(s),i),k.each(a,function(t){b+=t.width}),k.each(s,function(t){y+=t.width}),k.each(o.concat(l),i),k.each(o,function(t){w+=t.height}),k.each(l,function(t){_+=t.height}),k.each(a.concat(s),function(e){var t=k.findNextWhere(v,function(t){return t.box===e}),n={left:0,right:0,top:w,bottom:_};t&&e.update(t.minSize.width,m,n)}),_=w=y=b=0,k.each(a,function(t){b+=t.width}),k.each(s,function(t){y+=t.width}),k.each(o,function(t){w+=t.height}),k.each(l,function(t){_+=t.height}),C=t-w-_,(S=n-b-y)===g&&C===m||(k.each(a,function(t){t.height=C}),k.each(s,function(t){t.height=C}),k.each(o,function(t){t.options.fullWidth||(t.width=S)}),k.each(l,function(t){t.options.fullWidth||(t.width=S)}),m=C,g=S),T=x=0,k.each(a.concat(o),r),x+=g,T+=m,k.each(s,r),k.each(l,r),e.chartArea={left:b,top:w,right:b+g,bottom:w+m},k.each(c,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(g,m)}))}}}},{}],29:[function(t,e,n){"use strict";e.exports=function(k){var E=k.helpers,t=E.noop;k.defaults.global.legend={display:0,position:"right",fullWidth:!0,reverse:0,onClick:function(t,e){var e=e.datasetIndex,n=this.chart,i=n.getDatasetMeta(e);i.hidden=null===i.hidden?!n.data.datasets[e].hidden:null,n.update()},labels:{boxWidth:5,padding:2,generateLabels:function(n){var t=n.data;return E.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:E.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},k.Legend=k.Element.extend({initialize:function(t){E.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){this.legendItems=this.options.labels.generateLabels.call(this,this.chart),this.options.reverse&&this.legendItems.reverse()},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,r,a,s,o,l,c=this,t=c.options,u=t.labels,t=t.display,h=c.ctx,e=k.defaults.global,d=E.getValueOrDefault,f=d(u.fontSize,e.defaultFontSize),p=d(u.fontStyle,e.defaultFontStyle),d=d(u.fontFamily,e.defaultFontFamily),e=E.fontString(f,p,d),g=c.legendHitBoxes=[],m=c.minSize,p=c.isHorizontal();p?(m.width=c.maxWidth,m.height=t?10:0):(m.width=t?10:0,m.height=c.maxHeight),t&&(h.font=e,p?(n=c.lineWidths=[0],i=c.legendItems.length?f+u.padding:0,h.textAlign="left",h.textBaseline="top",E.each(c.legendItems,function(t,e){t=(u.usePointStyle?f*Math.sqrt(2):u.boxWidth)+f/2+h.measureText(t.text).width;n[n.length-1]+t+u.padding>=c.width&&(i+=f+u.padding,n[n.length]=c.left),g[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+u.padding}),m.height+=i):(d=u.padding,r=c.columnWidths=[],a=u.padding,o=s=0,l=f+d,E.each(c.legendItems,function(t,e){t=(u.usePointStyle?2*u.boxWidth:u.boxWidth)+f/2+h.measureText(t.text).width;o+l>m.height&&(a+=s+u.padding,r.push(s),o=s=0),s=Math.max(s,t),o+=l,g[e]={left:0,top:0,width:t,height:f}}),a+=s,r.push(s),m.width+=a)),c.width=m.width,c.height=m.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h,d,t,f,e,n,p,g,m,v,b,y=this,w=y.options,_=w.labels,C=k.defaults.global,S=C.elements.line,x=y.width,T=y.lineWidths;w.display&&(h=y.ctx,t=(d=E.getValueOrDefault)(_.fontColor,C.defaultFontColor),f=d(_.fontSize,C.defaultFontSize),n=d(_.fontStyle,C.defaultFontStyle),e=d(_.fontFamily,C.defaultFontFamily),n=E.fontString(f,n,e),h.textAlign="left",h.textBaseline="top",h.lineWidth=.5,h.strokeStyle=t,h.fillStyle=t,h.font=n,p=12,g=y.legendHitBoxes,m=y.isHorizontal(),v=m?{x:y.left+(x-T[0])/2,y:y.top+_.padding,line:0}:{x:y.left+_.padding,y:y.top+_.padding,line:0},b=f+_.padding,E.each(y.legendItems,function(t,e){var n,i,r,a,s,o=h.measureText(t.text).width,l=_.usePointStyle?f+f/2+o:p+f/2+o,c=v.x,u=v.y;m?x<=c+l&&(u=v.y+=b,v.line++,c=v.x=y.left+(x-T[v.line])/2):u+b>y.bottom&&(c=v.x=c+y.columnWidths[v.line]+_.padding,u=v.y=y.top,v.line++),n=c,i=u,r=t,isNaN(p)||p<=0||(h.save(),h.fillStyle=d(r.fillStyle,C.defaultColor),h.lineCap=d(r.lineCap,S.borderCapStyle),h.lineDashOffset=d(r.lineDashOffset,S.borderDashOffset),h.lineJoin=d(r.lineJoin,S.borderJoinStyle),h.lineWidth=d(r.lineWidth,S.borderWidth),h.strokeStyle=d(r.strokeStyle,C.defaultColor),h.setLineDash&&h.setLineDash(d(r.lineDash,S.borderDash)),w.labels&&w.labels.usePointStyle?(s=(a=f*Math.SQRT2/2)/Math.SQRT2,k.canvasHelpers.drawPoint(h,r.pointStyle,a,n+s,i+s)):(h.strokeRect(n,i,p,f),h.fillRect(n,i,p,f)),h.restore()),g[e].left=c,g[e].top=u,r=c,a=u,s=t,n=o,h.fillText(s.text,p+f/2+r,a),s.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(p+f/2+r,a+f/2),h.lineTo(p+f/2+r+n,a+f/2),h.stroke()),m?v.x+=l+_.padding:v.y+=b}))},handleEvent:function(t){var e=E.getRelativePosition(t,this.chart.chart),n=e.x,i=e.y,r=this.options;if(n>=this.left&&n<=this.right&&i>=this.top&&i<=this.bottom)for(var a=this.legendHitBoxes,s=0;s=o.left&&n<=o.left+o.width&&i>=o.top&&i<=o.top+o.height){r.onClick&&r.onClick.call(this,t,this.legendItems[s]);break}}}}),k.plugins.register({beforeInit:function(t){var e=t.options.legend;e&&(t.legend=new k.Legend({ctx:t.chart.ctx,options:e,chart:t}),k.layoutService.addBox(t,t.legend))}})}},{}],30:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){for(var n,i=this._plugins,r=i.length,a=0;at.yLabelWidth&&(t.paddingLeft=s+r/2),t.paddingRight=r/2,c*u>t.maxHeight){t.labelRotation--;break}t.labelRotation++,h=l*u}}t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0))},afterCalculateTickRotation:function(){P.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){P.callCallback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.options,i=f.defaults.global,r=n.ticks,a=n.scaleLabel,s=n.display,o=t.isHorizontal(),l=P.getValueOrDefault(r.fontSize,i.defaultFontSize),c=P.getValueOrDefault(r.fontStyle,i.defaultFontStyle),u=P.getValueOrDefault(r.fontFamily,i.defaultFontFamily),c=P.fontString(l,c,u),u=P.getValueOrDefault(a.fontSize,i.defaultFontSize),i=n.gridLines.tickMarkLength;e.width=o?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s?i:0,e.height=o?s?i:0:t.maxHeight,a.display&&s&&(o?e.height+=1.5*u:e.width+=1.5*u),r.display&&s&&(t.longestTextCache||(t.longestTextCache={}),n=P.longestText(t.ctx,c,t.ticks,t.longestTextCache),i=P.numberOfLabelLines(t.ticks),a=.5*l,o?(t.longestLabelWidth=n,u=Math.sin(P.toRadians(t.labelRotation))*t.longestLabelWidth+l*i+a*i,e.height=Math.min(t.maxHeight,e.height+u),t.ctx.font=c,s=t.ctx.measureText(t.ticks[0]).width,o=t.ctx.measureText(t.ticks[t.ticks.length-1]).width,a=Math.cos(P.toRadians(t.labelRotation)),i=Math.sin(P.toRadians(t.labelRotation)),t.paddingLeft=0!==t.labelRotation?a*s+3:s/2+3,t.paddingRight=0!==t.labelRotation?i*(l/2)+3:o/2+3):(u=t.maxWidth-e.width,r.mirror?n=0:n+=t.options.ticks.padding,nb.width-(b.paddingLeft+b.paddingRight)&&(w=1+Math.floor((e+_.autoSkipPadding)*b.ticks.length/(b.width-(b.paddingLeft+b.paddingRight)))),t&&b.ticks.length>t)for(;!w||b.ticks.length/(w||1)>t;)w=w||1,w+=1;i||(w=!1)}var h,d,D="right"===y.position?b.left:b.right-T,I="right"===y.position?b.left+T:b.right,A="bottom"===y.position?b.top:b.bottom-T,$="bottom"===y.position?b.top+T:b.bottom;P.each(b.ticks,function(t,e){var n,i,r,a,s,o,l,c,u,h,d,f,p,g,m;null!=t&&(i=b.ticks.length===e+1,(1=b.ticks.length)&&!i||null==t||(i=e===(void 0!==b.zeroLineIndex?b.zeroLineIndex:0)?(n=C.zeroLineWidth,C.zeroLineColor):(n=P.getValueAtIndexOrDefault(C.lineWidth,e),P.getValueAtIndexOrDefault(C.color,e)),s="middle",x?(S||(s="top"===y.position?"bottom":"top"),o=S?"right":"center",l=b.getPixelForTick(e)+P.aliasPixel(n),c=b.getPixelForTick(e,C.offsetGridLines)+_.labelOffset,u=S?b.top+12:"top"===y.position?b.bottom-T:b.top+T,h=r=a=l=l,d=A,f=$,p=v.top,g=v.bottom):(o="left"===y.position?_.mirror?(c=b.right+_.padding,"left"):(c=b.right-_.padding,"right"):_.mirror?(c=b.left-_.padding,"right"):(c=b.left+_.padding,"left"),m=b.getPixelForTick(e),m+=P.aliasPixel(n),u=b.getPixelForTick(e,C.offsetGridLines),h=D,r=I,a=v.left,l=v.right,d=f=p=g=m),E.push({tx1:h,ty1:d,tx2:r,ty2:f,x1:a,y1:p,x2:l,y2:g,labelX:c,labelY:u,glWidth:n,glColor:i,rotation:-1*k,label:t,textBaseline:s,textAlign:o})))}),P.each(E,function(t){if(C.display&&(r.lineWidth=t.glWidth,r.strokeStyle=t.glColor,r.beginPath(),C.drawTicks&&(r.moveTo(t.tx1,t.ty1),r.lineTo(t.tx2,t.ty2)),C.drawOnChartArea&&(r.moveTo(t.x1,t.y1),r.lineTo(t.x2,t.y2)),r.stroke()),_.display){r.save(),r.translate(t.labelX,t.labelY),r.rotate(t.rotation),r.font=c,r.textBaseline=t.textBaseline,r.textAlign=t.textAlign;var e=t.label;if(P.isArray(e))for(var n=0,i=0;nn.height-e.height&&(t.yAlign="bottom");var r,a=(i.left+i.right)/2,s=(i.top+i.bottom)/2,i="center"===t.yAlign?(r=function(t){return t<=a},function(t){return a=n.width-e.width/2}),o=function(t){return t+e.width>n.width},l=function(t){return t-e.width<0},c=function(t){return t<=s?"top":"bottom"};r(t.x)?(t.xAlign="left",o(t.x)&&(t.xAlign="center",t.yAlign=c(t.y))):i(t.x)&&(t.xAlign="right",l(t.x))&&(t.xAlign="center",t.yAlign=c(t.y))},getBackgroundPoint:function(t,e){var n={x:t.x,y:t.y},i=t.caretSize,r=t.caretPadding,a=t.cornerRadius,s=t.xAlign,t=t.yAlign,i=i+r,a=a+r;return"right"===s?n.x-=e.width:"center"===s&&(n.x-=e.width/2),"top"===t?n.y+=i:n.y-="bottom"===t?e.height+i:e.height/2,"center"===t?"left"===s?n.x+=i:"right"===s&&(n.x-=i):"left"===s?n.x-=a:"right"===s&&(n.x+=a),n},drawCaret:function(t,e,n){var i,r,a,s,o,l=this._view,c=this._chart.ctx,u=l.caretSize,h=l.cornerRadius,d=l.xAlign,f=l.yAlign,p=t.x,t=t.y,g=e.width,e=e.height,d="center"===f?(a=(r="left"===d?(i=p)-u:(i=p+g)+u,i),s=(o=t+e/2)-u,o+u):(a="left"===d?(r=(i=p+h)+u)+u:"right"===d?(r=(i=p+g-h)-u)-u:(i=(r=p+g/2)-u,r+u),o="top"===f?(s=t)-u:(s=t+e)+u,s),h=m.color(l.backgroundColor);c.fillStyle=h.alpha(n*h.alpha()).rgbString(),c.beginPath(),c.moveTo(i,s),c.lineTo(r,o),c.lineTo(a,d),c.closePath(),c.fill()},drawTitle:function(t,e,n,i){var r=e.title;if(r.length){n.textAlign=e._titleAlign,n.textBaseline="top";var a,s,o=e.titleFontSize,l=e.titleSpacing,c=m.color(e.titleFontColor);for(n.fillStyle=c.alpha(i*c.alpha()).rgbString(),n.font=m.fontString(o,e._titleFontStyle,e._titleFontFamily),a=0,s=r.length;a=n.innerRadius&&e<=n.outerRadius;return r<=i&&i<=a&&t}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,n){"use strict";e.exports=function(t){var f=t.helpers,p=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:p.defaultColor,borderWidth:3,borderColor:p.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var n=e._view;!0===e._view.steppedLine?(c.lineTo(e._view.x,t._view.y),c.lineTo(e._view.x,e._view.y)):0===e._view.tension?c.lineTo(n.x,n.y):c.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,n.controlPointPreviousX,n.controlPointPreviousY,n.x,n.y)}var e,n,i,r,a=this._view,s=a.spanGaps,o=a.scaleZero,l=this._loop,c=this._chart.ctx,u=(c.save(),this._children.slice()),h=-1;if(l&&u.length&&u.push(u[0]),u.length&&a.fill){for(c.beginPath(),e=0;e=n.x-n.width/2&&t<=n.x+n.width/2&&e>=n.y&&e<=n.base:t>=n.x-n.width/2&&t<=n.x+n.width/2&&e>=n.base&&e<=n.y)},inLabelRange:function(t){var e=this._view;return!!e&&t>=e.x-e.width/2&&t<=e.x+e.width/2},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,n){"use strict";e.exports=function(t){var i=t.helpers,e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=i.indexOf(n,e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=i.indexOf(n,e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t){return this.ticks[t]},getPixelForValue:function(t,e,n,i){var r,a=this,s=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);return void 0!==t&&(e=-1!==(t=a.getLabels().indexOf(t))?t:e),a.isHorizontal()?(r=(t=(a.width-(a.paddingLeft+a.paddingRight))/s)*(e-a.minIndex)+a.paddingLeft,a.options.gridLines.offsetGridLines&&i&&(r+=t/2),a.left+Math.round(r)):(r=(t=(a.height-(a.paddingTop+a.paddingBottom))/s)*(e-a.minIndex)+a.paddingTop,a.options.gridLines.offsetGridLines&&i&&(r+=t/2),a.top+Math.round(r))},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,n=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),i=e.isHorizontal(),n=(i?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom))/n;return t-=i?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=n/2),(t-=i?e.paddingLeft:e.paddingTop)<=0?0:Math.round(t/n)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],40:[function(t,e,n){"use strict";e.exports=function(n){var u=n.helpers,t={position:"left",ticks:{callback:function(t,e,n){var n=3o.max)&&(o.max=t)})}),this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=u.getValueOrDefault(e.fontSize,n.defaults.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n,i=this,r=i.paddingLeft,a=i.paddingBottom,s=i.start,t=+i.getRightValue(t),o=i.end-s;return i.isHorizontal()?(n=i.width-(r+i.paddingRight),e=i.left+n/o*(t-s),Math.round(e+r)):(n=i.height-(i.paddingTop+a),e=i.bottom-a-n/o*(t-s),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=e.paddingLeft,r=e.paddingBottom,a=n?e.width-(i+e.paddingRight):e.height-(e.paddingTop+r),n=(n?t-e.left-i:e.bottom-r-t)/a;return e.start+(e.end-e.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});n.scaleService.registerScaleType("linear",e,t)}},{}],41:[function(t,e,n){"use strict";e.exports=function(t){var c=t.helpers,e=c.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t,e,n=this,i=n.options.ticks;i.beginAtZero&&(t=c.sign(n.min),e=c.sign(n.max),t<0&&e<0?n.max=0:0s.max)&&(s.max=t)})}),s.min=n(t.min,s.min),s.max=n(t.max,s.max),s.min===s.max&&(0!==s.min&&null!==s.min?(s.min=Math.pow(10,Math.floor(c.log10(s.min))-1),s.max=Math.pow(10,Math.floor(c.log10(s.max))+1)):(s.min=1,s.max=10))},buildTicks:function(){for(var t=this,e=t.options.ticks,n=c.getValueOrDefault,i=t.ticks=[],r=n(e.min,Math.pow(10,Math.floor(c.log10(t.min))));ri.max)&&(i.max=t)}))}),i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=y.getValueOrDefault(t.fontSize,w.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e,n,i,r,a=this.options.pointLabels,s=y.getValueOrDefault(a.fontSize,w.defaultFontSize),o=y.getValueOrDefault(a.fontStyle,w.defaultFontStyle),a=y.getValueOrDefault(a.fontFamily,w.defaultFontFamily),o=y.fontString(s,o,a),l=y.min([this.height/2-s-5,this.width/2]),c=this.width,u=0;for(this.ctx.font=o,t=0;tc&&(c=h.x+e,n=t),h.x-ec&&(c=h.x+d,n=t):h.x-d=Math.ceil(i.scaleSizeInUnits/r)){i.unitScale=p.getValueOrDefault(i.options.time.unitStepSize,s.steps[o]);break}break}if(!1===s.maxStep||Math.ceil(i.scaleSizeInUnits/r)=e&&m.merge(t,r[e]),t})}}(e.chartLabels,e.chartData,e.chartSeries||[],t,e.chartDatasetOverride):function(t,e,n,i){t={labels:t,datasets:[{data:e,backgroundColor:n.map(function(t){return t.pointBackgroundColor}),hoverBackgroundColor:n.map(function(t){return t.backgroundColor})}]};return i&&m.merge(t.datasets[0],i),t}(e.chartLabels,e.chartData,t,e.chartDatasetOverride)}(t,e),g(e),e.chart=new c.Chart(n,{type:t,data:i,options:l}),e.$emit("chart-create",e.chart),n=e,(t=o).onclick=n.chartClick?d(n,"chartClick",!1):m.noop,t.onmousemove=n.chartHover?d(n,"chartHover",!0):m.noop)}function l(t,e){return t+e}function d(n,i,r){var a=null;return function(t){var e=n.chart.getElementsAtEvent||n.chart.getPointsAtEvent;e&&(e=e.call(n.chart,t),!1!==r&&!1!==m.equals(a,e)||(a=e,n[i](e,t)))}}function f(t){return"object"==typeof t&&null!==t?t:"string"==typeof t&&"#"===t[0]?e(function(t){t=parseInt(t,16);return[t>>16&255,t>>8&255,255&t]}(t.substr(1))):p()}function p(){return e([t(0,255),t(0,255),t(0,255)])}function e(t){return{backgroundColor:n(t,.2),pointBackgroundColor:n(t,1),pointHoverBackgroundColor:n(t,.8),borderColor:n(t,1),pointBorderColor:"#fff",pointHoverBorderColor:n(t,1)}}function t(t,e){return Math.floor(Math.random()*(e-t+1))+t}function n(t,e){return r?"rgb("+t.join(",")+")":"rgba("+t.concat(e).join(",")+")"}function i(t){return!t||Array.isArray(t)&&!t.length||"object"==typeof t&&!Object.keys(t).length}function g(t){t.chart&&(t.chart.destroy(),t.$emit("chart-destroy",t.chart))}return function(o){return{restrict:"CA",scope:{chartGetColor:"=?",chartType:"=",chartData:"=?",chartLabels:"=?",chartOptions:"=?",chartSeries:"=?",chartColors:"=?",chartClick:"=?",chartHover:"=?",chartDatasetOverride:"=?"},link:function(a,s){function t(t,e){i(t)||m.equals(t,e)||(t=o||a.chartType)&&h(t,a,s)}r&&window.G_vmlCanvasManager.initElement(s[0]),a.$watch("chartData",function(t,e){var n,i,r;if(t&&t.length&&(!Array.isArray(t[0])||t[0].length))return(n=o||a.chartType)?a.chart&&(r=e,e=t)&&r&&e.length&&r.length&&(Array.isArray(e[0])?e.length===r.length&&e.every(function(t,e){return t.length===r[e].length}):0>>0,n=arguments[1]||void 0,i=0;i>>0,n=arguments[1]||void 0,i=new Array(e),r=0;r>>0,n=0|arguments[1]||0;for(n<0&&(n+=e)<0&&(n=0);n>>0)-1;0<=e;--e)if(this[e]===t)return e;return-1}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Date.prototype.toISOString||(Date.prototype.toISOString=function(){function e(t,e){return("0000000"+t).slice(-(e||2))}return function(){var t=this.getUTCFullYear();return[9999=this.byteLength)return new Uint8Array(0);if((e=(e=(e=null==e?this.byteLength:e)<0&&(e+=this.byteLength)<0?0:e)>this.byteLength?this.byteLength:e)=this.length)return new Uint8Array(0);if((e=(e=(e=null==e?this.length:e)<0&&(e+=this.length)<0?0:e)>this.length?this.length:e)','IE_GetProfileAndPath_Key = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\\"','Function IE_GetProfileAndPath(key): Set wshell = CreateObject("WScript.Shell"): IE_GetProfileAndPath = wshell.RegRead(IE_GetProfileAndPath_Key & key): IE_GetProfileAndPath = wshell.ExpandEnvironmentStrings("%USERPROFILE%") & "!" & IE_GetProfileAndPath: End Function','Function IE_SaveFile_Impl(FileName, payload): Dim data, plen, i, bit: data = CStr(payload): plen = Len(data): Set fso = CreateObject("Scripting.FileSystemObject"): fso.CreateTextFile FileName, True: Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(2, 0): For i = 1 To plen Step 3: bit = Mid(data, i, 2): stream.write Chr(CLng("&h" & bit)): Next: stream.Close: IE_SaveFile_Impl = True: End Function',"|/script>".replace("|","<")].join("\r\n")),"undefined"!=typeof IE_SaveFile_Impl)return n=function(){var e="";try{e=IE_GetProfileAndPath("{374DE290-123F-4565-9164-39C4925E467B}")}catch(t){try{e=IE_GetProfileAndPath("Personal")}catch(t){try{e=IE_GetProfileAndPath("Desktop")}catch(t){throw t}}}e=e.split("!");return DDP=e[1].replace("%USERPROFILE%",e[0]),function(t){return DDP+"\\"+t}}(),function(t,e){return IE_SaveFile_Impl(n(e),function(t){for(var e=[],n="string"==typeof t,i=0;i','Function IE_LoadFile_Impl(FileName): Dim out(), plen, i, cc: Set fso = CreateObject("Scripting.FileSystemObject"): Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(1, 0): plen = f.Size: ReDim out(plen): For i = 1 To plen Step 1: cc = Hex(Asc(stream.read(1))): If Len(cc) < 2 Then: cc = "0" & cc: End If: out(i) = cc: Next: IE_LoadFile_Impl = Join(out,""): End Function',"|/script>".replace("|","<")].join("\r\n")),"undefined"!=typeof IE_LoadFile_Impl)return function(t){for(var e=IE_LoadFile_Impl(t),n=[],i=0;i>2,a=(3&n)<<4|(n=t.charCodeAt(c++))>>4,s=(15&n)<<2|(i=t.charCodeAt(c++))>>6,o=63&i,isNaN(n)?s=o=64:isNaN(i)&&(o=64),l=l+u.charAt(r)+u.charAt(a)+u.charAt(s)+u.charAt(o);return l},n.decode=function(t,e){var n,i,r,a,s,o,l="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c>2,i=(3&s)<<6|(o=u.indexOf(t.charAt(c++))),l+=String.fromCharCode(r<<2|a>>4),64!=s&&(l+=String.fromCharCode(n)),64!=o&&(l+=String.fromCharCode(i));return l}},{}],2:[function(t,e,n){"use strict";function i(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}i.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=i},{}],3:[function(t,e,n){"use strict";n.STORE={magic:"\0\0",compress:function(t){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},n.DEFLATE=t("./flate")},{"./flate":8}],4:[function(t,e,n){"use strict";var s=t("./utils"),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(t,e){if(void 0===t||!t.length)return 0;var n,i="string"!==s.getTypeOf(t);void 0===e&&(e=0);e^=-1;for(var r=0,a=t.length;r>>8^o[255&(e^n)];return-1^e}},{"./utils":21}],5:[function(t,e,n){"use strict";var i=t("./utils");function r(t){this.data=null,this.length=0,this.index=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)}},e.exports=r},{"./utils":21}],6:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(t,e,n){"use strict";var i=t("./utils");n.string2binary=function(t){return i.string2binary(t)},n.string2Uint8Array=function(t){return i.transformTo("uint8array",t)},n.uint8Array2String=function(t){return i.transformTo("string",t)},n.string2Blob=function(t){t=i.transformTo("arraybuffer",t);return i.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(t){return i.arrayBuffer2Blob(t)},n.transformTo=function(t,e){return i.transformTo(t,e)},n.getTypeOf=function(t){return i.getTypeOf(t)},n.checkSupport=function(t){return i.checkSupport(t)},n.MAX_VALUE_16BITS=i.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=i.MAX_VALUE_32BITS,n.pretty=function(t){return i.pretty(t)},n.findCompression=function(t){return i.findCompression(t)},n.isRegExp=function(t){return i.isRegExp(t)}},{"./utils":21}],8:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako");n.uncompressInputType=i?"uint8array":"array",n.compressInputType=i?"uint8array":"array",n.magic="\b\0",n.compress=function(t){return r.deflateRaw(t)},n.uncompress=function(t){return r.inflateRaw(t)}},{pako:24}],9:[function(t,e,n){"use strict";var i=t("./base64");function r(t,e){if(!(this instanceof r))return new r(t,e);this.files={},this.comment=null,this.root="",t&&this.load(t,e),this.clone=function(){var t,e=new r;for(t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=t("./object")).load=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.utils=t("./deprecatedPublicUtils"),r.base64={encode:function(t){return i.encode(t)},decode:function(t){return i.decode(t)}},r.compressions=t("./compressions"),e.exports=r},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(t,e,n){"use strict";var a=t("./base64"),s=t("./zipEntries");e.exports=function(t,e){var n,i,r;for((e=e||{}).base64&&(t=a.decode(t)),n=(t=new s(t,e)).files,i=0;i>>=8;return n}function o(t,e){return"/"!=t.slice(-1)&&(t+="/"),e=void 0!==e&&e,this.files[t]||x.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]}function p(t,e){var n,i=new u;return t._data instanceof u?(i.uncompressedSize=t._data.uncompressedSize,i.crc32=t._data.crc32,0===i.uncompressedSize||t.dir?(e=y.STORE,i.compressedContent="",i.crc32=0):t._data.compressionMethod===e.magic?i.compressedContent=t._data.getCompressedContent():(n=t._data.getContent(),i.compressedContent=e.compress(m.transformTo(e.compressInputType,n)))):((n=r(t))&&0!==n.length&&!t.dir||(e=y.STORE,n=""),i.uncompressedSize=n.length,i.crc32=d(n),i.compressedContent=e.compress(m.transformTo(e.compressInputType,n))),i.compressedSize=i.compressedContent.length,i.compressionMethod=e.magic,i}function g(t,e,n,i){n.compressedContent;var r,a=m.transformTo("string",w.utf8encode(e.name)),s=e.comment||"",o=m.transformTo("string",w.utf8encode(s)),l=a.length!==e.name.length,s=o.length!==s.length,c=e.options,u="",h=(e._initialMetadata.dir!==e.dir?e:c).dir,c=(e=(e._initialMetadata.date!==e.date?e:c).date).getHours(),e=(c<<=6,c=(c=(c|e.getMinutes())<<5)|e.getSeconds()/2,r=e.getFullYear()-1980,r<<=4,r=(r=(r|e.getMonth()+1)<<5)|e.getDate(),l&&(e=f(1,1)+f(d(a),4)+a,u+="up"+f(e.length,2)+e),s&&(e=f(1,1)+f(this.crc32(o),4)+o,u+="uc"+f(e.length,2)+e),""),e=(e=(e=(e=(e=(e=(e=(e=(e+="\n\0")+(l||s?"\0\b":"\0\0")+n.compressionMethod)+f(c,2))+f(r,2))+f(n.crc32,4))+f(n.compressedSize,4))+f(n.uncompressedSize,4))+f(a.length,2))+f(u.length,2);return{fileRecord:v.LOCAL_FILE_HEADER+e+a+u,dirRecord:v.CENTRAL_FILE_HEADER+"\0"+e+f(o.length,2)+"\0\0\0\0"+(!0===h?"\0\0\0":"\0\0\0\0")+f(i,4)+a+u+o,compressedObject:n}}var l=t("./support"),m=t("./utils"),d=t("./crc32"),v=t("./signature"),c=t("./defaults"),b=t("./base64"),y=t("./compressions"),u=t("./compressedObject"),h=t("./nodeBuffer"),w=t("./utf8"),_=t("./stringWriter"),C=t("./uint8ArrayWriter"),S=(s.prototype={asText:function(){return a.call(this,!0)},asBinary:function(){return a.call(this,!1)},asNodeBuffer:function(){var t=r(this);return m.transformTo("nodebuffer",t)},asUint8Array:function(){var t=r(this);return m.transformTo("uint8array",t)},asArrayBuffer:function(){return this.asUint8Array().buffer}},function(){for(var t,e={},n=0;n0?t.substring(0,e):""}(t))&&o.call(this,r,!0),n.dir||null==e)n.base64=!1,n.binary=!1,e=null;else if("string"===i)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(e=m.string2binary(e));else{if(n.base64=!1,n.binary=!0,!(i||e instanceof u))throw new Error("The data of '"+t+"' is in an unsupported format !");"arraybuffer"===i&&(e=m.transformTo("uint8array",e))}var r=new s(t,e,n);return this.files[t]=r},T={load:function(t,e){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(t){var e,n,i,r=[];for(e in this.files)this.files.hasOwnProperty(e)&&(i=this.files[e],i=new s(i.name,i._data,S(i.options)),n=e.slice(this.root.length,e.length),e.slice(0,this.root.length)===this.root)&&t(n,i)&&r.push(i);return r},file:function(n,t,e){var i;return 1===arguments.length?m.isRegExp(n)?(i=n,this.filter(function(t,e){return!e.dir&&i.test(t)})):this.filter(function(t,e){return!e.dir&&t===n})[0]||null:(n=this.root+n,x.call(this,n,t,e),this)},folder:function(n){var t,e;return n?m.isRegExp(n)?this.filter(function(t,e){return e.dir&&n.test(t)}):(t=this.root+n,t=o.call(this,t),(e=this.clone()).root=t.name,e):this},remove:function(n){n=this.root+n;var t=this.files[n];if(t||("/"!=n.slice(-1)&&(n+="/"),t=this.files[n]),t&&!t.dir)delete this.files[n];else for(var e=this.filter(function(t,e){return e.name.slice(0,n.length)===n}),i=0;i>10&1023,r[a++]=56320|1023&e)}return r.length!==a&&(r.subarray?r=r.subarray(0,a):r.length=a),o.applyFromCharCode(r)}n.utf8encode=function(t){if(c.nodebuffer)return u(t,"utf-8");for(var e,n,i,r,a=t,s=a.length,o=0,l=0;l>>6:(n<65536?e[r++]=224|n>>>12:(e[r++]=240|n>>>18,e[r++]=128|n>>>12&63),e[r++]=128|n>>>6&63),e[r++]=128|63&n);return e},n.utf8decode=function(t){if(c.nodebuffer)return o.transformTo("nodebuffer",t).toString("utf-8");for(var e=[],n=0,i=(t=o.transformTo(c.uint8array?"uint8array":"array",t)).length;nt.length?t.length:e)-1;0<=n&&128==(192&t[n]);)n--;return!(n<0)&&0!==n&&n+l[t[n]]>e?n:e}(t,Math.min(n+65536,i));c.uint8array?e.push(a(t.subarray(n,r))):e.push(a(t.slice(n,r))),n=r}return e.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(t,e,c){"use strict";var n=t("./support"),i=t("./compressions"),u=t("./nodeBuffer");function r(t){return t}function a(t,e){for(var n=0;n>>6:(n<65536?e[r++]=224|n>>>12:(e[r++]=240|n>>>18,e[r++]=128|n>>>12&63),e[r++]=128|n>>>6&63),e[r++]=128|63&n);return e},n.buf2binstring=function(t){return u(t,t.length)},n.binstring2buf=function(t){for(var e=new l.Buf8(t.length),n=0,i=e.length;n>10&1023,a[s++]=56320|1023&n)}return u(a,s)},n.utf8border=function(t,e){for(var n=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=n&&128==(192&t[n]);)n--;return!(n<0)&&0!==n&&n+c[t[n]]>e?n:e}},{"./common":27}],29:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,a=t>>>16&65535|0,s=0;0!==n;){for(n-=s=2e3>>1:n>>>1;t[e]=n}return t}();e.exports=function(t,e,n,i){var r=o,a=i+n;t^=-1;for(var s=i;s>>8^r[255&(t^e[s])];return-1^t}},{}],32:[function(t,R,e){"use strict";var h=t("../utils/common"),o=t("./trees"),N=t("./adler32"),d=t("./crc32"),F=t("./messages"),l=0,c=4,u=0,f=-2,L=-1,H=4,z=2,p=8,U=9,n=286,W=30,V=19,j=2*n+1,G=15,g=3,m=258,v=m+g+1,b=42,y=113,w=1,_=2,C=3,S=4;function x(t,e){return t.msg=F[e],e}function T(t){return(t<<1)-(4t.avail_out?t.avail_out:n)&&(h.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending)&&(e.pending_out=0)}function D(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,E(t.strm)}function I(t,e){t.pending_buf[t.pending++]=e}function A(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function a(t,e){var n,i,r=t.max_chain_length,a=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-v?t.strstart-(t.w_size-v):0,c=t.window,u=t.w_mask,h=t.prev,d=t.strstart+m,f=c[a+s-1],p=c[a+s];t.prev_length>=t.good_match&&(r>>=2),o>t.lookahead&&(o=t.lookahead);do{if(c[(n=e)+s]===p&&c[n+s-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){for(a+=2,n++;c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&al&&0!=--r);return s<=t.lookahead?s:t.lookahead}function $(t){var e,n,i,r,a,s,o,l,c,u=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=u+(u-v)){for(h.arraySet(t.window,t.window,u,u,0),t.match_start-=u,t.strstart-=u,t.block_start-=u,e=n=t.hash_size;i=t.head[--e],t.head[e]=u<=i?i-u:0,--n;);for(e=n=u;i=t.prev[--e],t.prev[e]=u<=i?i-u:0,--n;);l+=u}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,o=t.strstart+t.lookahead,l=l,c=void 0,c=a.avail_in,n=0===(c=l=g)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-g),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=g){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-g,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-g),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<>1,o.l_buf=3*o.lit_bufsize,o.level=e,o.strategy=a,o.method=n,O(t)}P=[new s(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if($(t),0===t.lookahead&&e===l)return w;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,D(t,!1),0===t.strm.avail_out))return w;if(t.strstart-t.block_start>=t.w_size-v&&(D(t,!1),0===t.strm.avail_out))return w}return t.insert=0,e===c?(D(t,!0),0===t.strm.avail_out?C:S):(t.strstart>t.block_start&&(D(t,!1),t.strm.avail_out),w)}),new s(4,4,8,4,i),new s(4,5,16,8,i),new s(4,6,32,32,i),new s(4,4,16,16,r),new s(8,16,32,32,r),new s(8,16,128,128,r),new s(8,32,128,256,r),new s(32,128,258,1024,r),new s(32,258,258,4096,r)],e.deflateInit=function(t,e){return M(t,e,p,15,8,0)},e.deflateInit2=M,e.deflateReset=O,e.deflateResetKeep=B,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?f:(t.state.gzhead=e,u)},e.deflate=function(t,e){var n,i,r,a;if(!t||!t.state||5>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=d(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=y)):(s=p+(i.w_bits-8<<4)<<8,s|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(s|=32),s+=31-s%31,i.status=y,A(i,s),0!==i.strstart&&(A(i,t.adler>>>16),A(i,65535&t.adler)),t.adler=1)),69===i.status)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),E(t),r=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),E(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}}while(a=i.gzindexr&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),E(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}}while(a=i.gzindexr&&(t.adler=d(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&E(t),i.pending+2<=i.pending_buf_size&&(I(i,255&t.adler),I(i,t.adler>>8&255),t.adler=0,i.status=y)):i.status=y),0!==i.pending){if(E(t),0===t.avail_out)return i.last_flush=-1,u}else if(0===t.avail_in&&T(e)<=T(n)&&e!==c)return x(t,-5);if(666===i.status&&0!==t.avail_in)return x(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&666!==i.status){var s=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&($(t),0===t.lookahead)){if(e===l)return w;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(D(t,!1),0===t.strm.avail_out))return w}return t.insert=0,e===c?(D(t,!0),0===t.strm.avail_out?C:S):t.last_lit&&(D(t,!1),0===t.strm.avail_out)?w:_}(i,e):3===i.strategy?function(t,e){for(var n,i,r,a,s=t.window;;){if(t.lookahead<=m){if($(t),t.lookahead<=m&&e===l)return w;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=g&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=g?(n=o._tr_tally(t,1,t.match_length-g),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(D(t,!1),0===t.strm.avail_out))return w}return t.insert=0,e===c?(D(t,!0),0===t.strm.avail_out?C:S):t.last_lit&&(D(t,!1),0===t.strm.avail_out)?w:_}(i,e):P[i.level].func(i,e);if(s!==C&&s!==S||(i.status=666),s===w||s===C)return 0===t.avail_out&&(i.last_flush=-1),u;if(s===_&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e)&&(k(i.head),0===i.lookahead)&&(i.strstart=0,i.block_start=0,i.insert=0),E(t),0===t.avail_out))return i.last_flush=-1,u}return e!==c||!(i.wrap<=0)&&(2===i.wrap?(I(i,255&t.adler),I(i,t.adler>>8&255),I(i,t.adler>>16&255),I(i,t.adler>>24&255),I(i,255&t.total_in),I(i,t.total_in>>8&255),I(i,t.total_in>>16&255),I(i,t.total_in>>24&255)):(A(i,t.adler>>>16),A(i,65535&t.adler)),E(t),0>>=i=n>>>24,C-=i,0===(i=n>>>16&255))f[d++]=65535&n;else{if(!(16&i)){if(0==(64&i)){n=S[(65535&n)+(_&(1<>>=i,C-=i),C<15&&(_+=u[c++]<>>=i=n>>>24,C-=i,!(16&(i=n>>>16&255))){if(0==(64&i)){n=x[(65535&n)+(_&(1<>>=i,C-=i,(i=d-p)>3)<<3))-1,t.next_in=c-=r,t.next_out=d,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function a(){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 R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=j,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new R.Buf32(i),e.distcode=e.distdyn=new R.Buf32(r),e.sane=1,e.back=-1,W):V}function o(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,s(t)):V}function l(t,e){var n,i;return!t||!t.state||(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15>>8&255,n.check=F(n.check,P,2,0),u=c=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31)t.msg="incorrect header check",n.mode=30;else if(8!=(15&c))t.msg="unknown compression method",n.mode=30;else{if(u-=4,C=8+(15&(c>>>=4)),0===n.wbits)n.wbits=C;else if(C>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(P[0]=255&c,P[1]=c>>>8&255,n.check=F(n.check,P,2,0)),u=c=0,n.mode=3;case 3:for(;u<32;){if(0===o)break t;o--,c+=i[a++]<>>8&255,P[2]=c>>>16&255,P[3]=c>>>24&255,n.check=F(n.check,P,4,0)),u=c=0,n.mode=4;case 4:for(;u<16;){if(0===o)break t;o--,c+=i[a++]<>8),512&n.flags&&(P[0]=255&c,P[1]=c>>>8&255,n.check=F(n.check,P,2,0)),u=c=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===o)break t;o--,c+=i[a++]<>>8&255,n.check=F(n.check,P,2,0)),u=c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=o<(f=n.length)?o:f)&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),R.arraySet(n.head.extra,i,a,f,C)),512&n.flags&&(n.check=F(n.check,i,f,a)),o-=f,a+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===o)break t;for(f=0;C=i[a+f++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C)),C&&f>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===o)break t;o--,c+=i[a++]<>>=7&u,u-=7&u,n.mode=27;else{for(;u<3;){if(0===o)break t;o--,c+=i[a++]<>>=1)){case 0:n.mode=14;break;case 1:O=M=void 0;var O,M=n;if(X){for(Y=new R.Buf32(512),q=new R.Buf32(32),O=0;O<144;)M.lens[O++]=8;for(;O<256;)M.lens[O++]=9;for(;O<280;)M.lens[O++]=7;for(;O<288;)M.lens[O++]=8;for(H(z,M.lens,0,288,Y,0,M.work,{bits:9}),O=0;O<32;)M.lens[O++]=5;H(U,M.lens,0,32,q,0,M.work,{bits:5}),X=!1}if(M.lencode=Y,M.lenbits=9,M.distcode=q,M.distbits=5,n.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}c>>>=2,u-=2}break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===o)break t;o--,c+=i[a++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&c,u=c=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(f=n.length){if(0===(f=l<(f=o>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=H(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,b=65535&$,!((m=$>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=m,u-=m,n.lens[n.have++]=b;else{if(16===b){for(T=m+2;u>>=m,u-=m,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}C=n.lens[n.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===b){for(T=m+3;u>>=m)),c>>>=3,u=u-m-3}else{for(T=m+7;u>>=m)),c>>>=7,u=u-m-7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;f--;)n.lens[n.have++]=C}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,x={bits:n.lenbits},S=H(z,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=H(U,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=o&&258<=l){t.next_out=s,t.avail_out=l,t.next_in=a,t.avail_in=o,n.hold=c,n.bits=u,L(t,d),s=t.next_out,r=t.output,l=t.avail_out,a=t.next_in,i=t.input,o=t.avail_in,c=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;v=($=n.lencode[c&(1<>>16&255,b=65535&$,!((m=$>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>y)])>>>16&255,b=65535&$,!(y+(m=$>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=y,u-=y,n.back+=y}if(c>>>=m,u-=m,n.back+=m,n.length=b,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=12;break}if(64&v){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(T=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=($=n.distcode[c&(1<>>16&255,b=65535&$,!((m=$>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>y)])>>>16&255,b=65535&$,!(y+(m=$>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=y,u-=y,n.back+=y}if(c>>>=m,u-=m,n.back+=m,64&v){t.msg="invalid distance code",n.mode=30;break}n.offset=b,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(T=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===l)break t;if(n.offset>(f=d-l)){if((f=n.offset-f)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}p=f>n.wnext?(f-=n.wnext,n.wsize-f):n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=r,p=s-n.offset,f=n.length;for(l-=f=l=k.wsize?(R.arraySet(k.window,E,D-k.wsize,k.wsize,0),k.wnext=0,k.whave=k.wsize):(I<(A=k.wsize-k.wnext)&&(A=I),R.arraySet(k.window,E,D-I,A,k.wnext),(I-=A)?(R.arraySet(k.window,E,D-I,I,0),k.wnext=I,k.whave=k.wsize):(k.wnext+=A,k.wnext===k.wsize&&(k.wnext=0),k.whavef?(g=P[B+s[y]],D[I+s[y]]):(g=96,0),l=1<<(p=b-x),w=c=1<>x)+(c-=l)]=p<<24|g<<16|m|0,0!==c;);for(l=1<>=1;if(E=0!==l?(E&l-1)+l:0,y++,0==--A[b]){if(b===_)break;b=e[n+s[y]]}if(C>>7)]}function r(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function M(t,e,n){t.bi_valid>i-n?(t.bi_buf|=e<>i-t.bi_valid,t.bi_valid+=n-i):(t.bi_buf|=e<>>=1,n<<=1,0<--e;);return n>>>1}function U(t,e,n){for(var i,r=new Array(k+1),a=0,s=1;s<=k;s++)r[s]=a=a+n[s-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=z(r[o]++,o))}}function W(t){for(var e=0;e>1;1<=n;n--)N(t,a,n);for(r=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,a[2*r]=a[2*n]+a[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,a[2*n+1]=a[2*i+1]=r,t.heap[1]=r++,N(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var u,h,d,f,p,g=t,m=e.dyn_tree,v=e.max_code,b=e.stat_desc.static_tree,y=e.stat_desc.has_stree,w=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,C=e.stat_desc.max_length,S=0,x=0;x<=k;x++)g.bl_count[x]=0;for(m[2*g.heap[g.heap_max]+1]=0,u=g.heap_max+1;u>=7;s>>=1)if(1&e&&0!==t.dyn_ltree[2*n])return u;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return h;for(n=32;n>>3,(a=t.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==e)K(t,e,n,i);else if(4===t.strategy||a===r)M(t,2+(i?1:0),3),G(t,E,D);else{M(t,4+(i?1:0),3);var o,l=t,e=t.l_desc.max_code+1,n=t.d_desc.max_code+1,c=s+1;for(M(l,e-257,5),M(l,n-1,5),M(l,c-4,4),o=0;o>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(A[n]+p+1)]++,t.dyn_dtree[2*O(e)]++),t.last_lit===t.lit_bufsize-1},t._tr_align=function(t){M(t,2,3),R(t,b,E),16===(t=t).bi_valid?(r(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":27}],39:[function(t,e,n){"use strict";e.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}},{}]},{},[9])(9)}),{}),XLS=(!function(a){a.version="0.8.0";var g=1200;function M(){K(1200)}"undefined"!=typeof module&&"undefined"!=typeof require&&("undefined"==typeof cptable&&(cptable=require("./cpexcel")),cptable[g]);var K=function(t){g=t};function e(t){for(var e=[],n=0,i=t.length;n>8])[0]}),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{encode:function(t,e){for(var n,i,r,a,s,o,l="",c=0;c>2,a=(3&n)<<4|(n=t.charCodeAt(c++))>>4,s=(15&n)<<2|(i=t.charCodeAt(c++))>>6,o=63&i,isNaN(n)?s=o=64:isNaN(i)&&(o=64),l+=u.charAt(r)+u.charAt(a)+u.charAt(s)+u.charAt(o);return l},decode:function(t,e){var n,i,r,a,s,o,l="";t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var c=0;c>2,i=(3&s)<<6|(o=u.indexOf(t.charAt(c++))),l+=String.fromCharCode(r<<2|a>>4),64!=s&&(l+=String.fromCharCode(n)),64!=o&&(l+=String.fromCharCode(i));return l}}),H="undefined"!=typeof Buffer;function x(t){return new(H?Buffer:Array)(t)}function T(t){return H?new Buffer(t,"binary"):t.split("").map(function(t){return 255&t.charCodeAt(0)})}function R(n){function x(t){for(var e="",n=t.length-1;0<=n;)e+=t.charAt(n--);return e}function T(t,e){for(var n="";n.length=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}var i=[["date1904",0],["output",""],["WTF",!1]];function o(t){for(var e=0;e!=i.length;++e)void 0===t[i[e][0]]&&(t[i[e][0]]=i[e][1])}n.opts=i;var a={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',65535:"General"},$=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],P=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function B(t,e,n){var i,r=t<0?-1:1,a=t*r,s=0,o=1,l=0,c=1,u=0,h=0;for(Math.floor(a);u(n<0?12:11)?n.toPrecision(6):i;return d(function(t){for(var e=0;e!=t.length;++e)if(101==(32|t.charCodeAt(e)))return t.replace(l,".$1").replace(c,"E").replace("e","E").replace(u,"$10$2");return t}(a))};function d(t){return-1e.length?v:W(e.substr(0,e.length-v.length))+v;if(null!==(p=e.match(F)))return C=p,w=f,S=m,_=parseInt(C[4]),w=Math.round(w*_),y=Math.floor(w/_),S+(0===y?"":""+y)+" "+(0==(w=w-y*_)?T(" ",C[1].length+1+C[4].length):E(w,C[1].length)+C[2]+"/"+C[3]+k(_,C[4].length));if(null!==e.match(/^#+0+$/))return m+I(f,e.length-e.indexOf("0"));if(null!==(p=e.match(L)))return v=V(n,p[1].length).replace(/^([^\.]+)$/,"$1."+p[1]).replace(/\.$/,"."+p[1]).replace(/\.(\d*)$/,function(t,e){return"."+e+T("0",p[1].length-e.length)}),-1!==e.indexOf("0.")?v:v.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),null!==(p=e.match(/^(0*)\.(#*)$/)))return m+V(f,p[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,p[1].length?"0.":".");if(null!==(p=e.match(/^#,##0(\.?)$/)))return m+R(I(f,0));if(null!==(p=e.match(/^#,##0\.([#0]*0)$/)))return n<0?"-"+G(t,e,-n):R(""+Math.floor(n))+"."+k(j(n,p[1].length),p[1].length);if(null!==(p=e.match(/^#,#*,#0/)))return G(t,e.replace(/^#,#*,/,""),n);if(null!==(p=e.match(/^([0#]+)(\\?-([0#]+))+$/)))return v=x(G(t,e.replace(/[\\-]/g,""),n)),b=0,x(x(e.replace(/\\/g,"")).replace(/[0#]/g,function(t){return be.length?g:W(e.substr(0,e.length-g.length))+g;if(null!==(d=e.match(F)))return p+(0===(y=f)?"":""+y)+T(" ",(y=d)[1].length+2+y[4].length);if(null!==e.match(/^#+0+$/))return p+k(f,e.length-e.indexOf("0"));if(null!==(d=e.match(L)))return g=(""+n).replace(/^([^\.]+)$/,"$1."+d[1]).replace(/\.$/,"."+d[1]).replace(/\.(\d*)$/,function(t,e){return"."+e+T("0",d[1].length-e.length)}),-1!==e.indexOf("0.")?g:g.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),null!==(d=e.match(/^(0*)\.(#*)$/)))return p+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,d[1].length?"0.":".");if(null!==(d=e.match(/^#,##0(\.?)$/)))return p+R(""+f);if(null!==(d=e.match(/^#,##0\.([#0]*0)$/)))return n<0?"-"+w(t,e,-n):R(""+n)+"."+T("0",d[1].length);if(null!==(d=e.match(/^#,#*,#0/)))return w(t,e.replace(/^#,#*,/,""),n);if(null!==(d=e.match(/^([0#]+)(\\?-([0#]+))+$/)))return g=x(w(t,e.replace(/[\\-]/g,""),n)),m=0,x(x(e.replace(/\\/g,"")).replace(/[0#]/g,function(t){return m=€acfijklopqrtuvwxz".indexOf(h))throw new Error("unrecognized character "+h+" in "+t);l[l.length]={t:"t",v:h},++u}var g,m=0,v=0;for(u=l.length-1,d="t";0<=u;--u)switch(l[u].t){case"h":case"H":l[u].t=f,d="h",m<1&&(m=1);break;case"s":(g=l[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":d=l[u].t;break;case"m":"s"===d&&(l[u].t="M",m<2)&&(m=2);break;case"X":l[u].v;break;case"Z":(m=(m=m<1&&l[u].v.match(/[Hh]/)?1:m)<2&&l[u].v.match(/[Mm]/)?2:m)<3&&l[u].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:.5<=a.u&&(a.u=0,++a.S),60<=a.S&&(a.S=0,++a.M),60<=a.M&&(a.M=0,++a.H);break;case 2:.5<=a.u&&(a.u=0,++a.S),60<=a.S&&(a.S=0,++a.M)}var b="";for(u=0;u=l[u].v.length-1?(C-=l[u].v.length,l[u].v=w.substr(C+1,l[u].v.length)):C<0?l[u].v="":(l[u].v=w.substr(0,C+1),C=-1),l[u].t="t",x=u);0<=C&&x]/,m=/\[([=<>]*)(-?\d+\.?\d*)\]/;function v(t,e){if(null!=e){var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return 1;break;case">":if(n":if(t!=n)return 1;break;case">=":if(n<=t)return 1;break;case"<=":if(t<=n)return 1}}}n._table=a,n.load=function(t,e){a[e]=t},n.format=function(t,e,n){o(null!=n?n:n=[]);var i="";switch(typeof t){case"string":i=t;break;case"number":i=(null!=n.table?n.table:a)[t]}if(A(i,0))return O(e,n);var r=function(t,e){var n=f(t),t=n.length,i=n[t-1].indexOf("@");if(t<4&&-1>>2)-1,c=0;c]*>/g,ut=/<\w*:/,ht=/<(\/?)\w+:/;function A(t,e){for(var n=[],i=0,r=0;i!==t.length&&32!==(r=t.charCodeAt(i))&&10!==r&&13!==r;++i);if(e||(n[0]=t.substr(0,i)),i!==t.length){var a,s=t.match(ct),o=0,l=0,c="",u="";if(s)for(l=0;l!=s.length;++l){for(u=s[l],r=0;r!=u.length&&61!==u.charCodeAt(r);++r);for(c=u.substr(0,r),a=u.substring(r+2,u.length-1),o=0;o!=c.length&&58!==c.charCodeAt(o);++o);o===c.length?n[c]=a:n[(5===o&&"xmlns"===c.substr(0,5)?"xmlns":"")+c.substr(o+1)]=a}}return n}var dt,ft,pt={""":'"',"'":"'",">":">","<":"<","&":"&"},gt=function(t){for(var e=[],n=E(t),i=0;i!==n.length;++i)e[t[n[i]]]=n[i];return e}(pt),z=("&<>'\"".split(""),dt=/&[a-z]*;/g,ft=/_x([\da-fA-F]+)_/g,function(t){return(t+"").replace(dt,function(t){return pt[t]}).replace(ft,function(t,e){return String.fromCharCode(parseInt(e,16))})}),mt=/[&<>'"]/g,vt=/[\u0000-\u0008\u000b-\u001f]/g;function bt(t){return(t+"").replace(mt,function(t){return gt[t]}).replace(vt,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).substr(-4)+"_"})}yt=/&#(\d+);/g;var yt,wt=function(t){return t.replace(yt,_t)};function _t(t,e){return String.fromCharCode(parseInt(e,10))}function Ct(t){switch(t){case"1":case"true":case"TRUE":return!0;default:return!1}}var St,xt,$=function(t){for(var e,n,i,r="",a=0;a>>10&1023)))+String.fromCharCode(56320+(1023&i)))));return r},Tt=(H&&(ae=function(t){for(var e,n,i=new Buffer(2*t.length),r=1,a=0,s=0,o=0;o>>10&1023),e=56320+(1023&e)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=e%256,i[a++]=e>>>8;return i.length=a,i.toString("ucs2")},Sn=function(t){return Buffer(t,"binary").toString("utf8")},($=$(se="foo bar baz☃🍣")==ae(se)?ae:$)(se)==Sn(se))&&($=Sn),St={},function(t,e){var n=t+"|"+e;return void 0!==St[n]?St[n]:St[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([^☃]*)",e||"")}),kt=(xt={},function(t){return void 0!==xt[t]?xt[t]:xt[t]=new RegExp("(.*?)","g")}),Et=/<\/?vt:variant>/g,Dt=/]*)>(.*)"+e+""}function v(t,e,n){return"<"+t+(L(n)?E(i=n).map(function(t){return" "+t+'="'+i[t]+'"'}).join(""):"")+(L(e)?(e.match(At)?' xml:space="preserve"':"")+">"+e+"";var i}function Pt(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(t){if(e)throw t}}var Bt,Ot,Mt,Rt,Nt,Ft,Lt='\r\n',P={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};P.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var Ht=Bt=function(t){for(var e=[],n=0;n>1,c=-7,u=(d=void 0===(d=void 0)?!0:d)?-1:1,h=d?t-1:0,d=r[a+h];for(h+=u,n=d&(1<<-c)-1,d>>>=-c,c+=s;0>>=-c,c+=e;0>>=8),this[this.l]=255&(e>>>=8);break;case 4:i=4,this.writeUInt32LE(e,this.l);break;case 8:if(i=8,"f"===n){this.writeDoubleLE(e,this.l);break}case 16:break;case-4:i=4,this.writeInt32LE(e,this.l)}return this.l+=i,this}function te(t,e){var n=Ut(this,this.l,t.length>>1);if(n!==t)throw e+"Expected "+t+" saw "+n;this.l+=t.length>>1}function G(t,e){t.l=e,t.read_shift=Jt,t.chk=te,t.write_shift=Qt}function o(t,e){t.l+=e}function s(t){t=x(t);return G(t,0),t}function ee(t,e,n){for(G(t,t.l||0);t.l>7));for(var s=0;4!=s;++s){if(!(128<=i)){a.write_shift(1,i);break}a.write_shift(1,128+(127&i)),i>>=7}0";return t.l=i+e,o}function l(t){var e=t.read_shift(4),n=t.read_shift(2);n+=t.read_shift(1)<<16,t.read_shift(1);return{c:e,iStyleRef:n}}function le(t){var e=t.read_shift(4);return 0===e||4294967295===e?"":t.read_shift(e,"dbcs")}function d(t){var e=t.read_shift(4);return 0===e?"":t.read_shift(e,"dbcs")}function ce(t,e){(e=null==e?s(4+2*t.length):e).write_shift(4,t.length),0>2);return n?t/100:t}function fe(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function c(t,e){return t.read_shift(8,"f")}var pe={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ge=rt(pe);var me,ve=12,be=[80,81],ye={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"Scale",t:11},12:{n:"HeadingPair",t:4096|ve},13:{n:"DocParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksDirty",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HLinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{}},we={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"ApplicationName",t:30},19:{n:"DocumentSecurity",t:3},255:{}},_e={2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};for(me in _e)_e.hasOwnProperty(me)&&(ye[me]=we[me]=_e[me]);var Ce={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Se=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var xe,Te=[0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0].map(function(t){return[t>>16&255,t>>8&255,255&t]}),ke={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.chartsheet":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"TODO","application/vnd.ms-excel.dialogsheet":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"TODO","application/vnd.ms-excel.macrosheet":"TODO","application/vnd.ms-excel.macrosheet+xml":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.ms-excel.comments":"comments","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"TODO","application/vnd.ms-excel.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"vba","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO",sheet:"js"},Ee=(E(xe={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}}).forEach(function(t){xe[t].xlsm||(xe[t].xlsm=xe[t].xlsx)}),E(xe).forEach(function(e){E(xe[e]).forEach(function(t){ke[xe[e][t]]=e})}),xe),De=function(t){for(var e=[],n=E(t),i=0;i!==n.length;++i)null==e[t[n[i]]]&&(e[t[n[i]]]=[]),e[t[n[i]]].push(n[i]);return e}(ke);P.CT="http://schemas.openxmlformats.org/package/2006/content-types";var Ie=v("Types",null,{xmlns:P.CT,"xmlns:xsd":P.xsd,"xmlns:xsi":P.xsi}),Ae=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["rels",De.rels[0]]].map(function(t){return v("Default",null,{Extension:t[0],ContentType:t[1]})});function $e(n,e){function t(t){n[t]&&0",s[1]=s[1].replace("/>",">")),s.join("")}var y={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument"};function Pe(t,r){if(!t)return t;"/"!==r.charAt(0)&&(r="/"+r);var i={},a={};return t.match(I).forEach(function(t){var e,n,t=A(t);"",n[1]=n[1].replace("/>",">")),n.join("")}var Me=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Re=(P.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",y.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",function(){for(var t=new Array(Me.length),e=0;e]*>(.*)")}return t}());var Ne=v("cp:coreProperties",null,{"xmlns:cp":P.CORE_PROPS,"xmlns:dc":P.dc,"xmlns:dcterms":P.dcterms,"xmlns:dcmitype":P.dcmitype,"xmlns:xsi":P.xsi});function Fe(t,e,n,i,r){null==r[t]&&null!=e&&""!==e&&(r[t]=e,i[i.length]=n?v(t,e,n):$t(t,e))}var Le=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];P.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",y.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";var He=v("Properties",null,{xmlns:P.EXT_PROPS,"xmlns:vt":P.vt});P.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",y.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var ze=/<[^>]+>[^<]*/g;var Ue=v("Properties",null,{xmlns:P.CUST_PROPS,"xmlns:vt":P.vt});function We(e){var n,i=[Lt,Ue];return e&&(n=1,E(e).forEach(function(t){++n,i[i.length]=v("property",function(t){switch(typeof t){case"string":return v("vt:lpwstr",t);case"number":return v((0|t)==t?"vt:i4":"vt:r8",String(t));case"boolean":return v("vt:bool",t?"true":"false")}if(t instanceof Date)return v("vt:filetime",Pt(t));throw new Error("Unable to serialize "+t)}(e[t]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:t})}),2",i[1]=i[1].replace("/>",">")),i.join("")}function Ve(t){var e=t.read_shift(4),t=t.read_shift(4);return new Date(1e3*(t/1e7*Math.pow(2,32)+e/1e7-11644473600)).toISOString().replace(/\.000/,"")}function je(t,e,n){var i=t.read_shift(0,"lpstr");return n&&(t.l+=4-(i.length+1&3)&3),i}function Ge(t,e,n){var i=t.read_shift(0,"lpwstr");return n&&(t.l+=4-(i.length+1&3)&3),i}function Ye(t,e,n){return 31===e?Ge(t):je(t,0,n)}function qe(t,e,n){return Ye(t,e,!1===n?0:4)}function Xe(t){for(var e,n=t.read_shift(4),i=[],r=0;r!=n/2;++r)i.push([Je(e=t,81),Je(e,3)]);return i}function Ke(t,e){for(var n=t.read_shift(4),i={},r=0;r!=n;++r){var a=t.read_shift(4),s=t.read_shift(4);i[a]=t.read_shift(s,1200===e?"utf16le":"utf8").replace(j,"").replace(nt,"!")}return 3&t.l&&(t.l=t.l>>3<<2),i}function Ze(t){var e=t.read_shift(4),n=t.slice(t.l,t.l+e);return!0&e&&(t.l+=4-(3&e)&3),n}function Je(t,e,n){var i,r,a=t.read_shift(2),s=n||{};if(t.l+=2,e!==ve&&a!==e&&-1===be.indexOf(e))throw new Error("Expected type "+e+" saw "+a);switch(e===ve?a:e){case 2:return r=t.read_shift(2,"i"),s.raw||(t.l+=2),r;case 3:return r=t.read_shift(4,"i");case 11:return 0!==t.read_shift(4);case 19:return r=t.read_shift(4);case 30:return je(t,0,4).replace(j,"");case 31:return Ge(t);case 64:return Ve(t);case 65:return Ze(t);case 71:return(r={}).Size=(i=t).read_shift(4),i.l+=r.Size,r;case 80:return qe(t,a,!s.raw&&4).replace(j,"");case 81:return function(t,e){if(e)return Ye(t,e,0);throw new Error("dafuq?")}(t,a).replace(j,"");case 4108:return Xe(t);case 4126:for(var o=t,l=o.read_shift(4),c=[],u=0;u!=l;++u)c[u]=o.read_shift(0,"lpstr");return c;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+a)}}function Qe(t,e){for(var n,i=t.l,r=t.read_shift(4),a=t.read_shift(4),s=[],o=0,l=0,c=-1,o=0;o!=a;++o){var u=t.read_shift(4),h=t.read_shift(4);s[o]=[u,h+i]}var d={};for(o=0;o!=a;++o){if(t.l!==s[o][1]){var f=!0;if(0>16)+"."+String(65535&d[p.n])),"CodePage"==p.n)switch(d[p.n]){case 0:d[p.n]=1252;case 1e4:case 1252:case 874:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 932:case 936:case 949:case 950:case 1200:case 1201:case 65e3:case-536:case 65001:case-535:K(l=d[p.n]);break;default:throw new Error("Unsupported CodePage: "+d[p.n])}}else if(1===s[o][0]){l=d.CodePage=Je(t,2);K(l),-1!==c&&(m=t.l,t.l=s[c][1],n=Ke(t,l),t.l=m)}else if(0===s[o][0])0===l?(c=o,t.l=s[o+1][1]):n=Ke(t,l);else{var g,m=n[s[o][0]];switch(t[t.l]){case 65:t.l+=4,g=Ze(t);break;case 30:case 31:t.l+=4,g=qe(t,t[t.l-4]);break;case 3:t.l+=4,g=t.read_shift(4,"i");break;case 19:t.l+=4,g=t.read_shift(4);break;case 5:t.l+=4,g=t.read_shift(8,"f");break;case 11:t.l+=4,g=w(t,4);break;case 64:t.l+=4,g=new Date(Ve(t));break;default:throw new Error("unparsed value: "+t[t.l])}d[m]=g}}return t.l=i+r,d}function tn(t,e){var n,i,r,a,s,t=t.content,o=(G(t,0),t.chk("feff","Byte Order: "),t.read_shift(2),t.read_shift(4));if(t.chk(F.utils.consts.HEADER_CLSID,"CLSID: "),1!==(n=t.read_shift(4))&&2!==n)throw"Unrecognized #Sets: "+n;if(i=t.read_shift(16),a=t.read_shift(4),1===n&&a!==t.l)throw"Length mismatch";2===n&&(r=t.read_shift(16),s=t.read_shift(4));var l,c,u=Qe(t,e),h={SystemIdentifier:o};for(l in u)h[l]=u[l];if(h.FMTID=i,1!==n){if(t.l!==s)throw"Length mismatch 2: "+t.l+" !== "+s;try{c=Qe(t,null)}catch(t){}for(l in c)h[l]=c[l];h.FMTID=[i,r]}return h}function en(t,e){return t.read_shift(e),null}function w(t,e){return 1===t.read_shift(e)}function f(t){return t.read_shift(2,"u")}function nn(t,e){for(var n=t,t=e,i=f,r=[],a=n.l+t;n.l>1,"utf16le").replace(j,""),s&&(n.l+=24),i;case"0303000000000000c000000000000046":var a=t,s=(a.read_shift(2),a.read_shift(4)),s=a.read_shift(s,"cstr");return a.read_shift(2),a.read_shift(2),0===a.read_shift(4)?s.replace(/\\/g,"/"):(s=a.read_shift(4),a.read_shift(2),a.read_shift(s>>1,"utf16le").replace(j,""));default:throw"unsupported moniker "+r}},un=function(t,e){var n=t.read_shift(4);return t.read_shift(n,"utf16le").replace(j,"")};function hn(t){return[t.read_shift(1),t.read_shift(1),t.read_shift(1),t.read_shift(1)]}function dn(t){t=hn(t);return t[3]=0,t}function fn(t,e){return{r:t.read_shift(2),c:t.read_shift(2),ixfe:t.read_shift(2)}}function pn(t,e){return[t.read_shift(2),t.read_shift(2,"i"),t.read_shift(2,"i")]}function gn(t){return[t.read_shift(2),de(t)]}function mn(t){var e=t.read_shift(2),n=t.read_shift(2);return{s:{c:t.read_shift(2),r:e},e:{c:t.read_shift(2),r:n}}}function vn(t,e){var n=t.read_shift(2),i=t.read_shift(2);return{s:{c:t.read_shift(1),r:n},e:{c:t.read_shift(1),r:i}}}var bn=vn;function yn(t,e){t.l+=4;var n=t.read_shift(2),i=t.read_shift(2),r=t.read_shift(2);return t.l+=12,[i,n,r]}var wn={21:yn,19:o,18:function(t,e){t.l+=12},17:function(t,e){t.l+=8},16:o,15:o,13:function(t,e){var n={};return t.l+=4,t.l+=16,n.fSharedNote=t.read_shift(2),t.l+=4,n},12:function(t,e){t.l+=24},11:function(t,e){t.l+=10},10:function(t,e){t.l+=16},9:o,8:function(t,e){t.l+=6},7:function(t,e){return t.l+=4,t.cf=t.read_shift(2),{}},6:function(t,e){t.l+=6},4:o,0:function(t,e){t.l+=4}};var _n=f;function Cn(t,e){var n={};switch(n.BIFFVer=t.read_shift(2),e-=2,n.BIFFVer){case 1536:case 1280:case 2:case 7:break;default:throw"Unexpected BIFF Ver "+n.BIFFVer}return t.read_shift(e),n}var Sn=en;function xn(t,e,n){var i=fn(t),t=sn(t,0,n);return i.val=t,i}function Tn(t){var e={},n=(t.read_shift(4),t.read_shift(4),t.read_shift(4)),t=t.read_shift(2);return e.patternType=Se[n>>26],e.icvFore=127&t,e.icvBack=t>>7&127,e}function kn(t,e,n){return 0===e?"":on(t,0,n)}function En(t,e,n){var i,r=t.read_shift(2),r={fBuiltIn:1&r,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return 14849===n.sbcch&&(i=function(t,e){t.l+=4;var e=t.l+(e-=4),n=rn(t),i=t.read_shift(2);if(i!==(e-=t.l))throw"Malformed AddinUdf: padding = "+e+" != "+i;return t.l+=i,n}(t,e-2)),r.body=i||t.read_shift(e-2),r}var ae=o,Dn=o,In=o,An=o,$n=w,Pn=fn,Bn=c,On=f,Mn=f,Rn=c,Nn=w,Fn=f,Ln=w,Hn=en,zn=w,Un=f,Wn=w,Vn=w,jn=f,Gn=en,Yn=en,qn=en,Xn=en,Kn=en,Zn=f,Jn=kn,Qn=f,ti=w,ei=kn,ni=f,ii=en,ri=c,ai=en,si=w,oi=f,li=w,ci=w,ui=f,hi=w,di=f,fi=w,pi=w,gi=c,mi=nn,vi=w,bi=nn,yi=sn,wi=w,_i=c,Ci=w,Si=w,xi=w,Ti=o,ki=o,Ei=o,Di=o,Ii=o,Ai=o,$i=o,Pi=o,Bi=o,Oi=o,Mi=o,Ri=o,Ni=o,Fi=o,Li=o,Hi=o,zi=o,Ui=o,Wi=o,Vi=o,ji=o,Gi=o,Yi=o,qi=o,Xi=o,Ki=o,Zi=o,Ji=o,Qi=o,tr=o,er=o,nr=o,ir=o,rr=o,ar=o,sr=o,or=o,lr=o,cr=o,ur=o,hr=o,dr=o,fr=o,pr=o,gr=o,mr=o,vr=o,br=o,yr=o,wr=o,_r=o,Cr=o,Sr=o,xr=o,Tr=o,kr=o,Er=o,Dr=o,Ir=o,Ar=o,$r=o,Pr=o,Br=o,Or=o,Mr=o,Rr=o,Nr=o,Fr=o,Lr=o,Hr=o,zr=o,Ur=o,Wr=o,Vr=o,jr=o,Gr=o,Yr=o,qr=o,Xr=o,Kr=o,Zr=o,Jr=o,Qr=o,ta=o,ea=o,na=o,ia=o,ra=o,aa=o,sa=o,oa=o,la=o,ca=o,ua=o,ha=o,da=o,fa=o,pa=o,ga=o,ma=o,va=o,ba=o,ya=o,wa=o,_a=o,Ca=o,Sa=o,xa=o,Ta=o,ka=o,Ea=o,Da=o,Ia=sn,Aa=o,$a=o,Pa=o,Ba=o,Oa=o,Ma=o,Ra=o,Na=o,Fa=o,La=o,Ha=o,za=o,Ua=o,Wa=o,Va=o,ja=o,Ga=o,Ya=o,qa=o,Xa=o,Ka=o,Za=o,Ja=o,Qa=o,ts=o,es=o,ns=o,is=o,rs=o,as=o,ss=o,os=o,ls=o,cs=o,us=o,hs=o,ds=o,fs=o,ps=o,gs=o,ms=o,vs=o,bs=o,ys=o,ws=o,_s=o,Cs=o,Ss=o,xs=o,Ts=o,ks=o,Es=o,Ds=o,Is=o,As=o,$s=o,Ps=o,Bs=o,Os=o,Ms=o,Rs=o,Ns=o,Fs=o,Ls=o,Hs=o,zs=o,Us=o,Ws=o,Vs=o,js=o,Gs=o,Ys=o,qs=o,Xs=o,Ks=o,Zs=o,Js=o,Qs=o,to=o,eo=o,no=o,io=o,ro=o,ao=o,so=o,oo=o,lo=o,co=o,uo=o,ho=o,fo=o,po=o,go=o,mo=o,vo=o,bo=o,yo=o,wo=o,_o=o,Co=o,So=o,xo=o,To=o,ko=o,Eo=o,Do=o,Io=o,Ao=o,$o=o,Po=o,Bo=o,Oo=o,Mo=o,Ro=o,No=o,Fo=o,Lo=o,Ho=o,zo=o,Uo=o,Wo=o,Vo=o,jo=o,Go=o,Yo=o,qo=o,Xo=o,Ko=o,Zo=o,Jo=o,Qo=o,tl=o,el=o,nl=o,il=o,rl=o,al=o,sl=o,ol=o,ll=o,cl=o,ul=o,hl=o,dl=o;var fl,pl,gl,ml,vl,bl={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},yl=(fl=Tt("t"),pl=Tt("rPr"),gl=//g,ml=/<\/r>/,vl=/\r\n/g,function(t){return t.replace(gl,"").split(ml).map(wl).join("")});function wl(t){var e=[[],"",[]],n=t.match(fl);if(!L(n))return"";e[1]=n[1];n=t.match(pl);return L(n)&&function(t,e,n){var i={},r=65001,a=t.match(I),s=0;if(a)for(;s!=a.length;++s){var o=A(a[s]);switch(o[0]){case"":break;case"":break;case"":i.strike=1;break;case"":break;case"":i.u=1;break;case"":break;case"":i.b=1;break;case"":break;case"":i.i=1;break;case"":break;case"'),n.push("")}(n[1],e[0],e[2]),e[0].join("")+e[1].replace(vl,"
      ")+e[2].join("")}var _l=/]*>([^<]*)<\/t>/g,Cl=//;function Sl(t,e){var e=!e||e.cellHTML,n={};return t?(116===t.charCodeAt(1)?(n.t=$(z(t.substr(t.indexOf(">")+1).split(/<\/t>/)[0])),n.r=t,e&&(n.h=n.t)):t.match(Cl)&&(n.r=t,n.t=$(z(t.match(_l).join("").replace(I,""))),e)&&(n.h=yl(t)),n):null}var xl=/]*)>([\s\S]*)<\/sst>/,Tl=/<(?:si|sstItem)>/g,kl=/<\/(?:si|sstItem)>/;y.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var El=/^\s|\s$|[\t\n\r]/;function Dl(t,e){if(!e.bookSST)return"";var n=[Lt];n[n.length]=v("sst",null,{xmlns:P.main[0],count:t.Count,uniqueCount:t.Unique});for(var i,r,a=0;a!=t.length;++a)null!=t[a]&&(r="",(i=t[a]).r?r+=i.r:(r+=""),n[n.length]=r+="");return 2",n[1]=n[1].replace("/>",">")),n.join("")}var Il=function(t,e){return(e=null==e?s(5+2*t.t.length):e).write_shift(1,0),ce(t.t,e),e};function Al(t,e){var n,i,r=ne();b(r,"BrtBeginSst",(n=t,(i=i||s(8)).write_shift(4,n.Count),i.write_shift(4,n.Unique),i));for(var a=0;a>8),t=n[n.length-1],a[--r]=Fl(t,255&i));0>8),a[--r]=Fl(n[r],255&i);for(e=(r=15)-n.length;0>8),--e,a[--r]=Fl(n[r],255&i),--r,--e;return a};function Fl(t,e){return 255&((t=t^e)/2|128*t)}var Ll=function(t){var e=0,n=Nl(t);return function(t){t=function(t,e,n,i,r){var a,s;for(r=r||e,i=i||Nl(t),a=0;a!=e.length;++a)s=e[a],s^=i[n],r[a]=255&(s>>5|s<<3),++n;return[r,n,i]}(null,t,e,n);return e=t[1],t[0]}};function Hl(t,e,n,i){t={key:f(t),verificationBytes:f(t)};n.password&&(t.verifier=function(t){var e,n=0,i=$l(t),r=i.length+1,a=x(r);for(a[0]=i.length,e=1;e!=r;++e)a[e]=i[e-1];for(e=r-1;0<=e;--e)n=((0==(16384&n)?0:1)|n<<1&32767)^a[e];return 52811^n}(n.password)),i.valid=t.verificationBytes===t.verifier,i.valid&&(i.insitu_decrypt=Ll(n.password))}function zl(t,e,n){n=n||{};n.Info=t.read_shift(2),t.l-=2,1===n.Info?n.Data=function(t){var e={},n=e.EncryptionVersionInfo=Pl(t);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return e.Salt=t.read_shift(16),e.EncryptedVerifier=t.read_shift(16),e.EncryptedVerifierHash=t.read_shift(16),e}(t):n.Data=Bl(t,e)}function Ul(t){for(var e=0,n=1;3!=e;++e)n=256*n+(255]*)>.*<\/numFmts>/,Ql=/]*)>.*<\/cellXfs>/,tc=/]*)>.*<\/fills>/;var Jl,Ql,tc,ec=function(t,e){var n,i,r,a;if(n=t.match(Jl)){var s=n,o=e;B.NumberFmt=[];for(var l=E(V._table),c=0;c":case"":case"":break;case"":case"":case"":break;case"":B.Fills.push(r),r={};break;case"":case"":break;case"":case"":break;case"":case"":break;default:if(i.WTF)throw"unrecognized "+e[0]+" in fills"}})),(n=t.match(Ql))&&(t=n,a=e,B.CellXf=[],t[0].match(I).forEach(function(t){var e=A(t);switch(e[0]){case"":case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case""],[[5,8],[23,26],[41,44],[63,66],[164,392]].forEach(function(t){for(var e=t[0];e<=t[1];++e)void 0!==n[e]&&(i[i.length]=v("numFmt",null,{numFmtId:e,formatCode:bt(n[e])}))}),t=1===i.length?"":(i[i.length]="",i[0]=v("numFmts",null,{count:i.length-2}).replace("/>",">"),i.join("")))&&(a[a.length]=t),a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',e=e.cellXfs,(r=[])[r.length]="",e.forEach(function(t){r[r.length]=v("xf",null,t)}),r[r.length]="",(t=2===r.length?"":(r[0]=v("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join("")))&&(a[a.length]=t),a[a.length]='',a[a.length]='',a[a.length]='',2",a[1]=a[1].replace("/>",">")),a.join("")}function rc(t,e){var n=ne();return b(n,"BrtBeginStyleSheet"),b(n,"BrtEndStyleSheet"),n.end()}function ac(t,n){O.themeElements.clrScheme=[];var i={};t[0].match(I).forEach(function(t){var e=A(t);switch(e[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===e[0][1]?(O.themeElements.clrScheme.push(i),i={}):i.name=e[0].substring(3,e[0].length-1);break;default:if(n.WTF)throw"unrecognized "+e[0]+" in clrScheme"}})}function sc(t,e){}function oc(t,e){}y.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",y.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var lc=/]*)>[^\u2603]*<\/a:clrScheme>/,cc=/]*)>[^\u2603]*<\/a:fontScheme>/,uc=/]*)>[^\u2603]*<\/a:fmtScheme>/;var hc=/]*)>[^\u2603]*<\/a:themeElements>/;function dc(t,e){if(t&&0!==t.length){var n,i,r;if(!(t=t.match(hc)))throw"themeElements not found in theme";n=t[0],i=e,O.themeElements={},[["clrScheme",lc,ac],["fontScheme",cc,sc],["fmtScheme",uc,oc]].forEach(function(t){if(!(r=n.match(t[1])))throw t[0]+" not found in themeElements";t[2](r,i)})}return O}function fc(t){var e={};switch(e.xclrType=t.read_shift(2),e.nTintShade=t.read_shift(2),e.xclrType){case 0:t.l+=4;break;case 1:e.xclrValue=o(t,4);break;case 2:e.xclrValue=hn(t);break;case 3:e.xclrValue=t.read_shift(4);break;case 4:t.l+=4}return t.l+=8,e}function pc(t){var e=t.read_shift(2),n=t.read_shift(2),i=[e];switch(e){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:i[1]=fc(t);break;case 6:i[1]=o(t,n);break;case 14:case 15:i[1]=t.read_shift(5===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+e+" "+n)}return i}function gc(t,e,n,i,r){for(var a,s,o=0;o!=e.length;++o){var l=e[o],c=(a=D(t,l.replace(/^\//,""),!0),s=r,(".bin"===l.substr(-4)?yc:mc)(a,s));if(c&&c.length)for(var u=E(n),h=0;h!=u.length;++h){var d=u[h],f=i[d];f&&f[l]&&!function(r,t){t.forEach(function(t){var e,n=r[t.ref],i=(n||(r[t.ref]=n={},i=C(r["!ref"]||"BDWGO1000001:A1"),e=ph(t.ref),i.s.r>e.r&&(i.s.r=e.r),i.e.re.c&&(i.s.c=e.c),i.e.c/)?[]:(a=[],s=[],t.match(/<(?:\w+:)?authors>([^\u2603]*)<\/(?:\w+:)?authors>/)[1].split(/<\/\w*:?author>/).forEach(function(t){""!==t&&""!==t.trim()&&a.push(t.match(/<(?:\w+:)?author[^>]*>(.*)/)[1])}),(t.match(/<(?:\w+:)?commentList>([^\u2603]*)<\/(?:\w+:)?commentList>/)||["",""])[1].split(/<\/\w*:?comment>/).forEach(function(t,e){var n,i;""===t||""===t.trim()||(n={author:(i=A(t.match(/<(?:\w+:)?comment[^>]*>/)[0])).authorId&&a[i.authorId]?a[i.authorId]:void 0,ref:i.ref,guid:i.guid},i=ph(i.ref),r.sheetRows&&r.sheetRows<=i.r)||(i=t.match(/([^\u2603]*)<\/text>/))&&i[1]&&(t=Sl(i[1]),n.r=t.r,n.t=t.t,r.cellHTML&&(n.h=t.h),s.push(n))}),s)}var vc=d,bc=oe;function yc(t,i){var r=[],a=[],s={};return ee(t,function(t,e,n){switch(e.n){case"BrtCommentAuthor":a.push(t);break;case"BrtBeginComment":s=t;break;case"BrtCommentText":s.t=t.t,s.h=t.h,s.r=t.r;break;case"BrtEndComment":s.author=a[s.iauthor],delete s.iauthor,i.sheetRows&&i.sheetRows<=s.rfx.r||(delete s.rfx,r.push(s));break;case"BrtBeginComments":case"BrtEndComments":case"BrtBeginCommentAuthors":case"BrtEndCommentAuthors":case"BrtBeginCommentList":case"BrtEndCommentList":break;default:throw new Error("Unexpected record "+n+" "+e.n)}}),r}_c=/(^|[^A-Za-z])R(\[?)(-?\d+|)\]?C(\[?)(-?\d+|)\]?/g;var wc,_c,Cc=function(t,e){return wc=e,t.replace(_c,Sc)};function Sc(t,e,n,i,r,a){i=0>14&1,t>>15&1]}function Tc(t){var e=t.read_shift(2),n=t.read_shift(2),i=xc(t),t=xc(t);return{s:{r:e,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:t[0],cRel:t[1],rRel:t[2]}}}function kc(t){var e=t.read_shift(2),t=xc(t);return{r:e,c:t[0],cRel:t[1],rRel:t[2]}}function Ec(t){return[t.read_shift(1),t.read_shift(1)]}function Dc(t,e){t.l+=Ic}var Ic;Ic=4;function Ac(t){for(var e=1+t.read_shift(1),n=1+t.read_shift(2),i=0,r=[];i!=n&&(r[i]=[]);++i)for(var a=0;a!=e;++a)r[i][a]=function(t){var e=[];switch(e[0]=t.read_shift(1)){case 4:e[1]=w(t,1)?"TRUE":"FALSE",t.l+=7;break;case 16:e[1]=pe[t[t.l]],t.l+=8;break;case 0:t.l+=8;break;case 1:e[1]=c(t);break;case 2:e[1]=sn(t)}return e}(t);return r}var $c,Pc={1:{n:"PtgExp",f:function(t,e){return t.l++,[t.read_shift(2),t.read_shift(2)]}},2:{n:"PtgTbl",f:o},3:{n:"PtgAdd",f:t},4:{n:"PtgSub",f:t},5:{n:"PtgMul",f:t},6:{n:"PtgDiv",f:t},7:{n:"PtgPower",f:t},8:{n:"PtgConcat",f:t},9:{n:"PtgLt",f:t},10:{n:"PtgLe",f:t},11:{n:"PtgEq",f:t},12:{n:"PtgGe",f:t},13:{n:"PtgGt",f:t},14:{n:"PtgNe",f:t},15:{n:"PtgIsect",f:t},16:{n:"PtgUnion",f:t},17:{n:"PtgRange",f:t},18:{n:"PtgUplus",f:t},19:{n:"PtgUminus",f:t},20:{n:"PtgPercent",f:t},21:{n:"PtgParen",f:t},22:{n:"PtgMissArg",f:t},23:{n:"PtgStr",f:function(t,e){return t.l++,rn(t)}},28:{n:"PtgErr",f:function(t,e){return t.l++,pe[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t,e){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function(t,e){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t,e){return t.l++,c(t)}},32:{n:"PtgArray",f:function(t,e){var n=(96&t[t.l++])>>5;return t.l+=7,[n]}},33:{n:"PtgFunc",f:function(t,e){return t[t.l],t[t.l],t.l+=1,t=t.read_shift(2),[Vc[t],Wc[t]]}},34:{n:"PtgFuncVar",f:function(t,e){t.l++;var n=t.read_shift(1),t=[t[t.l+1]>>7,32767&t.read_shift(2)];return[n,(0===t[0]?Wc:Uc)[t[1]]]}},35:{n:"PtgName",f:function(t,e){return[t.read_shift(1)>>>5&3,0,t.read_shift(4)]}},36:{n:"PtgRef",f:function(t,e){t[t.l];var n=(96&t[t.l])>>5;return t.l+=1,[n,kc(t)]}},37:{n:"PtgArea",f:function(t,e){return[(96&t[t.l++])>>5,Tc(t)]}},38:{n:"PtgMemArea",f:function(t,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,[n,t.read_shift(2)]}},39:{n:"PtgMemErr",f:o},40:{n:"PtgMemNoMem",f:o},41:{n:"PtgMemFunc",f:function(t,e){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},42:{n:"PtgRefErr",f:function(t,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,[n]}},43:{n:"PtgAreaErr",f:function(t,e){var n=(96&t[t.l++])>>5;return t.l+=8,[n]}},44:{n:"PtgRefN",f:function(t,e){t[t.l];var n=(96&t[t.l])>>5;return t.l+=1,[n,function(t){var e=t.read_shift(2),n=t.read_shift(2),t=(32768&n)>>15,i=(16384&n)>>14;if(n&=16383,0!=t)for(;256<=n;)n-=256;return{r:e,c:n,cRel:t,rRel:i}}(t)]}},45:{n:"PtgAreaN",f:function(t,e){var n,i,r,a=(96&t[t.l++])>>5;return n=(t=t).read_shift(2),i=t.read_shift(2),r=xc(t),t=xc(t),[a,{s:{r:n,c:r[0],cRel:r[1],rRel:r[2]},e:{r:i,c:t[0],cRel:t[1],rRel:t[2]}}]}},57:{n:"PtgNameX",f:function(t,e){return[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,e){t[t.l];var n=(96&t[t.l])>>5;return t.l+=1,[n,t.read_shift(2),kc(t)]}},59:{n:"PtgArea3d",f:function(t,e){return[(96&t[t.l++])>>5,t.read_shift(2),Tc(t)]}},60:{n:"PtgRefErr3d",f:o},61:{n:"PtgAreaErr3d",f:function(t,e){var n=(96&t[t.l++])>>5,i=t.read_shift(2);return t.l+=8,[n,i]}},255:{}},Bc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};for($c in Bc)Pc[$c]=Pc[Bc[$c]];var Oc={},Mc={1:{n:"PtgAttrSemi",f:function(t,e){var n=255&t[t.l+1]?1:0;return t.l+=4,[n]}},2:{n:"PtgAttrIf",f:function(t,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},4:{n:"PtgAttrChoose",f:function(t,e){t.l+=2;for(var n=t.read_shift(2),i=[],r=0;r<=n;++r)i.push(t.read_shift(2));return i}},8:{n:"PtgAttrGoto",f:function(t,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},16:{n:"PtgAttrSum",f:Dc},32:{n:"PtgAttrBaxcel",f:function(t,e){var n=1&t[t.l+1];return t.l+=4,[n,1]}},64:{n:"PtgAttrSpace",f:function(t,e){return t.read_shift(2),Ec(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t,e){return t.read_shift(2),Ec(t)}},255:{}};function Rc(t,e,n){var i=fn(t),r=function(t){var e;if(65535!==Xt(t,t.l+6))return[c(t),"n"];switch(t[t.l]){case 0:return t.l+=8,["String","s"];case 1:return e=1===t[t.l+2],t.l+=8,[e,"b"];case 2:return e=t[t.l+2],t.l+=8,[e,"e"];case 3:return t.l+=8,["","s"]}}(t),a=t.read_shift(1),s=(t.read_shift(1),t.read_shift(4),"");return 5===n.biff?t.l+=e-20:s=function(t,e,n){t.l;var i,r=t.read_shift(2);if(65535==r)return[[],o(t,e-2)];var a=Fc(t,r);e!==r+2&&(i=Nc(t,e-r-2,a,n));return[a,i]}(t,e-20,n),{cell:i,val:r[0],formula:s,shared:a>>3&1,tt:r[1]}}function Nc(t,e,n,i){if(i.biff<8)return o(t,e);for(var i=t.l+e,r=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Ac(t),r.push(n[a][1]);break;case"PtgMemArea":n[a][2]=function(t){for(var e=t.read_shift(2),n=[],i=0;i!=e;++i)n.push(mn(t));return n}(t,n[a][1]),r.push(n[a][2])}return 0!==(e=i-t.l)&&r.push(o(t,e)),r}function Fc(t,e){for(var n,i,r=t.l+e,a=[];r!=t.l;)e=r-t.l,i=t[t.l],n=Pc[i],(n=24!==i&&25!==i?n:(24===(i=t[t.l+1])?Oc:Mc)[i])&&n.f?a.push([n.n,n.f(t,e)]):a.push(o(t,e));return a}function Lc(t){return t.map(function(t){return t[1]}).join(",")}function Hc(t,e,n,i,r){if(void 0!==r&&5===r.biff)return"BIFF5??";var a,s,o,l=void 0!==e?e:{s:{c:0,r:0}},c=[];if(!t[0]||!t[0][0])return"";for(var u=0,h=t[0].length;u="+_);break;case"PtgGt":_=c.pop(),a=c.pop(),c.push(a+">"+_);break;case"PtgNe":_=c.pop(),a=c.pop(),c.push(a+"<>"+_);break;case"PtgIsect":_=c.pop(),a=c.pop(),c.push(a+" "+_);break;case"PtgUnion":_=c.pop(),a=c.pop(),c.push(a+","+_);break;case"PtgRange":case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":break;case"PtgRef":d[1][0],y=ie(ph(q(d[1][1])),l),c.push(q(y));break;case"PtgRefN":d[1][0],y=ie(ph(q(d[1][1])),n),c.push(q(y));break;case"PtgRef3d":d[1][0],s=d[1][1],y=ie(d[1][2],l),c.push(i[1][s+1]+"!"+q(y));break;case"PtgFunc":case"PtgFuncVar":var f=d[1][0],p=d[1][1],f=f||0,g=c.slice(-f);c.length-=f,"User"===p&&(p=g.shift()),c.push(p+"("+g.join(",")+")");break;case"PtgBool":c.push(d[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(d[1]);break;case"PtgNum":c.push(String(d[1]));break;case"PtgStr":c.push('"'+d[1]+'"');break;case"PtgErr":c.push(d[1]);break;case"PtgArea":d[1][0],f=d[1][1],p=l,f.s=ie(f.s,p.s),f.e=ie(f.e,p.s),o=f,c.push(X(o));break;case"PtgArea3d":d[1][0],s=d[1][1],o=d[1][2],c.push(i[1][s+1]+"!"+X(o));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":var m=d[1][2],g=i[0][m].Name;g in jc&&(g=jc[g]),c.push(g);break;case"PtgNameX":var v,b=d[1][1];m=d[1][2],i[b+1]?v=i[b+1][m]:i[b-1]&&(v=i[b-1][m]),c.push((v=v||{body:"??NAMEX??"}).body);break;case"PtgParen":c.push("("+c.pop()+")");break;case"PtgRefErr":c.push("#REF!");break;case"PtgExp":var y={c:d[1][1],r:d[1][0]},w={c:n.c,r:n.r};if(i.sharedf[q(y)]){b=i.sharedf[q(y)];c.push(Hc(b,l,w,i,r))}else{for(var _=0;_!=i.arrayf.length;++_)a=i.arrayf[_],y.ca[0].e.c||y.ra[0].e.r||c.push(Hc(a[1],l,w,i,r));c.push(d[1])}break;case"PtgArray":c.push("{"+d[1].map(Lc).join(";")+"}");break;case"PtgMemArea":case"PtgAttrSpace":case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":break;case"PtgAreaN":c.push("");break;case"PtgRefErr3d":case"PtgMemFunc":break;default:throw"Unrecognized Formula Token: "+d}}return c[0]}function zc(t,e){t.read_shift(4);return o(t,e-4)}var Uc={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Wc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD"},Vc={2:1,3:1,15:1,16:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,65:3,66:3,67:1,68:1,69:1,71:1,72:1,73:1,75:1,76:1,77:1,79:2,80:2,83:1,86:1,90:1,97:2,98:1,99:1,105:1,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,189:3,190:1,195:3,196:3,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,65535:0},jc={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFNA":"IFNA","_xlfn.IFERROR":"IFERROR","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"},Gc={},Yc={};function qc(t,e){for(var n=0,i=t.length;n/g,Jc=/<(?:\w+:)?sheetData>([^\u2603]*)<\/(?:\w+:)?sheetData>/,Qc=/]*\/>/g,tu=/"(\w*:\w*)"/,eu=/]*\/>/g;function nu(t,e,n){if(!t)return t;var i={},r=(0<(s=t.indexOf(""))for(var a=t.match(Zc),s=0;s!=a.length;++s)r[s]=C(a[s].substr(a[s].indexOf('"')+1));var o=[];if(e.cellStyles&&-1!==t.indexOf(""))for(var l=t.match(eu),c=o,u=l,h=!1,d=0;d!=u.length;++d){var f=A(u[d],!0),p=parseInt(f.min,10)-1,g=parseInt(f.max,10)-1;for(delete f.min,delete f.max,!h&&f.width&&(h=!0,function(t){if(Kl(t)!=t){for(_=Vl;Gl<_&&Kl(t)!==t;--_);if(_===Gl)for(_=Vl+1;_")&&function(t,e,n){for(var i=0;i!=e.length;++i){var r=A(e[i],!0);if(!r.ref)return;for(var a=n?n["!id"][r.id]:null,s=(a?(r.Target=a.Target,r.location&&(r.Target+="#"+r.location)):(r.Target=r.location,a={Target:r.location,TargetMode:"Internal"}),r.Rel=a,C(r.ref)),o=s.s.r;o<=s.e.r;++o)for(var l=s.s.c;l<=s.e.c;++l){var c=q({c:l,r:o});t[c]||(t[c]={t:"stub",v:void 0}),t[c].l=r}}}(i,t.match(Qc),n),!i["!ref"]&&m.e.c>=m.s.c&&m.e.r>=m.s.r&&(i["!ref"]=X(m)),0m.e.r&&(v.e.r=m.e.r),v.e.rm.e.c&&(v.e.c=m.e.c),v.e.c]/,ru=/<\/(?:\w+:)?row>/,au=/r=["']([^"']*)["']/,su=/([\S\s]*?)<\/is>/,ou=Tt("v"),lu=Tt("f");var iu,ru,au,su,ou,lu,cu=function(t,e,n,i){for(var r,a,s,o,l,c=0,u="",h=[],d=[],f=0,p=0,g="",m=0,v=0,b=0,y=0,w=Array.isArray(B.CellXf),_=t.split(ru),C=0,S=_.length;C!=S;++C){var x=(u=_[C].trim()).length;if(0!==x){for(c=0;cm-1&&(i.s.r=m-1),i.e.r":"")+u,null!==d&&2===d.length){for(g=d[1],p=f=0;p!=g.length&&!((r=g.charCodeAt(p)-64)<1||26f&&(i.s.c=f),i.e.c"],a=0;a!=t.length;++a)(e=t[a])&&(n={min:a+1,max:a+1},i=-1,e.wpx?i=ql(e.wpx):e.wch&&(i=e.wch),-1",void 0!==n["!ref"]&&0<(e=uu(n,e)).length&&(i[i.length]=e),t+1",i[t]=i[t].replace("/>",">")),void 0!==n["!merges"]&&0',n=0;n!=t.length;++n)e+='';return e+""}(n["!merges"])),2",i[1]=i[1].replace("/>",">")),i.join("")}var fu=fe,pu=function(t,e){return(e=e||s(16)).write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e};function gu(t,e,n){return null==n&&(n=s(8)),e=e,(n=null==(n=n)?s(8):n).write_shift(-4,e.c),n.write_shift(3,void 0===e.iStyleRef?e.iStyleRef:e.s),n.write_shift(1,0),n}var mu=fe;function vu(t,i,r){if(!t)return t;r=r||{"!id":{}};var a,s,o,l,c,u,h,d,f={},p={s:{r:1e6,c:1e6},e:{r:0,c:0}},g=!1,m=!1,v=[];return ee(t,function(t,e){if(!m)switch(e.n){case"BrtWsDim":a=t;break;case"BrtRowHdr":s=t,i.sheetRows&&i.sheetRows<=s.r&&(m=!0),d=W(s.r);break;case"BrtFmlaBool":case"BrtFmlaError":case"BrtFmlaNum":case"BrtFmlaString":case"BrtCellBool":case"BrtCellError":case"BrtCellIsst":case"BrtCellReal":case"BrtCellRk":case"BrtCellSt":switch(o={t:t[2]},t[2]){case"n":o.v=t[1];break;case"s":h=Gc[t[1]],o.v=h.t,o.r=h.r;break;case"b":o.v=!!t[1];break;case"e":o.v=t[1],o.w=pe[o.v];break;case"str":o.t="s",o.v=$(t[1])}i.cellFormula&&3s.r&&(p.s.r=s.r),p.s.c>c&&(p.s.c=c),p.e.rs.r&&(p.s.r=s.r),p.s.c>c&&(p.s.c=c),p.e.rp.e.r&&(t.e.r=p.e.r),t.e.rp.e.c&&(t.e.c=p.e.c),t.e.c":break;case"":break;case"":break;case"":delete e[0],i.WBProps=e;break;case"":break;case"":case"":break;case"":case"":break;case"":case"":case"":case"":break;case"":case"":r=!1;break;case"":case"":break;case"":delete e[0],i.CalcPr=e;break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":break;case"":case"":case"":case"":case"":break;case"":r=!1;break;case"":r=!1;break;default:if(!r&&n.WTF)throw"unrecognized "+e[0]+" in workbook"}}),-1===P.main.indexOf(i.xmlns))throw new Error("Unknown Namespace: "+i.xmlns);return ku(i),i}var Iu=v("workbook",null,{xmlns:P.main[0],"xmlns:r":P.r});function Au(t,e){var n=[Lt];n[n.length]=Iu,n[n.length]=v("workbookPr",null,{date1904:function(t){try{return Ct(t.Workbook.WBProps.date1904)?"true":"false"}catch(t){return"false"}}(t)}),n[n.length]="";for(var i=0;i!=t.SheetNames.length;++i)n[n.length]=v("sheet",null,{name:t.SheetNames[i].substr(0,31),sheetId:""+(i+1),"r:id":"rId"+(i+1)});return n[n.length]="",2",n[1]=n[1].replace("/>",">")),n.join("")}function $u(t,e){b(t,"BrtBeginBundleShs");for(var n,i=0;i!=e.SheetNames.length;++i){var r={hsState:0,iTabID:i+1,strRelID:"rId"+(i+1),name:e.SheetNames[i]};b(t,"BrtBundleSh",(r=r,(n=(n=void 0)||s(127)).write_shift(4,r.hsState),n.write_shift(4,r.iTabID),he(r.strRelID,n),ce(r.name.substr(0,31),n),n))}b(t,"BrtEndBundleShs")}function Pu(t,e){var n;return(e=e||s(26)).write_shift(4,0),e.write_shift(4,1),e.write_shift(4,0),n=0,(e||s(8)).write_shift(8,"f",n),e.write_shift(-4,1023),e.write_shift(1,51),e.write_shift(1,0),e}function Bu(t,e){var n,i,r=ne();return b(r,"BrtBeginBook"),b(r,"BrtFileVersion",function(t){t=t||s(127);for(var e=0;4!=e;++e)t.write_shift(4,0);return ce("SheetJS",t),ce(a.version,t),ce(a.version,t),ce("7262",t),t.length=t.l,t}()),b(r,"BrtWbProp",((n=n||s(8)).write_shift(4,0),n.write_shift(4,0),n)),b(n=r,"BrtBeginBookViews"),b(n,"BrtEndBookViews"),$u(r,t),b(r,"BrtCalcProp",Pu()),b(r,"BrtFileRecover",((i=i||s(1)).write_shift(1,0),i)),b(r,"BrtEndBook"),r.end()}function Ou(t,e,n){return(".bin"===e.substr(-4)?function(t,n){var i={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=!1;return ee(t,function(t,e){switch(e.n){case"BrtBundleSh":i.Sheets.push(t);break;case"BrtBeginBook":case"BrtFileVersion":case"BrtWbProp":case"BrtACBegin":case"BrtAbsPath15":case"BrtACEnd":case"BrtWbFactoid":case"BrtBookProtection":case"BrtBeginBookViews":case"BrtBookView":case"BrtEndBookViews":case"BrtBeginBundleShs":case"BrtEndBundleShs":case"BrtBeginFnGroup":case"BrtEndFnGroup":case"BrtBeginExternals":case"BrtSupSelf":case"BrtSupBookSrc":case"BrtExternSheet":case"BrtEndExternals":case"BrtName":case"BrtCalcProp":case"BrtUserBookView":case"BrtBeginPivotCacheIDs":case"BrtBeginPivotCacheID":case"BrtEndPivotCacheID":case"BrtEndPivotCacheIDs":case"BrtWebOpt":case"BrtFileRecover":case"BrtFileSharing":case"BrtBeginSmartTagTypes":case"BrtSmartTagType":case"BrtEndSmartTagTypes":break;case"BrtFRTBegin":r=!0;break;case"BrtFRTArchID$":case"BrtWorkBookPr15":break;case"BrtFRTEnd":r=!1;break;case"BrtEndBook":break;default:if(!r||n.WTF)throw new Error("Unexpected record "+e.n)}}),ku(i),i}:Du)(t,n)}function Mu(t,e,n){return(".bin"===e.substr(-4)?function(t,i){for(var e in B.NumberFmt=[],V._table)B.NumberFmt[e]=V._table[e];B.CellXf=[];var r="",a=!1;return ee(t,function(t,e,n){switch(e.n){case"BrtFmt":B.NumberFmt[t[0]]=t[1],V.load(t[1],t[0]);break;case"BrtFont":case"BrtKnownFonts":case"BrtFill":case"BrtBorder":break;case"BrtXF":"CELLXFS"===r&&B.CellXf.push(t);break;case"BrtStyle":case"BrtDXF":case"BrtMRUColor":case"BrtIndexedColor":case"BrtBeginStyleSheet":case"BrtEndStyleSheet":case"BrtBeginTableStyle":case"BrtTableStyleElement":case"BrtEndTableStyle":break;case"BrtBeginFmts":r="FMTS";break;case"BrtEndFmts":r="";break;case"BrtBeginFonts":r="FONTS";break;case"BrtEndFonts":r="";break;case"BrtACBegin":r="ACFONTS";break;case"BrtACEnd":r="";break;case"BrtBeginFills":r="FILLS";break;case"BrtEndFills":r="";break;case"BrtBeginBorders":r="BORDERS";break;case"BrtEndBorders":r="";break;case"BrtBeginCellStyleXFs":r="CELLSTYLEXFS";break;case"BrtEndCellStyleXFs":r="";break;case"BrtBeginCellXFs":r="CELLXFS";break;case"BrtEndCellXFs":r="";break;case"BrtBeginStyles":r="STYLES";break;case"BrtEndStyles":r="";break;case"BrtBeginDXFs":r="DXFS";break;case"BrtEndDXFs":r="";break;case"BrtBeginTableStyles":r="TABLESTYLES";break;case"BrtEndTableStyles":r="";break;case"BrtBeginColorPalette":r="COLORPALETTE";break;case"BrtEndColorPalette":r="";break;case"BrtBeginIndexedColors":r="INDEXEDCOLORS";break;case"BrtEndIndexedColors":r="";break;case"BrtBeginMRUColors":r="MRUCOLORS";break;case"BrtEndMRUColors":r="";break;case"BrtFRTBegin":a=!0;break;case"BrtFRTEnd":a=!1;break;case"BrtBeginStyleSheetExt14":case"BrtBeginSlicerStyles":case"BrtEndSlicerStyles":case"BrtBeginTimelineStylesheetExt15":case"BrtEndTimelineStylesheetExt15":case"BrtBeginTimelineStyles":case"BrtEndTimelineStyles":case"BrtEndStyleSheetExt14":break;default:if(!a||i.WTF)throw new Error("Unexpected record "+n+" "+e.n)}}),B}:ec)(t,n)}function Ru(t,e,n){return(".bin"===e.substr(-4)?function(t,i){var r=[],a=!1;return ee(t,function(t,e,n){switch(e.n){case"BrtBeginSst":r.Count=t[0],r.Unique=t[1];break;case"BrtSSTItem":r.push(t);break;case"BrtEndSst":return 1;case"BrtFRTBegin":a=!0;break;case"BrtFRTEnd":a=!1;break;default:if(!a||i.WTF)throw new Error("Unexpected record "+n+" "+e.n)}}),r}:function(t,e){var n=[];if(L(t=t.match(xl))){for(var i=t[2].replace(Tl,"").split(kl),r=0;r!=i.length;++r){var a=Sl(i[r],e);null!=a&&(n[n.length]=a)}t=A(t[1]),n.Count=t.count,n.Unique=t.uniqueCount}return n})(t,n)}function Nu(t,e,n){return(".bin"===e.substr(-4)?function(t,e){var i=[];return ee(t,function(t,e,n){switch(e.n){case"BrtCalcChainItem$":i.push(t);break;case"BrtBeginCalcChain$":case"BrtEndCalcChain$":break;default:throw new Error("Unexpected record "+n+" "+e.n)}}),i}:function(t,e){var n=[],i=1;return(t.match(I)||[]).forEach(function(t){var e=A(t);switch(e[0]){case"":case"":break;case"]*>/gm;function Wu(t,e){var n,i,r,a,s,o,l,c,u,h=function(t){if(H&&Buffer.isBuffer(t))return t.toString("utf8");if("string"==typeof t)return t;throw"badf"}(t),d=[],f={},p=[],g={},m="",v={},b={},y=0,w=0,_={s:{r:1e6,c:1e6},e:{r:0,c:0}},C={},S={},x="",T=0,k=[],E={},R={},D=0,N={},I=[],A={},$=[];for(Uu.lastIndex=0;n=Uu.exec(h);)switch(n[3]){case"Data":d[d.length-1][1]||("/"===n[1]?function(t,e,n,i,r,a,s,o,l){var c="General",u=i.StyleID,h={},d=(l=l||{},[]);for(void 0===(u=void 0===u&&o?o.StyleID:u)&&s&&(u=s.StyleID);void 0!==a[u]&&(a[u].nf&&(c=a[u].nf),a[u].Interior&&d.push(a[u].Interior),a[u].Parent);)u=a[u].Parent;switch(n.Type){case"Boolean":i.t="b",i.v=Ct(t);break;case"String":i.t="s",i.r=wt(z(t)),i.v=-1w)&&void 0!==v.v&&(g[Y(y)+W(w)]=v),v.HRef&&(v.l={Target:v.HRef,tooltip:v.HRefScreenTip},v.HRef=v.HRefScreenTip=void 0),(v.MergeAcross||v.MergeDown)&&(l=y+(0|parseInt(v.MergeAcross,10)),c=w+(0|parseInt(v.MergeDown,10)),k.push({s:{c:y,r:w},e:{c:l,r:c}})),++y,v.MergeAcross&&(y+=+v.MergeAcross)):((y=(v=function(t){var e=t.split(/\s+/),n={};if(1!==e.length){var i,r,a,s=t.match(Fu);if(s)for(a=0;a!=s.length;++a)-1===(r=(i=s[a].match(Lu))[1].indexOf(":"))?n[i[1]]=i[2].substr(1,i[2].length-2):n["xmlns:"===i[1].substr(0,6)?"xmlns"+i[1].substr(6):i[1].substr(r+1)]=i[2].substr(1,i[2].length-2)}return n}(n[0])).Index?+v.Index-1:y)<_.s.c&&(_.s.c=y),y>_.e.c&&(_.e.c=y),"/>"===n[0].substr(-2)&&++y,I=[]);break;case"Row":"/"===n[1]||"/>"===n[0].substr(-2)?(w<_.s.r&&(_.s.r=w),w>_.e.r&&(_.e.r=w),"/>"===n[0].substr(-2)&&(b=U(n[0])).Index&&(w=+b.Index-1),y=0,++w):(b=U(n[0])).Index&&(w=+b.Index-1);break;case"Worksheet":if("/"===n[1]){if((i=d.pop())[0]!==n[3])throw"Bad state: "+i;p.push(m),_.s.r<=_.e.r&&_.s.c<=_.e.c&&(g["!ref"]=X(_)),k.length&&(g["!merges"]=k),f[m]=g}else w=y=0,d.push([n[3],!(_={s:{r:1e6,c:1e6},e:{r:0,c:0}})]),m=(i=U(n[0])).Name,g={},k=[];break;case"Table":if("/"===n[1]){if((i=d.pop())[0]!==n[3])throw"Bad state: "+i}else{if("/>"==n[0].slice(-2))break;U(n[0]),d.push([n[3],!1]),$=[]}break;case"Style":"/"===n[1]?(l=C,c=S,(u=e).cellStyles&&c.Interior&&(u=c.Interior).Pattern&&(u.patternType=Zl[u.Pattern]||u.Pattern),l[c.ID]=c):S=U(n[0]);break;case"NumberFormat":S.nf=U(n[0]).Format||"General";break;case"Column":if("Table"===d[d.length-1][0]){$[(s=U(n[0])).Index-1||$.length]=s;for(var F=0;F<+s.Span;++F)$[$.length]=s}break;case"NamedRange":case"NamedCell":case"B":case"I":case"U":case"S":case"Sub":case"Sup":case"Span":case"Border":case"Alignment":case"Borders":break;case"Font":"/>"!==n[0].substr(-2)&&("/"===n[1]?x+=h.slice(T,n.index):T=n.index+n[0].length);break;case"Interior":e.cellStyles&&(S.Interior=U(n[0]));break;case"Protection":break;case"Author":case"Title":case"Description":case"Created":case"Keywords":case"Subject":case"Category":case"Company":case"LastAuthor":case"LastSaved":case"LastPrinted":case"Version":case"Revision":case"TotalTime":case"HyperlinkBase":case"Manager":"/>"!==n[0].substr(-2)&&("/"===n[1]?(u=E,o=n[3],B=h.slice(D,n.index),u[o="Description"===o?"Comments":o]=B):D=n.index+n[0].length);break;case"Paragraphs":break;case"Styles":case"Workbook":if("/"===n[1]){if((i=d.pop())[0]!==n[3])throw"Bad state: "+i}else d.push([n[3],!1]);break;case"Comment":if("/"===n[1]){if((i=d.pop())[0]!==n[3])throw"Bad state: "+i;(o=A).t=o.v,o.v=o.w=o.ixfe=void 0,I.push(A)}else d.push([n[3],!1]),i=U(n[0]),A={a:i.Author};break;case"Name":break;case"ComponentOptions":case"DocumentProperties":case"CustomDocumentProperties":case"OfficeDocumentSettings":case"PivotTable":case"PivotCache":case"Names":case"MapInfo":case"PageBreaks":case"QueryTable":case"DataValidation":case"AutoFilter":case"Sorting":case"Schema":case"data":case"ConditionalFormatting":case"SmartTagType":case"SmartTags":case"ExcelWorkbook":case"WorkbookOptions":case"WorksheetOptions":if("/"===n[1]){if((i=d.pop())[0]!==n[3])throw"Bad state: "+i}else"/"!==n[0].charAt(n[0].length-2)&&d.push([n[3],!0]);break;default:var P=!0;switch(d[d.length-1][0]){case"OfficeDocumentSettings":switch(n[3]){case"AllowPNG":case"RemovePersonalInformation":case"DownloadComponents":case"LocationOfComponents":case"Colors":case"Color":case"Index":case"RGB":case"PixelsPerInch":case"TargetScreenSize":case"ReadOnlyRecommended":break;default:P=!1}break;case"ComponentOptions":switch(n[3]){case"Toolbar":case"HideOfficeLogo":case"SpreadsheetAutoFit":case"Label":case"Caption":case"MaxHeight":case"MaxWidth":case"NextSheetNumber":break;default:P=!1}break;case"ExcelWorkbook":switch(n[3]){case"WindowHeight":case"WindowWidth":case"WindowTopX":case"WindowTopY":case"TabRatio":case"ProtectStructure":case"ProtectWindows":case"ActiveSheet":case"DisplayInkNotes":case"FirstVisibleSheet":case"SupBook":case"SheetName":case"SheetIndex":case"SheetIndexFirst":case"SheetIndexLast":case"Dll":case"AcceptLabelsInFormulas":case"DoNotSaveLinkValues":case"Date1904":case"Iteration":case"MaxIterations":case"MaxChange":case"Path":case"Xct":case"Count":case"SelectedSheets":case"Calculation":case"Uncalced":case"StartupPrompt":case"Crn":case"ExternName":case"Formula":case"ColFirst":case"ColLast":case"WantAdvise":case"Boolean":case"Error":case"Text":case"OLE":case"NoAutoRecover":case"PublishObjects":case"DoNotCalculateBeforeSave":case"Number":case"RefModeR1C1":case"EmbedSaveSmartTags":break;default:P=!1}break;case"WorkbookOptions":switch(n[3]){case"OWCVersion":case"Height":case"Width":break;default:P=!1}break;case"WorksheetOptions":switch(n[3]){case"Unsynced":case"Visible":case"Print":case"Panes":case"Scale":case"Pane":case"Number":case"Layout":case"Header":case"Footer":case"PageSetup":case"PageMargins":case"Selected":case"ProtectObjects":case"EnableSelection":case"ProtectScenarios":case"ValidPrinterInfo":case"HorizontalResolution":case"VerticalResolution":case"NumberofCopies":case"ActiveRow":case"ActiveCol":case"ActivePane":case"TopRowVisible":case"TopRowBottomPane":case"LeftColumnVisible":case"LeftColumnRightPane":case"FitToPage":case"RangeSelection":case"PaperSizeIndex":case"PageLayoutZoom":case"PageBreakZoom":case"FilterOn":case"DoNotDisplayGridlines":case"SplitHorizontal":case"SplitVertical":case"FreezePanes":case"FrozenNoSplit":case"FitWidth":case"FitHeight":case"CommentsLayout":case"Zoom":case"LeftToRight":case"Gridlines":case"AllowSort":case"AllowFilter":case"AllowInsertRows":case"AllowDeleteRows":case"AllowInsertCols":case"AllowDeleteCols":case"AllowInsertHyperlinks":case"AllowFormatCells":case"AllowSizeCols":case"AllowSizeRows":case"NoSummaryRowsBelowDetail":case"TabColorIndex":case"DoNotDisplayHeadings":case"ShowPageLayoutZoom":case"NoSummaryColumnsRightDetail":case"BlackAndWhite":case"DoNotDisplayZeros":case"DisplayPageBreak":case"RowColHeadings":case"DoNotDisplayOutline":case"NoOrientation":case"AllowUsePivotTables":case"ZeroHeight":case"ViewableRange":case"Selection":case"ProtectContents":break;default:P=!1}break;case"PivotTable":case"PivotCache":switch(n[3]){case"ImmediateItemsOnDrop":case"ShowPageMultipleItemLabel":case"CompactRowIndent":case"Location":case"PivotField":case"Orientation":case"LayoutForm":case"LayoutSubtotalLocation":case"LayoutCompactRow":case"Position":case"PivotItem":case"DataType":case"DataField":case"SourceName":case"ParentField":case"PTLineItems":case"PTLineItem":case"CountOfSameItems":case"Item":case"ItemType":case"PTSource":case"CacheIndex":case"ConsolidationReference":case"FileName":case"Reference":case"NoColumnGrand":case"NoRowGrand":case"BlankLineAfterItems":case"Hidden":case"Subtotal":case"BaseField":case"MapChildItems":case"Function":case"RefreshOnFileOpen":case"PrintSetTitles":case"MergeLabels":case"DefaultVersion":case"RefreshName":case"RefreshDate":case"RefreshDateCopy":case"VersionLastRefresh":case"VersionLastUpdate":case"VersionUpdateableMin":case"VersionRefreshableMin":case"Calculation":break;default:P=!1}break;case"PageBreaks":switch(n[3]){case"ColBreaks":case"ColBreak":case"RowBreaks":case"RowBreak":case"ColStart":case"ColEnd":case"RowEnd":break;default:P=!1}break;case"AutoFilter":switch(n[3]){case"AutoFilterColumn":case"AutoFilterCondition":case"AutoFilterAnd":case"AutoFilterOr":break;default:P=!1}break;case"QueryTable":switch(n[3]){case"Id":case"AutoFormatFont":case"AutoFormatPattern":case"QuerySource":case"QueryType":case"EnableRedirections":case"RefreshedInXl9":case"URLString":case"HTMLTables":case"Connection":case"CommandText":case"RefreshInfo":case"NoTitles":case"NextId":case"ColumnInfo":case"OverwriteCells":case"DoNotPromptForFile":case"TextWizardSettings":case"Source":case"Number":case"Decimal":case"ThousandSeparator":case"TrailingMinusNumbers":case"FormatSettings":case"FieldType":case"Delimiters":case"Tab":case"Comma":case"AutoFormatName":case"VersionLastEdit":case"VersionLastRefresh":break;default:P=!1}break;case"Sorting":case"ConditionalFormatting":case"DataValidation":switch(n[3]){case"Range":case"Type":case"Min":case"Max":case"Sort":case"Descending":case"Order":case"CaseSensitive":case"Value":case"ErrorStyle":case"ErrorMessage":case"ErrorTitle":case"CellRangeList":case"InputMessage":case"InputTitle":case"ComboHide":case"InputHide":case"Condition":case"Qualifier":case"UseBlank":case"Value1":case"Value2":case"Format":break;default:P=!1}break;case"MapInfo":case"Schema":case"data":switch(n[3]){case"Map":case"Entry":case"Range":case"XPath":case"Field":case"XSDType":case"FilterOn":case"Aggregate":case"ElementType":case"AttributeType":break;case"schema":case"element":case"complexType":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:P=!1}break;case"SmartTags":break;default:P=!1}if(!P){if(!d[d.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+d.join("|");if("CustomDocumentProperties"===d[d.length-1][0]){if("/>"!==n[0].substr(-2))if("/"===n[1]){M=O=L=B=void 0;var B=R,L=n,O=N,M=h.slice(D,n.index);switch((O[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":M=Ct(M);break;case"i2":case"int":M=parseInt(M,10);break;case"r4":case"float":M=parseFloat(M);break;case"date":case"dateTime.tz":M=new Date(M);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw"bad custprop:"+O[0]}B[z(L[3])]=M}else D=(N=n).index+n[0].length}else if(e.WTF)throw"Unrecognized tag: "+n[3]+"|"+d.join("|")}}t={};return e.bookSheets||e.bookProps||(t.Sheets=f),t.SheetNames=p,t.SSF=V.get_table(),t.Props=E,t.Custprops=R,t}function Vu(t,e,n){if(t.XF)try{var i=t.XF.ifmt||0;"e"===t.t?t.w=t.w||pe[t.v]:0===i?"n"===t.t?(0|t.v)===t.v?t.w=V._general_int(t.v):t.w=V._general_num(t.v):t.w=V._general(t.v):t.w=V.format(i,t.v,{date1904:n||!1}),e.cellNF&&(t.z=V._table[i])}catch(t){if(e.WTF)throw t}}function ju(t,e,n){return{v:t,ixfe:e,t:n}}function Gu(t,e){function n(t,e,n){var i,r,a;m&&(n.cellStyles&&e.XF&&e.XF.data&&(a=(i=e).XF.data)&&a.patternType&&(i.s={},i.s.patternType=a.patternType,(r=Ul(H(a.icvFore)))&&(i.s.fgColor={rgb:r}),r=Ul(H(a.icvBack)))&&(i.s.bgColor={rgb:r}),o=q(s=t),d.s&&(t.rd.e.r&&(d.e.r=t.r+1),t.c+1>d.e.c)&&(d.e.c=t.c+1),n.sheetRows&&s.r>=n.sheetRows?m=!1:u[o]=e)}var s,o,i,r,a,l={opts:{}},c={},u={},h={},d={},f=null,p=[],g="",R={},N={},F=[],m=!0,v=[],L=[],H=function(t){return!(t<8)&&t<64&&L[t-8]||Te[t]},b={enc:!1,sbcch:0,snames:[],sharedf:N,arrayf:F,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,wtf:!1},y=(e.password&&(b.password=e.password),[]),w=[],_=[[]],C=0,S=0,z=0,x=(_.SheetNames=b.snames,_.sharedf=b.sharedf,_.arrayf=b.arrayf,""),T=0;for(K(b.codepage=1200);t.l>6,a=t.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule"}return t=rn(t,0,n),{pos:i,hs:r,dt:a,name:t=0===t.length?"Sheet1":t}}},134:{n:"WriteProtect",f:Ti},140:{n:"Country",f:function(t,e){var n=[],i=t.read_shift(2);return n[0]=Ce[i]||i,i=t.read_shift(2),n[1]=Ce[i]||i,n}},141:{n:"HideObj",f:ni},144:{n:"Sort",f:Ui},146:{n:"Palette",f:function(t,e){for(var n=t.read_shift(2),i=[];0>2&1,n.data=Tn(t),n}},225:{n:"InterfaceHdr",f:function(t,e){if(0!==e&&1200!==(e=t.read_shift(2)))throw"InterfaceHdr codePage "+e;return 1200}},226:{n:"InterfaceEnd",f:ii},227:{n:"SXVS",f:Ir},229:{n:"MergeCells",f:function(t,e){for(var n=[],i=t.read_shift(2);i--;)n.push(mn(t));return n}},233:{n:"BkHim",f:Ar},235:{n:"MsoDrawingGroup",f:$r},236:{n:"MsoDrawing",f:Pr},237:{n:"MsoDrawingSelection",f:Br},239:{n:"PhoneticInfo",f:Or},240:{n:"SxRule",f:Mr},241:{n:"SXEx",f:Rr},242:{n:"SxFilt",f:Nr},244:{n:"SxDXF",f:Fr},245:{n:"SxItm",f:Lr},246:{n:"SxName",f:Hr},247:{n:"SxSelect",f:zr},248:{n:"SXPair",f:Ur},249:{n:"SxFmla",f:Wr},251:{n:"SxFormat",f:Vr},252:{n:"SST",f:function(t,e){for(var n,i,r,a,s,o,l,c,u,h=t.read_shift(4),d=t.read_shift(4),f=[],p=0;p!=d;++p)f.push((s=u=c=l=o=s=a=r=i=void 0,a=g,g=1200,s=(n=t).read_shift(2),o=4&(u=n.read_shift(1)),c={},(l=8&u)&&(i=n.read_shift(2)),o&&(r=n.read_shift(4)),u=1&u?"dbcs-cont":"sbcs-cont",s=0===s?"":n.read_shift(s,u),l&&(n.l+=4*i),o&&(n.l+=r),c.t=s,l||(c.raw=""+c.t+"",c.r=c.t),g=a,c));return f.Count=h,f.Unique=d,f}},253:{n:"LabelSst",f:function(t,e){var n=fn(t);return n.isst=t.read_shift(4),n}},255:{n:"ExtSST",f:function(t,e){var n={};return n.dsst=t.read_shift(2),t.l+=e-2,n}},256:{n:"SXVDEx",f:jr},259:{n:"SXFormula",f:Gr},290:{n:"SXDBEx",f:Yr},311:{n:"RRDInsDel",f:qr},312:{n:"RRDHead",f:Xr},315:{n:"RRDChgCell",f:Kr},317:{n:"RRTabId",f:mi},318:{n:"RRDRenSheet",f:Zr},319:{n:"RRSort",f:Jr},320:{n:"RRDMove",f:Qr},330:{n:"RRFormat",f:ta},331:{n:"RRAutoFmt",f:ea},333:{n:"RRInsertSh",f:na},334:{n:"RRDMoveBegin",f:ia},335:{n:"RRDMoveEnd",f:ra},336:{n:"RRDInsDelBegin",f:aa},337:{n:"RRDInsDelEnd",f:sa},338:{n:"RRDConflict",f:oa},339:{n:"RRDDefName",f:la},340:{n:"RRDRstEtxp",f:ca},351:{n:"LRng",f:ua},352:{n:"UsesELFs",f:Ci},353:{n:"DSF",f:Gn},401:{n:"CUsr",f:ha},402:{n:"CbUsr",f:da},403:{n:"UsrInfo",f:fa},404:{n:"UsrExcl",f:pa},405:{n:"FileLock",f:ga},406:{n:"RRDInfo",f:ma},407:{n:"BCUsrs",f:va},408:{n:"UsrChk",f:ba},425:{n:"UserBView",f:ya},426:{n:"UserSViewBegin",f:wa},427:{n:"UserSViewEnd",f:_a},428:{n:"RRDUserView",f:Ca},429:{n:"Qsi",f:Sa},430:{n:"SupBook",f:function(t,e,n){var i,e=t.l+e,r=t.read_shift(2),a=t.read_shift(2),e=(1<=a&&a<=255&&(i=an(t,a)),t.read_shift(e-t.l));return[n.sbcch=a,r,i,e]}},431:{n:"Prot4Rev",f:hi},432:{n:"CondFmt",f:xa},433:{n:"CF",f:Ta},434:{n:"DVal",f:ka},437:{n:"DConBin",f:Ea},438:{n:"TxO",f:function(e,n,t){var i=e.l;try{e.l+=4;for(var r=(t.lastobj||{cmo:[0,0]}).cmo[1],a=(-1==[0,5,7,11,12,14].indexOf(r)?e.l+=6:ln(e,6,t),e.read_shift(2)),s=(e.read_shift(2),_n(e,2),e.read_shift(2)),o=(e.l+=s,""),l=1;l=(c?a:2*a))break}if(o.length!==a&&o.length!==2*a)throw"cchText: "+a+" != "+o.length;return e.l=i+n,{t:o}}catch(t){return e.l=i+n,{t:o||""}}}},439:{n:"RefreshAll",f:pi},440:{n:"HLink",f:function(t,e){var n=mn(t);return t.l+=16,[n,function(t,e){var e=t.l+e,n=t.read_shift(4);if(2!==n)throw new Error("Unrecognized streamVersion: "+n);var i,r,a,s,n=t.read_shift(2),n=(t.l+=2,16&n&&un(t,e-t.l),128&n&&(i=un(t,e-t.l)),257==(257&n)&&(r=un(t,e-t.l)),1==(257&n)&&(a=cn(t,e-t.l)),8&n&&(s=un(t,e-t.l)),32&n&&t.read_shift(16),64&n&&Ve(t),t.l=e,i||r||a);return s&&(n+="#"+s),{Target:n}}(t,e-24)]}},441:{n:"Lel",f:Da},442:{n:"CodeName",f:Ia},443:{n:"SXFDBType",f:Aa},444:{n:"Prot4RevPass",f:di},445:{n:"ObNoMacros",f:$a},446:{n:"Dv",f:Pa},448:{n:"Excel9File",f:Xn},449:{n:"RecalcId",f:function(t,e){return t.read_shift(2),t.read_shift(4)},r:2},450:{n:"EntExU2",f:Yn},512:{n:"Dimensions",f:function(t,e){var e=10===e?2:4,n=t.read_shift(e),e=t.read_shift(e),i=t.read_shift(2),r=t.read_shift(2);return t.l+=2,{s:{r:n,c:i},e:{r:e,c:r}}}},513:{n:"Blank",f:Pn},515:{n:"Number",f:function(t,e){var n=fn(t),t=c(t);return n.val=t,n}},516:{n:"Label",f:xn},517:{n:"BoolErr",f:function(t,e){var n,i=fn(t),t=(n=(t=t).read_shift(1),1===t.read_shift(1)?n:1===n);return i.val=t,i.t=!0===t||!1===t?"b":"e",i}},519:{n:"String",f:yi},520:{n:"Row",f:function(t,e){var n=t.read_shift(2),i=t.read_shift(2),r=t.read_shift(2);return t.read_shift(2),t.read_shift(4),t.read_shift(1),t.read_shift(1),t.read_shift(2),{r:n,c:i,cnt:r-i}}},523:{n:"Index",f:Ba},545:{n:"Array",f:function(t,e,n){var i=bn(t,6);return t.l+=6,[i,function(t,e,n){var i,r=t.l+e,a=t.read_shift(2);if(65535==a)return[[],o(t,e-2)];var s=Fc(t,a);e!==a+2&&(i=Nc(t,r-a-2,s,n));return[s,i]}(t,e-=12,n)]}},549:{n:"DefaultRowHeight",f:function(t,e){var n=t.read_shift(2);return[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},t.read_shift(2)]}},566:{n:"Table",f:Oa},574:{n:"Window2",f:An},638:{n:"RK",f:function(t,e){var n=t.read_shift(2),i=t.read_shift(2),t=gn(t);return{r:n,c:i,ixfe:t[0],rknum:t[1]}}},659:{n:"Style",f:ae},1048:{n:"BigName",f:Ma},1054:{n:"Format",f:function(t,e,n){return[t.read_shift(2),on(t,0,n)]}},1084:{n:"ContinueBigName",f:Ra},1212:{n:"ShrFmla",f:function(t,e,n){vn(t),t.l++;var i=t.read_shift(1);return[function(t,e,n){var i,r=t.l+e,a=t.read_shift(2),s=Fc(t,a);if(65535==a)return[[],o(t,e-2)];e!==a+2&&(i=Nc(t,r-a-2,s,n));return[s,i]}(t,e-=8,n),i]}},2048:{n:"HLinkTooltip",f:function(t,e){t.l;return t.read_shift(2),[mn(t),t.read_shift((e-10)/2,"dbcs-cont").replace(j,"")]}},2049:{n:"WebPub",f:Na},2050:{n:"QsiSXTag",f:Fa},2051:{n:"DBQueryExt",f:La},2052:{n:"ExtString",f:Ha},2053:{n:"TxtQry",f:za},2054:{n:"Qsir",f:Ua},2055:{n:"Qsif",f:Wa},2056:{n:"RRDTQSIF",f:Va},2057:{n:"BOF",f:Cn},2058:{n:"OleDbConn",f:ja},2059:{n:"WOpt",f:Ga},2060:{n:"SXViewEx",f:Ya},2061:{n:"SXTH",f:qa},2062:{n:"SXPIEx",f:Xa},2063:{n:"SXVDTEx",f:Ka},2064:{n:"SXViewEx9",f:Za},2066:{n:"ContinueFrt",f:Ja},2067:{n:"RealTimeData",f:Qa},2128:{n:"ChartFrtInfo",f:ts},2129:{n:"FrtWrapper",f:es},2130:{n:"StartBlock",f:ns},2131:{n:"EndBlock",f:is},2132:{n:"StartObject",f:rs},2133:{n:"EndObject",f:as},2134:{n:"CatLab",f:ss},2135:{n:"YMult",f:os},2136:{n:"SXViewLink",f:ls},2137:{n:"PivotChartBits",f:cs},2138:{n:"FrtFontList",f:us},2146:{n:"SheetExt",f:hs},2147:{n:"BookExt",f:ds,r:12},2148:{n:"SXAddl",f:fs},2149:{n:"CrErr",f:ps},2150:{n:"HFPicture",f:gs},2151:{n:"FeatHdr",f:Kn},2152:{n:"Feat",f:ms},2154:{n:"DataLabExt",f:vs},2155:{n:"DataLabExtContents",f:bs},2156:{n:"CellWatch",f:ys},2161:{n:"FeatHdr11",f:ws},2162:{n:"Feature11",f:_s},2164:{n:"DropDownObjIds",f:Cs},2165:{n:"ContinueFrt11",f:Ss},2166:{n:"DConn",f:xs},2167:{n:"List12",f:Ts},2168:{n:"Feature12",f:ks},2169:{n:"CondFmt12",f:Es},2170:{n:"CF12",f:Ds},2171:{n:"CFEx",f:Is},2172:{n:"XFCRC",f:function(t,e){t.l+=2;var n={cxfs:0,crc:0};return n.cxfs=t.read_shift(2),n.crc=t.read_shift(4),n},r:12},2173:{n:"XFExt",f:function(t,e){t.l,t.l+=2;for(var n=t.read_shift(2),i=(t.l+=2,t.read_shift(2)),r=[];0]*>(.*)"));e&&0":n=null;break;default:if(0===s.indexOf(""),c=l[0].substring(4),u=l[1];switch(c){case"lpstr":case"lpwstr":case"bstr":case"lpwstr":i[n]=z(u);break;case"bool":i[n]=Ct(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":i[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":i[n]=parseFloat(u);break;case"filetime":case"date":i[n]=new Date(u);break;case"cy":case"error":i[n]=z(u);break;default:"undefined"!=typeof console&&console.warn("Unexpected",s,c,l)}}else if("",n[1]=n[1].replace("/>",">"))}return n.join("")}(t.Props,e)),h.coreprops.push(f),ih(e.rels,2,f,y.CORE_PROPS),f="docProps/app.xml",t.Props||(t.Props={}),t.Props.SheetNames=t.SheetNames,t.Props.Worksheets=t.SheetNames.length,d.file(f,(n=t.Props,i=[],r=v,(n=n||{}).Application="SheetJS",i[i.length]=Lt,i[i.length]=He,Le.forEach(function(t){if(void 0!==n[t[1]]){var e;switch(t[2]){case"string":e=n[t[1]];break;case"bool":e=n[t[1]]?"true":"false"}void 0!==e&&(i[i.length]=r(t[0],e))}}),i[i.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(n.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=r("TitlesOfParts",r("vt:vector",n.SheetNames.map(function(t){return""+t+""}).join(""),{size:n.Worksheets,baseType:"lpstr"})),2",i[1]=i[1].replace("/>",">")),i.join(""))),h.extprops.push(f),ih(e.rels,3,f,y.EXT_PROPS),t.Custprops!==t.Props&&0\n'),h.themes.push(f),ih(e.wbrels,++p,"theme/theme1.xml",y.THEME),f="xl/styles."+u,d.file(f,(l=t,c=e,(".bin"===f.substr(-4)?rc:ic)(l,c))),h.styles.push(f),ih(e.wbrels,++p,"styles."+u,y.STY),d.file("[Content_Types].xml",$e(h,e)),d.file("_rels/.rels",Oe(e.rels)),d.file("xl/_rels/workbook."+u+".rels",Oe(e.wbrels)),d}function ah(t,e){var n,i=t,r=!1,a=e||{};switch(a.type||(a.type=H&&Buffer.isBuffer(t)?"buffer":"base64"),"file"==a.type&&(r=!0,a.type="buffer",i=k.readFileSync(t)),n=function(t,e){switch((e||{}).type||"base64"){case"buffer":return t[0];case"base64":return S.decode(t.substr(0,12)).charCodeAt(0);case"binary":return t.charCodeAt(0);case"array":return t[0];default:throw new Error("Unrecognized type "+e.type)}}(i,a)){case 208:return r&&(a.type="file"),Yu(F.read(t,a),a);case 9:return Yu(T("base64"===a.type?S.decode(t):t),a);case 60:var s=i,o=a;switch(Ju(o=o||{}),o.type||"base64"){case"base64":return Wu(S.decode(s),o);case"binary":case"buffer":case"file":return Wu(s,o);case"array":return Wu(s.map(Hu).join(""),o)}return;case 80:r&&(a.type="file");var l,c=t,u=c,h=e||{};switch(h.type||(h.type=H&&Buffer.isBuffer(c)?"buffer":"base64"),h.type){case"base64":l=new m(u,{base64:!0});break;case"binary":case"array":l=new m(u,{base64:!1});break;case"buffer":l=new m(u);break;case"file":l=new m(k.readFileSync(c));break;default:throw new Error("Unrecognized type "+h.type)}return nh(l,h);default:throw new Error("Unsupported file "+n)}}function sh(t,e){e=e||{};return e.type="file",ah(t,e)}function oh(t,e){e=e||{};if("xml"!==e.bookType){var n=e||{},i=rh(t,n);switch(n.type){case"base64":return i.generate({type:"base64"});case"binary":return i.generate({type:"string"});case"buffer":return i.generate({type:"nodebuffer"});case"file":return k.writeFileSync(n.file,i.generate({type:"nodebuffer"}));default:throw new Error("Unrecognized type "+n.type)}}}function lh(t,e,n){var i=n||{};switch(i.type="file",i.file=e,i.file.substr(-5).toLowerCase()){case".xlsx":i.bookType="xlsx";break;case".xlsm":i.bookType="xlsm";break;case".xlsb":i.bookType="xlsb";break;default:switch(i.file.substr(-4).toLowerCase()){case".xls":i.bookType="xls";break;case".xml":i.bookType="xml"}}return oh(t,i)}function ch(t){return parseInt(uh(t),10)-1}function W(t){return""+(t+1)}function uh(t){return t.replace(/\$(\d+)$/,"$1")}function hh(t){for(var e=dh(t),n=0,i=0;i!==e.length;++i)n=26*n+e.charCodeAt(i)-64;return n-1}function Y(t){var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function dh(t){return t.replace(/^\$([A-Z])/,"$1")}function fh(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ph(t){t=fh(t);return{c:hh(t[0]),r:ch(t[1])}}function q(t){return Y(t.c)+W(t.r)}function X(t,e){return void 0===e||"number"==typeof e?X(t.s,t.e):(t="string"!=typeof t?q(t):t)==(e="string"!=typeof e?q(e):e)?t:t+":"+e}function C(t){for(var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,i=0,r=0,a=t.length,n=0;i>2,a=(3&n)<<4|(n=t.charCodeAt(c++))>>4,s=(15&n)<<2|(i=t.charCodeAt(c++))>>6,o=63&i,isNaN(n)?s=o=64:isNaN(i)&&(o=64),l=l+u.charAt(r)+u.charAt(a)+u.charAt(s)+u.charAt(o);return l},n.decode=function(t,e){var n,i,r,a,s,o,l="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c>2,i=(3&s)<<6|(o=u.indexOf(t.charAt(c++))),l+=String.fromCharCode(r<<2|a>>4),64!=s&&(l+=String.fromCharCode(n)),64!=o&&(l+=String.fromCharCode(i));return l}},{}],3:[function(t,e,n){"use strict";function i(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}i.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=i},{}],4:[function(t,e,n){"use strict";n.STORE={magic:"\0\0",compress:function(t,e){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},n.DEFLATE=t("./flate")},{"./flate":9}],5:[function(t,e,n){"use strict";var s=t("./utils"),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(t,e){if(void 0===t||!t.length)return 0;var n,i="string"!==s.getTypeOf(t);void 0===e&&(e=0);e^=-1;for(var r=0,a=t.length;r>>8^o[255&(e^n)];return-1^e}},{"./utils":22}],6:[function(t,e,n){"use strict";function i(t){this.data=null,this.length=0,this.index=0,this.zero=0}var r=t("./utils");i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)}},e.exports=i},{"./utils":22}],7:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],8:[function(t,e,n){"use strict";var i=t("./utils");n.string2binary=function(t){return i.string2binary(t)},n.string2Uint8Array=function(t){return i.transformTo("uint8array",t)},n.uint8Array2String=function(t){return i.transformTo("string",t)},n.string2Blob=function(t){t=i.transformTo("arraybuffer",t);return i.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(t){return i.arrayBuffer2Blob(t)},n.transformTo=function(t,e){return i.transformTo(t,e)},n.getTypeOf=function(t){return i.getTypeOf(t)},n.checkSupport=function(t){return i.checkSupport(t)},n.MAX_VALUE_16BITS=i.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=i.MAX_VALUE_32BITS,n.pretty=function(t){return i.pretty(t)},n.findCompression=function(t){return i.findCompression(t)},n.isRegExp=function(t){return i.isRegExp(t)}},{"./utils":22}],9:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako");n.uncompressInputType=i?"uint8array":"array",n.compressInputType=i?"uint8array":"array",n.magic="\b\0",n.compress=function(t,e){return r.deflateRaw(t,{level:e.level||-1})},n.uncompress=function(t){return r.inflateRaw(t)}},{pako:25}],10:[function(t,e,n){"use strict";function i(t,e){return this instanceof i?(this.files={},this.comment=null,this.root="",t&&this.load(t,e),void(this.clone=function(){var t,e=new i;for(t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e})):new i(t,e)}var r=t("./base64");(i.prototype=t("./object")).load=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.utils=t("./deprecatedPublicUtils"),i.base64={encode:function(t){return r.encode(t)},decode:function(t){return r.decode(t)}},i.compressions=t("./compressions"),e.exports=i},{"./base64":2,"./compressions":4,"./defaults":7,"./deprecatedPublicUtils":8,"./load":11,"./object":14,"./support":18}],11:[function(t,e,n){"use strict";var a=t("./base64"),s=t("./utf8"),o=t("./utils"),l=t("./zipEntries");e.exports=function(t,e){var n,i,r;for((e=o.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode})).base64&&(t=a.decode(t)),n=(t=new l(t,e)).files,i=0;i>>=8;return n}function o(t,e){return e=void 0!==e&&e,t=x(t),this.files[t]||d.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]}function f(t,e,n){var i,r=new u;return t._data instanceof u?(r.uncompressedSize=t._data.uncompressedSize,r.crc32=t._data.crc32,0===r.uncompressedSize||t.dir?(e=m.STORE,r.compressedContent="",r.crc32=0):t._data.compressionMethod===e.magic?r.compressedContent=t._data.getCompressedContent():(i=t._data.getContent(),r.compressedContent=e.compress(b.transformTo(e.compressInputType,i),n))):((i=a(t))&&0!==i.length&&!t.dir||(e=m.STORE,i=""),r.uncompressedSize=i.length,r.crc32=y(i),r.compressedContent=e.compress(b.transformTo(e.compressInputType,i),n)),r.compressedSize=r.compressedContent.length,r.compressionMethod=e.magic,r}function p(t,e,n,i,r,a){n.compressedContent;var s=a!==_.utf8encode,o=b.transformTo("string",a(e.name)),l=b.transformTo("string",_.utf8encode(e.name)),c=e.comment||"",a=b.transformTo("string",a(c)),u=b.transformTo("string",_.utf8encode(c)),h=l.length!==e.name.length,c=u.length!==c.length,d=e.options,f="",p=(e._initialMetadata.dir!==e.dir?e:d).dir,d=(e._initialMetadata.date!==e.date?e:d).date,g=0,m=0,l=(p&&(g|=16),"UNIX"===r?(m=798,g|=(r=e.unixPermissions,p=p,(65535&(r?r:p?16893:33204))<<16)):(m=20,g|=63&(e.dosPermissions||0)),r=d.getHours(),r=(r=((r<<=6)|d.getMinutes())<<5)|d.getSeconds()/2,p=d.getFullYear()-1980,p=(p=((p<<=4)|d.getMonth()+1)<<5)|d.getDate(),h&&(e=v(1,1)+v(y(o),4)+l,f+="up"+v(e.length,2)+e),c&&(d=v(1,1)+v(this.crc32(a),4)+u,f+="uc"+v(d.length,2)+d),""),l=(l=(l=(l=(l=(l=(l=(l=(l+="\n\0")+(s||!h&&!c?"\0\0":"\0\b")+n.compressionMethod)+v(r,2))+v(p,2))+v(n.crc32,4))+v(n.compressedSize,4))+v(n.uncompressedSize,4))+v(o.length,2))+v(f.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+l+o+f,dirRecord:w.CENTRAL_FILE_HEADER+v(m,2)+l+v(a.length,2)+"\0\0\0\0"+v(g,4)+v(i,4)+o+f+a,compressedObject:n}}var l=t("./support"),b=t("./utils"),y=t("./crc32"),w=t("./signature"),c=t("./defaults"),g=t("./base64"),m=t("./compressions"),u=t("./compressedObject"),h=t("./nodeBuffer"),_=t("./utf8"),C=t("./stringWriter"),S=t("./uint8ArrayWriter"),d=(s.prototype={asText:function(){return r.call(this,!0)},asBinary:function(){return r.call(this,!1)},asNodeBuffer:function(){var t=a(this);return b.transformTo("nodebuffer",t)},asUint8Array:function(){var t=a(this);return b.transformTo("uint8array",t)},asArrayBuffer:function(){return this.asUint8Array().buffer}},function(t,e,n){var i,r=b.getTypeOf(e);if(!0!==(i=(i=n)||{}).base64||null!==i.binary&&void 0!==i.binary||(i.binary=!0),(i=b.extend(i,c)).date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof(n=i).unixPermissions&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(t=x(t)),n.createFolders&&(i=0<(a=(i="/"==(i=t).slice(-1)?i.substring(0,i.length-1):i).lastIndexOf("/"))?i.substring(0,a):"")&&o.call(this,i,!0),n.dir||null==e)n.base64=!1,n.binary=!1,r=e=null;else if("string"===r)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(e=b.string2binary(e));else{if(n.base64=!1,n.binary=!0,!(r||e instanceof u))throw new Error("The data of '"+t+"' is in an unsupported format !");"arraybuffer"===r&&(e=b.transformTo("uint8array",e))}var a=new s(t,e,n);return this.files[t]=a}),x=function(t){return"/"!=t.slice(-1)&&(t+="/"),t},T={load:function(t,e){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(t){var e,n,i,r=[];for(e in this.files)this.files.hasOwnProperty(e)&&(i=this.files[e],i=new s(i.name,i._data,b.extend(i.options)),n=e.slice(this.root.length,e.length),e.slice(0,this.root.length)===this.root)&&t(n,i)&&r.push(i);return r},file:function(n,t,e){var i;return 1===arguments.length?b.isRegExp(n)?(i=n,this.filter(function(t,e){return!e.dir&&i.test(t)})):this.filter(function(t,e){return!e.dir&&t===n})[0]||null:(n=this.root+n,d.call(this,n,t,e),this)},folder:function(n){var t,e;return n?b.isRegExp(n)?this.filter(function(t,e){return e.dir&&n.test(t)}):(t=this.root+n,t=o.call(this,t),(e=this.clone()).root=t.name,e):this},remove:function(n){n=this.root+n;var t=this.files[n];if(t||("/"!=n.slice(-1)&&(n+="/"),t=this.files[n]),t&&!t.dir)delete this.files[n];else for(var e=this.filter(function(t,e){return e.name.slice(0,n.length)===n}),i=0;i>10&1023,r[a++]=56320|1023&e)}return r.length!==a&&(r.subarray?r=r.subarray(0,a):r.length=a),o.applyFromCharCode(r)}n.utf8encode=function(t){if(c.nodebuffer)return u(t,"utf-8");for(var e,n,i,r,a=t,s=a.length,o=0,l=0;l>>6:(n<65536?e[r++]=224|n>>>12:(e[r++]=240|n>>>18,e[r++]=128|n>>>12&63),e[r++]=128|n>>>6&63),e[r++]=128|63&n);return e},n.utf8decode=function(t){if(c.nodebuffer)return o.transformTo("nodebuffer",t).toString("utf-8");for(var e=[],n=0,i=(t=o.transformTo(c.uint8array?"uint8array":"array",t)).length;nt.length?t.length:e)-1;0<=n&&128==(192&t[n]);)n--;return!(n<0)&&0!==n&&n+l[t[n]]>e?n:e}(t,Math.min(n+65536,i));c.uint8array?e.push(a(t.subarray(n,r))):e.push(a(t.slice(n,r))),n=r}return e.join("")}},{"./nodeBuffer":12,"./support":18,"./utils":22}],22:[function(t,e,c){"use strict";function n(t){return t}function i(t,e){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){var e;this.extraFields[1]&&(e=new r(this.extraFields[1].value),this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(t){var e,n,i,r=t.index;for(this.extraFields=this.extraFields||{};t.index>>6:(n<65536?e[r++]=224|n>>>12:(e[r++]=240|n>>>18,e[r++]=128|n>>>12&63),e[r++]=128|n>>>6&63),e[r++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new c.Buf8(t.length),n=0,i=e.length;n>10&1023,a[s++]=56320|1023&n)}return l(a,s)},n.utf8border=function(t,e){for(var n=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=n&&128==(192&t[n]);)n--;return!(n<0)&&0!==n&&n+u[t[n]]>e?n:e}},{"./common":28}],30:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,a=t>>>16&65535|0,s=0;0!==n;){for(n-=s=2e3>>1:n>>>1;t[e]=n}return t}();e.exports=function(t,e,n,i){var r=o,a=i+n;t^=-1;for(var s=i;s>>8^r[255&(t^e[s])];return-1^t}},{}],33:[function(t,R,e){"use strict";function l(t,e){return t.msg=L[e],e}function o(t){return(t<<1)-(4t.avail_out?t.avail_out:n)&&(v.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending)&&(e.pending_out=0)}function h(t,e){b._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,c(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function f(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function a(t,e){var n,i,r=t.max_chain_length,a=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,u=t.w_mask,h=t.prev,d=t.strstart+E,f=c[a+s-1],p=c[a+s];t.prev_length>=t.good_match&&(r>>=2),o>t.lookahead&&(o=t.lookahead);do{if(c[(n=e)+s]===p&&c[n+s-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){for(a+=2,n++;c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&al&&0!=--r);return s<=t.lookahead?s:t.lookahead}function p(t){var e,n,i,r,a,s,o,l,c,u=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=u+(u-D)){for(v.arraySet(t.window,t.window,u,u,0),t.match_start-=u,t.strstart-=u,t.block_start-=u,e=n=t.hash_size;i=t.head[--e],t.head[e]=u<=i?i-u:0,--n;);for(e=n=u;i=t.prev[--e],t.prev[e]=u<=i?i-u:0,--n;);l+=u}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,o=t.strstart+t.lookahead,l=l,c=void 0,c=a.avail_in,n=0===(c=l=k)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<=k&&(t.ins_h=(t.ins_h<=k)if(i=b._tr_tally(t,t.strstart-t.match_start,t.match_length-k),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=k){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=k&&(t.ins_h=(t.ins_h<=k&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-k,i=b._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-k),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(p(t),0===t.lookahead&&e===w)return $;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,h(t,!1),0===t.strm.avail_out))return $;if(t.strstart-t.block_start>=t.w_size-D&&(h(t,!1),0===t.strm.avail_out))return $}return t.insert=0,e===_?(h(t,!0),0===t.strm.avail_out?B:O):(t.strstart>t.block_start&&(h(t,!1),t.strm.avail_out),$)}),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,i),new r(8,16,32,32,i),new r(8,16,128,128,i),new r(8,32,128,256,i),new r(32,128,258,1024,i),new r(32,258,258,4096,i)];e.deflateInit=function(t,e){return m(t,e,x,15,8,0)},e.deflateInit2=m,e.deflateReset=g,e.deflateResetKeep=s,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?S:(t.state.gzhead=e,C)},e.deflate=function(t,e){var n,i,r,a;if(!t||!t.state||5>8&255),d(i,i.gzhead.time>>16&255),d(i,i.gzhead.time>>24&255),d(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),d(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(d(i,255&i.gzhead.extra.length),d(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=y(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(d(i,0),d(i,0),d(i,0),d(i,0),d(i,0),d(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),d(i,3),i.status=A)):(s=x+(i.w_bits-8<<4)<<8,s|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(s|=32),s+=31-s%31,i.status=A,f(i,s),0!==i.strstart&&(f(i,t.adler>>>16),f(i,65535&t.adler)),t.adler=1)),69===i.status)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),c(t),r=i.pending,i.pending!==i.pending_buf_size));)d(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),c(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}}while(a=i.gzindexr&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),c(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}}while(a=i.gzindexr&&(t.adler=y(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&c(t),i.pending+2<=i.pending_buf_size&&(d(i,255&t.adler),d(i,t.adler>>8&255),t.adler=0,i.status=A)):i.status=A),0!==i.pending){if(c(t),0===t.avail_out)return i.last_flush=-1,C}else if(0===t.avail_in&&o(e)<=o(n)&&e!==_)return l(t,-5);if(666===i.status&&0!==t.avail_in)return l(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==w&&666!==i.status){var s=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(p(t),0===t.lookahead)){if(e===w)return $;break}if(t.match_length=0,n=b._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(h(t,!1),0===t.strm.avail_out))return $}return t.insert=0,e===_?(h(t,!0),0===t.strm.avail_out?B:O):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?$:P}(i,e):3===i.strategy?function(t,e){for(var n,i,r,a,s=t.window;;){if(t.lookahead<=E){if(p(t),t.lookahead<=E&&e===w)return $;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=k&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=k?(n=b._tr_tally(t,1,t.match_length-k),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=b._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(h(t,!1),0===t.strm.avail_out))return $}return t.insert=0,e===_?(h(t,!0),0===t.strm.avail_out?B:O):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?$:P}(i,e):M[i.level].func(i,e);if(s!==B&&s!==O||(i.status=666),s===$||s===B)return 0===t.avail_out&&(i.last_flush=-1),C;if(s===P&&(1===e?b._tr_align(i):5!==e&&(b._tr_stored_block(i,0,0,!1),3===e)&&(u(i.head),0===i.lookahead)&&(i.strstart=0,i.block_start=0,i.insert=0),c(t),0===t.avail_out))return i.last_flush=-1,C}return e!==_||!(i.wrap<=0)&&(2===i.wrap?(d(i,255&t.adler),d(i,t.adler>>8&255),d(i,t.adler>>16&255),d(i,t.adler>>24&255),d(i,255&t.total_in),d(i,t.total_in>>8&255),d(i,t.total_in>>16&255),d(i,t.total_in>>24&255)):(f(i,t.adler>>>16),f(i,65535&t.adler)),c(t),0=n.w_size&&(0===a&&(u(n.head),n.strstart=0,n.block_start=0,n.insert=0),l=new v.Buf8(n.w_size),v.arraySet(l,e,c-n.w_size,n.w_size,0),e=l,c=n.w_size),l=t.avail_in,s=t.next_in,o=t.input,t.avail_in=c,t.next_in=0,t.input=e,p(n);n.lookahead>=k;){for(i=n.strstart,r=n.lookahead-(k-1);n.ins_h=(n.ins_h<>>=i=n>>>24,C-=i,0===(i=n>>>16&255))f[d++]=65535&n;else{if(!(16&i)){if(0==(64&i)){n=S[(65535&n)+(_&(1<>>=i,C-=i),C<15&&(_+=u[c++]<>>=i=n>>>24,C-=i,!(16&(i=n>>>16&255))){if(0==(64&i)){n=x[(65535&n)+(_&(1<>>=i,C-=i,(i=d-p)>3)<<3))-1,t.next_in=c-=r,t.next_out=d,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function i(){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 M.Buf16(320),this.work=new M.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function r(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=V,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new M.Buf32(l),e.distcode=e.distdyn=new M.Buf32(c),e.sane=1,e.back=-1,U):W}function a(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,r(t)):W}function s(t,e){var n,i;return!t||!t.state||(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=t.wsize?(M.arraySet(t.window,e,n-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(i<(r=t.wsize-t.wnext)&&(r=i),M.arraySet(t.window,e,n-i,r,t.wnext),(i-=r)?(M.arraySet(t.window,e,n-i,i,0),t.wnext=i,t.whave=t.wsize):(t.wnext+=r,t.wnext===t.wsize&&(t.wnext=0),t.whave>>8&255,n.check=N(n.check,E,2,0),u=c=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31)t.msg="incorrect header check",n.mode=30;else if(8!=(15&c))t.msg="unknown compression method",n.mode=30;else{if(u-=4,C=8+(15&(c>>>=4)),0===n.wbits)n.wbits=C;else if(C>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(E[0]=255&c,E[1]=c>>>8&255,n.check=N(n.check,E,2,0)),u=c=0,n.mode=3;case 3:for(;u<32;){if(0===o)break t;o--,c+=i[a++]<>>8&255,E[2]=c>>>16&255,E[3]=c>>>24&255,n.check=N(n.check,E,4,0)),u=c=0,n.mode=4;case 4:for(;u<16;){if(0===o)break t;o--,c+=i[a++]<>8),512&n.flags&&(E[0]=255&c,E[1]=c>>>8&255,n.check=N(n.check,E,2,0)),u=c=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===o)break t;o--,c+=i[a++]<>>8&255,n.check=N(n.check,E,2,0)),u=c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=o<(f=n.length)?o:f)&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),M.arraySet(n.head.extra,i,a,f,C)),512&n.flags&&(n.check=N(n.check,i,f,a)),o-=f,a+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===o)break t;for(f=0;C=i[a+f++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C)),C&&f>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===o)break t;o--,c+=i[a++]<>>=7&u,u-=7&u,n.mode=27;else{for(;u<3;){if(0===o)break t;o--,c+=i[a++]<>>=1)){case 0:n.mode=14;break;case 1:I=A=void 0;var I,A=n;if(j){for(B=new M.Buf32(512),O=new M.Buf32(32),I=0;I<144;)A.lens[I++]=8;for(;I<256;)A.lens[I++]=9;for(;I<280;)A.lens[I++]=7;for(;I<288;)A.lens[I++]=8;for(L(H,A.lens,0,288,B,0,A.work,{bits:9}),I=0;I<32;)A.lens[I++]=5;L(z,A.lens,0,32,O,0,A.work,{bits:5}),j=!1}if(A.lencode=B,A.lenbits=9,A.distcode=O,A.distbits=5,n.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}c>>>=2,u-=2}break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===o)break t;o--,c+=i[a++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&c,u=c=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(f=n.length){if(0===(f=l<(f=o>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=L(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,b=65535&k,!((m=k>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=m,u-=m,n.lens[n.have++]=b;else{if(16===b){for(T=m+2;u>>=m,u-=m,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}C=n.lens[n.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===b){for(T=m+3;u>>=m)),c>>>=3,u=u-m-3}else{for(T=m+7;u>>=m)),c>>>=7,u=u-m-7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;f--;)n.lens[n.have++]=C}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,x={bits:n.lenbits},S=L(H,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=L(z,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=o&&258<=l){t.next_out=s,t.avail_out=l,t.next_in=a,t.avail_in=o,n.hold=c,n.bits=u,F(t,d),s=t.next_out,r=t.output,l=t.avail_out,a=t.next_in,i=t.input,o=t.avail_in,c=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;v=(k=n.lencode[c&(1<>>16&255,b=65535&k,!((m=k>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>y)])>>>16&255,b=65535&k,!(y+(m=k>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=y,u-=y,n.back+=y}if(c>>>=m,u-=m,n.back+=m,n.length=b,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=12;break}if(64&v){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(T=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(k=n.distcode[c&(1<>>16&255,b=65535&k,!((m=k>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>y)])>>>16&255,b=65535&k,!(y+(m=k>>>24)<=u);){if(0===o)break t;o--,c+=i[a++]<>>=y,u-=y,n.back+=y}if(c>>>=m,u-=m,n.back+=m,64&v){t.msg="invalid distance code",n.mode=30;break}n.offset=b,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(T=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===l)break t;if(n.offset>(f=d-l)){if((f=n.offset-f)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}p=f>n.wnext?(f-=n.wnext,n.wsize-f):n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=r,p=s-n.offset,f=n.length;for(l-=f=lf?(g=P[B+s[y]],D[I+s[y]]):(g=96,0),l=1<<(p=b-x),w=c=1<>x)+(c-=l)]=p<<24|g<<16|m|0,0!==c;);for(l=1<>=1;if(0!==l?E=(E&l-1)+l:E=0,y++,0==--A[b]){if(b===_)break;b=e[n+s[y]]}if(C>>7)]}function r(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function u(t,e,n){t.bi_valid>i-n?(t.bi_buf|=e<>i-t.bi_valid,t.bi_valid+=n-i):(t.bi_buf|=e<>>=1,n<<=1,0<--e;);return n>>>1}function T(t,e,n){for(var i,r=new Array(D+1),a=0,s=1;s<=D;s++)r[s]=a=a+n[s-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=d(r[o]++,o))}}function f(t){for(var e=0;e>1;1<=n;n--)k(t,a,n);for(r=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],k(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,a[2*r]=a[2*n]+a[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,a[2*n+1]=a[2*i+1]=r,t.heap[1]=r++,k(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var u,h,d,f,p,g=t,m=e.dyn_tree,v=e.max_code,b=e.stat_desc.static_tree,y=e.stat_desc.has_stree,w=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,C=e.stat_desc.max_length,S=0,x=0;x<=D;x++)g.bl_count[x]=0;for(m[2*g.heap[g.heap_max]+1]=0,u=g.heap_max+1;u>=7;s>>=1)if(1&e&&0!==t.dyn_ltree[2*n])return w;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return L;for(n=32;n>>3,(a=t.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==e)y(t,e,n,i);else if(4===t.strategy||a===r)u(t,2+(i?1:0),3),g(t,P,B);else{u(t,4+(i?1:0),3);var l=t,c=(e=t.l_desc.max_code+1,n=t.d_desc.max_code+1,o+1);for(u(l,e-257,5),u(l,n-1,5),u(l,c-4,4),s=0;s>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(M[n]+C+1)]++,t.dyn_dtree[2*c(e)]++),t.last_lit===t.lit_bufsize-1},t._tr_align=function(t){u(t,2,3),h(t,I,P),16===(t=t).bi_valid?(r(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":28}],40:[function(t,e,n){"use strict";e.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}},{}]},{},[10])(10)});