www.texasgasservice.com Open in urlscan Pro
72.194.134.24  Public Scan

Submitted URL: http://texasgasservice.com/dist/vendors.js
Effective URL: https://www.texasgasservice.com/dist/vendors.js
Submission: On August 15 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see vendors.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return o}));function n(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function o(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}},101:function(t,e,i){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}i.d(e,"a",(function(){return n}))},103:function(t,e,i){"use strict";i.d(e,"a",(function(){return A})),i.d(e,"b",(function(){return Ae})),i.d(e,"c",(function(){return si})),i.d(e,"d",(function(){return Qt})),i.d(e,"e",(function(){return Ue})),i.d(e,"f",(function(){return We})),i.d(e,"g",(function(){return k})),i.d(e,"h",(function(){return me})),i.d(e,"i",(function(){return hi})),i.d(e,"j",(function(){return be})),i.d(e,"k",(function(){return oi}));var n=i(3);var r=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const r=e.listeners[n],o=e.duration;r.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){const t=this;t._request||(t._running=!0,t._request=n.Kb.call(window,(()=>{t._update(),t._request=null,t._running&&t._refresh()})))}_update(t=Date.now()){const e=this;let i=0;e._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,s=o.length-1,u=!1;for(;s>=0;--s)a=o[s],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),u=!0):(o[s]=o[o.length-1],o.pop());u&&(r.draw(),e._notify(r,n,t,"progress")),o.length||(n.running=!1,e._notify(r,n,t,"complete"),n.initial=!1),i+=o.length})),e._lastDate=t,0===i&&(e._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const r=Object(n.vb)(t||o),a=r.valid&&Object(n.vb)(e||o);return a&&a.valid?a.mix(r,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class s{constructor(t,e,i,r){const o=e[i];r=Object(n.C)([t.to,r,o,t.from]);const s=Object(n.C)([t.from,o,r]);this._active=!0,this._fn=t.fn||a[t.type||typeof s],this._easing=n.xb[t.easing]||n.xb.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){const r=this;if(r._active){r._notify(!1);const o=r._target[r._prop],a=i-r._start,s=r._duration-a;r._start=i,r._duration=Math.floor(Math.max(s,t.duration)),r._total+=a,r._loop=!!t.loop,r._to=Object(n.C)([t.to,e,o,t.from]),r._from=Object(n.C)([t.from,o,e])}}cancel(){const t=this;t._active&&(t.tick(Date.now()),t._active=!1,t._notify(!1))}tick(t){const e=this,i=t-e._start,n=e._duration,r=e._prop,o=e._from,a=e._loop,s=e._to;let u;if(e._active=o!==s&&(a||i<n),!e._active)return e._target[r]=s,void e._notify(!0);i<0?e._target[r]=o:(u=i/n%2,u=a&&u>1?2-u:u,u=e._easing(Math.min(1,Math.max(0,u))),e._target[r]=e._fn(o,s,u))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}n.wb.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const u=Object.keys(n.wb.animation);n.wb.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),n.wb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),n.wb.describe("animations",{_fallback:"animation"}),n.wb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class h{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Object(n.Bb)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Object(n.Bb)(r))return;const o={};for(const t of u)o[t]=r[t];(Object(n.ub)(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const r=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const r=t[n[e]];r&&r.active()&&i.push(r.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),r}_createAnimations(t,e){const i=this._properties,n=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let u;for(u=o.length-1;u>=0;--u){const h=o[u];if("$"===h.charAt(0))continue;if("options"===h){n.push(...this._animateOptions(t,e));continue}const l=e[h];let c=r[h];const d=i.get(h);if(c){if(d&&c.active()){c.update(d,l,a);continue}c.cancel()}d&&d.duration?(r[h]=c=new s(d,t,h,l),n.push(c)):t[h]=l}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(r.add(this._chart,i),!0):void 0}}function l(t,e){const i=t&&t.options||{},n=i.reverse,r=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:r,end:n?r:o}}function c(t,e){const i=[],n=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=n.length;r<o;++r)i.push(n[r].index);return i}function d(t,e,i,r){const o=t.keys,a="single"===r.mode;let s,u,h,l;if(null!==e){for(s=0,u=o.length;s<u;++s){if(h=+o[s],h===i){if(r.all)continue;break}l=t.values[h],Object(n.zb)(l)&&(a||0===e||Object(n.Lb)(e)===Object(n.Lb)(l))&&(e+=l)}return e}}function f(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function p(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function m(t,e,i){for(const n of e.getMatchingVisibleMetas("bar").reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function g(t,e){const{chart:i,_cachedMeta:n}=t,r=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:s}=n,u=o.axis,h=a.axis,l=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,n),c=e.length;let d;for(let t=0;t<c;++t){const i=e[t],{[u]:n,[h]:o}=i;d=(i._stacks||(i._stacks={}))[h]=p(r,l,n),d[s]=o,d._top=m(d,a,!0),d._bottom=m(d,a,!1)}}function b(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function v(t,e){e=e||t._parsed;for(const i of e){const e=i._stacks;if(!e||void 0===e[t.vScale.id]||void 0===e[t.vScale.id][t.index])return;delete e[t.vScale.id][t.index]}}const y=t=>"reset"===t||"none"===t,w=(t,e)=>e?t:Object.assign({},t);class _{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this.initialize()}initialize(){const t=this,e=t._cachedMeta;t.configure(),t.linkScales(),e._stacked=f(e.vScale,e),t.addElements()}updateIndex(t){this.index=t}linkScales(){const t=this,e=t.chart,i=t._cachedMeta,r=t.getDataset(),o=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,a=i.xAxisID=Object(n.Ob)(r.xAxisID,b(e,"x")),s=i.yAxisID=Object(n.Ob)(r.yAxisID,b(e,"y")),u=i.rAxisID=Object(n.Ob)(r.rAxisID,b(e,"r")),h=i.indexAxis,l=i.iAxisID=o(h,a,s,u),c=i.vAxisID=o(h,s,a,u);i.xScale=t.getScaleForId(a),i.yScale=t.getScaleForId(s),i.rScale=t.getScaleForId(u),i.iScale=t.getScaleForId(l),i.vScale=t.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Object(n.Nb)(this._data,this),t._stacked&&v(t)}_dataCheck(){const t=this,e=t.getDataset(),i=e.data||(e.data=[]);Object(n.Bb)(i)?t._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,r,o;for(n=0,r=e.length;n<r;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(i):t._data!==i&&(t._data&&(Object(n.Nb)(t._data,t),v(t._cachedMeta)),i&&Object.isExtensible(i)&&Object(n.Eb)(i,t),t._data=i)}addElements(){const t=this,e=t._cachedMeta;t._dataCheck(),t.datasetElementType&&(e.dataset=new t.datasetElementType)}buildOrUpdateElements(t){const e=this,i=e._cachedMeta,n=e.getDataset();let r=!1;e._dataCheck(),i._stacked=f(i.vScale,i),i.stack!==n.stack&&(r=!0,v(i),i.stack=n.stack),e._resyncElements(t),r&&g(e,i._parsed)}configure(){const t=this,e=t.chart.config,i=e.datasetScopeKeys(t._type),n=e.getOptionScopes(t.getDataset(),i,!0);t.options=e.createResolver(n,t.getContext()),t._parsing=t.options.parsing}parse(t,e){const i=this,{_cachedMeta:r,_data:o}=i,{iScale:a,_stacked:s}=r,u=a.axis;let h,l,c,d=0===t&&e===o.length||r._sorted,f=t>0&&r._parsed[t-1];if(!1===i._parsing)r._parsed=o,r._sorted=!0,c=o;else{c=Object(n.ub)(o[t])?i.parseArrayData(r,o,t,e):Object(n.Bb)(o[t])?i.parseObjectData(r,o,t,e):i.parsePrimitiveData(r,o,t,e);const a=()=>null===l[u]||f&&l[u]<f[u];for(h=0;h<e;++h)r._parsed[h+t]=l=c[h],d&&(a()&&(d=!1),f=l);r._sorted=d}s&&g(i,c)}parsePrimitiveData(t,e,i,n){const{iScale:r,vScale:o}=t,a=r.axis,s=o.axis,u=r.getLabels(),h=r===o,l=new Array(n);let c,d,f;for(c=0,d=n;c<d;++c)f=c+i,l[c]={[a]:h||r.parse(u[f],f),[s]:o.parse(e[f],f)};return l}parseArrayData(t,e,i,n){const{xScale:r,yScale:o}=t,a=new Array(n);let s,u,h,l;for(s=0,u=n;s<u;++s)h=s+i,l=e[h],a[s]={x:r.parse(l[0],h),y:o.parse(l[1],h)};return a}parseObjectData(t,e,i,r){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:u="y"}=this._parsing,h=new Array(r);let l,c,d,f;for(l=0,c=r;l<c;++l)d=l+i,f=e[d],h[l]={x:o.parse(Object(n.yb)(f,s),d),y:a.parse(Object(n.yb)(f,u),d)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,r=this._cachedMeta,o=e[t.axis];return d({keys:c(n,!0),values:e._stacks[t.axis]},o,r.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const r=i[e.axis];let o=null===r?NaN:r;const a=n&&i._stacks[e.axis];n&&a&&(n.values=a,t.min=Math.min(t.min,o),t.max=Math.max(t.max,o),o=d(n,r,this._cachedMeta.index,{all:!0})),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this,r=i._cachedMeta,o=r._parsed,a=r._sorted&&t===r.iScale,s=o.length,u=i._getOtherScale(t),h=e&&r._stacked&&{keys:c(i.chart,!0),values:null},l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=function(t){const{min:e,max:i,minDefined:n,maxDefined:r}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}(u);let p,m,g,b;function v(){return g=o[p],m=g[t.axis],b=g[u.axis],!Object(n.zb)(m)||d>b||f<b}for(p=0;p<s&&(v()||(i.updateRangeFromParsed(l,t,g,h),!a));++p);if(a)for(p=s-1;p>=0;--p)if(!v()){i.updateRangeFromParsed(l,t,g,h);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,o,a;for(r=0,o=e.length;r<o;++r)a=e[r][t.axis],Object(n.zb)(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,r=this.getParsed(t);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:n?""+n.getLabelForValue(r[n.axis]):""}}_update(t){const e=this,i=e._cachedMeta;e.configure(),e._cachedDataOpts={},e.update(t||"default"),i._clip=function(t){let e,i,r,o;return Object(n.Bb)(t)?(e=t.top,i=t.right,r=t.bottom,o=t.left):e=i=r=o=t,{top:e,right:i,bottom:r,left:o}}(Object(n.Ob)(e.options.clip,function(t,e,i){if(!1===i)return!1;const n=l(t,i),r=l(e,i);return{top:r.end,right:n.end,bottom:r.start,left:n.start}}(i.xScale,i.yScale,e.getMaxOverflow())))}update(t){}draw(){const t=this,e=t._ctx,i=t.chart,n=t._cachedMeta,r=n.data||[],o=i.chartArea,a=[],s=t._drawStart||0,u=t._drawCount||r.length-s;let h;for(n.dataset&&n.dataset.draw(e,o,s,u),h=s;h<s+u;++h){const t=r[h];t.active?a.push(t):t.draw(e,o)}for(h=0;h<a.length;++h)a[h].draw(e,o)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this,r=n.getDataset();let o;if(t>=0&&t<n._cachedMeta.data.length){const e=n._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,i){return Object.assign(Object.create(t),{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(n.getContext(),t,e)),o.parsed=n.getParsed(t),o.raw=r.data[t]}else o=n.$context||(n.$context=function(t,e){return Object.assign(Object.create(t),{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(n.chart.getContext(),n.index)),o.dataset=r;return o.active=!!e,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const r=this,o="active"===e,a=r._cachedDataOpts,s=t+"-"+e,u=a[s],h=r.enableOptionSharing&&Object(n.Ab)(i);if(u)return w(u,h);const l=r.chart.config,c=l.datasetElementScopeKeys(r._type,t),d=o?[`${t}Hover`,"hover",t,""]:[t,""],f=l.getOptionScopes(r.getDataset(),c),p=Object.keys(n.wb.elements[t]),m=l.resolveNamedOptions(f,p,(()=>r.getContext(i,o)),d);return m.$shared&&(m.$shared=h,a[s]=Object.freeze(w(m,h))),m}_resolveAnimations(t,e,i){const n=this,r=n.chart,o=n._cachedDataOpts,a=`animation-${e}`,s=o[a];if(s)return s;let u;if(!1!==r.options.animation){const r=n.chart.config,o=r.datasetAnimationScopeKeys(n._type,e),a=r.getOptionScopes(n.getDataset(),o);u=r.createResolver(a,n.getContext(t,i,e))}const l=new h(r,u&&u.animations);return u&&u._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||y(t)||this.chart._animationsDisabled}updateElement(t,e,i,n){y(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!y(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const r=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this,i=e._cachedMeta.data.length,n=e._data.length;n>i?e._insertElements(i,n-i,t):n<i&&e._removeElements(n,i-n);const r=Math.min(n,i);r&&e.parse(0,r)}_insertElements(t,e,i=!0){const n=this,r=n._cachedMeta,o=r.data,a=t+e;let s;const u=t=>{for(t.length+=e,s=t.length-1;s>=a;s--)t[s]=t[s-e]};for(u(o),s=t;s<a;++s)o[s]=new n.dataElementType;n._parsing&&u(r._parsed),n.parse(t,e),i&&n.updateElements(o,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&v(i,n)}i.data.splice(t,e)}_onDataPush(){const t=arguments.length;this._insertElements(this.getDataset().data.length-t,t)}_onDataPop(){this._removeElements(this._cachedMeta.data.length-1,1)}_onDataShift(){this._removeElements(0,1)}_onDataSplice(t,e){this._removeElements(t,e),this._insertElements(t,arguments.length-2)}_onDataUnshift(){this._insertElements(0,arguments.length)}}function M(t){const e=function(t){if(!t._cache.$bar){const e=t.getMatchingVisibleMetas("bar");let i=[];for(let n=0,r=e.length;n<r;n++)i=i.concat(e[n].controller.getAllParsedValues(t));t._cache.$bar=Object(n.B)(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(t);let i,r,o,a,s=t._length;const u=()=>{32767!==o&&-32768!==o&&(Object(n.Ab)(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(i=0,r=e.length;i<r;++i)o=t.getPixelForValue(e[i]),u();for(a=void 0,i=0,r=t.ticks.length;i<r;++i)o=t.getPixelForTick(i),u();return s}function x(t,e,i,r){return Object(n.ub)(t)?function(t,e,i,n){const r=i.parse(t[0],n),o=i.parse(t[1],n),a=Math.min(r,o),s=Math.max(r,o);let u=a,h=s;Math.abs(a)>Math.abs(s)&&(u=s,h=a),e[i.axis]=h,e._custom={barStart:u,barEnd:h,start:r,end:o,min:a,max:s}}(t,e,i,r):e[i.axis]=i.parse(t,r),e}function S(t,e,i,n){const r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,u=[];let h,l,c,d;for(h=i,l=i+n;h<l;++h)d=e[h],c={},c[r.axis]=s||r.parse(a[h],h),u.push(x(d,c,o,h));return u}function T(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}_.defaults={},_.prototype.datasetElementType=null,_.prototype.dataElementType=null;class A extends _{parsePrimitiveData(t,e,i,n){return S(t,e,i,n)}parseArrayData(t,e,i,n){return S(t,e,i,n)}parseObjectData(t,e,i,r){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:u="y"}=this._parsing,h="x"===o.axis?s:u,l="x"===a.axis?s:u,c=[];let d,f,p,m;for(d=i,f=i+r;d<f;++d)m=e[d],p={},p[o.axis]=o.parse(Object(n.yb)(m,h),d),c.push(x(Object(n.yb)(m,l),p,a,d));return c}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const r=i._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,r=this.getParsed(t),o=r._custom,a=T(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(r[n.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:a}}initialize(){const t=this;t.enableOptionSharing=!0,super.initialize();t._cachedMeta.stack=t.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const o=this,a="reset"===r,s=o._cachedMeta.vScale,u=s.getBasePixel(),h=s.isHorizontal(),l=o._getRuler(),c=o.resolveDataElementOptions(e,r),d=o.getSharedOptions(c),f=o.includeOptions(r,d);o.updateSharedOptions(d,r,c);for(let c=e;c<e+i;c++){const e=o.getParsed(c),i=a||Object(n.Cb)(e[s.axis])?{base:u,head:u}:o._calculateBarValuePixels(c),p=o._calculateBarIndexPixels(c,l),m=(e._stacks||{})[s.axis],g={horizontal:h,base:i.base,enableBorderRadius:!m||T(e._custom)||o.index===m._top||o.index===m._bottom,x:h?i.head:p.center,y:h?p.center:i.head,height:h?p.size:void 0,width:h?void 0:p.size};f&&(g.options=d||o.resolveDataElementOptions(c,r)),o.updateElement(t[c],c,g,r)}}_getStacks(t,e){const i=this._cachedMeta.iScale,r=i.getMatchingVisibleMetas(this._type),o=i.options.stacked,a=r.length,s=[];let u,h;for(u=0;u<a;++u){if(h=r[u],void 0!==e){const t=h.controller.getParsed(e)[h.controller._cachedMeta.vScale.axis];if(Object(n.Cb)(t)||isNaN(t))continue}if((!1===o||-1===s.indexOf(h.stack)||void 0===o&&void 0===h.stack)&&s.push(h.stack),h.index===t)break}return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r}_getRuler(){const t=this,e=t.options,i=t._cachedMeta,n=i.iScale,r=[];let o,a;for(o=0,a=i.data.length;o<a;++o)r.push(n.getPixelForValue(t.getParsed(o)[n.axis],o));const s=e.barThickness;return{min:s||M(n),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:t._getStackCount(),scale:n,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(t){const e=this,{vScale:i,_stacked:r}=e._cachedMeta,{base:o,minBarLength:a}=e.options,s=e.getParsed(t),u=s._custom,h=T(u);let l,c,d=s[i.axis],f=0,p=r?e.applyStack(i,s,r):d;p!==d&&(f=p-d,p=d),h&&(d=u.barStart,p=u.barEnd-u.barStart,0!==d&&Object(n.Lb)(d)!==Object(n.Lb)(u.barEnd)&&(f=0),f+=d);const m=Object(n.Cb)(o)||h?f:o;let g=i.getPixelForValue(m);l=this.chart.getDataVisibility(t)?i.getPixelForValue(f+p):g,c=l-g,void 0!==a&&Math.abs(c)<a&&(c=c<0?-a:a,0===d&&(g-=c/2),l=g+c);const b=o||0;if(g===i.getPixelForValue(b)){const t=i.getLineWidthForValue(b)/2;c>0?(g+=t,c-=t):c<0&&(g-=t,c+=t)}return{size:c,base:g,head:l,center:l+c/2}}_calculateBarIndexPixels(t,e){const i=this,r=e.scale,o=i.options,a=o.skipNull,s=Object(n.Ob)(o.maxBarThickness,1/0);let u,h;if(e.grouped){const r=a?i._getStackCount(t):e.stackCount,l="flex"===o.barThickness?function(t,e,i,n){const r=e.pixels,o=r[t];let a=t>0?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const u=i.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const h=o-(o-Math.min(a,s))/2*u;return{chunk:Math.abs(s-a)/2*u/n,ratio:i.barPercentage,start:h}}(t,e,o,r):function(t,e,i,r){const o=i.barThickness;let a,s;return Object(n.Cb)(o)?(a=e.min*i.categoryPercentage,s=i.barPercentage):(a=o*r,s=1),{chunk:a/r,ratio:s,start:e.pixels[t]-a/2}}(t,e,o,r),c=i._getStackIndex(i.index,i._cachedMeta.stack,a?t:void 0);u=l.start+l.chunk*c+l.chunk/2,h=Math.min(s,l.chunk*l.ratio)}else u=r.getPixelForValue(i.getParsed(t)[r.axis],t),h=Math.min(s,e.min*e.ratio);return{base:u-h/2,head:u+h/2,center:u,size:h}}draw(){const t=this,e=t.chart,i=t._cachedMeta,r=i.vScale,o=i.data,a=o.length;let s=0;for(Object(n.Db)(e.ctx,e.chartArea);s<a;++s)null!==t.getParsed(s)[r.axis]&&o[s].draw(t._ctx);Object(n.Fb)(e.ctx)}}A.id="bar",A.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},A.overrides={interaction:{mode:"index"},scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class C extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}parseObjectData(t,e,i,r){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:u="y"}=this._parsing,h=[];let l,c,d;for(l=i,c=i+r;l<c;++l)d=e[l],h.push({x:o.parse(Object(n.yb)(d,s),l),y:a.parse(Object(n.yb)(d,u),l),_custom:d&&d.r&&+d.r});return h}getMaxOverflow(){const{data:t,_parsed:e}=this._cachedMeta;let i=0;for(let n=t.length-1;n>=0;--n)i=Math.max(i,t[n].size()/2,e[n]._custom);return i>0&&i}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,r=this.getParsed(t),o=i.getLabelForValue(r.x),a=n.getLabelForValue(r.y),s=r._custom;return{label:e.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const r=this,o="reset"===n,{xScale:a,yScale:s}=r._cachedMeta,u=r.resolveDataElementOptions(e,n),h=r.getSharedOptions(u),l=r.includeOptions(n,h);for(let u=e;u<e+i;u++){const e=t[u],i=!o&&r.getParsed(u),h=o?a.getPixelForDecimal(.5):a.getPixelForValue(i.x),c=o?s.getBasePixel():s.getPixelForValue(i.y),d={x:h,y:c,skip:isNaN(h)||isNaN(c)};l&&(d.options=r.resolveDataElementOptions(u,n),o&&(d.options.radius=0)),r.updateElement(e,u,d,n)}r.updateSharedOptions(h,n,u)}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==e&&(r.radius=0),r.radius+=Object(n.Ob)(i&&i._custom,o),r}}C.id="bubble",C.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},C.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class E extends _{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;let r,o;for(r=t,o=t+e;r<o;++r)n._parsed[r]=+i[r]}_getRotation(){return Object(n.Mb)(this.options.rotation-90)}_getCircumference(){return Object(n.Mb)(this.options.circumference)}_getRotationExtents(){let t=n.u,e=-n.u;const i=this;for(let n=0;n<i.chart.data.datasets.length;++n)if(i.chart.isDatasetVisible(n)){const r=i.chart.getDatasetMeta(n).controller,o=r._getRotation(),a=r._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this,i=e.chart,{chartArea:r}=i,o=e._cachedMeta,a=o.data,s=e.getMaxBorderWidth()+e.getMaxOffset(a),u=Math.max((Math.min(r.width,r.height)-s)/2,0),h=Math.min(Object(n.Gb)(e.options.cutout,u),1),l=e._getRingWeight(e.index),{circumference:c,rotation:d}=e._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:m,offsetY:g}=function(t,e,i){let r=1,o=1,a=0,s=0;if(e<n.u){const u=t,h=u+e,l=Math.cos(u),c=Math.sin(u),d=Math.cos(h),f=Math.sin(h),p=(t,e,r)=>Object(n.Jb)(t,u,h)?1:Math.max(e,e*i,r,r*i),m=(t,e,r)=>Object(n.Jb)(t,u,h)?-1:Math.min(e,e*i,r,r*i),g=p(0,l,d),b=p(n.i,c,f),v=m(n.q,l,d),y=m(n.q+n.i,c,f);r=(g-v)/2,o=(b-y)/2,a=-(g+v)/2,s=-(b+y)/2}return{ratioX:r,ratioY:o,offsetX:a,offsetY:s}}(d,c,h),b=(r.width-s)/f,v=(r.height-s)/p,y=Math.max(Math.min(b,v)/2,0),w=Object(n.Hb)(e.options.radius,y),_=(w-Math.max(w*h,0))/e._getVisibleDatasetWeightTotal();e.offsetX=m*w,e.offsetY=g*w,o.total=e.calculateTotal(),e.outerRadius=w-_*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-_*l,0),e.updateElements(a,0,a.length,t)}_circumference(t,e){const i=this,r=i.options,o=i._cachedMeta,a=i._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||null===o._parsed[t]?0:i.calculateCircumference(o._parsed[t]*a/n.u)}updateElements(t,e,i,n){const r=this,o="reset"===n,a=r.chart,s=a.chartArea,u=a.options.animation,h=(s.left+s.right)/2,l=(s.top+s.bottom)/2,c=o&&u.animateScale,d=c?0:r.innerRadius,f=c?0:r.outerRadius,p=r.resolveDataElementOptions(e,n),m=r.getSharedOptions(p),g=r.includeOptions(n,m);let b,v=r._getRotation();for(b=0;b<e;++b)v+=r._circumference(b,o);for(b=e;b<e+i;++b){const e=r._circumference(b,o),i=t[b],a={x:h+r.offsetX,y:l+r.offsetY,startAngle:v,endAngle:v+e,circumference:e,outerRadius:f,innerRadius:d};g&&(a.options=m||r.resolveDataElementOptions(b,n)),v+=e,r.updateElement(i,b,a,n)}r.updateSharedOptions(m,n,p)}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const e=t._parsed[i];null!==e&&!isNaN(e)&&this.chart.getDataVisibility(i)&&(n+=Math.abs(e))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?n.u*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=Object(n.Ib)(e._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){const e=this;let i=0;const n=e.chart;let r,o,a,s,u;if(!t)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){a=n.getDatasetMeta(r),t=a.data,s=a.controller,s!==e&&s.configure();break}if(!t)return 0;for(r=0,o=t.length;r<o;++r)u=s.resolveDataElementOptions(r),"inner"!==u.borderAlign&&(i=Math.max(i,u.borderWidth||0,u.hoverBorderWidth||0));return i}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(Object(n.Ob)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}E.id="doughnut",E.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",indexAxis:"r"},E.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(((e,i)=>{const n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}})):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return Object(n.ub)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class k extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this,i=e._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=e.chart._animationsDisabled;let{start:u,count:h}=function(t,e,i){const r=e.length;let o=0,a=r;if(t._sorted){const{iScale:s,_parsed:u}=t,h=s.axis,{min:l,max:c,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(o=Object(n.Qb)(Math.min(Object(n.Rb)(u,s.axis,l).lo,i?r:Object(n.Rb)(e,h,s.getPixelForValue(l)).lo),0,r-1)),a=f?Object(n.Qb)(Math.max(Object(n.Rb)(u,s.axis,c).hi+1,i?0:Object(n.Rb)(e,h,s.getPixelForValue(c)).hi+1),o,r)-o:r-o}return{start:o,count:a}}(i,o,s);e._drawStart=u,e._drawCount=h,function(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,r={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=r,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),o}(i)&&(u=0,h=o.length),r._decimated=!!a._decimated,r.points=o;const l=e.resolveDatasetElementOptions(t);e.options.showLine||(l.borderWidth=0),l.segment=e.options.segment,e.updateElement(r,void 0,{animated:!s,options:l},t),e.updateElements(o,u,h,t)}updateElements(t,e,i,r){const o=this,a="reset"===r,{xScale:s,yScale:u,_stacked:h}=o._cachedMeta,l=o.resolveDataElementOptions(e,r),c=o.getSharedOptions(l),d=o.includeOptions(r,c),f=o.options.spanGaps,p=Object(n.Pb)(f)?f:Number.POSITIVE_INFINITY,m=o.chart._animationsDisabled||a||"none"===r;let g=e>0&&o.getParsed(e-1);for(let l=e;l<e+i;++l){const e=t[l],i=o.getParsed(l),f=m?e:{},b=Object(n.Cb)(i.y),v=f.x=s.getPixelForValue(i.x,l),y=f.y=a||b?u.getBasePixel():u.getPixelForValue(h?o.applyStack(u,i,h):i.y,l);f.skip=isNaN(v)||isNaN(y)||b,f.stop=l>0&&i.x-g.x>p,f.parsed=i,d&&(f.options=c||o.resolveDataElementOptions(l,r)),m||o.updateElement(e,l,f,r),g=i}o.updateSharedOptions(c,r,l)}getMaxOverflow(){const t=this,e=t._cachedMeta,i=e.dataset,n=i.options&&i.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(t.resolveDataElementOptions(0)),a=r[r.length-1].size(t.resolveDataElementOptions(r.length-1));return Math.max(n,o,a)/2}draw(){this._cachedMeta.dataset.updateControlPoints(this.chart.chartArea),super.draw()}}k.id="line",k.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},k.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class O extends _{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this,e=t.chart,i=e.chartArea,n=e.options,r=Math.min(i.right-i.left,i.bottom-i.top),o=Math.max(r/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();t.outerRadius=o-a*t.index,t.innerRadius=t.outerRadius-a}updateElements(t,e,i,r){const o=this,a="reset"===r,s=o.chart,u=o.getDataset(),h=s.options.animation,l=o._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,f=l.getIndexAngle(0)-.5*n.q;let p,m=f;const g=360/o.countVisibleElements();for(p=0;p<e;++p)m+=o._computeAngle(p,r,g);for(p=e;p<e+i;p++){const e=t[p];let i=m,n=m+o._computeAngle(p,r,g),b=s.getDataVisibility(p)?l.getDistanceFromCenterForValue(u.data[p]):0;m=n,a&&(h.animateScale&&(b=0),h.animateRotate&&(i=n=f));const v={x:c,y:d,innerRadius:0,outerRadius:b,startAngle:i,endAngle:n,options:o.resolveDataElementOptions(p,r)};o.updateElement(e,p,v,r)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let i=0;return e.data.forEach(((e,n)=>{!isNaN(t.data[n])&&this.chart.getDataVisibility(n)&&i++})),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Object(n.Mb)(this.resolveDataElementOptions(t,e).angle||i):0}}O.id="polarArea",O.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},O.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(((e,i)=>{const n=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!t.getDataVisibility(i),index:i}})):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class P extends E{}P.id="pie",P.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I extends _{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this,i=e._cachedMeta,n=i.dataset,r=i.data||[],o=i.iScale.getLabels();if(n.points=r,"resize"!==t){const i=e.resolveDatasetElementOptions(t);e.options.showLine||(i.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===r.length,options:i};e.updateElement(n,void 0,a,t)}e.updateElements(r,0,r.length,t)}updateElements(t,e,i,n){const r=this,o=r.getDataset(),a=r._cachedMeta.rScale,s="reset"===n;for(let u=e;u<e+i;u++){const e=t[u],i=r.resolveDataElementOptions(u,n),h=a.getPointPositionForValue(u,o.data[u]),l=s?a.xCenter:h.x,c=s?a.yCenter:h.y,d={x:l,y:c,angle:h.angle,skip:isNaN(l)||isNaN(c),options:i};r.updateElement(e,u,d,n)}}}I.id="radar",I.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},I.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class j extends k{}j.id="scatter",j.defaults={showLine:!1,fill:!1},j.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function R(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}class D{constructor(t){this.options=t||{}}formats(){return R()}parse(t,e){return R()}format(t,e){return R()}add(t,e,i){return R()}diff(t,e,i){return R()}startOf(t,e,i){return R()}endOf(t,e){return R()}}D.override=function(t){Object.assign(D.prototype,t)};var L={_date:D};function B(t,e){return"native"in t?{x:t.x,y:t.y}:Object(n.Sb)(t,e)}function N(t,e,i,r){const{controller:o,data:a,_sorted:s}=t,u=o._cachedMeta.iScale;if(u&&e===u.axis&&s&&a.length){const t=u._reversePixels?n.c:n.Rb;if(!r)return t(a,e,i);if(o._sharedOptions){const n=a[0],r="function"==typeof n.getRange&&n.getRange(e);if(r){const n=t(a,e,i-r),o=t(a,e,i+r);return{lo:n.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function z(t,e,i,n,r){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:s}=o[t],{lo:u,hi:h}=N(o[t],e,a,r);for(let t=u;t<=h;++t){const e=s[t];e.skip||n(e,i,t)}}}function H(t,e,i,r){const o=[];if(!Object(n.b)(e,t.chartArea,t._minPadding))return o;return z(t,i,e,(function(t,i,n){t.inRange(e.x,e.y,r)&&o.push({element:t,datasetIndex:i,index:n})}),!0),o}function F(t,e,i,r,o){const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const r=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(i);let s=Number.POSITIVE_INFINITY,u=[];if(!Object(n.b)(e,t.chartArea,t._minPadding))return u;return z(t,i,e,(function(t,i,n){if(r&&!t.inRange(e.x,e.y,o))return;const h=t.getCenterPoint(o),l=a(e,h);l<s?(u=[{element:t,datasetIndex:i,index:n}],s=l):l===s&&u.push({element:t,datasetIndex:i,index:n})})),u}function V(t,e,i,n){const r=B(e,t),o=[],a=i.axis,s="x"===a?"inXRange":"inYRange";let u=!1;return function(t,e){const i=t.getSortedVisibleDatasetMetas();let n,r,o;for(let t=0,a=i.length;t<a;++t){({index:n,data:r}=i[t]);for(let t=0,i=r.length;t<i;++t)o=r[t],o.skip||e(o,n,t)}}(t,((t,e,i)=>{t[s](r[a],n)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(r.x,r.y,n)&&(u=!0)})),i.intersect&&!u?[]:o}var U={modes:{index(t,e,i,n){const r=B(e,t),o=i.axis||"x",a=i.intersect?H(t,r,o,n):F(t,r,o,!1,n),s=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&s.push({element:i,datasetIndex:t.index,index:e})})),s):[]},dataset(t,e,i,n){const r=B(e,t),o=i.axis||"xy";let a=i.intersect?H(t,r,o,n):F(t,r,o,!1,n);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point:(t,e,i,n)=>H(t,B(e,t),i.axis||"xy",n),nearest:(t,e,i,n)=>F(t,B(e,t),i.axis||"xy",i.intersect,n),x:(t,e,i,n)=>(i.axis="x",V(t,e,i,n)),y:(t,e,i,n)=>(i.axis="y",V(t,e,i,n))}};const G=["left","top","right","bottom"];function q(t,e){return t.filter((t=>t.pos===e))}function W(t,e){return t.filter((t=>-1===G.indexOf(t.pos)&&t.box.axis===e))}function Z(t,e){return t.sort(((t,i)=>{const n=e?i:t,r=e?t:i;return n.weight===r.weight?n.index-r.index:n.weight-r.weight}))}function Y(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function $(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function K(t,e,i){const r=i.box,o=t.maxPadding;Object(n.Bb)(i.pos)||(i.size&&(t[i.pos]-=i.size),i.size=i.horizontal?r.height:r.width,t[i.pos]+=i.size),r.getPadding&&$(o,r.getPadding());const a=Math.max(0,e.outerWidth-Y(o,t,"left","right")),s=Math.max(0,e.outerHeight-Y(o,t,"top","bottom")),u=a!==t.w,h=s!==t.h;return t.w=a,t.h=s,i.horizontal?{same:u,other:h}:{same:h,other:u}}function X(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function Q(t,e,i){const n=[];let r,o,a,s,u,h;for(r=0,o=t.length,u=0;r<o;++r){a=t[r],s=a.box,s.update(a.width||e.w,a.height||e.h,X(a.horizontal,e));const{same:o,other:l}=K(e,i,a);u|=o&&n.length,h=h||l,s.fullSize||n.push(a)}return u&&Q(n,e,i)||h}function J(t,e,i){const n=i.padding;let r,o,a,s,u=e.x,h=e.y;for(r=0,o=t.length;r<o;++r)a=t[r],s=a.box,a.horizontal?(s.left=s.fullSize?n.left:e.left,s.right=s.fullSize?i.outerWidth-n.right:e.left+e.w,s.top=h,s.bottom=h+s.height,s.width=s.right-s.left,h=s.bottom):(s.left=u,s.right=u+s.width,s.top=s.fullSize?n.top:e.top,s.bottom=s.fullSize?i.outerHeight-n.right:e.top+e.h,s.height=s.bottom-s.top,u=s.right);e.x=u,e.y=h}n.wb.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var tt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,r){if(!t)return;const o=Object(n.d)(t.options.layout.padding),a=e-o.width,s=i-o.height,u=function(t){const e=function(t){const e=[];let i,n,r;for(i=0,n=(t||[]).length;i<n;++i)r=t[i],e.push({index:i,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return e}(t),i=Z(e.filter((t=>t.box.fullSize)),!0),n=Z(q(e,"left"),!0),r=Z(q(e,"right")),o=Z(q(e,"top"),!0),a=Z(q(e,"bottom")),s=W(e,"x"),u=W(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:r.concat(u).concat(a).concat(s),chartArea:q(e,"chartArea"),vertical:n.concat(r).concat(u),horizontal:o.concat(a).concat(s)}}(t.boxes),h=u.vertical,l=u.horizontal;Object(n.e)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=h.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/c,hBoxMaxHeight:s/2}),f=Object.assign({},o);$(f,Object(n.d)(r));const p=Object.assign({maxPadding:f,w:a,h:s,x:o.left,y:o.top},o);!function(t,e){let i,n,r;for(i=0,n=t.length;i<n;++i)r=t[i],r.horizontal?(r.width=r.box.fullSize&&e.availableWidth,r.height=e.hBoxMaxHeight):(r.width=e.vBoxMaxWidth,r.height=r.box.fullSize&&e.availableHeight)}(h.concat(l),d),Q(u.fullSize,p,d),Q(h,p,d),Q(l,p,d)&&Q(h,p,d),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),J(u.leftAndTop,p,d),p.x+=p.w,p.y+=p.h,J(u.rightAndBottom,p,d),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Object(n.e)(u.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h)}))}};class et{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}}class it extends et{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}}const nt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},rt=t=>null===t||""===t;const ot=!!n.k&&{passive:!0};function at(t,e,i){t.canvas.removeEventListener(e,i,ot)}function st(t,e,i){const r=t.canvas,o=r&&Object(n.g)(r)||r,a=new MutationObserver((t=>{const e=Object(n.g)(o);t.forEach((t=>{for(let n=0;n<t.addedNodes.length;n++){const r=t.addedNodes[n];r!==o&&r!==e||i(t.target)}}))}));return a.observe(document,{childList:!0,subtree:!0}),a}function ut(t,e,i){const r=t.canvas,o=r&&Object(n.g)(r);if(!o)return;const a=new MutationObserver((t=>{t.forEach((t=>{for(let e=0;e<t.removedNodes.length;e++)if(t.removedNodes[e]===r){i();break}}))}));return a.observe(o,{childList:!0}),a}const ht=new Map;let lt=0;function ct(){const t=window.devicePixelRatio;t!==lt&&(lt=t,ht.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function dt(t,e,i){const r=t.canvas,o=r&&Object(n.g)(r);if(!o)return;const a=Object(n.j)(((t,e)=>{const n=o.clientWidth;i(t,e),n<o.clientWidth&&i()}),window),s=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||a(i,n)}));return s.observe(o),function(t,e){ht.size||window.addEventListener("resize",ct),ht.set(t,e)}(t,a),s}function ft(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ht.delete(t),ht.size||window.removeEventListener("resize",ct)}(t)}function pt(t,e,i){const r=t.canvas,o=Object(n.j)((e=>{null!==t.ctx&&i(function(t,e){const i=nt[t.type]||t.type,{x:r,y:o}=Object(n.Sb)(t,e);return{type:i,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,ot)}(r,e,o),o}class mt extends et{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:r,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",rt(o)){const e=Object(n.h)(t,"width");void 0!==e&&(t.width=e)}if(rt(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Object(n.h)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const r=i[t];Object(n.Cb)(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=i.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:st,detach:ut,resize:dt}[e]||pt;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:ft,detach:ft,resize:ft}[e]||at)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return Object(n.f)(t,e,i,r)}isAttached(t){const e=Object(n.g)(t);return!(!e||!Object(n.g)(e))}}class gt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Object(n.Pb)(this.x)&&Object(n.Pb)(this.y)}getProps(t,e){const i=this,n=this.$animations;if(!e||!n)return i;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:i[t]})),r}}gt.defaults={},gt.defaultRoutes=void 0;const bt={values:t=>Object(n.ub)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const r=this.chart.options.locale;let o,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const s=Object(n.l)(Math.abs(a)),u=Math.max(Math.min(-1*Math.floor(s),20),0),h={notation:o,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(h,this.options.ticks.format),Object(n.Ib)(t,r,h)},logarithmic(t,e,i){if(0===t)return"0";const r=t/Math.pow(10,Math.floor(Object(n.l)(t)));return 1===r||2===r||5===r?bt.numeric.call(this,t,e,i):""}};var vt={formatters:bt};function yt(t,e){const i=t.options.ticks,r=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),r=t._maxLength/i;return Math.floor(Math.min(n,r))}(t),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],a=o.length,s=o[0],u=o[a-1],h=[];if(a>r)return function(t,e,i,n){let r,o=0,a=i[0];for(n=Math.ceil(n),r=0;r<t.length;r++)r===a&&(e.push(t[r]),o++,a=i[o*n])}(e,h,o,a/r),h;const l=function(t,e,i){const r=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),o=e.length/i;if(!r)return Math.max(o,1);const a=Object(n.m)(r);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,r);if(a>0){let t,i;const r=a>1?Math.round((u-s)/(a-1)):null;for(wt(e,h,l,Object(n.Cb)(r)?0:s-r,s),t=0,i=a-1;t<i;t++)wt(e,h,l,o[t],o[t+1]);return wt(e,h,l,u,Object(n.Cb)(r)?e.length:u+r),h}return wt(e,h,l),h}function wt(t,e,i,r,o){const a=Object(n.Ob)(r,0),s=Math.min(Object(n.Ob)(o,t.length),t.length);let u,h,l,c=0;for(i=Math.ceil(i),o&&(u=o-r,i=u/Math.floor(u/i)),l=a;l<0;)c++,l=Math.round(a+c*i);for(h=Math.max(a,0);h<s;h++)h===l&&(e.push(t[h]),c++,l=Math.round(a+c*i))}n.wb.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:vt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.wb.route("scale.ticks","color","","color"),n.wb.route("scale.grid","color","","borderColor"),n.wb.route("scale.grid","borderColor","","borderColor"),n.wb.route("scale.title","color","","color"),n.wb.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),n.wb.describe("scales",{_fallback:"scale"});const _t=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Mt(t,e){const i=[],n=t.length/e,r=t.length;let o=0;for(;o<r;o+=n)i.push(t[Math.floor(o)]);return i}function xt(t,e,i){const n=t.ticks.length,r=Math.min(e,n-1),o=t._startPixel,a=t._endPixel,s=1e-6;let u,h=t.getPixelForTick(r);if(!(i&&(u=1===n?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(r-1))/2,h+=r<e?u:-u,h<o-s||h>a+s)))return h}function St(t){return t.drawTicks?t.tickLength:0}function Tt(t,e){if(!t.display)return 0;const i=Object(n.x)(t.font,e),r=Object(n.d)(t.padding);return(Object(n.ub)(t.text)?t.text.length:1)*i.lineHeight+r.height}function At(t,e,i){let r=Object(n.y)(t);return(i&&"right"!==e||!i&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class Ct extends gt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){const e=this;e.options=t.setContext(e.getContext()),e.axis=t.axis,e._userMin=e.parse(t.min),e._userMax=e.parse(t.max),e._suggestedMin=e.parse(t.suggestedMin),e._suggestedMax=e.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=Object(n.n)(t,Number.POSITIVE_INFINITY),e=Object(n.n)(e,Number.NEGATIVE_INFINITY),i=Object(n.n)(i,Number.POSITIVE_INFINITY),r=Object(n.n)(r,Number.NEGATIVE_INFINITY),{min:Object(n.n)(t,i),max:Object(n.n)(e,r),minDefined:Object(n.zb)(t),maxDefined:Object(n.zb)(e)}}getMinMax(t){const e=this;let i,{min:r,max:o,minDefined:a,maxDefined:s}=e.getUserBounds();if(a&&s)return{min:r,max:o};const u=e.getMatchingVisibleMetas();for(let n=0,h=u.length;n<h;++n)i=u[n].controller.getMinMax(e,t),a||(r=Math.min(r,i.min)),s||(o=Math.max(o,i.max));return{min:Object(n.n)(r,Object(n.n)(o,r)),max:Object(n.n)(o,Object(n.n)(r,o))}}getPadding(){const t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Object(n.o)(this.options.beforeUpdate,[this])}update(t,e,i){const r=this,o=r.options.ticks,a=o.sampleSize;r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),r.ticks=null,r._labelSizes=null,r._gridLineItems=null,r._labelItems=null,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r._maxLength=r.isHorizontal()?r.width+i.left+i.right:r.height+i.top+i.bottom,r._dataLimitsCached||(r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r._range=Object(n.p)(r,r.options.grace),r._dataLimitsCached=!0),r.beforeBuildTicks(),r.ticks=r.buildTicks()||[],r.afterBuildTicks();const s=a<r.ticks.length;r._convertTicksToLabels(s?Mt(r.ticks,a):r.ticks),r.configure(),r.beforeCalculateLabelRotation(),r.calculateLabelRotation(),r.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(r.ticks=yt(r,r.ticks),r._labelSizes=null),s&&r._convertTicksToLabels(r.ticks),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate()}configure(){const t=this;let e,i,n=t.options.reverse;t.isHorizontal()?(e=t.left,i=t.right):(e=t.top,i=t.bottom,n=!n),t._startPixel=e,t._endPixel=i,t._reversePixels=n,t._length=i-e,t._alignToPixels=t.options.alignToPixels}afterUpdate(){Object(n.o)(this.options.afterUpdate,[this])}beforeSetDimensions(){Object(n.o)(this.options.beforeSetDimensions,[this])}setDimensions(){const 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}afterSetDimensions(){Object(n.o)(this.options.afterSetDimensions,[this])}_callHooks(t){const e=this;e.chart.notifyPlugins(t,e.getContext()),Object(n.o)(e.options[t],[e])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Object(n.o)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this,i=e.options.ticks;let r,o,a;for(r=0,o=t.length;r<o;r++)a=t[r],a.label=Object(n.o)(i.callback,[a.value,r,t],e);for(r=0;r<o;r++)Object(n.Cb)(t[r].label)&&(t.splice(r,1),o--,r--)}afterTickToLabelConversion(){Object(n.o)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Object(n.o)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this,e=t.options,i=e.ticks,r=t.ticks.length,o=i.minRotation||0,a=i.maxRotation;let s,u,h,l=o;if(!t._isVisible()||!i.display||o>=a||r<=1||!t.isHorizontal())return void(t.labelRotation=o);const c=t._getLabelSizes(),d=c.widest.width,f=c.highest.height,p=Object(n.Qb)(t.chart.width-d,0,t.maxWidth);s=e.offset?t.maxWidth/r:p/(r-1),d+6>s&&(s=p/(r-(e.offset?.5:1)),u=t.maxHeight-St(e.grid)-i.padding-Tt(e.title,t.chart.options.font),h=Math.sqrt(d*d+f*f),l=Object(n.r)(Math.min(Math.asin(Math.min((c.highest.height+6)/s,1)),Math.asin(Math.min(u/h,1))-Math.asin(f/h))),l=Math.max(o,Math.min(a,l))),t.labelRotation=l}afterCalculateLabelRotation(){Object(n.o)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Object(n.o)(this.options.beforeFit,[this])}fit(){const t=this,e={width:0,height:0},{chart:i,options:{ticks:r,title:o,grid:a}}=t,s=t._isVisible(),u=t.isHorizontal();if(s){const s=Tt(o,i.options.font);if(u?(e.width=t.maxWidth,e.height=St(a)+s):(e.height=t.maxHeight,e.width=St(a)+s),r.display&&t.ticks.length){const{first:i,last:o,widest:a,highest:s}=t._getLabelSizes(),h=2*r.padding,l=Object(n.Mb)(t.labelRotation),c=Math.cos(l),d=Math.sin(l);if(u){const i=r.mirror?0:d*a.width+c*s.height;e.height=Math.min(t.maxHeight,e.height+i+h)}else{const i=r.mirror?0:c*a.width+d*s.height;e.width=Math.min(t.maxWidth,e.width+i+h)}t._calculatePadding(i,o,d,c)}}t._handleMargins(),u?(t.width=t._length=i.width-t._margins.left-t._margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=i.height-t._margins.top-t._margins.bottom)}_calculatePadding(t,e,i,n){const r=this,{ticks:{align:o,padding:a},position:s}=r.options,u=0!==r.labelRotation,h="top"!==s&&"x"===r.axis;if(r.isHorizontal()){const s=r.getPixelForTick(0)-r.left,l=r.right-r.getPixelForTick(r.ticks.length-1);let c=0,d=0;u?h?(c=n*t.width,d=i*e.height):(c=i*t.height,d=n*e.width):"start"===o?d=e.width:"end"===o?c=t.width:(c=t.width/2,d=e.width/2),r.paddingLeft=Math.max((c-s+a)*r.width/(r.width-s),0),r.paddingRight=Math.max((d-l+a)*r.width/(r.width-l),0)}else{let i=e.height/2,n=t.height/2;"start"===o?(i=0,n=t.height):"end"===o&&(i=e.height,n=0),r.paddingTop=i+a,r.paddingBottom=n+a}}_handleMargins(){const t=this;t._margins&&(t._margins.left=Math.max(t.paddingLeft,t._margins.left),t._margins.top=Math.max(t.paddingTop,t._margins.top),t._margins.right=Math.max(t.paddingRight,t._margins.right),t._margins.bottom=Math.max(t.paddingBottom,t._margins.bottom))}afterFit(){Object(n.o)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){const e=this;e.beforeTickToLabelConversion(),e.generateTickLabels(t),e.afterTickToLabelConversion()}_getLabelSizes(){const t=this;let e=t._labelSizes;if(!e){const i=t.options.ticks.sampleSize;let n=t.ticks;i<n.length&&(n=Mt(n,i)),t._labelSizes=e=t._computeLabelSizes(n,n.length)}return e}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:r}=this,o=[],a=[];let s,u,h,l,c,d,f,p,m,g,b,v=0,y=0;for(s=0;s<e;++s){if(l=t[s].label,c=this._resolveTickFontOptions(s),i.font=d=c.string,f=r[d]=r[d]||{data:{},gc:[]},p=c.lineHeight,m=g=0,Object(n.Cb)(l)||Object(n.ub)(l)){if(Object(n.ub)(l))for(u=0,h=l.length;u<h;++u)b=l[u],Object(n.Cb)(b)||Object(n.ub)(b)||(m=Object(n.s)(i,f.data,f.gc,m,b),g+=p)}else m=Object(n.s)(i,f.data,f.gc,m,l),g=p;o.push(m),a.push(g),v=Math.max(m,v),y=Math.max(g,y)}!function(t,e){Object(n.e)(t,(t=>{const i=t.gc,n=i.length/2;let r;if(n>e){for(r=0;r<n;++r)delete t.data[i[r]];i.splice(0,n)}}))}(r,e);const w=o.indexOf(v),_=a.indexOf(y),M=t=>({width:o[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(w),highest:M(_),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){const e=this;e._reversePixels&&(t=1-t);const i=e._startPixel+t*e._length;return Object(n.t)(e._alignToPixels?Object(n.v)(e.chart,i,0):i)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this,i=e.ticks||[];if(t>=0&&t<i.length){const n=i[t];return n.$context||(n.$context=function(t,e,i){return Object.assign(Object.create(t),{tick:i,index:e,type:"tick"})}(e.getContext(),t,n))}return e.$context||(e.$context=(n=e.chart.getContext(),r=e,Object.assign(Object.create(n),{scale:r,type:"scale"})));var n,r}_tickSize(){const t=this,e=t.options.ticks,i=Object(n.Mb)(t.labelRotation),r=Math.abs(Math.cos(i)),o=Math.abs(Math.sin(i)),a=t._getLabelSizes(),s=e.autoSkipPadding||0,u=a?a.widest.width+s:0,h=a?a.highest.height+s:0;return t.isHorizontal()?h*r>u*o?u/r:h/o:h*o<u*r?h/r:u/o}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this,i=e.axis,r=e.chart,o=e.options,{grid:a,position:s}=o,u=a.offset,h=e.isHorizontal(),l=e.ticks.length+(u?1:0),c=St(a),d=[],f=a.setContext(e.getContext()),p=f.drawBorder?f.borderWidth:0,m=p/2,g=function(t){return Object(n.v)(r,t,p)};let b,v,y,w,_,M,x,S,T,A,C,E;if("top"===s)b=g(e.bottom),M=e.bottom-c,S=b-m,A=g(t.top)+m,E=t.bottom;else if("bottom"===s)b=g(e.top),A=t.top,E=g(t.bottom)-m,M=b+m,S=e.top+c;else if("left"===s)b=g(e.right),_=e.right-c,x=b-m,T=g(t.left)+m,C=t.right;else if("right"===s)b=g(e.left),T=t.left,C=g(t.right)-m,_=b+m,x=e.left+c;else if("x"===i){if("center"===s)b=g((t.top+t.bottom)/2+.5);else if(Object(n.Bb)(s)){const t=Object.keys(s)[0],i=s[t];b=g(e.chart.scales[t].getPixelForValue(i))}A=t.top,E=t.bottom,M=b+m,S=M+c}else if("y"===i){if("center"===s)b=g((t.left+t.right)/2);else if(Object(n.Bb)(s)){const t=Object.keys(s)[0],i=s[t];b=g(e.chart.scales[t].getPixelForValue(i))}_=b-m,x=_-c,T=t.left,C=t.right}for(v=0;v<l;++v){const t=a.setContext(e.getContext(v)),i=t.lineWidth,o=t.color,s=a.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,f=t.tickColor,p=t.tickBorderDash||[],m=t.tickBorderDashOffset;y=xt(e,v,u),void 0!==y&&(w=Object(n.v)(r,y,i),h?_=x=T=C=w:M=S=A=E=w,d.push({tx1:_,ty1:M,tx2:x,ty2:S,x1:T,y1:A,x2:C,y2:E,width:i,color:o,borderDash:s,borderDashOffset:l,tickWidth:c,tickColor:f,tickBorderDash:p,tickBorderDashOffset:m}))}return e._ticksLength=l,e._borderValue=b,d}_computeLabelItems(t){const e=this,i=e.axis,r=e.options,{position:o,ticks:a}=r,s=e.isHorizontal(),u=e.ticks,{align:h,crossAlign:l,padding:c,mirror:d}=a,f=St(r.grid),p=f+c,m=d?-c:p,g=-Object(n.Mb)(e.labelRotation),b=[];let v,y,w,_,M,x,S,T,A,C,E,k,O="middle";if("top"===o)x=e.bottom-m,S=e._getXAxisLabelAlignment();else if("bottom"===o)x=e.top+m,S=e._getXAxisLabelAlignment();else if("left"===o){const t=e._getYAxisLabelAlignment(f);S=t.textAlign,M=t.x}else if("right"===o){const t=e._getYAxisLabelAlignment(f);S=t.textAlign,M=t.x}else if("x"===i){if("center"===o)x=(t.top+t.bottom)/2+p;else if(Object(n.Bb)(o)){const t=Object.keys(o)[0],i=o[t];x=e.chart.scales[t].getPixelForValue(i)+p}S=e._getXAxisLabelAlignment()}else if("y"===i){if("center"===o)M=(t.left+t.right)/2-p;else if(Object(n.Bb)(o)){const t=Object.keys(o)[0],i=o[t];M=e.chart.scales[t].getPixelForValue(i)}S=e._getYAxisLabelAlignment(f).textAlign}"y"===i&&("start"===h?O="top":"end"===h&&(O="bottom"));const P=e._getLabelSizes();for(v=0,y=u.length;v<y;++v){w=u[v],_=w.label;const t=a.setContext(e.getContext(v));T=e.getPixelForTick(v)+a.labelOffset,A=e._resolveTickFontOptions(v),C=A.lineHeight,E=Object(n.ub)(_)?_.length:1;const i=E/2,r=t.color,h=t.textStrokeColor,c=t.textStrokeWidth;let f;if(s?(M=T,k="top"===o?"near"===l||0!==g?-E*C+C/2:"center"===l?-P.highest.height/2-i*C+C:-P.highest.height+C/2:"near"===l||0!==g?C/2:"center"===l?P.highest.height/2-i*C:P.highest.height-E*C,d&&(k*=-1)):(x=T,k=(1-E)*C/2),t.showLabelBackdrop){const e=Object(n.d)(t.backdropPadding),i=P.heights[v],r=P.widths[v];let o=x+k-e.top,a=M-e.left;switch(O){case"middle":o-=i/2;break;case"bottom":o-=i}switch(S){case"center":a-=r/2;break;case"right":a-=r}f={left:a,top:o,width:r+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:g,label:_,font:A,color:r,strokeColor:h,strokeWidth:c,textOffset:k,textAlign:S,textBaseline:O,translation:[M,x],backdrop:f})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Object(n.Mb)(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align&&(i="right"),i}_getYAxisLabelAlignment(t){const e=this,{position:i,ticks:{crossAlign:n,mirror:r,padding:o}}=e.options,a=t+o,s=e._getLabelSizes().widest.width;let u,h;return"left"===i?r?(u="left",h=e.right+o):(h=e.right-a,"near"===n?u="right":"center"===n?(u="center",h-=s/2):(u="left",h=e.left)):"right"===i?r?(u="right",h=e.left+o):(h=e.left+a,"near"===n?u="left":"center"===n?(u="center",h+=s/2):(u="right",h=e.right)):u="right",{textAlign:u,x:h}}_computeLabelArea(){const t=this;if(t.options.ticks.mirror)return;const e=t.chart,i=t.options.position;return"left"===i||"right"===i?{top:0,left:t.left,bottom:e.height,right:t.right}:"top"===i||"bottom"===i?{top:t.top,left:0,bottom:t.bottom,right:e.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,r,o),t.restore())}getLineWidthForValue(t){const e=this,i=e.options.grid;if(!e._isVisible()||!i.display)return 0;const n=e.ticks.findIndex((e=>e.value===t));if(n>=0){return i.setContext(e.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this,i=e.options.grid,n=e.ctx,r=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));let o,a;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(i.display)for(o=0,a=r.length;o<a;++o){const t=r[o];i.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),i.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const t=this,{chart:e,ctx:i,options:{grid:r}}=t,o=r.setContext(t.getContext()),a=r.drawBorder?o.borderWidth:0;if(!a)return;const s=r.setContext(t.getContext(0)).lineWidth,u=t._borderValue;let h,l,c,d;t.isHorizontal()?(h=Object(n.v)(e,t.left,a)-a/2,l=Object(n.v)(e,t.right,s)+s/2,c=d=u):(c=Object(n.v)(e,t.top,a)-a/2,d=Object(n.v)(e,t.bottom,s)+s/2,h=l=u),i.save(),i.lineWidth=o.borderWidth,i.strokeStyle=o.borderColor,i.beginPath(),i.moveTo(h,c),i.lineTo(l,d),i.stroke(),i.restore()}drawLabels(t){const e=this;if(!e.options.ticks.display)return;const i=e.ctx,r=e._computeLabelArea();r&&Object(n.Db)(i,r);const o=e._labelItems||(e._labelItems=e._computeLabelItems(t));let a,s;for(a=0,s=o.length;a<s;++a){const t=o[a],e=t.font,r=t.label;t.backdrop&&(i.fillStyle=t.backdrop.color,i.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let s=t.textOffset;Object(n.w)(i,r,0,s,e,t)}r&&Object(n.Fb)(i)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const o=Object(n.x)(i.font),a=Object(n.d)(i.padding),s=i.align;let u=o.lineHeight/2;"bottom"===e?(u+=a.bottom,Object(n.ub)(i.text)&&(u+=o.lineHeight*(i.text.length-1))):u+=a.top;const{titleX:h,titleY:l,maxWidth:c,rotation:d}=function(t,e,i,r){const{top:o,left:a,bottom:s,right:u}=t;let h,l,c,d=0;return t.isHorizontal()?(l=Object(n.z)(r,a,u),c=_t(t,i,e),h=u-a):(l=_t(t,i,e),c=Object(n.z)(r,s,o),d="left"===i?-n.i:n.i),{titleX:l,titleY:c,maxWidth:h,rotation:d}}(this,u,e,s);Object(n.w)(t,i.text,0,0,o,{color:i.color,maxWidth:c,rotation:d,textAlign:At(s,e,r),textBaseline:"middle",translation:[h,l]})}draw(t){const e=this;e._isVisible()&&(e.drawBackground(),e.drawGrid(t),e.drawBorder(),e.drawTitle(),e.drawLabels(t))}_layers(){const t=this,e=t.options,i=e.ticks&&e.ticks.z||0,n=e.grid&&e.grid.z||0;return t._isVisible()&&t.draw===Ct.prototype.draw?[{z:n,draw(e){t.drawBackground(),t.drawGrid(e),t.drawTitle()}},{z:n+1,draw(){t.drawBorder()}},{z:i,draw(e){t.drawLabels(e)}}]:[{z:i,draw(e){t.draw(e)}}]}getMatchingVisibleMetas(t){const e=this,i=e.chart.getSortedVisibleDatasetMetas(),n=e.axis+"AxisID",r=[];let o,a;for(o=0,a=i.length;o<a;++o){const a=i[o];a[n]!==e.id||t&&a.type!==t||r.push(a)}return r}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return Object(n.x)(e.font)}_maxDigits(){const t=this,e=t._resolveTickFontOptions(0).lineHeight;return t.isHorizontal()?t.width/e/.7:t.height/e}}class Et{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=this,i=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(i)&&(r=e.register(i));const o=e.items,a=t.id,s=e.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in o||(o[a]=t,function(t,e,i){const r=Object(n.a)(Object.create(null),[i?n.wb.get(i):{},n.wb.get(e),t.defaults]);n.wb.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const r=i.split("."),o=r.pop(),a=[t].concat(r).join("."),s=e[i].split("."),u=s.pop(),h=s.join(".");n.wb.route(a,o,h,u)}))}(e,t.defaultRoutes);t.descriptors&&n.wb.describe(e,t.descriptors)}(t,s,r),e.override&&n.wb.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in n.wb[r]&&(delete n.wb[r][i],this.override&&delete n.A[i])}}var kt=new class{constructor(){this.controllers=new Et(_,"datasets",!0),this.elements=new Et(gt,"elements"),this.plugins=new Et(Object,"plugins"),this.scales=new Et(Ct,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){const r=this;[...e].forEach((e=>{const o=i||r._getRegistryForType(e);i||o.isForType(e)||o===r.plugins&&e.id?r._exec(t,o,e):Object(n.e)(e,(e=>{const n=i||r._getRegistryForType(e);r._exec(t,n,e)}))}))}_exec(t,e,i){const r=Object(n.D)(t);Object(n.o)(i["before"+r],[],i),e[t](i),Object(n.o)(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class Ot{constructor(){this._init=[]}notify(t,e,i,n){const r=this;"beforeInit"===e&&(r._init=r._createDescriptors(t,!0),r._notify(r._init,t,"install"));const o=n?r._descriptors(t).filter(n):r._descriptors(t),a=r._notify(o,t,e,i);return"destroy"===e&&(r._notify(o,t,"stop"),r._notify(r._init,t,"uninstall")),a}_notify(t,e,i,r){r=r||{};for(const o of t){const t=o.plugin,a=t[i],s=[e,r,o.options];if(!1===Object(n.o)(a,s,t)&&r.cancelable)return!1}return!0}invalidate(){Object(n.Cb)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,r=Object(n.Ob)(i.options&&i.options.plugins,{}),o=function(t){const e=[],i=Object.keys(kt.plugins.items);for(let t=0;t<i.length;t++)e.push(kt.getPlugin(i[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const i=n[t];-1===e.indexOf(i)&&e.push(i)}return e}(i);return!1!==r||e?function(t,e,i,n){const r=[],o=t.getContext();for(let a=0;a<e.length;a++){const s=e[a],u=Pt(i[s.id],n);null!==u&&r.push({plugin:s,options:It(t.config,s,u,o)})}return r}(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Pt(t,e){return e||!1!==t?!0===t?{}:t:null}function It(t,e,i,n){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(i,r);return t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function jt(t,e){const i=n.wb.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Rt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Dt(t){const e=t.options||(t.options={});e.plugins=Object(n.Ob)(e.plugins,{}),e.scales=function(t,e){const i=n.A[t.type]||{scales:{}},r=e.scales||{},o=jt(t.type,e),a=Object.create(null),s=Object.create(null);return Object.keys(r).forEach((t=>{const e=r[t],u=Rt(t,e),h=function(t,e){return t===e?"_index_":"_value_"}(u,o),l=i.scales||{};a[u]=a[u]||t,s[t]=Object(n.J)(Object.create(null),[{axis:u},e,l[u],l[h]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,u=i.indexAxis||jt(o,e),h=(n.A[o]||{}).scales||{};Object.keys(h).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,u),o=i[e+"AxisID"]||a[e]||e;s[o]=s[o]||Object.create(null),Object(n.J)(s[o],[{axis:e},r[o],h[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];Object(n.J)(e,[n.wb.scales[e.type],n.wb.scale])})),s}(t,e)}function Lt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Bt=new Map,Nt=new Set;function zt(t,e){let i=Bt.get(t);return i||(i=e(),Bt.set(t,i),Nt.add(i)),i}const Ht=(t,e,i)=>{const r=Object(n.yb)(e,i);void 0!==r&&t.add(r)};class Ft{constructor(t){this._config=function(t){return(t=t||{}).data=Lt(t.data),Dt(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Lt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Dt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return zt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return zt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return zt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return zt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:r,type:o}=this,a=this._cachedScopes(t,i),s=a.get(e);if(s)return s;const u=new Set;e.forEach((e=>{t&&(u.add(t),e.forEach((e=>Ht(u,t,e)))),e.forEach((t=>Ht(u,r,t))),e.forEach((t=>Ht(u,n.A[o]||{},t))),e.forEach((t=>Ht(u,n.wb,t))),e.forEach((t=>Ht(u,n.E,t)))}));const h=[...u];return Nt.has(e)&&a.set(e,h),h}chartOptionScopes(){const{options:t,type:e}=this;return[t,n.A[e]||{},n.wb.datasets[e]||{},{type:e},n.wb,n.E]}resolveNamedOptions(t,e,i,r=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=Vt(this._resolverCache,t,r);let u=a;if(function(t,e){const{isScriptable:i,isIndexable:r}=Object(n.I)(t);for(const o of e)if(i(o)&&Object(n.F)(t[o])||r(o)&&Object(n.ub)(t[o]))return!0;return!1}(a,e)){o.$shared=!1,i=Object(n.F)(i)?i():i;const e=this.createResolver(t,i,s);u=Object(n.G)(a,i,e)}for(const t of e)o[t]=u[t];return o}createResolver(t,e,i=[""],r){const{resolver:o}=Vt(this._resolverCache,t,i);return Object(n.Bb)(e)?Object(n.G)(o,e,void 0,r):o}}function Vt(t,e,i){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=i.join();let a=r.get(o);if(!a){a={resolver:Object(n.H)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},r.set(o,a)}return a}const Ut=["top","bottom","left","right","chartArea"];function Gt(t,e){return"top"===t||"bottom"===t||-1===Ut.indexOf(t)&&"x"===e}function qt(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Wt(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Object(n.o)(i&&i.onComplete,[t],e)}function Zt(t){const e=t.chart,i=e.options.animation;Object(n.o)(i&&i.onProgress,[t],e)}function Yt(){return"undefined"!=typeof window&&"undefined"!=typeof document}function $t(t){return Yt()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Kt={},Xt=t=>{const e=$t(t);return Object.values(Kt).filter((t=>t.canvas===e)).pop()};class Qt{constructor(t,e){const i=this;this.config=e=new Ft(e);const o=$t(t),a=Xt(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");const s=e.createResolver(e.chartOptionScopes(),i.getContext());this.platform=i._initializePlatform(o,e);const u=i.platform.acquireContext(o,s.aspectRatio),h=u&&u.canvas,l=h&&h.height,c=h&&h.width;this.id=Object(n.K)(),this.ctx=u,this.canvas=h,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new Ot,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(n.L)((()=>this.update("resize")),s.resizeDelay||0),Kt[i.id]=i,u&&h?(r.listen(i,"complete",Wt),r.listen(i,"progress",Zt),i._initialize(),i.attached&&i.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:o}=this;return Object(n.Cb)(t)?e&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){const t=this;return t.notifyPlugins("beforeInit"),t.options.responsive?t.resize():Object(n.M)(t,t.options.devicePixelRatio),t.bindEvents(),t.notifyPlugins("afterInit"),t}_initializePlatform(t,e){return e.platform?new e.platform:!Yt()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?new it:new mt}clear(){return Object(n.U)(this.canvas,this.ctx),this}stop(){return r.stop(this),this}resize(t,e){r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this,r=i.options,o=i.canvas,a=r.maintainAspectRatio&&i.aspectRatio,s=i.platform.getMaximumSize(o,t,e,a),u=i.currentDevicePixelRatio,h=r.devicePixelRatio||i.platform.getDevicePixelRatio();i.width===s.width&&i.height===s.height&&u===h||(i.width=s.width,i.height=s.height,i._aspectRatio=i.aspectRatio,Object(n.M)(i,h,!0),i.notifyPlugins("resize",{size:s}),Object(n.o)(r.onResize,[i,s],i),i.attached&&i._doResize()&&i.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};Object(n.e)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this,e=t.options,i=e.scales,r=t.scales,o=Object.keys(r).reduce(((t,e)=>(t[e]=!1,t)),{});let a=[];i&&(a=a.concat(Object.keys(i).map((t=>{const e=i[t],n=Rt(t,e),r="r"===n,o="x"===n;return{options:e,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),Object(n.e)(a,(i=>{const a=i.options,s=a.id,u=Rt(s,a),h=Object(n.Ob)(a.type,i.dtype);void 0!==a.position&&Gt(a.position,u)===Gt(i.dposition)||(a.position=i.dposition),o[s]=!0;let l=null;if(s in r&&r[s].type===h)l=r[s];else{l=new(kt.getScale(h))({id:s,type:h,ctx:t.ctx,chart:t}),r[l.id]=l}l.init(a,e)})),Object(n.e)(o,((t,e)=>{t||delete r[e]})),Object(n.e)(r,(e=>{tt.configure(t,e,e.options),tt.addBox(t,e)}))}_updateMetasetIndex(t,e){const i=this._metasets,n=t.index;n!==e&&(i[n]=i[e],i[e]=t,t.index=e)}_updateMetasets(){const t=this,e=t._metasets,i=t.data.datasets.length,n=e.length;if(n>i){for(let e=i;e<n;++e)t._destroyDatasetMeta(e);e.splice(i,n-i)}t._sortedMetasets=e.slice(0).sort(qt("order","index"))}_removeUnreferencedMetasets(){const t=this,{_metasets:e,data:{datasets:i}}=t;e.length>i.length&&delete t._stacks,e.forEach(((e,n)=>{0===i.filter((t=>t===e._dataset)).length&&t._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=this,e=[],i=t.data.datasets;let r,o;for(t._removeUnreferencedMetasets(),r=0,o=i.length;r<o;r++){const o=i[r];let a=t.getDatasetMeta(r);const s=o.type||t.config.type;if(a.type&&a.type!==s&&(t._destroyDatasetMeta(r),a=t.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||jt(s,t.options),a.order=o.order||0,t._updateMetasetIndex(a,r),a.label=""+o.label,a.visible=t.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const i=kt.getController(s),{datasetElementType:o,dataElementType:u}=n.wb.datasets[s];Object.assign(i.prototype,{dataElementType:kt.getElement(u),datasetElementType:o&&kt.getElement(o)}),a.controller=new i(t,r),e.push(a.controller)}}return t._updateMetasets(),e}_resetElements(){const t=this;Object(n.e)(t.data.datasets,((e,i)=>{t.getDatasetMeta(i).controller.reset()}),t)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this,i=e.config;i.update(),e._options=i.createResolver(i.chartOptionScopes(),e.getContext()),Object(n.e)(e.scales,(t=>{tt.removeBox(e,t)}));const r=e._animationsDisabled=!e.options.animation;e.ensureScalesHaveIDs(),e.buildOrUpdateScales();const o=new Set(Object.keys(e._listeners)),a=new Set(e.options.events);if(Object(n.V)(o,a)||(e.unbindEvents(),e.bindEvents()),e._plugins.invalidate(),!1===e.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=e.buildOrUpdateControllers();e.notifyPlugins("beforeElementsUpdate");let u=0;for(let t=0,i=e.data.datasets.length;t<i;t++){const{controller:i}=e.getDatasetMeta(t),n=!r&&-1===s.indexOf(i);i.buildOrUpdateElements(n),u=Math.max(+i.getMaxOverflow(),u)}e._minPadding=u,e._updateLayout(u),r||Object(n.e)(s,(t=>{t.reset()})),e._updateDatasets(t),e.notifyPlugins("afterUpdate",{mode:t}),e._layers.sort(qt("z","_idx")),e._lastEvent&&e._eventHandler(e._lastEvent,!0),e.render()}_updateLayout(t){const e=this;if(!1===e.notifyPlugins("beforeLayout",{cancelable:!0}))return;tt.update(e,e.width,e.height,t);const i=e.chartArea,r=i.width<=0||i.height<=0;e._layers=[],Object(n.e)(e.boxes,(t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),e._layers.push(...t._layers()))}),e),e._layers.forEach(((t,e)=>{t._idx=e})),e.notifyPlugins("afterLayout")}_updateDatasets(t){const e=this,i="function"==typeof t;if(!1!==e.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let n=0,r=e.data.datasets.length;n<r;++n)e._updateDataset(n,i?t({datasetIndex:n}):t);e.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this,n=i.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==i.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,i.notifyPlugins("afterDatasetUpdate",r))}render(){const t=this;!1!==t.notifyPlugins("beforeRender",{cancelable:!0})&&(r.has(t)?t.attached&&!r.running(t)&&r.start(t):(t.draw(),Wt({chart:t})))}draw(){const t=this;let e;if(t._resizeBeforeDraw){const{width:e,height:i}=t._resizeBeforeDraw;t._resize(e,i),t._resizeBeforeDraw=null}if(t.clear(),t.width<=0||t.height<=0)return;if(!1===t.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=t._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(t.chartArea);for(t._drawDatasets();e<i.length;++e)i[e].draw(t.chartArea);t.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,r;for(n=0,r=e.length;n<r;++n){const r=e[n];t&&!r.visible||i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){const t=this;if(!1===t.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=t.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)t._drawDataset(e[i]);t.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this,i=e.ctx,r=t._clip,o=e.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==e.notifyPlugins("beforeDatasetDraw",a)&&(Object(n.Db)(i,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?e.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?e.height:o.bottom+r.bottom}),t.controller.draw(),Object(n.Fb)(i),a.cancelable=!1,e.notifyPlugins("afterDatasetDraw",a))}getElementsAtEventForMode(t,e,i,n){const r=U.modes[e];return"function"==typeof r?r(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n=i[t]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1}),n}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateDatasetVisibility(t,e){const i=this,n=e?"show":"hide",r=i.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,n);i.setDatasetVisibility(t,e),o.update(r,{visible:e}),i.update((e=>e.datasetIndex===t?n:void 0))}hide(t){this._updateDatasetVisibility(t,!1)}show(t){this._updateDatasetVisibility(t,!0)}_destroyDatasetMeta(t){const e=this,i=e._metasets&&e._metasets[t];i&&i.controller&&(i.controller._destroy(),delete e._metasets[t])}destroy(){const t=this,{canvas:e,ctx:i}=t;let o,a;for(t.stop(),r.remove(t),o=0,a=t.data.datasets.length;o<a;++o)t._destroyDatasetMeta(o);t.config.clearCache(),e&&(t.unbindEvents(),Object(n.U)(e,i),t.platform.releaseContext(i),t.canvas=null,t.ctx=null),t.notifyPlugins("destroy"),delete Kt[t.id]}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){const t=this,e=t._listeners,i=t.platform,r=(n,r)=>{i.addEventListener(t,n,r),e[n]=r},o=(n,r)=>{e[n]&&(i.removeEventListener(t,n,r),delete e[n])};let a=function(e,i,n){e.offsetX=i,e.offsetY=n,t._eventHandler(e)};if(Object(n.e)(t.options.events,(t=>r(t,a))),t.options.responsive){let e;a=(e,i)=>{t.canvas&&t.resize(e,i)};const n=()=>{o("attach",n),t.attached=!0,t.resize(),r("resize",a),r("detach",e)};e=()=>{t.attached=!1,o("resize",a),r("attach",n)},i.isAttached(t.canvas)?n():e()}else t.attached=!0}unbindEvents(){const t=this,e=t._listeners;e&&(t._listeners={},Object(n.e)(e,((e,i)=>{t.platform.removeEventListener(t,i,e)})))}updateHoverStyle(t,e,i){const n=i?"set":"remove";let r,o,a,s;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this,i=e._active||[],r=t.map((({datasetIndex:t,index:i})=>{const n=e.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[i],index:i}}));!Object(n.W)(r,i)&&(e._active=r,e._updateHoverStyles(r,i))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this,r=n.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=o(e,t),s=i?t:o(t,e);a.length&&n.updateHoverStyle(a,r.mode,!1),s.length&&r.mode&&n.updateHoverStyle(s,r.mode,!0)}_eventHandler(t,e){const i=this,n={event:t,replay:e,cancelable:!0},r=e=>(e.options.events||this.options.events).includes(t.type);if(!1===i.notifyPlugins("beforeEvent",n,r))return;const o=i._handleEvent(t,e);return n.cancelable=!1,i.notifyPlugins("afterEvent",n,r),(o||n.changed)&&i.render(),i}_handleEvent(t,e){const i=this,{_active:r=[],options:o}=i,a=o.hover,s=e;let u=[],h=!1,l=null;return"mouseout"!==t.type&&(u=i.getElementsAtEventForMode(t,a.mode,a,s),l="click"===t.type?i._lastEvent:t),i._lastEvent=null,Object(n.b)(t,i.chartArea,i._minPadding)&&(Object(n.o)(o.onHover,[t,u,i],i),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||Object(n.o)(o.onClick,[t,u,i],i)),h=!Object(n.W)(u,r),(h||e)&&(i._active=u,i._updateHoverStyles(u,r,e)),i._lastEvent=l,h}}const Jt=()=>Object(n.e)(Qt.instances,(t=>t._plugins.invalidate())),te=!0;function ee(t,e){const{startAngle:i,endAngle:r,pixelMargin:o,x:a,y:s,outerRadius:u,innerRadius:h}=e;let l=o/u;t.beginPath(),t.arc(a,s,u,i-l,r+l),h>o?(l=o/h,t.arc(a,s,h,r+l,i-l,!0)):t.arc(a,s,o,r+n.i,i-n.i),t.closePath(),t.clip()}function ie(t,e,i,r){const o=(a=t.options.borderRadius,Object(n.Y)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(i-e)/2,u=Math.min(s,r*e/2),h=t=>{const e=(i-Math.min(s,t))*r/2;return Object(n.Qb)(t,0,Math.min(s,e))};return{outerStart:h(o.outerStart),outerEnd:h(o.outerEnd),innerStart:Object(n.Qb)(o.innerStart,0,u),innerEnd:Object(n.Qb)(o.innerEnd,0,u)}}function ne(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function re(t,e){const{x:i,y:r,startAngle:o,endAngle:a,pixelMargin:s}=e,u=Math.max(e.outerRadius-s,0),h=e.innerRadius+s,{outerStart:l,outerEnd:c,innerStart:d,innerEnd:f}=ie(e,h,u,a-o),p=u-l,m=u-c,g=o+l/p,b=a-c/m,v=h+d,y=h+f,w=o+d/v,_=a-f/y;if(t.beginPath(),t.arc(i,r,u,g,b),c>0){const e=ne(m,b,i,r);t.arc(e.x,e.y,c,b,a+n.i)}const M=ne(y,a,i,r);if(t.lineTo(M.x,M.y),f>0){const e=ne(y,_,i,r);t.arc(e.x,e.y,f,a+n.i,_+Math.PI)}if(t.arc(i,r,h,a-f/h,o+d/h,!0),d>0){const e=ne(v,w,i,r);t.arc(e.x,e.y,d,w+Math.PI,o-n.i)}const x=ne(p,o,i,r);if(t.lineTo(x.x,x.y),l>0){const e=ne(p,g,i,r);t.arc(e.x,e.y,l,o-n.i,g)}t.closePath()}function oe(t,e){const{options:i}=e,r="inner"===i.borderAlign;i.borderWidth&&(r?(t.lineWidth=2*i.borderWidth,t.lineJoin="round"):(t.lineWidth=i.borderWidth,t.lineJoin="bevel"),e.fullCircles&&function(t,e,i){const{x:r,y:o,startAngle:a,endAngle:s,pixelMargin:u}=e,h=Math.max(e.outerRadius-u,0),l=e.innerRadius+u;let c;for(i&&(e.endAngle=e.startAngle+n.u,ee(t,e),e.endAngle=s,e.endAngle===e.startAngle&&(e.endAngle+=n.u,e.fullCircles--)),t.beginPath(),t.arc(r,o,l,a+n.u,a,!0),c=0;c<e.fullCircles;++c)t.stroke();for(t.beginPath(),t.arc(r,o,h,a,a+n.u),c=0;c<e.fullCircles;++c)t.stroke()}(t,e,r),r&&ee(t,e),re(t,e),t.stroke())}Object.defineProperties(Qt,{defaults:{enumerable:te,value:n.wb},instances:{enumerable:te,value:Kt},overrides:{enumerable:te,value:n.A},registry:{enumerable:te,value:kt},version:{enumerable:te,value:"3.2.1"},getChart:{enumerable:te,value:Xt},register:{enumerable:te,value:(...t)=>{kt.add(...t),Jt()}},unregister:{enumerable:te,value:(...t)=>{kt.remove(...t),Jt()}}});class ae extends gt{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.getProps(["x","y"],i),{angle:o,distance:a}=Object(n.X)(r,{x:t,y:e}),{startAngle:s,endAngle:u,innerRadius:h,outerRadius:l,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i);return(c>=n.u||Object(n.Jb)(o,s,u))&&(a>=h&&a<=l)}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),s=(n+r)/2,u=(o+a)/2;return{x:e+Math.cos(s)*u,y:i+Math.sin(s)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const e=this,i=e.options,r=i.offset||0;if(e.pixelMargin="inner"===i.borderAlign?.33:0,e.fullCircles=Math.floor(e.circumference/n.u),!(0===e.circumference||e.innerRadius<0||e.outerRadius<0)){if(t.save(),r&&e.circumference<n.u){const i=(e.startAngle+e.endAngle)/2;t.translate(Math.cos(i)*r,Math.sin(i)*r)}t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,function(t,e){if(e.fullCircles){e.endAngle=e.startAngle+n.u,re(t,e);for(let i=0;i<e.fullCircles;++i)t.fill()}isNaN(e.circumference)||(e.endAngle=e.startAngle+e.circumference%n.u),re(t,e),t.fill()}(t,e),oe(t,e),t.restore()}}}function se(t,e,i=e){t.lineCap=Object(n.Ob)(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Object(n.Ob)(i.borderDash,e.borderDash)),t.lineDashOffset=Object(n.Ob)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Object(n.Ob)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Object(n.Ob)(i.borderWidth,e.borderWidth),t.strokeStyle=Object(n.Ob)(i.borderColor,e.borderColor)}function ue(t,e,i){t.lineTo(i.x,i.y)}function he(t,e,i={}){const n=t.length,{start:r=0,end:o=n-1}=i,{start:a,end:s}=e,u=Math.max(r,a),h=Math.min(o,s),l=r<a&&o<a||r>s&&o>s;return{count:n,start:u,loop:e.loop,ilen:h<u&&!l?n+h-u:h-u}}function le(t,e,i,r){const{points:o,options:a}=e,{count:s,start:u,loop:h,ilen:l}=he(o,i,r),c=function(t){return t.stepped?n.fb:t.tension||"monotone"===t.cubicInterpolationMode?n.gb:ue}(a);let d,f,p,{move:m=!0,reverse:g}=r||{};for(d=0;d<=l;++d)f=o[(u+(g?l-d:d))%s],f.skip||(m?(t.moveTo(f.x,f.y),m=!1):c(t,p,f,g,a.stepped),p=f);return h&&(f=o[(u+(g?l:0))%s],c(t,p,f,g,a.stepped)),!!h}function ce(t,e,i,n){const r=e.points,{count:o,start:a,ilen:s}=he(r,i,n),{move:u=!0,reverse:h}=n||{};let l,c,d,f,p,m,g=0,b=0;const v=t=>(a+(h?s-t:t))%o,y=()=>{f!==p&&(t.lineTo(g,p),t.lineTo(g,f),t.lineTo(g,m))};for(u&&(c=r[v(0)],t.moveTo(c.x,c.y)),l=0;l<=s;++l){if(c=r[v(l)],c.skip)continue;const e=c.x,i=c.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),g=(b*g+e)/++b):(y(),t.lineTo(e,i),d=n,b=0,f=p=i),m=i}y()}function de(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?ce:le}ae.id="arc",ae.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,angle:void 0},ae.defaultRoutes={backgroundColor:"backgroundColor"};const fe="function"==typeof Path2D;function pe(t,e,i,n){fe&&1===e.segments.length?function(t,e,i,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,i,n)&&r.closePath()),se(t,e.options),t.stroke(r)}(t,e,i,n):function(t,e,i,n){const{segments:r,options:o}=e,a=de(e);for(const s of r)se(t,o,s.style),t.beginPath(),a(t,e,s,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class me extends gt{constructor(t){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,t&&Object.assign(this,t)}updateControlPoints(t){const e=this,i=e.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!e._pointsUpdated){const r=i.spanGaps?e._loop:e._fullLoop;Object(n.Z)(e._points,i,t,r),e._pointsUpdated=!0}}set points(t){const e=this;e._points=t,delete e._segments,delete e._path,e._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(n.ab)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this,r=i.options,o=t[e],a=i.points,s=Object(n.bb)(i,{property:e,start:o,end:o});if(!s.length)return;const u=[],h=function(t){return t.stepped?n.cb:t.tension||"monotone"===t.cubicInterpolationMode?n.db:n.eb}(r);let l,c;for(l=0,c=s.length;l<c;++l){const{start:i,end:n}=s[l],c=a[i],d=a[n];if(c===d){u.push(c);continue}const f=h(c,d,Math.abs((o-c[e])/(d[e]-c[e])),r.stepped);f[e]=t[e],u.push(f)}return 1===u.length?u[0]:u}pathSegment(t,e,i){return de(this)(t,this,e,i)}path(t,e,i){const n=this,r=n.segments,o=de(n);let a=n._loop;e=e||0,i=i||n.points.length-e;for(const s of r)a&=o(t,n,s,{start:e,end:e+i-1});return!!a}draw(t,e,i,n){const r=this,o=r.options||{};(r.points||[]).length&&o.borderWidth&&(t.save(),pe(t,r,i,n),t.restore(),r.animated&&(r._pointsUpdated=!1,r._path=void 0))}}function ge(t,e,i,n){const r=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<r.radius+r.hitRadius}me.id="line",me.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},me.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},me.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class be extends gt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:r,y:o}=this.getProps(["x","y"],i);return Math.pow(t-r,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return ge(this,t,"x",e)}inYRange(t,e){return ge(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t){const e=this,i=e.options;e.skip||i.radius<.1||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Object(n.hb)(t,i,e.x,e.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function ve(t,e){const{x:i,y:n,base:r,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,u,h,l,c;return t.horizontal?(c=a/2,s=Math.min(i,r),u=Math.max(i,r),h=n-c,l=n+c):(c=o/2,s=i-c,u=i+c,h=Math.min(n,r),l=Math.max(n,r)),{left:s,top:h,right:u,bottom:l}}function ye(t){let e=t.options.borderSkipped;const i={};return e?(e=t.horizontal?we(e,"left","right",t.base>t.x):we(e,"bottom","top",t.base<t.y),i[e]=!0,i):i}function we(t,e,i,n){var r,o,a;return n?(a=i,t=_e(t=(r=t)===(o=e)?a:r===a?o:r,i,e)):t=_e(t,e,i),t}function _e(t,e,i){return"start"===t?e:"end"===t?i:t}function Me(t,e,i,n){return t?0:Math.max(Math.min(e,n),i)}function xe(t){const e=ve(t),i=e.right-e.left,r=e.bottom-e.top,o=function(t,e,i){const r=t.options.borderWidth,o=ye(t),a=Object(n.jb)(r);return{t:Me(o.top,a.top,0,i),r:Me(o.right,a.right,0,e),b:Me(o.bottom,a.bottom,0,i),l:Me(o.left,a.left,0,e)}}(t,i/2,r/2),a=function(t,e,i){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=Object(n.kb)(o),s=Math.min(e,i),u=ye(t),h=r||Object(n.Bb)(o);return{topLeft:Me(!h||u.top||u.left,a.topLeft,0,s),topRight:Me(!h||u.top||u.right,a.topRight,0,s),bottomLeft:Me(!h||u.bottom||u.left,a.bottomLeft,0,s),bottomRight:Me(!h||u.bottom||u.right,a.bottomRight,0,s)}}(t,i/2,r/2);return{outer:{x:e.left,y:e.top,w:i,h:r,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:i-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Se(t,e,i,n){const r=null===e,o=null===i,a=t&&!(r&&o)&&ve(t,n);return a&&(r||e>=a.left&&e<=a.right)&&(o||i>=a.top&&i<=a.bottom)}function Te(t,e){t.rect(e.x,e.y,e.w,e.h)}be.id="point",be.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},be.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ae extends gt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){const e=this.options,{inner:i,outer:r}=xe(this),o=(a=r.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?n.ib:Te;var a;t.save(),r.w===i.w&&r.h===i.h||(t.beginPath(),o(t,r),t.clip(),o(t,i),t.fillStyle=e.borderColor,t.fill("evenodd")),t.beginPath(),o(t,i),t.fillStyle=e.backgroundColor,t.fill(),t.restore()}inRange(t,e,i){return Se(this,t,e,i)}inXRange(t,e){return Se(this,t,null,e)}inYRange(t,e){return Se(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+n)/2:e,y:r?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ae.id="bar",Ae.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Ae.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Ce(t,e,i){const r=function(t){const e=t.options,i=e.fill;let r=Object(n.Ob)(i&&i.target,i);return void 0===r&&(r=!!e.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(t);if(Object(n.Bb)(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return Object(n.zb)(o)&&Math.floor(o)===o?("-"!==r[0]&&"+"!==r[0]||(o=e+o),!(o===e||o<0||o>=i)&&o):["origin","start","end","stack"].indexOf(r)>=0&&r}class Ee{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:o,radius:a}=this;return e=e||{start:0,end:n.u},t.arc(r,o,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,r=t.angle;return{x:e+Math.cos(r)*n,y:i+Math.sin(r)*n,angle:r}}}function ke(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,r=e.options,o=e.getLabels().length,a=[],s=r.reverse?e.max:e.min,u=r.reverse?e.min:e.max;let h,l,c;if(c="start"===i?s:"end"===i?u:Object(n.Bb)(i)?i.value:e.getBaseValue(),r.grid.circular)return l=e.getPointPositionForValue(0,s),new Ee({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(c)});for(h=0;h<o;++h)a.push(e.getPointPositionForValue(h,c));return a}(t):function(t){const{scale:e={},fill:i}=t;let r,o=null;return"start"===i?o=e.bottom:"end"===i?o=e.top:Object(n.Bb)(i)?o=e.getPixelForValue(i.value):e.getBasePixel&&(o=e.getBasePixel()),Object(n.zb)(o)?(r=e.isHorizontal(),{x:r?o:null,y:r?null:o}):null}(t)}function Oe(t){const{chart:e,scale:i,index:n,line:r}=t,o=[],a=r.segments,s=r.points,u=function(t,e){const i=[],n=t.getSortedVisibleDatasetMetas();for(let t=0;t<n.length;t++){const r=n[t];if(r.index===e)break;Pe(r)&&i.unshift(r.dataset)}return i}(e,n);u.push(Re({x:null,y:i.bottom},r));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)Ie(o,s[t],u)}return new me({points:o,options:{}})}const Pe=t=>"line"===t.type&&!t.hidden;function Ie(t,e,i){const n=[];for(let r=0;r<i.length;r++){const o=i[r],{first:a,last:s,point:u}=je(o,e,"x");if(!(!u||a&&s))if(a)n.unshift(u);else if(t.push(u),!s)break}t.push(...n)}function je(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const r=n[i],o=t.segments,a=t.points;let s=!1,u=!1;for(let t=0;t<o.length;t++){const e=o[t],n=a[e.start][i],h=a[e.end][i];if(r>=n&&r<=h){s=r===n,u=r===h;break}}return{first:s,last:u,point:n}}function Re(t,e){let i=[],r=!1;return Object(n.ub)(t)?(r=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},r=e.points,o=[];return e.segments.forEach((t=>{const e=r[t.start],a=r[t.end];null!==n?(o.push({x:e.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:e.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new me({points:i,options:{tension:0},_loop:r,_fullLoop:r}):null}function De(t,e,i){let r=t[e].fill;const o=[e];let a;if(!i)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!Object(n.zb)(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Le(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Be(t,e,i,r){if(r)return;let o=e[t],a=i[t];return"angle"===t&&(o=Object(n.mb)(o),a=Object(n.mb)(a)),{property:t,start:o,end:a}}function Ne(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function ze(t,e,i){const{top:n,bottom:r}=e.chart.chartArea,{property:o,start:a,end:s}=i||{};"x"===o&&(t.beginPath(),t.rect(a,n,s-a,r-n),t.clip())}function He(t,e,i,n){const r=e.interpolate(i,n);r&&t.lineTo(r.x,r.y)}function Fe(t,e){const{line:i,target:r,property:o,color:a,scale:s}=e,u=function(t,e,i){const r=t.segments,o=t.points,a=e.points,s=[];for(const t of r){const r=Be(i,o[t.start],o[t.end],t.loop);if(!e.segments){s.push({source:t,target:r,start:o[t.start],end:o[t.end]});continue}const u=Object(n.bb)(e,r);for(const e of u){const u=Be(i,a[e.start],a[e.end],e.loop),h=Object(n.lb)(t,o,u);for(const t of h)s.push({source:t,target:e,start:{[i]:Ne(r,u,"start",Math.max)},end:{[i]:Ne(r,u,"end",Math.min)}})}}return s}(i,r,o);for(const{source:e,target:n,start:h,end:l}of u){const{style:{backgroundColor:u=a}={}}=e;t.save(),t.fillStyle=u,ze(t,s,Be(o,h,l)),t.beginPath();const c=!!i.pathSegment(t,e);c?t.closePath():He(t,r,l,o);const d=!!r.pathSegment(t,n,{move:c,reverse:!0}),f=c&&d;f||He(t,r,h,o),t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Ve(t,e,i){const r=function(t){const{chart:e,fill:i,line:r}=t;if(Object(n.zb)(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return Oe(t);const o=ke(t);return o instanceof Ee?o:Re(o,r)}(e),{line:o,scale:a,axis:s}=e,u=o.options,h=u.fill,l=u.backgroundColor,{above:c=l,below:d=l}=h||{};r&&o.points.length&&(Object(n.Db)(t,i),function(t,e){const{line:i,target:n,above:r,below:o,area:a,scale:s}=e,u=i._loop?"angle":e.axis;t.save(),"x"===u&&o!==r&&(Le(t,n,a.top),Fe(t,{line:i,target:n,color:r,scale:s,property:u}),t.restore(),t.save(),Le(t,n,a.bottom)),Fe(t,{line:i,target:n,color:o,scale:s,property:u}),t.restore()}(t,{line:o,target:r,above:c,below:d,area:i,scale:a,axis:s}),Object(n.Fb)(t))}var Ue={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,r=[];let o,a,s,u;for(a=0;a<n;++a)o=t.getDatasetMeta(a),s=o.dataset,u=null,s&&s.options&&s instanceof me&&(u={visible:t.isDatasetVisible(a),index:a,fill:Ce(s,a,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=u,r.push(u);for(a=0;a<n;++a)u=r[a],u&&!1!==u.fill&&(u.fill=De(r,a,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,r=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=r.length-1;e>=0;--e){const i=r[e].$filler;i&&(i.line.updateControlPoints(o),n&&Ve(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&Ve(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===i.drawTime&&Ve(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ge=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class qe extends gt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){const n=this;n.maxWidth=t,n.maxHeight=e,n._margins=i,n.setDimensions(),n.buildLabels(),n.fit()}setDimensions(){const 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)}buildLabels(){const t=this,e=t.options.labels||{};let i=Object(n.o)(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter((i=>e.filter(i,t.chart.data)))),e.sort&&(i=i.sort(((i,n)=>e.sort(i,n,t.chart.data)))),t.options.reverse&&i.reverse(),t.legendItems=i}fit(){const t=this,{options:e,ctx:i}=t;if(!e.display)return void(t.width=t.height=0);const r=e.labels,o=Object(n.x)(r.font),a=o.size,s=t._computeTitleHeight(),{boxWidth:u,itemHeight:h}=Ge(r,a);let l,c;i.font=o.string,t.isHorizontal()?(l=t.maxWidth,c=t._fitRows(s,a,u,h)+10):(c=t.maxHeight,l=t._fitCols(s,a,u,h)+10),t.width=Math.min(l,e.maxWidth||t.maxWidth),t.height=Math.min(c,e.maxHeight||t.maxHeight)}_fitRows(t,e,i,n){const r=this,{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=r,u=r.legendHitBoxes=[],h=r.lineWidths=[0],l=n+s;let c=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-l;return r.legendItems.forEach(((t,r)=>{const p=i+e/2+o.measureText(t.text).width;(0===r||h[h.length-1]+p+2*s>a)&&(c+=l,h[h.length-(r>0?0:1)]=0,f+=l,d++),u[r]={left:0,top:f,row:d,width:p,height:n},h[h.length-1]+=p+s})),c}_fitCols(t,e,i,n){const r=this,{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=r,u=r.legendHitBoxes=[],h=r.columnSizes=[],l=a-t;let c=s,d=0,f=0,p=0,m=0,g=0;return r.legendItems.forEach(((t,r)=>{const a=i+e/2+o.measureText(t.text).width;r>0&&f+e+2*s>l&&(c+=d+s,h.push({width:d,height:f}),p+=d+s,g++,m=0,d=f=0),d=Math.max(d,a),f+=e+s,u[r]={left:p,top:m,col:g,width:a,height:n},m+=n+s})),c+=d,h.push({width:d,height:f}),c}adjustHitBoxes(){const t=this;if(!t.options.display)return;const e=t._computeTitleHeight(),{legendHitBoxes:i,options:{align:r,labels:{padding:o}}}=t;if(this.isHorizontal()){let a=0,s=Object(n.z)(r,t.left+o,t.right-t.lineWidths[a]);for(const u of i)a!==u.row&&(a=u.row,s=Object(n.z)(r,t.left+o,t.right-t.lineWidths[a])),u.top+=t.top+e+o,u.left=s,s+=u.width+o}else{let a=0,s=Object(n.z)(r,t.top+e+o,t.bottom-t.columnSizes[a].height);for(const u of i)u.col!==a&&(a=u.col,s=Object(n.z)(r,t.top+e+o,t.bottom-t.columnSizes[a].height)),u.top=s,u.left+=t.left+o,s+=u.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const t=this;if(t.options.display){const e=t.ctx;Object(n.Db)(e,t),t._draw(),Object(n.Fb)(e)}}_draw(){const t=this,{options:e,columnSizes:i,lineWidths:r,ctx:o}=t,{align:a,labels:s}=e,u=n.wb.color,h=Object(n.nb)(e.rtl,t.left,t.width),l=Object(n.x)(s.font),{color:c,padding:d}=s,f=l.size,p=f/2;let m;t.drawTitle(),o.textAlign=h.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:g,boxHeight:b,itemHeight:v}=Ge(s,f),y=t.isHorizontal(),w=this._computeTitleHeight();m=y?{x:Object(n.z)(a,t.left+d,t.right-r[0]),y:t.top+d+w,line:0}:{x:t.left+d,y:Object(n.z)(a,t.top+w+d,t.bottom-i[0].height),line:0},Object(n.ob)(t.ctx,e.textDirection);const _=v+d;t.legendItems.forEach(((e,M)=>{o.strokeStyle=e.fontColor||c,o.fillStyle=e.fontColor||c;const x=o.measureText(e.text).width,S=h.textAlign(e.textAlign||(e.textAlign=s.textAlign)),T=g+f/2+x;let A=m.x,C=m.y;h.setWidth(t.width),y?M>0&&A+T+d>t.right&&(C=m.y+=_,m.line++,A=m.x=Object(n.z)(a,t.left+d,t.right-r[m.line])):M>0&&C+_>t.bottom&&(A=m.x=A+i[m.line].width+d,m.line++,C=m.y=Object(n.z)(a,t.top+w+d,t.bottom-i[m.line].height));!function(t,e,i){if(isNaN(g)||g<=0||isNaN(b)||b<0)return;o.save();const r=Object(n.Ob)(i.lineWidth,1);if(o.fillStyle=Object(n.Ob)(i.fillStyle,u),o.lineCap=Object(n.Ob)(i.lineCap,"butt"),o.lineDashOffset=Object(n.Ob)(i.lineDashOffset,0),o.lineJoin=Object(n.Ob)(i.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Object(n.Ob)(i.strokeStyle,u),o.setLineDash(Object(n.Ob)(i.lineDash,[])),s.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:r},s=h.xPlus(t,g/2),u=e+p;Object(n.hb)(o,a,s,u)}else{const a=e+Math.max((f-b)/2,0),s=h.leftForLtr(t,g),u=Object(n.kb)(i.borderRadius);o.beginPath(),Object.values(u).some((t=>0!==t))?Object(n.ib)(o,{x:s,y:a,w:g,h:b,radius:u}):o.rect(s,a,g,b),o.fill(),0!==r&&o.stroke()}o.restore()}(h.x(A),C,e),A=Object(n.pb)(S,A+g+p,t.right),function(t,e,i){Object(n.w)(o,i.text,t,e+v/2,l,{strikethrough:i.hidden,textAlign:i.textAlign})}(h.x(A),C,e),y?m.x+=T+d:m.y+=_})),Object(n.qb)(t.ctx,e.textDirection)}drawTitle(){const t=this,e=t.options,i=e.title,r=Object(n.x)(i.font),o=Object(n.d)(i.padding);if(!i.display)return;const a=Object(n.nb)(e.rtl,t.left,t.width),s=t.ctx,u=i.position,h=r.size/2,l=o.top+h;let c,d=t.left,f=t.width;if(this.isHorizontal())f=Math.max(...t.lineWidths),c=t.top+l,d=Object(n.z)(e.align,d,t.right-f);else{const i=t.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Object(n.z)(e.align,t.top,t.bottom-i-e.labels.padding-t._computeTitleHeight())}const p=Object(n.z)(u,d,d+f);s.textAlign=a.textAlign(Object(n.y)(u)),s.textBaseline="middle",s.strokeStyle=i.color,s.fillStyle=i.color,s.font=r.string,Object(n.w)(s,i.text,p,c,r)}_computeTitleHeight(){const t=this.options.title,e=Object(n.x)(t.font),i=Object(n.d)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){const i=this;let n,r,o;if(t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom)for(o=i.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height)return i.legendItems[n];return null}handleEvent(t){const e=this,i=e.options;if(!function(t,e){if("mousemove"===t&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,i))return;const r=e._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const s=e._hoveredItem,u=(a=r,null!==(o=s)&&null!==a&&o.datasetIndex===a.datasetIndex&&o.index===a.index);s&&!u&&Object(n.o)(i.onLeave,[t,s,e],e),e._hoveredItem=r,r&&!u&&Object(n.o)(i.onHover,[t,r,e],e)}else r&&Object(n.o)(i.onClick,[t,r,e],e);var o,a}}var We={id:"legend",_element:qe,start(t,e,i){const n=t.legend=new qe({ctx:t.ctx,options:i,chart:t});tt.configure(t,n,i),tt.addBox(t,n)},stop(t){tt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;tt.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,r=i.chart;r.isDatasetVisible(n)?(r.hide(n),e.hidden=!0):(r.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:r,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const s=t.controller.getStyle(i?0:void 0),u=Object(n.d)(s.borderWidth);return{text:e[t.index].label,fillStyle:s.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:s.borderColor,pointStyle:r||s.pointStyle,rotation:s.rotation,textAlign:o||s.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Ze={average(t){if(!t.length)return!1;let e,i,n=0,r=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,r+=t.y,++o}}return{x:n/o,y:r/o}},nearest(t,e){if(!t.length)return!1;let i,r,o,a=e.x,s=e.y,u=Number.POSITIVE_INFINITY;for(i=0,r=t.length;i<r;++i){const r=t[i].element;if(r&&r.hasValue()){const t=r.getCenterPoint(),i=Object(n.sb)(e,t);i<u&&(u=i,o=r)}}if(o){const t=o.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function Ye(t,e){return e&&(Object(n.ub)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function $e(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ke(t,e){const{element:i,datasetIndex:n,index:r}=e,o=t.getDatasetMeta(n).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:n,element:i}}function Xe(t,e){const i=t._chart.ctx,{body:r,footer:o,title:a}=t,{boxWidth:s,boxHeight:u}=e,h=Object(n.x)(e.bodyFont),l=Object(n.x)(e.titleFont),c=Object(n.x)(e.footerFont),d=a.length,f=o.length,p=r.length,m=Object(n.d)(e.padding);let g=m.height,b=0,v=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*l.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){g+=p*(e.displayColors?Math.max(u,h.lineHeight):h.lineHeight)+(v-p)*h.lineHeight+(v-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let y=0;const w=function(t){b=Math.max(b,i.measureText(t).width+y)};return i.save(),i.font=l.string,Object(n.e)(t.title,w),i.font=h.string,Object(n.e)(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?s+2:0,Object(n.e)(r,(t=>{Object(n.e)(t.before,w),Object(n.e)(t.lines,w),Object(n.e)(t.after,w)})),y=0,i.font=c.string,Object(n.e)(t.footer,w),i.restore(),b+=m.width,{width:b,height:g}}function Qe(t,e,i,n){const{x:r,width:o}=i,{width:a,chartArea:{left:s,right:u}}=t;let h="center";return"center"===n?h=r<=(s+u)/2?"left":"right":r<=o/2?h="left":r>=a-o/2&&(h="right"),function(t,e,i,n){const{x:r,width:o}=n,a=i.caretSize+i.caretPadding;return"left"===t&&r+o+a>e.width||"right"===t&&r-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Je(t,e,i){const n=e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||Qe(t,e,i,n),yAlign:n}}function ti(t,e,i,r){const{caretSize:o,caretPadding:a,cornerRadius:s}=t,{xAlign:u,yAlign:h}=i,l=o+a,c=s+a;let d=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,u);const f=function(t,e,i){let{y:n,height:r}=t;return"top"===e?n+=i:n-="bottom"===e?r+i:r/2,n}(e,h,l);return"center"===h?"left"===u?d+=l:"right"===u&&(d-=l):"left"===u?d-=c:"right"===u&&(d+=c),{x:Object(n.Qb)(d,0,r.width-e.width),y:Object(n.Qb)(f,0,r.height-e.height)}}function ei(t,e,i){const r=Object(n.d)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function ii(t){return Ye([],$e(t))}function ni(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class ri extends gt{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this,e=t._cachedAnimations;if(e)return e;const i=t._chart,n=t.options.setContext(t.getContext()),r=n.enabled&&i.options.animation&&n.animations,o=new h(t._chart,r);return r._cacheable&&(t._cachedAnimations=Object.freeze(o)),o}getContext(){const t=this;return t.$context||(t.$context=(e=t._chart.getContext(),i=t,n=t._tooltipItems,Object.assign(Object.create(e),{tooltip:i,tooltipItems:n,type:"tooltip"})));var e,i,n}getTitle(t,e){const i=this,{callbacks:n}=e,r=n.beforeTitle.apply(i,[t]),o=n.title.apply(i,[t]),a=n.afterTitle.apply(i,[t]);let s=[];return s=Ye(s,$e(r)),s=Ye(s,$e(o)),s=Ye(s,$e(a)),s}getBeforeBody(t,e){return ii(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const i=this,{callbacks:r}=e,o=[];return Object(n.e)(t,(t=>{const e={before:[],lines:[],after:[]},n=ni(r,t);Ye(e.before,$e(n.beforeLabel.call(i,t))),Ye(e.lines,n.label.call(i,t)),Ye(e.after,$e(n.afterLabel.call(i,t))),o.push(e)})),o}getAfterBody(t,e){return ii(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const i=this,{callbacks:n}=e,r=n.beforeFooter.apply(i,[t]),o=n.footer.apply(i,[t]),a=n.afterFooter.apply(i,[t]);let s=[];return s=Ye(s,$e(r)),s=Ye(s,$e(o)),s=Ye(s,$e(a)),s}_createItems(t){const e=this,i=e._active,r=e._chart.data,o=[],a=[],s=[];let u,h,l=[];for(u=0,h=i.length;u<h;++u)l.push(Ke(e._chart,i[u]));return t.filter&&(l=l.filter(((e,i,n)=>t.filter(e,i,n,r)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,r)))),Object(n.e)(l,(i=>{const n=ni(t.callbacks,i);o.push(n.labelColor.call(e,i)),a.push(n.labelPointStyle.call(e,i)),s.push(n.labelTextColor.call(e,i))})),e.labelColors=o,e.labelPointStyles=a,e.labelTextColors=s,e.dataPoints=l,l}update(t,e){const i=this,n=i.options.setContext(i.getContext()),r=i._active;let o,a=[];if(r.length){const t=Ze[n.position].call(i,r,i._eventPosition);a=i._createItems(n),i.title=i.getTitle(a,n),i.beforeBody=i.getBeforeBody(a,n),i.body=i.getBody(a,n),i.afterBody=i.getAfterBody(a,n),i.footer=i.getFooter(a,n);const e=i._size=Xe(i,n),s=Object.assign({},t,e),u=Je(i._chart,n,s),h=ti(n,s,u,i._chart);i.xAlign=u.xAlign,i.yAlign=u.yAlign,o={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==i.opacity&&(o={opacity:0});i._tooltipItems=a,i.$context=void 0,o&&i._resolveAnimations().update(i,o),t&&n.external&&n.external.call(i,{chart:i._chart,tooltip:i,replay:e})}drawCaret(t,e,i,n){const r=this.getCaretPosition(t,i,n);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:r}=this,{cornerRadius:o,caretSize:a}=i,{x:s,y:u}=t,{width:h,height:l}=e;let c,d,f,p,m,g;return"center"===r?(m=u+l/2,"left"===n?(c=s,d=c-a,p=m+a,g=m-a):(c=s+h,d=c+a,p=m-a,g=m+a),f=c):(d="left"===n?s+o+a:"right"===n?s+h-o-a:this.caretX,"top"===r?(p=u,m=p-a,c=d-a,f=d+a):(p=u+l,m=p+a,c=d+a,f=d-a),g=p),{x1:c,x2:d,x3:f,y1:p,y2:m,y3:g}}drawTitle(t,e,i){const r=this,o=r.title,a=o.length;let s,u,h;if(a){const l=Object(n.nb)(i.rtl,r.x,r.width);for(t.x=ei(r,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=Object(n.x)(i.titleFont),u=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,h=0;h<a;++h)e.fillText(o[h],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+u,h+1===a&&(t.y+=i.titleMarginBottom-u)}}_drawColorBox(t,e,i,r,o){const a=this,s=a.labelColors[i],u=a.labelPointStyles[i],{boxHeight:h,boxWidth:l}=o,c=Object(n.x)(o.bodyFont),d=ei(a,"left",o),f=r.x(d),p=h<c.lineHeight?(c.lineHeight-h)/2:0,m=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,h)/2,pointStyle:u.pointStyle,rotation:u.rotation,borderWidth:1},i=r.leftForLtr(f,l)+l/2,a=m+h/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Object(n.hb)(t,e,i,a),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Object(n.hb)(t,e,i,a)}else{t.lineWidth=s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=r.leftForLtr(f,l),i=r.leftForLtr(r.xPlus(f,1),l-2),a=Object(n.kb)(s.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Object(n.ib)(t,{x:e,y:m,w:l,h:h,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Object(n.ib)(t,{x:i,y:m+1,w:l-2,h:h-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,l,h),t.strokeRect(e,m,l,h),t.fillStyle=s.backgroundColor,t.fillRect(i,m+1,l-2,h-2))}t.fillStyle=a.labelTextColors[i]}drawBody(t,e,i){const r=this,{body:o}=r,{bodySpacing:a,bodyAlign:s,displayColors:u,boxHeight:h,boxWidth:l}=i,c=Object(n.x)(i.bodyFont);let d=c.lineHeight,f=0;const p=Object(n.nb)(i.rtl,r.x,r.width),m=function(i){e.fillText(i,p.x(t.x+f),t.y+d/2),t.y+=d+a},g=p.textAlign(s);let b,v,y,w,_,M,x;for(e.textAlign=s,e.textBaseline="middle",e.font=c.string,t.x=ei(r,g,i),e.fillStyle=i.bodyColor,Object(n.e)(r.beforeBody,m),f=u&&"right"!==g?"center"===s?l/2+1:l+2:0,w=0,M=o.length;w<M;++w){for(b=o[w],v=r.labelTextColors[w],e.fillStyle=v,Object(n.e)(b.before,m),y=b.lines,u&&y.length&&(r._drawColorBox(e,t,w,p,i),d=Math.max(c.lineHeight,h)),_=0,x=y.length;_<x;++_)m(y[_]),d=c.lineHeight;Object(n.e)(b.after,m)}f=0,d=c.lineHeight,Object(n.e)(r.afterBody,m),t.y-=a}drawFooter(t,e,i){const r=this,o=r.footer,a=o.length;let s,u;if(a){const h=Object(n.nb)(i.rtl,r.x,r.width);for(t.x=ei(r,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=h.textAlign(i.footerAlign),e.textBaseline="middle",s=Object(n.x)(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,u=0;u<a;++u)e.fillText(o[u],h.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:r,yAlign:o}=this,{x:a,y:s}=t,{width:u,height:h}=i,l=n.cornerRadius;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+l,s),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(a+u-l,s),e.quadraticCurveTo(a+u,s,a+u,s+l),"center"===o&&"right"===r&&this.drawCaret(t,e,i,n),e.lineTo(a+u,s+h-l),e.quadraticCurveTo(a+u,s+h,a+u-l,s+h),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(a+l,s+h),e.quadraticCurveTo(a,s+h,a,s+h-l),"center"===o&&"left"===r&&this.drawCaret(t,e,i,n),e.lineTo(a,s+l),e.quadraticCurveTo(a,s,a+l,s),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this,i=e._chart,n=e.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=Ze[t.position].call(e,e._active,e._eventPosition);if(!n)return;const a=e._size=Xe(e,t),s=Object.assign({},n,e._size),u=Je(i,t,s),h=ti(t,s,u,i);r._to===h.x&&o._to===h.y||(e.xAlign=u.xAlign,e.yAlign=u.yAlign,e.width=a.width,e.height=a.height,e.caretX=n.x,e.caretY=n.y,e._resolveAnimations().update(e,h))}}draw(t){const e=this,i=e.options.setContext(e.getContext());let r=e.opacity;if(!r)return;e._updateAnimationTarget(i);const o={width:e.width,height:e.height},a={x:e.x,y:e.y};r=Math.abs(r)<.001?0:r;const s=Object(n.d)(i.padding),u=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;i.enabled&&u&&(t.save(),t.globalAlpha=r,e.drawBackground(a,t,o,i),Object(n.ob)(t,i.textDirection),a.y+=s.top,e.drawTitle(a,t,i),e.drawBody(a,t,i),e.drawFooter(a,t,i),Object(n.qb)(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this,r=i._active,o=t.map((({datasetIndex:t,index:e})=>{const n=i._chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),a=!Object(n.W)(r,o),s=i._positionChanged(o,e);(a||s)&&(i._active=o,i._eventPosition=e,i.update(!0))}handleEvent(t,e){const i=this,r=i.options,o=i._active||[];let a=!1,s=[];"mouseout"!==t.type&&(s=i._chart.getElementsAtEventForMode(t,r.mode,r,e),r.reverse&&s.reverse());const u=i._positionChanged(s,t);return a=e||!Object(n.W)(s,o)||u,a&&(i._active=s,(r.enabled||r.external)&&(i._eventPosition={x:t.x,y:t.y},i.update(!0,e))),a}_positionChanged(t,e){const{caretX:i,caretY:n,options:r}=this,o=Ze[r.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}ri.positioners=Ze;var oi={id:"tooltip",_element:ri,positioners:Ze,afterInit(t,e,i){i&&(t.tooltip=new ri({_chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip,i={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",i)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i))},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n.rb,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:n.rb,beforeBody:n.rb,beforeLabel:n.rb,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return Object(n.Cb)(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:n.rb,afterBody:n.rb,beforeFooter:n.rb,footer:n.rb,afterFooter:n.rb}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function ai(t,e,i){const n=t.indexOf(e);if(-1===n)return((t,e,i)=>"string"==typeof e?t.push(e)-1:isNaN(e)?null:i)(t,e,i);return n!==t.lastIndexOf(e)?i:n}class si extends Ct{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if(Object(n.Cb)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Object(n.Qb)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:ai(i,t,Object(n.Ob)(e,t)),i.length-1)}determineDataLimits(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let{min:n,max:r}=t.getMinMax(!0);"ticks"===t.options.bounds&&(e||(n=0),i||(r=t.getLabels().length-1)),t.min=n,t.max=r}buildTicks(){const t=this,e=t.min,i=t.max,n=t.options.offset,r=[];let o=t.getLabels();o=0===e&&i===o.length-1?o:o.slice(e,i+1),t._valueRange=Math.max(o.length-(n?0:1),1),t._startValue=t.min-(n?.5:0);for(let t=e;t<=i;t++)r.push({value:t});return r}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){const t=this;super.configure(),t.isHorizontal()||(t._reversePixels=!t._reversePixels)}getPixelForValue(t){const e=this;return"number"!=typeof t&&(t=e.parse(t)),null===t?NaN:e.getPixelForDecimal((t-e._startValue)/e._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){const e=this;return Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange)}getBasePixel(){return this.bottom}}si.id="category",si.defaults={ticks:{callback:si.prototype.getLabelForValue}};class ui extends Ct{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Object(n.Cb)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const t=this,{beginAtZero:e,stacked:i}=t.options,{minDefined:r,maxDefined:o}=t.getUserBounds();let{min:a,max:s}=t;const u=t=>a=r?a:t,h=t=>s=o?s:t;if(e||i){const t=Object(n.Lb)(a),e=Object(n.Lb)(s);t<0&&e<0?h(0):t>0&&e>0&&u(0)}a===s&&(h(s+1),e||u(a-1)),t.min=a,t.max=s}getTickLimit(){const t=this,e=t.options.ticks;let i,{maxTicksLimit:n,stepSize:r}=e;return r?i=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(i=t.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this,e=t.options,i=e.ticks;let r=t.getTickLimit();r=Math.max(2,r);const o=function(t,e){const i=[],{step:r,min:o,max:a,precision:s,count:u,maxTicks:h,maxDigits:l,horizontal:c}=t,d=r||1,f=h-1,{min:p,max:m}=e,g=!Object(n.Cb)(o),b=!Object(n.Cb)(a),v=!Object(n.Cb)(u),y=(m-p)/l;let w,_,M,x,S=Object(n.N)((m-p)/f/d)*d;if(S<1e-14&&!g&&!b)return[{value:p},{value:m}];x=Math.ceil(m/S)-Math.floor(p/S),x>f&&(S=Object(n.N)(x*S/f/d)*d),Object(n.Cb)(s)||(w=Math.pow(10,s),S=Math.ceil(S*w)/w),_=Math.floor(p/S)*S,M=Math.ceil(m/S)*S,g&&b&&r&&Object(n.O)((a-o)/r,S/1e3)?(x=Math.min((a-o)/S,h),S=(a-o)/x,_=o,M=a):v?(_=g?o:_,M=b?a:M,x=u-1,S=(M-_)/x):(x=(M-_)/S,x=Object(n.P)(x,Math.round(x),S/1e3)?Math.round(x):Math.ceil(x)),w=Math.pow(10,Object(n.Cb)(s)?Object(n.Q)(S):s),_=Math.round(_*w)/w,M=Math.round(M*w)/w;let T=0;for(g&&(i.push({value:o}),_<=o&&T++,Object(n.P)(Math.round((_+T*S)*w)/w,o,y*(c?(""+o).length:1))&&T++);T<x;++T)i.push({value:Math.round((_+T*S)*w)/w});return b?Object(n.P)(i[i.length-1].value,a,y*(c?(""+a).length:1))?i[i.length-1].value=a:i.push({value:a}):i.push({value:M}),i}({maxTicks:r,min:e.min,max:e.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:t._maxDigits(),horizontal:t.isHorizontal()},t._range||t);return"ticks"===e.bounds&&Object(n.tb)(o,t,"value"),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),o}configure(){const t=this,e=t.ticks;let i=t.min,n=t.max;if(super.configure(),t.options.offset&&e.length){const t=(n-i)/Math.max(e.length-1,1)/2;i-=t,n+=t}t._startValue=i,t._endValue=n,t._valueRange=n-i}getLabelForValue(t){return Object(n.Ib)(t,this.chart.options.locale)}}class hi extends ui{determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!0);t.min=Object(n.zb)(e)?e:0,t.max=Object(n.zb)(i)?i:1,t.handleTickRangeOptions()}computeTickLimit(){const t=this;if(t.isHorizontal())return Math.ceil(t.width/40);const e=t._resolveTickFontOptions(0);return Math.ceil(t.height/e.lineHeight)}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function li(t){return 1===t/Math.pow(10,Math.floor(Object(n.l)(t)))}hi.id="linear",hi.defaults={ticks:{callback:vt.formatters.numeric}};class ci extends Ct{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ui.prototype.parse.apply(this,[t,e]);if(0!==i)return Object(n.zb)(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!0);t.min=Object(n.zb)(e)?Math.max(0,e):null,t.max=Object(n.zb)(i)?Math.max(0,i):null,t.options.beginAtZero&&(t._zero=!0),t.handleTickRangeOptions()}handleTickRangeOptions(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let r=t.min,o=t.max;const a=t=>r=e?r:t,s=t=>o=i?o:t,u=(t,e)=>Math.pow(10,Math.floor(Object(n.l)(t))+e);r===o&&(r<=0?(a(1),s(10)):(a(u(r,-1)),s(u(o,1)))),r<=0&&a(u(o,-1)),o<=0&&s(u(r,1)),t._zero&&t.min!==t._suggestedMin&&r===u(t.min,0)&&a(u(r,-1)),t.min=r,t.max=o}buildTicks(){const t=this,e=t.options,i=function(t,e){const i=Math.floor(Object(n.l)(e.max)),r=Math.ceil(e.max/Math.pow(10,i)),o=[];let a=Object(n.n)(t.min,Math.pow(10,Math.floor(Object(n.l)(e.min)))),s=Math.floor(Object(n.l)(a)),u=Math.floor(a/Math.pow(10,s)),h=s<0?Math.pow(10,Math.abs(s)):1;do{o.push({value:a,major:li(a)}),++u,10===u&&(u=1,++s,h=s>=0?1:h),a=Math.round(u*Math.pow(10,s)*h)/h}while(s<i||s===i&&u<r);const l=Object(n.n)(t.max,a);return o.push({value:l,major:li(a)}),o}({min:t._userMin,max:t._userMax},t);return"ticks"===e.bounds&&Object(n.tb)(i,t,"value"),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),i}getLabelForValue(t){return void 0===t?"0":Object(n.Ib)(t,this.chart.options.locale)}configure(){const t=this,e=t.min;super.configure(),t._startValue=Object(n.l)(e),t._valueRange=Object(n.l)(t.max)-Object(n.l)(e)}getPixelForValue(t){const e=this;return void 0!==t&&0!==t||(t=e.min),null===t||isNaN(t)?NaN:e.getPixelForDecimal(t===e.min?0:(Object(n.l)(t)-e._startValue)/e._valueRange)}getValueForPixel(t){const e=this,i=e.getDecimalForPixel(t);return Math.pow(10,e._startValue+i*e._valueRange)}}function di(t){const e=t.ticks;if(e.display&&t.display){const t=Object(n.d)(e.backdropPadding);return Object(n.Ob)(e.font&&e.font.size,n.wb.font.size)+t.height}return 0}function fi(t,e,i,n,r){return t===n||t===r?{start:e-i/2,end:e+i/2}:t<n||t>r?{start:e-i,end:e}:{start:e,end:e+i}}function pi(t){return 0===t||180===t?"center":t<180?"left":"right"}function mi(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function gi(t,e,i,r){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,n.u);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let n=1;n<r;n++)i=t.getPointPosition(n,e),o.lineTo(i.x,i.y)}}function bi(t){return Object(n.Pb)(t)?t:0}ci.id="logarithmic",ci.defaults={ticks:{callback:vt.formatters.logarithmic,major:{enabled:!0}}};class vi extends ui{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=di(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2}determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!1);t.min=Object(n.zb)(e)&&!isNaN(e)?e:0,t.max=Object(n.zb)(i)&&!isNaN(i)?i:0,t.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/di(this.options))}generateTickLabels(t){const e=this;ui.prototype.generateTickLabels.call(e,t),e._pointLabels=e.getLabels().map(((t,i)=>{const r=Object(n.o)(e.options.pointLabels.callback,[t,i],e);return r||0===r?r:""}))}fit(){const t=this,e=t.options;e.display&&e.pointLabels.display?function(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={};let r,o,a;const s=[],u=[],h=t.getLabels().length;for(r=0;r<h;r++){const h=t.options.pointLabels.setContext(t.getContext(r));u[r]=h.padding,a=t.getPointPosition(r,t.drawingArea+u[r]);const f=Object(n.x)(h.font);t.ctx.font=f.string,l=t.ctx,c=f.lineHeight,d=t._pointLabels[r],o=Object(n.ub)(d)?{w:Object(n.R)(l,l.font,d),h:d.length*c}:{w:l.measureText(d).width,h:c},s[r]=o;const p=t.getIndexAngle(r),m=Object(n.r)(p),g=fi(m,a.x,o.w,0,180),b=fi(m,a.y,o.h,90,270);g.start<e.l&&(e.l=g.start,i.l=p),g.end>e.r&&(e.r=g.end,i.r=p),b.start<e.t&&(e.t=b.start,i.t=p),b.end>e.b&&(e.b=b.end,i.b=p)}var l,c,d;t._setReductions(t.drawingArea,e,i),t._pointLabelItems=[];const f=t.options,p=di(f),m=t.getDistanceFromCenterForValue(f.ticks.reverse?t.min:t.max);for(r=0;r<h;r++){const e=0===r?p/2:0,i=t.getPointPosition(r,m+e+u[r]),o=Object(n.r)(t.getIndexAngle(r)),a=s[r];mi(o,a,i);const h=pi(o);let l;l="left"===h?i.x:"center"===h?i.x-a.w/2:i.x-a.w;const c=l+a.w;t._pointLabelItems[r]={x:i.x,y:i.y,textAlign:h,left:l,top:i.y,right:c,bottom:i.y+a.h}}}(t):t.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){const n=this;let r=e.l/Math.sin(i.l),o=Math.max(e.r-n.width,0)/Math.sin(i.r),a=-e.t/Math.cos(i.t),s=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);r=bi(r),o=bi(o),a=bi(a),s=bi(s),n.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(r+o)/2),Math.floor(t-(a+s)/2))),n.setCenterPoint(r,o,a,s)}setCenterPoint(t,e,i,n){const r=this,o=r.width-e-r.drawingArea,a=t+r.drawingArea,s=i+r.drawingArea,u=r.height-r.paddingTop-n-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+u)/2+r.top+r.paddingTop)}getIndexAngle(t){const e=n.u/this.getLabels().length,i=this.options.startAngle||0;return Object(n.mb)(t*e+Object(n.Mb)(i))}getDistanceFromCenterForValue(t){const e=this;if(Object(n.Cb)(t))return NaN;const i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i}getValueForDistanceFromCenter(t){if(Object(n.Cb)(t))return NaN;const e=this,i=t/(e.drawingArea/(e.max-e.min));return e.options.reverse?e.max-i:e.min+i}getPointPosition(t,e){const i=this,r=i.getIndexAngle(t)-n.i;return{x:Math.cos(r)*e+i.xCenter,y:Math.sin(r)*e+i.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:r}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:r}}drawBackground(){const t=this,{backgroundColor:e,grid:{circular:i}}=t.options;if(e){const n=t.ctx;n.save(),n.beginPath(),gi(t,t.getDistanceFromCenterForValue(t._endValue),i,t.getLabels().length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const t=this,e=t.ctx,i=t.options,{angleLines:r,grid:o}=i,a=t.getLabels().length;let s,u,h;if(i.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:r}}=t;for(let o=e-1;o>=0;o--){const e=r.setContext(t.getContext(o)),a=Object(n.x)(e.font),{x:s,y:u,textAlign:h,left:l,top:c,right:d,bottom:f}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Object(n.Cb)(p)){const t=Object(n.d)(e.backdropPadding);i.fillStyle=p,i.fillRect(l-t.left,c-t.top,d-l+t.width,f-c+t.height)}Object(n.w)(i,t._pointLabels[o],s,u+a.lineHeight/2,a,{color:e.color,textAlign:h,textBaseline:"middle"})}}(t,a),o.display&&t.ticks.forEach(((e,i)=>{if(0!==i){u=t.getDistanceFromCenterForValue(e.value);const n=o.setContext(t.getContext(i-1));!function(t,e,i,n){const r=t.ctx,o=e.circular,{color:a,lineWidth:s}=e;!o&&!n||!a||!s||i<0||(r.save(),r.strokeStyle=a,r.lineWidth=s,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),gi(t,i,o,n),r.closePath(),r.stroke(),r.restore())}(t,n,u,a)}})),r.display){for(e.save(),s=t.getLabels().length-1;s>=0;s--){const n=r.setContext(t.getContext(s)),{color:o,lineWidth:a}=n;a&&o&&(e.lineWidth=a,e.strokeStyle=o,e.setLineDash(n.borderDash),e.lineDashOffset=n.borderDashOffset,u=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),h=t.getPointPosition(s,u),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const t=this,e=t.ctx,i=t.options,r=i.ticks;if(!r.display)return;const o=t.getIndexAngle(0);let a,s;e.save(),e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",t.ticks.forEach(((o,u)=>{if(0===u&&!i.reverse)return;const h=r.setContext(t.getContext(u)),l=Object(n.x)(h.font);if(a=t.getDistanceFromCenterForValue(t.ticks[u].value),h.showLabelBackdrop){s=e.measureText(o.label).width,e.fillStyle=h.backdropColor;const t=Object(n.d)(h.backdropPadding);e.fillRect(-s/2-t.left,-a-l.size/2-t.top,s+t.width,l.size+t.height)}Object(n.w)(e,o.label,0,-a,l,{color:h.color})})),e.restore()}drawTitle(){}}vi.id="radialLinear",vi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:vt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},vi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vi.descriptors={angleLines:{_fallback:"grid"}};const yi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},wi=Object.keys(yi);function _i(t,e){return t-e}function Mi(t,e){if(Object(n.Cb)(e))return null;const i=t._adapter,{parser:r,round:o,isoWeekday:a}=t._parseOpts;let s=e;return"function"==typeof r&&(s=r(s)),Object(n.zb)(s)||(s="string"==typeof r?i.parse(s,r):i.parse(s)),null===s?null:(o&&(s="week"!==o||!Object(n.Pb)(a)&&!0!==a?i.startOf(s,o):i.startOf(s,"isoWeek",a)),+s)}function xi(t,e,i,n){const r=wi.length;for(let o=wi.indexOf(t);o<r-1;++o){const t=yi[wi[o]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(r*t.size))<=n)return wi[o]}return wi[r-1]}function Si(t,e,i){if(i){if(i.length){const{lo:r,hi:o}=Object(n.T)(i,e);t[i[r]>=e?i[r]:i[o]]=!0}}else t[e]=!0}function Ti(t,e,i){const n=[],r={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],r[s]=a,n.push({value:s,major:!1});return 0!==o&&i?function(t,e,i,n){const r=t._adapter,o=+r.startOf(e[0].value,n),a=e[e.length-1].value;let s,u;for(s=o;s<=a;s=+r.add(s,1,n))u=i[s],u>=0&&(e[u].major=!0);return e}(t,n,r,i):n}class Ai extends Ct{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),r=this._adapter=new L._date(t.adapters.date);Object(n.J)(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Mi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this,e=t.options,i=t._adapter,r=e.time.unit||"day";let{min:o,max:a,minDefined:s,maxDefined:u}=t.getUserBounds();function h(t){s||isNaN(t.min)||(o=Math.min(o,t.min)),u||isNaN(t.max)||(a=Math.max(a,t.max))}s&&u||(h(t._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||h(t.getMinMax(!1))),o=Object(n.zb)(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Object(n.zb)(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,t.min=Math.min(o,a-1),t.max=Math.max(o+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this,e=t.options,i=e.time,r=e.ticks,o="labels"===r.source?t.getLabelTimestamps():t._generate();"ticks"===e.bounds&&o.length&&(t.min=t._userMin||o[0],t.max=t._userMax||o[o.length-1]);const a=t.min,s=t.max,u=Object(n.S)(o,a,s);return t._unit=i.unit||(r.autoSkip?xi(i.minUnit,t.min,t.max,t._getLabelCapacity(a)):function(t,e,i,n,r){for(let o=wi.length-1;o>=wi.indexOf(i);o--){const i=wi[o];if(yi[i].common&&t._adapter.diff(r,n,i)>=e-1)return i}return wi[i?wi.indexOf(i):0]}(t,u.length,i.minUnit,t.min,t.max)),t._majorUnit=r.major.enabled&&"year"!==t._unit?function(t){for(let e=wi.indexOf(t)+1,i=wi.length;e<i;++e)if(yi[wi[e]].common)return wi[e]}(t._unit):void 0,t.initOffsets(o),e.reverse&&u.reverse(),Ti(t,u,t._majorUnit)}initOffsets(t){const e=this;let i,r,o=0,a=0;e.options.offset&&t.length&&(i=e.getDecimalForValue(t[0]),o=1===t.length?1-i:(e.getDecimalForValue(t[1])-i)/2,r=e.getDecimalForValue(t[t.length-1]),a=1===t.length?r:(r-e.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;o=Object(n.Qb)(o,0,s),a=Object(n.Qb)(a,0,s),e._offsets={start:o,end:a,factor:1/(o+1+a)}}_generate(){const t=this,e=t._adapter,i=t.min,r=t.max,o=t.options,a=o.time,s=a.unit||xi(a.minUnit,i,r,t._getLabelCapacity(i)),u=Object(n.Ob)(a.stepSize,1),h="week"===s&&a.isoWeekday,l=Object(n.Pb)(h)||!0===h,c={};let d,f,p=i;if(l&&(p=+e.startOf(p,"isoWeek",h)),p=+e.startOf(p,l?"day":s),e.diff(r,i,s)>1e5*u)throw new Error(i+" and "+r+" are too far apart with stepSize of "+u+" "+s);const m="data"===o.ticks.source&&t.getDataTimestamps();for(d=p,f=0;d<r;d=+e.add(d,u,s),f++)Si(c,d,m);return d!==r&&"ticks"!==o.bounds&&1!==f||Si(c,d,m),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,r){const o=this,a=o.options,s=a.time.displayFormats,u=o._unit,h=o._majorUnit,l=u&&s[u],c=h&&s[h],d=i[e],f=h&&c&&d&&d.major,p=o._adapter.format(t,r||(f?c:l)),m=a.ticks.callback;return m?Object(n.o)(m,[p,e,i],o):p}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){const e=this;return null===t?NaN:(t-e.min)/(e.max-e.min)}getPixelForValue(t){const e=this,i=e._offsets,n=e.getDecimalForValue(t);return e.getPixelForDecimal((i.start+n)*i.factor)}getValueForPixel(t){const e=this,i=e._offsets,n=e.getDecimalForPixel(t)/i.factor-i.end;return e.min+n*(e.max-e.min)}_getLabelSize(t){const e=this,i=e.options.ticks,r=e.ctx.measureText(t).width,o=Object(n.Mb)(e.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(o),s=Math.sin(o),u=e._resolveTickFontOptions(0).size;return{w:r*a+u*s,h:r*s+u*a}}_getLabelCapacity(t){const e=this,i=e.options.time,n=i.displayFormats,r=n[i.unit]||n.millisecond,o=e._tickFormatFunction(t,0,Ti(e,[t],e._majorUnit),r),a=e._getLabelSize(o),s=Math.floor(e.isHorizontal()?e.width/a.w:e.height/a.h)-1;return s>0?s:1}getDataTimestamps(){const t=this;let e,i,n=t._cache.data||[];if(n.length)return n;const r=t.getMatchingVisibleMetas();if(t._normalized&&r.length)return t._cache.data=r[0].controller.getAllParsedValues(t);for(e=0,i=r.length;e<i;++e)n=n.concat(r[e].controller.getAllParsedValues(t));return t._cache.data=t.normalize(n)}getLabelTimestamps(){const t=this,e=t._cache.labels||[];let i,n;if(e.length)return e;const r=t.getLabels();for(i=0,n=r.length;i<n;++i)e.push(Mi(t,r[i]));return t._cache.labels=t._normalized?e:t.normalize(e)}normalize(t){return Object(n.B)(t.sort(_i))}}function Ci(t,e,i){let r,o,a,s;if(i)r=Math.floor(e),o=Math.ceil(e),a=t[r],s=t[o];else{const i=Object(n.T)(t,e);a=i.lo,s=i.hi,r=t[a],o=t[s]}const u=o-r;return u?a+(s-a)*(e-r)/u:a}Ai.id="time",Ai.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ei extends Ai{constructor(t){super(t),this._table=[],this._maxIndex=void 0}initOffsets(){const t=this,e=t._getTimestampsForTable();t._table=t.buildLookupTable(e),t._maxIndex=t._table.length-1,super.initOffsets(e)}buildLookupTable(t){const{min:e,max:i}=this;if(!t.length)return[{time:e,pos:0},{time:i,pos:1}];const n=[e];let r,o,a;for(r=0,o=t.length;r<o;++r)a=t[r],a>e&&a<i&&n.push(a);return n.push(i),n}_getTimestampsForTable(){const t=this;let e=t._cache.all||[];if(e.length)return e;const i=t.getDataTimestamps(),n=t.getLabelTimestamps();return e=i.length&&n.length?t.normalize(i.concat(n)):i.length?i:n,e=t._cache.all=e,e}getPixelForValue(t,e){const i=this,r=i._offsets,o=i._normalized&&i._maxIndex>0&&!Object(n.Cb)(e)?e/i._maxIndex:i.getDecimalForValue(t);return i.getPixelForDecimal((r.start+o)*r.factor)}getDecimalForValue(t){return Ci(this._table,t)/this._maxIndex}getValueForPixel(t){const e=this,i=e._offsets,n=e.getDecimalForPixel(t)/i.factor-i.end;return Ci(e._table,n*this._maxIndex,!0)}}Ei.id="timeseries",Ei.defaults=Ai.defaults},104:function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},105:function(t,e,i){"use strict";var n=e,r=i(132),o=i(104),a=i(477);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,i){var n=new Array(Math.max(t.bitLength(),i)+1);n.fill(0);for(var r=1<<e+1,o=t.clone(),a=0;a<n.length;a++){var s,u=o.andln(r-1);o.isOdd()?(s=u>(r>>1)-1?(r>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var n,r=0,o=0;t.cmpn(-r)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+r&3,h=e.andln(3)+o&3;3===u&&(u=-1),3===h&&(h=-1),a=0==(1&u)?0:3!==(n=t.andln(7)+r&7)&&5!==n||2!==h?u:-u,i[0].push(a),s=0==(1&h)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?h:-h,i[1].push(s),2*r===a+1&&(r=1-r),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return i},n.cachedProperty=function(t,e,i){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new r(t,"hex","le")}},11:function(t,e,i){"use strict";i.d(e,"a",(function(){return z})),i.d(e,"b",(function(){return m})),i.d(e,"c",(function(){return k})),i.d(e,"d",(function(){return K})),i.d(e,"e",(function(){return Ot})),i.d(e,"f",(function(){return B})),i.d(e,"g",(function(){return mt})),i.d(e,"h",(function(){return R})),i.d(e,"i",(function(){return Et})),i.d(e,"j",(function(){return b})),i.d(e,"k",(function(){return qt})),i.d(e,"l",(function(){return lt})),i.d(e,"m",(function(){return C})),i.d(e,"n",(function(){return yt})),i.d(e,"o",(function(){return H})),i.d(e,"p",(function(){return zt})),i.d(e,"q",(function(){return Ht})),i.d(e,"r",(function(){return Bt})),i.d(e,"s",(function(){return Lt})),i.d(e,"t",(function(){return Ut})),i.d(e,"u",(function(){return Gt})),i.d(e,"v",(function(){return Dt})),i.d(e,"w",(function(){return Nt})),i.d(e,"x",(function(){return Vt}));var n=i(7),r=i(97),o=i(17),a=i(73),s=i(56),u=i(14),h=i(34),l=i(120),c=function(){function t(t){this.element=t,this.subscriptions={}}return t.prototype._enqueueHandler=function(t){this.subscriptions[t.eventName]=this.subscriptions[t.eventName]||[],this.subscriptions[t.eventName].push(t)},t.prototype._dequeueHandler=function(t){var e,i=this.subscriptions[t.eventName];return i&&(e=i.indexOf(t))>-1&&i.splice(e,1),t},t.prototype.publish=function(t,e,i,r){void 0===e&&(e={}),void 0===i&&(i=!0),void 0===r&&(r=!0);var o=n.b.createCustomEvent(t,{cancelable:r,bubbles:i,detail:e});this.element.dispatchEvent(o)},t.prototype.subscribe=function(e,i,n){if("function"==typeof i)return void 0===n&&(n=t.defaultListenerOptions),new d(this,e,i,n,!1)},t.prototype.subscribeOnce=function(e,i,n){if("function"==typeof i)return void 0===n&&(n=t.defaultListenerOptions),new d(this,e,i,n,!0)},t.prototype.dispose=function(t){if(t&&"string"==typeof t){var e=this.subscriptions[t];if(e)for(;e.length;){var i=e.pop();i&&i.dispose()}}else this.disposeAll()},t.prototype.disposeAll=function(){for(var t in this.subscriptions)this.dispose(t)},t.defaultListenerOptions=!0,t}(),d=function(){function t(t,e,i,n,r){this.owner=t,this.eventName=e,this.handler=i,this.capture="boolean"==typeof n?n:n.capture,this.bubbles=!this.capture,this.captureOrOptions=n,this.once=r,t.element.addEventListener(e,this,n),t._enqueueHandler(this)}return t.prototype.handleEvent=function(t){(0,this.handler)(t),this.once&&this.dispose()},t.prototype.dispose=function(){this.owner.element.removeEventListener(this.eventName,this,this.captureOrOptions),this.owner._dequeueHandler(this),this.owner=this.handler=null},t}(),f=function(){function t(){this.dependencies={}}return t.prototype.addDependency=function(t){this.dependencies[t]=!0},t.prototype.hasDependency=function(t){return t in this.dependencies},t}(),p=function(){function t(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),this.targetShadowDOM=t,this.compileSurrogate=e,this.associatedModuleId=null}return t.normal=new t,t}(),m=function(){function t(){}return t.enhance=function(){var e=new t;return e.enhance=!0,e},t.unitTest=function(e,i){var n=new t;return n.type=e,n.attributes=i||{},n},t.element=function(e,i){var n=new t;return n.type=i,n.attributes={},n.anchorIsContainer=!(e.hasAttribute("containerless")||i.containerless),n.initiatedByBehavior=!0,n},t.attribute=function(e,i){var n=new t;return n.attrName=e,n.type=i||null,n.attributes={},n},t.dynamic=function(e,i,n){var r=new t;return r.host=e,r.viewModel=i,r.viewFactory=n,r.inheritBindingContext=!0,r},t.normal=new t,t}(),g=m.prototype;g.initiatedByBehavior=!1,g.enhance=!1,g.partReplacements=null,g.viewFactory=null,g.originalAttrName=null,g.skipContentProcessing=!1,g.contentFactory=null,g.viewModel=null,g.anchorIsContainer=!1,g.host=null,g.attributes=null,g.type=null,g.attrName=null,g.inheritBindingContext=!1;var b=function(){function t(){}return t.shadowSlot=function(e){var i=new t;return i.parentInjectorId=e,i.shadowSlot=!0,i},t.contentExpression=function(e){var i=new t;return i.contentExpression=e,i},t.letElement=function(e){var i=new t;return i.expressions=e,i.letElement=!0,i},t.lifting=function(e,i){var n=new t;return n.parentInjectorId=e,n.expressions=t.noExpressions,n.behaviorInstructions=[i],n.viewFactory=i.viewFactory,n.providers=[i.type.target],n.lifting=!0,n},t.normal=function(e,i,n,r,o,a){var s=new t;return s.injectorId=e,s.parentInjectorId=i,s.providers=n,s.behaviorInstructions=r,s.expressions=o,s.anchorIsContainer=!a||a.anchorIsContainer,s.elementInstruction=a,s},t.surrogate=function(e,i,n,r){var o=new t;return o.expressions=n,o.behaviorInstructions=i,o.providers=e,o.values=r,o},t.noExpressions=Object.freeze([]),t}(),v=b.prototype;function y(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}v.injectorId=null,v.parentInjectorId=null,v.shadowSlot=!1,v.slotName=null,v.slotFallbackFactory=null,v.contentExpression=null,v.letElement=!1,v.expressions=null,v.expressions=null,v.providers=null,v.viewFactory=null,v.anchorIsContainer=!1,v.elementInstruction=null,v.lifting=!1,v.values=null;var w=/([A-Z])/g;function _(t){return"-"+t.toLowerCase()}function M(t){return(t.charAt(0).toLowerCase()+t.slice(1)).replace(w,_)}function x(t){return!(t.auInterpolationTarget||/[^\t\n\r ]/.test(t.textContent))}var S=function(){function t(t,e,i,n,r){this.taskQueue=t,this.obj=e,this.propertyName=i,this.notqueued=!0,this.publishing=!1,this.selfSubscriber=n,this.currentValue=this.oldValue=r}return t.prototype.getValue=function(){return this.currentValue},t.prototype.setValue=function(t){var e=this.currentValue;Object.is(t,e)||(this.oldValue=e,this.currentValue=t,this.publishing&&this.notqueued&&(this.taskQueue.flushing?this.call():(this.notqueued=!1,this.taskQueue.queueMicroTask(this))))},t.prototype.call=function(){var t=this.oldValue,e=this.currentValue;this.notqueued=!0,Object.is(e,t)||(this.selfSubscriber&&this.selfSubscriber(e,t),this.callSubscribers(e,t),this.oldValue=e)},t.prototype.callSubscribers=function(t,e){throw new Error("Method not implemented.")},t.prototype.subscribe=function(t,e){this.addSubscriber(t,e)},t.prototype.addSubscriber=function(t,e){throw new Error("Method not implemented.")},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)},t.prototype.removeSubscriber=function(t,e){throw new Error("Method not implemented.")},t=y([Object(u.C)()],t)}();function T(t,e){var i=t.__observers__;if(void 0===i){var n=Object.getPrototypeOf(t).constructor,r=o.b.get(o.b.resource,n);r.isInitialized||r.initialize(h.a.instance||new h.a,t.constructor),i=r.observerLocator.getOrCreateObserversLookup(t),r._ensurePropertiesDefined(t,i)}return i[e]}var A=function(){function t(t){"string"==typeof t?this.name=t:Object.assign(this,t),this.attribute=this.attribute||M(this.name);var e=this.defaultBindingMode;null==e?this.defaultBindingMode=u.r.oneWay:"string"==typeof e&&(this.defaultBindingMode=u.r[e]||u.r.oneWay),this.changeHandler=this.changeHandler||null,this.owner=null,this.descriptor=null}return t.prototype.registerWith=function(t,e,i){if(e.properties.push(this),e.attributes[this.attribute]=this,this.owner=e,i)return this.descriptor=i,this._configureDescriptor(i)},t.prototype._configureDescriptor=function(t){var e=this.name;return t.configurable=!0,t.enumerable=!0,"initializer"in t&&(this.defaultValue=t.initializer,delete t.initializer,delete t.writable),"value"in t&&(this.defaultValue=t.value,delete t.value,delete t.writable),t.get=function(){return T(this,e).getValue()},t.set=function(t){T(this,e).setValue(t)},t.get.getObserver=function(t){return T(t,e)},t},t.prototype.defineOn=function(t,e){var i,n=this.name;null===this.changeHandler&&(i=n+"Changed")in t.prototype&&(this.changeHandler=i),null===this.descriptor&&Object.defineProperty(t.prototype,n,this._configureDescriptor({}))},t.prototype.createObserver=function(t){var e,i=null,n=this.defaultValue,r=this.changeHandler,o=this.name;if(!this.hasOptions){if(r in t)i="propertyChanged"in t?function(e,i){t[r](e,i),t.propertyChanged(o,e,i)}:function(e,i){return t[r](e,i)};else if("propertyChanged"in t)i=function(e,i){return t.propertyChanged(o,e,i)};else if(null!==r)throw new Error("Change handler ".concat(r," was specified but not declared on the class."));return void 0!==n&&(e="function"==typeof n?n.call(t):n),new S(this.owner.taskQueue,t,this.name,i,e)}},t.prototype._initialize=function(t,e,i,n,r){var o,a,s,u=this.defaultValue;if(this.isDynamic)for(var h in i)this._createDynamicProperty(t,e,n,h,i[h],r);else this.hasOptions||(a=e[this.name],null!==i&&(o=a.selfSubscriber,s=i[this.attribute],n&&(a.selfSubscriber=null),"string"==typeof s?(t[this.name]=s,a.call()):s?r.push({observer:a,binding:s.createBinding(t)}):void 0!==u&&a.call(),a.selfSubscriber=o),a.publishing=!0)},t.prototype._createDynamicProperty=function(t,e,i,n,r,o){var a,s,u=n+"Changed",h=null;u in t?h="propertyChanged"in t?function(e,i){t[u](e,i),t.propertyChanged(n,e,i)}:function(e,i){return t[u](e,i)}:"propertyChanged"in t&&(h=function(e,i){return t.propertyChanged(n,e,i)}),a=e[n]=new S(this.owner.taskQueue,t,n,h),Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:a.getValue.bind(a),set:a.setValue.bind(a)}),i&&(a.selfSubscriber=null),"string"==typeof r?(t[n]=r,a.call()):r&&(s={observer:a,binding:r.createBinding(t)},o.push(s)),a.publishing=!0,a.selfSubscriber=h},t}(),C=function(){function t(){}return t.prototype.getViewStrategy=function(e){if(!e)return null;if("object"==typeof e&&"getViewStrategy"in e){var i=o.a.get(e.constructor);return"string"==typeof(e=e.getViewStrategy())&&(e=new _t(e)),wt.assert(e),i.moduleId&&e.makeRelativeTo(i.moduleId),e}if("string"==typeof e&&(e=new _t(e)),wt.validate(e))return e;if("function"!=typeof e&&(e=e.constructor),"$view"in e){var n=e.$view,r=void 0;return r=null===(n="function"==typeof n?n.call(e):n)?new xt:n instanceof At?n:new At(n),o.b.define(t.viewStrategyMetadataKey,r,e),r}var a=o.a.get(e),s=o.b.get(t.viewStrategyMetadataKey,e);if(s)a.moduleId&&(s.moduleId=a.moduleId);else{if(!a.moduleId)throw new Error("Cannot determine default view strategy for object.\n"+e);s=this.createFallbackViewStrategy(a)}return s},t.prototype.createFallbackViewStrategy=function(t){return new Mt(this,t)},t.prototype.convertOriginToViewUrl=function(t){var e=t.moduleId;return(e.endsWith(".js")||e.endsWith(".ts")?e.substring(0,e.length-3):e)+".html"},t.viewStrategyMetadataKey="aurelia:view-strategy",t}();function E(t){throw new Error("BindingLanguage must implement ".concat(t,"()."))}var k=function(){function t(){}return t.prototype.inspectAttribute=function(t,e,i,n){E("inspectAttribute")},t.prototype.createAttributeInstruction=function(t,e,i,n,r){E("createAttributeInstruction")},t.prototype.createLetExpressions=function(t,e){E("createLetExpressions")},t.prototype.inspectTextContent=function(t,e){E("inspectTextContent")},t}(),O=Object.freeze([]),P=function(){function t(t){this.element=t,this.element.auSlotAttribute=this}return t.inject=function(){return[n.b.Element]},t.prototype.valueChanged=function(t,e){},t}(),I=function(){function t(t,e,i,n){this.anchor=t,this.anchor.viewSlot=this,this.name=e,this.destinationName=i,this.fallbackFactory=n,this.destinationSlot=null,this.projections=0,this.contentView=null,new P(this.anchor).value=this.destinationName}return Object.defineProperty(t.prototype,"needsFallbackRendering",{get:function(){return this.fallbackFactory&&0===this.projections},enumerable:!1,configurable:!0}),t.prototype.renderFallbackContent=function(t,e,i,n){if(null===this.contentView){this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext);var r=Object.create(null);r[this.destinationSlot.name]=this.destinationSlot,R.distributeView(this.contentView,r,i,n,this.destinationSlot.name)}},t.prototype.passThroughTo=function(t){this.destinationSlot=t},t.prototype.addNode=function(e,i,n,r){null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),i.viewSlot instanceof t?i.viewSlot.passThroughTo(this):(this.projections++,this.destinationSlot.addNode(e,i,n,r))},t.prototype.removeView=function(t,e){this.projections--,this.destinationSlot.removeView(t,e),this.needsFallbackRendering&&this.renderFallbackContent(null,O,e)},t.prototype.removeAll=function(t){this.projections=0,this.destinationSlot.removeAll(t),this.needsFallbackRendering&&this.renderFallbackContent(null,O,t)},t.prototype.projectFrom=function(t,e){this.destinationSlot.projectFrom(t,e)},t.prototype.created=function(t){this.ownerView=t},t.prototype.bind=function(t){this.contentView&&this.contentView.bind(t.bindingContext,t.overrideContext)},t.prototype.attached=function(){this.contentView&&this.contentView.attached()},t.prototype.detached=function(){this.contentView&&this.contentView.detached()},t.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},t}(),j=function(){function t(t,e,i){this.anchor=t,this.anchor.isContentProjectionSource=!0,this.anchor.viewSlot=this,this.name=e,this.fallbackFactory=i,this.contentView=null,this.projections=0,this.children=[],this.projectFromAnchors=null,this.destinationSlots=null}return Object.defineProperty(t.prototype,"needsFallbackRendering",{get:function(){return this.fallbackFactory&&0===this.projections},enumerable:!1,configurable:!0}),t.prototype.addNode=function(t,e,i,n,r){var o=e;if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),o.viewSlot instanceof I)o.viewSlot.passThroughTo(this);else if(null!==this.destinationSlots)R.distributeNodes(t,[o],this.destinationSlots,this,n);else{o.auOwnerView=t,o.auProjectionSource=i,o.auAssignedSlot=this;var a=this._findAnchor(t,o,i,n);a.parentNode.insertBefore(o,a),this.children.push(o),this.projections++}},t.prototype.removeView=function(t,e){if(null!==this.destinationSlots)R.undistributeView(t,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)R.undistributeView(t,this.contentView.slots,e);else{var i=this.children.find((function(t){return t.auSlotProjectFrom===e}));if(i){for(var n=i.auProjectionChildren,r=this.children,o=0,a=n.length;o<a;++o){var s=n[o];if(s.auOwnerView===t){n.splice(o,1),t.fragment.appendChild(s),o--,a--,this.projections--;var u=r.indexOf(s);u>-1&&r.splice(u,1)}}this.needsFallbackRendering&&this.renderFallbackContent(t,O,e)}}},t.prototype.removeAll=function(t){if(null!==this.destinationSlots)R.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)R.undistributeAll(this.contentView.slots,t);else{var e=this.children.find((function(e){return e.auSlotProjectFrom===t}));if(e){for(var i=e.auProjectionChildren,n=this.children,r=0,o=i.length;r<o;++r){var a=i[r];a.auOwnerView.fragment.appendChild(a),this.projections--;var s=n.indexOf(a);s>-1&&n.splice(s,1)}e.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,O,t)}}},t.prototype._findAnchor=function(t,e,i,n){if(i){var r=this.children.find((function(t){return t.auSlotProjectFrom===i}));if(r){if(void 0!==n)for(var o=r.auProjectionChildren,a=-1,s=void 0,u=0,h=o.length;u<h;++u){var l=o[u];if(l.auOwnerView!==s&&(a++,s=l.auOwnerView,a>=n&&s!==t))return o.splice(u,0,e),l}return r.auProjectionChildren.push(e),r}}return this.anchor},t.prototype.projectTo=function(t){this.destinationSlots=t},t.prototype.projectFrom=function(t,e){var i=n.b.createComment("anchor"),r=this.anchor.parentNode;i.auSlotProjectFrom=e,i.auOwnerView=t,i.auProjectionChildren=[],r.insertBefore(i,this.anchor),this.children.push(i),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(i)},t.prototype.renderFallbackContent=function(t,e,i,n){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var r=this.contentView.slots,o=this.projectFromAnchors;if(null!==o)for(var a in r)for(var s=r[a],u=0,h=o.length;u<h;++u){var l=o[u];s.projectFrom(l.auOwnerView,l.auSlotProjectFrom)}this.fallbackSlots=r,R.distributeNodes(t,e,r,i,n)}},t.prototype.created=function(t){this.ownerView=t},t.prototype.bind=function(t){this.contentView&&this.contentView.bind(t.bindingContext,t.overrideContext)},t.prototype.attached=function(){this.contentView&&this.contentView.attached()},t.prototype.detached=function(){this.contentView&&this.contentView.detached()},t.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},t}(),R=function(){function t(){}return t.getSlotName=function(e){return void 0===e.auSlotAttribute?t.defaultSlotKey:e.auSlotAttribute.value},t.distributeView=function(e,i,n,r,o){var a;if(null===e)a=O;else{var s=e.fragment.childNodes,u=s.length;a=new Array(u);for(var h=0;h<u;++h)a[h]=s[h]}t.distributeNodes(e,a,i,n,r,o)},t.undistributeView=function(t,e,i){for(var n in e)e[n].removeView(t,i)},t.undistributeAll=function(t,e){for(var i in t)t[i].removeAll(e)},t.distributeNodes=function(e,i,n,r,o,a){for(var s=0,u=i.length;s<u;++s){var h=i[s],l=h.nodeType;if(h.isContentProjectionSource){for(var c in h.viewSlot.projectTo(n),n)n[c].projectFrom(e,h.viewSlot);i.splice(s,1),u--,s--}else if(1===l||3===l||h.viewSlot instanceof I)if(3===l&&x(h))i.splice(s,1),u--,s--;else{var d=n[a||t.getSlotName(h)];d&&(d.addNode(e,h,r,o),i.splice(s,1),u--,s--)}else i.splice(s,1),u--,s--}for(var c in n){var f=n[c];f.needsFallbackRendering&&f.renderFallbackContent(e,i,r,o)}},t.defaultSlotKey="__au-default-slot-key__",t}(),D=function(){function t(t){this.owner=t,this.owner._compositionCount++}return t.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},t}(),L=function(){function t(t){this.owner=t,this.owner._ownershipToken=this,this.thenable=this._createThenable()}return t.prototype.waitForCompositionComplete=function(){return this.owner._tryCompleteTransaction(),this.thenable},t.prototype.resolve=function(){this._resolveCallback()},t.prototype._resolveCallback=function(){throw new Error("Method not implemented.")},t.prototype._createThenable=function(){var t=this;return new Promise((function(e){t._resolveCallback=e}))},t}(),B=function(){function t(){this._ownershipToken=null,this._compositionCount=0}return t.prototype.tryCapture=function(){return null===this._ownershipToken?new L(this):null},t.prototype.enlist=function(){return new D(this)},t.prototype._tryCompleteTransaction=function(){if(this._compositionCount<=0&&(this._compositionCount=0,null!==this._ownershipToken)){var t=this._ownershipToken;this._ownershipToken=null,t.resolve()}},t}(),N=function(){function t(t,e,i,n,r,o,a){for(var s in this.container=t,this.viewFactory=e,this.resources=e.resources,this.fragment=i,this.firstChild=i.firstChild,this.lastChild=i.lastChild,this.controllers=n,this.bindings=r,this.children=o,this.slots=a,this.hasSlots=!1,this.fromCache=!1,this.isBound=!1,this.isAttached=!1,this.bindingContext=null,this.overrideContext=null,this.controller=null,this.viewModelScope=null,this.animatableElement=void 0,this._isUserControlled=!1,this.contentView=null,a){this.hasSlots=!0;break}}return t.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},t.prototype.created=function(){var t,e,i=this.controllers;for(t=0,e=i.length;t<e;++t)i[t].created(this)},t.prototype.bind=function(t,e,i){var n,r,o,a,s;if(!i||!this._isUserControlled){if(this.isBound){if(this.bindingContext===t)return;this.unbind()}for(this.isBound=!0,this.bindingContext=t,this.overrideContext=e||Object(u.v)(t),this.resources._invokeHook("beforeBind",this),a=0,s=(r=this.bindings).length;a<s;++a)r[a].bind(this);for(null!==this.viewModelScope&&(t.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),a=0,s=(n=this.controllers).length;a<s;++a)n[a].bind(this);for(a=0,s=(o=this.children).length;a<s;++a)o[a].bind(t,e,!0);this.hasSlots&&R.distributeView(this.contentView,this.slots)}},t.prototype.addBinding=function(t){this.bindings.push(t),this.isBound&&t.bind(this)},t.prototype.unbind=function(){var t,e,i,n,r;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),n=0,r=(e=this.bindings).length;n<r;++n)e[n].unbind();for(n=0,r=(t=this.controllers).length;n<r;++n)t[n].unbind();for(n=0,r=(i=this.children).length;n<r;++n)i[n].unbind();this.bindingContext=null,this.overrideContext=null}},t.prototype.insertNodesBefore=function(t){t.parentNode.insertBefore(this.fragment,t)},t.prototype.appendNodesTo=function(t){t.appendChild(this.fragment)},t.prototype.removeNodes=function(){for(var t,e=this.fragment,i=this.firstChild,n=this.lastChild;i&&(t=i.nextSibling,e.appendChild(i),i!==n);)i=t},t.prototype.attached=function(){var t,e,i,n;if(!this.isAttached){for(this.isAttached=!0,null!==this.controller&&this.controller.attached(),i=0,n=(t=this.controllers).length;i<n;++i)t[i].attached();for(i=0,n=(e=this.children).length;i<n;++i)e[i].attached()}},t.prototype.detached=function(){var t,e,i,n;if(this.isAttached){for(this.isAttached=!1,null!==this.controller&&this.controller.detached(),i=0,n=(t=this.controllers).length;i<n;++i)t[i].detached();for(i=0,n=(e=this.children).length;i<n;++i)e[i].detached()}},t}(),z=function(){function t(){}return t.prototype.enter=function(t){return Promise.resolve(!1)},t.prototype.leave=function(t){return Promise.resolve(!1)},t.prototype.removeClass=function(t,e){return t.classList.remove(e),Promise.resolve(!1)},t.prototype.addClass=function(t,e){return t.classList.add(e),Promise.resolve(!1)},t.prototype.animate=function(t,e){return Promise.resolve(!1)},t.prototype.runSequence=function(t){return Promise.resolve(!1)},t.prototype.registerEffect=function(t,e){},t.prototype.unregisterEffect=function(t){},t}();var H=function(){function t(t,e,i){void 0===i&&(i=z.instance),this.anchor=t,this.anchorIsContainer=e,this.bindingContext=null,this.overrideContext=null,this.animator=i,this.children=[],this.isBound=!1,this.isAttached=!1,this.contentSelectors=null,t.viewSlot=this,t.isContentProjectionSource=!1}return t.prototype.animateView=function(t,e){void 0===e&&(e="enter");var i=function(t){if(void 0!==t.animatableElement)return t.animatableElement;for(var e=t.firstChild;e&&1!==e.nodeType;)e=e.nextSibling;return e&&1===e.nodeType?t.animatableElement=e.classList.contains("au-animate")?e:null:t.animatableElement=null}(t);if(null!==i)switch(e){case"enter":return this.animator.enter(i);case"leave":return this.animator.leave(i);default:throw new Error("Invalid animation direction: "+e)}},t.prototype.transformChildNodesIntoView=function(){var t=this.anchor;this.children.push({fragment:t,firstChild:t.firstChild,lastChild:t.lastChild,returnToCache:function(){},removeNodes:function(){for(var e;e=t.lastChild;)t.removeChild(e)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})},t.prototype.bind=function(t,e){var i,n,r;if(this.isBound){if(this.bindingContext===t)return;this.unbind()}for(this.isBound=!0,this.bindingContext=t=t||this.bindingContext,this.overrideContext=e=e||this.overrideContext,i=0,n=(r=this.children).length;i<n;++i)r[i].bind(t,e,!0)},t.prototype.unbind=function(){if(this.isBound){var t,e=void 0,i=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,e=0,t=i.length;e<t;++e)i[e].unbind()}},t.prototype.add=function(t){if(this.anchorIsContainer?t.appendNodesTo(this.anchor):t.insertNodesBefore(this.anchor),this.children.push(t),this.isAttached)return t.attached(),this.animateView(t,"enter")},t.prototype.insert=function(t,e){var i=this.children,n=i.length;return 0===t&&0===n||t>=n?this.add(e):(e.insertNodesBefore(i[t].firstChild),i.splice(t,0,e),this.isAttached?(e.attached(),this.animateView(e,"enter")):void 0)},t.prototype.move=function(t,e){if(t!==e){var i=this.children,n=i[t];n.removeNodes(),n.insertNodesBefore(i[e].firstChild),i.splice(t,1),i.splice(e,0,n)}},t.prototype.remove=function(t,e,i){return this.removeAt(this.children.indexOf(t),e,i)},t.prototype.removeMany=function(t,e,i){var n,r=this,o=this.children,a=t.length,s=[];t.forEach((function(t){if(i)t.removeNodes();else{var e=r.animateView(t,"leave");e?s.push(e.then((function(){return t.removeNodes()}))):t.removeNodes()}}));var u=function(){if(r.isAttached)for(n=0;n<a;++n)t[n].detached();if(e)for(n=0;n<a;++n)t[n].returnToCache();for(n=0;n<a;++n){var i=o.indexOf(t[n]);i>=0&&o.splice(i,1)}};return s.length>0?Promise.all(s).then((function(){return u()})):u()},t.prototype.removeAt=function(t,e,i){var n=this,r=this.children[t],o=function(){return t=n.children.indexOf(r),r.removeNodes(),n.children.splice(t,1),n.isAttached&&r.detached(),e&&r.returnToCache(),r};if(!i){var a=this.animateView(r,"leave");if(a)return a.then((function(){return o()}))}return o()},t.prototype.removeAll=function(t,e){var i,n=this,r=this.children,o=r.length,a=[];r.forEach((function(t){if(e)t.removeNodes();else{var i=n.animateView(t,"leave");i?a.push(i.then((function(){return t.removeNodes()}))):t.removeNodes()}}));var s=function(){if(n.isAttached)for(i=0;i<o;++i)r[i].detached();if(t)for(i=0;i<o;++i){var e=r[i];e&&e.returnToCache()}n.children=[]};return a.length>0?Promise.all(a).then((function(){return s()})):s()},t.prototype.attached=function(){var t,e,i,n;if(!this.isAttached)for(this.isAttached=!0,t=0,e=(i=this.children).length;t<e;++t)(n=i[t]).attached(),this.animateView(n,"enter")},t.prototype.detached=function(){var t,e,i;if(this.isAttached)for(this.isAttached=!1,t=0,e=(i=this.children).length;t<e;++t)i[t].detached()},t.prototype.projectTo=function(t){var e=this;this.projectToSlots=t,this.add=this._projectionAdd,this.insert=this._projectionInsert,this.move=this._projectionMove,this.remove=this._projectionRemove,this.removeAt=this._projectionRemoveAt,this.removeMany=this._projectionRemoveMany,this.removeAll=this._projectionRemoveAll,this.children.forEach((function(i){return R.distributeView(i,t,e)}))},t.prototype._projectionAdd=function(t){R.distributeView(t,this.projectToSlots,this),this.children.push(t),this.isAttached&&t.attached()},t.prototype._projectionInsert=function(t,e){0===t&&!this.children.length||t>=this.children.length?this.add(e):(R.distributeView(e,this.projectToSlots,this,t),this.children.splice(t,0,e),this.isAttached&&e.attached())},t.prototype._projectionMove=function(t,e){if(t!==e){var i=this.children,n=i[t];R.undistributeView(n,this.projectToSlots,this),R.distributeView(n,this.projectToSlots,this,e),i.splice(t,1),i.splice(e,0,n)}},t.prototype._projectionRemove=function(t,e){R.undistributeView(t,this.projectToSlots,this),this.children.splice(this.children.indexOf(t),1),this.isAttached&&t.detached(),e&&t.returnToCache()},t.prototype._projectionRemoveAt=function(t,e){var i=this.children[t];R.undistributeView(i,this.projectToSlots,this),this.children.splice(t,1),this.isAttached&&i.detached(),e&&i.returnToCache()},t.prototype._projectionRemoveMany=function(t,e){var i=this;t.forEach((function(t){return i.remove(t,e)}))},t.prototype._projectionRemoveAll=function(t){R.undistributeAll(this.projectToSlots,this);for(var e=this.children,i=e.length,n=0;n<i;++n)t?e[n].returnToCache():this.isAttached&&e[n].detached();this.children=[]},t}(),F=h.d,V=new(function(){function t(){}return t.prototype.get=function(t,e){var i=e.__providerId__;return i in t?t[i]:t[i]=t.invoke(e)},t=y([F],t)}());function U(t){if(t===n.b.Element)return this.element;if(t===K){if(this.boundViewFactory)return this.boundViewFactory;var e=this.instruction.viewFactory,i=this.partReplacements;return i&&(e=i[e.part]||e),this.boundViewFactory=new K(this,e,i),this.boundViewFactory}return t===H?(void 0===this.viewSlot&&(this.viewSlot=new H(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):t===c?this.elementEvents||(this.elementEvents=new c(this.element)):t===B?this.compositionTransaction||(this.compositionTransaction=this.parent.get(t)):t===yt?this.viewResources:t===b?this.instruction:this.superGet(t)}function G(t){return this._element.hasAttribute(t)}function q(t){return this._element.getAttribute(t)}function W(t,e){this._element.setAttribute(t,e)}function Z(t,e,i,r,o,a,s,u,h){var l,c,d,f,p,m=i.behaviorInstructions,g=i.expressions;if(i.contentExpression)return o.push(i.contentExpression.createBinding(e.nextSibling)),e.nextSibling.auInterpolationTarget=!0,void e.parentNode.removeChild(e);if(i.shadowSlot){var b=n.b.createComment("slot"),v=void 0;return v=i.slotDestination?new I(b,i.slotName,i.slotDestination,i.slotFallbackFactory):new j(b,i.slotName,i.slotFallbackFactory),n.b.replaceNode(b,e),s[i.slotName]=v,void r.push(v)}if(i.letElement){for(c=0,d=g.length;c<d;++c)o.push(g[c].createBinding());e.parentNode.removeChild(e)}else{if(m.length)for(i.anchorIsContainer||(e=function(t,e){var i=n.b.createComment("anchor");if(e){var r=t.firstChild;r&&"AU-CONTENT"===r.tagName&&(i.contentElement=r),i._element=t,i.hasAttribute=G,i.getAttribute=q,i.setAttribute=W}return n.b.replaceNode(i,t),i}(e,i.elementInstruction)),t[i.injectorId]=l=function(t,e,i,n,r,o){var a,s,u=t.createChild();for(u.element=e,u.instruction=i,u.children=n,u.viewResources=o,u.partReplacements=r,s=(a=i.providers).length;s--;)u._resolvers.set(a[s],V);return u.superGet=u.get,u.get=U,u}(t[i.parentInjectorId],e,i,a,u,h),c=0,d=m.length;c<d;++c)p=(f=m[c]).type.create(l,f,e,o),r.push(p);for(c=0,d=g.length;c<d;++c)o.push(g[c].createBinding(e))}}function Y(t,e){var i,n,r,o,a,s=t.split(";");for(e=e||{},n=0;n<s.length;n++)i=(r=s[n]).indexOf(":"),o=r.substring(0,i).trim(),a=r.substring(i+1).trim(),e[o]=a;return e}function $(t){var e="";for(var i in t)e+=i+":"+t[i]+";";return e}var K=function(){function t(t,e,i){this.parentContainer=t,this.viewFactory=e,this.factoryCreateInstruction={partReplacements:i}}return t.prototype.create=function(){var t=this.viewFactory.create(this.parentContainer.createChild(),this.factoryCreateInstruction);return t._isUserControlled=!0,t},Object.defineProperty(t.prototype,"isCaching",{get:function(){return this.viewFactory.isCaching},enumerable:!1,configurable:!0}),t.prototype.setCacheSize=function(t,e){this.viewFactory.setCacheSize(t,e)},t.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},t.prototype.returnViewToCache=function(t){this.viewFactory.returnViewToCache(t)},t}(),X=function(){function t(t,e,i){this.isCaching=!1,this.template=t,this.instructions=e,this.resources=i,this.cacheSize=-1,this.cache=null}return t.prototype.setCacheSize=function(t,e){t&&("*"===t?t=Number.MAX_VALUE:"string"==typeof t&&(t=parseInt(t,10))),-1!==this.cacheSize&&e||(this.cacheSize=Number(t)),this.cacheSize>0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},t.prototype.getCachedView=function(){return null!==this.cache&&this.cache.pop()||null},t.prototype.returnViewToCache=function(t){t.isAttached&&t.detached(),t.isBound&&t.unbind(),null!==this.cache&&this.cache.length<this.cacheSize&&(t.fromCache=!0,this.cache.push(t))},t.prototype.create=function(t,e,i){e=e||m.normal;var n=this.getCachedView();if(null!==n)return n;var r,o,a,s,u,h=e.enhance?this.template:this.template.cloneNode(!0),l=h.querySelectorAll(".au-target"),c=this.instructions,d=this.resources,f=[],p=[],g=[],b=Object.create(null),v={root:t},y=e.partReplacements;for(this.resources._invokeHook("beforeCreate",this,t,h,e),i&&null!==this.surrogateInstruction&&function(t,e,i,n,r,o){var a,s,u,h,l,c=i.behaviorInstructions,d=i.expressions,f=i.providers,p=i.values;for(a=f.length;a--;)t._resolvers.set(f[a],V);for(var m in p)if(l=e.getAttribute(m)){if("class"===m)e.setAttribute("class",l+" "+p[m]);else if("style"===m){var g=Y(p[m]);Y(l,g),e.setAttribute("style",$(g))}}else e.setAttribute(m,p[m]);if(c.length)for(a=0,s=c.length;a<s;++a)(h=(u=c[a]).type.create(t,u,e,r)).contentView&&o.push(h.contentView),n.push(h);for(a=0,s=d.length;a<s;++a)r.push(d[a].createBinding(e))}(t,i,this.surrogateInstruction,f,p,g),e.enhance&&h.hasAttribute("au-target-id")&&(u=c[(s=h).getAttribute("au-target-id")],Z(v,s,u,f,p,g,b,y,d)),r=0,o=l.length;r<o;++r)u=c[(s=l[r]).getAttribute("au-target-id")],Z(v,s,u,f,p,g,b,y,d);return a=new N(t,this,h,f,p,g,b),e.initiatedByBehavior||a.created(),this.resources._invokeHook("afterCreate",a),a},t}(),Q=0;var J=0;function tt(t){var e=t.getAttribute("class"),i=(++J).toString();return t.setAttribute("class",e?e+" au-target":"au-target"),t.setAttribute("au-target-id",i),i}var et=k.prototype.createLetExpressions,it=function(){function t(t,e){this.bindingLanguage=t,this.resources=e}return t.inject=function(){return[k,yt]},t.prototype.compile=function(t,e,i){var r,o,a;e=e||this.resources,i=i||p.normal,(t="string"==typeof t?n.b.createTemplateFromMarkup(t):t).content?(o=t.getAttribute("part"),a=t.getAttribute("view-cache"),r=n.b.adoptNode(t.content)):r=t,i.targetShadowDOM=i.targetShadowDOM&&n.c.shadowDOM,e._invokeHook("beforeCompile",r,e,i);var s={};this._compileNode(r,e,s,t,"root",!i.targetShadowDOM);var u=r.firstChild;if(u&&1===u.nodeType){var h=u.getAttribute("au-target-id");if(h){var l=s[h];(l.shadowSlot||l.lifting||l.elementInstruction&&!l.elementInstruction.anchorIsContainer)&&r.insertBefore(n.b.createComment("view"),u)}}var c=new X(r,s,e);return c.surrogateInstruction=i.compileSurrogate?this._compileSurrogate(t,e):null,c.part=o,a&&c.setCacheSize(a),e._invokeHook("afterCompile",c),c},t.prototype._compileNode=function(t,e,i,r,o,a){switch(t.nodeType){case 1:return this._compileElement(t,e,i,r,o,a);case 3:var s=e.getBindingLanguage(this.bindingLanguage).inspectTextContent(e,t.wholeText);if(s){var u=n.b.createElement("au-marker"),h=tt(u);for((t.parentNode||r).insertBefore(u,t),t.textContent=" ",i[h]=b.contentExpression(s);t.nextSibling&&3===t.nextSibling.nodeType;)(t.parentNode||r).removeChild(t.nextSibling)}else for(;t.nextSibling&&3===t.nextSibling.nodeType;)t=t.nextSibling;return t.nextSibling;case 11:for(var l=t.firstChild;l;)l=this._compileNode(l,e,i,t,o,a)}return t.nextSibling},t.prototype._compileSurrogate=function(t,e){var i,n,r,o,a,s,u,h,l,c,d,f=t.tagName.toLowerCase(),p=t.attributes,g=e.getBindingLanguage(this.bindingLanguage),v=[],y=[],w={},_=!1,M=[];for(o=0,a=p.length;o<a;++o){if(u=(s=p[o]).name,h=s.value,l=g.inspectAttribute(e,f,u,h),(c=e.getAttribute(l.attrName))&&(i=e.mapAttribute(l.attrName))&&(n=c.attributes[i])&&(l.defaultBindingMode=n.defaultBindingMode,l.command||l.expression||(l.command=n.hasOptions?"options":null),l.command&&"options"!==l.command&&c.primaryProperty)){var x=c.primaryProperty;u=l.attrName=x.attribute,l.defaultBindingMode=x.defaultBindingMode}if(r=g.createAttributeInstruction(e,t,l,void 0,c))if(r.alteredAttr&&(c=e.getAttribute(r.attrName)),r.discrete)v.push(r);else if(c){if(r.type=c,this._configureProperties(r,e),c.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");y.push(r)}else v.push(r.attributes[r.attrName]);else if(c){if((r=m.attribute(u,c)).attributes[e.mapAttribute(u)]=h,c.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");y.push(r)}else"id"!==u&&"part"!==u&&"replace-part"!==u&&(_=!0,w[u]=h)}if(v.length||y.length||_){for(o=0,a=y.length;o<a;++o)(r=y[o]).type.compile(this,e,t,r),M.push(r.type.target);for(o=0,a=v.length;o<a;++o)void 0!==(d=v[o]).attrToRemove&&t.removeAttribute(d.attrToRemove);return b.surrogate(M,y,v,w)}return null},t.prototype._compileElement=function(t,e,i,r,o,a){var s,u,h,l,c,d,f,p,g,v,y,w,_,M,x,S,T,A=t.tagName.toLowerCase(),C=t.attributes,E=[],k=[],O=[],P=e.getBindingLanguage(this.bindingLanguage);if("slot"===A)return a&&(t=function(t,e,i,r,o){var a=n.b.createElement("au-shadow-slot");n.b.replaceNode(a,i);var s=tt(a),u=b.shadowSlot(o);if(u.slotName=i.getAttribute("name")||R.defaultSlotKey,u.slotDestination=i.getAttribute("slot"),i.innerHTML.trim()){for(var h=n.b.createDocumentFragment(),l=void 0;l=i.firstChild;)h.appendChild(l);u.slotFallbackFactory=t.compile(h,e)}return r[s]=u,a}(this,e,t,i,o)),t.nextSibling;if("template"===A){if(!("content"in t))throw new Error("You cannot place a template element within "+t.namespaceURI+" namespace");(h=this.compile(t,e)).part=t.getAttribute("part")}else{if(l=e.getElement(t.getAttribute("as-element")||A),"let"===A&&!l&&P.createLetExpressions!==et)return E=P.createLetExpressions(e,t),i[tt(t)]=b.letElement(E),t.nextSibling;l&&(c=m.element(t,l),l.processAttributes(this,e,t,C,c),k.push(c))}for(f=0,p=C.length;f<p;++f){if(w=v=(g=C[f]).name,y=g.value,M=P.inspectAttribute(e,A,v,y),a&&"slot"===M.attrName&&(M.attrName=v="au-slot"),d=null,l=e.getAttribute(M.attrName)){if((S=e.mapAttribute(M.attrName))&&(x=l.attributes[S])&&(M.defaultBindingMode=x.defaultBindingMode,M.command||M.expression||(M.command=x.hasOptions?"options":null),M.command&&"options"!==M.command&&l.primaryProperty)){var I=l.primaryProperty;v=M.attrName=I.attribute,M.defaultBindingMode=I.defaultBindingMode}}else c&&(d=c.type.attributes[M.attrName])&&(M.defaultBindingMode=d.defaultBindingMode);if(_=d?P.createAttributeInstruction(e,t,M,c):P.createAttributeInstruction(e,t,M,void 0,l))if(_.alteredAttr&&(l=e.getAttribute(_.attrName)),_.discrete)E.push(_);else if(l){if(_.type=l,this._configureProperties(_,e),l.liftsContent){_.originalAttrName=w,u=_;break}k.push(_)}else d?c.attributes[M.attrName].targetProperty=d.name:E.push(_.attributes[_.attrName]);else if(l){if((_=m.attribute(v,l)).attributes[e.mapAttribute(v)]=y,l.liftsContent){_.originalAttrName=w,u=_;break}k.push(_)}else d&&(c.attributes[v]=y)}if(u)u.viewFactory=h,i[tt(t=u.type.compile(this,e,t,u,r))]=b.lifting(o,u);else{var j=!1;if(E.length||k.length){for(T=!!k.length&&++Q,f=0,p=k.length;f<p;++f)(_=k[f]).type.compile(this,e,t,_,r),O.push(_.type.target),j=j||_.skipContentProcessing;for(f=0,p=E.length;f<p;++f)void 0!==(s=E[f]).attrToRemove&&t.removeAttribute(s.attrToRemove);i[tt(t)]=b.normal(T,o,O,k,E,c)}if(j)return t.nextSibling;for(var D=t.firstChild;D;)D=this._compileNode(D,e,i,t,T||o,a)}return t.nextSibling},t.prototype._configureProperties=function(t,e){var i,n,r,o=t.type,a=t.attrName,s=t.attributes,u=e.mapAttribute(a);for(n in u&&a in s&&u!==a&&(s[u]=s[a],delete s[a]),s)null!==(r=s[n])&&"object"==typeof r&&(i=o.attributes[n],r.targetProperty=void 0!==i?i.name:n)},t}(),nt=function(){function t(){}return t.prototype.initialize=function(t,e){this.instance=t.get(e)},t.prototype.register=function(t,e){t.registerViewEngineHooks(this.instance)},t.prototype.load=function(t,e){},t.convention=function(e){if(e.endsWith("ViewEngineHooks"))return new t},t}();var rt=function(){function t(t){this.id=t,this.moduleInstance=null,this.mainResource=null,this.resources=null,this.viewStrategy=null,this.isInitialized=!1,this.onLoaded=null,this.loadContext=null}return t.prototype.initialize=function(t){var e=this.mainResource,i=this.resources,n=this.viewStrategy;if(!this.isInitialized){this.isInitialized=!0,void 0!==e&&(e.metadata.viewStrategy=n,e.initialize(t));for(var r=0,o=i.length;r<o;++r)(e=i[r]).metadata.viewStrategy=n,e.initialize(t)}},t.prototype.register=function(t,e){var i=this.mainResource,n=this.resources;void 0!==i&&(i.register(t,e),e=null);for(var r=0,o=n.length;r<o;++r)n[r].register(t,e),e=null},t.prototype.load=function(t,e){if(null!==this.onLoaded)return this.loadContext===e?Promise.resolve():this.onLoaded;var i,n=this.mainResource,r=this.resources;if(void 0!==n){(i=new Array(r.length+1))[0]=n.load(t,e);for(var o=0,a=r.length;o<a;++o)i[o+1]=r[o].load(t,e)}else{i=new Array(r.length);for(o=0,a=r.length;o<a;++o)i[o]=r[o].load(t,e)}return this.loadContext=e,this.onLoaded=Promise.all(i),this.onLoaded},t}(),ot=function(){function t(t,e,i){i||(i=o.b.get(o.b.resource,e))||((i=new mt).elementName=M(t),o.b.define(o.b.resource,i,e)),i instanceof mt?void 0===i.elementName?i.elementName=M(t):void 0===i.attributeName?i.attributeName=M(t):null===i.attributeName&&null===i.elementName&&mt.convention(t,i):i.name||(i.name=M(t)),this.metadata=i,this.value=e}return t.prototype.initialize=function(t){this.metadata.initialize(t,this.value)},t.prototype.register=function(t,e){this.metadata.register(t,e)},t.prototype.load=function(t,e){return this.metadata.load(t,this.value,e)},t}(),at=function(){function t(){this.cache=Object.create(null)}return t.prototype.getAnalysis=function(t){return this.cache[t]},t.prototype.analyze=function(t,e,i){var n,a,s,h,l,c,d,f,p,m=[];if(p=this.cache[t])return p;for(l in p=new rt(t),this.cache[t]=p,"function"==typeof e&&(e={default:e}),i&&(n=new ot(i,e[i])),e)c=e[l],l!==i&&"function"==typeof c&&((h=o.b.get(o.b.resource,c))?(h instanceof mt&&(yt.convention(c,h),null===h.attributeName&&null===h.elementName&&mt.convention(l,h),null===h.attributeName&&null===h.elementName&&(h.elementName=M(l))),!n&&h instanceof mt&&null!==h.elementName?n=new ot(l,c,h):m.push(new ot(l,c,h))):wt.decorates(c)?f=c:c instanceof r.b?f=new St(t,c):(d=yt.convention(c))||(d=mt.convention(l))?(null===d.elementName||n?m.push(new ot(l,c,d)):n=new ot(l,c,d),o.b.define(o.b.resource,d,c)):(d=u.p.convention(l)||u.b.convention(l)||nt.convention(l))?(m.push(new ot(l,c,d)),o.b.define(o.b.resource,d,c)):a||(a=c,s=l));return!n&&a&&(n=new ot(s,a)),p.moduleInstance=e,p.mainResource=n,p.resources=m,p.viewStrategy=f,p},t}(),st=s.getLogger("templating");var ut=function(){function t(t){var e=this;t.then((function(t){return e.viewFactory=t}))}return t.prototype.create=function(t,e,i,n){return this.viewFactory.create(t,e,i,n)},Object.defineProperty(t.prototype,"isCaching",{get:function(){return this.viewFactory.isCaching},enumerable:!1,configurable:!0}),t.prototype.setCacheSize=function(t,e){this.viewFactory.setCacheSize(t,e)},t.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},t.prototype.returnViewToCache=function(t){this.viewFactory.returnViewToCache(t)},t}(),ht=null,lt=function(){function t(t,e,i,n,r){this.loader=t,this.container=e,this.viewCompiler=i,this.moduleAnalyzer=n,this.appResources=r,this._pluginMap={},null===ht&&((ht=new mt).attributeName="au-slot",o.b.define(o.b.resource,ht,P)),ht.initialize(e,P),ht.register(r)}return t.inject=function(){return[r.a,h.a,it,at,yt]},t.prototype.addResourcePlugin=function(t,e){var i=t.replace(".","")+"-resource-plugin";this._pluginMap[t]=i,this.loader.addPlugin(i,e)},t.prototype.loadViewFactory=function(t,e,i,n){var o=this;return i=i||new f,function(t,e){return e instanceof r.b?Promise.resolve(e):t.loadTemplate(e)}(this.loader,t).then((function(t){var r=t.address;return t.onReady?i.hasDependency(r)?null===t.template?t.onReady:Promise.resolve(new ut(t.onReady)):(i.addDependency(r),t.onReady):(i.addDependency(r),t.onReady=o.loadTemplateResources(t,e,i,n).then((function(i){if(t.resources=i,null===t.template)return t.factory=null;var n=o.viewCompiler.compile(t.template,i,e);return t.factory=n})),t.onReady)}))},t.prototype.loadTemplateResources=function(e,i,n,r){var s,u,h=new yt(this.appResources,e.address),l=e.dependencies;if(i=i||p.normal,0===l.length&&!i.associatedModuleId)return Promise.resolve(h);if(s=l.map((function(t){return t.src})),u=l.map((function(t){return t.name})),st.debug("importing resources for ".concat(e.address),s),r){var c=o.b.get(t.viewModelRequireMetadataKey,r);if(c){for(var d=s.length,f=0,m=c.length;f<m;++f){var g=c[f],b="function"==typeof g?o.a.get(g).moduleId:Object(a.d)(g.src||g,e.address);-1===s.indexOf(b)&&(s.push(b),u.push(g.as))}st.debug("importing ViewModel resources for ".concat(i.associatedModuleId),s.slice(d))}}return this.importViewResources(s,u,h,i,n)},t.prototype.importViewModelResource=function(t,e){var i=this;return this.loader.loadModule(t).then((function(n){var r=o.a.get(n).moduleId,a=i.moduleAnalyzer.analyze(r,n,e);if(!a.mainResource)throw new Error('No view model found in module "'.concat(t,'".'));return a.initialize(i.container),a.mainResource}))},t.prototype.importViewResources=function(t,e,i,n,r){var a=this;return r=r||new f,n=n||p.normal,t=t.map((function(t){return a._applyLoaderPlugin(t)})),this.loader.loadAllModules(t).then((function(t){var s,u,h,l,c,d,f=a.container,p=a.moduleAnalyzer,m=new Array(t.length);for(s=0,u=t.length;s<u;++s)c=t[s],l=o.a.get(c).moduleId,(h=p.analyze(l,c)).initialize(f),h.register(i,e[s]),m[s]=h;for(n.associatedModuleId&&(d=p.getAnalysis(n.associatedModuleId))&&d.register(i),s=0,u=m.length;s<u;++s)m[s]=m[s].load(f,r);return Promise.all(m).then((function(){return i}))}))},t.prototype._applyLoaderPlugin=function(t){var e=t.lastIndexOf(".");if(-1!==e){var i=t.substring(e),n=this._pluginMap[i];return void 0===n?t:this.loader.applyPluginToUrl(t,n)}return t},t.viewModelRequireMetadataKey="aurelia:view-model-require",t}(),ct=function(){function t(t,e,i,n){this.behavior=t,this.instruction=e,this.viewModel=i,this.isAttached=!1,this.view=null,this.isBound=!1,this.scope=null,this.container=n,this.elementEvents=n.elementEvents||null;var r,o,a=t.observerLocator.getOrCreateObserversLookup(i),s=t.handlesBind,u=e.attributes,h=this.boundProperties=[],l=t.properties;for(t._ensurePropertiesDefined(i,a),r=0,o=l.length;r<o;++r)l[r]._initialize(i,a,u,s,h)}return t.prototype.created=function(t){this.behavior.handlesCreated&&this.viewModel.created(t,this.view)},t.prototype.automate=function(t,e){this.view.bindingContext=this.viewModel,this.view.overrideContext=t||Object(u.v)(this.viewModel),this.view._isUserControlled=!0,this.behavior.handlesCreated&&this.viewModel.created(e||null,this.view),this.bind(this.view)},t.prototype.bind=function(t){var e,i,n,r,o,a,s=this.behavior.handlesBind,h=this.boundProperties;if(this.isBound){if(this.scope===t)return;this.unbind()}for(this.isBound=!0,this.scope=t,e=0,i=h.length;e<i;++e)o=(r=(n=h[e]).observer).selfSubscriber,r.publishing=!1,s&&(r.selfSubscriber=null),n.binding.bind(t),r.call(),r.publishing=!0,r.selfSubscriber=o;null!==this.view?(s&&(this.view.viewModelScope=t),this.viewModel===t.overrideContext.bindingContext?a=t.overrideContext:this.instruction.inheritBindingContext?a=Object(u.v)(this.viewModel,t.overrideContext):(a=Object(u.v)(this.viewModel)).__parentOverrideContext=t.overrideContext,this.view.bind(this.viewModel,a)):s&&(a=t.overrideContext,void 0!==t.overrideContext.__parentOverrideContext&&this.viewModel.viewFactory&&this.viewModel.viewFactory.factoryCreateInstruction.partReplacements&&((a=Object.assign({},t.overrideContext)).parentOverrideContext=t.overrideContext.__parentOverrideContext),this.viewModel.bind(t.bindingContext,a))},t.prototype.unbind=function(){if(this.isBound){var t,e=this.boundProperties,i=void 0;for(this.isBound=!1,this.scope=null,null!==this.view&&this.view.unbind(),this.behavior.handlesUnbind&&this.viewModel.unbind(),null!==this.elementEvents&&this.elementEvents.disposeAll(),i=0,t=e.length;i<t;++i)e[i].binding.unbind()}},t.prototype.attached=function(){this.isAttached||(this.isAttached=!0,this.behavior.handlesAttached&&this.viewModel.attached(),null!==this.view&&this.view.attached())},t.prototype.detached=function(){this.isAttached&&(this.isAttached=!1,null!==this.view&&this.view.detached(),this.behavior.handlesDetached&&this.viewModel.detached())},t}(),dt=0;function ft(){return!0}function pt(){}var mt=function(){function t(){this.elementName=null,this.attributeName=null,this.attributeDefaultBindingMode=void 0,this.liftsContent=!1,this.targetShadowDOM=!1,this.shadowDOMOptions=null,this.processAttributes=pt,this.processContent=ft,this.usesShadowDOM=!1,this.childBindings=null,this.hasDynamicOptions=!1,this.containerless=!1,this.properties=[],this.attributes={},this.isInitialized=!1,this.primaryProperty=null}return t.convention=function(e,i){var n;return e.endsWith("CustomAttribute")&&((n=i||new t).attributeName=M(e.substring(0,e.length-15))),e.endsWith("CustomElement")&&((n=i||new t).elementName=M(e.substring(0,e.length-13))),n},t.prototype.addChildBinding=function(t){null===this.childBindings&&(this.childBindings=[]),this.childBindings.push(t)},t.prototype.initialize=function(t,e){var i,r,o,a=e.prototype,s=this.properties,h=this.attributeName,c=this.attributeDefaultBindingMode;if(!this.isInitialized)if(this.isInitialized=!0,e.__providerId__=++dt,this.observerLocator=t.get(u.l),this.taskQueue=t.get(l.a),this.target=e,this.usesShadowDOM=this.targetShadowDOM&&n.c.shadowDOM,this.handlesCreated="created"in a,this.handlesBind="bind"in a,this.handlesUnbind="unbind"in a,this.handlesAttached="attached"in a,this.handlesDetached="detached"in a,this.htmlName=this.elementName||this.attributeName,null!==h)if(0===s.length&&new A({name:"value",changeHandler:"valueChanged"in a?"valueChanged":null,attribute:h,defaultBindingMode:c}).registerWith(e,this),o=s[0],1===s.length&&"value"===o.name)o.isDynamic=o.hasOptions=this.hasDynamicOptions,o.defineOn(e,this);else{for(i=0,r=s.length;i<r;++i)if(s[i].defineOn(e,this),s[i].primaryProperty){if(this.primaryProperty)throw new Error("Only one bindable property on a custom element can be defined as the default");this.primaryProperty=s[i]}(o=new A({name:"value",changeHandler:"valueChanged"in a?"valueChanged":null,attribute:h,defaultBindingMode:c})).hasOptions=!0,o.registerWith(e,this)}else{for(i=0,r=s.length;i<r;++i)s[i].defineOn(e,this);this._copyInheritedProperties(t,e)}},t.prototype.register=function(t,e){var i=this;null!==this.attributeName&&(t.registerAttribute(e||this.attributeName,this,this.attributeName),Array.isArray(this.aliases)&&this.aliases.forEach((function(e){t.registerAttribute(e,i,i.attributeName)}))),null!==this.elementName&&t.registerElement(e||this.elementName,this)},t.prototype.aliases=function(t){throw new Error("Method not implemented.")},t.prototype.load=function(t,e,i,n,r){var a,s=this;return null!==this.elementName?(n=t.get(C).getViewStrategy(n||this.viewStrategy||e),a=new p(this.targetShadowDOM,!0),n.moduleId||(n.moduleId=o.a.get(e).moduleId),n.loadViewFactory(t.get(lt),a,i,e).then((function(t){return r&&s.viewFactory||(s.viewFactory=t),t}))):Promise.resolve(this)},t.prototype.compile=function(t,e,i,r,o){if(this.liftsContent){if(!r.viewFactory){var a=n.b.createElement("template"),s=n.b.createDocumentFragment(),u=i.getAttribute("view-cache"),h=i.getAttribute("part");i.removeAttribute(r.originalAttrName),n.b.replaceNode(a,i,o),s.appendChild(i),r.viewFactory=t.compile(s,e),h&&(r.viewFactory.part=h,i.removeAttribute("part")),u&&(r.viewFactory.setCacheSize(u),i.removeAttribute("view-cache")),i=a}}else if(null!==this.elementName){var l={};if(this.processContent(t,e,i,r)&&i.hasChildNodes()){for(var c=i.firstChild,d=this.usesShadowDOM?null:n.b.createElement("au-content"),f=void 0,p=void 0;c;)f=c.nextSibling,"TEMPLATE"===c.tagName&&(p=c.getAttribute("replace-part"))?(l[p]=t.compile(c,e),n.b.removeNode(c,o),r.partReplacements=l):null!==d&&(3===c.nodeType&&x(c)?n.b.removeNode(c,o):d.appendChild(c)),c=f;null!==d&&d.hasChildNodes()&&i.appendChild(d),r.skipContentProcessing=!1}else r.skipContentProcessing=!0}else this.processContent(t,e,i,r)||(r.skipContentProcessing=!0);return i},t.prototype.create=function(t,e,i,r){var o,a=null;e=e||m.normal,i=i||null,r=r||null,null!==this.elementName&&i&&(this.usesShadowDOM?(o=i.attachShadow(this.shadowDOMOptions),t.registerInstance(n.b.boundary,o)):(o=i,this.targetShadowDOM&&t.registerInstance(n.b.boundary,o))),null!==i&&(i.au=a=i.au||{});var s,u=e.viewModel||t.get(this.target),h=new ct(this,e,u,t),l=this.childBindings;if(this.liftsContent)a.controller=h;else if(null!==this.elementName){if(s=e.viewFactory||this.viewFactory,t.viewModel=u,s&&(h.view=s.create(t,e,i)),null!==i){if(a.controller=h,h.view){if(!this.usesShadowDOM&&(1===i.childNodes.length||i.contentElement)){var c=i.childNodes[0]||i.contentElement;h.view.contentView={fragment:c},c.parentNode&&n.b.removeNode(c)}if(e.anchorIsContainer){if(null!==l)for(var d=0,f=l.length;d<f;++d)h.view.addBinding(l[d].create(i,u,h));h.view.appendNodesTo(o)}else h.view.insertNodesBefore(o)}else if(null!==l)for(d=0,f=l.length;d<f;++d)r.push(l[d].create(i,u,h))}else if(h.view){if(h.view.controller=h,null!==l)for(d=0,f=l.length;d<f;++d)h.view.addBinding(l[d].create(e.host,u,h))}else if(null!==l)for(d=0,f=l.length;d<f;++d)r.push(l[d].create(e.host,u,h))}else if(null!==l)for(d=0,f=l.length;d<f;++d)r.push(l[d].create(i,u,h));return null!==a&&(a[this.htmlName]=h),e.initiatedByBehavior&&s&&h.view.created(),h},t.prototype._ensurePropertiesDefined=function(t,e){var i,n,r,o;if(!("__propertiesDefined__"in e))for(e.__propertiesDefined__=!0,n=0,r=(i=this.properties).length;n<r;++n)void 0!==(o=i[n].createObserver(t))&&(e[o.propertyName]=o)},t.prototype._copyInheritedProperties=function(t,e){for(var i,n=e;;){var r=Object.getPrototypeOf(e.prototype);if(!(e=r&&r.constructor))return;if(i=o.b.getOwn(o.b.resource,e))break}i.initialize(t,e);for(var a=function(t,e){var r=i.properties[t];if(s.properties.some((function(t){return t.name===r.name})))return"continue";new A(r).registerWith(n,s)},s=this,u=0,h=i.properties.length;u<h;++u)a(u)},t}();function gt(t,e,i,n){if(e){var r=t[e];if(r){if(r!==i)throw new Error("Attempted to register ".concat(n," when one with the same name already exists. Name: ").concat(e,"."))}else t[e]=i}}function bt(t,e){if(/[A-Z]/.test(t)){var i=M(t);return s.getLogger("templating").warn("'".concat(t,"' is not a valid ").concat(e," name and has been converted to '").concat(i,"'. Upper-case letters are not allowed because the DOM is not case-sensitive.")),i}return t}var vt="__au_resource__",yt=function(){function t(t,e){this.bindingLanguage=null,this.parent=t||null,this.hasParent=null!==this.parent,this.viewUrl=e||"",this.lookupFunctions={valueConverters:this.getValueConverter.bind(this),bindingBehaviors:this.getBindingBehavior.bind(this)},this.attributes=Object.create(null),this.elements=Object.create(null),this.valueConverters=Object.create(null),this.bindingBehaviors=Object.create(null),this.attributeMap=Object.create(null),this.values=Object.create(null),this.beforeCompile=this.afterCompile=this.beforeCreate=this.afterCreate=this.beforeBind=this.beforeUnbind=!1}return t.convention=function(t,e){var i;if(e&&vt in e)return e;if("$resource"in t){var n=t.$resource;if("string"==typeof n)(i=e||new mt).__au_resource__=!0,i.elementName||(i.elementName=bt(n,"custom element"));else{"function"==typeof n&&(n=n.call(t)),"string"==typeof n&&(n={name:n});var r=(n=Object.assign({},n)).type||"element",o=n.name;switch(r){case"element":case"attribute":(i=e||new mt).__au_resource__=!0,"element"===r?i.elementName||(i.elementName=o?bt(o,"custom element"):M(t.name)):i.attributeName||(i.attributeName=o?bt(o,"custom attribute"):M(t.name)),"templateController"in n&&(n.liftsContent=n.templateController,delete n.templateController),"defaultBindingMode"in n&&void 0!==i.attributeDefaultBindingMode&&(n.attributeDefaultBindingMode=n.defaultBindingMode,delete n.defaultBindingMode),delete n.name,Object.assign(i,n);break;case"valueConverter":i=new u.p(Object(u.s)(o||t.name));break;case"bindingBehavior":i=new u.b(Object(u.s)(o||t.name));break;case"viewEngineHooks":i=new nt}}if(i instanceof mt){var a="string"==typeof n?void 0:n.bindables,s=i.properties;if(Array.isArray(a))for(var h=0,l=a.length;l>h;++h){var c=a[h];if(!c||"string"!=typeof c&&!c.name)throw new Error('Invalid bindable property at "'.concat(h,'" for class "').concat(t.name,'". Expected either a string or an object with "name" property.'));for(var d=new A(c),f=!1,p=0,m=s.length;m>p;++p)if(s[p].name===d.name){f=!0;break}f||d.registerWith(t,i)}}}return i},t.prototype._tryAddHook=function(t,e){if("function"==typeof t[e]){for(var i=t[e].bind(t),n=1,r=void 0;void 0!==this[r=e+n.toString()];)n++;this[e]=!0,this[r]=i}},t.prototype._invokeHook=function(t,e,i,n,r){if(this.hasParent&&this.parent._invokeHook(t,e,i,n,r),this[t]){this[t+"1"](e,i,n,r);var o=t+"2";if(this[o]&&(this[o](e,i,n,r),this[o=t+"3"])){this[o](e,i,n,r);for(var a=4;void 0!==this[o=t+a.toString()];)this[o](e,i,n,r),a++}}},t.prototype.registerViewEngineHooks=function(t){this._tryAddHook(t,"beforeCompile"),this._tryAddHook(t,"afterCompile"),this._tryAddHook(t,"beforeCreate"),this._tryAddHook(t,"afterCreate"),this._tryAddHook(t,"beforeBind"),this._tryAddHook(t,"beforeUnbind")},t.prototype.getBindingLanguage=function(t){return this.bindingLanguage||(this.bindingLanguage=t)},t.prototype.patchInParent=function(t){var e=this.parent;this.parent=t||null,this.hasParent=null!==this.parent,null===t.parent&&(t.parent=e,t.hasParent=null!==e)},t.prototype.relativeToView=function(t){return Object(a.d)(t,this.viewUrl)},t.prototype.registerElement=function(t,e){gt(this.elements,t,e,"an Element")},t.prototype.getElement=function(t){return this.elements[t]||(this.hasParent?this.parent.getElement(t):null)},t.prototype.mapAttribute=function(t){return this.attributeMap[t]||(this.hasParent?this.parent.mapAttribute(t):null)},t.prototype.registerAttribute=function(t,e,i){this.attributeMap[t]=i,gt(this.attributes,t,e,"an Attribute")},t.prototype.getAttribute=function(t){return this.attributes[t]||(this.hasParent?this.parent.getAttribute(t):null)},t.prototype.registerValueConverter=function(t,e){gt(this.valueConverters,t,e,"a ValueConverter")},t.prototype.getValueConverter=function(t){return this.valueConverters[t]||(this.hasParent?this.parent.getValueConverter(t):null)},t.prototype.registerBindingBehavior=function(t,e){gt(this.bindingBehaviors,t,e,"a BindingBehavior")},t.prototype.getBindingBehavior=function(t){return this.bindingBehaviors[t]||(this.hasParent?this.parent.getBindingBehavior(t):null)},t.prototype.registerValue=function(t,e){gt(this.values,t,e,"a value")},t.prototype.getValue=function(t){return this.values[t]||(this.hasParent?this.parent.getValue(t):null)},t.prototype.autoRegister=function(e,i){var n=o.b.getOwn(o.b.resource,i);return n?n instanceof mt&&(t.convention(i,n),null===n.attributeName&&null===n.elementName&&mt.convention(i.name,n),null===n.attributeName&&null===n.elementName&&(n.elementName=M(i.name))):((n=t.convention(i)||mt.convention(i.name)||u.p.convention(i.name)||u.b.convention(i.name)||nt.convention(i.name))||((n=new mt).elementName=M(i.name)),o.b.define(o.b.resource,n,i)),n.initialize(e,i),n.register(this,void 0),n},t}(),wt=o.d.create("aurelia:view-strategy",{validate:function(t){return"function"==typeof t.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise<ViewFactory>"},compose:function(t){"function"!=typeof t.makeRelativeTo&&(t.makeRelativeTo=n.d.noop)}}),_t=function(){function t(t){this.path=t,this.absolutePath=null}return t.prototype.loadViewFactory=function(t,e,i,n){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=Object(a.d)(this.path,this.moduleId)),e.associatedModuleId=this.moduleId,t.loadViewFactory(this.absolutePath||this.path,e,i,n)},t.prototype.makeRelativeTo=function(t){null===this.absolutePath&&(this.absolutePath=Object(a.d)(this.path,t))},t=y([wt()],t)}(),Mt=function(){function t(t,e){this.moduleId=e.moduleId,this.viewUrl=t.convertOriginToViewUrl(e)}return t.prototype.loadViewFactory=function(t,e,i,n){return e.associatedModuleId=this.moduleId,t.loadViewFactory(this.viewUrl,e,i,n)},t=y([wt()],t)}(),xt=function(){function t(t,e){this.dependencies=t||null,this.dependencyBaseUrl=e||""}return t.prototype.loadViewFactory=function(t,e,i,n){var o=this.entry,a=this.dependencies;if(o&&o.factoryIsReady)return Promise.resolve(null);if(this.entry=o=new r.b(this.moduleId||this.dependencyBaseUrl),o.dependencies=[],o.templateIsLoaded=!0,null!==a)for(var s=0,u=a.length;s<u;++s){var h=a[s];"string"==typeof h||"function"==typeof h?o.addDependency(h):o.addDependency(h.from,h.as)}return e.associatedModuleId=this.moduleId,t.loadViewFactory(o,e,i,n)},t=y([wt()],t)}(),St=function(){function t(t,e){this.moduleId=t,this.entry=e}return t.prototype.loadViewFactory=function(t,e,i,n){var r=this.entry;return r.factoryIsReady?Promise.resolve(r.factory):(e.associatedModuleId=this.moduleId,t.loadViewFactory(r,e,i,n))},t=y([wt()],t)}(),Tt=function(){function t(t,e,i){this.markup=t,this.dependencies=e||null,this.dependencyBaseUrl=i||""}return t.prototype.loadViewFactory=function(t,e,i,o){var a=this.entry,s=this.dependencies;if(a&&a.factoryIsReady)return Promise.resolve(a.factory);if(this.entry=a=new r.b(this.moduleId||this.dependencyBaseUrl),a.template=n.b.createTemplateFromMarkup(this.markup),null!==s)for(var u=0,h=s.length;u<h;++u){var l=s[u];"string"==typeof l||"function"==typeof l?a.addDependency(l):a.addDependency(l.from,l.as)}return e.associatedModuleId=this.moduleId,t.loadViewFactory(a,e,i,o)},t=y([wt()],t)}(),At=function(){function t(t){("string"==typeof t||t instanceof n.b.Element&&"TEMPLATE"===t.tagName)&&(t={template:t}),this.template=t.template,this.dependencies=t.dependencies||[],this.factoryIsReady=!1,this.onReady=null,this.moduleId="undefined"}return t.prototype.loadViewFactory=function(t,e,i,n){var r=this;if(this.factoryIsReady)return Promise.resolve(this.factory);var o=this.dependencies,a="function"==typeof o?o():o;return a=a||[],a=Array.isArray(a)?a:[a],Promise.all(a).then((function(i){var o,a=t.container,s=t.appResources,u=t.viewCompiler,h=new yt(s),l=[];n&&h.autoRegister(a,n);for(var c=0,d=i;c<d.length;c++){var f=d[c];if("function"==typeof f)null!==(o=h.autoRegister(a,f)).elementName&&l.push(o);else{if(!f||"object"!=typeof f)throw new Error('dependency neither function nor object. Received: "'.concat(typeof f,'"'));for(var p in f){var m=f[p];"function"==typeof m&&null!==(o=h.autoRegister(a,m)).elementName&&l.push(o)}}}return Promise.all(l.map((function(t){return t.load(a,t.target)}))).then((function(){var t=null!==r.template?u.compile(r.template,h,e):null;return r.factoryIsReady=!0,r.factory=t,t}))}))},t=y([wt()],t)}();function Ct(t,e){return Array.isArray(e)?t.removeMany(e,!0):t.remove(e,!0)}var Et={before:function(t,e,i){return void 0===e?i():i().then((function(){return Ct(t,e)}))},with:function(t,e,i){return void 0===e?i():Promise.all([Ct(t,e),i()])},after:function(t,e,i){return Promise.resolve(t.removeAll(!0)).then(i)}};function kt(t){return t.skipActivation||"function"!=typeof t.viewModel.activate?Promise.resolve():t.viewModel.activate(t.model)||Promise.resolve()}var Ot=function(){function t(t,e){this.viewEngine=t,this.viewLocator=e}return t.prototype._swap=function(t,e){var i=Et[t.swapOrder]||Et.after,n=t.viewSlot.children.slice();return i(t.viewSlot,n,(function(){return Promise.resolve(t.viewSlot.add(e)).then((function(){t.currentController&&t.currentController.unbind()}))})).then((function(){t.compositionTransactionNotifier&&t.compositionTransactionNotifier.done()}))},t.prototype._createControllerAndSwap=function(t){var e=this;return this.createController(t).then((function(i){return t.compositionTransactionOwnershipToken?t.compositionTransactionOwnershipToken.waitForCompositionComplete().then((function(){return i.automate(t.overrideContext,t.owningView),e._swap(t,i.view)})).then((function(){return i})):(i.automate(t.overrideContext,t.owningView),e._swap(t,i.view).then((function(){return i})))}))},t.prototype.createController=function(t){var e,i,n,r,o=this;return this.ensureViewModel(t).then(kt).then((function(){e=t.childContainer,i=t.viewModel,n=t.viewModelResource,r=n.metadata;var a=o.viewLocator.getViewStrategy(t.view||i);return t.viewResources&&a.makeRelativeTo(t.viewResources.viewUrl),r.load(e,n.value,null,a,!0)})).then((function(n){return r.create(e,m.dynamic(t.host,i,n))}))},t.prototype.ensureViewModel=function(t){var e=t.childContainer=t.childContainer||t.container.createChild();if("string"==typeof t.viewModel)return t.viewModel=t.viewResources?t.viewResources.relativeToView(t.viewModel):t.viewModel,this.viewEngine.importViewModelResource(t.viewModel).then((function(i){return e.autoRegister(i.value),t.host&&e.registerInstance(n.b.Element,t.host),t.viewModel=e.viewModel=e.get(i.value),t.viewModelResource=i,t}));var i=t.viewModel.constructor,r="function"==typeof t.viewModel;r&&(i=t.viewModel,e.autoRegister(i));var a=o.b.getOrCreateOwn(o.b.resource,mt,i);return a.elementName=a.elementName||"dynamic-element",a.initialize(r?e:t.container||e,i),t.viewModelResource={metadata:a,value:i},t.host&&e.registerInstance(n.b.Element,t.host),e.viewModel=t.viewModel=r?e.get(i):t.viewModel,Promise.resolve(t)},t.prototype.compose=function(t){var e=this;t.childContainer=t.childContainer||t.container.createChild(),t.view=this.viewLocator.getViewStrategy(t.view);var i=t.childContainer.get(B),n=i.tryCapture();return n?t.compositionTransactionOwnershipToken=n:t.compositionTransactionNotifier=i.enlist(),t.viewModel?this._createControllerAndSwap(t):t.view?(t.viewResources&&t.view.makeRelativeTo(t.viewResources.viewUrl),t.view.loadViewFactory(this.viewEngine,new p).then((function(i){var n=i.create(t.childContainer);return n.bind(t.bindingContext,t.overrideContext),t.compositionTransactionOwnershipToken?t.compositionTransactionOwnershipToken.waitForCompositionComplete().then((function(){return e._swap(t,n)})).then((function(){return n})):e._swap(t,n).then((function(){return n}))}))):t.viewSlot?(t.viewSlot.removeAll(),t.compositionTransactionNotifier&&t.compositionTransactionNotifier.done(),Promise.resolve(null)):Promise.resolve(null)},t=y([Object(h.c)(lt,C)],t)}();!function(){function t(t){this.name=t.name,this.changeHandler=t.changeHandler||this.name+"Changed",this.selector=t.selector,this.all=t.all}t.prototype.create=function(t,e,i){return new Rt(this.selector,t,this.name,e,i,this.changeHandler,this.all)}}();var Pt=[];function It(t,e,i){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(i)}function jt(t,e){for(var i=e.binders,n=i.length,r=new Map,o=0,a=t.length;o<a;++o){for(var s=t[o],u=s.addedNodes,h=s.removedNodes,l=0,c=h.length;l<c;++l){if(1===(f=h[l]).nodeType)for(var d=0;d<n;++d){(p=i[d]).onRemove(f)&&It(r,p,s)}}for(l=0,c=u.length;l<c;++l){var f;if(1===(f=u[l]).nodeType)for(d=0;d<n;++d){var p;(p=i[d]).onAdd(f)&&It(r,p,s)}}}r.forEach((function(t,e){e.isBound&&null!==e.changeHandler&&e.viewModel[e.changeHandler](t)}))}var Rt=function(){function t(t,e,i,n,r,o,a){this.selector=t,this.viewHost=e,this.property=i,this.viewModel=n,this.controller=r,this.changeHandler=o in n?o:null,this.usesShadowDOM=r.behavior.usesShadowDOM,this.all=a,!this.usesShadowDOM&&r.view&&r.view.contentView?this.contentView=r.view.contentView:this.contentView=null,this.source=null,this.isBound=!1}return t.prototype.matches=function(t){if(t.matches(this.selector)){if(null===this.contentView)return!0;var e=this.contentView,i=t.auAssignedSlot;if(i&&i.projectFromAnchors){for(var n=i.projectFromAnchors,r=0,o=n.length;r<o;++r)if(n[r].auOwnerView===e)return!0;return!1}return t.auOwnerView===e}return!1},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.source=t}this.isBound=!0;var e=this.viewHost,i=this.viewModel,r=e.__childObserver__;if(!r){r=e.__childObserver__=n.b.createMutationObserver(jt);var o={childList:!0,subtree:!this.usesShadowDOM};r.observe(e,o),r.binders=[]}if(r.binders.push(this),this.usesShadowDOM){var a=e.firstElementChild;if(this.all){var s=i[this.property];for(s?s.splice(0):s=i[this.property]=[];a;)this.matches(a)&&s.push(a.au&&a.au.controller?a.au.controller.viewModel:a),a=a.nextElementSibling;null!==this.changeHandler&&this.viewModel[this.changeHandler](Pt)}else for(;a;){if(this.matches(a)){var u=a.au&&a.au.controller?a.au.controller.viewModel:a;this.viewModel[this.property]=u,null!==this.changeHandler&&this.viewModel[this.changeHandler](u);break}a=a.nextElementSibling}}},t.prototype.onRemove=function(t){if(this.matches(t)){var e=t.au&&t.au.controller?t.au.controller.viewModel:t;if(this.all){var i=this.viewModel[this.property]||(this.viewModel[this.property]=[]),n=i.indexOf(e);return-1!==n&&i.splice(n,1),!0}this.viewModel[this.property]===e&&(this.viewModel[this.property]=null,this.isBound&&null!==this.changeHandler&&this.viewModel[this.changeHandler](e))}return!1},t.prototype.onAdd=function(t){if(this.matches(t)){var e=t.au&&t.au.controller?t.au.controller.viewModel:t;if(this.all){var i=this.viewModel[this.property]||(this.viewModel[this.property]=[]);if("*"===this.selector)return i.push(e),!0;for(var n=0,r=t.previousElementSibling;r;)this.matches(r)&&n++,r=r.previousElementSibling;return i.splice(n,0,e),!0}this.viewModel[this.property]=e,this.isBound&&null!==this.changeHandler&&this.viewModel[this.changeHandler](e)}return!1},t.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;var t=this.viewHost.__childObserver__;if(t){var e=t.binders;if(e&&e.length){var i=e.indexOf(this);-1!==i&&e.splice(i,1),0===e.length&&(t.disconnect(),this.viewHost.__childObserver__=null)}this.usesShadowDOM&&(this.viewModel[this.property]=null)}}},t}();!function(){function t(){}t.prototype.initialize=function(t,e){},t.prototype.register=function(t,e){},t.prototype.load=function(t,e){var i=new e;t.get(u.g).registerElementConfig(i)}}();function Dt(t){return function(e){"string"==typeof t||Object.getPrototypeOf(t)===Object.prototype?e.$resource=t:o.b.define(o.b.resource,t,e)}}function Lt(t){return function(e){o.b.getOrCreateOwn(o.b.resource,mt,e).elementName=bt(t,"custom element")}}function Bt(t,e,i){return function(n){var r=o.b.getOrCreateOwn(o.b.resource,mt,n);r.attributeName=bt(t,"custom attribute"),r.attributeDefaultBindingMode=e,r.aliases=i}}function Nt(t){var e=function(t){o.b.getOrCreateOwn(o.b.resource,mt,t).liftsContent=!0};return t?e(t):e}function zt(t,e,i){var n=function(e,i,n){var r=i?e.constructor:e,a=o.b.getOrCreateOwn(o.b.resource,mt,r);return i&&((t=t||{}).name=i),new A(t).registerWith(r,a,n)};if(!t)return n;if(e){var r=t;return t=null,n(r,e,i)}return n}function Ht(t){var e=function(t){o.b.getOrCreateOwn(o.b.resource,mt,t).containerless=!0};return t?e(t):e}function Ft(t){return function(e){o.b.define(C.viewStrategyMetadataKey,t,e)}}function Vt(t){return Ft(new _t(t))}function Ut(t,e,i){return Ft(new Tt(t,e,i))}function Gt(t,e){var i,n;"function"==typeof t?i=t:(n=t,i=void 0);var r=function(t){o.b.define(C.viewStrategyMetadataKey,new xt(n,e),t)};return i?r(i):r}var qt=function(){function t(t,e,i,n){this._container=t,this._moduleAnalyzer=e,this._viewCompiler=i,this._compositionEngine=n,t.registerInstance(z,z.instance=new z)}return t.prototype.configureAnimator=function(t){this._container.unregister(z),this._container.registerInstance(z,z.instance=t)},t.prototype.compose=function(t){return this._compositionEngine.compose(t)},t.prototype.enhance=function(t){t instanceof n.b.Element&&(t={element:t});var e={letExpressions:[]},i=t.resources||this._container.get(yt);this._viewCompiler._compileNode(t.element,i,e,t.element.parentNode,"root",!0);var r=new X(t.element,e,i),o=t.container||this._container.createChild(),a=r.create(o,m.enhance());return a.bind(t.bindingContext||{},t.overrideContext),a.firstChild=a.lastChild=a.fragment,a.fragment=n.b.createDocumentFragment(),a.attached(),a},t.inject=[h.a,at,it,Ot],t}()},114:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(255),r=i(254),o=i(21),a=i(19),s=i(23);function u(t,e){if(Object(a.a)(2,arguments),!e||"object"!=typeof e)return new Date(NaN);var i="years"in e?Object(s.a)(e.years):0,u="months"in e?Object(s.a)(e.months):0,h="weeks"in e?Object(s.a)(e.weeks):0,l="days"in e?Object(s.a)(e.days):0,c="hours"in e?Object(s.a)(e.hours):0,d="minutes"in e?Object(s.a)(e.minutes):0,f="seconds"in e?Object(s.a)(e.seconds):0,p=Object(o.a)(t),m=u||i?Object(r.a)(p,u+12*i):p,g=l||h?Object(n.a)(m,l+7*h):m,b=d+60*c,v=f+60*b,y=1e3*v,w=new Date(g.getTime()+y);return w}},115:function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),i.d(e,"c",(function(){return d})),i.d(e,"d",(function(){return f})),i.d(e,"a",(function(){return p})),i.d(e,"e",(function(){return m}));var n,r,o,a,s,u=i(14),h=i(17),l={bind:function(t,e,i){t.originalMode=t.mode,t.mode=this.mode},unbind:function(t,e){t.mode=t.originalMode,t.originalMode=null}},c=Object(h.c)(l)(n=Object(u.q)("oneTime")(n=function(){this.mode=u.r.oneTime})||n)||n,d=Object(h.c)(l)(r=Object(u.q)("oneWay")(r=function(){this.mode=u.r.toView})||r)||r,f=Object(h.c)(l)(o=Object(u.q)("toView")(o=function(){this.mode=u.r.toView})||o)||o,p=Object(h.c)(l)(a=Object(u.q)("fromView")(a=function(){this.mode=u.r.fromView})||a)||a,m=Object(h.c)(l)(s=Object(u.q)("twoWay")(s=function(){this.mode=u.r.twoWay})||s)||s},1150:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(650),r=i(31),o=i(122),a=i(154),s=i(21),u=i(101),h=i(19);function l(t,e,i){Object(h.a)(2,arguments);var l=Object(s.a)(t),c=Object(s.a)(e),d=i||{},f=d.locale,p=void 0===f?o.a:f,m=d.weekStartsOn,g=void 0===m?0:m;if(!p.localize)throw new RangeError("locale must contain localize property");if(!p.formatLong)throw new RangeError("locale must contain formatLong property");if(!p.formatRelative)throw new RangeError("locale must contain formatRelative property");var b,v=Object(n.a)(l,c);if(isNaN(v))throw new RangeError("Invalid time value");b=v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other";var y=Object(a.a)(l,Object(u.a)(l)),w=Object(a.a)(c,Object(u.a)(c)),_=p.formatRelative(b,y,w,{locale:p,weekStartsOn:g});return Object(r.a)(l,_,{locale:p,weekStartsOn:g})}},1151:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t,e){Object(r.a)(2,arguments);var i=Object(n.a)(t),o=Object(n.a)(e);return i.getTime()-o.getTime()}},1152:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(21),r=i(286),o=i(38);function a(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var i=Object(n.a)(t);if(!Object(r.a)(i))throw new RangeError("Invalid time value");var a=e||{},s=null==a.format?"extended":String(a.format),u=null==a.representation?"complete":String(a.representation);if("extended"!==s&&"basic"!==s)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==u&&"time"!==u&&"complete"!==u)throw new RangeError("representation must be 'date', 'time', or 'complete'");var h="",l="",c="extended"===s?"-":"",d="extended"===s?":":"";if("time"!==u){var f=Object(o.a)(i.getDate(),2),p=Object(o.a)(i.getMonth()+1,2),m=Object(o.a)(i.getFullYear(),4);h="".concat(m).concat(c).concat(p).concat(c).concat(f)}if("date"!==u){var g=i.getTimezoneOffset();if(0!==g){var b=Math.abs(g),v=Object(o.a)(Math.floor(b/60),2),y=Object(o.a)(b%60,2),w=g<0?"+":"-";l="".concat(w).concat(v,":").concat(y)}else l="Z";var _=Object(o.a)(i.getHours(),2),M=Object(o.a)(i.getMinutes(),2),x=Object(o.a)(i.getSeconds(),2),S=""===h?"":"T",T=[_,M,x].join(d);h="".concat(h).concat(S).concat(T).concat(l)}return h}},1153:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i(101),r=i(656),o=i(21),a=i(657),s=i(122),u=i(19),h=6e4,l=1440,c=43200,d=525600;function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(u.a)(2,arguments);var f=i.locale||s.a;if(!f.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var p=Object(r.a)(t,e);if(isNaN(p))throw new RangeError("Invalid time value");var m,g,b=Object(a.a)(i);b.addSuffix=Boolean(i.addSuffix),b.comparison=p,p>0?(m=Object(o.a)(e),g=Object(o.a)(t)):(m=Object(o.a)(t),g=Object(o.a)(e));var v,y=null==i.roundingMethod?"round":String(i.roundingMethod);if("floor"===y)v=Math.floor;else if("ceil"===y)v=Math.ceil;else{if("round"!==y)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");v=Math.round}var w,_=g.getTime()-m.getTime(),M=_/h,x=Object(n.a)(g)-Object(n.a)(m),S=(_-x)/h;if("second"===(w=null==i.unit?M<1?"second":M<60?"minute":M<l?"hour":S<c?"day":S<d?"month":"year":String(i.unit))){var T=v(_/1e3);return f.formatDistance("xSeconds",T,b)}if("minute"===w){var A=v(M);return f.formatDistance("xMinutes",A,b)}if("hour"===w){var C=v(M/60);return f.formatDistance("xHours",C,b)}if("day"===w){var E=v(S/l);return f.formatDistance("xDays",E,b)}if("month"===w){var k=v(S/c);return 12===k&&"month"!==i.unit?f.formatDistance("xYears",1,b):f.formatDistance("xMonths",k,b)}if("year"===w){var O=v(S/d);return f.formatDistance("xYears",O,b)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}},1154:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=Object(n.a)(t),i=e.getDay();return i}},1155:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(390),r=i(19);function o(t){return Object(r.a)(1,arguments),Object(n.a)(t,Date.now())}},1156:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){return Object(r.a)(1,arguments),Object(n.a)(t).getTime()>Date.now()}},1157:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(682),r=i(681),o=i(21),a=i(19),s=i(23);function u(t,e){if(Object(a.a)(2,arguments),!e||"object"!=typeof e)return new Date(NaN);var i="years"in e?Object(s.a)(e.years):0,u="months"in e?Object(s.a)(e.months):0,h="weeks"in e?Object(s.a)(e.weeks):0,l="days"in e?Object(s.a)(e.days):0,c="hours"in e?Object(s.a)(e.hours):0,d="minutes"in e?Object(s.a)(e.minutes):0,f="seconds"in e?Object(s.a)(e.seconds):0,p=Object(r.a)(Object(o.a)(t),u+12*i),m=Object(n.a)(p,l+7*h),g=d+60*c,b=f+60*g,v=1e3*b,y=new Date(m.getTime()-v);return y}},116:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return m}));var n=i(7),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t,e){return JSON.stringify(void 0!==t?t:{},e)}var a=0,s=1,u=2,h=3,l={maxRetries:3,interval:1e3,strategy:a},c=function(){function t(t){if(this.retryConfig=Object.assign({},l,t||{}),this.retryConfig.strategy===u&&this.retryConfig.interval<=1e3)throw new Error("An interval less than or equal to 1 second is not allowed when using the exponential retry strategy")}return t.prototype.request=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return t.retryConfig||(t.retryConfig=Object.assign({},this.retryConfig),t.retryConfig.counter=0),t.retryConfig.requestClone=t.clone(),t})),t.prototype.response=function(t){function e(e,i){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return delete e.retryConfig,t})),t.prototype.responseError=function(t,e,i){var r=e.retryConfig,o=r.requestClone;return Promise.resolve().then((function(){if(r.counter<r.maxRetries){var l=!r.doRetry||r.doRetry(t,e);return Promise.resolve(l).then((function(l){if(l)return r.counter++,new Promise((function(t){return n.d.global.setTimeout(t,function(t){var e=t.interval,i=t.strategy,n=t.minRandomInterval,r=t.maxRandomInterval,o=t.counter;if("function"==typeof i)return t.strategy(o);switch(i){case a:return d[a](e);case s:return d[s](o,e);case u:return d[u](o,e);case h:return d[h](o,e,n,r);default:throw new Error("Unrecognized retry strategy")}}(r)||0)})).then((function(){var t=o.clone();return"function"==typeof r.beforeRetry?r.beforeRetry(t,i):t})).then((function(t){return i.fetch(Object.assign(t,{retryConfig:r}))}));throw delete e.retryConfig,t}))}throw delete e.retryConfig,t}))},t}();var d=[function(t){return t},function(t,e){return e*t},function(t,e){return 1===t?e:Math.pow(e,t)/1e3},function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6e4;return Math.random()*(n-i)+i}],f=function(){function t(){this.baseUrl="",this.defaults={},this.interceptors=[]}return t.prototype.withBaseUrl=function(t){return this.baseUrl=t,this},t.prototype.withDefaults=function(t){return this.defaults=t,this},t.prototype.withInterceptor=function(t){return this.interceptors.push(t),this},t.prototype.useStandardConfiguration=function(){return Object.assign(this.defaults,{credentials:"same-origin"},this.defaults),this.rejectErrorResponses()},t.prototype.rejectErrorResponses=function(){return this.withInterceptor({response:p})},t.prototype.withRetry=function(t){var e=new c(t);return this.withInterceptor(e)},t}();function p(t){if(!t.ok)throw t;return t}var m=function(){function t(){if(this.activeRequestCount=0,this.isRequesting=!1,this.isConfigured=!1,this.baseUrl="",this.defaults=null,this.interceptors=[],"undefined"==typeof fetch)throw new Error("HttpClient requires a Fetch API implementation, but the current environment doesn't support it. You may need to load a polyfill such as https://github.com/github/fetch")}return t.prototype.configure=function(t){var e=void 0;if("object"===(void 0===t?"undefined":r(t)))e={defaults:t};else{if("function"!=typeof t)throw new Error("invalid config");(e=new f).baseUrl=this.baseUrl,e.defaults=Object.assign({},this.defaults),e.interceptors=this.interceptors;var i=t(e);f.prototype.isPrototypeOf(i)&&(e=i)}var n=e.defaults;if(n&&Headers.prototype.isPrototypeOf(n.headers))throw new Error("Default headers must be a plain object.");var o=e.interceptors;if(o&&o.length){if(o.filter((function(t){return c.prototype.isPrototypeOf(t)})).length>1)throw new Error("Only one RetryInterceptor is allowed.");var a=o.findIndex((function(t){return c.prototype.isPrototypeOf(t)}));if(a>=0&&a!==o.length-1)throw new Error("The retry interceptor must be the last interceptor defined.")}return this.baseUrl=e.baseUrl,this.defaults=n,this.interceptors=e.interceptors||[],this.isConfigured=!0,this},t.prototype.fetch=function(t){function e(e,i){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){var i=this;b.call(this);var n=this.buildRequest(t,e);return function(t,e,i){return y(t,e,"request","requestError",i)}(n,this.interceptors,this).then((function(t){var e=null;if(Response.prototype.isPrototypeOf(t))e=Promise.resolve(t);else{if(!Request.prototype.isPrototypeOf(t))throw new Error("An invalid result was returned by the interceptor chain. Expected a Request or Response instance, but got ["+t+"]");n=t,e=fetch(t)}return function(t,e,i,n){return y(t,e,"response","responseError",i,n)}(e,i.interceptors,n,i)})).then((function(t){return Request.prototype.isPrototypeOf(t)?i.fetch(t):(v.call(i),t)}))})),t.prototype.buildRequest=function(t,e){var i=this.defaults||{},n=void 0,r=void 0,o=void 0,a=function(t){var e={};for(var i in t||{})t.hasOwnProperty(i)&&(e[i]="function"==typeof t[i]?t[i]():t[i]);return e}(i.headers);if(Request.prototype.isPrototypeOf(t))n=t,o=new Headers(n.headers).get("Content-Type");else{e||(e={});var s=(r=e.body)?{body:r}:null,u=Object.assign({},i,{headers:{}},e,s);o=new Headers(u.headers).get("Content-Type"),n=new Request(function(t,e){if(g.test(e))return e;return(t||"")+e}(this.baseUrl,t),u)}return o||(new Headers(a).has("content-type")?n.headers.set("Content-Type",new Headers(a).get("content-type")):r&&function(t){try{JSON.parse(t)}catch(t){return!1}return!0}(r)&&n.headers.set("Content-Type","application/json")),function(t,e){for(var i in e||{})e.hasOwnProperty(i)&&!t.has(i)&&t.set(i,e[i])}(n.headers,a),r&&Blob.prototype.isPrototypeOf(r)&&r.type&&n.headers.set("Content-Type",r.type),n},t.prototype.get=function(t,e){return this.fetch(t,e)},t.prototype.post=function(t,e,i){return M.call(this,t,e,i,"post")},t.prototype.put=function(t,e,i){return M.call(this,t,e,i,"put")},t.prototype.patch=function(t,e,i){return M.call(this,t,e,i,"patch")},t.prototype.delete=function(t,e,i){return M.call(this,t,e,i,"delete")},t}(),g=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function b(){this.isRequesting=!!++this.activeRequestCount}function v(){if(this.isRequesting=!!--this.activeRequestCount,!this.isRequesting){var t=n.b.createCustomEvent("aurelia-fetch-client-requests-drained",{bubbles:!0,cancelable:!0});setTimeout((function(){return n.b.dispatchEvent(t)}),1)}}function y(t,e,i,n){for(var r=arguments.length,o=Array(r>4?r-4:0),a=4;a<r;a++)o[a-4]=arguments[a];return(e||[]).reduce((function(t,e){var r=e[i],a=e[n];return t.then(r&&function(t){return r.call.apply(r,[e,t].concat(o))}||w,a&&function(t){return a.call.apply(a,[e,t].concat(o))}||_)}),Promise.resolve(t))}function w(t){return t}function _(t){throw t}function M(t,e,i,n){return i||(i={}),i.method=n,e&&(i.body=e),this.fetch(t,i)}},117:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e){Object(o.a)(1,arguments);var i=e||{},a=i.locale,s=a&&a.options&&a.options.weekStartsOn,u=null==s?0:Object(n.a)(s),h=null==i.weekStartsOn?u:Object(n.a)(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(r.a)(t),c=l.getUTCDay(),d=(c<h?7:0)+c-h;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}},118:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));const n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:t=>"undefined"!=typeof console&&console.warn(t),getWeek:t=>{const e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var i=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},119:function(t,e,i){"use strict";var n=i(104),r=i(46);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}else for(var n=0,r=0;r<t.length;r++){var a=t.charCodeAt(r);a<128?i[n++]=a:a<2048?(i[n++]=a>>6|192,i[n++]=63&a|128):o(t,r)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++r)),i[n++]=a>>18|240,i[n++]=a>>12&63|128,i[n++]=a>>6&63|128,i[n++]=63&a|128):(i[n++]=a>>12|224,i[n++]=a>>6&63|128,i[n++]=63&a|128)}else for(r=0;r<t.length;r++)i[r]=0|t[r];return i},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=s(t[i].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var i="",n=0;n<t.length;n++){var r=t[n];"little"===e&&(r=a(r)),i+=u(r.toString(16))}return i},e.zero2=s,e.zero8=u,e.join32=function(t,e,i,r){var o=i-e;n(o%4==0);for(var a=new Array(o/4),s=0,u=e;s<a.length;s++,u+=4){var h;h="big"===r?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=h>>>0}return a},e.split32=function(t,e){for(var i=new Array(4*t.length),n=0,r=0;n<t.length;n++,r+=4){var o=t[n];"big"===e?(i[r]=o>>>24,i[r+1]=o>>>16&255,i[r+2]=o>>>8&255,i[r+3]=255&o):(i[r+3]=o>>>24,i[r+2]=o>>>16&255,i[r+1]=o>>>8&255,i[r]=255&o)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,n){return t+e+i+n>>>0},e.sum32_5=function(t,e,i,n,r){return t+e+i+n+r>>>0},e.sum64=function(t,e,i,n){var r=t[e],o=n+t[e+1]>>>0,a=(o<n?1:0)+i+r;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,n){return(e+n>>>0<e?1:0)+t+i>>>0},e.sum64_lo=function(t,e,i,n){return e+n>>>0},e.sum64_4_hi=function(t,e,i,n,r,o,a,s){var u=0,h=e;return u+=(h=h+n>>>0)<e?1:0,u+=(h=h+o>>>0)<o?1:0,t+i+r+a+(u+=(h=h+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,i,n,r,o,a,s){return e+n+o+s>>>0},e.sum64_5_hi=function(t,e,i,n,r,o,a,s,u,h){var l=0,c=e;return l+=(c=c+n>>>0)<e?1:0,l+=(c=c+o>>>0)<o?1:0,l+=(c=c+s>>>0)<s?1:0,t+i+r+a+u+(l+=(c=c+h>>>0)<h?1:0)>>>0},e.sum64_5_lo=function(t,e,i,n,r,o,a,s,u,h){return e+n+o+s+h>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},120:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(7),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t){return function(){var e=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(e),clearInterval(i),t()}}}var a=function(){function t(){var t,e,i,r,a,s=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],n.c.mutationObserver?this.requestFlushMicroTaskQueue=(t=function(){return s.flushMicroTaskQueue()},e=n.b.createMutationObserver(t),i="a",r=n.b.createTextNode("a"),(a=Object.create(null)).a="b",a.b="a",e.observe(r,{characterData:!0}),function(){r.data=i=a[i]}):this.requestFlushMicroTaskQueue=o((function(){return s.flushMicroTaskQueue()})),this.requestFlushTaskQueue=o((function(){return s.flushTaskQueue()}))}return t.prototype._flushQueue=function(t,e){var i=0,n=void 0;try{for(this.flushing=!0;i<t.length;)if(n=t[i],this.longStacks&&(this.stack="string"==typeof n.stack?n.stack:void 0),n.call(),++i>e){for(var o=0,a=t.length-i;o<a;o++)t[o]=t[o+i];t.length-=i,i=0}}catch(t){!function(t,e,i){i&&e.stack&&"object"===(void 0===t?"undefined":r(t))&&null!==t&&(t.stack=s(t.stack)+e.stack),"onError"in e?e.onError(t):setTimeout((function(){throw t}),0)}(t,n,this.longStacks)}finally{this.flushing=!1}},t.prototype.queueMicroTask=function(t){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.longStacks&&(t.stack=this.prepareQueueStack("\nEnqueued in MicroTaskQueue by:\n")),this.microTaskQueue.push(t)},t.prototype.queueTask=function(t){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.longStacks&&(t.stack=this.prepareQueueStack("\nEnqueued in TaskQueue by:\n")),this.taskQueue.push(t)},t.prototype.flushTaskQueue=function(){var t=this.taskQueue;this.taskQueue=[],this._flushQueue(t,Number.MAX_VALUE)},t.prototype.flushMicroTaskQueue=function(){var t=this.microTaskQueue;this._flushQueue(t,this.microTaskQueueCapacity),t.length=0},t.prototype.prepareQueueStack=function(t){var e=t+function(t){return t.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}(function(){var t=new Error;if(t.stack)return t.stack;try{throw t}catch(t){return t.stack}}());return"string"==typeof this.stack&&(e=s(e)+this.stack),e},t}();function s(t){var e=t.lastIndexOf("flushMicroTaskQueue");return e<0&&(e=t.lastIndexOf("flushTaskQueue"))<0||(e=t.lastIndexOf("\n",e))<0?t:t.substr(0,e)}},122:function(t,e,i){"use strict";var n=i(639),r=i(640),o=i(641),a=i(642),s=i(643),u={code:"en-US",formatDistance:n.a,formatLong:r.a,formatRelative:o.a,localize:a.a,match:s.a,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=u},125:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=1,i=Object(n.a)(t),o=i.getUTCDay(),a=(o<e?7:0)+o-e;return i.setUTCDate(i.getUTCDate()-a),i.setUTCHours(0,0,0,0),i}},129:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return s}));var n=i(7),r="aurelia-hide",o="."+r+" { display:none !important; }";function a(){n.b.injectStyles(o)}function s(t){n.c.shadowDOM&&t&&!t.hasAureliaHideStyle&&(t.hasAureliaHideStyle=!0,n.b.injectStyles(o,t))}},130:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s}));var n=["D","DD"],r=["YY","YYYY"];function o(t){return-1!==n.indexOf(t)}function a(t){return-1!==r.indexOf(t)}function s(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}},131:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return s})),i.d(e,"a",(function(){return u}));var n=i(49);const r=()=>{},o=(t,e,i)=>i.months[e?"shorthand":"longhand"][t],a={D:r,F:function(t,e,i){t.setMonth(i.months.longhand.indexOf(e))},G:(t,e)=>{t.setHours(parseFloat(e))},H:(t,e)=>{t.setHours(parseFloat(e))},J:(t,e)=>{t.setDate(parseFloat(e))},K:(t,e,i)=>{t.setHours(t.getHours()%12+12*Object(n.c)(new RegExp(i.amPM[1],"i").test(e)))},M:function(t,e,i){t.setMonth(i.months.shorthand.indexOf(e))},S:(t,e)=>{t.setSeconds(parseFloat(e))},U:(t,e)=>new Date(1e3*parseFloat(e)),W:function(t,e,i){const n=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(n-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+i.firstDayOfWeek),r},Y:(t,e)=>{t.setFullYear(parseFloat(e))},Z:(t,e)=>new Date(e),d:(t,e)=>{t.setDate(parseFloat(e))},h:(t,e)=>{t.setHours(parseFloat(e))},i:(t,e)=>{t.setMinutes(parseFloat(e))},j:(t,e)=>{t.setDate(parseFloat(e))},l:r,m:(t,e)=>{t.setMonth(parseFloat(e)-1)},n:(t,e)=>{t.setMonth(parseFloat(e)-1)},s:(t,e)=>{t.setSeconds(parseFloat(e))},u:(t,e)=>new Date(parseFloat(e)),w:r,y:(t,e)=>{t.setFullYear(2e3+parseFloat(e))}},s={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},u={Z:t=>t.toISOString(),D:function(t,e,i){return e.weekdays.shorthand[u.w(t,e,i)]},F:function(t,e,i){return o(u.n(t,e,i)-1,!1,e)},G:function(t,e,i){return Object(n.d)(u.h(t,e,i))},H:t=>Object(n.d)(t.getHours()),J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:(t,e)=>e.amPM[Object(n.c)(t.getHours()>11)],M:function(t,e){return o(t.getMonth(),!0,e)},S:t=>Object(n.d)(t.getSeconds()),U:t=>t.getTime()/1e3,W:function(t,e,i){return i.getWeek(t)},Y:t=>Object(n.d)(t.getFullYear(),4),d:t=>Object(n.d)(t.getDate()),h:t=>t.getHours()%12?t.getHours()%12:12,i:t=>Object(n.d)(t.getMinutes()),j:t=>t.getDate(),l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:t=>Object(n.d)(t.getMonth()+1),n:t=>t.getMonth()+1,s:t=>t.getSeconds(),u:t=>t.getTime(),w:t=>t.getDay(),y:t=>String(t.getFullYear()).substring(2)}},132:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(233).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},135:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(176),r=i(186),o=i(519),a=i(153),s=function(){function t(t,e,i,n){this.resolve=i,this.reject=n,this.settings=e,this.renderer=t}return t.prototype.releaseResources=function(t){var e=this;return Object(r.a)(this.controller.viewModel||{},"deactivate",t).then((function(){return e.renderer.hideDialog(e)})).then((function(){e.controller.unbind()}))},t.prototype.cancelOperation=function(){if(!this.settings.rejectOnCancel)return{wasCancelled:!0};throw Object(a.a)()},t.prototype.ok=function(t){return this.close(!0,t)},t.prototype.cancel=function(t){return this.close(!1,t)},t.prototype.error=function(t){var e=this,i=Object(o.a)(t);return this.releaseResources(i).then((function(){e.reject(i)}))},t.prototype.close=function(t,e){var i=this;if(this.closePromise)return this.closePromise;var n={wasCancelled:!t,output:e};return this.closePromise=Object(r.a)(this.controller.viewModel||{},"canDeactivate",n).catch((function(t){return i.closePromise=void 0,Promise.reject(t)})).then((function(r){return r?i.releaseResources(n).then((function(){return!i.settings.rejectOnCancel||t?i.resolve(n):i.reject(Object(a.a)(e)),{wasCancelled:!1}})).catch((function(t){return i.closePromise=void 0,Promise.reject(t)})):(i.closePromise=void 0,i.cancelOperation())}))},t.inject=[n.a],t}()},14:function(t,e,i){"use strict";i.d(e,"D",(function(){return S})),i.d(e,"B",(function(){return T})),i.d(e,"s",(function(){return C})),i.d(e,"v",(function(){return E})),i.d(e,"u",(function(){return B})),i.d(e,"x",(function(){return G})),i.d(e,"C",(function(){return J})),i.d(e,"y",(function(){return at})),i.d(e,"a",(function(){return wt})),i.d(e,"o",(function(){return _t})),i.d(e,"j",(function(){return Rt})),i.d(e,"r",(function(){return Ft})),i.d(e,"m",(function(){return Vt})),i.d(e,"w",(function(){return ki})),i.d(e,"g",(function(){return Oi})),i.d(e,"h",(function(){return Pi})),i.d(e,"f",(function(){return Hi})),i.d(e,"t",(function(){return $i})),i.d(e,"n",(function(){return Xi})),i.d(e,"l",(function(){return Qi})),i.d(e,"d",(function(){return Ji})),i.d(e,"e",(function(){return en})),i.d(e,"p",(function(){return rn})),i.d(e,"E",(function(){return on})),i.d(e,"b",(function(){return an})),i.d(e,"q",(function(){return sn})),i.d(e,"i",(function(){return un})),i.d(e,"k",(function(){return cn})),i.d(e,"c",(function(){return pn})),i.d(e,"z",(function(){return bn})),i.d(e,"A",(function(){return wn}));var n,r,o,a,s,u,h,l,c,d,f,p,m,g=i(56),b=i(7),v=i(120),y=i(17),w=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function M(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function x(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var S="Binding:target",T="Binding:source",A=Object.create(null);function C(t){if(t in A)return A[t];var e=t.charAt(0).toLowerCase()+t.slice(1).replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}));return A[t]=e,e}function E(t,e){return{bindingContext:t,parentOverrideContext:e||null}}function k(t,e,i){var n=e.overrideContext;if(i){for(;i&&n;)i--,n=n.parentOverrideContext;if(i||!n)return;return t in n?n:n.bindingContext}for(;n&&!(t in n)&&(!n.bindingContext||!(t in n.bindingContext));)n=n.parentOverrideContext;return n?t in n?n:n.bindingContext:e.bindingContext||e.overrideContext}for(var O=[],P=[],I=0;I<100;I++)O.push("_observer"+I),P.push("_observerVersion"+I);function j(t){for(var e=void 0===this._observerSlots?0:this._observerSlots,i=e;i--&&this[O[i]]!==t;);if(-1===i){for(i=0;this[O[i]];)i++;this[O[i]]=t,t.subscribe(T,this),i===e&&(this._observerSlots=i+1)}void 0===this._version&&(this._version=0),this[P[i]]=this._version}function R(t,e){var i=this.observerLocator.getObserver(t,e);j.call(this,i)}function D(t){var e=this.observerLocator.getArrayObserver(t);j.call(this,e)}function L(t){for(var e=this._observerSlots;e--;)if(t||this[P[e]]!==this._version){var i=this[O[e]];this[O[e]]=null,i&&i.unsubscribe(T,this)}}function B(){return function(t){t.prototype.observeProperty=R,t.prototype.observeArray=D,t.prototype.unobserve=L,t.prototype.addObserver=j}}var N=[],z={},H=0,F=!1,V=0;function U(t){for(var e=N.length,i=0;i<e;){var n=N[i];if(z[n.__connectQueueId]=!1,n.connect(!0),++i%100==0&&b.d.performance.now()-t>15)break}N.splice(0,i),N.length?b.d.requestAnimationFrame(U):(F=!1,V=0)}function G(t){if(V<100)V++,t.connect(!1);else{var e=t.__connectQueueId;void 0===e&&(e=H,H++,t.__connectQueueId=e),z[e]||(N.push(t),z[e]=!0)}F||(F=!0,b.d.requestAnimationFrame(U))}function q(t,e){return!this.hasSubscriber(t,e)&&(this._context0?this._context1?this._context2?this._contextsRest?(this._contextsRest.push(t),this._callablesRest.push(e),!0):(this._contextsRest=[t],this._callablesRest=[e],!0):(this._context2=t,this._callable2=e,!0):(this._context1=t,this._callable1=e,!0):(this._context0=t,this._callable0=e,!0))}function W(t,e){if(this._context0===t&&this._callable0===e)return this._context0=null,this._callable0=null,!0;if(this._context1===t&&this._callable1===e)return this._context1=null,this._callable1=null,!0;if(this._context2===t&&this._callable2===e)return this._context2=null,this._callable2=null,!0;var i=this._callablesRest;if(void 0===i||0===i.length)return!1;for(var n=this._contextsRest,r=0;(i[r]!==e||n[r]!==t)&&i.length>r;)r++;return!(r>=i.length)&&(n.splice(r,1),i.splice(r,1),!0)}var Z=[],Y=[],$=[];function K(t,e){var i=this._context0,n=this._callable0,r=this._context1,o=this._callable1,a=this._context2,s=this._callable2,u=this._contextsRest?this._contextsRest.length:0,h=void 0,l=void 0,c=void 0,d=void 0;if(u){for(c=$.length;c--&&$[c];);for(c<0?(c=$.length,h=[],l=[],$.push(!0),Z.push(h),Y.push(l)):($[c]=!0,h=Z[c],l=Y[c]),d=u;d--;)h[d]=this._contextsRest[d],l[d]=this._callablesRest[d]}if(i&&(n?n.call(i,t,e):i(t,e)),r&&(o?o.call(r,t,e):r(t,e)),a&&(s?s.call(a,t,e):a(t,e)),u){for(d=0;d<u;d++){var f=l[d],p=h[d];f?f.call(p,t,e):p(t,e),h[d]=null,l[d]=null}$[c]=!1}}function X(){return!!(this._context0||this._context1||this._context2||this._contextsRest&&this._contextsRest.length)}function Q(t,e){if(this._context0===t&&this._callable0===e||this._context1===t&&this._callable1===e||this._context2===t&&this._callable2===e)return!0;var i=void 0,n=this._contextsRest;if(!n||0===(i=n.length))return!1;for(var r=this._callablesRest;i--;)if(n[i]===t&&r[i]===e)return!0;return!1}function J(){return function(t){t.prototype.addSubscriber=q,t.prototype.removeSubscriber=W,t.prototype.callSubscribers=K,t.prototype.hasSubscribers=X,t.prototype.hasSubscriber=Q}}var tt=B()(n=J()(n=function(){function t(t,e,i,n){this.scope=t,this.expression=e,this.observerLocator=i,this.lookupFunctions=n}return t.prototype.getValue=function(){return this.expression.evaluate(this.scope,this.lookupFunctions)},t.prototype.setValue=function(t){this.expression.assign(this.scope,t)},t.prototype.subscribe=function(t,e){var i=this;if(this.hasSubscribers()||(this.oldValue=this.expression.evaluate(this.scope,this.lookupFunctions),this.expression.connect(this,this.scope)),this.addSubscriber(t,e),1===arguments.length&&t instanceof Function)return{dispose:function(){i.unsubscribe(t,e)}}},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)&&!this.hasSubscribers()&&(this.unobserve(!0),this.oldValue=void 0)},t.prototype.call=function(){var t=this.expression.evaluate(this.scope,this.lookupFunctions),e=this.oldValue;t!==e&&(this.oldValue=t,this.callSubscribers(t,e)),this._version++,this.expression.connect(this,this.scope),this.unobserve(!1)},t}())||n)||n;function et(t){return+t}function it(t,e,i){return{index:t,removed:e,addedCount:i}}function nt(){}nt.prototype={calcEditDistances:function(t,e,i,n,r,o){for(var a=o-r+1,s=i-e+1,u=new Array(a),h=void 0,l=void 0,c=0;c<a;++c)u[c]=new Array(s),u[c][0]=c;for(var d=0;d<s;++d)u[0][d]=d;for(var f=1;f<a;++f)for(var p=1;p<s;++p)this.equals(t[e+p-1],n[r+f-1])?u[f][p]=u[f-1][p-1]:(h=u[f-1][p]+1,l=u[f][p-1]+1,u[f][p]=h<l?h:l);return u},spliceOperationsFromEditDistances:function(t){for(var e=t.length-1,i=t[0].length-1,n=t[e][i],r=[];e>0||i>0;)if(0!==e)if(0!==i){var o=t[e-1][i-1],a=t[e-1][i],s=t[e][i-1],u=void 0;(u=a<s?a<o?a:o:s<o?s:o)===o?(o===n?r.push(0):(r.push(1),n=o),e--,i--):u===a?(r.push(3),e--,n=a):(r.push(2),i--,n=s)}else r.push(3),e--;else r.push(2),i--;return r.reverse(),r},calcSplices:function(t,e,i,n,r,o){var a=0,s=0,u=Math.min(i-e,o-r);if(0===e&&0===r&&(a=this.sharedPrefix(t,n,u)),i===t.length&&o===n.length&&(s=this.sharedSuffix(t,n,u-a)),r+=a,o-=s,(i-=s)-(e+=a)==0&&o-r==0)return[];if(e===i){for(var h=it(e,[],0);r<o;)h.removed.push(n[r++]);return[h]}if(r===o)return[it(e,[],i-e)];for(var l=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,e,i,n,r,o)),c=void 0,d=[],f=e,p=r,m=0;m<l.length;++m)switch(l[m]){case 0:c&&(d.push(c),c=void 0),f++,p++;break;case 1:c||(c=it(f,[],0)),c.addedCount++,f++,c.removed.push(n[p]),p++;break;case 2:c||(c=it(f,[],0)),c.addedCount++,f++;break;case 3:c||(c=it(f,[],0)),c.removed.push(n[p]),p++}return c&&d.push(c),d},sharedPrefix:function(t,e,i){for(var n=0;n<i;++n)if(!this.equals(t[n],e[n]))return n;return i},sharedSuffix:function(t,e,i){for(var n=t.length,r=e.length,o=0;o<i&&this.equals(t[--n],e[--r]);)o++;return o},calculateSplices:function(t,e){return this.calcSplices(t,0,t.length,e,0,e.length)},equals:function(t,e){return t===e}};var rt=new nt;function ot(t,e,i,n,r,o){return rt.calcSplices(t,e,i,n,r,o)}function at(t,e,i,n){for(var r,o,a,s,u=it(e,i,n),h=!1,l=0,c=0;c<t.length;c++){var d=t[c];if(d.index+=l,!h){var f=(r=u.index,o=u.index+u.removed.length,a=d.index,s=d.index+d.addedCount,o<a||s<r?-1:o===a||s===r?0:r<a?o<s?o-a:s-a:s<o?s-r:o-r);if(f>=0){t.splice(c,1),c--,l-=d.addedCount-d.removed.length,u.addedCount+=d.addedCount-f;var p=u.removed.length+d.removed.length-f;if(u.addedCount||p){var m=d.removed;if(u.index<d.index){var g=u.removed.slice(0,d.index-u.index);Array.prototype.push.apply(g,m),m=g}if(u.index+u.removed.length>d.index+d.addedCount){var b=u.removed.slice(d.index+d.addedCount-u.index);Array.prototype.push.apply(m,b)}u.removed=m,d.index<u.index&&(u.index=d.index)}else h=!0}else if(u.index<d.index){h=!0,t.splice(c,0,u),c++;var v=u.addedCount-u.removed.length;d.index+=v,l+=v}}}h||t.push(u)}function st(t,e){var i=[];return function(t,e){for(var i,n=[],r=0;r<e.length;r++){var o=e[r];switch(o.type){case"splice":at(n,o.index,o.removed.slice(),o.addedCount);break;case"add":case"update":case"delete":if(+(i=o.name)!=i>>>0)continue;var a=et(o.name);if(a<0)continue;at(n,a,[o.oldValue],"delete"===o.type?0:1);break;default:console.error("Unexpected record type: "+JSON.stringify(o))}}return n}(0,e).forEach((function(e){1!==e.addedCount||1!==e.removed.length?i=i.concat(ot(t,e.index,e.index+e.addedCount,e.removed,0,e.removed.length)):e.removed[0]!==t[e.index]&&i.push(e)})),i}var ut=J()(r=function(){function t(t,e){this.taskQueue=t,this.queued=!1,this.changeRecords=null,this.oldCollection=null,this.collection=e,this.lengthPropertyName=e instanceof Map||e instanceof Set?"size":"length"}return t.prototype.subscribe=function(t,e){this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)},t.prototype.addChangeRecord=function(t){if(this.hasSubscribers()||this.lengthObserver){if("splice"===t.type){var e=t.index,i=t.object.length;e>i?e=i-t.addedCount:e<0&&(e=i+t.removed.length+e-t.addedCount),e<0&&(e=0),t.index=e}null===this.changeRecords?this.changeRecords=[t]:this.changeRecords.push(t),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},t.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},t.prototype.reset=function(t){this.oldCollection=t,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},t.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new ht(this.collection))},t.prototype.call=function(){var t=this.changeRecords,e=this.oldCollection,i=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(i=e?this.collection instanceof Map||this.collection instanceof Set?function(t){for(var e,i,n,r=new Array(t.size),o=t.keys(),a=0,s=void 0;(s=o.next())&&!s.done;)r[a]=(e="added",i=t,n=s.value,{type:e,object:i,key:n,oldValue:void 0}),a++;return r}(e):ot(this.collection,0,this.collection.length,e,0,e.length):this.collection instanceof Map||this.collection instanceof Set?t:st(this.collection,t),this.callSubscribers(i)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},t}())||r,ht=J()(o=function(){function t(t){this.collection=t,this.lengthPropertyName=t instanceof Map||t instanceof Set?"size":"length",this.currentValue=t[this.lengthPropertyName]}return t.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},t.prototype.setValue=function(t){this.collection[this.lengthPropertyName]=t},t.prototype.subscribe=function(t,e){this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)},t.prototype.call=function(t){var e=this.currentValue;this.callSubscribers(t,e),this.currentValue=t},t}())||o,lt=Array.prototype,ct=lt.pop,dt=lt.push,ft=lt.reverse,pt=lt.shift,mt=lt.sort,gt=lt.splice,bt=lt.unshift;lt.__au_patched__?g.getLogger("array-observation").warn("Detected 2nd attempt of patching array from Aurelia binding. This is probably caused by dependency mismatch between core modules and a 3rd party plugin. Please see https://github.com/aurelia/cli/pull/906 if you are using webpack."):(Reflect.defineProperty(lt,"__au_patched__",{value:1}),lt.pop=function(){var t=this.length>0,e=ct.apply(this,arguments);return t&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:e}),e},lt.push=function(){var t=dt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),t},lt.reverse=function(){var t=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),t=this.slice());var e=ft.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(t),e},lt.shift=function(){var t=this.length>0,e=pt.apply(this,arguments);return t&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:e}),e},lt.sort=function(){var t=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),t=this.slice());var e=mt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(t),e},lt.splice=function(){var t=gt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:+arguments[0],removed:t,addedCount:arguments.length>2?arguments.length-2:0}),t},lt.unshift=function(){var t=bt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),t});var vt=function(t){function e(e,i){return M(this,t.call(this,e,i))}return x(e,t),e.for=function(t,i){return"__array_observer__"in i||Reflect.defineProperty(i,"__array_observer__",{value:e.create(t,i),enumerable:!1,configurable:!1}),i.__array_observer__},e.create=function(t,i){return new e(t,i)},e}(ut),yt=function(){function t(){this.isAssignable=!1}return t.prototype.evaluate=function(t,e,i){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},t.prototype.assign=function(t,e,i){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},t.prototype.toString=function(){return"undefined"==typeof FEATURE_NO_UNPARSER?Ht.unparse(this):Function.prototype.toString.call(this)},t}(),wt=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.expression=e,r.name=i,r.args=n,r}return x(e,t),e.prototype.evaluate=function(t,e){return this.expression.evaluate(t,e)},e.prototype.assign=function(t,e,i){return this.expression.assign(t,e,i)},e.prototype.accept=function(t){return t.visitBindingBehavior(this)},e.prototype.connect=function(t,e){this.expression.connect(t,e)},e.prototype.bind=function(t,e,i){this.expression.expression&&this.expression.bind&&this.expression.bind(t,e,i);var n=i.bindingBehaviors(this.name);if(!n)throw new Error('No BindingBehavior named "'+this.name+'" was found!');var r="behavior-"+this.name;if(t[r])throw new Error('A binding behavior named "'+this.name+'" has already been applied to "'+this.expression+'"');t[r]=n,n.bind.apply(n,[t,e].concat(Nt(e,this.args,t.lookupFunctions)))},e.prototype.unbind=function(t,e){var i="behavior-"+this.name;t[i].unbind(t,e),t[i]=null,this.expression.expression&&this.expression.unbind&&this.expression.unbind(t,e)},e}(yt),_t=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.expression=e,r.name=i,r.args=n,r.allArgs=[e].concat(n),r}return x(e,t),e.prototype.evaluate=function(t,e){var i=e.valueConverters(this.name);if(!i)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"toView"in i?i.toView.apply(i,Nt(t,this.allArgs,e)):this.allArgs[0].evaluate(t,e)},e.prototype.assign=function(t,e,i){var n=i.valueConverters(this.name);if(!n)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"fromView"in n&&(e=n.fromView.apply(n,[e].concat(Nt(t,this.args,i)))),this.allArgs[0].assign(t,e,i)},e.prototype.accept=function(t){return t.visitValueConverter(this)},e.prototype.connect=function(t,e){for(var i=this.allArgs,n=i.length;n--;)i[n].connect(t,e);var r=t.lookupFunctions.valueConverters(this.name);if(!r)throw new Error('No ValueConverter named "'+this.name+'" was found!');var o=r.signals;if(void 0!==o)for(n=o.length;n--;)yn(t,o[n])},e}(yt),Mt=function(t){function e(e,i){var n=M(this,t.call(this));return n.target=e,n.value=i,n.isAssignable=!0,n}return x(e,t),e.prototype.evaluate=function(t,e){return this.target.assign(t,this.value.evaluate(t,e))},e.prototype.accept=function(t){t.visitAssign(this)},e.prototype.connect=function(t,e){},e.prototype.assign=function(t,e){this.value.assign(t,e),this.target.assign(t,e)},e}(yt),xt=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.condition=e,r.yes=i,r.no=n,r}return x(e,t),e.prototype.evaluate=function(t,e){return this.condition.evaluate(t,e)?this.yes.evaluate(t,e):this.no.evaluate(t,e)},e.prototype.accept=function(t){return t.visitConditional(this)},e.prototype.connect=function(t,e){this.condition.connect(t,e),this.condition.evaluate(e)?this.yes.connect(t,e):this.no.connect(t,e)},e}(yt),St=function(t){function e(e){var i=M(this,t.call(this));return i.ancestor=e,i}return x(e,t),e.prototype.evaluate=function(t,e){for(var i=t.overrideContext,n=this.ancestor;n--&&i;)i=i.parentOverrideContext;return n<1&&i?i.bindingContext:void 0},e.prototype.accept=function(t){return t.visitAccessThis(this)},e.prototype.connect=function(t,e){},e}(yt),Tt=function(t){function e(e,i){var n=M(this,t.call(this));return n.name=e,n.ancestor=i,n.isAssignable=!0,n}return x(e,t),e.prototype.evaluate=function(t,e){return k(this.name,t,this.ancestor)[this.name]},e.prototype.assign=function(t,e){var i=k(this.name,t,this.ancestor);return i?i[this.name]=e:void 0},e.prototype.accept=function(t){return t.visitAccessScope(this)},e.prototype.connect=function(t,e){var i=k(this.name,e,this.ancestor);t.observeProperty(i,this.name)},e}(yt),At=function(t){function e(e,i){var n=M(this,t.call(this));return n.object=e,n.name=i,n.isAssignable=!0,n}return x(e,t),e.prototype.evaluate=function(t,e){var i=this.object.evaluate(t,e);return null==i?i:i[this.name]},e.prototype.assign=function(t,e){var i=this.object.evaluate(t);return null==i&&(i={},this.object.assign(t,i)),i[this.name]=e,e},e.prototype.accept=function(t){return t.visitAccessMember(this)},e.prototype.connect=function(t,e){this.object.connect(t,e);var i=this.object.evaluate(e);i&&t.observeProperty(i,this.name)},e}(yt),Ct=function(t){function e(e,i){var n=M(this,t.call(this));return n.object=e,n.key=i,n.isAssignable=!0,n}return x(e,t),e.prototype.evaluate=function(t,e){return function(t,e){if(Array.isArray(t))return t[parseInt(e,10)];if(t)return t[e];if(null==t)return;return t[e]}(this.object.evaluate(t,e),this.key.evaluate(t,e))},e.prototype.assign=function(t,e){return function(t,e,i){if(Array.isArray(t)){var n=parseInt(e,10);t.length<=n&&(t.length=n+1),t[n]=i}else t[e]=i;return i}(this.object.evaluate(t),this.key.evaluate(t),e)},e.prototype.accept=function(t){return t.visitAccessKeyed(this)},e.prototype.connect=function(t,e){this.object.connect(t,e);var i=this.object.evaluate(e);if(i instanceof Object){this.key.connect(t,e);var n=this.key.evaluate(e);null==n||Array.isArray(i)&&"number"==typeof n||t.observeProperty(i,n)}},e}(yt),Et=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.name=e,r.args=i,r.ancestor=n,r}return x(e,t),e.prototype.evaluate=function(t,e,i){var n=Nt(t,this.args,e),r=k(this.name,t,this.ancestor),o=zt(r,this.name,i);if(o)return o.apply(r,n)},e.prototype.accept=function(t){return t.visitCallScope(this)},e.prototype.connect=function(t,e){for(var i=this.args,n=i.length;n--;)i[n].connect(t,e)},e}(yt),kt=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.object=e,r.name=i,r.args=n,r}return x(e,t),e.prototype.evaluate=function(t,e,i){var n=this.object.evaluate(t,e),r=Nt(t,this.args,e),o=zt(n,this.name,i);if(o)return o.apply(n,r)},e.prototype.accept=function(t){return t.visitCallMember(this)},e.prototype.connect=function(t,e){if(this.object.connect(t,e),zt(this.object.evaluate(e),this.name,!1))for(var i=this.args,n=i.length;n--;)i[n].connect(t,e)},e}(yt),Ot=function(t){function e(e,i){var n=M(this,t.call(this));return n.func=e,n.args=i,n}return x(e,t),e.prototype.evaluate=function(t,e,i){var n=this.func.evaluate(t,e);if("function"==typeof n)return n.apply(null,Nt(t,this.args,e));if(i||null!=n)throw new Error(this.func+" is not a function")},e.prototype.accept=function(t){return t.visitCallFunction(this)},e.prototype.connect=function(t,e){if(this.func.connect(t,e),"function"==typeof this.func.evaluate(e))for(var i=this.args,n=i.length;n--;)i[n].connect(t,e)},e}(yt),Pt=function(t){function e(e,i,n){var r=M(this,t.call(this));return r.operation=e,r.left=i,r.right=n,r}return x(e,t),e.prototype.evaluate=function(t,e){var i=this.left.evaluate(t,e);switch(this.operation){case"&&":return i&&this.right.evaluate(t,e);case"||":return i||this.right.evaluate(t,e)}var n=this.right.evaluate(t,e);switch(this.operation){case"==":return i==n;case"===":return i===n;case"!=":return i!=n;case"!==":return i!==n;case"instanceof":return"function"==typeof n&&i instanceof n;case"in":return"object"===(void 0===n?"undefined":_(n))&&null!==n&&i in n}if(null===i||null===n||void 0===i||void 0===n){switch(this.operation){case"+":return null!=i?i:null!=n?n:0;case"-":return null!=i?i:null!=n?0-n:0}return null}switch(this.operation){case"+":return function(t,e){if(null!==t&&null!==e)return"string"==typeof t&&"string"!=typeof e?t+e.toString():"string"!=typeof t&&"string"==typeof e?t.toString()+e:t+e;if(null!==t)return t;if(null!==e)return e;return 0}(i,n);case"-":return i-n;case"*":return i*n;case"/":return i/n;case"%":return i%n;case"<":return i<n;case">":return i>n;case"<=":return i<=n;case">=":return i>=n;case"^":return i^n}throw new Error("Internal error ["+this.operation+"] not handled")},e.prototype.accept=function(t){return t.visitBinary(this)},e.prototype.connect=function(t,e){this.left.connect(t,e);var i=this.left.evaluate(e);"&&"===this.operation&&!i||"||"===this.operation&&i||this.right.connect(t,e)},e}(yt),It=function(t){function e(e,i){var n=M(this,t.call(this));return n.operation=e,n.expression=i,n}return x(e,t),e.prototype.evaluate=function(t,e){switch(this.operation){case"!":return!this.expression.evaluate(t,e);case"typeof":return _(this.expression.evaluate(t,e));case"void":return void this.expression.evaluate(t,e)}throw new Error("Internal error ["+this.operation+"] not handled")},e.prototype.accept=function(t){return t.visitPrefix(this)},e.prototype.connect=function(t,e){this.expression.connect(t,e)},e}(yt),jt=function(t){function e(e){var i=M(this,t.call(this));return i.value=e,i}return x(e,t),e.prototype.evaluate=function(t,e){return this.value},e.prototype.accept=function(t){return t.visitLiteralPrimitive(this)},e.prototype.connect=function(t,e){},e}(yt),Rt=function(t){function e(e){var i=M(this,t.call(this));return i.value=e,i}return x(e,t),e.prototype.evaluate=function(t,e){return this.value},e.prototype.accept=function(t){return t.visitLiteralString(this)},e.prototype.connect=function(t,e){},e}(yt),Dt=function(t){function e(e,i,n,r){var o=M(this,t.call(this));if(o.cooked=e,o.expressions=i||[],o.length=o.expressions.length,o.tagged=void 0!==r,o.tagged)if(o.cooked.raw=n,o.tag=r,r instanceof Tt)o.contextType="Scope";else{if(!(r instanceof At||r instanceof Ct))throw new Error(o.tag+" is not a valid template tag");o.contextType="Object"}return o}return x(e,t),e.prototype.getScopeContext=function(t,e){return k(this.tag.name,t,this.tag.ancestor)},e.prototype.getObjectContext=function(t,e){return this.tag.object.evaluate(t,e)},e.prototype.evaluate=function(t,e,i){for(var n=new Array(this.length),r=0;r<this.length;r++)n[r]=this.expressions[r].evaluate(t,e);if(this.tagged){var o=this.tag.evaluate(t,e);if("function"==typeof o){var a=this["get"+this.contextType+"Context"](t,e);return o.call.apply(o,[a,this.cooked].concat(n))}if(!i)return null;throw new Error(this.tag+" is not a function")}for(var s=this.cooked[0],u=0;u<this.length;u++)s=String.prototype.concat(s,n[u],this.cooked[u+1]);return s},e.prototype.accept=function(t){return t.visitLiteralTemplate(this)},e.prototype.connect=function(t,e){for(var i=0;i<this.length;i++)this.expressions[i].connect(t,e);this.tagged&&this.tag.connect(t,e)},e}(yt),Lt=function(t){function e(e){var i=M(this,t.call(this));return i.elements=e,i}return x(e,t),e.prototype.evaluate=function(t,e){for(var i=this.elements,n=[],r=0,o=i.length;r<o;++r)n[r]=i[r].evaluate(t,e);return n},e.prototype.accept=function(t){return t.visitLiteralArray(this)},e.prototype.connect=function(t,e){for(var i=this.elements.length,n=0;n<i;n++)this.elements[n].connect(t,e)},e}(yt),Bt=function(t){function e(e,i){var n=M(this,t.call(this));return n.keys=e,n.values=i,n}return x(e,t),e.prototype.evaluate=function(t,e){for(var i={},n=this.keys,r=this.values,o=0,a=n.length;o<a;++o)i[n[o]]=r[o].evaluate(t,e);return i},e.prototype.accept=function(t){return t.visitLiteralObject(this)},e.prototype.connect=function(t,e){for(var i=this.keys.length,n=0;n<i;n++)this.values[n].connect(t,e)},e}(yt);function Nt(t,e,i){for(var n=e.length,r=[],o=0;o<n;o++)r[o]=e[o].evaluate(t,i);return r}function zt(t,e,i){var n=null==t?null:t[e];if("function"==typeof n)return n;if(!i&&null==n)return null;throw new Error(e+" is not a function")}var Ht=null;"undefined"==typeof FEATURE_NO_UNPARSER&&(Ht=function(){function t(t){this.buffer=t}return t.unparse=function(t){var e=[],i=new Ht(e);return t.accept(i),e.join("")},t.prototype.write=function(t){this.buffer.push(t)},t.prototype.writeArgs=function(t){this.write("(");for(var e=0,i=t.length;e<i;++e)0!==e&&this.write(","),t[e].accept(this);this.write(")")},t.prototype.visitBindingBehavior=function(t){var e=t.args;t.expression.accept(this),this.write("&"+t.name);for(var i=0,n=e.length;i<n;++i)this.write(":"),e[i].accept(this)},t.prototype.visitValueConverter=function(t){var e=t.args;t.expression.accept(this),this.write("|"+t.name);for(var i=0,n=e.length;i<n;++i)this.write(":"),e[i].accept(this)},t.prototype.visitAssign=function(t){t.target.accept(this),this.write("="),t.value.accept(this)},t.prototype.visitConditional=function(t){t.condition.accept(this),this.write("?"),t.yes.accept(this),this.write(":"),t.no.accept(this)},t.prototype.visitAccessThis=function(t){if(0!==t.ancestor){this.write("$parent");for(var e=t.ancestor-1;e--;)this.write(".$parent")}else this.write("$this")},t.prototype.visitAccessScope=function(t){for(var e=t.ancestor;e--;)this.write("$parent.");this.write(t.name)},t.prototype.visitAccessMember=function(t){t.object.accept(this),this.write("."+t.name)},t.prototype.visitAccessKeyed=function(t){t.object.accept(this),this.write("["),t.key.accept(this),this.write("]")},t.prototype.visitCallScope=function(t){for(var e=t.ancestor;e--;)this.write("$parent.");this.write(t.name),this.writeArgs(t.args)},t.prototype.visitCallFunction=function(t){t.func.accept(this),this.writeArgs(t.args)},t.prototype.visitCallMember=function(t){t.object.accept(this),this.write("."+t.name),this.writeArgs(t.args)},t.prototype.visitPrefix=function(t){this.write("("+t.operation),t.operation.charCodeAt(0)>=97&&this.write(" "),t.expression.accept(this),this.write(")")},t.prototype.visitBinary=function(t){t.left.accept(this),105===t.operation.charCodeAt(0)?this.write(" "+t.operation+" "):this.write(t.operation),t.right.accept(this)},t.prototype.visitLiteralPrimitive=function(t){this.write(""+t.value)},t.prototype.visitLiteralArray=function(t){var e=t.elements;this.write("[");for(var i=0,n=e.length;i<n;++i)0!==i&&this.write(","),e[i].accept(this);this.write("]")},t.prototype.visitLiteralObject=function(t){var e=t.keys,i=t.values;this.write("{");for(var n=0,r=e.length;n<r;++n)0!==n&&this.write(","),this.write("'"+e[n]+"':"),i[n].accept(this);this.write("}")},t.prototype.visitLiteralString=function(t){var e=t.value.replace(/'/g,"'");this.write("'"+e+"'")},t.prototype.visitLiteralTemplate=function(t){var e=t.cooked,i=t.expressions,n=i.length;this.write("`"),this.write(e[0]);for(var r=0;r<n;r++)i[r].accept(this),this.write(e[r+1]);this.write("`")},t}());!function(){function t(){}t.prototype.cloneExpressionArray=function(t){for(var e=[],i=t.length;i--;)e[i]=t[i].accept(this);return e},t.prototype.visitBindingBehavior=function(t){return new wt(t.expression.accept(this),t.name,this.cloneExpressionArray(t.args))},t.prototype.visitValueConverter=function(t){return new _t(t.expression.accept(this),t.name,this.cloneExpressionArray(t.args))},t.prototype.visitAssign=function(t){return new Mt(t.target.accept(this),t.value.accept(this))},t.prototype.visitConditional=function(t){return new xt(t.condition.accept(this),t.yes.accept(this),t.no.accept(this))},t.prototype.visitAccessThis=function(t){return new St(t.ancestor)},t.prototype.visitAccessScope=function(t){return new Tt(t.name,t.ancestor)},t.prototype.visitAccessMember=function(t){return new At(t.object.accept(this),t.name)},t.prototype.visitAccessKeyed=function(t){return new Ct(t.object.accept(this),t.key.accept(this))},t.prototype.visitCallScope=function(t){return new Et(t.name,this.cloneExpressionArray(t.args),t.ancestor)},t.prototype.visitCallFunction=function(t){return new Ot(t.func.accept(this),this.cloneExpressionArray(t.args))},t.prototype.visitCallMember=function(t){return new kt(t.object.accept(this),t.name,this.cloneExpressionArray(t.args))},t.prototype.visitUnary=function(t){return new It(prefix.operation,prefix.expression.accept(this))},t.prototype.visitBinary=function(t){return new Pt(t.operation,t.left.accept(this),t.right.accept(this))},t.prototype.visitLiteralPrimitive=function(t){return new jt(t)},t.prototype.visitLiteralArray=function(t){return new Lt(this.cloneExpressionArray(t.elements))},t.prototype.visitLiteralObject=function(t){return new Bt(t.keys,this.cloneExpressionArray(t.values))},t.prototype.visitLiteralString=function(t){return new Rt(t.value)},t.prototype.visitLiteralTemplate=function(t){return new Dt(t.cooked,this.cloneExpressionArray(t.expressions),t.raw,t.tag&&t.tag.accept(this))}}();var Ft={oneTime:0,toView:1,oneWay:1,twoWay:2,fromView:3},Vt=function(){function t(){this.cache=Object.create(null)}return t.prototype.parse=function(t){return t=t||"",this.cache[t]||(this.cache[t]=new Gt(t).parseBindingBehavior())},t}(),Ut=String.fromCharCode,Gt=function(){function t(t){this.idx=0,this.start=0,this.src=t,this.len=t.length,this.tkn=se,this.val=void 0,this.ch=t.charCodeAt(0)}return w(t,[{key:"raw",get:function(){return this.src.slice(this.start,this.idx)}}]),t.prototype.parseBindingBehavior=function(){this.nextToken(),this.tkn&ne&&this.err("Invalid start of expression");for(var t=this.parseValueConverter();this.opt(De);)t=new wt(t,this.val,this.parseVariadicArgs());return this.tkn!==se&&this.err("Unconsumed token "+this.raw),t},t.prototype.parseValueConverter=function(){for(var t=this.parseExpression();this.opt(Le);)t=new _t(t,this.val,this.parseVariadicArgs());return t},t.prototype.parseVariadicArgs=function(){this.nextToken();for(var t=[];this.opt(je);)t.push(this.parseExpression());return t},t.prototype.parseExpression=function(){for(var t=this.idx,e=this.parseConditional();this.tkn===ni;)e.isAssignable||this.err("Expression "+this.src.slice(t,this.start)+" is not assignable"),this.nextToken(),t=this.idx,e=new Mt(e,this.parseConditional());return e},t.prototype.parseConditional=function(){var t=this.parseBinary(0);if(this.opt(Re)){var e=this.parseExpression();this.expect(je),t=new xt(t,e,this.parseExpression())}return t},t.prototype.parseBinary=function(t){for(var e=this.parseLeftHandSide(0);this.tkn&fe;){var i=this.tkn;if((i&ie)<=t)break;this.nextToken(),e=new Pt(ai[i&ee],e,this.parseBinary(i&ie))}return e},t.prototype.parseLeftHandSide=function(t){var e=void 0;t:switch(this.tkn){case Ke:return this.nextToken(),this.parseLeftHandSide(0);case Xe:return this.nextToken(),new Pt("-",new jt(0),this.parseLeftHandSide(0));case ri:case Qe:case Je:var i=ai[this.tkn&ee];return this.nextToken(),new It(i,this.parseLeftHandSide(0));case Se:do{if(this.nextToken(),t++,this.opt(Ce))this.tkn===Ce&&this.err();else{if(this.tkn&oe){e=new St(t&te),t=t&Qt|Wt;break t}this.err()}}while(this.tkn===Se);case ue:e=new Tt(this.val,t&te),this.nextToken(),t=t&Qt|Zt;break;case xe:this.nextToken(),e=new St(0),t=t&Qt|Wt;break;case Te:this.nextToken(),e=this.parseExpression(),this.expect(ke),t=Xt;break;case Pe:this.nextToken();var n=[];if(this.tkn!==Ie)do{n.push(this.parseExpression())}while(this.opt(Oe));this.expect(Ie),e=new Lt(n),t=Xt;break;case Ae:var r=[],o=[];for(this.nextToken();this.tkn!==Ee;){if(this.tkn&he){var a=this.ch,s=this.tkn,u=this.idx;r.push(this.val),this.nextToken(),this.opt(je)?o.push(this.parseExpression()):(this.ch=a,this.tkn=s,this.idx=u,o.push(this.parseLeftHandSide(Qt)))}else this.tkn&le?(r.push(this.val),this.nextToken(),this.expect(je),o.push(this.parseExpression())):this.err();this.tkn!==Ee&&this.expect(Oe)}this.expect(Ee),e=new Bt(r,o),t=Xt;break;case de:e=new Rt(this.val),this.nextToken(),t=Xt;break;case be:e=new Dt([this.val]),this.nextToken(),t=Xt;break;case ve:e=this.parseTemplate(0),t=Xt;break;case ce:e=new jt(this.val),this.nextToken();break;case _e:case Me:case we:case ye:e=new jt(ai[this.tkn&ee]),this.nextToken(),t=Xt;break;default:this.idx>=this.len?this.err("Unexpected end of expression"):this.err()}if(t&Qt)return e;for(var h=this.val;this.tkn&ge;)switch(this.tkn){case Ce:if(this.nextToken(),this.tkn&he||this.err(),h=this.val,this.nextToken(),t=t&Xt|(t&(Wt|Zt))<<1|t&Yt|(t&$t)>>1|(t&Kt)>>2,this.tkn===Te)continue;e=t&Zt?new Tt(h,e.ancestor):new At(e,h);continue;case Pe:this.nextToken(),t=$t,e=new Ct(e,this.parseExpression()),this.expect(Ie);break;case Te:this.nextToken();for(var l=[];this.tkn!==ke&&(l.push(this.parseExpression()),this.opt(Oe)););this.expect(ke),e=t&Zt?new Et(h,l,e.ancestor):t&(Yt|Xt)?new kt(e,h,l):new Ot(e,l),t=Kt;break;case be:e=new Dt([this.val],[],[this.raw],e),this.nextToken();break;case ve:e=this.parseTemplate(t|Jt,e)}return e},t.prototype.parseTemplate=function(t,e){var i=[this.val],n=t&Jt?[this.raw]:void 0;this.expect(ve);for(var r=[this.parseExpression()];(this.tkn=this.scanTemplateTail())!==be;)i.push(this.val),t&Jt&&n.push(this.raw),this.expect(ve),r.push(this.parseExpression());return i.push(this.val),t&Jt&&n.push(this.raw),this.nextToken(),new Dt(i,r,n,e)},t.prototype.nextToken=function(){for(;this.idx<this.len;)if(this.ch<=32)this.next();else{if(this.start=this.idx,36===this.ch||this.ch>=97&&this.ch<=122)return void(this.tkn=this.scanIdentifier());if(null!==(this.tkn=gi[this.ch](this)))return}this.tkn=se},t.prototype.next=function(){return this.ch=this.src.charCodeAt(++this.idx)},t.prototype.scanIdentifier=function(){for(;pi.has(this.next())||this.ch>127&&mi[this.ch];);return oi[this.val=this.raw]||ue},t.prototype.scanNumber=function(t){if(t)this.val=0;else for(this.val=this.ch-48;this.next()<=57&&this.ch>=48;)this.val=10*this.val+this.ch-48;if(t||46===this.ch){t||this.next();for(var e=this.idx,i=this.ch-48;this.next()<=57&&this.ch>=48;)i=10*i+this.ch-48;this.val=this.val+i/Math.pow(10,this.idx-e)}if(101===this.ch||69===this.ch){var n=this.idx;for(this.next(),45!==this.ch&&43!==this.ch||this.next(),this.ch>=48&&this.ch<=57||(this.idx=n,this.err("Invalid exponent"));this.next()<=57&&this.ch>=48;);this.val=parseFloat(this.src.slice(this.start,this.idx))}return ce},t.prototype.scanString=function(){var t=this.ch;this.next();for(var e=void 0,i=this.idx;this.ch!==t;)if(92===this.ch){e||(e=[]),e.push(this.src.slice(i,this.idx)),this.next();var n=void 0;if(117===this.ch)if(this.next(),this.idx+4<this.len){var r=this.src.slice(this.idx,this.idx+4);/[A-Z0-9]{4}/i.test(r)||this.err("Invalid unicode escape [\\u"+r+"]"),n=parseInt(r,16),this.idx+=4,this.ch=this.src.charCodeAt(this.idx)}else this.err();else n=qt(this.ch),this.next();e.push(Ut(n)),i=this.idx}else 0===this.ch?this.err("Unterminated quote"):this.next();var o=this.src.slice(i,this.idx);this.next();var a=o;return null!=e&&(e.push(o),a=e.join("")),this.val=a,de},t.prototype.scanTemplate=function(){for(var t=!0,e="";96!==this.next();)if(36===this.ch){if(this.idx+1<this.len&&123===this.src.charCodeAt(this.idx+1)){this.idx++,t=!1;break}e+="$"}else 92===this.ch?e+=Ut(qt(this.next())):e+=Ut(this.ch);return this.next(),this.val=e,t?be:ve},t.prototype.scanTemplateTail=function(){return this.idx>=this.len&&this.err("Unterminated template"),this.idx--,this.scanTemplate()},t.prototype.err=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected token "+this.raw,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.start;throw new Error("Parser Error: "+t+" at column "+e+" in expression ["+this.src+"]")},t.prototype.opt=function(t){return this.tkn===t&&(this.nextToken(),!0)},t.prototype.expect=function(t){this.tkn===t?this.nextToken():this.err("Missing expected token "+ai[t&ee],this.idx)},t}();function qt(t){switch(t){case 102:return 12;case 110:return 10;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}var Wt=1024,Zt=2048,Yt=4096,$t=8192,Kt=16384,Xt=32768,Qt=65536,Jt=1<<17,te=511,ee=63,ie=448,ne=2048,re=4096,oe=16384,ae=32768,se=65536|oe|ne,ue=1<<17,he=ue|ae,le=1<<18,ce=1<<19|le,de=1<<20|le,fe=1<<21,pe=1<<22,me=1<<23,ge=1<<24,be=1<<25|ge,ve=1<<26|ge,ye=32768|le,we=32769|le,_e=32770|le,Me=32771|le,xe=4|he,Se=5|he,Te=8198|oe|ge,Ae=8199,Ce=8388616|ge,Ee=9|oe|re|ne,ke=10|oe|re|ne,Oe=11|oe,Pe=8204|oe|me|ge,Ie=4109|ne,je=14|oe,Re=15,De=18|oe,Le=19|oe,Be=84|fe,Ne=149|fe,ze=214|fe,He=279|fe,Fe=280|fe,Ve=281|fe,Ue=282|fe,Ge=347|fe,qe=348|fe,We=349|fe,Ze=350|fe,Ye=351|fe|ae,$e=352|fe|ae,Ke=417|fe|pe,Xe=418|fe|pe,Qe=4227107,Je=4227108,ti=485|fe,ei=486|fe,ii=487|fe,ni=40,ri=4194345,oi=Object.create(null);oi.true=we,oi.null=_e,oi.false=ye,oi.undefined=Me,oi.$this=xe,oi.$parent=Se,oi.in=Ye,oi.instanceof=$e,oi.typeof=Qe,oi.void=Je;var ai=[!1,!0,null,void 0,"$this","$parent","(","{",".","}",")",",","[","]",":","?","'",'"',"&","|","||","&&","^","==","!=","===","!==","<",">","<=",">=","in","instanceof","+","-","typeof","void","*","%","/","=","!"],si=[36,0,48,58,65,91,95,0,97,123],ui=[36,0,65,91,95,0,97,123,170,0,186,0,192,215,216,247,248,697,736,741,7424,7462,7468,7517,7522,7526,7531,7544,7545,7615,7680,7936,8305,0,8319,0,8336,8349,8490,8492,8498,0,8526,0,8544,8585,11360,11392,42786,42888,42891,42927,42928,42936,42999,43008,43824,43867,43868,43877,64256,64263,65313,65339,65345,65371],hi=[48,58],li=[0,33,127,161];function ci(t,e,i,n){for(var r=i.length,o=0;o<r;o+=2){var a=i[o],s=i[o+1];if(s=s>0?s:a+1,t)for(var u=a;u<s;)t[u]=n,u++;if(e)for(var h=a;h<s;h++)e.add(h)}}function di(t){return function(e){return e.next(),t}}function fi(t){return t.err("Unexpected character ["+Ut(t.ch)+"]"),null}var pi=new Set;ci(null,pi,si,!0);var mi=new Uint8Array(65535);ci(mi,null,ui,1),ci(mi,null,hi,1);for(var gi=new Array(65535),bi=0;bi<65535;)gi[bi]=fi,bi++;ci(gi,null,li,(function(t){return t.next(),null})),ci(gi,null,ui,(function(t){return t.scanIdentifier()})),ci(gi,null,hi,(function(t){return t.scanNumber(!1)})),gi[34]=gi[39]=function(t){return t.scanString()},gi[96]=function(t){return t.scanTemplate()},gi[33]=function(t){return 61!==t.next()?ri:61!==t.next()?Fe:(t.next(),Ue)},gi[61]=function(t){return 61!==t.next()?ni:61!==t.next()?He:(t.next(),Ve)},gi[38]=function(t){return 38!==t.next()?De:(t.next(),Ne)},gi[124]=function(t){return 124!==t.next()?Le:(t.next(),Be)},gi[46]=function(t){return t.next()<=57&&t.ch>=48?t.scanNumber(!0):Ce},gi[60]=function(t){return 61!==t.next()?Ge:(t.next(),We)},gi[62]=function(t){return 61!==t.next()?qe:(t.next(),Ze)},gi[37]=di(ei),gi[40]=di(Te),gi[41]=di(ke),gi[42]=di(ti),gi[43]=di(Ke),gi[44]=di(Oe),gi[45]=di(Xe),gi[47]=di(ii),gi[58]=di(je),gi[63]=di(Re),gi[91]=di(Pe),gi[93]=di(Ie),gi[94]=di(ze),gi[123]=di(Ae),gi[125]=di(Ee);var vi=Map.prototype;var yi=function(t){function e(e,i){return M(this,t.call(this,e,i))}return x(e,t),e.for=function(t,i){return"__map_observer__"in i||Reflect.defineProperty(i,"__map_observer__",{value:e.create(t,i),enumerable:!1,configurable:!1}),i.__map_observer__},e.create=function(t,i){var n=new e(t,i),r=vi;return r.set===i.set&&r.delete===i.delete&&r.clear===i.clear||(r={set:i.set,delete:i.delete,clear:i.clear}),i.set=function(){var t=i.has(arguments[0]),e=t?"update":"add",o=i.get(arguments[0]),a=r.set.apply(i,arguments);return t&&o===i.get(arguments[0])||n.addChangeRecord({type:e,object:i,key:arguments[0],oldValue:o}),a},i.delete=function(){var t=i.has(arguments[0]),e=i.get(arguments[0]),o=r.delete.apply(i,arguments);return t&&n.addChangeRecord({type:"delete",object:i,key:arguments[0],oldValue:e}),o},i.clear=function(){var t=r.clear.apply(i,arguments);return n.addChangeRecord({type:"clear",object:i}),t},n},e}(ut);function wi(t){return t.path&&t.path[0]||t.deepPath&&t.deepPath[0]||t.target}function _i(){this.standardStopPropagation(),this.propagationStopped=!0}function Mi(t){t.propagationStopped=!1;for(var e=wi(t),i=[];e;){if(e.capturedCallbacks){var n=e.capturedCallbacks[t.type];n&&(t.stopPropagation!==_i&&(t.standardStopPropagation=t.stopPropagation,t.stopPropagation=_i),i.push(n))}e=e.parentNode}for(var r=i.length-1;r>=0&&!t.propagationStopped;r--){var o=i[r];"handleEvent"in o?o.handleEvent(t):o(t)}}var xi=function(){function t(t){this.eventName=t,this.count=0}return t.prototype.increment=function(){this.count++,1===this.count&&b.b.addEventListener(this.eventName,Mi,!0)},t.prototype.decrement=function(){this.count--,0===this.count&&b.b.removeEventListener(this.eventName,Mi,!0)},t}();function Si(t){t.propagationStopped=!1;for(var e=wi(t);e&&!t.propagationStopped;){if(e.delegatedCallbacks){var i=e.delegatedCallbacks[t.type];i&&(t.stopPropagation!==_i&&(t.standardStopPropagation=t.stopPropagation,t.stopPropagation=_i),"handleEvent"in i?i.handleEvent(t):i(t))}e=e.parentNode}}var Ti=function(){function t(t){this.eventName=t,this.count=0}return t.prototype.increment=function(){this.count++,1===this.count&&b.b.addEventListener(this.eventName,Si,!1)},t.prototype.decrement=function(){this.count--,0===this.count&&b.b.removeEventListener(this.eventName,Si,!1)},t}(),Ai=function(){function t(t,e,i){this.entry=t,this.lookup=e,this.targetEvent=i}return t.prototype.dispose=function(){this.entry.decrement(),this.lookup[this.targetEvent]=null},t}(),Ci=function(){function t(t,e,i){this.target=t,this.targetEvent=e,this.callback=i}return t.prototype.dispose=function(){this.target.removeEventListener(this.targetEvent,this.callback)},t}(),Ei=function(){function t(){this.delegatedHandlers={},this.capturedHandlers={}}return t.prototype.subscribe=function(t,e,i,n,r){var o=void 0,a=void 0,s=void 0;if(n===ki.bubbling){o=this.delegatedHandlers,s=o[e]||(o[e]=new Ti(e));var u=t.delegatedCallbacks||(t.delegatedCallbacks={});return s.increment(),u[e]=i,!0===r?new Ai(s,u,e):function(){s.decrement(),u[e]=null}}if(n===ki.capturing){a=this.capturedHandlers,s=a[e]||(a[e]=new xi(e));var h=t.capturedCallbacks||(t.capturedCallbacks={});return s.increment(),h[e]=i,!0===r?new Ai(s,h,e):function(){s.decrement(),h[e]=null}}return t.addEventListener(e,i),!0===r?new Ci(t,e,i):function(){t.removeEventListener(e,i)}},t}(),ki={none:0,capturing:1,bubbling:2},Oi=function(){function t(){this.elementHandlerLookup={},this.eventStrategyLookup={},this.registerElementConfig({tagName:"input",properties:{value:["change","input"],checked:["change","input"],files:["change","input"]}}),this.registerElementConfig({tagName:"textarea",properties:{value:["change","input"]}}),this.registerElementConfig({tagName:"select",properties:{value:["change"]}}),this.registerElementConfig({tagName:"content editable",properties:{value:["change","input","blur","keyup","paste"]}}),this.registerElementConfig({tagName:"scrollable element",properties:{scrollTop:["scroll"],scrollLeft:["scroll"]}}),this.defaultEventStrategy=new Ei}return t.prototype.registerElementConfig=function(t){var e=t.tagName.toLowerCase(),i=t.properties,n=void 0,r=this.elementHandlerLookup[e]={};for(n in i)i.hasOwnProperty(n)&&(r[n]=i[n])},t.prototype.registerEventStrategy=function(t,e){this.eventStrategyLookup[t]=e},t.prototype.getElementHandler=function(t,e){var i=void 0,n=this.elementHandlerLookup;if(t.tagName){if(n[i=t.tagName.toLowerCase()]&&n[i][e])return new Pi(n[i][e]);if("textContent"===e||"innerHTML"===e)return new Pi(n["content editable"].value);if("scrollTop"===e||"scrollLeft"===e)return new Pi(n["scrollable element"][e])}return null},t.prototype.addEventListener=function(t,e,i,n,r){return(this.eventStrategyLookup[e]||this.defaultEventStrategy).subscribe(t,e,i,n,r)},t}(),Pi=function(){function t(t){this.events=t,this.element=null,this.handler=null}return t.prototype.subscribe=function(t,e){this.element=t,this.handler=e;for(var i=this.events,n=0,r=i.length;r>n;++n)t.addEventListener(i[n],e)},t.prototype.dispose=function(){if(null!==this.element){for(var t=this.element,e=this.handler,i=this.events,n=0,r=i.length;r>n;++n)t.removeEventListener(i[n],e);this.element=this.handler=null}},t}(),Ii=function(){function t(){this.tracked=[],this.checkDelay=120}return t.prototype.addProperty=function(t){var e=this.tracked;e.push(t),1===e.length&&this.scheduleDirtyCheck()},t.prototype.removeProperty=function(t){var e=this.tracked;e.splice(e.indexOf(t),1)},t.prototype.scheduleDirtyCheck=function(){var t=this;setTimeout((function(){return t.check()}),this.checkDelay)},t.prototype.check=function(){for(var t=this.tracked,e=t.length;e--;){var i=t[e];i.isDirty()&&i.call()}t.length&&this.scheduleDirtyCheck()},t}(),ji=J()(a=function(){function t(t,e,i){this.dirtyChecker=t,this.obj=e,this.propertyName=i}return t.prototype.getValue=function(){return this.obj[this.propertyName]},t.prototype.setValue=function(t){this.obj[this.propertyName]=t},t.prototype.call=function(){var t=this.oldValue,e=this.getValue();this.callSubscribers(e,t),this.oldValue=e},t.prototype.isDirty=function(){return this.oldValue!==this.obj[this.propertyName]},t.prototype.subscribe=function(t,e){this.hasSubscribers()||(this.oldValue=this.getValue(),this.dirtyChecker.addProperty(this)),this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)&&!this.hasSubscribers()&&this.dirtyChecker.removeProperty(this)},t}())||a,Ri=g.getLogger("property-observation"),Di={getValue:function(t,e){return t[e]},setValue:function(t,e,i){e[i]=t}},Li=function(){function t(t,e){this.doNotCache=!0,this.primitive=t,this.propertyName=e}return t.prototype.getValue=function(){return this.primitive[this.propertyName]},t.prototype.setValue=function(){var t=_(this.primitive);throw new Error("The "+this.propertyName+" property of a "+t+" ("+this.primitive+") cannot be assigned.")},t.prototype.subscribe=function(){},t.prototype.unsubscribe=function(){},t}(),Bi=J()(s=function(){function t(t,e,i){this.taskQueue=t,this.obj=e,this.propertyName=i,this.queued=!1,this.observing=!1}return t.prototype.getValue=function(){return this.obj[this.propertyName]},t.prototype.setValue=function(t){this.obj[this.propertyName]=t},t.prototype.getterValue=function(){return this.currentValue},t.prototype.setterValue=function(t){var e=this.currentValue;e!==t&&(this.queued||(this.oldValue=e,this.queued=!0,this.taskQueue.queueMicroTask(this)),this.currentValue=t)},t.prototype.call=function(){var t=this.oldValue,e=this.currentValue;this.queued=!1,this.callSubscribers(e,t)},t.prototype.subscribe=function(t,e){this.observing||this.convertProperty(),this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)},t.prototype.convertProperty=function(){this.observing=!0,this.currentValue=this.obj[this.propertyName],this.setValue=this.setterValue,this.getValue=this.getterValue,Reflect.defineProperty(this.obj,this.propertyName,{configurable:!0,enumerable:!(this.propertyName in this.obj)||this.obj.propertyIsEnumerable(this.propertyName),get:this.getValue.bind(this),set:this.setValue.bind(this)})||Ri.warn("Cannot observe property '"+this.propertyName+"' of object",this.obj)},t}())||s,Ni=function(){function t(t,e,i){this.element=t,this.propertyName=e,this.attributeName=i}return t.prototype.getValue=function(){return this.element.getAttributeNS("http://www.w3.org/1999/xlink",this.attributeName)},t.prototype.setValue=function(t){return this.element.setAttributeNS("http://www.w3.org/1999/xlink",this.attributeName,t)},t.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},t}(),zi={getValue:function(t,e){return t.getAttribute(e)},setValue:function(t,e,i){null==t?e.removeAttribute(i):e.setAttribute(i,t)}},Hi=function(){function t(t,e){this.element=t,this.propertyName=e}return t.prototype.getValue=function(){return this.element.getAttribute(this.propertyName)},t.prototype.setValue=function(t){return null==t?this.element.removeAttribute(this.propertyName):this.element.setAttribute(this.propertyName,t)},t.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},t}(),Fi=function(){function t(t,e){this.element=t,this.propertyName=e,this.styles=null,this.version=0}return t.prototype.getValue=function(){return this.element.style.cssText},t.prototype._setProperty=function(t,e){var i="";null!=e&&"function"==typeof e.indexOf&&-1!==e.indexOf("!important")&&(i="important",e=e.replace("!important","")),this.element.style.setProperty(t,e,i)},t.prototype.setValue=function(t){var e=this.styles||{},i=void 0,n=this.version;if(null!=t)if(t instanceof Object){var r=void 0;for(i in t)t.hasOwnProperty(i)&&(r=t[i],e[i=i.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))]=n,this._setProperty(i,r))}else if(t.length)for(var o=/\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g,a=void 0;null!==(a=o.exec(t));)(i=a[1])&&(e[i]=n,this._setProperty(i,a[2]));if(this.styles=e,this.version+=1,0!==n)for(i in n-=1,e)e.hasOwnProperty(i)&&e[i]===n&&this.element.style.removeProperty(i)},t.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},t}(),Vi=J()(u=function(){function t(t,e,i){this.element=t,this.propertyName=e,this.handler=i,"files"===e&&(this.setValue=function(){})}return t.prototype.getValue=function(){return this.element[this.propertyName]},t.prototype.setValue=function(t){t=null==t?"":t,this.element[this.propertyName]!==t&&(this.element[this.propertyName]=t,this.notify())},t.prototype.notify=function(){var t=this.oldValue,e=this.getValue();this.callSubscribers(e,t),this.oldValue=e},t.prototype.handleEvent=function(){this.notify()},t.prototype.subscribe=function(t,e){this.hasSubscribers()||(this.oldValue=this.getValue(),this.handler.subscribe(this.element,this)),this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)&&!this.hasSubscribers()&&this.handler.dispose()},t}())||u,Ui="CheckedObserver:array",Gi="CheckedObserver:value",qi=J()(h=function(){function t(t,e,i){this.element=t,this.handler=e,this.observerLocator=i}return t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(t){this.initialSync&&this.value===t||(this.arrayObserver&&(this.arrayObserver.unsubscribe(Ui,this),this.arrayObserver=null),"checkbox"===this.element.type&&Array.isArray(t)&&(this.arrayObserver=this.observerLocator.getArrayObserver(t),this.arrayObserver.subscribe(Ui,this)),this.oldValue=this.value,this.value=t,this.synchronizeElement(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},t.prototype.call=function(t,e){this.synchronizeElement(),this.valueObserver||(this.valueObserver=this.element.__observers__.model||this.element.__observers__.value,this.valueObserver&&this.valueObserver.subscribe(Gi,this))},t.prototype.synchronizeElement=function(){var t=this.value,e=this.element,i=e.hasOwnProperty("model")?e.model:e.value,n="radio"===e.type,r=e.matcher||function(t,e){return t===e};e.checked=n&&!!r(t,i)||!n&&!0===t||!n&&Array.isArray(t)&&-1!==t.findIndex((function(t){return!!r(t,i)}))},t.prototype.synchronizeValue=function(){var t=this.value,e=this.element,i=e.hasOwnProperty("model")?e.model:e.value,n=void 0,r=e.matcher||function(t,e){return t===e};if("checkbox"===e.type){if(Array.isArray(t))return n=t.findIndex((function(t){return!!r(t,i)})),void(e.checked&&-1===n?t.push(i):e.checked||-1===n||t.splice(n,1));t=e.checked}else{if(!e.checked)return;t=i}this.oldValue=this.value,this.value=t,this.notify()},t.prototype.notify=function(){var t=this.oldValue,e=this.value;e!==t&&this.callSubscribers(e,t)},t.prototype.handleEvent=function(){this.synchronizeValue()},t.prototype.subscribe=function(t,e){this.hasSubscribers()||this.handler.subscribe(this.element,this),this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)&&!this.hasSubscribers()&&this.handler.dispose()},t.prototype.unbind=function(){this.arrayObserver&&(this.arrayObserver.unsubscribe(Ui,this),this.arrayObserver=null),this.valueObserver&&this.valueObserver.unsubscribe(Gi,this)},t}())||h,Wi="SelectValueObserver:array",Zi=J()(l=function(){function t(t,e,i){this.element=t,this.handler=e,this.observerLocator=i}return t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(t){if(null!=t&&this.element.multiple&&!Array.isArray(t))throw new Error("Only null or Array instances can be bound to a multi-select.");this.value!==t&&(this.arrayObserver&&(this.arrayObserver.unsubscribe(Wi,this),this.arrayObserver=null),Array.isArray(t)&&(this.arrayObserver=this.observerLocator.getArrayObserver(t),this.arrayObserver.subscribe(Wi,this)),this.oldValue=this.value,this.value=t,this.synchronizeOptions(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},t.prototype.call=function(t,e){this.synchronizeOptions()},t.prototype.synchronizeOptions=function(){var t=this.value,e=void 0;Array.isArray(t)&&(e=!0);for(var i=this.element.options,n=i.length,r=this.element.matcher||function(t,e){return t===e},o=function(){var o=i.item(n),a=o.hasOwnProperty("model")?o.model:o.value;if(e)return o.selected=-1!==t.findIndex((function(t){return!!r(a,t)})),"continue";o.selected=!!r(a,t)};n--;)o()},t.prototype.synchronizeValue=function(){for(var t=this,e=this.element.options,i=0,n=[],r=0,o=e.length;r<o;r++){var a=e.item(r);a.selected&&(n.push(a.hasOwnProperty("model")?a.model:a.value),i++)}if(this.element.multiple){if(Array.isArray(this.value)){var s=function(){for(var e=t.element.matcher||function(t,e){return t===e},i=0,r=function(){var r=t.value[i];-1===n.findIndex((function(t){return e(r,t)}))?t.value.splice(i,1):i++};i<t.value.length;)r();i=0;for(var o=function(){var r=n[i];-1===t.value.findIndex((function(t){return e(r,t)}))&&t.value.push(r),i++};i<n.length;)o();return{v:void 0}}();if("object"===(void 0===s?"undefined":_(s)))return s.v}}else n=0===i?null:n[0];n!==this.value&&(this.oldValue=this.value,this.value=n,this.notify())},t.prototype.notify=function(){var t=this.oldValue,e=this.value;this.callSubscribers(e,t)},t.prototype.handleEvent=function(){this.synchronizeValue()},t.prototype.subscribe=function(t,e){this.hasSubscribers()||this.handler.subscribe(this.element,this),this.addSubscriber(t,e)},t.prototype.unsubscribe=function(t,e){this.removeSubscriber(t,e)&&!this.hasSubscribers()&&this.handler.dispose()},t.prototype.bind=function(){var t=this;this.domObserver=b.b.createMutationObserver((function(){t.synchronizeOptions(),t.synchronizeValue()})),this.domObserver.observe(this.element,{childList:!0,subtree:!0,characterData:!0})},t.prototype.unbind=function(){this.domObserver.disconnect(),this.domObserver=null,this.arrayObserver&&(this.arrayObserver.unsubscribe(Wi,this),this.arrayObserver=null)},t}())||l,Yi=function(){function t(t){this.element=t,this.doNotCache=!0,this.value="",this.version=0}return t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(t){var e=this.nameIndex||{},i=this.version,n=void 0,r=void 0;if(null!=t&&t.length)for(var o=0,a=(n=t.split(/\s+/)).length;o<a;o++)""!==(r=n[o])&&(e[r]=i,this.element.classList.add(r));if(this.value=t,this.nameIndex=e,this.version+=1,0!==i)for(r in i-=1,e)e.hasOwnProperty(r)&&e[r]===i&&this.element.classList.remove(r)},t.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "class" property is not supported.')},t}();function $i(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t,i,n){return n.get.dependencies=e,n}}var Ki=function(t){function e(e,i){var n=M(this,t.call(this));return n.name=e,n.dependencies=i,n.isAssignable=!0,n}return x(e,t),e.prototype.evaluate=function(t,e){return t.bindingContext[this.name]},e.prototype.assign=function(t,e){t.bindingContext[this.name]=e},e.prototype.accept=function(t){throw new Error("not implemented")},e.prototype.connect=function(t,e){for(var i=this.dependencies,n=i.length;n--;)i[n].connect(t,e)},e}(yt);var Xi=function(){function t(){}return t.prototype.isStandardSvgAttribute=function(){return!1},t}(),Qi=(d=c=function(){function t(t,e,i,n,r){this.taskQueue=t,this.eventManager=e,this.dirtyChecker=i,this.svgAnalyzer=n,this.parser=r,this.adapters=[],this.logger=g.getLogger("observer-locator")}return t.prototype.getObserver=function(t,e){var i,n=t.__observers__;return n&&e in n?n[e]:((i=this.createPropertyObserver(t,e)).doNotCache||(void 0===n&&(n=this.getOrCreateObserversLookup(t)),n[e]=i),i)},t.prototype.getOrCreateObserversLookup=function(t){return t.__observers__||this.createObserversLookup(t)},t.prototype.createObserversLookup=function(t){var e={};return Reflect.defineProperty(t,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:e})||this.logger.warn("Cannot add observers to object",t),e},t.prototype.addAdapter=function(t){this.adapters.push(t)},t.prototype.getAdapterObserver=function(t,e,i){for(var n=0,r=this.adapters.length;n<r;n++){var o=this.adapters[n].getObserver(t,e,i);if(o)return o}return null},t.prototype.createPropertyObserver=function(t,e){var i,n=void 0,r=void 0;if(!(t instanceof Object))return new Li(t,e);if(t instanceof b.b.Element){if("class"===e)return new Yi(t);if("style"===e||"css"===e)return new Fi(t,e);if(n=this.eventManager.getElementHandler(t,e),"value"===e&&"select"===t.tagName.toLowerCase())return new Zi(t,n,this);if("checked"===e&&"input"===t.tagName.toLowerCase())return new qi(t,n,this);if(n)return new Vi(t,e,n);if(r=/^xlink:(.+)$/.exec(e))return new Ni(t,e,r[1]);if("role"===e&&(t instanceof b.b.Element||t instanceof b.b.SVGElement)||/^\w+:|^data-|^aria-/.test(e)||t instanceof b.b.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(t.nodeName,e))return new Hi(t,e)}if(function(t){return!!(t&&t.get&&t.get.dependencies)}(i=Object.getPropertyDescriptor(t,e)))return function(t,e,i,n){var r=i.get.dependencies;if(!(r instanceof Ki)){for(var o=r.length;o--;)r[o]=n.parser.parse(r[o]);r=i.get.dependencies=new Ki(e,r)}var a={bindingContext:t,overrideContext:E(t)};return new tt(a,r,n)}(t,e,i,this);if(i){var o=i.get||i.set;if(o){if(o.getObserver)return o.getObserver(t);var a=this.getAdapterObserver(t,e,i);return a||new ji(this.dirtyChecker,t,e)}}return t instanceof Array?"length"===e?this.getArrayObserver(t).getLengthObserver():new ji(this.dirtyChecker,t,e):t instanceof Map?"size"===e?this.getMapObserver(t).getLengthObserver():new ji(this.dirtyChecker,t,e):t instanceof Set?"size"===e?this.getSetObserver(t).getLengthObserver():new ji(this.dirtyChecker,t,e):new Bi(this.taskQueue,t,e)},t.prototype.getAccessor=function(t,e){if(t instanceof b.b.Element){if("class"===e||"style"===e||"css"===e||"value"===e&&("input"===t.tagName.toLowerCase()||"select"===t.tagName.toLowerCase())||"checked"===e&&"input"===t.tagName.toLowerCase()||"model"===e&&"input"===t.tagName.toLowerCase()||/^xlink:.+$/.exec(e))return this.getObserver(t,e);if(/^\w+:|^data-|^aria-/.test(e)||t instanceof b.b.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(t.nodeName,e)||"img"===t.tagName.toLowerCase()&&"src"===e||"a"===t.tagName.toLowerCase()&&"href"===e)return zi}return Di},t.prototype.getArrayObserver=function(t){return function(t,e){return vt.for(t,e)}(this.taskQueue,t)},t.prototype.getMapObserver=function(t){return function(t,e){return yi.for(t,e)}(this.taskQueue,t)},t.prototype.getSetObserver=function(t){return function(t,e){return gn.for(t,e)}(this.taskQueue,t)},t}(),c.inject=[v.a,Oi,Ii,Xi,Vt],d),Ji=(function(){function t(){}t.prototype.getObserver=function(t,e,i){throw new Error("BindingAdapters must implement getObserver(object, propertyName).")}}(),function(){function t(t,e,i,n,r,o){this.observerLocator=t,this.targetProperty=e,this.sourceExpression=i,this.mode=n,this.lookupFunctions=r,this.attribute=o,this.discrete=!1}return t.prototype.createBinding=function(t){return new tn(this.observerLocator,this.sourceExpression,t,this.targetProperty,this.mode,this.lookupFunctions)},t}()),tn=B()(f=function(){function t(t,e,i,n,r,o){this.observerLocator=t,this.sourceExpression=e,this.target=i,this.targetProperty=n,this.mode=r,this.lookupFunctions=o}return t.prototype.updateTarget=function(t){this.targetObserver.setValue(t,this.target,this.targetProperty)},t.prototype.updateSource=function(t){this.sourceExpression.assign(this.source,t,this.lookupFunctions)},t.prototype.call=function(t,e,i){if(this.isBound){if(t===T)return i=this.targetObserver.getValue(this.target,this.targetProperty),(e=this.sourceExpression.evaluate(this.source,this.lookupFunctions))!==i&&this.updateTarget(e),void(this.mode!==Ft.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.unobserve(!1)));if(t!==S)throw new Error("Unexpected call context "+t);e!==this.sourceExpression.evaluate(this.source,this.lookupFunctions)&&this.updateSource(e)}},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions);var e=this.mode;if(!this.targetObserver){var i=e===Ft.twoWay||e===Ft.fromView?"getObserver":"getAccessor";this.targetObserver=this.observerLocator[i](this.target,this.targetProperty)}if("bind"in this.targetObserver&&this.targetObserver.bind(),this.mode!==Ft.fromView){var n=this.sourceExpression.evaluate(t,this.lookupFunctions);this.updateTarget(n)}e!==Ft.oneTime&&(e===Ft.toView?G(this):e===Ft.twoWay?(this.sourceExpression.connect(this,t),this.targetObserver.subscribe(S,this)):e===Ft.fromView&&this.targetObserver.subscribe(S,this))},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,"unbind"in this.targetObserver&&this.targetObserver.unbind(),this.targetObserver.unsubscribe&&this.targetObserver.unsubscribe(S,this),this.unobserve(!0))},t.prototype.connect=function(t){if(this.isBound){if(t){var e=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.updateTarget(e)}this.sourceExpression.connect(this,this.source)}},t}())||f,en=function(){function t(t,e,i,n){this.observerLocator=t,this.targetProperty=e,this.sourceExpression=i,this.lookupFunctions=n}return t.prototype.createBinding=function(t){return new nn(this.observerLocator,this.sourceExpression,t,this.targetProperty,this.lookupFunctions)},t}(),nn=function(){function t(t,e,i,n,r){this.sourceExpression=e,this.target=i,this.targetProperty=t.getObserver(i,n),this.lookupFunctions=r}return t.prototype.callSource=function(t){var e=this.source.overrideContext;Object.assign(e,t),e.$event=t;var i=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);for(var n in delete e.$event,t)delete e[n];return i},t.prototype.bind=function(t){var e=this;if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions),this.targetProperty.setValue((function(t){return e.callSource(t)}))},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.targetProperty.setValue(null))},t}(),rn=function(){function t(t){this.name=t}return t.convention=function(e){if(e.endsWith("ValueConverter"))return new t(C(e.substring(0,e.length-14)))},t.prototype.initialize=function(t,e){this.instance=t.get(e)},t.prototype.register=function(t,e){t.registerValueConverter(e||this.name,this.instance)},t.prototype.load=function(t,e){},t}();function on(t){if(void 0===t||"string"==typeof t)return function(e){y.b.define(y.b.resource,new rn(t),e)};y.b.define(y.b.resource,new rn,t)}var an=function(){function t(t){this.name=t}return t.convention=function(e){if(e.endsWith("BindingBehavior"))return new t(C(e.substring(0,e.length-15)))},t.prototype.initialize=function(t,e){this.instance=t.get(e)},t.prototype.register=function(t,e){t.registerBindingBehavior(e||this.name,this.instance)},t.prototype.load=function(t,e){},t}();function sn(t){if(void 0===t||"string"==typeof t)return function(e){y.b.define(y.b.resource,new an(t),e)};y.b.define(y.b.resource,new an,t)}var un=function(){function t(t,e,i,n,r,o){this.eventManager=t,this.targetEvent=e,this.sourceExpression=i,this.delegationStrategy=n,this.discrete=!0,this.preventDefault=r,this.lookupFunctions=o}return t.prototype.createBinding=function(t){return new hn(this.eventManager,this.targetEvent,this.delegationStrategy,this.sourceExpression,t,this.preventDefault,this.lookupFunctions)},t}(),hn=function(){function t(t,e,i,n,r,o,a){this.eventManager=t,this.targetEvent=e,this.delegationStrategy=i,this.sourceExpression=n,this.target=r,this.preventDefault=o,this.lookupFunctions=a}return t.prototype.callSource=function(t){var e=this.source.overrideContext;e.$event=t;var i=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);return delete e.$event,!0!==i&&this.preventDefault&&t.preventDefault(),i},t.prototype.handleEvent=function(t){this.callSource(t)},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions),this._handler=this.eventManager.addEventListener(this.target,this.targetEvent,this,this.delegationStrategy,!0)},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this._handler.dispose(),this._handler=null)},t}();function ln(t){var e=t.au;if(void 0===e)throw new Error('No Aurelia APIs are defined for the element: "'+t.tagName+'".');return e}var cn=function(){function t(t,e,i){this.sourceExpression=t,this.apiName=e,this.lookupFunctions=i,this.discrete=!0}return t.prototype.createBinding=function(e){return new dn(this.sourceExpression,t.locateAPI(e,this.apiName),this.lookupFunctions)},t.locateAPI=function(t,e){switch(e){case"element":return t;case"controller":return ln(t).controller;case"view-model":return ln(t).controller.viewModel;case"view":return ln(t).controller.view;default:var i=ln(t)[e];if(void 0===i)throw new Error('Attempted to reference "'+e+"\", but it was not found amongst the target's API.");return i.viewModel}},t}(),dn=function(){function t(t,e,i){this.sourceExpression=t,this.target=e,this.lookupFunctions=i}return t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions),this.sourceExpression.assign(this.source,this.target,this.lookupFunctions)},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.evaluate(this.source,this.lookupFunctions)===this.target&&this.sourceExpression.assign(this.source,null,this.lookupFunctions),this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null)},t}(),fn={bindingBehaviors:function(t){return null},valueConverters:function(t){return null}},pn=(m=p=function(){function t(t,e){this.observerLocator=t,this.parser=e}return t.prototype.createBindingExpression=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ft.toView,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn;return new Ji(this.observerLocator,t,this.parser.parse(e),i,n)},t.prototype.propertyObserver=function(t,e){var i=this;return{subscribe:function(n){var r=i.observerLocator.getObserver(t,e);return r.subscribe(n),{dispose:function(){return r.unsubscribe(n)}}}}},t.prototype.collectionObserver=function(t){var e=this;return{subscribe:function(i){var n=void 0;if(t instanceof Array)n=e.observerLocator.getArrayObserver(t);else if(t instanceof Map)n=e.observerLocator.getMapObserver(t);else{if(!(t instanceof Set))throw new Error("collection must be an instance of Array, Map or Set.");n=e.observerLocator.getSetObserver(t)}return n.subscribe(i),{dispose:function(){return n.unsubscribe(i)}}}}},t.prototype.expressionObserver=function(t,e){var i={bindingContext:t,overrideContext:E(t)};return new tt(i,this.parser.parse(e),this.observerLocator,fn)},t.prototype.parseExpression=function(t){return this.parser.parse(t)},t.prototype.registerAdapter=function(t){this.observerLocator.addAdapter(t)},t}(),p.inject=[Qi,Vt],m),mn=Set.prototype;var gn=function(t){function e(e,i){return M(this,t.call(this,e,i))}return x(e,t),e.for=function(t,i){return"__set_observer__"in i||Reflect.defineProperty(i,"__set_observer__",{value:e.create(t,i),enumerable:!1,configurable:!1}),i.__set_observer__},e.create=function(t,i){var n=new e(t,i),r=mn;return r.add===i.add&&r.delete===i.delete&&r.clear===i.clear||(r={add:i.add,delete:i.delete,clear:i.clear}),i.add=function(){var t="add",e=i.size,o=r.add.apply(i,arguments),a=i.size===e;return a||n.addChangeRecord({type:t,object:i,value:Array.from(i).pop()}),o},i.delete=function(){var t=i.has(arguments[0]),e=r.delete.apply(i,arguments);return t&&n.addChangeRecord({type:"delete",object:i,value:arguments[0]}),e},i.clear=function(){var t=r.clear.apply(i,arguments);return n.addChangeRecord({type:"clear",object:i}),t},n},e}(ut);function bn(t,e,i){function n(t,e,i,n){var r=void 0===e;r&&(t=t.prototype,e="string"==typeof n?n:n.name);var o="_"+e,a={configurable:!0,enumerable:!1,writable:!0},s=n&&n.changeHandler||e+"Changed";if(i?"function"==typeof i.initializer&&(a.value=i.initializer()):i={},"enumerable"in i||(i.enumerable=!0),delete i.value,delete i.writable,delete i.initializer,Reflect.defineProperty(t,o,a),i.get=function(){return this[o]},i.set=function(t){var i=this[o];t!==i&&(this[o]=t,Reflect.defineProperty(this,o,{enumerable:!1}),this[s]&&this[s](t,i,e))},i.get.dependencies=[o],!r)return i;Reflect.defineProperty(t,e,i)}return void 0===e?function(e,i,r){return n(e,i,r,t)}:n(t,e,i)}var vn={};function yn(t,e){vn.hasOwnProperty(e)||(vn[e]=0),t.observeProperty(vn,e)}function wn(t){vn.hasOwnProperty(t)&&vn[t]++}},142:function(t,e,i){"use strict";var n=i(38),r={y:function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return Object(n.a)("yy"===e?r%100:r,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Object(n.a)(i+1,2)},d:function(t,e){return Object(n.a)(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return Object(n.a)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Object(n.a)(t.getUTCHours(),e.length)},m:function(t,e){return Object(n.a)(t.getUTCMinutes(),e.length)},s:function(t,e){return Object(n.a)(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,r=t.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,i-3));return Object(n.a)(o,e.length)}};e.a=r},143:function(t,e,i){var n=i(40).Buffer,r=i(724).Transform,o=i(149).StringDecoder;function a(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(46)(a,r),a.prototype.update=function(t,e,i){"string"==typeof t&&(t=n.from(t,e));var r=this._update(t);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,i){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{i(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return i&&(n+=this._decoder.end()),n},t.exports=a},148:function(t,e,i){"use strict";var n,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(i,n){function r(i){t.removeListener(e,o),n(i)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}b(t,e,o,{once:!0}),"error"!==e&&function(t,e,i){"function"==typeof t.on&&b(t,"error",e,i)}(t,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function h(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function c(t,e,i,n){var r,o,a,s;if(h(i),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function p(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):g(r,r.length)}function m(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function g(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function b(t,e,i,n){if("function"==typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){n.once&&t.removeEventListener(e,r),i(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=r[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var h=u.length,l=g(u,h);for(i=0;i<h;++i)o(l[i],this,e)}return!0},s.prototype.addListener=function(t,e){return c(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return c(this,t,e,!0)},s.prototype.once=function(t,e){return h(e),this.on(t,f(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return h(e),this.prependListener(t,f(this,t,e)),this},s.prototype.removeListener=function(t,e){var i,n,r,o,a;if(h(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){a=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(r=o[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},149:function(t,e,i){"use strict";var n=i(40).Buffer,r=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=h,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=c,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,i=function(t,e,i){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function l(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var i=function(t,e,i){var n=e.length-1;if(n<i)return 0;var r=a(e[n]);if(r>=0)return r>0&&(t.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if((r=a(e[n]))>=0)return r>0&&(t.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if((r=a(e[n]))>=0)return r>0&&(2===r?r=0:t.lastNeed=r-3),r;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},150:function(t,e,i){"use strict";var n=i(222),r=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=c;var o=i(204);o.inherits=i(46);var a=i(449),s=i(312);o.inherits(c,a);for(var u=r(s.prototype),h=0;h<u.length;h++){var l=u[h];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),c.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},151:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},153:function(t,e,i){"use strict";function n(t){var e=new Error("Operation cancelled.");return e.wasCancelled=!0,e.output=t,e}i.d(e,"a",(function(){return n}))},154:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(645),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(n.a)(e);return Object(r.a)(t,-i)}},163:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=Object(n.a)(t);return e.setHours(0,0,0,0),e}},164:function(t,e,i){var n,r;i(497),n=[i(50)],void 0===(r=function(t){return function(){var e,i,n,r=0,o="error",a="info",s="success",u="warning",h={clear:function(i,n){var r=p();e||l(r),c(i,r,n)||function(i){for(var n=e.children(),r=n.length-1;r>=0;r--)c(t(n[r]),i)}(r)},remove:function(i){var n=p();e||l(n),i&&0===t(":focus",i).length?m(i):e.children().length&&e.remove()},error:function(t,e,i){return f({type:o,iconClass:p().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:l,info:function(t,e,i){return f({type:a,iconClass:p().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:s,iconClass:p().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:u,iconClass:p().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h;function l(i,n){return i||(i=p()),(e=t("#"+i.containerId)).length||n&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function c(e,i,n){var r=!(!n||!n.force)&&n.force;return!(!e||!r&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){m(e)}}),0))}function d(t){i&&i(t)}function f(i){var o=p(),a=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=t.extend(o,i.optionsOverride),a=i.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===n)return!0;n=e.message}return!1}(o,i)){r++,e=l(o,!0);var s=null,u=t("<div/>"),h=t("<div/>"),c=t("<div/>"),f=t("<div/>"),g=t(o.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:r,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&u.addClass(o.toastClass).addClass(a),function(){if(i.title){var t=i.title;o.escapeHtml&&(t=y(i.title)),h.append(t).addClass(o.titleClass),u.append(h)}}(),function(){if(i.message){var t=i.message;o.escapeHtml&&(t=y(i.message)),c.append(t).addClass(o.messageClass),u.append(c)}}(),o.closeButton&&(g.addClass(o.closeClass).attr("role","button"),u.prepend(g)),o.progressBar&&(f.addClass(o.progressClass),u.prepend(f)),o.rtl&&u.addClass("rtl"),o.newestOnTop?e.prepend(u):e.append(u),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}u.attr("aria-live",t)}(),u.hide(),u[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(s=setTimeout(w,o.timeOut),b.maxHideTime=parseFloat(o.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,o.progressBar&&(b.intervalId=setInterval(x,10))),o.closeOnHover&&u.hover(M,_),!o.onclick&&o.tapToDismiss&&u.click(w),o.closeButton&&g&&g.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),w(!0)})),o.onclick&&u.click((function(t){o.onclick(t),w()})),d(v),o.debug&&console&&console.log(v),u}function y(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w(e){var i=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,n=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,r=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",u).length||e)return clearTimeout(b.intervalId),u[i]({duration:n,easing:r,complete:function(){m(u),clearTimeout(s),o.onHidden&&"hidden"!==v.state&&o.onHidden(),v.state="hidden",v.endTime=new Date,d(v)}})}function _(){(o.timeOut>0||o.extendedTimeOut>0)&&(s=setTimeout(w,o.extendedTimeOut),b.maxHideTime=parseFloat(o.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)}function M(){clearTimeout(s),b.hideEta=0,u.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function x(){var t=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;f.width(t+"%")}}function p(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function m(t){e||(e=l()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}.apply(e,n))||(t.exports=r)},165:function(t,e,i){"use strict";i.d(e,"b",(function(){return n}));const n={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:t=>{const e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};e.a=n},167:function(t,e,i){"use strict";(function(e,n){var r=65536,o=4294967295;var a=i(40).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=function(t,e){if(t>o)throw new RangeError("requested too many random bytes");var i=a.allocUnsafe(t);if(t>0)if(t>r)for(var u=0;u<t;u+=r)s.getRandomValues(i.slice(u,u+r));else s.getRandomValues(i);if("function"==typeof e)return n.nextTick((function(){e(null,i)}));return i}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,i(88),i(70))},168:function(t,e,i){"use strict";var n={};function r(t,e,i){i||(i=Error);var r=function(t){var i,n;function r(i,n,r){return t.call(this,function(t,i,n){return"string"==typeof e?e:e(t,i,n)}(i,n,r))||this}return n=t,(i=r).prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n,r}(i);r.prototype.name=i.name,r.prototype.code=t,n[t]=r}function o(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var n,r,a,s;if("string"==typeof e&&(r="not ",e.substr(!a||a<0?0:+a,r.length)===r)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var u=function(t,e,i){return"number"!=typeof i&&(i=0),!(i+e.length>t.length)&&-1!==t.indexOf(e,i)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(n," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},169:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},17:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return h})),i.d(e,"c",(function(){return l})),i.d(e,"d",(function(){return g}));var n=i(7),r=(Object.assign,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t});function o(t){return t&&("function"==typeof t||"object"===(void 0===t?"undefined":r(t)))}var a={resource:"aurelia:resource",paramTypes:"design:paramtypes",propertyType:"design:type",properties:"design:properties",get:function(t,e,i){if(o(e)){var n=a.getOwn(t,e,i);return void 0===n?a.get(t,Object.getPrototypeOf(e),i):n}},getOwn:function(t,e,i){if(o(e))return Reflect.getOwnMetadata(t,e,i)},define:function(t,e,i,n){Reflect.defineMetadata(t,e,i,n)},getOrCreateOwn:function(t,e,i,n){var r=a.getOwn(t,i,n);return void 0===r&&(r=new e,Reflect.defineMetadata(t,r,i,n)),r}},s=new Map,u=Object.freeze({moduleId:void 0,moduleMember:void 0}),h=function(){function t(t,e){this.moduleId=t,this.moduleMember=e}return t.get=function(e){var i=s.get(e);return void 0===i&&n.d.eachModule((function(n,o){if("object"===(void 0===o?"undefined":r(o)))for(var a in o)try{if(o[a]===e)return s.set(e,i=new t(n,a)),!0}catch(t){}return o===e&&(s.set(e,i=new t(n,"default")),!0)})),i||u},t.set=function(t,e){s.set(t,e)},t}();function l(t){var e=Object.keys(t);return function(i){var n=function(i){for(var n="function"==typeof i?i.prototype:i,r=e.length;r--;){var o=e[r];Object.defineProperty(n,o,{value:t[o],writable:!0})}};return i?n(i):n}}function c(){return!0}function d(){}function f(t){return void 0===t?t={}:"function"==typeof t&&(t={validate:t}),t.validate||(t.validate=c),t.compose||(t.compose=d),t}function p(t){return function(e){return!0===t(e)}}function m(t,e){return function(i){var n=e(i);if(!0!==n)throw new Error(n||t+" was not correctly implemented.")}}function g(t,e){e=f(e);var i=function i(n){var r="function"==typeof n?n.prototype:n;e.compose(r),i.assert(r),Object.defineProperty(r,"protocol:"+t,{enumerable:!1,configurable:!1,writable:!1,value:!0})};return i.validate=p(e.validate),i.assert=m(t,e.validate),i}g.create=function(t,e){e=f(e);var i="protocol:"+t,n=function(i){var n=g(t,e);return i?n(i):n};return n.decorates=function(t){return!0===t[i]},n.validate=p(e.validate),n.assert=m(t,e.validate),n}},170:function(t,e,i){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=h;var r=i(441),o=i(445);i(169)(h,r);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];h.prototype[u]||(h.prototype[u]=o.prototype[u])}function h(t){if(!(this instanceof h))return new h(t);r.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(70))},171:function(t,e,i){var n=i(40).Buffer;function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var i=this._block,r=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%r,h=Math.min(o-s,r-u),l=0;l<h;l++)i[u+l]=t[s+l];s+=h,(a+=h)%r==0&&this._update(i)}return this._len+=o,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,r=(i-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},172:function(t,e,i){"use strict";var n={};function r(t,e,i){i||(i=Error);var r=function(t){var i,n;function r(i,n,r){return t.call(this,function(t,i,n){return"string"==typeof e?e:e(t,i,n)}(i,n,r))||this}return n=t,(i=r).prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n,r}(i);r.prototype.name=i.name,r.prototype.code=t,n[t]=r}function o(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var n,r,a,s;if("string"==typeof e&&(r="not ",e.substr(!a||a<0?0:+a,r.length)===r)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var u=function(t,e,i){return"number"!=typeof i&&(i=0),!(i+e.length>t.length)&&-1!==t.indexOf(e,i)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(n," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},173:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},174:function(t,e,i){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=h;var r=i(471),o=i(475);i(173)(h,r);for(var a=n(o.prototype),s=0;s<a.length;s++){var u=a[s];h.prototype[u]||(h.prototype[u]=o.prototype[u])}function h(t){if(!(this instanceof h))return new h(t);r.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(70))},175:function(t,e,i){"use strict";(function(t){function i(t,e,i,n){if((null==t?void 0:t.startsWith("/"))&&(t=t.substr(1)),"string"==typeof e||e instanceof Date){const r=new Date(e);let o=r.getUTCFullYear()+String(r.getUTCMonth()+1).padStart(2,"0")+r.getUTCDate().toString().padStart(2,"0");return t&&(o=r.getFullYear()+String(r.getMonth()+1).padStart(2,"0")+r.getDate().toString().padStart(2,"0")),i?o:t?(o+="T"+r.getHours().toString().padStart(2,"0")+r.getMinutes().toString().padStart(2,"0")+r.getSeconds().toString().padStart(2,"0"),o):(o+="T"+r.getUTCHours().toString().padStart(2,"0")+r.getUTCMinutes().toString().padStart(2,"0")+r.getUTCSeconds().toString().padStart(2,"0")+(n?"":"Z"),o)}if(r(e)){const r=t?o(e)&&!e.tz()?e.clone().tz(t):e:n?e:e.utc();return r.format("YYYYMMDD")+(i?"":"T"+r.format("HHmmss")+(n||t?"":"Z"))}if(s(e)){const r=t?e.setZone(t):n?e:e.setZone("utc");return r.toFormat("yyyyLLdd")+(i?"":"T"+r.toFormat("HHmmss")+(n||t?"":"Z"))}{let r=e;if(t)r="function"==typeof e.tz?e.tz(t):e;else if(n);else{if("function"!=typeof e.utc)throw new Error("Unable to convert dayjs object to UTC value: UTC plugin is not available!");r=e.utc()}return r.format("YYYYMMDD")+(i?"":"T"+r.format("HHmmss")+(n||t?"":"Z"))}}function n(t){return String(t).replace(/[\\;,"]/g,(function(t){return"\\"+t})).replace(/(?:\r\n|\r|\n)/g,"\\n")}function r(t){return null!=t&&null!=t._isAMomentObject}function o(t){return r(t)&&"function"==typeof t.tz}function a(t){return!("object"!=typeof t||null===t||t instanceof Date||r(t)||s(t))}function s(t){return"object"==typeof t&&null!==t&&"function"==typeof t.toJSDate}Object.defineProperty(e,"__esModule",{value:!0}),e.toDurationString=e.toJSON=e.isRRule=e.isMomentDuration=e.isLuxonDate=e.isDayjs=e.isMomentTZ=e.isMoment=e.toDate=e.checkDate=e.checkEnum=e.checkNameAndMail=e.generateCustomAttributes=e.addOrGetCustomAttributes=e.foldLines=e.escape=e.formatDateTZ=e.formatDate=void 0,e.formatDate=i,e.formatDateTZ=function(t,e,n,r){let o="",a=(null==r?void 0:r.floating)||!1;return(null==r?void 0:r.timezone)&&(o=";TZID="+r.timezone,a=!0),e+o+":"+i(t,n,!1,a)},e.escape=n,e.foldLines=function(e){return e.split("\r\n").map((function(e){let i="",n=0;for(let r=0;r<e.length;r++){let o=e.charAt(r);o>="\ud800"&&o<="\udbff"&&(o+=e.charAt(++r));const a=t.from(o).length;n+=a,n>74&&(i+="\r\n ",n=a),i+=o}return i})).join("\r\n")},e.addOrGetCustomAttributes=function(t,e,i){if(Array.isArray(e))t.x=e.map((t=>{if(Array.isArray(t))return t;if("string"!=typeof t.key||"string"!=typeof t.value)throw new Error("Either key or value is not a string!");if("X-"!==t.key.substr(0,2))throw new Error("Key has to start with `X-`!");return[t.key,t.value]}));else if("object"==typeof e)t.x=Object.entries(e).map((([t,e])=>{if("string"!=typeof t||"string"!=typeof e)throw new Error("Either key or value is not a string!");if("X-"!==t.substr(0,2))throw new Error("Key has to start with `X-`!");return[t,e]}));else{if("string"!=typeof e||"string"!=typeof i)return t.x.map((t=>({key:t[0],value:t[1]})));if("X-"!==e.substr(0,2))throw new Error("Key has to start with `X-`!");t.x.push([e,i])}},e.generateCustomAttributes=function(t){const e=t.x.map((([t,e])=>t.toUpperCase()+":"+n(e))).join("\r\n");return e.length?e+"\r\n":""},e.checkNameAndMail=function(t,e){let i=null;if("string"==typeof e){const t=e.match(/^(.+) ?<([^>]+)>$/);t?i={name:t[1].trim(),email:t[2].trim()}:e.includes("@")&&(i={name:e.trim(),email:e.trim()})}else"object"==typeof e&&(i={name:e.name,email:e.email,mailto:e.mailto});if(!i&&"string"==typeof e)throw new Error("`"+t+"` isn't formated correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/interfaces/icalorganizer.html");if(!i)throw new Error("`"+t+"` needs to be a valid formed string or an object. See https://sebbo2002.github.io/ical-generator/develop/reference/interfaces/icalorganizer.html");if(!i.name)throw new Error("`"+t+".name` is empty!");return i},e.checkEnum=function(t,e){const i=Object.values(t),n=String(e).toUpperCase();if(!n||!i.includes(n))throw new Error(`Input must be one of the following: ${i.join(", ")}`);return n},e.checkDate=function(t,e){if(t instanceof Date&&isNaN(t.getTime())||"string"==typeof t&&isNaN(new Date(t).getTime()))throw new Error(`\`${e}\` has to be a valid date!`);if(t instanceof Date||"string"==typeof t)return t;if(s(t)&&!0===t.isValid)return t;if((r(t)||a(t))&&t.isValid())return t;throw new Error(`\`${e}\` has to be a valid date!`)},e.toDate=function(t){return"string"==typeof t||t instanceof Date?new Date(t):s(t)?t.toJSDate():t.toDate()},e.isMoment=r,e.isMomentTZ=o,e.isDayjs=a,e.isLuxonDate=s,e.isMomentDuration=function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.asSeconds},e.isRRule=function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.between&&"function"==typeof t.toString},e.toJSON=function(t){return t?"string"==typeof t?t:t.toJSON():t},e.toDurationString=function(t){let e="";return t<0&&(e="-",t*=-1),e+="P",t>=86400&&(e+=Math.floor(t/86400)+"D",t%=86400),!t&&e.length>1||(e+="T",t>=3600&&(e+=Math.floor(t/3600)+"H",t%=3600),t>=60&&(e+=Math.floor(t/60)+"M",t%=60),t>0?e+=t+"S":e.length<=2&&(e+="0S")),e}}).call(this,i(76).Buffer)},176:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.prototype.getDialogContainer=function(){throw new Error("DialogRenderer must implement getDialogContainer().")},t.prototype.showDialog=function(t){throw new Error("DialogRenderer must implement showDialog().")},t.prototype.hideDialog=function(t){throw new Error("DialogRenderer must implement hideDialog().")},t}()},177:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){this.lock=!0,this.startingZIndex=1e3,this.centerHorizontalOnly=!1,this.rejectOnCancel=!1,this.ignoreTransitions=!1}},180:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(23),r=i(21),o=i(117),a=i(19);function s(t,e){Object(a.a)(1,arguments);var i=Object(r.a)(t,e),s=i.getUTCFullYear(),u=e||{},h=u.locale,l=h&&h.options&&h.options.firstWeekContainsDate,c=null==l?1:Object(n.a)(l),d=null==u.firstWeekContainsDate?c:Object(n.a)(u.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(s+1,0,d),f.setUTCHours(0,0,0,0);var p=Object(o.a)(f,e),m=new Date(0);m.setUTCFullYear(s,0,d),m.setUTCHours(0,0,0,0);var g=Object(o.a)(m,e);return i.getTime()>=p.getTime()?s+1:i.getTime()>=g.getTime()?s:s-1}},186:function(t,e,i){"use strict";function n(t,e,i){return"function"==typeof t[e]?new Promise((function(n){n(t[e](i))})).then((function(t){return null==t||t})):Promise.resolve(!0)}i.d(e,"a",(function(){return n}))},19:function(t,e,i){"use strict";function n(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}i.d(e,"a",(function(){return n}))},199:function(t,e,i){"use strict";function n(t){return function(e,i){var n,r=i||{};if("formatting"===(r.context?String(r.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=r.width?String(r.width):o;n=t.formattingValues[a]||t.formattingValues[o]}else{var s=t.defaultWidth,u=r.width?String(r.width):t.defaultWidth;n=t.values[u]||t.values[s]}return n[t.argumentCallback?t.argumentCallback(e):e]}}i.d(e,"a",(function(){return n}))},200:function(t,e,i){"use strict";function n(t){return function(e,i){var n=String(e),r=i||{},o=r.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=n.match(a);if(!s)return null;var u,h=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return i}(l,(function(t){return t.test(h)})):function(t,e){for(var i in t)if(t.hasOwnProperty(i)&&e(t[i]))return i}(l,(function(t){return t.test(h)})),u=t.valueCallback?t.valueCallback(u):u,{value:u=r.valueCallback?r.valueCallback(u):u,rest:n.slice(h.length)}}}i.d(e,"a",(function(){return n}))},201:function(t,e,i){!function(t){"use strict";var e="1.7.1";function i(t){var e,i,n,r;for(i=1,n=arguments.length;i<n;i++)for(e in r=arguments[i])t[e]=r[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function r(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function s(t,e,i){var n,r,o,a;return a=function(){n=!1,r&&(o.apply(i,r),r=!1)},o=function(){n?r=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)}}function u(t,e,i){var n=e[1],r=e[0],o=n-r;return t===n&&i?t:((t-r)%o+o)%o+r}function h(){return!1}function l(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return c(t).split(/\s+/)}function f(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function p(t,e,i){var n=[];for(var r in t)n.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var m=/\{ *([\w_-]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var b=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var _=0;function M(t){var e=+new Date,i=Math.max(0,16-(e-_));return _=e+i,window.setTimeout(t,i)}var x=window.requestAnimationFrame||w("RequestAnimationFrame")||M,S=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(!i||x!==M)return x.call(window,r(t,e));t.call(e)}function A(t){t&&S.call(window,t)}var C={extend:i,create:n,bind:r,lastId:o,stamp:a,throttle:s,wrapNum:u,falseFn:h,formatNum:l,trim:c,splitWords:d,setOptions:f,getParamString:p,template:g,isArray:b,indexOf:v,emptyImageUrl:y,requestFn:x,cancelFn:S,requestAnimFrame:T,cancelAnimFrame:A};function E(){}function k(t){if("undefined"!=typeof L&&L&&L.Mixin){t=b(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}E.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=e.__super__=this.prototype,o=n(r);for(var a in o.constructor=e,e.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(k(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(n(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},E.include=function(t){return i(this.prototype,t),this},E.mergeOptions=function(t){return i(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var O={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var r=0,o=(t=d(t)).length;r<o;r++)this._on(t[r],e,i);return this},off:function(t,e,i){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else for(var r=0,o=(t=d(t)).length;r<o;r++)this._off(t[r],e,i);else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var r={fn:e,ctx:i},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===e&&o[a].ctx===i)return;o.push(r)},_off:function(t,e,i){var n,r,o;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(r=0,o=n.length;r<o;r++){var a=n[r];if(a.ctx===i&&a.fn===e)return a.fn=h,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(r,1)}}else{for(r=0,o=n.length;r<o;r++)n[r].fn=h;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var r=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var u=o[a];u.fn.call(u.ctx||this,r)}this._firingCount--}}return n&&this._propagateEvent(r),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,i){if("object"==typeof t){for(var n in t)this.once(n,t[n],e);return this}var o=r((function(){this.off(t,e,i).off(t,o,i)}),this);return this.on(t,e,i).on(t,o,i)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};O.addEventListener=O.on,O.removeEventListener=O.clearAllEventListeners=O.off,O.addOneTimeEventListener=O.once,O.fireEvent=O.fire,O.hasEventListeners=O.listens;var P=E.extend(O);function I(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var j=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function R(t,e,i){return t instanceof I?t:b(t)?new I(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new I(t.x,t.y):new I(t,e,i)}function D(t,e){if(t)for(var i=e?[t,e]:t,n=0,r=i.length;n<r;n++)this.extend(i[n])}function B(t,e){return!t||t instanceof D?t:new D(t,e)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,r=i.length;n<r;n++)this.extend(i[n])}function z(t,e){return t instanceof N?t:new N(t,e)}function H(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function F(t,e,i){return t instanceof H?t:b(t)&&"object"!=typeof t[0]?3===t.length?new H(t[0],t[1],t[2]):2===t.length?new H(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new H(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new H(t,e,i)}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(R(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(R(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=j(this.x),this.y=j(this.y),this},distanceTo:function(t){var e=(t=R(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=R(t)).x===this.x&&t.y===this.y},contains:function(t){return t=R(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},D.prototype={extend:function(t){return t=R(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new I(this.min.x,this.max.y)},getTopRight:function(){return new I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof I?R(t):B(t))instanceof D?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>=e.x&&n.x<=i.x,a=r.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>e.x&&n.x<i.x,a=r.y>e.y&&n.y<i.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},N.prototype={extend:function(t){var e,i,n=this._southWest,r=this._northEast;if(t instanceof H)e=t,i=t;else{if(!(t instanceof N))return t?this.extend(F(t)||z(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||r?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),r.lat=Math.max(i.lat,r.lat),r.lng=Math.max(i.lng,r.lng)):(this._southWest=new H(e.lat,e.lng),this._northEast=new H(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,r=Math.abs(e.lng-i.lng)*t;return new N(new H(e.lat-n,e.lng-r),new H(i.lat+n,i.lng+r))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof H||"lat"in t?F(t):z(t);var e,i,n=this._southWest,r=this._northEast;return t instanceof N?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=r.lat&&e.lng>=n.lng&&i.lng<=r.lng},intersects:function(t){t=z(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&n.lat<=i.lat,a=r.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=z(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&n.lat<i.lat,a=r.lng>e.lng&&n.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},H.prototype={equals:function(t,e){return!!t&&(t=F(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return G.distance(this,F(t))},wrap:function(){return G.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return z([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new H(this.lat,this.lng,this.alt)}};var V,U={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new D(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?u(t.lng,this.wrapLng,!0):t.lng;return new H(this.wrapLat?u(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,r=e.lng-i.lng;if(0===n&&0===r)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new N(new H(o.lat-n,o.lng-r),new H(a.lat-n,a.lng-r))}},G=i({},U,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,r=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),s=o*o+Math.cos(n)*Math.cos(r)*a*a,u=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*u}}),q=6378137,W={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),r=Math.sin(n*e);return new I(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new H((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(V=q*Math.PI,new D([-V,-V],[V,V]))};function Z(t,e,i,n){if(b(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function Y(t,e,i,n){return new Z(t,e,i,n)}Z.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new I((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var $=i({},G,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return Y(t,.5,-t,.5)}()}),K=i({},$,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){var i,n,r,o,a,s,u="";for(i=0,r=t.length;i<r;i++){for(n=0,o=(a=t[i]).length;n<o;n++)u+=(n?"L":"M")+(s=a[n]).x+" "+s.y;u+=e?Ot?"z":"x":""}return u||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=It("webkit"),rt=It("android"),ot=It("android 2")||It("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=rt&&It("Google")&&at<537&&!("AudioNode"in window),ut=!!window.opera,ht=!it&&It("chrome"),lt=It("gecko")&&!nt&&!ut&&!tt,ct=!ht&&It("safari"),dt=It("phantom"),ft="OTransition"in J,pt=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in J,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,bt="MozPerspective"in J,vt=!window.L_DISABLE_3D&&(mt||gt||bt)&&!ft&&!dt,yt="undefined"!=typeof orientation||It("mobile"),wt=yt&&nt,_t=yt&&gt,Mt=!window.PointerEvent&&window.MSPointerEvent,xt=!(!window.PointerEvent&&!Mt),St=!window.L_NO_TOUCH&&(xt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Tt=yt&&ut,At=yt&&lt,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Et=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",h,e),window.removeEventListener("testPassiveEventSupport",h,e)}catch(t){}return t}(),kt=!!document.createElement("canvas").getContext,Ot=!(!document.createElementNS||!X("svg").createSVGRect),Pt=!Ot&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var jt={ie:tt,ielt9:et,edge:it,webkit:nt,android:rt,android23:ot,androidStock:st,opera:ut,chrome:ht,gecko:lt,safari:ct,phantom:dt,opera12:ft,win:pt,ie3d:mt,webkit3d:gt,gecko3d:bt,any3d:vt,mobile:yt,mobileWebkit:wt,mobileWebkit3d:_t,msPointer:Mt,pointer:xt,touch:St,mobileOpera:Tt,mobileGecko:At,retina:Ct,passiveEvents:Et,canvas:kt,svg:Ot,vml:Pt},Rt=Mt?"MSPointerDown":"pointerdown",Dt=Mt?"MSPointerMove":"pointermove",Lt=Mt?"MSPointerUp":"pointerup",Bt=Mt?"MSPointerCancel":"pointercancel",Nt={},zt=!1;function Ht(t,e,i,n){return"touchstart"===e?Vt(t,i,n):"touchmove"===e?Zt(t,i,n):"touchend"===e&&Yt(t,i,n),this}function Ft(t,e,i){var n=t["_leaflet_"+e+i];return"touchstart"===e?t.removeEventListener(Rt,n,!1):"touchmove"===e?t.removeEventListener(Dt,n,!1):"touchend"===e&&(t.removeEventListener(Lt,n,!1),t.removeEventListener(Bt,n,!1)),this}function Vt(t,e,i){var n=r((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ge(t),Wt(t,e)}));t["_leaflet_touchstart"+i]=n,t.addEventListener(Rt,n,!1),zt||(document.addEventListener(Rt,Ut,!0),document.addEventListener(Dt,Gt,!0),document.addEventListener(Lt,qt,!0),document.addEventListener(Bt,qt,!0),zt=!0)}function Ut(t){Nt[t.pointerId]=t}function Gt(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function qt(t){delete Nt[t.pointerId]}function Wt(t,e){for(var i in t.touches=[],Nt)t.touches.push(Nt[i]);t.changedTouches=[t],e(t)}function Zt(t,e,i){var n=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Wt(t,e)};t["_leaflet_touchmove"+i]=n,t.addEventListener(Dt,n,!1)}function Yt(t,e,i){var n=function(t){Wt(t,e)};t["_leaflet_touchend"+i]=n,t.addEventListener(Lt,n,!1),t.addEventListener(Bt,n,!1)}var $t=Mt?"MSPointerDown":xt?"pointerdown":"touchstart",Kt=Mt?"MSPointerUp":xt?"pointerup":"touchend",Xt="_leaflet_";function Qt(t,e,i){var n,r,o=!1,a=250;function s(t){if(xt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),i=e-(n||e);r=t.touches?t.touches[0]:t,o=i>0&&i<=a,n=e}function u(t){if(o&&!r.cancelBubble){if(xt){if("mouse"===t.pointerType)return;var i,a,s={};for(a in r)i=r[a],s[a]=i&&i.bind?i.bind(r):i;r=s}r.type="dblclick",r.button=0,e(r),n=null}}return t[Xt+$t+i]=s,t[Xt+Kt+i]=u,t[Xt+"dblclick"+i]=e,t.addEventListener($t,s,!!Et&&{passive:!1}),t.addEventListener(Kt,u,!!Et&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function Jt(t,e){var i=t[Xt+$t+e],n=t[Xt+Kt+e],r=t[Xt+"dblclick"+e];return t.removeEventListener($t,i,!!Et&&{passive:!1}),t.removeEventListener(Kt,n,!!Et&&{passive:!1}),t.removeEventListener("dblclick",r,!1),this}var te,ee,ie,ne,re,oe=Me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ae=Me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),se="webkitTransition"===ae||"OTransition"===ae?ae+"End":"transitionend";function ue(t){return"string"==typeof t?document.getElementById(t):t}function he(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function le(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ce(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function fe(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function pe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function me(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ye(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ge(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,r=i.length;n<r;n++)t.classList.add(i[n]);else if(!me(t,e)){var o=ye(t);ve(t,(o?o+" ":"")+e)}}function be(t,e){void 0!==t.classList?t.classList.remove(e):ve(t,c((" "+ye(t)+" ").replace(" "+e+" "," ")))}function ve(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ye(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function we(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&_e(t,e)}function _e(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Me(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function xe(t,e,i){var n=e||new I(0,0);t.style[oe]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function Se(t,e){t._leaflet_pos=e,vt?xe(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Te(t){return t._leaflet_pos||new I(0,0)}if("onselectstart"in document)te=function(){Re(window,"selectstart",Ge)},ee=function(){Le(window,"selectstart",Ge)};else{var Ae=Me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);te=function(){if(Ae){var t=document.documentElement.style;ie=t[Ae],t[Ae]="none"}},ee=function(){Ae&&(document.documentElement.style[Ae]=ie,ie=void 0)}}function Ce(){Re(window,"dragstart",Ge)}function Ee(){Le(window,"dragstart",Ge)}function ke(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Oe(),ne=t,re=t.style.outline,t.style.outline="none",Re(window,"keydown",Oe))}function Oe(){ne&&(ne.style.outline=re,ne=void 0,re=void 0,Le(window,"keydown",Oe))}function Pe(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ie(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var je={TRANSFORM:oe,TRANSITION:ae,TRANSITION_END:se,get:ue,getStyle:he,create:le,remove:ce,empty:de,toFront:fe,toBack:pe,hasClass:me,addClass:ge,removeClass:be,setClass:ve,getClass:ye,setOpacity:we,testProp:Me,setTransform:xe,setPosition:Se,getPosition:Te,disableTextSelection:te,enableTextSelection:ee,disableImageDrag:Ce,enableImageDrag:Ee,preventOutline:ke,restoreOutline:Oe,getSizedParentNode:Pe,getScale:Ie};function Re(t,e,i,n){if("object"==typeof e)for(var r in e)ze(t,r,e[r],i);else for(var o=0,a=(e=d(e)).length;o<a;o++)ze(t,e[o],i,n);return this}var De="_leaflet_events";function Le(t,e,i,n){if("object"==typeof e)for(var r in e)He(t,r,e[r],i);else if(e)for(var o=0,a=(e=d(e)).length;o<a;o++)He(t,e[o],i,n);else{for(var s in t[De])He(t,s,t[De][s]);delete t[De]}return this}function Be(){if(xt)return!(it||ct)}var Ne={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ze(t,e,i,n){var r=e+a(i)+(n?"_"+a(n):"");if(t[De]&&t[De][r])return this;var o=function(e){return i.call(n||t,e||window.event)},s=o;xt&&0===e.indexOf("touch")?Ht(t,e,o,r):St&&"dblclick"===e&&!Be()?Qt(t,o,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ne[e]||e,o,!!Et&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,Qe(t,e)&&s(e)},t.addEventListener(Ne[e],o,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,o),t[De]=t[De]||{},t[De][r]=o}function He(t,e,i,n){var r=e+a(i)+(n?"_"+a(n):""),o=t[De]&&t[De][r];if(!o)return this;xt&&0===e.indexOf("touch")?Ft(t,e,r):St&&"dblclick"===e&&!Be()?Jt(t,r):"removeEventListener"in t?t.removeEventListener(Ne[e]||e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o),t[De][r]=null}function Fe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Xe(t),this}function Ve(t){return ze(t,"wheel",Fe),this}function Ue(t){return Re(t,"mousedown touchstart dblclick",Fe),ze(t,"click",Ke),this}function Ge(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function qe(t){return Ge(t),Fe(t),this}function We(t,e){if(!e)return new I(t.clientX,t.clientY);var i=Ie(e),n=i.boundingClientRect;return new I((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ze=pt&&ht?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function Ye(t){return it?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ze:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var $e={};function Ke(t){$e[t.type]=!0}function Xe(t){var e=$e[t.type];return $e[t.type]=!1,e}function Qe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var Je={on:Re,off:Le,stopPropagation:Fe,disableScrollPropagation:Ve,disableClickPropagation:Ue,preventDefault:Ge,stop:qe,getMousePosition:We,getWheelDelta:Ye,fakeStop:Ke,skipped:Xe,isExternalTarget:Qe,addListener:Re,removeListener:Le},ti=P.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Te(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),Se(this._el,i),this.fire("step")},_complete:function(){A(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),ei=P.extend({options:{crs:$,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(F(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ae&&vt&&!Tt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Re(this._proxy,se,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(F(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),r=this.getSize().divideBy(2),o=(t instanceof I?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/n),a=this.containerPointToLatLng(r.add(o));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():z(t);var i=R(e.paddingTopLeft||e.padding||[0,0]),n=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,i.add(n));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),r),s=this.project(t.getNorthEast(),r);return{center:this.unproject(a.add(s).divideBy(2).add(o),r),zoom:r}},fitBounds:function(t,e){if(!(t=z(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=R(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ti,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ge(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!vt)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),a=this._zoom;t=F(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),u=s*this.getZoomScale(a,e),h=r.distanceTo(n)||1,l=1.42,c=l*l;function d(t){var e=(u*u-s*s+(t?-1:1)*c*c*h*h)/(2*(t?u:s)*c*h),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var g=d(0);function b(t){return s*(p(g)/p(g+l*t))}function v(t){return s*(p(g)*m(g+l*t)-f(g))/c}function y(t){return 1-Math.pow(1-t,1.5)}var w=Date.now(),_=(d(1)-g)/l,M=i.duration?1e3*i.duration:1e3*_*.8;function x(){var i=(Date.now()-w)/M,o=y(i)*_;i<=1?(this._flyToFrame=T(x,this),this._move(this.unproject(n.add(r.subtract(n).multiplyBy(v(o)/h)),a),this.getScaleZoom(s/b(o),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),x.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return(t=z(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,z(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=R((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),a=this.project(t),s=this.getPixelBounds(),u=s.getSize().divideBy(2),h=B([s.min.add(i),s.max.subtract(n)]);if(!h.contains(a)){this._enforcingBounds=!0;var l=o.subtract(a),c=R(a.x+l.x,a.y+l.y);(a.x<h.min.x||a.x>h.max.x)&&(c.x=o.x-l.x,l.x>0?c.x+=u.x-i.x:c.x-=u.x-n.x),(a.y<h.min.y||a.y>h.max.y)&&(c.y=o.y-l.y,l.y>0?c.y+=u.y-i.y:c.y-=u.y-n.y),this.panTo(this.unproject(c),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=new H(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var r=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(r,n.maxZoom):r)}var o={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ce(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(A(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ce(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=le("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=z(t),i=R(i||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(i),h=B(this.project(s,n),this.project(a,n)).getSize(),l=vt?this.options.zoomSnap:1,c=u.x/h.x,d=u.y/h.y,f=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(f,n),l&&(n=Math.round(n/(l/100))*(l/100),n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(r,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new D(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(F(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(R(t),e)},layerPointToLatLng:function(t){var e=R(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(F(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(F(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,e){return this.options.crs.distance(F(t),F(e))},containerPointToLayerPoint:function(t){return R(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return R(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(R(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(t)))},mouseEventToContainerPoint:function(t){return We(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ue(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,ge(t,"leaflet-container"+(St?" leaflet-touch":"")+(Ct?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ct?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=he(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ge(t.markerPane,"leaflet-zoom-hide"),ge(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Se(this._mapPane,new I(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return A(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Se(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Le:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){A(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((i=this._targets[a(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(r&&!Qe(o,t))break;if(n.push(i),r)break}if(o===this._container)break;o=o.parentNode}return n.length||s||r||!Qe(o,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Xe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||ke(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var r=i({},t);r.type="preclick",this._fireDOMEvent(r,r.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var o=n[0];"contextmenu"===e&&o.listens(e,!0)&&Ge(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var u=0;u<n.length;u++)if(n[u].fire(e,a,!0),a.originalEvent._stopped||!1===n[u].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Te(this._mapPane)||new I(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return B([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),r=this.getSize().divideBy(2),o=new D(n.subtract(r),n.add(r)),a=this._getBoundsOffset(o,i,e);return a.round().equals([0,0])?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new D(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=B(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),r=n.min.subtract(t.min),o=n.max.subtract(t.max);return new I(this._rebound(r.x,-o.x),this._rebound(r.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=vt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){be(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=oe,i=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ce(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(r)||(T((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ge(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&be(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),T((function(){this._moveEnd(!0)}),this))}});function ii(t,e){return new ei(t,e)}var ni=E.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ge(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ce(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ri=function(t){return new ni(t)};ei.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=le("div",e+"control-container",this._container);function n(n,r){var o=e+n+" "+e+r;t[n+r]=le("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ce(this._controlCorners[t]);ce(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var oi=ni.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in f(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return ni.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ge(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ge(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):be(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return be(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=le("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Ue(e),Ve(e);var n=this._section=le("section",t+"-list");i&&(this._map.on("click",this.collapse,this),rt||Re(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var r=this._layersLink=le("a",t+"-toggle",e);r.href="#",r.title="Layers",St?(Re(r,"click",qe),Re(r,"click",this.expand,this)):Re(r,"focus",this.expand,this),i||this.expand(),this._baseLayersList=le("div",t+"-base",n),this._separator=le("div",t+"-separator",n),this._overlaysList=le("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(r((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;de(this._baseLayersList),de(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,r=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,r+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&r>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),Re(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");return i.appendChild(o),o.appendChild(e),o.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],r=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),r=i.length-1;r>=0;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ai=function(t,e,i){return new oi(t,e,i)},si=ni.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=le("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,r){var o=le("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ue(o),Re(o,"click",qe),Re(o,"click",r,this),Re(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";be(this._zoomInButton,e),be(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ge(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ge(this._zoomInButton,e)}});ei.mergeOptions({zoomControl:!0}),ei.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new si,this.addControl(this.zoomControl))}));var ui=function(t){return new si(t)},hi=ni.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=le("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=le("div",e,i)),t.imperial&&(this._iScale=le("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,r=3.2808399*t;r>5280?(e=r/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(r),this._updateScale(this._iScale,n+" ft",n/r))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),li=function(t){return new hi(t)},ci=ni.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=le("div","leaflet-control-attribution"),Ue(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});ei.mergeOptions({attributionControl:!0}),ei.addInitHook((function(){this.options.attributionControl&&(new ci).addTo(this)}));var di=function(t){return new ci(t)};ni.Layers=oi,ni.Zoom=si,ni.Scale=hi,ni.Attribution=ci,ri.layers=ai,ri.zoom=ui,ri.scale=li,ri.attribution=di;var fi=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});fi.addTo=function(t,e){return t.addHandler(e,this),this};var pi,mi={Events:O},gi=St?"touchstart mousedown":"mousedown",bi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},vi={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},yi=P.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Re(this._dragStartTarget,gi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yi._dragging===this&&this.finishDrag(),Le(this._dragStartTarget,gi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!me(this._element,"leaflet-zoom-anim")&&!(yi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(yi._dragging=this,this._preventOutline&&ke(this._element),Ce(),te(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Pe(this._element);this._startPoint=new I(e.clientX,e.clientY),this._parentScale=Ie(i),Re(document,vi[t.type],this._onMove,this),Re(document,bi[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new I(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ge(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Te(this._element).subtract(i),ge(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ge(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,A(this._animRequest),this._lastEvent=t,this._animRequest=T(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Se(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in be(document.body,"leaflet-dragging"),this._lastTarget&&(be(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),vi)Le(document,vi[t],this._onMove,this),Le(document,bi[t],this._onUp,this);Ee(),ee(),this._moved&&this._moving&&(A(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,yi._dragging=!1}});function wi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=xi(t=Ti(t,i),i)}function _i(t,e,i){return Math.sqrt(Oi(t,e,i,!0))}function Mi(t,e,i){return Oi(t,e,i)}function xi(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,Si(t,n,e,0,i-1);var r,o=[];for(r=0;r<i;r++)n[r]&&o.push(t[r]);return o}function Si(t,e,i,n,r){var o,a,s,u=0;for(a=n+1;a<=r-1;a++)(s=Oi(t[a],t[n],t[r],!0))>u&&(o=a,u=s);u>i&&(e[o]=1,Si(t,e,i,n,o),Si(t,e,i,o,r))}function Ti(t,e){for(var i=[t[0]],n=1,r=0,o=t.length;n<o;n++)ki(t[n],t[r])>e&&(i.push(t[n]),r=n);return r<o-1&&i.push(t[o-1]),i}function Ai(t,e,i,n,r){var o,a,s,u=n?pi:Ei(t,i),h=Ei(e,i);for(pi=h;;){if(!(u|h))return[t,e];if(u&h)return!1;s=Ei(a=Ci(t,e,o=u||h,i,r),i),o===u?(t=a,u=s):(e=a,h=s)}}function Ci(t,e,i,n,r){var o,a,s=e.x-t.x,u=e.y-t.y,h=n.min,l=n.max;return 8&i?(o=t.x+s*(l.y-t.y)/u,a=l.y):4&i?(o=t.x+s*(h.y-t.y)/u,a=h.y):2&i?(o=l.x,a=t.y+u*(l.x-t.x)/s):1&i&&(o=h.x,a=t.y+u*(h.x-t.x)/s),new I(o,a,r)}function Ei(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function ki(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Oi(t,e,i,n){var r,o=e.x,a=e.y,s=i.x-o,u=i.y-a,h=s*s+u*u;return h>0&&((r=((t.x-o)*s+(t.y-a)*u)/h)>1?(o=i.x,a=i.y):r>0&&(o+=s*r,a+=u*r)),s=t.x-o,u=t.y-a,n?s*s+u*u:new I(o,a)}function Pi(t){return!b(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ii(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Pi(t)}var ji={simplify:wi,pointToSegmentDistance:_i,closestPointOnSegment:Mi,clipSegment:Ai,_getEdgeIntersection:Ci,_getBitCode:Ei,_sqClosestPointOnSegment:Oi,isFlat:Pi,_flat:Ii};function Ri(t,e,i){var n,r,o,a,s,u,h,l,c,d=[1,4,2,8];for(r=0,h=t.length;r<h;r++)t[r]._code=Ei(t[r],e);for(a=0;a<4;a++){for(l=d[a],n=[],r=0,o=(h=t.length)-1;r<h;o=r++)s=t[r],u=t[o],s._code&l?u._code&l||((c=Ci(u,s,l,e,i))._code=Ei(c,e),n.push(c)):(u._code&l&&((c=Ci(u,s,l,e,i))._code=Ei(c,e),n.push(c)),n.push(s));t=n}return t}var Di={clipPolygon:Ri},Li={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new H(t.y,t.x)},bounds:new D([-180,-90],[180,90])},Bi={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);return n=-i*Math.log(Math.max(s,1e-10)),new I(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),a=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(a),u=0,h=.1;u<15&&Math.abs(h)>1e-7;u++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=h=Math.PI/2-2*Math.atan(a*e)-s;return new H(s*i,t.x*i/n)}},Ni={LonLat:Li,Mercator:Bi,SphericalMercator:W},zi=i({},G,{code:"EPSG:3395",projection:Bi,transformation:function(){var t=.5/(Math.PI*Bi.R);return Y(t,.5,-t,.5)}()}),Hi=i({},G,{code:"EPSG:4326",projection:Li,transformation:Y(1/180,1,-1/180,.5)}),Fi=i({},U,{projection:Li,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});U.Earth=G,U.EPSG3395=zi,U.EPSG3857=$,U.EPSG900913=K,U.EPSG4326=Hi,U.Simple=Fi;var Vi=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});ei.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?b(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var r=this._zoomBoundLayers[n].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ui=Vi.extend({initialize:function(t,e){var i,n;if(f(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Gi=function(t,e){return new Ui(t,e)},qi=Ui.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ui.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ui.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Wi=function(t,e){return new qi(t,e)},Zi=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var r=R(n),o=R("shadow"===e&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ct&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Yi(t){return new Zi(t)}var $i=Zi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return $i.imagePath||($i.imagePath=this._detectIconPath()),(this.options.imagePath||$i.imagePath)+Zi.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=le("div","leaflet-default-icon-path",document.body),e=he(t,"background-image")||he(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Ki=fi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new yi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ge(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&be(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=Te(e._icon),a=i.getPixelBounds(),s=i.getPixelOrigin(),u=B(a.min._subtract(s).add(r),a.max._subtract(s).subtract(r));if(!u.contains(o)){var h=R((Math.max(u.max.x,o.x)-u.max.x)/(a.max.x-u.max.x)-(Math.min(u.min.x,o.x)-u.min.x)/(a.min.x-u.min.x),(Math.max(u.max.y,o.y)-u.max.y)/(a.max.y-u.max.y)-(Math.min(u.min.y,o.y)-u.min.y)/(a.min.y-u.min.y)).multiplyBy(n);i.panBy(h,{animate:!1}),this._draggable._newPos._add(h),this._draggable._startPos._add(h),Se(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(A(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Te(e._icon),r=e._map.layerPointToLatLng(n);i&&Se(i,n),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){A(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Xi=Vi.extend({options:{icon:new $i,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=F(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=F(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),ge(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(ge(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ce(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ce(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Se(this._icon,t),this._shadow&&Se(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ge(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ki)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ki(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&we(this._icon,t),this._shadow&&we(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qi(t,e){return new Xi(t,e)}var Ji=Vi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),tn=Ji.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=F(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=F(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Ji.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new D(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function en(t,e){return new tn(t,e)}var nn=tn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),f(this,e),this._latlng=F(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ji.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===G.distance){var r=Math.PI/180,o=this._mRadius/G.R/r,a=i.project([e+o,t]),s=i.project([e-o,t]),u=a.add(s).divideBy(2),h=i.unproject(u).lat,l=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(h*r))/(Math.cos(e*r)*Math.cos(h*r)))/r;(isNaN(l)||0===l)&&(l=o/Math.cos(Math.PI/180*e)),this._point=u.subtract(i.getPixelOrigin()),this._radius=isNaN(l)?0:u.x-i.project([h,t-l]).x,this._radiusY=u.y-a.y}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(c).x}this._updateBounds()}});function rn(t,e,i){return new nn(t,e,i)}var on=Ji.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,r=null,o=Oi,a=0,s=this._parts.length;a<s;a++)for(var u=this._parts[a],h=1,l=u.length;h<l;h++){var c=o(t,e=u[h-1],i=u[h],!0);c<n&&(n=c,r=o(t,e,i))}return r&&(r.distance=Math.sqrt(n)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,r,o,a,s=this._rings[0],u=s.length;if(!u)return null;for(t=0,e=0;t<u-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(t=0,n=0;t<u-1;t++)if(r=s[t],o=s[t+1],(n+=i=r.distanceTo(o))>e)return a=(n-e)/i,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=F(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Pi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Pi(t),n=0,r=t.length;n<r;n++)i?(e[n]=F(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new I(t,t);this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n,r,o=t[0]instanceof H,a=t.length;if(o){for(r=[],n=0;n<a;n++)r[n]=this._map.latLngToLayerPoint(t[n]),i.extend(r[n]);e.push(r)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,r,o,a,s,u=this._parts;for(e=0,n=0,r=this._rings.length;e<r;e++)for(i=0,o=(s=this._rings[e]).length;i<o-1;i++)(a=Ai(s[i],s[i+1],t,i,!0))&&(u[n]=u[n]||[],u[n].push(a[0]),a[1]===s[i+1]&&i!==o-2||(u[n].push(a[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=wi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,r,o,a,s,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,r=(a=(s=this._parts[i]).length)-1;n<a;r=n++)if((e||0!==n)&&_i(t,s[r],s[n])<=u)return!0;return!1}});function an(t,e){return new on(t,e)}on._flat=Ii;var sn=on.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,r,o,a,s,u,h=this._rings[0],l=h.length;if(!l)return null;for(o=a=s=0,t=0,e=l-1;t<l;e=t++)i=h[t],n=h[e],r=i.y*n.x-n.y*i.x,a+=(i.x+n.x)*r,s+=(i.y+n.y)*r,o+=3*r;return u=0===o?h[0]:[a/o,s/o],this._map.layerPointToLatLng(u)},_convertLatLngs:function(t){var e=on.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof H&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){on.prototype._setLatLngs.call(this,t),Pi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Pi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new I(e,e);if(t=new D(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,r=0,o=this._rings.length;r<o;r++)(n=Ri(this._rings[r],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,r,o,a,s,u,h=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,s=this._parts.length;r<s;r++)for(o=0,a=(u=(e=this._parts[r]).length)-1;o<u;a=o++)i=e[o],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(h=!h);return h||on.prototype._containsPoint.call(this,t,!0)}});function un(t,e){return new sn(t,e)}var hn=qi.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,r=b(t)?t:t.features;if(r){for(e=0,i=r.length;e<i;e++)((n=r[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=ln(t,o);return a?(a.feature=bn(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function ln(t,e){var i,n,r,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,u=[],h=e&&e.pointToLayer,l=e&&e.coordsToLatLng||dn;if(!s&&!a)return null;switch(a.type){case"Point":return cn(h,t,i=l(s),e);case"MultiPoint":for(r=0,o=s.length;r<o;r++)i=l(s[r]),u.push(cn(h,t,i,e));return new qi(u);case"LineString":case"MultiLineString":return n=fn(s,"LineString"===a.type?0:1,l),new on(n,e);case"Polygon":case"MultiPolygon":return n=fn(s,"Polygon"===a.type?1:2,l),new sn(n,e);case"GeometryCollection":for(r=0,o=a.geometries.length;r<o;r++){var c=ln({geometry:a.geometries[r],type:"Feature",properties:t.properties},e);c&&u.push(c)}return new qi(u);default:throw new Error("Invalid GeoJSON object.")}}function cn(t,e,i,n){return t?t(e,i):new Xi(i,n&&n.markersInheritOptions&&n)}function dn(t){return new H(t[1],t[0],t[2])}function fn(t,e,i){for(var n,r=[],o=0,a=t.length;o<a;o++)n=e?fn(t[o],e-1,i):(i||dn)(t[o]),r.push(n);return r}function pn(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function mn(t,e,i,n){for(var r=[],o=0,a=t.length;o<a;o++)r.push(e?mn(t[o],e-1,i,n):pn(t[o],n));return!e&&i&&r.push(r[0]),r}function gn(t,e){return t.feature?i({},t.feature,{geometry:e}):bn(e)}function bn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var vn={toGeoJSON:function(t){return gn(this,{type:"Point",coordinates:pn(this.getLatLng(),t)})}};function yn(t,e){return new hn(t,e)}Xi.include(vn),nn.include(vn),tn.include(vn),on.include({toGeoJSON:function(t){var e=!Pi(this._latlngs);return gn(this,{type:(e?"Multi":"")+"LineString",coordinates:mn(this._latlngs,e?1:0,!1,t)})}}),sn.include({toGeoJSON:function(t){var e=!Pi(this._latlngs),i=e&&!Pi(this._latlngs[0]),n=mn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),gn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ui.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),gn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(i)n.push(r.geometry);else{var o=bn(r);"FeatureCollection"===o.type?n.push.apply(n,o.features):n.push(o)}}})),i?gn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var wn=yn,_n=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=z(e),f(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ge(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ce(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&fe(this._image),this},bringToBack:function(){return this._map&&pe(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:le("img");ge(e,"leaflet-image-layer"),this._zoomAnimated&&ge(e,"leaflet-zoom-animated"),this.options.className&&ge(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xe(this._image,i,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Se(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){we(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Mn=function(t,e,i){return new _n(t,e,i)},xn=_n.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:le("video");if(ge(e,"leaflet-image-layer"),this._zoomAnimated&&ge(e,"leaflet-zoom-animated"),this.options.className&&ge(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=r(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=i.length>0?n:[e.src]}else{b(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;a<this._url.length;a++){var s=le("source");s.src=this._url[a],e.appendChild(s)}}}});function Sn(t,e,i){return new xn(t,e,i)}var Tn=_n.extend({_initImage:function(){var t=this._image=this._url;ge(t,"leaflet-image-layer"),this._zoomAnimated&&ge(t,"leaflet-zoom-animated"),this.options.className&&ge(t,this.options.className),t.onselectstart=h,t.onmousemove=h}});function An(t,e,i){return new Tn(t,e,i)}var Cn=Vi.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){f(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&we(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&we(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(we(this._container,0),this._removeTimeout=setTimeout(r(ce,void 0,this._container),200)):ce(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=F(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&fe(this._container),this},bringToBack:function(){return this._map&&pe(this._container),this},_prepareOpen:function(t,e,i){if(e instanceof Vi||(i=e,e=t),e instanceof qi)for(var n in t._layers){e=t._layers[n];break}if(!i)if(e.getCenter)i=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");i=e.getLatLng()}return this._source=e,this.update(),i},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=R(this.options.offset),i=this._getAnchor();this._zoomAnimated?Se(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}}),En=Cn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Cn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ji||this._source.on("preclick",Fe))},onRemove:function(t){Cn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ji||this._source.off("preclick",Fe))},getEvents:function(){var t=Cn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=le("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=le("div",t+"-content-wrapper",e);if(this._contentNode=le("div",t+"-content",i),Ue(e),Ve(this._contentNode),Re(e,"contextmenu",Fe),this._tipContainer=le("div",t+"-tip-container",e),this._tip=le("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=le("a",t+"-close-button",e);n.href="#close",n.innerHTML="&#215;",Re(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&n>r?(e.height=r+"px",ge(t,o)):be(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Se(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(he(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,r=new I(this._containerLeft,-i-this._containerBottom);r._add(Te(this._container));var o=t.layerPointToContainerPoint(r),a=R(this.options.autoPanPadding),s=R(this.options.autoPanPaddingTopLeft||a),u=R(this.options.autoPanPaddingBottomRight||a),h=t.getSize(),l=0,c=0;o.x+n+u.x>h.x&&(l=o.x+n-h.x+u.x),o.x-l-s.x<0&&(l=o.x-s.x),o.y+i+u.y>h.y&&(c=o.y+i-h.y+u.y),o.y-c-s.y<0&&(c=o.y-s.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),qe(t)},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),kn=function(t,e){return new En(t,e)};ei.mergeOptions({closePopupOnClick:!0}),ei.include({openPopup:function(t,e,i){return t instanceof En||(t=new En(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Vi.include({bindPopup:function(t,e){return t instanceof En?(f(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new En(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(qe(t),e instanceof Ji?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var On=Cn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Cn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Cn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Cn.prototype.getEvents.call(this);return St&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,r=this._container,o=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),s=this.options.direction,u=r.offsetWidth,h=r.offsetHeight,l=R(this.options.offset),c=this._getAnchor();"top"===s?(e=u/2,i=h):"bottom"===s?(e=u/2,i=0):"center"===s?(e=u/2,i=h/2):"right"===s?(e=0,i=h/2):"left"===s?(e=u,i=h/2):a.x<o.x?(s="right",e=0,i=h/2):(s="left",e=u+2*(l.x+c.x),i=h/2),t=t.subtract(R(e,i,!0)).add(l).add(c),be(r,"leaflet-tooltip-right"),be(r,"leaflet-tooltip-left"),be(r,"leaflet-tooltip-top"),be(r,"leaflet-tooltip-bottom"),ge(r,"leaflet-tooltip-"+s),Se(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&we(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Pn=function(t,e){return new On(t,e)};ei.include({openTooltip:function(t,e,i){return t instanceof On||(t=new On(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Vi.include({bindTooltip:function(t,e){return t instanceof On?(f(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new On(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),St&&(i.click=this._openTooltip)),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(ge(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(be(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var In=Zi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(de(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=R(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function jn(t){return new In(t)}Zi.Default=$i;var Rn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ce(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fe(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(pe(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof I?t:new I(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),r=0,o=i.length;r<o;r++)e=i[r].style.zIndex,i[r]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){we(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var r=this._tiles[n];if(r.current&&r.loaded){var o=Math.min(1,(t-r.loaded)/200);we(r.el,o),o<1?e=!0:(r.active?i=!0:this._onOpaqueTile(r),r.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(A(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=le("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ce(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],r=this._map;return n||((n=this._levels[t]={}).el=le("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,r.getCenter(),r.getZoom()),h(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ce(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var r=Math.floor(t/2),o=Math.floor(e/2),a=i-1,s=new I(+r,+o);s.z=+a;var u=this._tileCoordsToKey(s),h=this._tiles[u];return h&&h.active?(h.retain=!0,!0):(h&&h.loaded&&(h.retain=!0),a>n&&this._retainParent(r,o,a,n))},_retainChildren:function(t,e,i,n){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new I(r,o);a.z=i+1;var s=this._tileCoordsToKey(a),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),i+1<n&&this._retainChildren(r,o,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var r=Math.round(e);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var o=this.options.updateWhenZooming&&r!==this._tileZoom;n&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),r=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();vt?xe(t.el,r,n):Se(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new D(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(n),o=r.getCenter(),a=[],s=this.options.keepBuffer,u=new D(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var h in this._tiles){var l=this._tiles[h].coords;l.z===this._tileZoom&&u.contains(new I(l.x,l.y))||(this._tiles[h].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var c=r.min.y;c<=r.max.y;c++)for(var d=r.min.x;d<=r.max.x;d++){var f=new I(d,c);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),r=n.add(i);return[e.unproject(n,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new I(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ce(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ge(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,et&&this.options.opacity<1&&we(t,this.options.opacity),rt&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(r(this._tileReady,this,t,null,o)),Se(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(we(i.el,0),A(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ge(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Dn(t){return new Rn(t)}var Ln=Rn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=f(this,e)).detectRetina&&Ct&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),rt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Re(i,"load",r(this._tileOnLoad,this,e,i)),Re(i,"error",r(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Ct?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return g(this._url,i(e,this.options))},_tileOnLoad:function(t,e){et?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,e.complete||(e.src=y,ce(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",y),Rn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Rn.prototype._tileReady.call(this,t,e,i)}});function Bn(t,e){return new Ln(t,e)}var Nn=Ln.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var r in e)r in this.options||(n[r]=e[r]);var o=(e=f(this,e)).detectRetina&&Ct?2:1,a=this.getTileSize();n.width=a.x*o,n.height=a.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ln.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=B(i.project(e[0]),i.project(e[1])),r=n.min,o=n.max,a=(this._wmsVersion>=1.3&&this._crs===Hi?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=Ln.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function zn(t,e){return new Nn(t,e)}Ln.WMS=Nn,Bn.wms=zn;var Hn=Vi.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ge(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=Te(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=r.multiplyBy(-i).add(n).add(r).subtract(a);vt?xe(this._container,s,i):Se(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Fn=Hn.extend({getEvents:function(){var t=Hn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){A(this._redrawRequest),delete this._ctx,ce(this._container),Le(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Hn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Ct?2:1;Se(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Ct&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),r=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,r,o,a=t._parts,s=a.length,u=this._ctx;if(s){for(u.beginPath(),i=0;i<s;i++){for(n=0,r=a[i].length;n<r;n++)o=a[i][n],u[n?"lineTo":"moveTo"](o.x,o.y);e&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==r&&(i.save(),i.scale(1,r)),i.beginPath(),i.arc(e.x,e.y/r,n,0,2*Math.PI,!1),1!==r&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"===t.type||!this._map._draggableMoved(e))&&(i=e);i&&(Ke(t),this._fireEvent([i],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(be(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ge(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Vn(t){return kt?new Fn(t):null}var Un=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Gn={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Hn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Un("shape");ge(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Un("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ce(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,r=t._container;r.stroked=!!n.stroke,r.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Un("stroke")),r.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=b(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(r.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Un("fill")),r.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(r.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){fe(t._container)},_bringToBack:function(t){pe(t._container)}},qn=Pt?Un:X,Wn=Hn.extend({getEvents:function(){var t=Hn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=qn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=qn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ce(this._container),Le(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Hn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Se(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=qn("path");t.options.className&&ge(e,t.options.className),t.options.interactive&&ge(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ce(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){fe(t._path)},_bringToBack:function(t){pe(t._path)}});function Zn(t){return Ot||Pt?new Wn(t):null}Pt&&Wn.include(Gn),ei.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Zn(t)}});var Yn=sn.extend({initialize:function(t,e){sn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=z(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $n(t,e){return new Yn(t,e)}Wn.create=qn,Wn.pointsToPath=Q,hn.geometryToLayer=ln,hn.coordsToLatLng=dn,hn.coordsToLatLngs=fn,hn.latLngToCoords=pn,hn.latLngsToCoords=mn,hn.getFeature=gn,hn.asFeature=bn,ei.mergeOptions({boxZoom:!0});var Kn=fi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Le(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ce(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),te(),Ce(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=le("div","leaflet-zoom-box",this._container),ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),i=e.getSize();Se(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ce(this._box),be(this._container,"leaflet-crosshair")),ee(),Ee(),Le(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});ei.addInitHook("addHandler","boxZoom",Kn),ei.mergeOptions({doubleClickZoom:!0});var Xn=fi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,r=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});ei.addInitHook("addHandler","doubleClickZoom",Xn),ei.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Qn=fi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new yi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){be(this._map._container,"leaflet-grab"),be(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=z(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,r=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(r+i)<Math.abs(o+i)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,s=r.multiplyBy(a/o),u=s.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,u),l=s.multiplyBy(h/u),c=h/(i.inertiaDeceleration*a),d=l.multiplyBy(-c/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),T((function(){e.panBy(d,{duration:c,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});ei.addInitHook("addHandler","dragging",Qn),ei.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Jn=fi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Re(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Le(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},r=this.keyCodes;for(e=0,i=r.left.length;e<i;e++)n[r.left[e]]=[-1*t,0];for(e=0,i=r.right.length;e<i;e++)n[r.right[e]]=[t,0];for(e=0,i=r.down.length;e<i;e++)n[r.down[e]]=[0,t];for(e=0,i=r.up.length;e<i;e++)n[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},r=this.keyCodes;for(e=0,i=r.zoomIn.length;e<i;e++)n[r.zoomIn[e]]=t;for(e=0,i=r.zoomOut.length;e<i;e++)n[r.zoomOut[e]]=-t},_addHooks:function(){Re(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Le(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(e=this._panKeys[i],t.shiftKey&&(e=R(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}qe(t)}}});ei.addInitHook("addHandler","keyboard",Jn),ei.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var tr=fi.extend({addHooks:function(){Re(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Le(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),n),qe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(r/i)*i:r,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});ei.addInitHook("addHandler","scrollWheelZoom",tr),ei.mergeOptions({tap:!0,tapTolerance:15});var er=fi.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Le(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ge(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new I(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&ge(i,"leaflet-active"),this._holdTimeout=setTimeout(r((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Re(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Le(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&be(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new I(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});!St||xt&&!ct||ei.addInitHook("addHandler","tap",er),ei.mergeOptions({touchZoom:St&&!ot,bounceAtZoomLimits:!0});var ir=fi.extend({addHooks:function(){ge(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){be(this._map._container,"leaflet-touch-zoom"),Le(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend",this._onTouchEnd,this),Ge(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),A(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=T(s,this,!0),Ge(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,A(this._animRequest),Le(document,"touchmove",this._onTouchMove,this),Le(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ei.addInitHook("addHandler","touchZoom",ir),ei.BoxZoom=Kn,ei.DoubleClickZoom=Xn,ei.Drag=Qn,ei.Keyboard=Jn,ei.ScrollWheelZoom=tr,ei.Tap=er,ei.TouchZoom=ir,t.version=e,t.Control=ni,t.control=ri,t.Browser=jt,t.Evented=P,t.Mixin=mi,t.Util=C,t.Class=E,t.Handler=fi,t.extend=i,t.bind=r,t.stamp=a,t.setOptions=f,t.DomEvent=Je,t.DomUtil=je,t.PosAnimation=ti,t.Draggable=yi,t.LineUtil=ji,t.PolyUtil=Di,t.Point=I,t.point=R,t.Bounds=D,t.bounds=B,t.Transformation=Z,t.transformation=Y,t.Projection=Ni,t.LatLng=H,t.latLng=F,t.LatLngBounds=N,t.latLngBounds=z,t.CRS=U,t.GeoJSON=hn,t.geoJSON=yn,t.geoJson=wn,t.Layer=Vi,t.LayerGroup=Ui,t.layerGroup=Gi,t.FeatureGroup=qi,t.featureGroup=Wi,t.ImageOverlay=_n,t.imageOverlay=Mn,t.VideoOverlay=xn,t.videoOverlay=Sn,t.SVGOverlay=Tn,t.svgOverlay=An,t.DivOverlay=Cn,t.Popup=En,t.popup=kn,t.Tooltip=On,t.tooltip=Pn,t.Icon=Zi,t.icon=Yi,t.DivIcon=In,t.divIcon=jn,t.Marker=Xi,t.marker=Qi,t.TileLayer=Ln,t.tileLayer=Bn,t.GridLayer=Rn,t.gridLayer=Dn,t.SVG=Wn,t.svg=Zn,t.Renderer=Hn,t.Canvas=Fn,t.canvas=Vn,t.Path=Ji,t.CircleMarker=tn,t.circleMarker=en,t.Circle=nn,t.circle=rn,t.Polyline=on,t.polyline=an,t.Polygon=sn,t.polygon=un,t.Rectangle=Yn,t.rectangle=$n,t.Map=ei,t.map=ii;var nr=window.L;t.noConflict=function(){return window.L=nr,this},window.L=t}(e)},202:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(21),r=i(694),o=i(23),a=i(19);function s(t,e){if(Object(a.a)(2,arguments),"object"!=typeof e||null===e)throw new RangeError("values parameter must be an object");var i=Object(n.a)(t);return isNaN(i.getTime())?new Date(NaN):(null!=e.year&&i.setFullYear(e.year),null!=e.month&&(i=Object(r.a)(i,e.month)),null!=e.date&&i.setDate(Object(o.a)(e.date)),null!=e.hours&&i.setHours(Object(o.a)(e.hours)),null!=e.minutes&&i.setMinutes(Object(o.a)(e.minutes)),null!=e.seconds&&i.setSeconds(Object(o.a)(e.seconds)),null!=e.milliseconds&&i.setMilliseconds(Object(o.a)(e.milliseconds)),i)}},203:function(t,e,i){"use strict";var n=i(46),r=i(306),o=i(309),a=i(310),s=i(143);function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},204:function(t,e,i){(function(t){function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,i(76).Buffer)},205:function(t,e,i){(function(e){t.exports=function(t,i){for(var n=Math.min(t.length,i.length),r=new e(n),o=0;o<n;++o)r[o]=t[o]^i[o];return r}}).call(this,i(76).Buffer)},206:function(t,e,i){"use strict";var n=i(119),r=i(104);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var i=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-i,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),r(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e,n=new Array(i+this.padLength);n[0]=128;for(var r=1;r<i;r++)n[r]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=t>>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,o=8;o<this.padLength;o++)n[r++]=0;return n}},207:function(t,e,i){"use strict";const n=i(46),r=i(327).Reporter,o=i(325).Buffer;function a(t,e){r.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,r),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){if(t instanceof a)return!0;return"object"==typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const i=new a(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){if(t instanceof s)return!0;return"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},s.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},209:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=["focus","if","else","repeat","show","hide","with"];function r(t){var e=t.type,i=null!==e.elementName?e.elementName:e.attributeName;return-1===n.indexOf(i)&&(e.handlesAttached||e.handlesBind||e.handlesCreated||e.handlesDetached||e.handlesUnbind)||e.viewFactory&&a(e.viewFactory)||t.viewFactory&&a(t.viewFactory)}function o(t){var e=t.behaviorInstructions;if(e)for(var i=e.length;i--;)if(r(e[i]))return!0;return t.viewFactory&&a(t.viewFactory)}function a(t){if("_viewsRequireLifecycle"in t)return t._viewsRequireLifecycle;if(t._viewsRequireLifecycle=!1,t.viewFactory)return t._viewsRequireLifecycle=a(t.viewFactory),t._viewsRequireLifecycle;if(t.template.querySelector(".au-animate"))return t._viewsRequireLifecycle=!0,!0;for(var e in t.instructions)if(o(t.instructions[e]))return t._viewsRequireLifecycle=!0,!0;return t._viewsRequireLifecycle=!1,!1}},21:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(19);function r(t){Object(n.a)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},210:function(t,e,i){"use strict";i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return v}));var n,r,o,a,s,u,h=i(34),l=i(14),c=i(11),d=i(78),f=i(17),p=i(7);function m(t,e,i,n){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function g(t,e,i,n,r){var o={};return Object.keys(n).forEach((function(t){o[t]=n[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(t,e,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var b=Object(c.s)("router-view")(n=Object(c.u)((r=function(){function t(t,e,i,n,r,h,l){m(this,"swapOrder",o,this),m(this,"layoutView",a,this),m(this,"layoutViewModel",s,this),m(this,"layoutModel",u,this),this.element=t,this.container=e,this.viewSlot=i,this.router=n,this.viewLocator=r,this.compositionTransaction=h,this.compositionEngine=l,this.router.registerViewPort(this,this.element.getAttribute("name")),"initialComposition"in h||(h.initialComposition=!0,this.compositionTransactionNotifier=h.enlist())}return t.inject=function(){return[p.b.Element,h.a,c.o,d.c,c.m,c.f,c.e]},t.prototype.created=function(t){this.owningView=t},t.prototype.bind=function(t,e){this.container.viewModel=t,this.overrideContext=e},t.prototype.process=function(t,e){var i=this,n=t.component,r=n.childContainer,o=n.viewModel,a=n.viewModelResource,s=a.metadata,u=n.router.currentInstruction.config,h=u.viewPorts&&u.viewPorts[t.name]||{};r.get(v)._notify(this);var l={viewModel:h.layoutViewModel||u.layoutViewModel||this.layoutViewModel,view:h.layoutView||u.layoutView||this.layoutView,model:h.layoutModel||u.layoutModel||this.layoutModel,router:t.component.router,childContainer:r,viewSlot:this.viewSlot},d=this.viewLocator.getViewStrategy(n.view||o);return d&&n.view&&d.makeRelativeTo(f.a.get(n.router.container.viewModel.constructor).moduleId),s.load(r,a.value,null,d,!0).then((function(n){if(i.compositionTransactionNotifier||(i.compositionTransactionOwnershipToken=i.compositionTransaction.tryCapture()),(l.viewModel||l.view)&&(t.layoutInstruction=l),t.controller=s.create(r,c.b.dynamic(i.element,o,n)),e)return null;i.swap(t)}))},t.prototype.swap=function(t){var e=this,i=t.layoutInstruction,n=this.view,r=function(){var t=c.i[e.swapOrder]||c.i.after,i=e.viewSlot;t(i,n,(function(){return Promise.resolve(i.add(e.view))})).then((function(){e._notify()}))},o=function(i){return t.controller.automate(e.overrideContext,i),e.compositionTransactionOwnershipToken?e.compositionTransactionOwnershipToken.waitForCompositionComplete().then((function(){return e.compositionTransactionOwnershipToken=null,r()})):r()};return i?(i.viewModel||(i.viewModel={}),this.compositionEngine.createController(i).then((function(n){return c.h.distributeView(t.controller.view,n.slots||n.view.slots),n.automate(Object(l.v)(i.viewModel),e.owningView),n.view.children.push(t.controller.view),n.view||n})).then((function(t){return e.view=t,o(t)}))):(this.view=t.controller.view,o(this.owningView))},t.prototype._notify=function(){this.compositionTransactionNotifier&&(this.compositionTransactionNotifier.done(),this.compositionTransactionNotifier=null)},t}(),o=g(r.prototype,"swapOrder",[c.p],{enumerable:!0,initializer:null}),a=g(r.prototype,"layoutView",[c.p],{enumerable:!0,initializer:null}),s=g(r.prototype,"layoutViewModel",[c.p],{enumerable:!0,initializer:null}),u=g(r.prototype,"layoutModel",[c.p],{enumerable:!0,initializer:null}),n=r))||n)||n,v=function(){function t(){var t=this;this.promise=new Promise((function(e){return t.resolve=e}))}return t.prototype.findNearest=function(){return this.promise},t.prototype._notify=function(t){this.resolve(t)},t}()},212:function(t,e,i){"use strict";function n(t){throw new Error("History must implement "+t+"().")}i.d(e,"a",(function(){return r}));var r=function(){function t(){}return t.prototype.activate=function(t){n("activate")},t.prototype.deactivate=function(){n("deactivate")},t.prototype.getAbsoluteRoot=function(){n("getAbsoluteRoot")},t.prototype.navigate=function(t,e){n("navigate")},t.prototype.navigateBack=function(){n("navigateBack")},t.prototype.setTitle=function(t){n("setTitle")},t.prototype.setState=function(t,e){n("setState")},t.prototype.getState=function(t){n("getState")},t}()},216:function(t,e,i){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){return function t(e,i,n){var r,o,a=window,s="application/octet-stream",u=n||s,h=e,l=!i&&!n&&h,c=document.createElement("a"),d=function(t){return String(t)},f=a.Blob||a.MozBlob||a.WebKitBlob||d,p=i||"download";if(f=f.call?f.bind(a):Blob,"true"===String(this)&&(u=(h=[h,u])[0],h=h[1]),l&&l.length<2048&&(p=l.split("/").pop().split("?")[0],c.href=l,-1!==c.href.indexOf(l))){var m=new XMLHttpRequest;return m.open("GET",l,!0),m.responseType="blob",m.onload=function(e){t(e.target.response,p,s)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(h)){if(!(h.length>2096103.424&&f!==d))return navigator.msSaveBlob?navigator.msSaveBlob(y(h),p):w(h);u=(h=y(h)).type||s}else if(/([\x80-\xff])/.test(h)){for(var g=0,b=new Uint8Array(h.length),v=b.length;g<v;++g)b[g]=h.charCodeAt(g);h=new f([b],{type:u})}function y(t){for(var e=t.split(/[:;,]/),i=e[1],n=("base64"==e[2]?atob:decodeURIComponent)(e.pop()),r=n.length,o=0,a=new Uint8Array(r);o<r;++o)a[o]=n.charCodeAt(o);return new f([a],{type:i})}function w(t,e){if("download"in c)return c.href=t,c.setAttribute("download",p),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout((function(){c.click(),document.body.removeChild(c),!0===e&&setTimeout((function(){a.URL.revokeObjectURL(c.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,s)),window.open(t)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=t),!0;var i=document.createElement("iframe");document.body.appendChild(i),!e&&/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,s)),i.src=t,setTimeout((function(){document.body.removeChild(i)}),333)}if(r=h instanceof f?h:new f([h],{type:u}),navigator.msSaveBlob)return navigator.msSaveBlob(r,p);if(a.URL)w(a.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===d)try{return w("data:"+u+";base64,"+a.btoa(r))}catch(t){return w("data:"+u+","+encodeURIComponent(r))}(o=new FileReader).onload=function(t){w(this.result)},o.readAsDataURL(r)}return!0}})?n.apply(e,r):n)||(t.exports=o)},218:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t,e){Object(r.a)(2,arguments);var i=Object(n.a)(t),o=Object(n.a)(e);return i.getTime()<o.getTime()}},219:function(t,e,i){"use strict";(function(t){i(707);var e=i(7),n=[],r=void 0,o=new Promise((function(t){return r=t})),a=e.d.global,s=void 0!==t&&!t.browser;function u(){return e.d.Loader?Promise.resolve(new e.d.Loader):Promise.reject("No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app.")}function h(i){var n=function(t,e){return i.normalize(t,e).then((function(e){return i.map(t,e),e}))};return function(i){var n=void 0,r=s&&("renderer"===t.type||t.versions["node-webkit"]);if(s&&!r)n="nodejs";else if("undefined"!=typeof window)n="browser";else{if("undefined"==typeof self)throw new Error("Could not determine platform implementation to load.");n="worker"}return i.loadModule("aurelia-pal-"+n).then((function(t){return"nodejs"===n&&!e.f&&t.globalize()||t.initialize()}))}(i).then((function(){return i.normalize("aurelia-bootstrapper")})).then((function(t){var e=n("aurelia-framework",t);return Promise.all([e,e.then((function(t){return n("aurelia-dependency-injection",t)})),n("aurelia-router",t),n("aurelia-logging-console",t)])})).then((function(t){var e=t[0];return i.loadModule(e)})).then((function(t){return r((function(){return new t.Aurelia(i)}))}))}function l(t,e,i){return i.host=t,i.configModuleId=e||null,e?i.loader.loadModule(e).then((function(t){if(!t.configure)throw new Error("Cannot initialize module '"+e+"' without a configure function.");return t.configure(i)})):(i.use.standardConfiguration().developmentLogging(),i.start().then((function(){return i.setRoot()})))}function c(t){var e=o.then((function(e){return t(e())}));return n&&n.push(e),e}(a.document&&"complete"!==a.document.readyState?new Promise((function(t){function e(){a.document.removeEventListener("DOMContentLoaded",e),a.removeEventListener("load",e),t()}a.document.addEventListener("DOMContentLoaded",e),a.addEventListener("load",e)})):Promise.resolve()).then(u).then(h).then((function(){for(var t=a.document.querySelectorAll("[aurelia-app],[data-aurelia-app]"),e=0,i=t.length;e<i;++e){var r=t[e],o=r.getAttribute("aurelia-app")||r.getAttribute("data-aurelia-app");c(l.bind(null,r,o))}var s=console.error.bind(console),u=n.map((function(t){return t.catch(s)}));return n=null,Promise.all(u)}))}).call(this,i(70))},222:function(t,e,i){"use strict";(function(e){!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,i,n,r){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,n)}));case 4:return e.nextTick((function(){t.call(null,i,n,r)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,i(70))},225:function(t,e,i){var n=i(40).Buffer;function r(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,i=new Array(e),r=0;r<e;r++)i[r]=t.readUInt32BE(4*r);return i}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,i,n,r){for(var o,a,s,u,h=i[0],l=i[1],c=i[2],d=i[3],f=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],g=t[3]^e[3],b=4,v=1;v<r;v++)o=h[f>>>24]^l[p>>>16&255]^c[m>>>8&255]^d[255&g]^e[b++],a=h[p>>>24]^l[m>>>16&255]^c[g>>>8&255]^d[255&f]^e[b++],s=h[m>>>24]^l[g>>>16&255]^c[f>>>8&255]^d[255&p]^e[b++],u=h[g>>>24]^l[f>>>16&255]^c[p>>>8&255]^d[255&m]^e[b++],f=o,p=a,m=s,g=u;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[b++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^e[b++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^e[b++],u=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^e[b++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],n=[],r=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,i[a]=h,n[h]=a;var l=t[a],c=t[l],d=t[c],f=257*t[h]^16843008*h;r[0][a]=f<<24|f>>>8,r[1][a]=f<<16|f>>>16,r[2][a]=f<<8|f>>>24,r[3][a]=f,f=16843009*d^65537*c^257*l^16843008*a,o[0][h]=f<<24|f>>>8,o[1][h]=f<<16|f>>>16,o[2][h]=f<<8|f>>>24,o[3][h]=f,0===a?a=s=1:(a=l^t[t[t[d^l]]],s^=t[t[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:o}}();function h(t){this._key=r(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,n=4*(i+1),r=[],o=0;o<e;o++)r[o]=t[o];for(o=e;o<n;o++){var a=r[o-1];o%e==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),r[o]=r[o-e]^a}for(var h=[],l=0;l<n;l++){var c=n-l,d=r[c-(l%4?0:4)];h[l]=l<4||c<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=r(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),i=n.allocUnsafe(16);return i.writeUInt32BE(e[0],0),i.writeUInt32BE(e[1],4),i.writeUInt32BE(e[2],8),i.writeUInt32BE(e[3],12),i},h.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var i=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},226:function(t,e,i){var n=i(40).Buffer,r=i(306);t.exports=function(t,e,i,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=i/8,s=n.alloc(a),u=n.alloc(o||0),h=n.alloc(0);a>0||o>0;){var l=new r;l.update(h),l.update(t),e&&l.update(e),h=l.digest();var c=0;if(a>0){var d=s.length-a;c=Math.min(a,h.length),h.copy(s,d,0,c),a-=c}if(c<h.length&&o>0){var f=u.length-o,p=Math.min(o,h.length-c);h.copy(u,f,c,c+p),o-=p}}return h.fill(0),{key:s,iv:u}}},23:function(t,e,i){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}i.d(e,"a",(function(){return n}))},234:function(t,e,i){"use strict";var n=i(132),r=i(105),o=r.getNAF,a=r.getJSF,s=r.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var i=t._getDoubles(),n=o(e,1,this._bitLength),r=(1<<i.step+1)-(i.step%2==0?2:1);r/=3;var a,u,h=[];for(a=0;a<n.length;a+=i.step){u=0;for(var l=a+i.step-1;l>=a;l--)u=(u<<1)+n[l];h.push(u)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=r;f>0;f--){for(a=0;a<h.length;a++)(u=h[a])===f?d=d.mixedAdd(i.points[a]):u===-f&&(d=d.mixedAdd(i.points[a].neg()));c=c.add(d)}return c.toP()},u.prototype._wnafMul=function(t,e){var i=4,n=t._getNAFPoints(i);i=n.wnd;for(var r=n.points,a=o(e,i,this._bitLength),u=this.jpoint(null,null,null),h=a.length-1;h>=0;h--){for(var l=0;h>=0&&0===a[h];h--)l++;if(h>=0&&l++,u=u.dblp(l),h<0)break;var c=a[h];s(0!==c),u="affine"===t.type?c>0?u.mixedAdd(r[c-1>>1]):u.mixedAdd(r[-c-1>>1].neg()):c>0?u.add(r[c-1>>1]):u.add(r[-c-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,i,n,r){var s,u,h,l=this._wnafT1,c=this._wnafT2,d=this._wnafT3,f=0;for(s=0;s<n;s++){var p=(h=e[s])._getNAFPoints(t);l[s]=p.wnd,c[s]=p.points}for(s=n-1;s>=1;s-=2){var m=s-1,g=s;if(1===l[m]&&1===l[g]){var b=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(b[1]=e[m].add(e[g]),b[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(b[1]=e[m].toJ().mixedAdd(e[g]),b[2]=e[m].add(e[g].neg())):(b[1]=e[m].toJ().mixedAdd(e[g]),b[2]=e[m].toJ().mixedAdd(e[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=a(i[m],i[g]);for(f=Math.max(y[0].length,f),d[m]=new Array(f),d[g]=new Array(f),u=0;u<f;u++){var w=0|y[0][u],_=0|y[1][u];d[m][u]=v[3*(w+1)+(_+1)],d[g][u]=0,c[m]=b}}else d[m]=o(i[m],l[m],this._bitLength),d[g]=o(i[g],l[g],this._bitLength),f=Math.max(d[m].length,f),f=Math.max(d[g].length,f)}var M=this.jpoint(null,null,null),x=this._wnafT4;for(s=f;s>=0;s--){for(var S=0;s>=0;){var T=!0;for(u=0;u<n;u++)x[u]=0|d[u][s],0!==x[u]&&(T=!1);if(!T)break;S++,s--}if(s>=0&&S++,M=M.dblp(S),s<0)break;for(u=0;u<n;u++){var A=x[u];0!==A&&(A>0?h=c[u][A-1>>1]:A<0&&(h=c[u][-A-1>>1].neg()),M="affine"===h.type?M.mixedAdd(h):M.add(h))}}for(s=0;s<n;s++)c[s]=null;return r?M:M.toP()},u.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=r.toArray(t,e);var i=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*i)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));if((2===t[0]||3===t[0])&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),3===t[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},h.prototype.encode=function(t,e){return r.encode(this._encode(e),t)},h.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},h.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r<e;r+=t){for(var o=0;o<t;o++)n=n.dbl();i.push(n)}return{step:t,points:i}},h.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,n=1===i?null:this.dbl(),r=1;r<i;r++)e[r]=e[r-1].add(n);return{wnd:t,points:e}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},235:function(t,e,i){var n=i(781),r=i(788),o=i(789),a=i(314),s=i(456),u=i(40).Buffer;function h(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var i,h,l=o(t,e),c=l.tag,d=l.data;switch(c){case"CERTIFICATE":h=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=n.PublicKey.decode(d,"der")),i=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=n.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=r[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,c=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(e,i,n,c,"sha1"),f=a.createDecipheriv(o,d,h),p=[];return p.push(f.update(l)),p.push(f.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(i=(h=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:n.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=n.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+c)}}t.exports=h,h.signature=n.signature},241:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"TextTemplateLoader",(function(){return l})),i.d(e,"ensureOriginOnExports",(function(){return c})),i.d(e,"WebpackLoader",(function(){return d}));var n,r=i(17),o=i(97),a=i(7),s=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(a,s)}u((n=n.apply(t,e||[])).next())}))},h=function(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(){function t(){}return t.prototype.loadTemplate=function(t,e){return u(this,void 0,void 0,(function(){var i;return h(this,(function(n){switch(n.label){case 0:return[4,t.loadText(e.address)];case 1:return i=n.sent(),e.template=a.b.createTemplateFromMarkup(i),[2]}}))}))},t}();function c(t,e){var i,n,o=t;if(o.__useDefault&&(o=o.default),r.a.set(o,new r.a(e,"default")),"object"==typeof o)for(i in o)"function"==typeof(n=o[i])&&r.a.set(n,new r.a(e,i));return t}var d=function(e){function n(){var t=e.call(this)||this;return t.moduleRegistry=Object.create(null),t.loaderPlugins=Object.create(null),t.modulesBeingLoaded=new Map,t.useTemplateLoader(new l),t.addPlugin("template-registry-entry",{fetch:function(e){return u(t,void 0,void 0,(function(){var t;return h(this,(function(i){switch(i.label){case 0:return(t=this.getOrCreateTemplateRegistryEntry(e)).templateIsLoaded?[3,2]:[4,this.templateLoader.loadTemplate(this,t)];case 1:i.sent(),i.label=2;case 2:return[2,t]}}))}))}}),a.d.eachModule=function(t){var e=i.c;Object.getOwnPropertyNames(e).some((function(i){var n=e[i].exports;return"object"==typeof n&&t(i,n)}))},t}return s(n,e),n.prototype._import=function(e,n){return void 0===n&&(n=!0),u(this,void 0,void 0,(function(){var r,o,a,s,u,l,c=this;return h(this,(function(h){switch(h.label){case 0:if(r=e.split("!"),o=r.splice(r.length-1,1)[0],!(a=1===r.length?r[0]:null))return[3,2];if(!(s=this.loaderPlugins[a]))throw new Error("Plugin "+a+" is not registered in the loader.");return[4,s.fetch(o)];case 1:return[2,h.sent()];case 2:return i.m[o]?(n&&t.hot&&this.hmrContext&&t.hot.accept(o,(function(){return c.hmrContext.handleModuleChange(o,t.hot)})),[2,i(o)]):(u="async!"+o,i.m[u]?(n&&t.hot&&this.hmrContext&&(t.hot.accept(o,(function(){return c.hmrContext.handleModuleChange(o,t.hot)})),t.hot.accept(u,(function(){return c.hmrContext.handleModuleChange(o,t.hot)}))),l=i(u),[4,new Promise(l)]):[3,4]);case 3:return[2,h.sent()];case 4:throw new Error("Unable to find module with ID: "+o)}}))}))},n.prototype.map=function(t,e){},n.prototype.normalizeSync=function(t,e){return t},n.prototype.normalize=function(t,e){return Promise.resolve(t)},n.prototype.useTemplateLoader=function(t){this.templateLoader=t},n.prototype.loadAllModules=function(t){var e=this;return Promise.all(t.map((function(t){return e.loadModule(t)})))},n.prototype.loadModule=function(t,e){return void 0===e&&(e=!0),u(this,void 0,void 0,(function(){var i,n,r;return h(this,(function(o){switch(o.label){case 0:return(i=this.moduleRegistry[t])?[2,i]:(n=this.modulesBeingLoaded.get(t))?[2,n]:(n=this._import(t,e),this.modulesBeingLoaded.set(t,n),[4,n]);case 1:return r=o.sent(),this.moduleRegistry[t]=c(r,t),this.modulesBeingLoaded.delete(t),[2,r]}}))}))},n.prototype.loadTemplate=function(t){return this.loadModule(this.applyPluginToUrl(t,"template-registry-entry"),!1)},n.prototype.loadText=function(t){return u(this,void 0,void 0,(function(){var e;return h(this,(function(i){switch(i.label){case 0:return[4,this.loadModule(t,!1)];case 1:return(e=i.sent())instanceof Array&&e[0]instanceof Array&&e.hasOwnProperty("toString")?[2,e.toString()]:[2,e]}}))}))},n.prototype.applyPluginToUrl=function(t,e){return e+"!"+t},n.prototype.addPlugin=function(t,e){this.loaderPlugins[t]=e},n}(o.a);a.d.Loader=d}.call(this,i(890)(t))},242:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(243),r=i(244),o=i(245),a=i(246),s=i(247),u=function(){function t(){this.matchers=[],this.strategies=[],this.addStrategy((function(t){return null==t}),new n.a),this.addStrategy((function(t){return t instanceof Array}),new r.a),this.addStrategy((function(t){return t instanceof Map}),new o.a),this.addStrategy((function(t){return t instanceof Set}),new a.a),this.addStrategy((function(t){return"number"==typeof t}),new s.a)}return t.prototype.addStrategy=function(t,e){this.matchers.push(t),this.strategies.push(e)},t.prototype.getStrategy=function(t){for(var e=this.matchers,i=0,n=e.length;i<n;++i)if(e[i](t))return this.strategies[i];return null},t}()},243:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.prototype.instanceChanged=function(t,e){t.removeAllViews(!0)},t.prototype.getCollectionObserver=function(t,e){},t}()},244:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(45),r=i(14),o=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getArrayObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,r=e.length;if(e&&0!==r){var o=t.views(),a=o.length;if(0!==a)if(t.viewsRequireLifecycle){for(var s=o.slice(0),u=t.local,h=t.matcher(),l=[],c=[],d=0;d<a;d++){var f=s[d],p=f.bindingContext[u];-1===Object(n.c)(e,p,h)?c.push(f):l.push(p)}var m=void 0,g=void 0;l.length>0?(g=t.removeViews(c,!0,!t.viewsRequireLifecycle),m=function(){for(var a=0;a<r;a++){var s=e[a],u=Object(n.c)(l,s,h,a),c=void 0;if(-1===u){var d=Object(n.a)(t,e[a],a,r);t.insertView(a,d.bindingContext,d),l.splice(a,0,void 0)}else u===a?(c=o[u],l[u]=void 0):(c=o[u],t.moveView(u,a),l.splice(u,1),l.splice(a,0,void 0));c&&Object(n.g)(c.overrideContext,a,r)}i._inPlaceProcessItems(t,e)}):(g=t.removeAllViews(!0,!t.viewsRequireLifecycle),m=function(){return i._standardProcessInstanceChanged(t,e)}),g instanceof Promise?g.then(m):m()}else this._inPlaceProcessItems(t,e);else this._standardProcessInstanceChanged(t,e)}else t.removeAllViews(!0,!t.viewsRequireLifecycle)},t.prototype._standardProcessInstanceChanged=function(t,e){for(var i=0,r=e.length;i<r;i++){var o=Object(n.a)(t,e[i],i,r);t.addView(o.bindingContext,o)}},t.prototype._inPlaceProcessItems=function(t,e){for(var i=e.length,r=t.viewCount();r>i;)r--,t.removeView(r,!0,!t.viewsRequireLifecycle);for(var o=t.local,a=0;a<r;a++){var s=t.view(a),u=a===i-1,h=0!==a&&!u;s.bindingContext[o]===e[a]&&s.overrideContext.$middle===h&&s.overrideContext.$last===u||(s.bindingContext[o]=e[a],s.overrideContext.$middle=h,s.overrideContext.$last=u,t.updateBindings(s))}for(var l=r;l<i;l++){var c=Object(n.a)(t,e[l],l,i);t.addView(c.bindingContext,c)}},t.prototype.instanceMutated=function(t,e,i){var n=this;if(t.__queuedSplices){for(var o=0,a=i.length;o<a;++o){var s=i[o],u=s.index,h=s.removed,l=s.addedCount;Object(r.y)(t.__queuedSplices,u,h,l)}t.__array=e.slice(0)}else{var c=this._runSplices(t,e.slice(0),i);if(c instanceof Promise){var d=t.__queuedSplices=[];c.then((function e(){if(!d.length)return t.__queuedSplices=void 0,void(t.__array=void 0);var i=n._runSplices(t,t.__array,d)||Promise.resolve();d=t.__queuedSplices=[],i.then(e)}))}}},t.prototype._runSplices=function(t,e,i){for(var r=this,o=0,a=[],s=0,u=i.length;s<u;++s){for(var h=i[s],l=0,c=h.removed.length;l<c;++l){var d=t.removeView(h.index+o+a.length,!0);d instanceof Promise&&a.push(d)}o-=h.addedCount}if(a.length>0)return Promise.all(a).then((function(){var o=r._handleAddedSplices(t,e,i);Object(n.h)(t.views(),o)}));var f=this._handleAddedSplices(t,e,i);Object(n.h)(t.views(),f)},t.prototype._handleAddedSplices=function(t,e,i){for(var r=void 0,o=void 0,a=e.length,s=0,u=i.length;s<u;++s){var h=i[s],l=r=h.index,c=h.index+h.addedCount;for((null==o||o>h.index)&&(o=r);l<c;++l){var d=Object(n.a)(t,e[l],l,a);t.insertView(l,d.bindingContext,d)}}return o},t}()},245:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(45),r=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getMapObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i=0,r=void 0;e.forEach((function(o,a){r=Object(n.a)(t,o,i,e.size,a),t.addView(r.bindingContext,r),++i}))},t.prototype.instanceMutated=function(t,e,i){var r,o=void 0,a=void 0,s=void 0,u=void 0,h=void 0,l=void 0,c=[],d=void 0;for(a=0,r=i.length;a<r;++a)switch(o=(l=i[a]).key,l.type){case"update":u=this._getViewIndexByKey(t,o),(d=t.removeView(u,!0,!t.viewsRequireLifecycle))instanceof Promise&&c.push(d),s=Object(n.a)(t,e.get(o),u,e.size,o),t.insertView(u,s.bindingContext,s);break;case"add":h=t.viewCount()<=e.size-1?t.viewCount():e.size-1,s=Object(n.a)(t,e.get(o),h,e.size,o),t.insertView(e.size-1,s.bindingContext,s);break;case"delete":if(void 0===l.oldValue)return;u=this._getViewIndexByKey(t,o),(d=t.removeView(u,!0,!t.viewsRequireLifecycle))instanceof Promise&&c.push(d);break;case"clear":t.removeAllViews(!0,!t.viewsRequireLifecycle);break;default:continue}c.length>0?Promise.all(c).then((function(){Object(n.h)(t.views(),0)})):Object(n.h)(t.views(),0)},t.prototype._getViewIndexByKey=function(t,e){var i,n=void 0;for(n=0,i=t.viewCount();n<i;++n)if(t.view(n).bindingContext[t.key]===e)return n},t}()},246:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(45),r=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getSetObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i=0,r=void 0;e.forEach((function(o){r=Object(n.a)(t,o,i,e.size),t.addView(r.bindingContext,r),++i}))},t.prototype.instanceMutated=function(t,e,i){var r,o=void 0,a=void 0,s=void 0,u=void 0,h=void 0,l=[],c=void 0;for(a=0,r=i.length;a<r;++a)switch(o=(h=i[a]).value,h.type){case"add":var d=Math.max(e.size-1,0);s=Object(n.a)(t,o,d,e.size),t.insertView(d,s.bindingContext,s);break;case"delete":u=this._getViewIndexByValue(t,o),(c=t.removeView(u,!0,!t.viewsRequireLifecycle))instanceof Promise&&l.push(c);break;case"clear":t.removeAllViews(!0,!t.viewsRequireLifecycle);break;default:continue}l.length>0?Promise.all(l).then((function(){Object(n.h)(t.views(),0)})):Object(n.h)(t.views(),0)},t.prototype._getViewIndexByValue=function(t,e){var i,n=void 0;for(n=0,i=t.viewCount();n<i;++n)if(t.view(n).bindingContext[t.local]===e)return n},t}()},247:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(45),r=function(){function t(){}return t.prototype.getCollectionObserver=function(){return null},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i=t.viewCount(),r=void 0,o=void 0,a=void 0,s=void 0;if((s=i-(e=Math.floor(e)))>0)for(s>i&&(s=i),r=0,o=s;r<o;++r)t.removeView(i-(r+1),!0,!t.viewsRequireLifecycle);else{for(r=i,o=e;r<o;++r)a=Object(n.a)(t,r,r,o),t.addView(a.bindingContext,a);Object(n.h)(t.views(),0)}},t}()},248:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(t){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},t)}return t.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},t.prototype.views=function(){throw new Error("subclass must implement `views`")},t.prototype.view=function(t){throw new Error("subclass must implement `view`")},t.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},t.prototype.addView=function(t,e){throw new Error("subclass must implement `addView`")},t.prototype.insertView=function(t,e,i){throw new Error("subclass must implement `insertView`")},t.prototype.moveView=function(t,e){throw new Error("subclass must implement `moveView`")},t.prototype.removeAllViews=function(t,e){throw new Error("subclass must implement `removeAllViews`")},t.prototype.removeViews=function(t,e,i){throw new Error("subclass must implement `removeView`")},t.prototype.removeView=function(t,e,i){throw new Error("subclass must implement `removeView`")},t.prototype.updateBindings=function(t){throw new Error("subclass must implement `updateBindings`")},t}()},249:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,r=function(){function t(){}return t.prototype.sanitize=function(t){return t.replace(n,"")},t}()},25:function(t,e,i){"use strict";function n(t,e,i){if(!0===i)return t.classList.add(e);t.classList.remove(e)}function r(t,e,i){const n=window.document.createElement(t);return e=e||"",i=i||"",n.className=e,void 0!==i&&(n.textContent=i),n}function o(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function a(t,e){return e(t)?t:t.parentNode?a(t.parentNode,e):void 0}function s(t,e){const i=r("div","numInputWrapper"),n=r("input","numInput "+t),o=r("span","arrowUp"),a=r("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(const t in e)n.setAttribute(t,e[t]);return i.appendChild(n),i.appendChild(o),i.appendChild(a),i}function u(t){try{if("function"==typeof t.composedPath){return t.composedPath()[0]}return t.target}catch(e){return t.target}}i.d(e,"f",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"e",(function(){return u}))},250:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(14),r=function(){function t(){this.signals={}}return t.prototype.signal=function(t){var e=this.signals[t];if(e)for(var i=e.length;i--;)e[i].call(n.B)},t}()},251:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(176),r=i(177),o=i(520),a=i(7),s=o.a,u={"ux-dialog":function(){return Promise.resolve().then(i.bind(null,"aurelia-dialog/resources/ux-dialog")).then((function(t){return t.UxDialog}))},"ux-dialog-header":function(){return Promise.resolve().then(i.bind(null,"aurelia-dialog/resources/ux-dialog-header")).then((function(t){return t.UxDialogHeader}))},"ux-dialog-body":function(){return Promise.resolve().then(i.bind(null,"aurelia-dialog/resources/ux-dialog-body")).then((function(t){return t.UxDialogBody}))},"ux-dialog-footer":function(){return Promise.resolve().then(i.bind(null,"aurelia-dialog/resources/ux-dialog-footer")).then((function(t){return t.UxDialogFooter}))},"attach-focus":function(){return Promise.resolve().then(i.bind(null,"aurelia-dialog/resources/attach-focus")).then((function(t){return t.AttachFocus}))}},h="ux-dialog-container,ux-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0}ux-dialog-overlay{opacity:0}ux-dialog-overlay.active{opacity:1}ux-dialog-container{display:block;transition:opacity .2s linear;opacity:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}ux-dialog-container.active{opacity:1}ux-dialog-container>div{padding:30px}ux-dialog-container>div>div{display:block;min-width:300px;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto}ux-dialog-container,ux-dialog-container>div,ux-dialog-container>div>div{outline:0}ux-dialog{display:table;box-shadow:0 5px 15px rgba(0,0,0,.5);border:1px solid rgba(0,0,0,.2);border-radius:5px;padding:3px;min-width:300px;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border-image-source:initial;border-image-slice:initial;border-image-width:initial;border-image-outset:initial;border-image-repeat:initial;background:#fff}ux-dialog>ux-dialog-header{display:block;padding:16px;border-bottom:1px solid #e5e5e5}ux-dialog>ux-dialog-header>button{float:right;border:none;display:block;width:32px;height:32px;background:0 0;font-size:22px;line-height:16px;margin:-14px -16px 0 0;padding:0;cursor:pointer}ux-dialog>ux-dialog-body{display:block;padding:16px}ux-dialog>ux-dialog-footer{display:block;padding:6px;border-top:1px solid #e5e5e5;text-align:right}ux-dialog>ux-dialog-footer button{color:#333;background-color:#fff;padding:6px 12px;font-size:14px;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid #ccc;border-radius:4px;margin:5px 0 5px 5px}ux-dialog>ux-dialog-footer button:disabled{cursor:default;opacity:.45}ux-dialog>ux-dialog-footer button:hover:enabled{color:#333;background-color:#e6e6e6;border-color:#adadad}.ux-dialog-open{overflow:hidden}",l=function(){function t(t,e){var i=this;this.renderer=s,this.cssText=h,this.resources=[],this.fwConfig=t,this.settings=this.fwConfig.container.get(r.a),e((function(){return i._apply()}))}return t.prototype._apply=function(){var t=this;if(this.fwConfig.transient(n.a,this.renderer),this.cssText&&a.b.injectStyles(this.cssText),this.resources.length)return Promise.all(this.resources.map((function(t){return u[t]()}))).then((function(e){t.fwConfig.globalResources(e)}))},t.prototype.useDefaults=function(){return this.useRenderer(s).useCSS(h).useStandardResources()},t.prototype.useStandardResources=function(){return this.useResource("ux-dialog").useResource("ux-dialog-header").useResource("ux-dialog-body").useResource("ux-dialog-footer").useResource("attach-focus")},t.prototype.useResource=function(t){return this.resources.push(t),this},t.prototype.useRenderer=function(t,e){return this.renderer=t,e&&Object.assign(this.settings,e),this},t.prototype.useCSS=function(t){return this.cssText=t,this},t}()},252:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.view=null,this.bindingContext=null,this.overrideContext=null,this.showing=!1}return t.prototype.bind=function(t,e){this.bindingContext=t,this.overrideContext=e},t.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing?(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)):this.view.returnToCache(),this.view=null))},t.prototype._show=function(){if(!this.showing)return null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),this.showing=!0,this.viewSlot.add(this.view);this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext)},t.prototype._hide=function(){var t=this;if(this.showing){this.showing=!1;var e=this.viewSlot.remove(this.view);if(e instanceof Promise)return e.then((function(){return t.view.unbind()}));this.view.unbind()}},t}()},254:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(r.a)(t),a=Object(n.a)(e);if(isNaN(a))return new Date(NaN);if(!a)return i;var s=i.getDate(),u=new Date(i.getTime());u.setMonth(i.getMonth()+a+1,0);var h=u.getDate();return s>=h?u:(i.setFullYear(u.getFullYear(),u.getMonth(),s),i)}},255:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(r.a)(t),a=Object(n.a)(e);return isNaN(a)?new Date(NaN):a?(i.setDate(i.getDate()+a),i):i}},286:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=Object(n.a)(t);return!isNaN(e)}},287:function(t,e,i){"use strict";function n(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function r(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var o={p:r,P:function(t,e){var i,o=t.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return n(t,e);switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",n(a,e)).replace("{{time}}",r(s,e))}};e.a=o},288:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(21),r=i(125),o=i(19);function a(t){Object(o.a)(1,arguments);var e=Object(n.a)(t),i=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var s=Object(r.a)(a),u=new Date(0);u.setUTCFullYear(i,0,4),u.setUTCHours(0,0,0,0);var h=Object(r.a)(u);return e.getTime()>=s.getTime()?i+1:e.getTime()>=h.getTime()?i:i-1}},289:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(21),r=i(117),o=i(647),a=i(19),s=6048e5;function u(t,e){Object(a.a)(1,arguments);var i=Object(n.a)(t),u=Object(r.a)(i,e).getTime()-Object(o.a)(i,e).getTime();return Math.round(u/s)+1}},290:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(21),r=i(125),o=i(648),a=i(19),s=6048e5;function u(t){Object(a.a)(1,arguments);var e=Object(n.a)(t),i=Object(r.a)(e).getTime()-Object(o.a)(e).getTime();return Math.round(i/s)+1}},294:function(t,e,i){"use strict";function n(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e=e||{})e.hasOwnProperty(i)&&(t[i]=e[i]);return t}i.d(e,"a",(function(){return n}))},3:function(t,e,i){"use strict";i.d(e,"a",(function(){return T})),i.d(e,"b",(function(){return ee})),i.d(e,"c",(function(){return we})),i.d(e,"d",(function(){return pe})),i.d(e,"e",(function(){return w})),i.d(e,"f",(function(){return Qe})),i.d(e,"g",(function(){return qe})),i.d(e,"h",(function(){return ei})),i.d(e,"i",(function(){return z})),i.d(e,"j",(function(){return r})),i.d(e,"k",(function(){return ti})),i.d(e,"l",(function(){return V})),i.d(e,"m",(function(){return q})),i.d(e,"n",(function(){return m})),i.d(e,"o",(function(){return y})),i.d(e,"p",(function(){return be})),i.d(e,"q",(function(){return R})),i.d(e,"r",(function(){return X})),i.d(e,"s",(function(){return Kt})),i.d(e,"t",(function(){return ot})),i.d(e,"u",(function(){return D})),i.d(e,"v",(function(){return Qt})),i.d(e,"w",(function(){return ae})),i.d(e,"x",(function(){return me})),i.d(e,"y",(function(){return a})),i.d(e,"z",(function(){return s})),i.d(e,"A",(function(){return qt})),i.d(e,"B",(function(){return Te})),i.d(e,"C",(function(){return ge})),i.d(e,"D",(function(){return O})),i.d(e,"E",(function(){return Wt})),i.d(e,"F",(function(){return I})),i.d(e,"G",(function(){return Ce})),i.d(e,"H",(function(){return Ae})),i.d(e,"I",(function(){return Ee})),i.d(e,"J",(function(){return A})),i.d(e,"K",(function(){return l})),i.d(e,"L",(function(){return o})),i.d(e,"M",(function(){return Je})),i.d(e,"N",(function(){return G})),i.d(e,"O",(function(){return Y})),i.d(e,"P",(function(){return Z})),i.d(e,"Q",(function(){return Q})),i.d(e,"R",(function(){return Xt})),i.d(e,"S",(function(){return _e})),i.d(e,"T",(function(){return ve})),i.d(e,"U",(function(){return Jt})),i.d(e,"V",(function(){return j})),i.d(e,"W",(function(){return _})),i.d(e,"X",(function(){return J})),i.d(e,"Y",(function(){return ce})),i.d(e,"Z",(function(){return Ge})),i.d(e,"ab",(function(){return pi})),i.d(e,"bb",(function(){return fi})),i.d(e,"cb",(function(){return ni})),i.d(e,"db",(function(){return ri})),i.d(e,"eb",(function(){return ii})),i.d(e,"fb",(function(){return re})),i.d(e,"gb",(function(){return oe})),i.d(e,"hb",(function(){return te})),i.d(e,"ib",(function(){return se})),i.d(e,"jb",(function(){return de})),i.d(e,"kb",(function(){return fe})),i.d(e,"lb",(function(){return di})),i.d(e,"mb",(function(){return it})),i.d(e,"nb",(function(){return si})),i.d(e,"ob",(function(){return ui})),i.d(e,"pb",(function(){return u})),i.d(e,"qb",(function(){return hi})),i.d(e,"rb",(function(){return h})),i.d(e,"sb",(function(){return tt})),i.d(e,"tb",(function(){return $})),i.d(e,"ub",(function(){return d})),i.d(e,"vb",(function(){return Ut})),i.d(e,"wb",(function(){return $t})),i.d(e,"xb",(function(){return ht})),i.d(e,"yb",(function(){return k})),i.d(e,"zb",(function(){return p})),i.d(e,"Ab",(function(){return P})),i.d(e,"Bb",(function(){return f})),i.d(e,"Cb",(function(){return c})),i.d(e,"Db",(function(){return ie})),i.d(e,"Eb",(function(){return xe})),i.d(e,"Fb",(function(){return ne})),i.d(e,"Gb",(function(){return b})),i.d(e,"Hb",(function(){return v})),i.d(e,"Ib",(function(){return ai})),i.d(e,"Jb",(function(){return nt})),i.d(e,"Kb",(function(){return n})),i.d(e,"Lb",(function(){return U})),i.d(e,"Mb",(function(){return K})),i.d(e,"Nb",(function(){return Se})),i.d(e,"Ob",(function(){return g})),i.d(e,"Pb",(function(){return W})),i.d(e,"Qb",(function(){return rt})),i.d(e,"Rb",(function(){return ye})),i.d(e,"Sb",(function(){return Ke}));const n="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function r(t,e,i){const r=i||(t=>Array.prototype.slice.call(t));let o=!1,a=[];return function(...i){a=r(i),o||(o=!0,n.call(window,(()=>{o=!1,t.apply(e,a)})))}}function o(t,e){let i;return function(){return e?(clearTimeout(i),i=setTimeout(t,e)):t(),e}}const a=t=>"start"===t?"left":"end"===t?"right":"center",s=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,u=(t,e,i)=>"right"===t?i:"center"===t?(e+i)/2:e;function h(){}const l=function(){let t=0;return function(){return t++}}();function c(t){return null==t}function d(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function f(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const p=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function m(t,e){return p(t)?t:e}function g(t,e){return void 0===t?e:t}const b=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,v=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function y(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function w(t,e,i,n){let r,o,a;if(d(t))if(o=t.length,n)for(r=o-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;r<o;r++)e.call(i,t[r],r);else if(f(t))for(a=Object.keys(t),o=a.length,r=0;r<o;r++)e.call(i,t[a[r]],a[r])}function _(t,e){let i,n,r,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(r=t[i],o=e[i],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function M(t){if(d(t))return t.map(M);if(f(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let r=0;for(;r<n;++r)e[i[r]]=M(t[i[r]]);return e}return t}function x(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function S(t,e,i,n){if(!x(t))return;const r=e[t],o=i[t];f(r)&&f(o)?T(r,o,n):e[t]=M(o)}function T(t,e,i){const n=d(e)?e:[e],r=n.length;if(!f(t))return t;const o=(i=i||{}).merger||S;for(let a=0;a<r;++a){if(!f(e=n[a]))continue;const r=Object.keys(e);for(let n=0,a=r.length;n<a;++n)o(r[n],t,e,i)}return t}function A(t,e){return T(t,e,{merger:C})}function C(t,e,i){if(!x(t))return;const n=e[t],r=i[t];f(n)&&f(r)?A(n,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=M(r))}function E(t,e){const i=t.indexOf(".",e);return-1===i?t.length:i}function k(t,e){if(""===e)return t;let i=0,n=E(e,i);for(;t&&n>i;)t=t[e.substr(i,n-i)],i=n+1,n=E(e,i);return t}function O(t){return t.charAt(0).toUpperCase()+t.slice(1)}const P=t=>void 0!==t,I=t=>"function"==typeof t,j=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},R=Math.PI,D=2*R,L=D+R,B=Number.POSITIVE_INFINITY,N=R/180,z=R/2,H=R/4,F=2*R/3,V=Math.log10,U=Math.sign;function G(t){const e=Math.pow(10,Math.floor(V(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function q(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function W(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Z(t,e,i){return Math.abs(t-e)<i}function Y(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function $(t,e,i){let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function K(t){return t*(R/180)}function X(t){return t*(180/R)}function Q(t){if(!p(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function J(t,e){const i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*R&&(o+=D),{angle:o,distance:r}}function tt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function et(t,e){return(t-e+L)%D-R}function it(t){return(t%D+D)%D}function nt(t,e,i){const n=it(t),r=it(e),o=it(i),a=it(r-n),s=it(o-n),u=it(n-r),h=it(n-o);return n===r||n===o||a>s&&u<h}function rt(t,e,i){return Math.max(e,Math.min(i,t))}function ot(t){return rt(t,-32768,32767)}const at=t=>0===t||1===t,st=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/i),ut=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/i)+1,ht={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*z),easeOutSine:t=>Math.sin(t*z),easeInOutSine:t=>-.5*(Math.cos(R*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>at(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>at(t)?t:st(t,.075,.3),easeOutElastic:t=>at(t)?t:ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return at(t)?t:t<.5?.5*st(2*t,e,.45):.5+.5*ut(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ht.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*ht.easeInBounce(2*t):.5*ht.easeOutBounce(2*t-1)+.5},lt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ct="0123456789ABCDEF",dt=t=>ct[15&t],ft=t=>ct[(240&t)>>4]+ct[15&t],pt=t=>(240&t)>>4==(15&t);function mt(t){var e=function(t){return pt(t.r)&&pt(t.g)&&pt(t.b)&&pt(t.a)}(t)?dt:ft;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function gt(t){return t+.5|0}const bt=(t,e,i)=>Math.max(Math.min(t,i),e);function vt(t){return bt(gt(2.55*t),0,255)}function yt(t){return bt(gt(255*t),0,255)}function wt(t){return bt(gt(t/2.55)/100,0,1)}function _t(t){return bt(gt(100*t),0,100)}const Mt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const xt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function St(t,e,i){const n=e*Math.min(i,1-i),r=(e,r=(e+t/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Tt(t,e,i){const n=(n,r=(n+t/60)%6)=>i-i*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function At(t,e,i){const n=St(t,1,.5);let r;for(e+i>1&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function Ct(t){const e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),o=Math.min(e,i,n),a=(r+o)/2;let s,u,h;return r!==o&&(h=r-o,u=a>.5?h/(2-r-o):h/(r+o),s=r===e?(i-n)/h+(i<n?6:0):r===i?(n-e)/h+2:(e-i)/h+4,s=60*s+.5),[0|s,u||0,a]}function Et(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(yt)}function kt(t,e,i){return Et(St,t,e,i)}function Ot(t){return(t%360+360)%360}function Pt(t){const e=xt.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?vt(+e[5]):yt(+e[5]));const r=Ot(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Et(At,t,e,i)}(r,o,a):"hsv"===e[1]?function(t,e,i){return Et(Tt,t,e,i)}(r,o,a):kt(r,o,a),{r:i[0],g:i[1],b:i[2],a:n}}const It={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},jt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Rt;function Dt(t){Rt||(Rt=function(){const t={},e=Object.keys(jt),i=Object.keys(It);let n,r,o,a,s;for(n=0;n<e.length;n++){for(a=s=e[n],r=0;r<i.length;r++)o=i[r],s=s.replace(o,It[o]);o=parseInt(jt[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),Rt.transparent=[0,0,0,0]);const e=Rt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Lt(t,e,i){if(t){let n=Ct(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=kt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Bt(t,e){return t?Object.assign(e||{},t):t}function Nt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=yt(t[3]))):(e=Bt(t,{r:0,g:0,b:0,a:1})).a=yt(e.a),e}function zt(t){return"r"===t.charAt(0)?function(t){const e=Mt.exec(t);let i,n,r,o=255;if(e){if(e[7]!==i){const t=+e[7];o=255&(e[8]?vt(t):255*t)}return i=+e[1],n=+e[3],r=+e[5],i=255&(e[2]?vt(i):i),n=255&(e[4]?vt(n):n),r=255&(e[6]?vt(r):r),{r:i,g:n,b:r,a:o}}}(t):Pt(t)}class Ht{constructor(t){if(t instanceof Ht)return t;const e=typeof t;let i;var n,r,o;"object"===e?i=Nt(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?r={r:255&17*lt[n[1]],g:255&17*lt[n[2]],b:255&17*lt[n[3]],a:5===o?17*lt[n[4]]:255}:7!==o&&9!==o||(r={r:lt[n[1]]<<4|lt[n[2]],g:lt[n[3]]<<4|lt[n[4]],b:lt[n[5]]<<4|lt[n[6]],a:9===o?lt[n[7]]<<4|lt[n[8]]:255})),i=r||Dt(t)||zt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Bt(this._rgb);return t&&(t.a=wt(t.a)),t}set rgb(t){this._rgb=Nt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?mt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ct(t),i=e[0],n=_t(e[1]),r=_t(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${r}%, ${wt(t.a)})`:`hsl(${i}, ${n}%, ${r}%)`}(this._rgb):this._rgb}mix(t,e){const i=this;if(t){const n=i.rgb,r=t.rgb;let o;const a=e===o?.5:e,s=2*a-1,u=n.a-r.a,h=((s*u==-1?s:(s+u)/(1+s*u))+1)/2;o=1-h,n.r=255&h*n.r+o*r.r+.5,n.g=255&h*n.g+o*r.g+.5,n.b=255&h*n.b+o*r.b+.5,n.a=a*n.a+(1-a)*r.a,i.rgb=n}return i}clone(){return new Ht(this.rgb)}alpha(t){return this._rgb.a=yt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=gt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Lt(this._rgb,2,t),this}darken(t){return Lt(this._rgb,2,-t),this}saturate(t){return Lt(this._rgb,1,t),this}desaturate(t){return Lt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ct(t);i[0]=Ot(i[0]+e),i=kt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Ft(t){return new Ht(t)}const Vt=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Ut(t){return Vt(t)?t:Ft(t)}function Gt(t){return Vt(t)?t:Ft(t).saturate(.5).darken(.1).hexString()}const qt=Object.create(null),Wt=Object.create(null);function Zt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function Yt(t,e,i){return"string"==typeof e?T(Zt(t,e),i):T(Zt(t,""),e)}var $t=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Gt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Gt(e.borderColor),this.hoverColor=(t,e)=>Gt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(t)}set(t,e){return Yt(this,t,e)}get(t){return Zt(this,t)}describe(t,e){return Yt(Wt,t,e)}override(t,e){return Yt(qt,t,e)}route(t,e,i,n){const r=Zt(this,t),o=Zt(this,i),a="_"+e;Object.defineProperties(r,{[a]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[n];return f(t)?Object.assign({},e,t):g(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Kt(t,e,i,n,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,i.push(r)),o>n&&(n=o),n}function Xt(t,e,i,n){let r=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const s=i.length;let u,h,l,c,f;for(u=0;u<s;u++)if(c=i[u],null!=c&&!0!==d(c))a=Kt(t,r,o,a,c);else if(d(c))for(h=0,l=c.length;h<l;h++)f=c[h],null==f||d(f)||(a=Kt(t,r,o,a,f));t.restore();const p=o.length/2;if(p>i.length){for(u=0;u<p;u++)delete r[o[u]];o.splice(0,p)}return a}function Qt(t,e,i){const n=t.currentDevicePixelRatio,r=0!==i?Math.max(i/2,.5):0;return Math.round((e-r)*n)/n+r}function Jt(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function te(t,e,i,n){let r,o,a,s,u;const h=e.pointStyle,l=e.rotation,c=e.radius;let d=(l||0)*N;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,n),t.rotate(d),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(c)||c<=0)){switch(t.beginPath(),h){default:t.arc(i,n,c,0,D),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(d)*c,n-Math.cos(d)*c),d+=F,t.lineTo(i+Math.sin(d)*c,n-Math.cos(d)*c),d+=F,t.lineTo(i+Math.sin(d)*c,n-Math.cos(d)*c),t.closePath();break;case"rectRounded":u=.516*c,s=c-u,o=Math.cos(d+H)*s,a=Math.sin(d+H)*s,t.arc(i-o,n-a,u,d-R,d-z),t.arc(i+a,n-o,u,d-z,d),t.arc(i+o,n+a,u,d,d+z),t.arc(i-a,n+o,u,d+z,d+R),t.closePath();break;case"rect":if(!l){s=Math.SQRT1_2*c,t.rect(i-s,n-s,2*s,2*s);break}d+=H;case"rectRot":o=Math.cos(d)*c,a=Math.sin(d)*c,t.moveTo(i-o,n-a),t.lineTo(i+a,n-o),t.lineTo(i+o,n+a),t.lineTo(i-a,n+o),t.closePath();break;case"crossRot":d+=H;case"cross":o=Math.cos(d)*c,a=Math.sin(d)*c,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"star":o=Math.cos(d)*c,a=Math.sin(d)*c,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o),d+=H,o=Math.cos(d)*c,a=Math.sin(d)*c,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"line":o=Math.cos(d)*c,a=Math.sin(d)*c,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(d)*c,n+Math.sin(d)*c)}t.fill(),e.borderWidth>0&&t.stroke()}}function ee(t,e,i){return i=i||.5,t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ie(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ne(t){t.restore()}function re(t,e,i,n,r){if(!e)return t.lineTo(i.x,i.y);if("middle"===r){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===r!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function oe(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function ae(t,e,i,n,r,o={}){const a=d(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;let u,h;for(t.save(),o.translation&&t.translate(o.translation[0],o.translation[1]),c(o.rotation)||t.rotate(o.rotation),t.font=r.string,o.color&&(t.fillStyle=o.color),o.textAlign&&(t.textAlign=o.textAlign),o.textBaseline&&(t.textBaseline=o.textBaseline),u=0;u<a.length;++u){if(h=a[u],s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),c(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(h,i,n,o.maxWidth)),t.fillText(h,i,n,o.maxWidth),o.strikethrough||o.underline){const e=t.measureText(h),r=i-e.actualBoundingBoxLeft,a=i+e.actualBoundingBoxRight,s=n-e.actualBoundingBoxAscent,u=n+e.actualBoundingBoxDescent,l=o.strikethrough?(s+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(r,l),t.lineTo(a,l),t.stroke()}n+=r.lineHeight}t.restore()}function se(t,e){const{x:i,y:n,w:r,h:o,radius:a}=e;t.arc(i+a.topLeft,n+a.topLeft,a.topLeft,-z,R,!0),t.lineTo(i,n+o-a.bottomLeft),t.arc(i+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,R,z,!0),t.lineTo(i+r-a.bottomRight,n+o),t.arc(i+r-a.bottomRight,n+o-a.bottomRight,a.bottomRight,z,0,!0),t.lineTo(i+r,n+a.topRight),t.arc(i+r-a.topRight,n+a.topRight,a.topRight,0,-z,!0),t.lineTo(i+a.topLeft,n)}const ue=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),he=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function le(t,e){const i=(""+t).match(ue);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function ce(t,e){const i={},n=f(e),r=n?Object.keys(e):e,o=f(t)?n?i=>g(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of r)i[t]=+o(t)||0;return i}function de(t){return ce(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fe(t){return ce(t,["topLeft","topRight","bottomLeft","bottomRight"])}function pe(t){const e=de(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function me(t,e){t=t||{},e=e||$t.font;let i=g(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=g(t.style,e.style);n&&!(""+n).match(he)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const r={family:g(t.family,e.family),lineHeight:le(g(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:g(t.weight,e.weight),string:""};return r.string=function(t){return!t||c(t.size)||c(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function ge(t,e,i,n){let r,o,a,s=!0;for(r=0,o=t.length;r<o;++r)if(a=t[r],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==i&&d(a)&&(a=a[i%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function be(t,e){const{min:i,max:n}=t;return{min:i-Math.abs(v(e,i)),max:n+v(e,n)}}function ve(t,e,i){i=i||(i=>t[i]<e);let n,r=t.length-1,o=0;for(;r-o>1;)n=o+r>>1,i(n)?o=n:r=n;return{lo:o,hi:r}}const ye=(t,e,i)=>ve(t,i,(n=>t[n][e]<i)),we=(t,e,i)=>ve(t,i,(n=>t[n][e]>=i));function _e(t,e,i){let n=0,r=t.length;for(;n<r&&t[n]<e;)n++;for(;r>n&&t[r-1]>i;)r--;return n>0||r<t.length?t.slice(n,r):t}const Me=["push","pop","shift","splice","unshift"];function xe(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Me.forEach((e=>{const i="_onData"+O(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),r}})})))}function Se(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(Me.forEach((e=>{delete t[e]})),delete t._chartjs)}function Te(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);if(e.size===n)return t;const r=[];return e.forEach((t=>{r.push(t)})),r}function Ae(t,e=[""],i=t,n,r=(()=>t[0])){P(n)||(n=Be("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>Ae([r,...t],e,i,n)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Pe(i,n,(()=>function(t,e,i,n){let r;for(const o of e)if(r=Be(ke(o,t),i),P(r))return Oe(t,r)?De(i,n,t,r):r}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ne(t).includes(e),ownKeys:t=>Ne(t),set:(t,e,i)=>((t._storage||(t._storage=r()))[e]=i,delete t[e],delete t._keys,!0)})}function Ce(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ee(t,n),setContext:e=>Ce(t,e,i,n),override:r=>Ce(t.override(r),e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Pe(t,e,(()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:o,_descriptors:a}=t;let s=n[e];I(s)&&a.isScriptable(e)&&(s=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:a,_stack:s}=i;if(s.has(t))throw new Error("Recursion detected: "+[...s].join("->")+"->"+t);s.add(t),e=e(o,a||n),s.delete(t),f(e)&&(e=De(r._scopes,r,t,e));return e}(e,s,t,i));d(s)&&s.length&&(s=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=i;if(P(o.index)&&n(t))e=e[o.index%e.length];else if(f(e[0])){const i=e,n=r._scopes.filter((t=>t!==i));e=[];for(const u of i){const i=De(n,r,t,u);e.push(Ce(i,o,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Oe(e,s)&&(s=Ce(s,r,o&&o[e],a));return s}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function Ee(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:i,indexable:n,isScriptable:I(i)?i:()=>i,isIndexable:I(n)?n:()=>n}}const ke=(t,e)=>t?t+O(e):e,Oe=(t,e)=>f(e)&&"adapters"!==t;function Pe(t,e,i){let n=t[e];return P(n)||(n=i(),P(n)&&(t[e]=n)),n}function Ie(t,e,i){return I(t)?t(e,i):t}const je=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function Re(t,e,i,n){for(const r of e){const e=je(i,r);if(e){t.add(e);const r=Ie(e._fallback,i,e);if(P(r)&&r!==i&&r!==n)return r}else if(!1===e&&P(n)&&i!==n)return null}return!1}function De(t,e,i,n){const r=e._rootScopes,o=Ie(e._fallback,i,n),a=[...t,...r],s=new Set;s.add(n);let u=Le(s,a,i,o||i);return null!==u&&((!P(o)||o===i||(u=Le(s,a,o,u),null!==u))&&Ae([...s],[""],r,o,(()=>{const t=e._getTarget();return i in t||(t[i]={}),t[i]})))}function Le(t,e,i,n){for(;i;)i=Re(t,e,i,n);return i}function Be(t,e){for(const i of e){if(!i)continue;const e=i[t];if(P(e))return e}}function Ne(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return[...e]}(t._scopes)),e}const ze=Number.EPSILON||1e-14,He=(t,e)=>e<t.length&&!t[e].skip&&t[e];function Fe(t,e,i,n){const r=t.skip?e:t,o=e,a=i.skip?e:i,s=tt(o,r),u=tt(a,o);let h=s/(s+u),l=u/(s+u);h=isNaN(h)?0:h,l=isNaN(l)?0:l;const c=n*h,d=n*l;return{previous:{x:o.x-c*(a.x-r.x),y:o.y-c*(a.y-r.y)},next:{x:o.x+d*(a.x-r.x),y:o.y+d*(a.y-r.y)}}}function Ve(t){const e=t.length,i=Array(e).fill(0),n=Array(e);let r,o,a,s=He(t,0);for(r=0;r<e;++r)if(o=a,a=s,s=He(t,r+1),a){if(s){const t=s.x-a.x;i[r]=0!==t?(s.y-a.y)/t:0}n[r]=o?s?U(i[r-1])!==U(i[r])?0:(i[r-1]+i[r])/2:i[r-1]:i[r]}!function(t,e,i){const n=t.length;let r,o,a,s,u,h=He(t,0);for(let l=0;l<n-1;++l)u=h,h=He(t,l+1),u&&h&&(Z(e[l],0,ze)?i[l]=i[l+1]=0:(r=i[l]/e[l],o=i[l+1]/e[l],s=Math.pow(r,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),i[l]=r*a*e[l],i[l+1]=o*a*e[l])))}(t,i,n),function(t,e){const i=t.length;let n,r,o,a=He(t,0);for(let s=0;s<i;++s){if(r=o,o=a,a=He(t,s+1),!o)continue;const{x:i,y:u}=o;r&&(n=(i-r.x)/3,o.cp1x=i-n,o.cp1y=u-n*e[s]),a&&(n=(a.x-i)/3,o.cp2x=i+n,o.cp2y=u+n*e[s])}}(t,n)}function Ue(t,e,i){return Math.max(Math.min(t,i),e)}function Ge(t,e,i,n){let r,o,a,s;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ve(t);else{let i=n?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)a=t[r],s=Fe(i,a,t[Math.min(r+1,o-(n?0:1))%o],e.tension),a.cp1x=s.previous.x,a.cp1y=s.previous.y,a.cp2x=s.next.x,a.cp2y=s.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,r,o,a,s=ee(t[0],e);for(i=0,n=t.length;i<n;++i)a=o,o=s,s=i<n-1&&ee(t[i+1],e),o&&(r=t[i],a&&(r.cp1x=Ue(r.cp1x,e.left,e.right),r.cp1y=Ue(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=Ue(r.cp2x,e.left,e.right),r.cp2y=Ue(r.cp2y,e.top,e.bottom)))}(t,i)}function qe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function We(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const Ze=t=>window.getComputedStyle(t,null);const Ye=["top","right","bottom","left"];function $e(t,e,i){const n={};i=i?"-"+i:"";for(let r=0;r<4;r++){const o=Ye[r];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Ke(t,e){const{canvas:i,currentDevicePixelRatio:n}=e,r=Ze(i),o="border-box"===r.boxSizing,a=$e(r,"padding"),s=$e(r,"border","width"),{x:u,y:h,box:l}=function(t,e){const i=t.native||t,n=i.touches,r=n&&n.length?n[0]:i,{offsetX:o,offsetY:a}=r;let s,u,h=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(o,a,i.target))s=o,u=a;else{const t=e.getBoundingClientRect();s=r.clientX-t.left,u=r.clientY-t.top,h=!0}return{x:s,y:u,box:h}}(t,i),c=a.left+(l&&s.left),d=a.top+(l&&s.top);let{width:f,height:p}=e;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((u-c)/f*i.width/n),y:Math.round((h-d)/p*i.height/n)}}const Xe=t=>Math.round(10*t)/10;function Qe(t,e,i,n){const r=Ze(t),o=$e(r,"margin"),a=We(r.maxWidth,t,"clientWidth")||B,s=We(r.maxHeight,t,"clientHeight")||B,u=function(t,e,i){let n,r;if(void 0===e||void 0===i){const o=qe(t);if(o){const t=o.getBoundingClientRect(),a=Ze(o),s=$e(a,"border","width"),u=$e(a,"padding");e=t.width-u.width-s.width,i=t.height-u.height-s.height,n=We(a.maxWidth,o,"clientWidth"),r=We(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||B,maxHeight:r||B}}(t,e,i);let{width:h,height:l}=u;if("content-box"===r.boxSizing){const t=$e(r,"border","width"),e=$e(r,"padding");h-=e.width+t.width,l-=e.height+t.height}return h=Math.max(0,h-o.width),l=Math.max(0,n?Math.floor(h/n):l-o.height),h=Xe(Math.min(h,a,u.maxWidth)),l=Xe(Math.min(l,s,u.maxHeight)),h&&!l&&(l=Xe(h/2)),{width:h,height:l}}function Je(t,e,i){const n=t.currentDevicePixelRatio=e||1,{canvas:r,width:o,height:a}=t;r.height=a*n,r.width=o*n,t.ctx.setTransform(n,0,0,n,0,0),r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=a+"px",r.style.width=o+"px")}const ti=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function ei(t,e){const i=function(t,e){return Ze(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ii(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function ni(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function ri(t,e,i,n){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=ii(t,r,i),s=ii(r,o,i),u=ii(o,e,i),h=ii(a,s,i),l=ii(s,u,i);return ii(h,l,i)}const oi=new Map;function ai(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=oi.get(i);return n||(n=new Intl.NumberFormat(t,e),oi.set(i,n)),n}(e,i).format(t)}function si(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function ui(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function hi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function li(t){return"angle"===t?{between:nt,compare:et,normalize:it}:{between:(t,e,i)=>t>=Math.min(e,i)&&t<=Math.max(i,e),compare:(t,e)=>t-e,normalize:t=>t}}function ci({start:t,end:e,count:i,loop:n,style:r}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:r}}function di(t,e,i){if(!i)return[t];const{property:n,start:r,end:o}=i,a=e.length,{compare:s,between:u,normalize:h}=li(n),{start:l,end:c,loop:d,style:f}=function(t,e,i){const{property:n,start:r,end:o}=i,{between:a,normalize:s}=li(n),u=e.length;let h,l,{start:c,end:d,loop:f}=t;if(f){for(c+=u,d+=u,h=0,l=u;h<l&&a(s(e[c%u][n]),r,o);++h)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:t.style}}(t,e,i),p=[];let m,g,b,v=!1,y=null;const w=()=>v||u(r,b,m)&&0!==s(r,b),_=()=>!v||0===s(o,m)||u(o,b,m);for(let t=l,i=l;t<=c;++t)g=e[t%a],g.skip||(m=h(g[n]),v=u(m,r,o),null===y&&w()&&(y=0===s(m,r)?t:i),null!==y&&_()&&(p.push(ci({start:y,end:t,loop:d,count:a,style:f})),y=null),i=t,b=m);return null!==y&&p.push(ci({start:y,end:c,loop:d,count:a,style:f})),p}function fi(t,e){const i=[],n=t.segments;for(let r=0;r<n.length;r++){const o=di(n[r],t.points,e);o.length&&i.push(...o)}return i}function pi(t,e){const i=t.points,n=t.options.spanGaps,r=i.length;if(!r)return[];const o=!!t._loop,{start:a,end:s}=function(t,e,i,n){let r=0,o=e-1;if(i&&!n)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,i&&(o+=r);o>r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(i,r,o,n);if(!0===n)return mi([{start:a,end:s,loop:o}],i,e);return mi(function(t,e,i,n){const r=t.length,o=[];let a,s=e,u=t[e];for(a=e+1;a<=i;++a){const i=t[a%r];i.skip||i.stop?u.skip||(n=!1,o.push({start:e%r,end:(a-1)%r,loop:n}),e=s=i.stop?a:null):(s=a,u.skip&&(e=a)),u=i}return null!==s&&o.push({start:e%r,end:s%r,loop:n}),o}(i,a,s<a?s+r:s,!!t._fullLoop&&0===a&&s===r-1),i,e)}function mi(t,e,i){return i&&i.setContext&&e?function(t,e,i){const n=e.length,r=[];let o=t[0].start,a=o;for(const s of t){let t,u,h=e[o%n];for(a=o+1;a<=s.end;a++){const l=e[a%n];u=gi(i.setContext({type:"segment",p0:h,p1:l})),bi(u,t)&&(r.push({start:o,end:a-1,loop:s.loop,style:t}),t=u,o=a-1),h=l,t=u}o<a-1&&(r.push({start:o,end:a-1,loop:s.loop,style:u}),o=a-1)}return r}(t,e,i):t}function gi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},30:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(23),r=i(19),o=36e5,a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(t,e){Object(r.a)(1,arguments);var i=e||{},o=null==i.additionalDigits?2:Object(n.a)(i.additionalDigits);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var a,s=c(t);if(s.date){var u=d(s.date,o);a=f(u.restDateString,u.year)}if(isNaN(a)||!a)return new Date(NaN);var h,l=a.getTime(),p=0;if(s.time&&(p=m(s.time),isNaN(p)||null===p))return new Date(NaN);if(!s.timezone){var g=new Date(l+p),v=new Date(0);return v.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),v.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),v}return h=b(s.timezone),isNaN(h)?new Date(NaN):new Date(l+p+h)}function c(t){var e,i={},n=t.split(a.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?(i.date=null,e=n[0]):(i.date=n[0],e=n[1],a.timeZoneDelimiter.test(i.date)&&(i.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var r=a.timezone.exec(e);r?(i.time=e.replace(r[1],""),i.timezone=r[1]):i.time=e}return i}function d(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(i);if(!n)return{year:null};var r=n[1]&&parseInt(n[1]),o=n[2]&&parseInt(n[2]);return{year:null==o?r:100*o,restDateString:t.slice((n[1]||n[2]).length)}}function f(t,e){if(null===e)return null;var i=t.match(s);if(!i)return null;var n=!!i[4],r=p(i[1]),o=p(i[2])-1,a=p(i[3]),u=p(i[4]),h=p(i[5])-1;if(n)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,u,h)?function(t,e,i){var n=new Date(0);n.setUTCFullYear(t,0,4);var r=n.getUTCDay()||7,o=7*(e-1)+i+1-r;return n.setUTCDate(n.getUTCDate()+o),n}(e,u,h):new Date(NaN);var l=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(v[e]||(y(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(y(t)?366:365)}(e,r)?(l.setUTCFullYear(e,o,Math.max(r,a)),l):new Date(NaN)}function p(t){return t?parseInt(t):1}function m(t){var e=t.match(u);if(!e)return null;var i=g(e[1]),n=g(e[2]),r=g(e[3]);return function(t,e,i){if(24===t)return 0===e&&0===i;return i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,n,r)?i*o+6e4*n+1e3*r:NaN}function g(t){return t&&parseFloat(t.replace(",","."))||0}function b(t){if("Z"===t)return 0;var e=t.match(h);if(!e)return 0;var i="+"===e[1]?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,r)?i*(n*o+6e4*r):NaN}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function y(t){return t%400==0||t%4==0&&t%100}},304:function(t,e,i){"use strict";function n(t){return function(e){var i=e||{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}i.d(e,"a",(function(){return n}))},305:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e,i){Object(o.a)(2,arguments);var a=i||{},s=a.locale,u=s&&s.options&&s.options.weekStartsOn,h=null==u?0:Object(n.a)(u),l=null==a.weekStartsOn?h:Object(n.a)(a.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(r.a)(t),d=Object(n.a)(e),f=c.getUTCDay(),p=d%7,m=(p+7)%7,g=(m<l?7:0)+d-f;return c.setUTCDate(c.getUTCDate()+g),c}},306:function(t,e,i){"use strict";var n=i(46),r=i(440),o=i(40).Buffer,a=new Array(16);function s(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function h(t,e,i,n,r,o,a){return u(t+(e&i|~e&n)+r+o|0,a)+e|0}function l(t,e,i,n,r,o,a){return u(t+(e&n|i&~n)+r+o|0,a)+e|0}function c(t,e,i,n,r,o,a){return u(t+(e^i^n)+r+o|0,a)+e|0}function d(t,e,i,n,r,o,a){return u(t+(i^(e|~n))+r+o|0,a)+e|0}n(s,r),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,n=this._b,r=this._c,o=this._d;i=h(i,n,r,o,t[0],3614090360,7),o=h(o,i,n,r,t[1],3905402710,12),r=h(r,o,i,n,t[2],606105819,17),n=h(n,r,o,i,t[3],3250441966,22),i=h(i,n,r,o,t[4],4118548399,7),o=h(o,i,n,r,t[5],1200080426,12),r=h(r,o,i,n,t[6],2821735955,17),n=h(n,r,o,i,t[7],4249261313,22),i=h(i,n,r,o,t[8],1770035416,7),o=h(o,i,n,r,t[9],2336552879,12),r=h(r,o,i,n,t[10],4294925233,17),n=h(n,r,o,i,t[11],2304563134,22),i=h(i,n,r,o,t[12],1804603682,7),o=h(o,i,n,r,t[13],4254626195,12),r=h(r,o,i,n,t[14],2792965006,17),i=l(i,n=h(n,r,o,i,t[15],1236535329,22),r,o,t[1],4129170786,5),o=l(o,i,n,r,t[6],3225465664,9),r=l(r,o,i,n,t[11],643717713,14),n=l(n,r,o,i,t[0],3921069994,20),i=l(i,n,r,o,t[5],3593408605,5),o=l(o,i,n,r,t[10],38016083,9),r=l(r,o,i,n,t[15],3634488961,14),n=l(n,r,o,i,t[4],3889429448,20),i=l(i,n,r,o,t[9],568446438,5),o=l(o,i,n,r,t[14],3275163606,9),r=l(r,o,i,n,t[3],4107603335,14),n=l(n,r,o,i,t[8],1163531501,20),i=l(i,n,r,o,t[13],2850285829,5),o=l(o,i,n,r,t[2],4243563512,9),r=l(r,o,i,n,t[7],1735328473,14),i=c(i,n=l(n,r,o,i,t[12],2368359562,20),r,o,t[5],4294588738,4),o=c(o,i,n,r,t[8],2272392833,11),r=c(r,o,i,n,t[11],1839030562,16),n=c(n,r,o,i,t[14],4259657740,23),i=c(i,n,r,o,t[1],2763975236,4),o=c(o,i,n,r,t[4],1272893353,11),r=c(r,o,i,n,t[7],4139469664,16),n=c(n,r,o,i,t[10],3200236656,23),i=c(i,n,r,o,t[13],681279174,4),o=c(o,i,n,r,t[0],3936430074,11),r=c(r,o,i,n,t[3],3572445317,16),n=c(n,r,o,i,t[6],76029189,23),i=c(i,n,r,o,t[9],3654602809,4),o=c(o,i,n,r,t[12],3873151461,11),r=c(r,o,i,n,t[15],530742520,16),i=d(i,n=c(n,r,o,i,t[2],3299628645,23),r,o,t[0],4096336452,6),o=d(o,i,n,r,t[7],1126891415,10),r=d(r,o,i,n,t[14],2878612391,15),n=d(n,r,o,i,t[5],4237533241,21),i=d(i,n,r,o,t[12],1700485571,6),o=d(o,i,n,r,t[3],2399980690,10),r=d(r,o,i,n,t[10],4293915773,15),n=d(n,r,o,i,t[1],2240044497,21),i=d(i,n,r,o,t[8],1873313359,6),o=d(o,i,n,r,t[15],4264355552,10),r=d(r,o,i,n,t[6],2734768916,15),n=d(n,r,o,i,t[13],1309151649,21),i=d(i,n,r,o,t[4],4149444226,6),o=d(o,i,n,r,t[11],3174756917,10),r=d(r,o,i,n,t[2],718787259,15),n=d(n,r,o,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},307:function(t,e,i){(function(e){function i(t){try{if(!e.localStorage)return!1}catch(t){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,i(88))},308:function(t,e,i){"use strict";var n=i(168).codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t.apply(this,n)}}}(o||r);var a=i.readable||!1!==i.readable&&e.readable,s=i.writable||!1!==i.writable&&e.writable,u=function(){e.writable||l()},h=e._writableState&&e._writableState.finished,l=function(){s=!1,h=!0,a||o.call(e)},c=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,c=!0,s||o.call(e)},f=function(t){o.call(e,t)},p=function(){var t;return a&&!c?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!h?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",l)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",l),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",l),!1!==i.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",l),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},309:function(t,e,i){"use strict";var n=i(76).Buffer,r=i(46),o=i(440),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,i,n,r,o,a,s){return p(t+(e^i^n)+o+a|0,s)+r|0}function g(t,e,i,n,r,o,a,s){return p(t+(e&i|~e&n)+o+a|0,s)+r|0}function b(t,e,i,n,r,o,a,s){return p(t+((e|~i)^n)+o+a|0,s)+r|0}function v(t,e,i,n,r,o,a,s){return p(t+(e&n|i&~n)+o+a|0,s)+r|0}function y(t,e,i,n,r,o,a,s){return p(t+(e^(i|~n))+o+a|0,s)+r|0}r(f,o),f.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,f=0|this._e,w=0|this._a,_=0|this._b,M=0|this._c,x=0|this._d,S=0|this._e,T=0;T<80;T+=1){var A,C;T<16?(A=m(i,n,r,o,f,t[s[T]],c[0],h[T]),C=y(w,_,M,x,S,t[u[T]],d[0],l[T])):T<32?(A=g(i,n,r,o,f,t[s[T]],c[1],h[T]),C=v(w,_,M,x,S,t[u[T]],d[1],l[T])):T<48?(A=b(i,n,r,o,f,t[s[T]],c[2],h[T]),C=b(w,_,M,x,S,t[u[T]],d[2],l[T])):T<64?(A=v(i,n,r,o,f,t[s[T]],c[3],h[T]),C=g(w,_,M,x,S,t[u[T]],d[3],l[T])):(A=y(i,n,r,o,f,t[s[T]],c[4],h[T]),C=m(w,_,M,x,S,t[u[T]],d[4],l[T])),i=f,f=o,o=p(r,10),r=n,n=A,w=S,S=x,x=p(M,10),M=_,_=C}var E=this._b+r+x|0;this._b=this._c+o+S|0,this._c=this._d+f+w|0,this._d=this._e+i+_|0,this._e=this._a+n+M|0,this._a=E},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},31:function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i(286),r=i(122),o=i(154),a=i(21),s=i(646),u=i(287),h=i(101),l=i(130),c=i(23),d=i(19),f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,b=/[a-zA-Z]/;function v(t,e,i){Object(d.a)(2,arguments);var m=String(e),g=i||{},v=g.locale||r.a,w=v.options&&v.options.firstWeekContainsDate,_=null==w?1:Object(c.a)(w),M=null==g.firstWeekContainsDate?_:Object(c.a)(g.firstWeekContainsDate);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=v.options&&v.options.weekStartsOn,S=null==x?0:Object(c.a)(x),T=null==g.weekStartsOn?S:Object(c.a)(g.weekStartsOn);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var A=Object(a.a)(t);if(!Object(n.a)(A))throw new RangeError("Invalid time value");var C=Object(h.a)(A),E=Object(o.a)(A,C),k={firstWeekContainsDate:M,weekStartsOn:T,locale:v,_originalDate:A},O=m.match(p).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,u.a[e])(t,v.formatLong,k):t})).join("").match(f).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return y(i);var r=s.a[n];if(r)return!g.useAdditionalWeekYearTokens&&Object(l.b)(i)&&Object(l.c)(i,e,t),!g.useAdditionalDayOfYearTokens&&Object(l.a)(i)&&Object(l.c)(i,e,t),r(E,i,v.localize,k);if(n.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return O}function y(t){return t.match(m)[1].replace(g,"'")}},310:function(t,e,i){(e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(!i)throw new Error(t+" is not supported (we accept pull requests)");return new i}).sha=i(720),e.sha1=i(721),e.sha224=i(722),e.sha256=i(447),e.sha384=i(723),e.sha512=i(448)},311:function(t,e,i){(e=t.exports=i(449)).Stream=e,e.Readable=e,e.Writable=i(312),e.Duplex=i(150),e.Transform=i(452),e.PassThrough=i(728)},312:function(t,e,i){"use strict";(function(e,n,r){var o=i(222);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,i){var n=t.entry;t.entry=null;for(;n;){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=v;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=b;var h=i(204);h.inherits=i(46);var l={deprecate:i(307)},c=i(450),d=i(40).Buffer,f=r.Uint8Array||function(){};var p,m=i(451);function g(){}function b(t,e){s=s||i(150),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,h=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(h||0===h)?h:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,n=i.sync,r=i.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),e)!function(t,e,i,n,r){--e.pendingcb,i?(o.nextTick(r,n),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(r(n),t._writableState.errorEmitted=!0,t.emit("error",n),S(t,e))}(t,i,n,e,r);else{var a=M(i);a||i.corked||i.bufferProcessing||!i.bufferedRequest||_(t,i),n?u(w,t,i,a,r):w(t,i,a,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(t){if(s=s||i(150),!(p.call(v,this)||this instanceof s))return new v(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function y(t,e,i,n,r,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function w(t,e,i,n){i||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function _(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,r=new Array(n),o=e.corkedRequestsFree;o.entry=i;for(var s=0,u=!0;i;)r[s]=i,i.isBuf||(u=!1),i=i.next,s+=1;r.allBuffers=u,y(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,l=i.encoding,c=i.callback;if(y(t,e,!1,e.objectMode?1:h.length,h,l,c),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var i=M(e);return i&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}h.inherits(v,c),b.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===v&&(t&&t._writableState instanceof b)}})):p=function(t){return t instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(t,e,i){var n,r=this._writableState,a=!1,s=!r.objectMode&&(n=t,d.isBuffer(n)||n instanceof f);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(i=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof i&&(i=g),r.ended?function(t,e){var i=new Error("write after end");t.emit("error",i),o.nextTick(e,i)}(this,i):(s||function(t,e,i,n){var r=!0,a=!1;return null===i?a=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(n,a),r=!1),r}(this,r,t,i))&&(r.pendingcb++,a=function(t,e,i,n,r,o){if(!i){var a=function(t,e,i){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,i));return e}(e,n,r);n!==a&&(i=!0,r="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else y(t,e,!1,s,n,r,o);return u}(this,r,s,t,e,i)),a},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},v.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(t,e,i){var n=this._writableState;"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,i){e.ending=!0,S(t,e),i&&(e.finished?o.nextTick(i):t.once("finish",i));e.ended=!0,t.writable=!1}(this,n,i)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i(70),i(726).setImmediate,i(88))},313:function(t,e,i){"use strict";var n=i(104);function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=i,i},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,r,i),i+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),i+=this._flushBuffer(r,i);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},314:function(t,e,i){var n=i(741),r=i(749),o=i(465);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},315:function(t,e,i){var n={ECB:i(742),CBC:i(743),CFB:i(744),CFB8:i(745),CFB1:i(746),OFB:i(747),CTR:i(463),GCM:i(463)},r=i(465);for(var o in r)r[o].module=n[r[o].mode];t.exports=r},316:function(t,e,i){var n;function r(t){this.rand=t}if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(229);if("function"!=typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},317:function(t,e,i){var n=i(76),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function a(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(r.prototype),o(r,a),a.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},318:function(t,e,i){"use strict";var n=i(172).codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t.apply(this,n)}}}(o||r);var a=i.readable||!1!==i.readable&&e.readable,s=i.writable||!1!==i.writable&&e.writable,u=function(){e.writable||l()},h=e._writableState&&e._writableState.finished,l=function(){s=!1,h=!0,a||o.call(e)},c=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,c=!0,s||o.call(e)},f=function(t){o.call(e,t)},p=function(){var t;return a&&!c?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!h?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",l)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",l),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",l),!1!==i.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",l),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},319:function(t,e,i){(function(e){var n=i(320),r=i(167);function o(t){var e,i=t.modulus.byteLength();do{e=new n(r(i))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,i){var r=function(t){var e=o(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(i),a=i.modulus.byteLength(),s=new n(t).mul(r.blinder).umod(i.modulus),u=s.toRed(n.mont(i.prime1)),h=s.toRed(n.mont(i.prime2)),l=i.coefficient,c=i.prime1,d=i.prime2,f=u.redPow(i.exponent1).fromRed(),p=h.redPow(i.exponent2).fromRed(),m=f.isub(p).imul(l).umod(c).imul(d);return p.iadd(m).imul(r.unblinder).umod(i.modulus).toArrayLike(e,"be",a)}a.getr=o,t.exports=a}).call(this,i(76).Buffer)},320:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(232).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+t)}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,r){for(var o=0,a=0,s=Math.min(t.length,i),u=e;u<s;u++){var h=t.charCodeAt(u)-48;o*=r,a=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&a<r,"Invalid character"),o+=a}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(t){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?d[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=p[t];i="";var c=this.clone();for(c.negative=0;!c.isZero();){var m=c.modrn(l).toString(t);i=(c=c.idivn(l)).isZero()?m+i:d[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i._strip()}o.prototype.toArrayLike=function(t,e,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,r),a},o.prototype._toArrayLikeLE=function(t,e){for(var i=0,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;t[i++]=255&a,i<t.length&&(t[i++]=a>>8&255),i<t.length&&(t[i++]=a>>16&255),6===o?(i<t.length&&(t[i++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i<t.length)for(t[i++]=n;i<t.length;)t[i++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var i=t.length-1,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;t[i--]=255&a,i>=0&&(t[i--]=a>>8&255),i>=0&&(t[i--]=a>>16&255),6===o?(i>=0&&(t[i--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i>=0)for(t[i--]=n;i>=0;)t[i--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this._strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function b(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function v(t,e,i){return b(t,e,i)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):i<63?m(this,t,e):i<1024?b(this,t,e):v(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},y.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},y.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},y.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},y.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},y.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},y.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},y.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},y.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var i=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,a=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=a>>>26,this.words[r]=67108863&a}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=t.words[n]>>>r&1}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s._strip(),n._strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%t;return e?-r:r},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/t|0,i=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},r(M,_),M.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(x,_),r(S,_),r(T,_),T.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new x;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new T}return w[t]=e,e},A.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},A.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},A.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},A.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},r(C,A),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},321:function(t,e,i){"use strict";var n=e;n.version=i(763).version,n.utils=i(105),n.rand=i(316),n.curve=i(478),n.curves=i(323),n.ec=i(774),n.eddsa=i(778)},322:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},323:function(t,e,i){"use strict";var n,r=e,o=i(324),a=i(478),s=i(105).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var i=new u(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=u,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(773)}catch(t){n=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},324:function(t,e,i){var n=e;n.utils=i(119),n.common=i(206),n.sha=i(767),n.ripemd=i(771),n.hmac=i(772),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},325:function(t,e,i){"use strict";(function(e){var n,r=i(76),o=r.Buffer,a={};for(n in r)r.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=r[n]);var s=a.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=o[n]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,e,i)}),s.alloc||(s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=o(t);return e&&0!==e.length?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,i(70))},326:function(t,e,i){"use strict";const n=i(327).Reporter,r=i(207).EncoderBuffer,o=i(207).DecoderBuffer,a=i(104),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function h(t,e,i){const n={};this._baseState=n,n.name=i,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=h;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const t=this._baseState,e={};l.forEach((function(i){e[i]=t[i]}));const i=new this.constructor(e.parent);return i._baseState=e,i},h.prototype._wrap=function(){const t=this._baseState;u.forEach((function(e){this[e]=function(){const i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},h.prototype._init=function(t){const e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){const e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(a(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0);const n=t[i];e[n]=i})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){h.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){h.prototype[t]=function(){const e=this._baseState,i=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(i),this}})),h.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){const e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){const i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));let n,r=i.default,a=!0,s=null;if(null!==i.key&&(s=t.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(a=this._peekTag(t,n,i.any),t.isError(a))return a}else{const n=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(n)}}if(i.obj&&a&&(n=t.enterObject()),a){if(null!==i.explicit){const e=this._decodeTag(t,i.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===i.use&&null===i.choice){let e;i.any&&(e=t.save());const n=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(n))return n;i.any?r=t.raw(e):t=n}if(e&&e.track&&null!==i.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const n=new o(r);r=this._getUse(i.contains,t._reporterState.obj)._decode(n,e)}}return i.obj&&a&&(r=t.leaveObject(n)),null===i.key||null===r&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,i.key,r),r},h.prototype._decodeGeneric=function(t,e,i){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),a(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},h.prototype._decodeChoice=function(t,e){const i=this._baseState;let n=null,r=!1;return Object.keys(i.choice).some((function(o){const a=t.save(),s=i.choice[o];try{const i=s._decode(t,e);if(t.isError(i))return!1;n={type:o,value:i},r=!0}catch(e){return t.restore(a),!1}return!0}),this),r?n:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},h.prototype._encode=function(t,e,i){const n=this._baseState;if(null!==n.default&&n.default===t)return;const r=this._encodeValue(t,e,i);return void 0===r||this._skipDefault(r,e,i)?void 0:r},h.prototype._encodeValue=function(t,e,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);let o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let a=null,s=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)a=this._getUse(r.contains,i)._encode(t,e),s=!0;else if(r.children)a=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");const n=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=i._encode(t[i._baseState.key],e,t);return e.leaveKey(n),r}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(i){const n=this._baseState;return this._getUse(n.args[0],t)._encode(i,e)}),i))}else null!==r.use?o=this._getUse(r.use,i)._encode(t,e):(a=this._encodePrimitive(r.tag,t),s=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(t,s,i,a))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(t,e){const i=this._baseState,n=i.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},327:function(t,e,i){"use strict";const n=i(46);function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=r,r.prototype.isError=function(t){return t instanceof o},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){let e;const i=this._reporterState,n=t instanceof o;if(e=n?t:new o(i.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!i.options.partial)throw e;return n||i.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},328:function(t,e,i){"use strict";function n(t){const e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);const n=t[i];e[n]=i})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},329:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(238).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},34:function(t,e,i){"use strict";i.d(e,"d",(function(){return f})),i.d(e,"b",(function(){return m})),i.d(e,"f",(function(){return v})),i.d(e,"e",(function(){return y})),i.d(e,"a",(function(){return E})),i.d(e,"c",(function(){return O}));var n,r,o,a,s,u,h,l,c=i(17),d=i(7),f=c.d.create("aurelia:resolver",(function(t){return"function"==typeof t.get||"Resolvers must implement: get(container: Container, key: any): any"})),p=f()(n=function(){function t(t,e){this.strategy=t,this.state=e}return t.prototype.get=function(t,e){switch(this.strategy){case 0:return this.state;case 1:var i=t.invoke(this.state);return this.state=i,this.strategy=0,i;case 2:return t.invoke(this.state);case 3:return this.state(t,e,this);case 4:return this.state[0].get(t,e);case 5:return t.get(this.state);default:throw new Error("Invalid strategy: "+this.strategy)}},t}())||n,m=(f()(r=function(){function t(t){this._key=t}return t.prototype.get=function(t){var e=this;return function(){return t.get(e._key)}},t.of=function(e){return new t(e)},t}()),f()(o=function(){function t(t){this._key=t}return t.prototype.get=function(t){return t.getAll(this._key)},t.of=function(e){return new t(e)},t}()),f()(a=function(){function t(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._key=t,this._checkParent=e}return t.prototype.get=function(t){return t.hasResolver(this._key,this._checkParent)?t.get(this._key):null},t.of=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new t(e,i)},t}())||a);f()(s=function(){function t(t){this._key=t}return t.prototype.get=function(t){return t.parent?t.parent.get(this._key):null},t.of=function(e){return new t(e)},t}()),f()(u=function(){function t(t){this._key=t}return t.prototype.get=function(t){var e=this._key,i=t.getResolver(e);return i&&3===i.strategy&&(e=i.state),function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.invoke(e,n)}},t.of=function(e){return new t(e)},t}()),f()(h=function(){function t(t){this.key=t,this.asKey=t;for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.dynamicDependencies=i}return t.prototype.get=function(t){var e=this.dynamicDependencies.length>0?this.dynamicDependencies.map((function(e){return e["protocol:aurelia:resolver"]?e.get(t):t.get(e)})):void 0,i=this.key,n=t.getResolver(i);n&&3===n.strategy&&(i=n.state);var r=t.invoke(i,e);return t.registerInstance(this.asKey,r),r},t.prototype.as=function(t){return this.asKey=t,this},t.of=function(e){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return new(Function.prototype.bind.apply(t,[null].concat([e],n)))},t}());var g=function(){function t(){}return t.prototype.invoke=function(t,e,i){for(var n=i.length,r=new Array(n);n--;)r[n]=t.get(i[n]);return e.apply(void 0,r)},t.prototype.invokeWithDynamicDependencies=function(t,e,i,n){for(var r=i.length,o=new Array(r);r--;)o[r]=t.get(i[r]);return void 0!==n&&(o=o.concat(n)),e.apply(void 0,o)},t}();function b(t){return function(e){c.b.define(c.b.registration,t,e)}}function v(t){return b(new w(t))}function y(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b(new _(t,e))}g.instance=new g;var w=function(){function t(t){this._key=t}return t.prototype.registerResolver=function(t,e,i){var n=t.getResolver(this._key||e);return void 0===n?t.registerTransient(this._key||e,i):n},t}(),_=function(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"boolean"==typeof t?this._registerInChild=t:(this._key=t,this._registerInChild=e)}return t.prototype.registerResolver=function(t,e,i){var n=this._registerInChild?t:t.root,r=n.getResolver(this._key||e);return void 0===r?n.registerSingleton(this._key||e,i):r},t}();function M(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}var x=Object.freeze([]);c.b.registration="aurelia:registration",c.b.invoker="aurelia:invoker";var S=f.decorates,T=function(){function t(t,e,i){this.fn=t,this.invoker=e,this.dependencies=i}return t.prototype.invoke=function(t,e){return void 0!==e?this.invoker.invokeWithDynamicDependencies(t,this.fn,this.dependencies,e):this.invoker.invoke(t,this.fn,this.dependencies)},t}();function A(t,e,i,n){for(var r=i.length,o=new Array(r),a=void 0;r--;){if(null==(a=i[r]))throw new Error("Constructor Parameter with index "+r+" cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?");o[r]=t.get(a)}return void 0!==n&&(o=o.concat(n)),Reflect.construct(e,o)}var C=((l={})[0]={invoke:function(t,e){return new e},invokeWithDynamicDependencies:A},l[1]={invoke:function(t,e,i){return new e(t.get(i[0]))},invokeWithDynamicDependencies:A},l[2]={invoke:function(t,e,i){return new e(t.get(i[0]),t.get(i[1]))},invokeWithDynamicDependencies:A},l[3]={invoke:function(t,e,i){return new e(t.get(i[0]),t.get(i[1]),t.get(i[2]))},invokeWithDynamicDependencies:A},l[4]={invoke:function(t,e,i){return new e(t.get(i[0]),t.get(i[1]),t.get(i[2]),t.get(i[3]))},invokeWithDynamicDependencies:A},l[5]={invoke:function(t,e,i){return new e(t.get(i[0]),t.get(i[1]),t.get(i[2]),t.get(i[3]),t.get(i[4]))},invokeWithDynamicDependencies:A},l.fallback={invoke:A,invokeWithDynamicDependencies:A},l);var E=function(){function t(t){void 0===t&&(t={}),this._configuration=t,this._onHandlerCreated=t.onHandlerCreated,this._handlers=t.handlers||(t.handlers=new Map),this._resolvers=new Map,this.root=this,this.parent=null}return t.prototype.makeGlobal=function(){return t.instance=this,this},t.prototype.setHandlerCreatedCallback=function(t){this._onHandlerCreated=t,this._configuration.onHandlerCreated=t},t.prototype.registerInstance=function(t,e){return this.registerResolver(t,new p(0,void 0===e?t:e))},t.prototype.registerSingleton=function(t,e){return this.registerResolver(t,new p(1,void 0===e?t:e))},t.prototype.registerTransient=function(t,e){return this.registerResolver(t,new p(2,void 0===e?t:e))},t.prototype.registerHandler=function(t,e){return this.registerResolver(t,new p(3,e))},t.prototype.registerAlias=function(t,e){return this.registerResolver(e,new p(5,t))},t.prototype.registerResolver=function(t,e){M(t);var i=this._resolvers,n=i.get(t);return void 0===n?i.set(t,e):4===n.strategy?n.state.push(e):i.set(t,new p(4,[n,e])),e},t.prototype.autoRegister=function(t,e){if("function"==typeof(e=void 0===e?t:e)){var i=c.b.get(c.b.registration,e);return void 0===i?this.registerResolver(t,new p(1,e)):i.registerResolver(this,t,e)}return this.registerResolver(t,new p(0,e))},t.prototype.autoRegisterAll=function(t){for(var e=t.length;e--;)this.autoRegister(t[e])},t.prototype.unregister=function(t){this._resolvers.delete(t)},t.prototype.hasResolver=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return M(t),this._resolvers.has(t)||e&&null!==this.parent&&this.parent.hasResolver(t,e)},t.prototype.getResolver=function(t){return this._resolvers.get(t)},t.prototype.get=function(e){if(M(e),e===t)return this;if(S(e))return e.get(this,e);var i=this._resolvers.get(e);if(void 0===i){if(null===this.parent)return this.autoRegister(e).get(this,e);var n=c.b.get(c.b.registration,e);return void 0===n?this.parent._get(e):n.registerResolver(this,e,e).get(this,e)}return i.get(this,e)},t.prototype._get=function(t){var e=this._resolvers.get(t);return void 0===e?null===this.parent?this.autoRegister(t).get(this,t):this.parent._get(t):e.get(this,t)},t.prototype.getAll=function(t){M(t);var e=this._resolvers.get(t);if(void 0===e)return null===this.parent?x:this.parent.getAll(t);if(4===e.strategy){for(var i=e.state,n=i.length,r=new Array(n);n--;)r[n]=i[n].get(this,t);return r}return[e.get(this,t)]},t.prototype.createChild=function(){var e=new t(this._configuration);return e.root=this.root,e.parent=this,e},t.prototype.invoke=function(t,e){try{var i=this._handlers.get(t);return void 0===i&&(i=this._createInvocationHandler(t),this._handlers.set(t,i)),i.invoke(this,e)}catch(e){throw new d.a("Error invoking "+t.name+". Check the inner error for details.",e,!0)}},t.prototype._createInvocationHandler=function(t){var e,i=void 0;if(void 0===t.inject)i=c.b.getOwn(c.b.paramTypes,t)||x;else{i=[];for(var n=t;"function"==typeof n;){var r;(r=i).push.apply(r,(e=n).hasOwnProperty("inject")?"function"==typeof e.inject?e.inject():e.inject:[]),n=Object.getPrototypeOf(n)}}var o=c.b.getOwn(c.b.invoker,t)||C[i.length]||C.fallback,a=new T(t,o,i);return void 0!==this._onHandlerCreated?this._onHandlerCreated(a):a},t}();function k(t){var e=function(t){t.hasOwnProperty("inject")||(t.inject=(c.b.getOwn(c.b.paramTypes,t)||x).slice())};return t?e(t):e}function O(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t,i,n){if("number"==typeof n)return k(t),void(1===e.length&&(t.inject[n]=e[0]));n?n.value.inject=e:t.inject=e}}},347:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n,r,o,a,s,u,h=i(34),l=i(120),c=i(11),d=i(7);function f(t,e,i,n){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(t,e,i,n,r){var o={};return Object.keys(n).forEach((function(t){o[t]=n[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(t,e,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var m=Object(c.s)("compose")(n=Object(c.u)((r=function(){function t(t,e,i,n,r,h){f(this,"model",o,this),f(this,"view",a,this),f(this,"viewModel",s,this),f(this,"swapOrder",u,this),this.element=t,this.container=e,this.compositionEngine=i,this.viewSlot=n,this.viewResources=r,this.taskQueue=h,this.currentController=null,this.currentViewModel=null,this.changes=Object.create(null)}return t.inject=function(){return[d.b.Element,h.a,c.e,c.o,c.n,l.a]},t.prototype.created=function(t){this.owningView=t},t.prototype.bind=function(t,e){this.bindingContext=t,this.overrideContext=e,this.changes.view=this.view,this.changes.viewModel=this.viewModel,this.changes.model=this.model,this.pendingTask||g(this)},t.prototype.unbind=function(){this.changes=Object.create(null),this.bindingContext=null,this.overrideContext=null;this.viewSlot.removeAll(!0,!0)},t.prototype.modelChanged=function(t,e){this.changes.model=t,v(this)},t.prototype.viewChanged=function(t,e){this.changes.view=t,v(this)},t.prototype.viewModelChanged=function(t,e){this.changes.viewModel=t,v(this)},t}(),o=p(r.prototype,"model",[c.p],{enumerable:!0,initializer:null}),a=p(r.prototype,"view",[c.p],{enumerable:!0,initializer:null}),s=p(r.prototype,"viewModel",[c.p],{enumerable:!0,initializer:null}),u=p(r.prototype,"swapOrder",[c.p],{enumerable:!0,initializer:null}),n=r))||n)||n;function g(t){var e=t.changes;if(t.changes=Object.create(null),"view"in e||"viewModel"in e||!("model"in e)){var i={view:t.view,viewModel:t.currentViewModel||t.viewModel,model:t.model};i=Object.assign(i,e),i=function(t,e){return Object.assign(e,{bindingContext:t.bindingContext,overrideContext:t.overrideContext,owningView:t.owningView,container:t.container,viewSlot:t.viewSlot,viewResources:t.viewResources,currentController:t.currentController,host:t.element,swapOrder:t.swapOrder})}(t,i),t.pendingTask=t.compositionEngine.compose(i).then((function(e){t.currentController=e,t.currentViewModel=e?e.viewModel:null}))}else if(t.pendingTask=function(t,e){if(t&&"function"==typeof t.activate)return Promise.resolve(t.activate(e))}(t.currentViewModel,e.model),!t.pendingTask)return;t.pendingTask=t.pendingTask.then((function(){b(t)}),(function(e){throw b(t),e}))}function b(t){t.pendingTask=null,function(t){for(var e in t)return!1;return!0}(t.changes)||g(t)}function v(t){t.pendingTask||t.updateRequested||(t.updateRequested=!0,t.taskQueue.queueMicroTask((function(){t.updateRequested=!1,g(t)})))}},348:function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n,r,o,a,s,u,h,l=i(11),c=i(34),d=i(252);function f(t,e,i,n){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e,i,n,r){var o={};return Object.keys(n).forEach((function(t){o[t]=n[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(t,e,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var g=(n=Object(l.r)("if"),r=Object(c.c)(l.d,l.o),o=Object(l.p)({primaryProperty:!0}),n(a=Object(l.w)(a=r((s=function(t){function e(){for(var e,i,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=i=p(this,t.call.apply(t,[this].concat(r))),f(i,"condition",u,i),f(i,"swapOrder",h,i),p(i,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.bind=function(e,i){t.prototype.bind.call(this,e,i),this.condition?this._show():this._hide()},e.prototype.conditionChanged=function(t){this._update(t)},e.prototype._update=function(t){var e=this;if(!this.animating){var i=void 0;(i=this.elseVm?t?this._swap(this.elseVm,this):this._swap(this,this.elseVm):t?this._show():this._hide())&&(this.animating=!0,i.then((function(){e.animating=!1,e.condition!==e.showing&&e._update(e.condition)})))}},e.prototype._swap=function(t,e){switch(this.swapOrder){case"before":return Promise.resolve(e._show()).then((function(){return t._hide()}));case"with":return Promise.all([t._hide(),e._show()]);default:var i=t._hide();return i?i.then((function(){return e._show()})):e._show()}},e}(d.a),u=m(s.prototype,"condition",[o],{enumerable:!0,initializer:null}),h=m(s.prototype,"swapOrder",[l.p],{enumerable:!0,initializer:null}),a=s))||a)||a)||a)},349:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n,r,o,a=i(11),s=i(34),u=i(252);var h=(n=Object(a.r)("else"),r=Object(s.c)(a.d,a.o),n(o=Object(a.w)(o=r(o=function(t){function e(e,i){var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,e,i));return n._registerInIf(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.bind=function(e,i){t.prototype.bind.call(this,e,i),this.ifVm.condition?this._hide():this._show()},e.prototype._registerInIf=function(){for(var t=this.viewSlot.anchor.previousSibling;t&&!t.au;)t=t.previousSibling;if(!t||!t.au.if)throw new Error("Can't find matching If for Else custom attribute.");this.ifVm=t.au.if.viewModel,this.ifVm.elseVm=this},e}(u.a))||o)||o)||o)},350:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n,r,o,a=i(34),s=i(11),u=i(14),h=(n=Object(s.r)("with"),r=Object(a.c)(s.d,s.o),n(o=Object(s.w)(o=r(o=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.parentOverrideContext=null,this.view=null}return t.prototype.bind=function(t,e){this.parentOverrideContext=e,this.valueChanged(this.value)},t.prototype.valueChanged=function(t){var e=Object(u.v)(t,this.parentOverrideContext);this.view?this.view.bind(t,e):(this.view=this.viewFactory.create(),this.view.bind(t,e),this.viewSlot.add(this.view))},t.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},t}())||o)||o)||o)},351:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n,r,o,a,s,u,h,l,c=i(34),d=i(14),f=i(11),p=i(242),m=i(45),g=i(209),b=i(248);function v(t,e,i,n){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function y(t,e,i,n,r){var o={};return Object.keys(n).forEach((function(t){o[t]=n[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(t,e,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var w=(n=Object(f.r)("repeat"),r=Object(c.c)(f.d,f.j,f.o,f.n,d.l,p.a),n(o=Object(f.w)(o=r((a=function(t){function e(e,i,n,r,o,a){var c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,{local:"item",viewsRequireLifecycle:Object(g.a)(e)}));return v(c,"items",s,c),v(c,"local",u,c),v(c,"key",h,c),v(c,"value",l,c),c.viewFactory=e,c.instruction=i,c.viewSlot=n,c.lookupFunctions=r.lookupFunctions,c.observerLocator=o,c.key="key",c.value="value",c.strategyLocator=a,c.ignoreMutation=!1,c.sourceExpression=Object(m.b)(c.instruction,"repeat.for"),c.isOneTime=Object(m.d)(c.sourceExpression),c.viewsRequireLifecycle=Object(g.a)(e),c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.call=function(t,e){this[t](this.items,e)},e.prototype.bind=function(t,e){this.scope={bindingContext:t,overrideContext:e},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},e.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0,!0),this._unsubscribeCollection()},e.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},e.prototype.itemsChanged=function(){var t=this;if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.ignoreMutation=!0,this.strategy.instanceChanged(this,e),this.observerLocator.taskQueue.queueMicroTask((function(){t.ignoreMutation=!1}))}},e.prototype._getInnerCollection=function(){var t=Object(m.e)(this.sourceExpression);return t?t.evaluate(this.scope,null):null},e.prototype.handleCollectionMutated=function(t,e){this.collectionObserver&&(this.ignoreMutation||this.strategy.instanceMutated(this,t,e))},e.prototype.handleInnerCollectionMutated=function(t,e){var i=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var n=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask((function(){return i.ignoreMutation=!1})),n===this.items?this.itemsChanged():this.items=n}},e.prototype._observeInnerCollection=function(){var t=this._getInnerCollection(),e=this.strategyLocator.getStrategy(t);return!!e&&(this.collectionObserver=e.getCollectionObserver(this.observerLocator,t),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},e.prototype._observeCollection=function(){var t=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,t),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},e.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var t=this.viewFactory.viewFactory.instructions,e=Object.keys(t),i=0;i<e.length;i++){var n=t[e[i]].expressions;if(n)for(;i<n.length;i++)if("matcher"===n[0].targetProperty){var r=n[0];return n.splice(0,1),r}}},e.prototype.viewCount=function(){return this.viewSlot.children.length},e.prototype.views=function(){return this.viewSlot.children},e.prototype.view=function(t){return this.viewSlot.children[t]},e.prototype.matcher=function(){return this.matcherBinding?this.matcherBinding.sourceExpression.evaluate(this.scope,this.matcherBinding.lookupFunctions):null},e.prototype.addView=function(t,e){var i=this.viewFactory.create();i.bind(t,e),this.viewSlot.add(i)},e.prototype.insertView=function(t,e,i){var n=this.viewFactory.create();n.bind(e,i),this.viewSlot.insert(t,n)},e.prototype.moveView=function(t,e){this.viewSlot.move(t,e)},e.prototype.removeAllViews=function(t,e){return this.viewSlot.removeAll(t,e)},e.prototype.removeViews=function(t,e,i){return this.viewSlot.removeMany(t,e,i)},e.prototype.removeView=function(t,e,i){return this.viewSlot.removeAt(t,e,i)},e.prototype.updateBindings=function(t){for(var e=t.bindings.length;e--;)Object(m.f)(t.bindings[e]);for(e=t.controllers.length;e--;)for(var i=t.controllers[e].boundProperties.length;i--;){var n=t.controllers[e].boundProperties[i].binding;Object(m.f)(n)}},e}(b.a),s=y(a.prototype,"items",[f.p],{enumerable:!0,initializer:null}),u=y(a.prototype,"local",[f.p],{enumerable:!0,initializer:null}),h=y(a.prototype,"key",[f.p],{enumerable:!0,initializer:null}),l=y(a.prototype,"value",[f.p],{enumerable:!0,initializer:null}),o=a))||o)||o)||o)},352:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r=i(34),o=i(11),a=i(7),s=i(129),u=Object(o.r)("show")(n=function(){function t(t,e,i){this.element=t,this.animator=e,this.domBoundary=i}return t.inject=function(){return[a.b.Element,o.a,r.b.of(a.b.boundary,!0)]},t.prototype.created=function(){Object(s.b)(this.domBoundary)},t.prototype.valueChanged=function(t){t?this.animator.removeClass(this.element,s.a):this.animator.addClass(this.element,s.a)},t.prototype.bind=function(t){this.valueChanged(this.value)},t}())||n},353:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r=i(34),o=i(11),a=i(7),s=i(129),u=Object(o.r)("hide")(n=function(){function t(t,e,i){this.element=t,this.animator=e,this.domBoundary=i}return t.inject=function(){return[a.b.Element,o.a,r.b.of(a.b.boundary,!0)]},t.prototype.created=function(){Object(s.b)(this.domBoundary)},t.prototype.valueChanged=function(t){t?this.animator.addClass(this.element,s.a):this.animator.removeClass(this.element,s.a)},t.prototype.bind=function(t){this.valueChanged(this.value)},t}())||n},354:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n,r=i(14),o=i(34),a=i(249),s=Object(r.E)("sanitizeHTML")(n=Object(o.c)(a.a)(n=function(){function t(t){this.sanitizer=t}return t.prototype.toView=function(t){return null==t?null:this.sanitizer.sanitize(t)},t}())||n)||n},355:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r,o,a=i(34),s=i(11),u=(n=Object(s.r)("replaceable"),r=Object(a.c)(s.d,s.o),n(o=Object(s.w)(o=r(o=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.view=null}return t.prototype.bind=function(t,e){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(t,e)},t.prototype.unbind=function(){this.view.unbind()},t}())||o)||o)||o)},356:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r=i(11),o=i(14),a=i(120),s=i(7),u=Object(r.r)("focus",o.r.twoWay)(n=function(){function t(t,e){this.element=t,this.taskQueue=e,this.isAttached=!1,this.needsApply=!1}return t.inject=function(){return[s.b.Element,a.a]},t.prototype.valueChanged=function(t){this.isAttached?this._apply():this.needsApply=!0},t.prototype._apply=function(){var t=this;this.value?this.taskQueue.queueMicroTask((function(){t.value&&t.element.focus()})):this.element.blur()},t.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this),this.element.addEventListener("blur",this)},t.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this),this.element.removeEventListener("blur",this)},t.prototype.handleEvent=function(t){"focus"===t.type?this.value=!0:s.b.activeElement!==this.element&&(this.value=!1)},t}())||n},357:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n,r=i(14),o=Object(r.q)("attr")(n=function(){function t(){}return t.prototype.bind=function(t,e){t.targetObserver=new r.f(t.target,t.targetProperty)},t.prototype.unbind=function(t,e){},t}())||n},358:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n,r=i(14);function o(t){var e=this,i=this.throttleState,n=+new Date-i.last;if(n>=i.delay)return clearTimeout(i.timeoutId),i.timeoutId=null,i.last=+new Date,void this.throttledMethod(t);i.newValue=t,null===i.timeoutId&&(i.timeoutId=setTimeout((function(){i.timeoutId=null,i.last=+new Date,e.throttledMethod(i.newValue)}),i.delay-n))}var a=Object(r.q)("throttle")(n=function(){function t(){}return t.prototype.bind=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n="updateTarget";t.callSource?n="callSource":t.updateSource&&t.mode===r.r.twoWay&&(n="updateSource"),t.throttledMethod=t[n],t.throttledMethod.originalName=n,t[n]=o,t.throttleState={delay:i,last:0,timeoutId:null}},t.prototype.unbind=function(t,e){t[t.throttledMethod.originalName]=t.throttledMethod,t.throttledMethod=null,clearTimeout(t.throttleState.timeoutId),t.throttleState=null},t}())||n},359:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r=i(14),o={};function a(t){var e=this,i=this.debounceState;clearTimeout(i.timeoutId),i.timeoutId=setTimeout((function(){return e.debouncedMethod(t)}),i.delay)}function s(t,e,i){var n=this,r=this.debounceState;if(clearTimeout(r.timeoutId),t!==r.callContextToDebounce)return r.oldValue=o,void this.debouncedMethod(t,e,i);r.oldValue===o&&(r.oldValue=i),r.timeoutId=setTimeout((function(){var i=r.oldValue;r.oldValue=o,n.debouncedMethod(t,e,i)}),r.delay)}var u=Object(r.q)("debounce")(n=function(){function t(){}return t.prototype.bind=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=void 0!==t.callSource,u=n?"callSource":"call",h=n?a:s,l=t.mode,c=l===r.r.twoWay||l===r.r.fromView?r.D:r.B;t.debouncedMethod=t[u],t.debouncedMethod.originalName=u,t[u]=h,t.debounceState={callContextToDebounce:c,delay:i,timeoutId:0,oldValue:o}},t.prototype.unbind=function(t,e){t[t.debouncedMethod.originalName]=t.debouncedMethod,t.debouncedMethod=null,clearTimeout(t.debounceState.timeoutId),t.debounceState=null},t}())||n},360:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n,r=i(14);function o(t){var e=function(t){return t.path&&t.path[0]||t.deepPath&&t.deepPath[0]||t.target}(t);this.target===e&&this.selfEventCallSource(t)}var a=Object(r.q)("self")(n=function(){function t(){}return t.prototype.bind=function(t,e){if(!t.callSource||!t.targetEvent)throw new Error("Self binding behavior only supports event.");t.selfEventCallSource=t.callSource,t.callSource=o},t.prototype.unbind=function(t,e){t.callSource=t.selfEventCallSource,t.selfEventCallSource=null},t}())||n},361:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n,r=i(14),o=i(250),a=Object(r.q)("signal")(n=function(){function t(t){this.signals=t.signals}return t.inject=function(){return[o.a]},t.prototype.bind=function(t,e){if(!t.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled.  Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var i=arguments[2],n=this.signals[i]||(this.signals[i]=[]);n.push(t),t.signalName=i}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var r=Array.prototype.slice.call(arguments,2),o=r.length;o--;){var a=r[o],s=this.signals[a]||(this.signals[a]=[]);s.push(t)}t.signalName=r}},t.prototype.unbind=function(t,e){var i=t.signalName;if(t.signalName=null,Array.isArray(i))for(var n=i,r=n.length;r--;){var o=n[r],a=this.signals[o];a.splice(a.indexOf(t),1)}else{var s=this.signals[i];s.splice(s.indexOf(t),1)}},t}())||n},362:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n,r=i(14),o="The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">",a="The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.",s=Object(r.q)("updateTrigger")(n=function(){function t(){}return t.prototype.bind=function(t,e){for(var i=arguments.length,n=Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];if(0===n.length)throw new Error(o);if(t.mode!==r.r.twoWay&&t.mode!==r.r.fromView)throw new Error(a);var u=t.observerLocator.getObserver(t.target,t.targetProperty);if(!u.handler)throw new Error(a);t.targetObserver=u,u.originalHandler=t.targetObserver.handler;var h=new r.h(n);u.handler=h},t.prototype.unbind=function(t,e){t.targetObserver.handler.dispose(),t.targetObserver.handler=t.targetObserver.originalHandler,t.targetObserver.originalHandler=null},t}())||n},363:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n,r,o=i(34),a=i(11),s=i(78),u=i(73),h=i(17),l=i(210);var c=a.t("<template></template>")(n=function(){})||n,d=Object(o.c)(a.e)(r=function(t){function e(e){var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.compositionEngine=e,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.loadRoute=function(t,e){var i,n,r,o,d,f=t.container.createChild(),p=void 0;null===e.moduleId?p=c:/\.html/i.test(e.moduleId)?(i=e.moduleId,d=/([^\/^\?]+)\.html/i.exec(i)[1],n=Object(a.s)(d),r=Object(a.x)(i),p=n(o=r(o=function(){function t(){}return t.prototype.bind=function(t){this.$parent=t},t}())||o)||o):p=Object(u.d)(e.moduleId,h.a.get(t.container.viewModel.constructor).moduleId);var m={viewModel:p,childContainer:f,view:e.view||e.viewStrategy,router:t};return f.registerSingleton(l.b),f.getChildRouter=function(){var e=void 0;return f.registerHandler(s.c,(function(i){return e||(e=t.createChild(f))})),f.get(s.c)},this.compositionEngine.ensureViewModel(m)},e}(s.b))||r},364:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n,r=i(11),o=i(78),a=i(7),s=i(56).getLogger("route-href"),u=Object(r.r)("route-href")(n=Object(r.p)({name:"route",changeHandler:"processChange",primaryProperty:!0})(n=Object(r.p)({name:"params",changeHandler:"processChange"})(n=Object(r.p)({name:"attribute",defaultValue:"href"})(n=function(){function t(t,e){this.router=t,this.element=e}return t.inject=function(){return[o.c,a.b.Element]},t.prototype.bind=function(){this.isActive=!0,this.processChange()},t.prototype.unbind=function(){this.isActive=!1},t.prototype.attributeChanged=function(t,e){e&&this.element.removeAttribute(e),this.processChange()},t.prototype.processChange=function(){var t=this;return this.router.ensureConfigured().then((function(){if(!t.isActive)return null;var e=t.router.generate(t.route,t.params);return t.element.au.controller?t.element.au.controller.viewModel[t.attribute]=e:t.element.setAttribute(t.attribute,e),null})).catch((function(t){s.error(t)}))},t}())||n)||n)||n)||n},365:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(73),r=function(){function t(t){this.charSpec=t,this.nextStates=[]}return t.prototype.get=function(t){var e=this.nextStates,i=Array.isArray(e),n=0;for(e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(o.charSpec.validChars===t.validChars&&o.charSpec.invalidChars===t.invalidChars)return o}},t.prototype.put=function(e){var i=this.get(e);return i||(i=new t(e),this.nextStates.push(i),e.repeat&&i.nextStates.push(i),i)},t.prototype.match=function(t){for(var e=this.nextStates,i=[],n=0,r=e.length;n<r;n++){var o=e[n],a=o.charSpec;void 0!==a.validChars?-1!==a.validChars.indexOf(t)&&i.push(o):void 0!==a.invalidChars&&-1===a.invalidChars.indexOf(t)&&i.push(o)}return i},t}(),o=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\"].join("|\\")+")","g"),a=function(){function t(t,e){this.string=t,this.caseSensitive=e}return t.prototype.eachChar=function(t){for(var e=this.string,i=0,n=e.length;i<n;++i){var r=e[i];t({validChars:this.caseSensitive?r:r.toUpperCase()+r.toLowerCase()})}},t.prototype.regex=function(){return this.string.replace(o,"\\$1")},t.prototype.generate=function(){return this.string},t}(),s=function(){function t(t,e){this.name=t,this.optional=e}return t.prototype.eachChar=function(t){t({invalidChars:"/",repeat:!0})},t.prototype.regex=function(){return"([^/]+)"},t.prototype.generate=function(t,e){return e[this.name]=!0,t[this.name]},t}(),u=function(){function t(t){this.name=t}return t.prototype.eachChar=function(t){t({invalidChars:"",repeat:!0})},t.prototype.regex=function(){return"(.+)"},t.prototype.generate=function(t,e){return e[this.name]=!0,t[this.name]},t}(),h=function(){function t(){}return t.prototype.eachChar=function(){},t.prototype.regex=function(){return""},t.prototype.generate=function(){return""},t}(),l=function(){function t(){this.rootState=new r,this.names={}}return t.prototype.add=function(t){var e=this;if(!Array.isArray(t)){for(var i=this.rootState,n=[],r="^",o={statics:0,dynamics:0,stars:0},l=[],c=t.handler.name,d=!0,p=function(t,e,i,n){var r=t;"/"===t.charAt(0)&&(r=t.substr(1));for(var o=[],l=r.split("/"),c=0,d=l.length;c<d;++c){var f=l[c],p=f.match(/^:([^?]+)(\?)?$/);if(p){var m=p,g=m[1],b=m[2];if(-1!==g.indexOf("="))throw new Error("Parameter "+g+" in route "+t+" has a default value, which is not supported.");o.push(new s(g,!!b)),e.push(g),i.dynamics++}else(p=f.match(/^\*(.+)$/))?(o.push(new u(p[1])),e.push(p[1]),i.stars++):""===f?o.push(new h):(o.push(new a(f,n)),i.statics++)}return o}(t.path,l,o,t.caseSensitive),m=0,g=p.length;m<g;m++){var b=p[m];if(!(b instanceof h)){for(var v=f(i,b),y=v[0],w=v[1],_=0,M=n.length;_<M;_++)n[_].nextStates.push(y);b.optional?(n.push(w),r+="(?:/"+b.regex()+")?"):(i=w,r+="/"+b.regex(),n.length=0,d=!1)}}d&&(i=i.put({validChars:"/"}),r+="/?");var x=[{handler:t.handler,names:l}];if(c)for(var S=Array.isArray(c)?c:[c],T=0;T<S.length;T++)this.names[S[T]]={segments:p,handlers:x};for(var A=0;A<n.length;A++){var C=n[A];C.handlers=x,C.regex=new RegExp(r+"$",t.caseSensitive?"":"i"),C.types=o}return i.handlers=x,i.regex=new RegExp(r+"$",t.caseSensitive?"":"i"),i.types=o,i}t.forEach((function(t){return e.add(t)}))},t.prototype.handlersFor=function(t){var e=this.names[t];if(!e)throw new Error("There is no route named "+t);return[].concat(e.handlers)},t.prototype.hasRoute=function(t){return!!this.names[t]},t.prototype.generate=function(t,e){var i=this.names[t];if(!i)throw new Error("There is no route named "+t);var r=i.handlers[0].handler;if(r.generationUsesHref)return r.href;for(var o=Object.assign({},e),a=i.segments,s={},u="",l=0,c=a.length;l<c;l++){var d=a[l];if(!(d instanceof h)){var f=d.generate(o,s);if(null==f){if(!d.optional)throw new Error("A value is required for route parameter '"+d.name+"' in route '"+t+"'.")}else u+="/",u+=f}}for(var p in"/"!==u.charAt(0)&&(u="/"+u),s)delete o[p];var m=Object(n.a)(o);return u+=m?"?"+m:""},t.prototype.recognize=function(t){var e=[this.rootState],i={},r=!1,o=t,a=o.indexOf("?");if(-1!==a){var s=o.substr(a+1,o.length);o=o.substr(0,a),i=Object(n.c)(s)}"/"!==(o=decodeURI(o)).charAt(0)&&(o="/"+o);var u=o.length;u>1&&"/"===o.charAt(u-1)&&(o=o.substr(0,u-1),r=!0);for(var h=0,l=o.length;h<l&&(e=d(e,o.charAt(h))).length;h++);for(var f=[],p=0,m=e.length;p<m;p++)e[p].handlers&&f.push(e[p]);e=function(t){return t.sort((function(t,e){if(t.types.stars!==e.types.stars)return t.types.stars-e.types.stars;if(t.types.stars){if(t.types.statics!==e.types.statics)return e.types.statics-t.types.statics;if(t.types.dynamics!==e.types.dynamics)return e.types.dynamics-t.types.dynamics}return t.types.dynamics!==e.types.dynamics?t.types.dynamics-e.types.dynamics:t.types.statics!==e.types.statics?e.types.statics-t.types.statics:0}))}(f);var g=f[0];if(g&&g.handlers)return r&&"(.+)$"===g.regex.source.slice(-5)&&(o+="/"),function(t,e,i){for(var n=t.handlers,r=t.regex,o=e.match(r),a=1,s=new c(i),u=0,h=n.length;u<h;u++){for(var l=n[u],d=l.names,f={},p=0,m=d.length;p<m;p++)f[d[p]]=o[a++];s.push({handler:l.handler,params:f,isDynamic:!!d.length})}return s}(g,o,i)},t}(),c=function(t){this.splice=Array.prototype.splice,this.slice=Array.prototype.slice,this.push=Array.prototype.push,this.length=0,this.queryParams=t||{}};function d(t,e){for(var i=[],n=0,r=t.length;n<r;n++){var o=t[n];i.push.apply(i,o.match(e))}return i}function f(t,e){var i=t.put({validChars:"/"}),n=i;return e.eachChar((function(t){n=n.put(t)})),[i,n]}},38:function(t,e,i){"use strict";function n(t,e){for(var i=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return i+n}i.d(e,"a",(function(){return n}))},390:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(163),r=i(19);function o(t,e){Object(r.a)(2,arguments);var i=Object(n.a)(t),o=Object(n.a)(e);return i.getTime()===o.getTime()}},40:function(t,e,i){var n=i(76),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function a(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(r,a),a.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},422:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.foldLines=e.escape=e.formatDateTZ=e.formatDate=e.ICalWeekday=e.ICalEventRepeatingFreq=e.ICalEventTransparency=e.ICalEventBusyStatus=e.ICalEventStatus=e.ICalEvent=e.ICalCategory=e.ICalCalendarMethod=e.ICalCalendar=e.ICalAttendeeStatus=e.ICalAttendeeRole=e.ICalAttendeeType=e.ICalAttendee=e.ICalAlarmType=e.ICalAlarm=void 0;const r=n(i(504));function o(t){return new r.default(t)}e.default=o;var a=i(507);Object.defineProperty(e,"ICalAlarm",{enumerable:!0,get:function(){return n(a).default}}),Object.defineProperty(e,"ICalAlarmType",{enumerable:!0,get:function(){return a.ICalAlarmType}});var s=i(506);Object.defineProperty(e,"ICalAttendee",{enumerable:!0,get:function(){return n(s).default}}),Object.defineProperty(e,"ICalAttendeeType",{enumerable:!0,get:function(){return s.ICalAttendeeType}}),Object.defineProperty(e,"ICalAttendeeRole",{enumerable:!0,get:function(){return s.ICalAttendeeRole}}),Object.defineProperty(e,"ICalAttendeeStatus",{enumerable:!0,get:function(){return s.ICalAttendeeStatus}});var u=i(504);Object.defineProperty(e,"ICalCalendar",{enumerable:!0,get:function(){return n(u).default}}),Object.defineProperty(e,"ICalCalendarMethod",{enumerable:!0,get:function(){return u.ICalCalendarMethod}});var h=i(508);Object.defineProperty(e,"ICalCategory",{enumerable:!0,get:function(){return n(h).default}});var l=i(505);Object.defineProperty(e,"ICalEvent",{enumerable:!0,get:function(){return n(l).default}}),Object.defineProperty(e,"ICalEventStatus",{enumerable:!0,get:function(){return l.ICalEventStatus}}),Object.defineProperty(e,"ICalEventBusyStatus",{enumerable:!0,get:function(){return l.ICalEventBusyStatus}}),Object.defineProperty(e,"ICalEventTransparency",{enumerable:!0,get:function(){return l.ICalEventTransparency}});var c=i(509);Object.defineProperty(e,"ICalEventRepeatingFreq",{enumerable:!0,get:function(){return c.ICalEventRepeatingFreq}}),Object.defineProperty(e,"ICalWeekday",{enumerable:!0,get:function(){return c.ICalWeekday}});var d=i(175);Object.defineProperty(e,"formatDate",{enumerable:!0,get:function(){return d.formatDate}}),Object.defineProperty(e,"formatDateTZ",{enumerable:!0,get:function(){return d.formatDateTZ}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return d.escape}}),Object.defineProperty(e,"foldLines",{enumerable:!0,get:function(){return d.foldLines}}),t.exports=Object.assign(o,t.exports)},425:function(t,e,i){var n,r,o;o=function(){for(var t={map:{}},e=[{base:" ",letters:" "},{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",letters:"Þ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"ff",letters:"ff"},{base:"fi",letters:"fi"},{base:"fl",letters:"fl"},{base:"ffi",letters:"ffi"},{base:"ffl",letters:"ffl"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nñnⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",letters:"nj"},{base:"o",letters:"߀oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oe",letters:"Œœ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"ss",letters:"ß"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",letters:"þ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],i=0,n=e.length;i<n;i++)for(var r=e[i].letters.split(""),o=0,a=r.length;o<a;o++)t.map[r[o]]=e[i].base;return t.clean=function(e){if(!e||!e.length||e.length<1)return"";for(var i,n="",r=e.split(""),o=0,a=r.length;o<a;o++)n+=(i=r[o])in t.map?t.map[i]:i;return n},t},t.exports?t.exports=o():void 0===(r="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=r)},438:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(34),r=i(11),o=i(177),a=i(153),s=i(186),u=i(135);function h(t,e){return this.then((function(t){return t.wasCancelled?t:t.closeResult})).then(t,e)}var l=function(){function t(t,e,i){this.controllers=[],this.hasOpenDialog=!1,this.hasActiveDialog=!1,this.container=t,this.compositionEngine=e,this.defaultSettings=i}return t.prototype.validateSettings=function(t){if(!t.viewModel&&!t.view)throw new Error('Invalid Dialog Settings. You must provide "viewModel", "view" or both.')},t.prototype.createCompositionContext=function(t,e,i){return{container:t.parent,childContainer:t,bindingContext:null,viewResources:null,model:i.model,view:i.view,viewModel:i.viewModel,viewSlot:new r.o(e,!0),host:e}},t.prototype.ensureViewModel=function(t){return"object"==typeof t.viewModel?Promise.resolve(t):this.compositionEngine.ensureViewModel(t)},t.prototype._cancelOperation=function(t){if(!t)return{wasCancelled:!0};throw Object(a.a)()},t.prototype.composeAndShowDialog=function(t,e){var i=this;return t.viewModel||(t.bindingContext={controller:e}),this.compositionEngine.compose(t).then((function(t){return e.controller=t,e.renderer.showDialog(e).then((function(){i.controllers.push(e),i.hasActiveDialog=i.hasOpenDialog=!!i.controllers.length}),(function(e){return t.viewModel&&Object(s.a)(t.viewModel,"deactivate"),Promise.reject(e)}))}))},t.prototype.createSettings=function(t){return"boolean"==typeof(t=Object.assign({},this.defaultSettings,t)).keyboard||t.keyboard||(t.keyboard=!t.lock),"boolean"!=typeof t.overlayDismiss&&(t.overlayDismiss=!t.lock),Object.defineProperty(t,"rejectOnCancel",{writable:!1,configurable:!0,enumerable:!0}),this.validateSettings(t),t},t.prototype.open=function(t){var e=this;void 0===t&&(t={});var i,n,r=(t=this.createSettings(t)).childContainer||this.container.createChild(),o=new Promise((function(t,e){i=t,n=e})),a=r.invoke(u.a,[t,i,n]);r.registerInstance(u.a,a),o.then((function(){c(e,a)}),(function(){c(e,a)}));var l,d=this.createCompositionContext(r,a.renderer.getDialogContainer(),a.settings),f=this.ensureViewModel(d).then((function(t){return!t.viewModel||Object(s.a)(t.viewModel,"canActivate",a.settings.model)})).then((function(t){return t?e.composeAndShowDialog(d,a).then((function(){return{controller:a,closeResult:o,wasCancelled:!1}})):e._cancelOperation(a.settings.rejectOnCancel)}));return(l=f).whenClosed=h,l},t.prototype.closeAll=function(){return Promise.all(this.controllers.slice(0).map((function(t){return t.settings.rejectOnCancel?t.cancel().then((function(){return null})).catch((function(e){if(e.wasCancelled)return t;throw e})):t.cancel().then((function(e){return e.wasCancelled?t:null}))}))).then((function(t){return t.filter((function(t){return!!t}))}))},t.inject=[n.a,r.e,o.a],t}();function c(t,e){var i=t.controllers.indexOf(e);-1!==i&&(t.controllers.splice(i,1),t.hasActiveDialog=t.hasOpenDialog=!!t.controllers.length)}},439:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},440:function(t,e,i){"use strict";var n=i(713).Buffer,r=i(714).Transform;function o(t){r.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(169)(o,r),o.prototype._transform=function(t,e,i){var n=null;try{this.update(t,e)}catch(t){n=t}i(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var i=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o++]=t[r++];this._update(),this._blockOffset=0}for(;r<t.length;)i[this._blockOffset++]=t[r++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},441:function(t,e,i){"use strict";(function(e,n){var r;t.exports=T,T.ReadableState=S;i(148).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=i(442),s=i(76).Buffer,u=e.Uint8Array||function(){};var h,l=i(220);h=l&&l.debuglog?l.debuglog("stream"):function(){};var c,d,f,p=i(715),m=i(443),g=i(444).getHighWaterMark,b=i(168).codes,v=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(169)(T,a);var M=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(t,e,n){r=r||i(170),t=t||{},"boolean"!=typeof n&&(n=e instanceof r),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=i(149).StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function T(t){if(r=r||i(170),!(this instanceof T))return new T(t);var e=this instanceof r;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,i,n,r){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(h("onEofChunk"),e.ended)return;if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,P(t)))}(t,a);else if(r||(o=function(t,e){var i;n=e,s.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(i=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return i}(a,e)),o)M(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?M(t,new _):C(t,a,e,!0);else if(a.ended)M(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!i?(e=a.decoder.write(e),a.objectMode||0!==e.length?C(t,a,e,!1):I(t,a)):C(t,a,e,!1)}else n||(a.reading=!1,I(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function C(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&O(t)),I(t,e)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),i=!0),A(this,t,e,!1,i)},T.prototype.unshift=function(t){return A(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){c||(c=i(149).StringDecoder);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var E=1073741824;function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(P,t))}function P(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,B(t)}function I(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(h("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function R(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){h("readable nexttick read 0"),t.read(0)}function L(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function z(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(H,e,t))}function H(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function F(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}T.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?z(this):O(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&z(this),null;var n,r=e.needReadable;return h("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&h("length less than watermark",r=!0),e.ended||e.reading?h("reading or ended",r=!1):r&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(i,e))),null===(n=t>0?N(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&z(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){M(this,new w("_read()"))},T.prototype.pipe=function(t,e){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:g;function s(e,n){h("onunpipe"),e===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",s),i.removeListener("end",u),i.removeListener("end",g),i.removeListener("data",d),c=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){h("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",s);var l=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,B(t))}}(i);t.on("drain",l);var c=!1;function d(e){h("ondata");var n=t.write(e);h("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==F(r.pipes,t))&&!c&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function f(e){h("onerror",e),g(),t.removeListener("error",f),0===o(t,"error")&&M(t,e)}function p(){t.removeListener("finish",m),g()}function m(){h("onfinish"),t.removeListener("close",p),g()}function g(){h("unpipe"),i.unpipe(t)}return i.on("data",d),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",f),t.once("close",p),t.once("finish",m),t.emit("pipe",i),r.flowing||(h("pipe resume"),i.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},T.prototype.on=function(t,e){var i=a.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?O(this):r.reading||n.nextTick(D,this))),i},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var i=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(R,this),i},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(R,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(L,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(h("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){(h("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(e.push(r)||(n=!0,t.pause()))})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<x.length;o++)t.on(x[o],this.emit.bind(this,x[o]));return this._read=function(e){h("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=i(716)),d(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=N,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,e){return void 0===f&&(f=i(717)),f(T,t,e)})}).call(this,i(88),i(70))},442:function(t,e,i){t.exports=i(148).EventEmitter},443:function(t,e,i){"use strict";(function(e){function i(t,e){r(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,t)):e.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(i,a,t)):e.nextTick(i,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(70))},444:function(t,e,i){"use strict";var n=i(168).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,r){var o=function(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}(e,r,i);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(r?i:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},445:function(t,e,i){"use strict";(function(e,n){function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,i){var n=t.entry;t.entry=null;for(;n;){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=T,T.WritableState=S;var a={deprecate:i(307)},s=i(442),u=i(76).Buffer,h=e.Uint8Array||function(){};var l,c=i(443),d=i(444).getHighWaterMark,f=i(168).codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,b=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,_=f.ERR_UNKNOWN_ENCODING,M=c.errorOrDestroy;function x(){}function S(t,e,a){o=o||i(170),t=t||{},"boolean"!=typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,r=i.sync,o=i.writecb;if("function"!=typeof o)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),e)!function(t,e,i,r,o){--e.pendingcb,i?(n.nextTick(o,r),n.nextTick(P,t,e),t._writableState.errorEmitted=!0,M(t,r)):(o(r),t._writableState.errorEmitted=!0,M(t,r),P(t,e))}(t,i,r,e,o);else{var a=k(i)||t.destroyed;a||i.corked||i.bufferProcessing||!i.bufferedRequest||E(t,i),r?n.nextTick(C,t,i,a,o):C(t,i,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function T(t){var e=this instanceof(o=o||i(170));if(!e&&!l.call(T,this))return new T(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(t,e,i,n,r,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function C(t,e,i,n){i||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),P(t,e)}function E(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=i;for(var s=0,u=!0;i;)o[s]=i,i.isBuf||(u=!1),i=i.next,s+=1;o.allBuffers=u,A(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,l=i.encoding,c=i.callback;if(A(t,e,!1,e.objectMode?1:h.length,h,l,c),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(i){e.pendingcb--,i&&M(t,i),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var i=k(e);if(i&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return i}i(169)(T,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(t){return!!l.call(this,t)||this===T&&(t&&t._writableState instanceof S)}})):l=function(t){return t instanceof this},T.prototype.pipe=function(){M(this,new b)},T.prototype.write=function(t,e,i){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,u.isBuffer(r)||r instanceof h);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(i=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof i&&(i=x),o.ending?function(t,e){var i=new w;M(t,i),n.nextTick(e,i)}(this,i):(s||function(t,e,i,r){var o;return null===i?o=new y:"string"==typeof i||e.objectMode||(o=new p("chunk",["string","Buffer"],i)),!o||(M(t,o),n.nextTick(r,o),!1)}(this,o,t,i))&&(o.pendingcb++,a=function(t,e,i,n,r,o){if(!i){var a=function(t,e,i){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,i));return e}(e,n,r);n!==a&&(i=!0,r="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var h=e.length<e.highWaterMark;h||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,s,n,r,o);return h}(this,o,s,t,e,i)),a},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},T.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,i){i(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,i){var r=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,i){e.ending=!0,P(t,e),i&&(e.finished?n.nextTick(i):t.once("finish",i));e.ended=!0,t.writable=!1}(this,r,i),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=c.destroy,T.prototype._undestroy=c.undestroy,T.prototype._destroy=function(t,e){e(t)}}).call(this,i(88),i(70))},446:function(t,e,i){"use strict";t.exports=l;var n=i(168).codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=i(170);function h(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new o);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,i){d(t,e,i)}))}function d(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}i(169)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,i){i(new r("_transform()"))},l.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},447:function(t,e,i){var n=i(46),r=i(171),o=i(40).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,r.call(this,64,56)}function h(t,e,i){return i^t&(e^i)}function l(t,e,i){return t&e|i&(t|e)}function c(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,r),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)i[b]=t.readInt32BE(4*b);for(;b<64;++b)i[b]=0|(((e=i[b-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[b-7]+f(i[b-15])+i[b-16];for(var v=0;v<64;++v){var y=g+d(u)+h(u,p,m)+a[v]+i[v]|0,w=c(n)+l(n,r,o)|0;g=m,m=p,p=u,u=s+y|0,s=o,o=r,r=n,n=y+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},448:function(t,e,i){var n=i(46),r=i(171),o=i(40).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,r.call(this,128,112)}function h(t,e,i){return i^t&(e^i)}function l(t,e,i){return t&e|i&(t|e)}function c(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function b(t,e){return t>>>0<e>>>0?1:0}n(u,r),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,M=0|this._cl,x=0|this._dl,S=0|this._el,T=0|this._fl,A=0|this._gl,C=0|this._hl,E=0;E<32;E+=2)e[E]=t.readInt32BE(4*E),e[E+1]=t.readInt32BE(4*E+4);for(;E<160;E+=2){var k=e[E-30],O=e[E-30+1],P=f(k,O),I=p(O,k),j=m(k=e[E-4],O=e[E-4+1]),R=g(O,k),D=e[E-14],L=e[E-14+1],B=e[E-32],N=e[E-32+1],z=I+L|0,H=P+D+b(z,I)|0;H=(H=H+j+b(z=z+R|0,R)|0)+B+b(z=z+N|0,N)|0,e[E]=H,e[E+1]=z}for(var F=0;F<160;F+=2){H=e[F],z=e[F+1];var V=l(i,n,r),U=l(w,_,M),G=c(i,w),q=c(w,i),W=d(s,S),Z=d(S,s),Y=a[F],$=a[F+1],K=h(s,u,v),X=h(S,T,A),Q=C+Z|0,J=y+W+b(Q,C)|0;J=(J=(J=J+K+b(Q=Q+X|0,X)|0)+Y+b(Q=Q+$|0,$)|0)+H+b(Q=Q+z|0,z)|0;var tt=q+U|0,et=G+V+b(tt,q)|0;y=v,C=A,v=u,A=T,u=s,T=S,s=o+J+b(S=x+Q|0,x)|0,o=r,x=M,r=n,M=_,n=i,_=w,i=J+et+b(w=Q+tt|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+M|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+T|0,this._gl=this._gl+A|0,this._hl=this._hl+C|0,this._ah=this._ah+i+b(this._al,w)|0,this._bh=this._bh+n+b(this._bl,_)|0,this._ch=this._ch+r+b(this._cl,M)|0,this._dh=this._dh+o+b(this._dl,x)|0,this._eh=this._eh+s+b(this._el,S)|0,this._fh=this._fh+u+b(this._fl,T)|0,this._gh=this._gh+v+b(this._gl,A)|0,this._hh=this._hh+y+b(this._hl,C)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},449:function(t,e,i){"use strict";(function(e,n){var r=i(222);t.exports=y;var o,a=i(439);y.ReadableState=v;i(148).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=i(450),h=i(40).Buffer,l=e.Uint8Array||function(){};var c=i(204);c.inherits=i(46);var d=i(223),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=i(725),g=i(451);c.inherits(y,u);var b=["error","close","destroy","pause","resume"];function v(t,e){t=t||{};var n=e instanceof(o=o||i(150));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=i(149).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(o=o||i(150),!(this instanceof y))return new y(t);this._readableState=new v(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,i,n,r){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,S(t)}(t,a)):(r||(o=function(t,e){var i;n=e,h.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var n;return i}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!i?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):A(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&S(t)),A(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=h.from(t,e),e=""),i=!0),w(this,t,e,!1,i)},y.prototype.unshift=function(t){return w(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=i(149).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var M=8388608;function x(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(T,t):T(t))}function T(t){f("emit readable"),t.emit("readable"),O(t)}function A(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(C,t,e))}function C(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),i!==e.length);)i=e.length;e.readingMore=!1}function E(t){f("readable nexttick read 0"),t.read(0)}function k(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function P(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=function(t,e,i){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():i?function(t,e){var i=e.head,n=1,r=i.data;t-=r.length;for(;i=i.next;){var o=i.data,a=t>o.length?o.length:t;if(a===o.length?r+=o:r+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(a));break}++n}return e.length-=n,r}(t,e):function(t,e){var i=h.allocUnsafe(t),n=e.head,r=1;n.data.copy(i),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,a),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e);return n}(t,e.buffer,e.decoder),i);var i}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function R(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}y.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):S(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&I(this),null;var n,r=e.needReadable;return f("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",r=!0),e.ended||e.reading?f("reading or ended",r=!1):r&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=x(i,e))),null===(n=t>0?P(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&I(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?l:y;function h(e,n){f("onunpipe"),e===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),t.removeListener("close",b),t.removeListener("finish",v),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",h),i.removeListener("end",l),i.removeListener("end",y),i.removeListener("data",m),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function l(){f("onend"),t.end()}o.endEmitted?r.nextTick(u):i.once("end",u),t.on("unpipe",h);var c=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,O(t))}}(i);t.on("drain",c);var d=!1;var p=!1;function m(e){f("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==R(o.pipes,t))&&!d&&(f("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,p=!0),i.pause())}function g(e){f("onerror",e),y(),t.removeListener("error",g),0===s(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",v),y()}function v(){f("onfinish"),t.removeListener("close",b),y()}function y(){f("unpipe"),i.unpipe(t)}return i.on("data",m),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",g),t.once("close",b),t.once("finish",v),t.emit("pipe",i),o.flowing||(f("pipe resume"),i.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,i);return this}var a=R(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},y.prototype.on=function(t,e){var i=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):r.nextTick(E,this))}return i},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(k,t,e))}(this,t)),this},y.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(f("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){(f("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(e.push(r)||(n=!0,t.pause()))})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<b.length;o++)t.on(b[o],this.emit.bind(this,b[o]));return this._read=function(e){f("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=P}).call(this,i(88),i(70))},45:function(t,e,i){"use strict";i.d(e,"h",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"g",(function(){return s})),i.d(e,"b",(function(){return u})),i.d(e,"e",(function(){return h})),i.d(e,"d",(function(){return l})),i.d(e,"f",(function(){return c})),i.d(e,"c",(function(){return d}));var n=i(14),r=n.r.oneTime;function o(t,e){var i=t.length;for(e>0&&(e-=1);e<i;++e)s(t[e].overrideContext,e,i)}function a(t,e,i,r,o){var a={},u=Object(n.v)(a,t.scope.overrideContext);return void 0!==o?(a[t.key]=o,a[t.value]=e):a[t.local]=e,s(u,i,r),u}function s(t,e,i){var n=0===e,r=e===i-1,o=e%2==0;t.$index=e,t.$first=n,t.$last=r,t.$middle=!(n||r),t.$odd=!o,t.$even=o}function u(t,e){return t.behaviorInstructions.filter((function(t){return t.originalAttrName===e}))[0].attributes.items.sourceExpression}function h(t){for(var e=!1;t instanceof n.a;)t=t.expression;for(;t instanceof n.o;)t=t.expression,e=!0;return e?t:null}function l(t){for(;t instanceof n.a;){if("oneTime"===t.name)return!0;t=t.expression}return!1}function c(t){t.call&&t.mode===r?t.call(n.B):t.updateOneTimeBindings&&t.updateOneTimeBindings()}function d(t,e,i,n){if(!i)return t.indexOf(e);for(var r=t.length,o=n||0;o<r;o++)if(i(t[o],e))return o;return-1}},450:function(t,e,i){t.exports=i(148).EventEmitter},451:function(t,e,i){"use strict";var n=i(222);function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var i=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(r,i,t),i._writableState&&(i._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},452:function(t,e,i){"use strict";t.exports=a;var n=i(150),r=i(204);function o(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"==typeof this._flush?this._flush((function(e,i){u(t,e,i)})):u(this,null,null)}function u(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}r.inherits=i(46),r.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,i){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var i=this;n.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},453:function(t,e,i){"use strict";var n=i(46),r=i(733),o=i(143),a=i(40).Buffer,s=i(454),u=i(309),h=i(310),l=a.alloc(128);function c(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var i="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>i)?e=("rmd160"===t?new u:h(t)).update(e).digest():e.length<i&&(e=a.concat([e,l],i));for(var n=this._ipad=a.allocUnsafe(i),r=this._opad=a.allocUnsafe(i),s=0;s<i;s++)n[s]=54^e[s],r[s]=92^e[s];this._hash="rmd160"===t?new u:h(t),this._hash.update(n)}n(c,o),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:h(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new c("rmd160",e):"md5"===t?new r(s,e):new c(t,e)}},454:function(t,e,i){var n=i(306);t.exports=function(t){return(new n).update(t).digest()}},455:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},456:function(t,e,i){e.pbkdf2=i(735),e.pbkdf2Sync=i(459)},457:function(t,e){var i=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>i||e!=e)throw new TypeError("Bad key length")}},458:function(t,e,i){(function(e){var i;if(e.browser)i="utf-8";else if(e.version){i=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else i="utf-8";t.exports=i}).call(this,i(70))},459:function(t,e,i){var n=i(454),r=i(309),o=i(310),a=i(40).Buffer,s=i(457),u=i(458),h=i(460),l=a.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){var s=function(t){function e(e){return o(t).update(e).digest()}function i(t){return(new r).update(t).digest()}return"rmd160"===t||"ripemd160"===t?i:"md5"===t?n:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length<u&&(e=a.concat([e,l],u));for(var h=a.allocUnsafe(u+c[t]),d=a.allocUnsafe(u+c[t]),f=0;f<u;f++)h[f]=54^e[f],d[f]=92^e[f];var p=a.allocUnsafe(u+i+4);h.copy(p,0,0,u),this.ipad1=p,this.ipad2=h,this.opad=d,this.alg=t,this.blocksize=u,this.hash=s,this.size=c[t]}d.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,i,n,r){s(i,n);var o=new d(r=r||"sha1",t=h(t,u,"Password"),(e=h(e,u,"Salt")).length),l=a.allocUnsafe(n),f=a.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var p=0,m=c[r],g=Math.ceil(n/m),b=1;b<=g;b++){f.writeUInt32BE(b,e.length);for(var v=o.run(f,o.ipad1),y=v,w=1;w<i;w++){y=o.run(y,o.ipad2);for(var _=0;_<m;_++)v[_]^=y[_]}v.copy(l,p),p+=m}return l}},46:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},460:function(t,e,i){var n=i(40).Buffer;t.exports=function(t,e,i){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},461:function(t,e,i){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,n){for(var r=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}i[n+0]=r>>>0,i[n+1]=o>>>0},e.rip=function(t,e,i,n){for(var r=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)r<<=1,r|=e>>>s+a&1,r<<=1,r|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;i[n+0]=r>>>0,i[n+1]=o>>>0},e.pc1=function(t,e,i,n){for(var r=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+a&1}for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;i[n+0]=r>>>0,i[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,r){for(var o=0,a=0,s=n.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>n[u]&1;for(u=s;u<n.length;u++)a<<=1,a|=e>>>n[u]&1;i[r+0]=o>>>0,i[r+1]=a>>>0},e.expand=function(t,e,i){var n=0,r=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)r|=t>>>o&63,r<<=6;r|=(31&t)<<1|t>>>31,e[i+0]=n>>>0,e[i+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,n=0;n<4;n++){i<<=4,i|=r[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){i<<=4,i|=r[256+64*n+(e>>>18-6*n&63)]}return i>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i<o.length;i++)e<<=1,e|=t>>>o[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var r=[],o=0;o<e;o+=i)r.push(n.slice(o,o+i));return r.join(" ")}},462:function(t,e,i){"use strict";var n=i(104),r=i(46),o=i(461),a=i(313);function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}r(u,a),t.exports=u,u.create=function(t){return new u(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var i=o.readUInt32BE(e,0),r=o.readUInt32BE(e,4);o.pc1(i,r,t.tmp,0),i=t.tmp[0],r=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=h[a>>>1];i=o.r28shl(i,s),r=o.r28shl(r,s),o.pc2(i,r,t.keys,a)}},u.prototype._update=function(t,e,i,n){var r=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],"encrypt"===this.type?this._encrypt(r,a,s,r.tmp,0):this._decrypt(r,a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],o.writeUInt32BE(i,a,n),o.writeUInt32BE(i,s,n+4)},u.prototype._pad=function(t,e){for(var i=t.length-e,n=e;n<t.length;n++)t[n]=i;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)n.equal(t[i],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,i,n,r){for(var a=e,s=i,u=0;u<t.keys.length;u+=2){var h=t.keys[u],l=t.keys[u+1];o.expand(s,t.tmp,0),h^=t.tmp[0],l^=t.tmp[1];var c=o.substitute(h,l),d=s;s=(a^o.permute(c))>>>0,a=d}o.rip(s,a,n,r)},u.prototype._decrypt=function(t,e,i,n,r){for(var a=i,s=e,u=t.keys.length-2;u>=0;u-=2){var h=t.keys[u],l=t.keys[u+1];o.expand(a,t.tmp,0),h^=t.tmp[0],l^=t.tmp[1];var c=o.substitute(h,l),d=a;a=(s^o.permute(c))>>>0,s=d}o.rip(a,s,n,r)}},463:function(t,e,i){var n=i(205),r=i(40).Buffer,o=i(464);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var i=Math.ceil(e.length/16),o=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(16*i)]);for(var s=0;s<i;s++){var u=a(t),h=o+16*s;t._cache.writeUInt32BE(u[0],h+0),t._cache.writeUInt32BE(u[1],h+4),t._cache.writeUInt32BE(u[2],h+8),t._cache.writeUInt32BE(u[3],h+12)}var l=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,l)}},464:function(t,e){t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},465:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},466:function(t,e,i){var n=i(225),r=i(40).Buffer,o=i(143),a=i(46),s=i(748),u=i(205),h=i(464);function l(t,e,i,a){o.call(this);var u=r.alloc(4,0);this._cipher=new n.AES(e);var l=this._cipher.encryptBlock(u);this._ghash=new s(l),i=function(t,e,i){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var n=new s(i),o=e.length,a=o%16;n.update(e),a&&(a=16-a,n.update(r.alloc(a,0))),n.update(r.alloc(8,0));var u=8*o,l=r.alloc(8);l.writeUIntBE(u,0,8),n.update(l),t._finID=n.state;var c=r.from(t._finID);return h(c),c}(this,i,l),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(l,o),l.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var i=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(i),this._len+=t.length,i},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var i=0;t.length!==e.length&&i++;for(var n=Math.min(t.length,e.length),r=0;r<n;++r)i+=t[r]^e[r];return i}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},l.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=l},467:function(t,e,i){var n=i(225),r=i(40).Buffer,o=i(143);function a(t,e,i,a){o.call(this),this._cipher=new n.AES(e),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=t}i(46)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},468:function(t,e,i){var n=i(167);t.exports=v,v.simpleSieve=g,v.fermatTest=b;var r=i(469),o=new r(24),a=new(i(470)),s=new r(1),u=new r(2),h=new r(5),l=(new r(16),new r(8),new r(10)),c=new r(3),d=(new r(7),new r(11)),f=new r(4),p=(new r(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),r=0;r<e&&t[r]<=n&&i%t[r]!=0;r++);e!==r&&t[r]<=n||(t[e++]=i)}return p=t,t}function g(t){for(var e=m(),i=0;i<e.length;i++)if(0===t.modn(e[i]))return 0===t.cmpn(e[i]);return!0}function b(t){var e=r.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function v(t,e){if(t<16)return new r(2===e||5===e?[140,123]:[140,39]);var i,p;for(e=new r(e);;){for(i=new r(n(Math.ceil(t/8)));i.bitLength()>t;)i.ishrn(1);if(i.isEven()&&i.iadd(s),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(h))for(;i.mod(l).cmp(c);)i.iadd(f)}else for(;i.mod(o).cmp(d);)i.iadd(f);if(g(p=i.shrn(1))&&g(i)&&b(p)&&b(i)&&a.test(p)&&a.test(i))return i}}},469:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(227).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},470:function(t,e,i){var n=i(752),r=i(316);function o(t){this.rand=t||new r.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new n(this.rand.generate(i))}while(r.cmp(t)>=0);return r},o.prototype._randrange=function(t,e){var i=e.sub(t);return t.add(this._randbelow(i))},o.prototype.test=function(t,e,i){var r=t.bitLength(),o=n.mont(t),a=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var h=t.shrn(u),l=s.toRed(o);e>0;e--){var c=this._randrange(new n(2),s);i&&i(c);var d=c.toRed(o).redPow(h);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var f=1;f<u;f++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(l))break}if(f===u)return!1}}return!0},o.prototype.getDivisor=function(t,e){var i=t.bitLength(),r=n.mont(t),o=new n(1).toRed(r);e||(e=Math.max(1,i/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),h=a.toRed(r);e>0;e--){var l=this._randrange(new n(2),a),c=t.gcd(l);if(0!==c.cmpn(1))return c;var d=l.toRed(r).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var f=1;f<s;f++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(h))break}if(f===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},471:function(t,e,i){"use strict";(function(e,n){var r;t.exports=T,T.ReadableState=S;i(148).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=i(472),s=i(76).Buffer,u=e.Uint8Array||function(){};var h,l=i(230);h=l&&l.debuglog?l.debuglog("stream"):function(){};var c,d,f,p=i(757),m=i(473),g=i(474).getHighWaterMark,b=i(172).codes,v=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(173)(T,a);var M=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(t,e,n){r=r||i(174),t=t||{},"boolean"!=typeof n&&(n=e instanceof r),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=i(149).StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function T(t){if(r=r||i(174),!(this instanceof T))return new T(t);var e=this instanceof r;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,i,n,r){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(h("onEofChunk"),e.ended)return;if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,P(t)))}(t,a);else if(r||(o=function(t,e){var i;n=e,s.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(i=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return i}(a,e)),o)M(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?M(t,new _):C(t,a,e,!0);else if(a.ended)M(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!i?(e=a.decoder.write(e),a.objectMode||0!==e.length?C(t,a,e,!1):I(t,a)):C(t,a,e,!1)}else n||(a.reading=!1,I(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function C(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&O(t)),I(t,e)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),i=!0),A(this,t,e,!1,i)},T.prototype.unshift=function(t){return A(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){c||(c=i(149).StringDecoder);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var E=1073741824;function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(P,t))}function P(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,B(t)}function I(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(h("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function R(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){h("readable nexttick read 0"),t.read(0)}function L(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function z(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(H,e,t))}function H(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function F(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}T.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?z(this):O(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&z(this),null;var n,r=e.needReadable;return h("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&h("length less than watermark",r=!0),e.ended||e.reading?h("reading or ended",r=!1):r&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(i,e))),null===(n=t>0?N(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&z(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){M(this,new w("_read()"))},T.prototype.pipe=function(t,e){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:g;function s(e,n){h("onunpipe"),e===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",s),i.removeListener("end",u),i.removeListener("end",g),i.removeListener("data",d),c=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){h("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",s);var l=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,B(t))}}(i);t.on("drain",l);var c=!1;function d(e){h("ondata");var n=t.write(e);h("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==F(r.pipes,t))&&!c&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function f(e){h("onerror",e),g(),t.removeListener("error",f),0===o(t,"error")&&M(t,e)}function p(){t.removeListener("finish",m),g()}function m(){h("onfinish"),t.removeListener("close",p),g()}function g(){h("unpipe"),i.unpipe(t)}return i.on("data",d),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",f),t.once("close",p),t.once("finish",m),t.emit("pipe",i),r.flowing||(h("pipe resume"),i.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},T.prototype.on=function(t,e){var i=a.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?O(this):r.reading||n.nextTick(D,this))),i},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var i=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(R,this),i},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(R,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(L,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(h("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){(h("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(e.push(r)||(n=!0,t.pause()))})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<x.length;o++)t.on(x[o],this.emit.bind(this,x[o]));return this._read=function(e){h("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=i(758)),d(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=N,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,e){return void 0===f&&(f=i(759)),f(T,t,e)})}).call(this,i(88),i(70))},472:function(t,e,i){t.exports=i(148).EventEmitter},473:function(t,e,i){"use strict";(function(e){function i(t,e){r(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,t)):e.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(i,a,t)):e.nextTick(i,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(70))},474:function(t,e,i){"use strict";var n=i(172).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,r){var o=function(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}(e,r,i);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(r?i:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},475:function(t,e,i){"use strict";(function(e,n){function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,i){var n=t.entry;t.entry=null;for(;n;){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=T,T.WritableState=S;var a={deprecate:i(307)},s=i(472),u=i(76).Buffer,h=e.Uint8Array||function(){};var l,c=i(473),d=i(474).getHighWaterMark,f=i(172).codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,b=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,_=f.ERR_UNKNOWN_ENCODING,M=c.errorOrDestroy;function x(){}function S(t,e,a){o=o||i(174),t=t||{},"boolean"!=typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,r=i.sync,o=i.writecb;if("function"!=typeof o)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),e)!function(t,e,i,r,o){--e.pendingcb,i?(n.nextTick(o,r),n.nextTick(P,t,e),t._writableState.errorEmitted=!0,M(t,r)):(o(r),t._writableState.errorEmitted=!0,M(t,r),P(t,e))}(t,i,r,e,o);else{var a=k(i)||t.destroyed;a||i.corked||i.bufferProcessing||!i.bufferedRequest||E(t,i),r?n.nextTick(C,t,i,a,o):C(t,i,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function T(t){var e=this instanceof(o=o||i(174));if(!e&&!l.call(T,this))return new T(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(t,e,i,n,r,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function C(t,e,i,n){i||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),P(t,e)}function E(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=i;for(var s=0,u=!0;i;)o[s]=i,i.isBuf||(u=!1),i=i.next,s+=1;o.allBuffers=u,A(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,l=i.encoding,c=i.callback;if(A(t,e,!1,e.objectMode?1:h.length,h,l,c),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(i){e.pendingcb--,i&&M(t,i),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var i=k(e);if(i&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return i}i(173)(T,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(t){return!!l.call(this,t)||this===T&&(t&&t._writableState instanceof S)}})):l=function(t){return t instanceof this},T.prototype.pipe=function(){M(this,new b)},T.prototype.write=function(t,e,i){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,u.isBuffer(r)||r instanceof h);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(i=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof i&&(i=x),o.ending?function(t,e){var i=new w;M(t,i),n.nextTick(e,i)}(this,i):(s||function(t,e,i,r){var o;return null===i?o=new y:"string"==typeof i||e.objectMode||(o=new p("chunk",["string","Buffer"],i)),!o||(M(t,o),n.nextTick(r,o),!1)}(this,o,t,i))&&(o.pendingcb++,a=function(t,e,i,n,r,o){if(!i){var a=function(t,e,i){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,i));return e}(e,n,r);n!==a&&(i=!0,r="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var h=e.length<e.highWaterMark;h||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,s,n,r,o);return h}(this,o,s,t,e,i)),a},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},T.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,i){i(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,i){var r=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,i){e.ending=!0,P(t,e),i&&(e.finished?n.nextTick(i):t.once("finish",i));e.ended=!0,t.writable=!1}(this,r,i),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=c.destroy,T.prototype._undestroy=c.undestroy,T.prototype._destroy=function(t,e){e(t)}}).call(this,i(88),i(70))},476:function(t,e,i){"use strict";t.exports=l;var n=i(172).codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=i(174);function h(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new o);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,i){d(t,e,i)}))}function d(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}i(173)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,i){i(new r("_transform()"))},l.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},477:function(t,e,i){"use strict";var n=e;function r(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)i[n]=0|t[n];return i}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(n=0;n<t.length;n+=2)i.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var r=t.charCodeAt(n),o=r>>8,a=255&r;o?i.push(o,a):i.push(a)}return i},n.zero2=r,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t}},478:function(t,e,i){"use strict";var n=e;n.base=i(234),n.short=i(764),n.mont=i(765),n.edwards=i(766)},479:function(t,e,i){"use strict";var n=i(119).rotr32;function r(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function a(t,e,i){return t^e^i}e.ft_1=function(t,e,i,n){return 0===t?r(e,i,n):1===t||3===t?a(e,i,n):2===t?o(e,i,n):void 0},e.ch32=r,e.maj32=o,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},480:function(t,e,i){"use strict";var n=i(119),r=i(206),o=i(479),a=i(104),s=n.sum32,u=n.sum32_4,h=n.sum32_5,l=o.ch32,c=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=r.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(v,g),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n<i.length;n++)i[n]=u(m(i[n-2]),i[n-7],p(i[n-15]),i[n-16]);var r=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===i.length),n=0;n<i.length;n++){var M=h(_,f(v),l(v,y,w),this.k[n],i[n]),x=s(d(r),c(r,o,g));_=w,w=y,y=v,v=s(b,M),b=g,g=o,o=r,r=s(M,x)}this.h[0]=s(this.h[0],r),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},v.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},481:function(t,e,i){"use strict";var n=i(119),r=i(206),o=i(104),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,h=n.shr64_lo,l=n.sum64,c=n.sum64_hi,d=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=r.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function w(t,e,i,n,r){var o=t&i^~t&r;return o<0&&(o+=4294967296),o}function _(t,e,i,n,r,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function M(t,e,i,n,r){var o=t&i^t&r^i&r;return o<0&&(o+=4294967296),o}function x(t,e,i,n,r,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function S(t,e){var i=a(t,e,28)^a(e,t,2)^a(e,t,7);return i<0&&(i+=4294967296),i}function T(t,e){var i=s(t,e,28)^s(e,t,2)^s(e,t,7);return i<0&&(i+=4294967296),i}function A(t,e){var i=a(t,e,14)^a(t,e,18)^a(e,t,9);return i<0&&(i+=4294967296),i}function C(t,e){var i=s(t,e,14)^s(t,e,18)^s(e,t,9);return i<0&&(i+=4294967296),i}function E(t,e){var i=a(t,e,1)^a(t,e,8)^u(t,e,7);return i<0&&(i+=4294967296),i}function k(t,e){var i=s(t,e,1)^s(t,e,8)^h(t,e,7);return i<0&&(i+=4294967296),i}function O(t,e){var i=a(t,e,19)^a(e,t,29)^u(t,e,6);return i<0&&(i+=4294967296),i}function P(t,e){var i=s(t,e,19)^s(e,t,29)^h(t,e,6);return i<0&&(i+=4294967296),i}n.inherits(y,b),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var i=this.W,n=0;n<32;n++)i[n]=t[e+n];for(;n<i.length;n+=2){var r=O(i[n-4],i[n-3]),o=P(i[n-4],i[n-3]),a=i[n-14],s=i[n-13],u=E(i[n-30],i[n-29]),h=k(i[n-30],i[n-29]),l=i[n-32],c=i[n-31];i[n]=f(r,o,a,s,u,h,l,c),i[n+1]=p(r,o,a,s,u,h,l,c)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var i=this.W,n=this.h[0],r=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],h=this.h[5],f=this.h[6],p=this.h[7],b=this.h[8],v=this.h[9],y=this.h[10],E=this.h[11],k=this.h[12],O=this.h[13],P=this.h[14],I=this.h[15];o(this.k.length===i.length);for(var j=0;j<i.length;j+=2){var R=P,D=I,L=A(b,v),B=C(b,v),N=w(b,v,y,E,k),z=_(b,v,y,E,k,O),H=this.k[j],F=this.k[j+1],V=i[j],U=i[j+1],G=m(R,D,L,B,N,z,H,F,V,U),q=g(R,D,L,B,N,z,H,F,V,U);R=S(n,r),D=T(n,r),L=M(n,r,a,s,u),B=x(n,r,a,s,u,h);var W=c(R,D,L,B),Z=d(R,D,L,B);P=k,I=O,k=y,O=E,y=b,E=v,b=c(f,p,G,q),v=d(p,p,G,q),f=u,p=h,u=a,h=s,a=n,s=r,n=c(G,q,W,Z),r=d(G,q,W,Z)}l(this.h,0,n,r),l(this.h,2,a,s),l(this.h,4,u,h),l(this.h,6,f,p),l(this.h,8,b,v),l(this.h,10,y,E),l(this.h,12,k,O),l(this.h,14,P,I)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},482:function(t,e,i){"use strict";const n=e;n.bignum=i(483),n.define=i(782).define,n.base=i(785),n.constants=i(786),n.decoders=i(486),n.encoders=i(484)},483:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(236).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},484:function(t,e,i){"use strict";const n=e;n.der=i(485),n.pem=i(783)},485:function(t,e,i){"use strict";const n=i(46),r=i(325).Buffer,o=i(326),a=i(328);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function h(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(u,o),u.prototype._encodeComposite=function(t,e,i,n){const o=function(t,e,i,n){let r;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))r=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);r=t}if(r>=31)return n.error("Multi-octet tag encoding unsupported");e||(r|=32);return r|=a.tagClassByName[i||"universal"]<<6,r}(t,e,i,this.reporter);if(n.length<128){const t=r.alloc(2);return t[0]=o,t[1]=n.length,this._createEncoderBuffer([t,n])}let s=1;for(let t=n.length;t>=256;t>>=8)s++;const u=r.alloc(2+s);u[0]=o,u[1]=128|s;for(let t=1+s,e=n.length;e>0;t--,e>>=8)u[t]=255&e;return this._createEncoderBuffer([u,n])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},u.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let e=0;e<t.length;e++){let i=t[e];for(n++;i>=128;i>>=7)n++}const o=r.alloc(n);let a=o.length-1;for(let e=t.length-1;e>=0;e--){let i=t[e];for(o[a--]=127&i;(i>>=7)>0;)o[a--]=128|127&i}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(t,e){let i;const n=new Date(t);return"gentime"===e?i=[h(n.getUTCFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[h(n.getUTCFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const i=r.alloc(e);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let e=t;e>=256;e>>=8)i++;const n=new Array(i);for(let e=n.length-1;e>=0;e--)n[e]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(r.from(n))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,i){const n=this._baseState;let r;if(null===n.default)return!1;const o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),o.length!==n.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==n.defaultBuffer[r])return!1;return!0}},486:function(t,e,i){"use strict";const n=e;n.der=i(487),n.pem=i(784)},487:function(t,e,i){"use strict";const n=i(46),r=i(483),o=i(207).DecoderBuffer,a=i(326),s=i(328);function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.call(this,"der",t)}function l(t,e){let i=t.readUInt8(e);if(t.isError(i))return i;const n=s.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let n=i;for(i=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;i<<=7,i|=127&n}}else i&=31;return{cls:n,primitive:r,tag:i,tagStr:s.tag[i]}}function c(t,e,i){let n=t.readUInt8(i);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const r=127&n;if(r>4)return t.error("length octect is too long");n=0;for(let e=0;e<r;e++){n<<=8;const e=t.readUInt8(i);if(t.isError(e))return e;n|=e}return n}t.exports=u,u.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},n(h,a),h.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;const n=t.save(),r=l(t,'Failed to peek tag: "'+e+'"');return t.isError(r)?r:(t.restore(n),r.tag===e||r.tagStr===e||r.tagStr+"of"===e||i)},h.prototype._decodeTag=function(t,e,i){const n=l(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let r=c(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(r))return r;if(!i&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==r)return t.skip(r,'Failed to match body of: "'+e+'"');const o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(r=t.offset-o.offset,t.restore(o),t.skip(r,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){for(;;){const i=l(t,e);if(t.isError(i))return i;const n=c(t,i.primitive,e);if(t.isError(n))return n;let r;if(r=i.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},h.prototype._decodeList=function(t,e,i,n){const r=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const o=i.decode(t,"der",n);if(t.isError(o)&&e)break;r.push(o)}return r},h.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let i="";for(let t=0;t<e.length/2;t++)i+=String.fromCharCode(e.readUInt16BE(2*t));return i}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,i){let n;const r=[];let o=0,a=0;for(;!t.isEmpty();)a=t.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(r.push(o),o=0);128&a&&r.push(o);const s=r[0]/40|0,u=r[0]%40;if(n=i?r:[s,u].concat(r.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},h.prototype._decodeTime=function(t,e){const i=t.raw().toString();let n,r,o,a,s,u;if("gentime"===e)n=0|i.slice(0,4),r=0|i.slice(4,6),o=0|i.slice(6,8),a=0|i.slice(8,10),s=0|i.slice(10,12),u=0|i.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),o=0|i.slice(4,6),a=0|i.slice(6,8),s=0|i.slice(8,10),u=0|i.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,o,a,s,u,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){const i=t.raw();let n=new r(i);return e&&(n=e[n.toString(10)]||n),n},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},488:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},489:function(t,e,i){var n=i(203),r=i(40).Buffer;function o(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var i,a=r.alloc(0),s=0;a.length<e;)i=o(s++),a=r.concat([a,n("sha1").update(t).update(i).digest()]);return a.slice(0,e)}},49:function(t,e,i){"use strict";i.d(e,"d",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return a}));const n=(t,e=2)=>`000${t}`.slice(-1*e),r=t=>!0===t?1:0;function o(t,e){let i;return function(){clearTimeout(i),i=setTimeout((()=>t.apply(this,arguments)),e)}}const a=t=>t instanceof Array?t:[t]},490:function(t,e){t.exports=function(t,e){for(var i=t.length,n=-1;++n<i;)t[n]^=e[n];return t}},491:function(t,e,i){var n=i(329),r=i(40).Buffer;t.exports=function(t,e){return r.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},497:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},504:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ICalCalendarMethod=void 0;const r=i(175),o=n(i(505)),a=i(510),s=i(510);var u;!function(t){t.PUBLISH="PUBLISH",t.REQUEST="REQUEST",t.REPLY="REPLY",t.ADD="ADD",t.CANCEL="CANCEL",t.REFRESH="REFRESH",t.COUNTER="COUNTER",t.DECLINECOUNTER="DECLINECOUNTER"}(u=e.ICalCalendarMethod||(e.ICalCalendarMethod={}));e.default=class{constructor(t={}){this.data={prodId:"//sebbo.net//ical-generator//EN",method:null,name:null,description:null,timezone:null,url:null,scale:null,ttl:null,events:[],x:[]},void 0!==t.prodId&&this.prodId(t.prodId),void 0!==t.method&&this.method(t.method),void 0!==t.name&&this.name(t.name),void 0!==t.description&&this.description(t.description),void 0!==t.timezone&&this.timezone(t.timezone),void 0!==t.url&&this.url(t.url),void 0!==t.scale&&this.scale(t.scale),void 0!==t.ttl&&this.ttl(t.ttl),void 0!==t.events&&this.events(t.events),void 0!==t.x&&this.x(t.x)}prodId(t){if(!t)return this.data.prodId;if("string"==typeof t&&/^\/\/(.+)\/\/(.+)\/\/([A-Z]{1,4})$/.test(t))return this.data.prodId=t,this;if("string"==typeof t)throw new Error("`prodId` isn't formated correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/classes/icalcalendar.html#prodid");if("object"!=typeof t)throw new Error("`prodid` needs to be a valid formed string or an object!");if(!t.company)throw new Error("`prodid.company` is a mandatory item!");if(!t.product)throw new Error("`prodid.product` is a mandatory item!");const e=(t.language||"EN").toUpperCase();return this.data.prodId="//"+t.company+"//"+t.product+"//"+e,this}method(t){return void 0===t?this.data.method:t?(this.data.method=r.checkEnum(u,t),this):(this.data.method=null,this)}name(t){return void 0===t?this.data.name:(this.data.name=t?String(t):null,this)}description(t){return void 0===t?this.data.description:(this.data.description=t?String(t):null,this)}timezone(t){var e;return void 0===t?(null===(e=this.data.timezone)||void 0===e?void 0:e.name)||null:(this.data.timezone="string"==typeof t?{name:t}:null===t?null:t,this)}url(t){return void 0===t?this.data.url:(this.data.url=t||null,this)}scale(t){return void 0===t?this.data.scale:(this.data.scale=null===t?null:t.toUpperCase(),this)}ttl(t){return void 0===t?this.data.ttl:(r.isMomentDuration(t)?this.data.ttl=t.asSeconds():this.data.ttl=t&&t>0?t:null,this)}createEvent(t){const e=t instanceof o.default?t:new o.default(t,this);return this.data.events.push(e),e}events(t){return t?(t.forEach((t=>this.createEvent(t))),this):this.data.events}clear(){return this.data.events=[],this}save(t,e){return e?(a.writeFile(t,this.toString(),e),this):s.promises.writeFile(t,this.toString())}saveSync(t){return a.writeFileSync(t,this.toString()),this}serve(t,e="calendar.ics"){return t.writeHead(200,{"Content-Type":"text/calendar; charset=utf-8","Content-Disposition":`attachment; filename="${e}"`}),t.end(this.toString()),this}toBlob(){return new Blob([this.toString()],{type:"text/calendar"})}toURL(){return URL.createObjectURL(this.toBlob())}x(t,e){if(void 0===t)return r.addOrGetCustomAttributes(this.data);if("string"==typeof t&&"string"==typeof e)r.addOrGetCustomAttributes(this.data,t,e);else{if("object"!=typeof t)throw new Error("Either key or value is not a string!");r.addOrGetCustomAttributes(this.data,t)}return this}toJSON(){return Object.assign({},this.data,{timezone:this.timezone(),events:this.data.events.map((t=>t.toJSON())),x:this.x()})}length(){return this.data.events.length}toString(){var t,e;let i="";if(i="BEGIN:VCALENDAR\r\nVERSION:2.0\r\n",i+="PRODID:-"+this.data.prodId+"\r\n",this.data.url&&(i+="URL:"+this.data.url+"\r\n"),this.data.scale&&(i+="CALSCALE:"+this.data.scale+"\r\n"),this.data.method&&(i+="METHOD:"+this.data.method+"\r\n"),this.data.name&&(i+="NAME:"+this.data.name+"\r\n",i+="X-WR-CALNAME:"+this.data.name+"\r\n"),this.data.description&&(i+="X-WR-CALDESC:"+this.data.description+"\r\n"),null===(t=this.data.timezone)||void 0===t?void 0:t.generator){[...new Set([this.timezone(),...this.data.events.map((t=>t.timezone()))])].filter((t=>null!==t&&!t.startsWith("/"))).forEach((t=>{var e;if(!(null===(e=this.data.timezone)||void 0===e?void 0:e.generator))return;const n=this.data.timezone.generator(t);n&&(i+=n.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n").trim()+"\r\n")}))}return(null===(e=this.data.timezone)||void 0===e?void 0:e.name)&&(i+="TIMEZONE-ID:"+this.data.timezone.name+"\r\n",i+="X-WR-TIMEZONE:"+this.data.timezone.name+"\r\n"),this.data.ttl&&(i+="REFRESH-INTERVAL;VALUE=DURATION:"+r.toDurationString(this.data.ttl)+"\r\n",i+="X-PUBLISHED-TTL:"+r.toDurationString(this.data.ttl)+"\r\n"),this.data.events.forEach((t=>i+=t.toString())),i+=r.generateCustomAttributes(this.data),i+="END:VCALENDAR",r.foldLines(i)}}},505:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ICalEventTransparency=e.ICalEventBusyStatus=e.ICalEventStatus=void 0;const r=n(i(955)),o=i(175),a=n(i(506)),s=n(i(507)),u=n(i(508)),h=i(509);var l,c,d;!function(t){t.CONFIRMED="CONFIRMED",t.TENTATIVE="TENTATIVE",t.CANCELLED="CANCELLED"}(l=e.ICalEventStatus||(e.ICalEventStatus={})),function(t){t.FREE="FREE",t.TENTATIVE="TENTATIVE",t.BUSY="BUSY",t.OOF="OOF"}(c=e.ICalEventBusyStatus||(e.ICalEventBusyStatus={})),function(t){t.TRANSPARENT="TRANSPARENT",t.OPAQUE="OPAQUE"}(d=e.ICalEventTransparency||(e.ICalEventTransparency={}));e.default=class{constructor(t,e){if(this.data={id:r.default(),sequence:0,start:null,end:null,recurrenceId:null,timezone:null,stamp:new Date,allDay:!1,floating:!1,repeating:null,summary:"",location:null,description:null,organizer:null,attendees:[],alarms:[],categories:[],status:null,busystatus:null,priority:null,url:null,transparency:null,created:null,lastModified:null,x:[]},this.calendar=e,!e)throw new Error("`calendar` option required!");t.id&&this.id(t.id),void 0!==t.sequence&&this.sequence(t.sequence),t.start&&this.start(t.start),void 0!==t.end&&this.end(t.end),void 0!==t.recurrenceId&&this.recurrenceId(t.recurrenceId),void 0!==t.timezone&&this.timezone(t.timezone),void 0!==t.stamp&&this.stamp(t.stamp),void 0!==t.allDay&&this.allDay(t.allDay),void 0!==t.floating&&this.floating(t.floating),void 0!==t.repeating&&this.repeating(t.repeating),void 0!==t.summary&&this.summary(t.summary),void 0!==t.location&&this.location(t.location),void 0!==t.description&&this.description(t.description),void 0!==t.organizer&&this.organizer(t.organizer),void 0!==t.attendees&&this.attendees(t.attendees),void 0!==t.alarms&&this.alarms(t.alarms),void 0!==t.categories&&this.categories(t.categories),void 0!==t.status&&this.status(t.status),void 0!==t.busystatus&&this.busystatus(t.busystatus),void 0!==t.priority&&this.priority(t.priority),void 0!==t.url&&this.url(t.url),void 0!==t.transparency&&this.transparency(t.transparency),void 0!==t.created&&this.created(t.created),void 0!==t.lastModified&&this.lastModified(t.lastModified),void 0!==t.x&&this.x(t.x)}id(t){return void 0===t?this.data.id:(this.data.id=String(t),this)}uid(t){return void 0===t?this.id():this.id(t)}sequence(t){if(void 0===t)return this.data.sequence;const e=parseInt(String(t),10);if(isNaN(e))throw new Error("`sequence` must be a number!");return this.data.sequence=t,this}start(t){if(void 0===t)return this.data.start;if(this.data.start=o.checkDate(t,"start"),this.data.start&&this.data.end&&o.toDate(this.data.start).getTime()>o.toDate(this.data.end).getTime()){const t=this.data.start;this.data.start=this.data.end,this.data.end=t}return this}end(t){if(void 0===t)return this.data.end;if(null===t)return this.data.end=null,this;if(this.data.end=o.checkDate(t,"end"),this.data.start&&this.data.end&&o.toDate(this.data.start).getTime()>o.toDate(this.data.end).getTime()){const t=this.data.start;this.data.start=this.data.end,this.data.end=t}return this}recurrenceId(t){return void 0===t?this.data.recurrenceId:null===t?(this.data.recurrenceId=null,this):(this.data.recurrenceId=o.checkDate(t,"recurrenceId"),this)}timezone(t){return void 0===t&&null!==this.data.timezone?this.data.timezone:void 0===t?this.calendar.timezone():(this.data.timezone=t?t.toString():null,this.data.timezone&&(this.data.floating=!1),this)}stamp(t){return void 0===t?this.data.stamp:(this.data.stamp=o.checkDate(t,"stamp"),this)}timestamp(t){return void 0===t?this.stamp():this.stamp(t)}allDay(t){return void 0===t?this.data.allDay:(this.data.allDay=Boolean(t),this)}floating(t){return void 0===t?this.data.floating:(this.data.floating=Boolean(t),this.data.floating&&(this.data.timezone=null),this)}repeating(t){if(void 0===t)return this.data.repeating;if(!t)return this.data.repeating=null,this;if(o.isRRule(t)||"string"==typeof t)return this.data.repeating=t,this;if(this.data.repeating={freq:o.checkEnum(h.ICalEventRepeatingFreq,t.freq)},t.count){if(!isFinite(t.count))throw new Error("`repeating.count` must be a finite number!");this.data.repeating.count=t.count}if(t.interval){if(!isFinite(t.interval))throw new Error("`repeating.interval` must be a finite number!");this.data.repeating.interval=t.interval}if(void 0!==t.until&&(this.data.repeating.until=o.checkDate(t.until,"repeating.until")),t.byDay){const e=Array.isArray(t.byDay)?t.byDay:[t.byDay];this.data.repeating.byDay=e.map((t=>o.checkEnum(h.ICalWeekday,t)))}if(t.byMonth){const e=Array.isArray(t.byMonth)?t.byMonth:[t.byMonth];this.data.repeating.byMonth=e.map((t=>{if("number"!=typeof t||t<1||t>12)throw new Error("`repeating.byMonth` contains invalid value `"+t+"`!");return t}))}if(t.byMonthDay){const e=Array.isArray(t.byMonthDay)?t.byMonthDay:[t.byMonthDay];this.data.repeating.byMonthDay=e.map((t=>{if("number"!=typeof t||t<1||t>31)throw new Error("`repeating.byMonthDay` contains invalid value `"+t+"`!");return t}))}if(t.bySetPos){if(!this.data.repeating.byDay)throw"`repeating.bySetPos` must be used along with `repeating.byDay`!";if("number"!=typeof t.bySetPos||t.bySetPos<-1||t.bySetPos>4)throw"`repeating.bySetPos` contains invalid value `"+t.bySetPos+"`!";this.data.repeating.byDay.splice(1),this.data.repeating.bySetPos=t.bySetPos}if(t.exclude){const e=Array.isArray(t.exclude)?t.exclude:[t.exclude];this.data.repeating.exclude=e.map(((t,e)=>o.checkDate(t,`repeating.exclude[${e}]`)))}return t.startOfWeek&&(this.data.repeating.startOfWeek=o.checkEnum(h.ICalWeekday,t.startOfWeek)),this}summary(t){return void 0===t?this.data.summary:(this.data.summary=t?String(t):"",this)}location(t){if(void 0===t)return this.data.location;if("string"==typeof t)return this.data.location={title:t},this;if(t&&!t.title||(null==t?void 0:t.geo)&&(!isFinite(t.geo.lat)||!isFinite(t.geo.lon)))throw new Error("`location` isn't formatted correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/classes/icalevent.html#location");return this.data.location=t||null,this}description(t){return void 0===t?this.data.description:null===t?(this.data.description=null,this):(this.data.description="string"==typeof t?{plain:t}:t,this)}organizer(t){return void 0===t?this.data.organizer:null===t?(this.data.organizer=null,this):(this.data.organizer=o.checkNameAndMail("organizer",t),this)}createAttendee(t={}){if(t instanceof a.default)return this.data.attendees.push(t),t;"string"==typeof t&&(t=o.checkNameAndMail("data",t));const e=new a.default(t,this);return this.data.attendees.push(e),e}attendees(t){return t?(t.forEach((t=>this.createAttendee(t))),this):this.data.attendees}createAlarm(t={}){const e=t instanceof s.default?t:new s.default(t,this);return this.data.alarms.push(e),e}alarms(t){return t?(t.forEach((t=>this.createAlarm(t))),this):this.data.alarms}createCategory(t={}){const e=t instanceof u.default?t:new u.default(t);return this.data.categories.push(e),e}categories(t){return t?(t.forEach((t=>this.createCategory(t))),this):this.data.categories}status(t){return void 0===t?this.data.status:null===t?(this.data.status=null,this):(this.data.status=o.checkEnum(l,t),this)}busystatus(t){return void 0===t?this.data.busystatus:null===t?(this.data.busystatus=null,this):(this.data.busystatus=o.checkEnum(c,t),this)}priority(t){if(void 0===t)return this.data.priority;if(null===t)return this.data.priority=null,this;if(t<0||t>9)throw new Error("`priority` is invalid, musst be 0 ≤ priority ≤ 9.");return this.data.priority=Math.round(t),this}url(t){return void 0===t?this.data.url:(this.data.url=t?String(t):null,this)}transparency(t){return void 0===t?this.data.transparency:t?(this.data.transparency=o.checkEnum(d,t),this):(this.data.transparency=null,this)}created(t){return void 0===t?this.data.created:null===t?(this.data.created=null,this):(this.data.created=o.checkDate(t,"created"),this)}lastModified(t){return void 0===t?this.data.lastModified:null===t?(this.data.lastModified=null,this):(this.data.lastModified=o.checkDate(t,"lastModified"),this)}x(t,e){return void 0===t?o.addOrGetCustomAttributes(this.data):("string"==typeof t&&"string"==typeof e&&o.addOrGetCustomAttributes(this.data,t,e),"object"==typeof t&&o.addOrGetCustomAttributes(this.data,t),this)}toJSON(){var t;let e=null;return o.isRRule(this.data.repeating)||"string"==typeof this.data.repeating?e=this.data.repeating.toString():this.data.repeating&&(e=Object.assign({},this.data.repeating,{until:o.toJSON(this.data.repeating.until),exclude:null===(t=this.data.repeating.exclude)||void 0===t?void 0:t.map((t=>o.toJSON(t)))})),Object.assign({},this.data,{start:o.toJSON(this.data.start)||null,end:o.toJSON(this.data.end)||null,recurrenceId:o.toJSON(this.data.recurrenceId)||null,stamp:o.toJSON(this.data.stamp)||null,created:o.toJSON(this.data.created)||null,lastModified:o.toJSON(this.data.lastModified)||null,repeating:e,x:this.x()})}toString(){var t,e,i,n,r;let a="";if(!this.data.start)throw new Error("No value for `start` in ICalEvent #"+this.data.id+" given!");return a+="BEGIN:VEVENT\r\n",a+="UID:"+this.data.id+"\r\n",a+="SEQUENCE:"+this.data.sequence+"\r\n",a+="DTSTAMP:"+o.formatDate(this.calendar.timezone(),this.data.stamp)+"\r\n",this.data.allDay?(a+="DTSTART;VALUE=DATE:"+o.formatDate(this.calendar.timezone(),this.data.start,!0)+"\r\n",this.data.end&&(a+="DTEND;VALUE=DATE:"+o.formatDate(this.calendar.timezone(),this.data.end,!0)+"\r\n"),a+="X-MICROSOFT-CDO-ALLDAYEVENT:TRUE\r\n",a+="X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT:TRUE\r\n"):(a+=o.formatDateTZ(this.timezone(),"DTSTART",this.data.start,this.data)+"\r\n",this.data.end&&(a+=o.formatDateTZ(this.timezone(),"DTEND",this.data.end,this.data)+"\r\n")),o.isRRule(this.data.repeating)||"string"==typeof this.data.repeating?a+=this.data.repeating.toString().replace(/\r\n/g,"\n").split("\n").filter((t=>t&&!t.startsWith("DTSTART:"))).join("\r\n")+"\r\n":this.data.repeating&&(a+="RRULE:FREQ="+this.data.repeating.freq,this.data.repeating.count&&(a+=";COUNT="+this.data.repeating.count),this.data.repeating.interval&&(a+=";INTERVAL="+this.data.repeating.interval),this.data.repeating.until&&(a+=";UNTIL="+o.formatDate(this.calendar.timezone(),this.data.repeating.until)),this.data.repeating.byDay&&(a+=";BYDAY="+this.data.repeating.byDay.join(",")),this.data.repeating.byMonth&&(a+=";BYMONTH="+this.data.repeating.byMonth.join(",")),this.data.repeating.byMonthDay&&(a+=";BYMONTHDAY="+this.data.repeating.byMonthDay.join(",")),this.data.repeating.bySetPos&&(a+=";BYSETPOS="+this.data.repeating.bySetPos),this.data.repeating.startOfWeek&&(a+=";WKST="+this.data.repeating.startOfWeek),a+="\r\n",this.data.repeating.exclude&&(this.data.allDay?a+="EXDATE;VALUE=DATE:"+this.data.repeating.exclude.map((t=>o.formatDate(this.calendar.timezone(),t,!0))).join(",")+"\r\n":(a+="EXDATE",this.timezone()?a+=";TZID="+this.timezone()+":"+this.data.repeating.exclude.map((t=>o.formatDate(this.timezone(),t,!1,!0))).join(",")+"\r\n":a+=":"+this.data.repeating.exclude.map((t=>o.formatDate(this.timezone(),t))).join(",")+"\r\n"))),this.data.recurrenceId&&(a+=o.formatDateTZ(this.timezone(),"RECURRENCE-ID",this.data.recurrenceId,this.data)+"\r\n"),a+="SUMMARY:"+o.escape(this.data.summary)+"\r\n",this.data.transparency&&(a+="TRANSP:"+o.escape(this.data.transparency)+"\r\n"),(null===(t=this.data.location)||void 0===t?void 0:t.title)&&(this.data.location.radius&&this.data.location.geo?(a+="LOCATION:"+o.escape(this.data.location.title+(this.data.location.address?"\n"+this.data.location.address:""))+"\r\n",a+="X-APPLE-STRUCTURED-LOCATION;VALUE=URI;"+(this.data.location.address?"X-ADDRESS="+o.escape(this.data.location.address)+";":"")+"X-APPLE-RADIUS="+o.escape(this.data.location.radius)+";X-TITLE="+o.escape(this.data.location.title)+":geo:"+o.escape(null===(e=this.data.location.geo)||void 0===e?void 0:e.lat)+","+o.escape(null===(i=this.data.location.geo)||void 0===i?void 0:i.lon)+"\r\n"):a+="LOCATION:"+o.escape(this.data.location.title)+"\r\n",this.data.location.geo&&(a+="GEO:"+o.escape(null===(n=this.data.location.geo)||void 0===n?void 0:n.lat)+";"+o.escape(null===(r=this.data.location.geo)||void 0===r?void 0:r.lon)+"\r\n")),this.data.description&&(a+="DESCRIPTION:"+o.escape(this.data.description.plain)+"\r\n",this.data.description.html&&(a+="X-ALT-DESC;FMTTYPE=text/html:"+o.escape(this.data.description.html)+"\r\n")),this.data.organizer&&(a+='ORGANIZER;CN="'+o.escape(this.data.organizer.name)+'"',this.data.organizer.email&&this.data.organizer.mailto&&(a+=";EMAIL="+o.escape(this.data.organizer.email)),this.data.organizer.email&&(a+=":mailto:"+o.escape(this.data.organizer.mailto||this.data.organizer.email)),a+="\r\n"),this.data.attendees.forEach((function(t){a+=t.toString()})),this.data.alarms.forEach((function(t){a+=t.toString()})),this.data.categories.length>0&&(a+="CATEGORIES:"+this.data.categories.map((function(t){return t.toString()})).join()+"\r\n"),this.data.url&&(a+="URL;VALUE=URI:"+o.escape(this.data.url)+"\r\n"),this.data.status&&(a+="STATUS:"+this.data.status.toUpperCase()+"\r\n"),this.data.busystatus&&(a+="X-MICROSOFT-CDO-BUSYSTATUS:"+this.data.busystatus.toUpperCase()+"\r\n"),null!==this.data.priority&&(a+="PRIORITY:"+this.data.priority+"\r\n"),a+=o.generateCustomAttributes(this.data),this.data.created&&(a+="CREATED:"+o.formatDate(this.calendar.timezone(),this.data.created)+"\r\n"),this.data.lastModified&&(a+="LAST-MODIFIED:"+o.formatDate(this.calendar.timezone(),this.data.lastModified)+"\r\n"),a+="END:VEVENT\r\n",a}}},506:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICalAttendeeType=e.ICalAttendeeStatus=e.ICalAttendeeRole=void 0;const n=i(175);var r,o,a;!function(t){t.CHAIR="CHAIR",t.REQ="REQ-PARTICIPANT",t.OPT="OPT-PARTICIPANT",t.NON="NON-PARTICIPANT"}(r=e.ICalAttendeeRole||(e.ICalAttendeeRole={})),function(t){t.ACCEPTED="ACCEPTED",t.TENTATIVE="TENTATIVE",t.DECLINED="DECLINED",t.DELEGATED="DELEGATED",t.NEEDSACTION="NEEDS-ACTION"}(o=e.ICalAttendeeStatus||(e.ICalAttendeeStatus={})),function(t){t.INDIVIDUAL="INDIVIDUAL",t.GROUP="GROUP",t.RESOURCE="RESOURCE",t.ROOM="ROOM",t.UNKNOWN="UNKNOWN"}(a=e.ICalAttendeeType||(e.ICalAttendeeType={}));class s{constructor(t,e){if(this.data={name:null,email:null,mailto:null,status:null,role:r.REQ,rsvp:null,type:null,delegatedTo:null,delegatedFrom:null,x:[]},this.event=e,!this.event)throw new Error("`event` option required!");void 0!==t.name&&this.name(t.name),void 0!==t.email&&this.email(t.email),void 0!==t.mailto&&this.mailto(t.mailto),void 0!==t.status&&this.status(t.status),void 0!==t.role&&this.role(t.role),void 0!==t.rsvp&&this.rsvp(t.rsvp),void 0!==t.type&&this.type(t.type),void 0!==t.delegatedTo&&this.delegatedTo(t.delegatedTo),void 0!==t.delegatedFrom&&this.delegatedFrom(t.delegatedFrom),t.delegatesTo&&this.delegatesTo(t.delegatesTo),t.delegatesFrom&&this.delegatesFrom(t.delegatesFrom),void 0!==t.x&&this.x(t.x)}name(t){return void 0===t?this.data.name:(this.data.name=t||null,this)}email(t){return t?(this.data.email=t,this):this.data.email}mailto(t){return void 0===t?this.data.mailto:(this.data.mailto=t||null,this)}role(t){return void 0===t?this.data.role:(this.data.role=n.checkEnum(r,t),this)}rsvp(t){return void 0===t?this.data.rsvp:null===t?(this.data.rsvp=null,this):(this.data.rsvp=Boolean(t),this)}status(t){return void 0===t?this.data.status:t?(this.data.status=n.checkEnum(o,t),this):(this.data.status=null,this)}type(t){return void 0===t?this.data.type:t?(this.data.type=n.checkEnum(a,t),this):(this.data.type=null,this)}delegatedTo(t){return void 0===t?this.data.delegatedTo:t?(this.data.delegatedTo="string"==typeof t?new s(n.checkNameAndMail("delegatedTo",t),this.event):t instanceof s?t:new s(t,this.event),this.data.status=o.DELEGATED,this):(this.data.delegatedTo=null,this.data.status===o.DELEGATED&&(this.data.status=null),this)}delegatedFrom(t){return void 0===t?this.data.delegatedFrom:(this.data.delegatedFrom=t?"string"==typeof t?new s(n.checkNameAndMail("delegatedFrom",t),this.event):t instanceof s?t:new s(t,this.event):null,this)}delegatesTo(t){const e=t instanceof s?t:this.event.createAttendee(t);return this.delegatedTo(e),e.delegatedFrom(this),e}delegatesFrom(t){const e=t instanceof s?t:this.event.createAttendee(t);return this.delegatedFrom(e),e.delegatedTo(this),e}x(t,e){if(void 0===t)return n.addOrGetCustomAttributes(this.data);if("string"==typeof t&&"string"==typeof e)n.addOrGetCustomAttributes(this.data,t,e);else{if("object"!=typeof t)throw new Error("Either key or value is not a string!");n.addOrGetCustomAttributes(this.data,t)}return this}toJSON(){var t,e;return Object.assign({},this.data,{delegatedTo:(null===(t=this.data.delegatedTo)||void 0===t?void 0:t.email())||null,delegatedFrom:(null===(e=this.data.delegatedFrom)||void 0===e?void 0:e.email())||null,x:this.x()})}toString(){let t="ATTENDEE";if(!this.data.email)throw new Error("No value for `email` in ICalAttendee given!");return t+=";ROLE="+this.data.role,this.data.type&&(t+=";CUTYPE="+this.data.type),this.data.status&&(t+=";PARTSTAT="+this.data.status),this.data.rsvp&&(t+=";RSVP="+this.data.rsvp.toString().toUpperCase()),this.data.delegatedTo&&(t+=';DELEGATED-TO="'+this.data.delegatedTo.email()+'"'),this.data.delegatedFrom&&(t+=';DELEGATED-FROM="'+this.data.delegatedFrom.email()+'"'),this.data.name&&(t+=';CN="'+n.escape(this.data.name)+'"'),this.data.email&&this.data.mailto&&(t+=";EMAIL="+n.escape(this.data.email)),this.data.x.length&&(t+=";"+this.data.x.map((([t,e])=>t.toUpperCase()+"="+n.escape(e))).join(";")),t+=":MAILTO:"+n.escape(this.data.mailto||this.data.email)+"\r\n",t}}e.default=s},507:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICalAlarmType=void 0;const n=i(175);var r;!function(t){t.display="display",t.audio="audio"}(r=e.ICalAlarmType||(e.ICalAlarmType={}));e.default=class{constructor(t,e){if(this.data={type:null,trigger:null,repeat:null,interval:null,attach:null,description:null,x:[]},this.event=e,!e)throw new Error("`event` option required!");void 0!==t.type&&this.type(t.type),void 0!==t.trigger&&this.trigger(t.trigger),void 0!==t.triggerBefore&&this.triggerBefore(t.triggerBefore),void 0!==t.triggerAfter&&this.triggerAfter(t.triggerAfter),void 0!==t.repeat&&this.repeat(t.repeat),void 0!==t.interval&&this.interval(t.interval),void 0!==t.attach&&this.attach(t.attach),void 0!==t.description&&this.description(t.description),void 0!==t.x&&this.x(t.x)}type(t){if(void 0===t)return this.data.type;if(!t)return this.data.type=null,this;if(!Object.keys(r).includes(t))throw new Error("`type` is not correct, must be either `display` or `audio`!");return this.data.type=t,this}trigger(t){if(void 0===t&&"number"==typeof this.data.trigger)return-1*this.data.trigger;if(void 0===t&&this.data.trigger)return this.data.trigger;if(void 0===t)return null;if(t)if("number"==typeof t&&isFinite(t))this.data.trigger=-1*t;else{if("number"==typeof t)throw new Error("`trigger` is not correct, must be a finite number or a supported date!");this.data.trigger=n.checkDate(t,"trigger")}else this.data.trigger=null;return this}triggerAfter(t){return void 0===t?this.data.trigger:this.trigger("number"==typeof t?-1*t:t)}triggerBefore(t){return void 0===t?this.trigger():this.trigger(t)}repeat(t){if(void 0===t)return this.data.repeat;if(!t)return this.data.repeat=null,this;if("number"!=typeof t||!isFinite(t))throw new Error("`repeat` is not correct, must be numeric!");return this.data.repeat=t,this}interval(t){if(void 0===t)return this.data.interval||null;if(!t)return this.data.interval=null,this;if("number"!=typeof t||!isFinite(t))throw new Error("`interval` is not correct, must be numeric!");return this.data.interval=t,this}attach(t){if(void 0===t)return this.data.attach;if(!t)return this.data.attach=null,this;let e=null;if("string"==typeof t)e={uri:t,mime:null};else{if("object"!=typeof t)throw new Error("`attachment` needs to be a valid formed string or an object. See https://sebbo2002.github.io/ical-generator/develop/reference/classes/icalalarm.html#attach");e={uri:t.uri,mime:t.mime||null}}if(!e.uri)throw new Error("`attach.uri` is empty!");return this.data.attach={uri:e.uri,mime:e.mime},this}description(t){return void 0===t?this.data.description:t?(this.data.description=t,this):(this.data.description=null,this)}x(t,e){if(void 0===t)return n.addOrGetCustomAttributes(this.data);if("string"==typeof t&&"string"==typeof e)n.addOrGetCustomAttributes(this.data,t,e);else{if("object"!=typeof t)throw new Error("Either key or value is not a string!");n.addOrGetCustomAttributes(this.data,t)}return this}toJSON(){const t=this.trigger();return Object.assign({},this.data,{trigger:"number"==typeof t?t:n.toJSON(t),x:this.x()})}toString(){let t="BEGIN:VALARM\r\n";if(!this.data.type)throw new Error("No value for `type` in ICalAlarm given!");if(!this.data.trigger)throw new Error("No value for `trigger` in ICalAlarm given!");if(t+="ACTION:"+this.data.type.toUpperCase()+"\r\n","number"==typeof this.data.trigger&&this.data.trigger>0?t+="TRIGGER;RELATED=END:"+n.toDurationString(this.data.trigger)+"\r\n":"number"==typeof this.data.trigger?t+="TRIGGER:"+n.toDurationString(this.data.trigger)+"\r\n":t+="TRIGGER;VALUE=DATE-TIME:"+n.formatDate(this.event.timezone(),this.data.trigger)+"\r\n",this.data.repeat&&!this.data.interval)throw new Error("No value for `interval` in ICalAlarm given, but required for `repeat`!");if(this.data.repeat&&(t+="REPEAT:"+this.data.repeat+"\r\n"),this.data.interval&&!this.data.repeat)throw new Error("No value for `repeat` in ICalAlarm given, but required for `interval`!");return this.data.interval&&(t+="DURATION:"+n.toDurationString(this.data.interval)+"\r\n"),"audio"===this.data.type&&this.data.attach&&this.data.attach.mime?t+="ATTACH;FMTTYPE="+this.data.attach.mime+":"+this.data.attach.uri+"\r\n":"audio"===this.data.type&&this.data.attach?t+="ATTACH;VALUE=URI:"+this.data.attach.uri+"\r\n":"audio"===this.data.type&&(t+="ATTACH;VALUE=URI:Basso\r\n"),"display"===this.data.type&&this.data.description?t+="DESCRIPTION:"+n.escape(this.data.description)+"\r\n":"display"===this.data.type&&(t+="DESCRIPTION:"+n.escape(this.event.summary())+"\r\n"),t+=n.generateCustomAttributes(this.data),t+="END:VALARM\r\n",t}}},508:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=i(175);e.default=class{constructor(t){this.data={name:null},void 0!==t.name&&this.name(t.name)}name(t){return void 0===t?this.data.name:(this.data.name=t||null,this)}toJSON(){return Object.assign({},this.data)}toString(){if(!this.data.name)throw new Error("No value for `name` in ICalCategory given!");return n.escape(this.data.name)}}},509:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICalWeekday=e.ICalEventRepeatingFreq=void 0,function(t){t.SECONDLY="SECONDLY",t.MINUTELY="MINUTELY",t.HOURLY="HOURLY",t.DAILY="DAILY",t.WEEKLY="WEEKLY",t.MONTHLY="MONTHLY",t.YEARLY="YEARLY"}(e.ICalEventRepeatingFreq||(e.ICalEventRepeatingFreq={})),function(t){t.SU="SU",t.MO="MO",t.TU="TU",t.WE="WE",t.TH="TH",t.FR="FR",t.SA="SA"}(e.ICalWeekday||(e.ICalWeekday={}))},510:function(t,e){},515:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i(11),r=i(97),o=(i(34),i(73)),a=i(7);function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=/url\((?!['"]data)([^)]+)\)/gi;var h=function(){function t(t){this.address=t,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return t.prototype.initialize=function(t,e){this._scoped=new e(this)},t.prototype.register=function(t,e){"scoped"===e?t.registerViewEngineHooks(this._scoped):this._global=!0},t.prototype.load=function(t){var e=this;return t.get(r.a).loadText(this.address).catch((function(t){return null})).then((function(t){t=function(t,e){if("string"!=typeof e)throw new Error("Failed loading required CSS file: "+t);return e.replace(u,(function(e,i){var n=i.charAt(0);return"'"!==n&&'"'!==n||(i=i.substr(1,i.length-2)),"url('"+Object(o.d)(i,t)+"')"}))}(e.address,t),e._scoped.css=t,e._global&&(e._alreadyGloballyInjected=!0,a.b.injectStyles(t))}))},t}(),l=function(){function t(t){this.owner=t,this.css=null}return t.prototype.beforeCompile=function(t,e,i){if(i.targetShadowDOM)a.b.injectStyles(this.css,t,!0);else if(a.c.scopedCSS){a.b.injectStyles(this.css,t,!0).setAttribute("scoped","scoped")}else this._global&&!this.owner._alreadyGloballyInjected&&(a.b.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},t}();function c(t){var e;return Object(n.v)(new h(t))(e=function(t){function e(){return s(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(l))||e}},516:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(11),r=i(517);function o(t){var e=t.container.get(n.l),i=t.aurelia.loader;e.addResourcePlugin(".html",{fetch:function(t){return i.loadTemplate(t).then((function(e){var i,n=e.template.getAttribute("bindable"),o=function(t){return/([^\/^\?]+)\.html/i.exec(t)[1].toLowerCase()}(t);return n?(n=n.split(",").map((function(t){return t.trim()})),e.template.removeAttribute("bindable")):n=[],(i={})[o]=Object(r.a)(o,t,n),i}))}})}},517:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(11);function r(t,e,i){for(var r,o=Object(n.s)(t)(r=Object(n.x)(e)(r=function(){function t(){}return t.prototype.bind=function(t){this.$parent=t},t}())||r)||r,a=0,s=i.length;a<s;++a)Object(n.p)(i[a])(o);return o}},519:function(t,e,i){"use strict";function n(t){var e=new Error;return e.wasCancelled=!1,e.output=t,e}i.d(e,"a",(function(){return n}))},520:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n,r,o,a,s,u,h=i(7),l=i(34),c=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},d="ux-dialog-container",f=function(){if(n)return n;var t=h.b.createElement("fakeelement"),e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var i in e)if(void 0!==t.style[i])return n=e[i];return""},p=(a="transitionDuration",s=["webkitTransitionDuration","oTransitionDuration"],function(t){return r||(r=h.b.createElement("fakeelement"),o=a in r.style?a:s.find((function(t){return t in r.style}))),!!o&&!!h.b.getComputedStyle(t)[o].split(",").find((function(t){return!!parseFloat(t)}))});var m=function(){function t(){}var e;return e=t,t.keyboardEventHandler=function(t){var i=function(t){return"Escape"===(t.code||t.key)||27===t.keyCode?"Escape":"Enter"===(t.code||t.key)||13===t.keyCode?"Enter":void 0}(t);if(i){var n=e.dialogControllers[e.dialogControllers.length-1];if(n&&n.settings.keyboard){var r=n.settings.keyboard;"Escape"===i&&(!0===r||r===i||Array.isArray(r)&&r.indexOf(i)>-1)?n.cancel():"Enter"===i&&(r===i||Array.isArray(r)&&r.indexOf(i)>-1)&&n.ok()}}},t.trackController=function(t){e.dialogControllers.length||h.b.addEventListener("keyup",e.keyboardEventHandler,!1),e.dialogControllers.push(t)},t.untrackController=function(t){var i=e.dialogControllers.indexOf(t);-1!==i&&e.dialogControllers.splice(i,1),e.dialogControllers.length||h.b.removeEventListener("keyup",e.keyboardEventHandler,!1)},t.prototype.getOwnElements=function(t,e){for(var i=t.querySelectorAll(e),n=[],r=0;r<i.length;r++)i[r].parentElement===t&&n.push(i[r]);return n},t.prototype.attach=function(t){var e=h.b.createElement("div");e.appendChild(this.anchor),this.dialogContainer=h.b.createElement(d),this.dialogContainer.appendChild(e),this.dialogOverlay=h.b.createElement("ux-dialog-overlay");var i="number"==typeof t.settings.startingZIndex?t.settings.startingZIndex+"":null;this.dialogOverlay.style.zIndex=i,this.dialogContainer.style.zIndex=i;var n=this.getOwnElements(this.host,d).pop();n&&n.parentElement?(this.host.insertBefore(this.dialogContainer,n.nextSibling),this.host.insertBefore(this.dialogOverlay,n.nextSibling)):(this.host.insertBefore(this.dialogContainer,this.host.firstChild),this.host.insertBefore(this.dialogOverlay,this.host.firstChild)),t.controller.attached(),this.host.classList.add("ux-dialog-open")},t.prototype.detach=function(t){this.host.removeChild(this.dialogOverlay),this.host.removeChild(this.dialogContainer),t.controller.detached(),e.dialogControllers.length||this.host.classList.remove("ux-dialog-open")},t.prototype.setAsActive=function(){this.dialogOverlay.classList.add("active"),this.dialogContainer.classList.add("active")},t.prototype.setAsInactive=function(){this.dialogOverlay.classList.remove("active"),this.dialogContainer.classList.remove("active")},t.prototype.setupClickHandling=function(t){this.stopPropagation=function(t){t._aureliaDialogHostClicked=!0},this.closeDialogClick=function(e){t.settings.overlayDismiss&&!e._aureliaDialogHostClicked&&t.cancel()},this.dialogContainer.addEventListener("click",this.closeDialogClick),this.anchor.addEventListener("click",this.stopPropagation)},t.prototype.clearClickHandling=function(){this.dialogContainer.removeEventListener("click",this.closeDialogClick),this.anchor.removeEventListener("click",this.stopPropagation)},t.prototype.centerDialog=function(){var t=this.dialogContainer.children[0],e=Math.max(h.b.querySelectorAll("html")[0].clientHeight,window.innerHeight||0);t.style.marginTop=Math.max((e-t.offsetHeight)/2,30)+"px",t.style.marginBottom=Math.max((e-t.offsetHeight)/2,30)+"px"},t.prototype.awaitTransition=function(t,e){var i=this;return new Promise((function(n){var r=i,o=f();e||!p(i.dialogContainer)?n():i.dialogContainer.addEventListener(o,(function t(e){e.target===r.dialogContainer&&(r.dialogContainer.removeEventListener(o,t),n())})),t()}))},t.prototype.getDialogContainer=function(){return this.anchor||(this.anchor=h.b.createElement("div"))},t.prototype.showDialog=function(t){var i=this;u||(u=h.b.querySelectorAll("body")[0]),t.settings.host?this.host=t.settings.host:this.host=u;var n=t.settings;return this.attach(t),"function"==typeof n.position?n.position(this.dialogContainer,this.dialogOverlay):n.centerHorizontalOnly||this.centerDialog(),e.trackController(t),this.setupClickHandling(t),this.awaitTransition((function(){return i.setAsActive()}),t.settings.ignoreTransitions)},t.prototype.hideDialog=function(t){var i=this;return this.clearClickHandling(),e.untrackController(t),this.awaitTransition((function(){return i.setAsInactive()}),t.settings.ignoreTransitions).then((function(){i.detach(t)}))},t.dialogControllers=[],t=e=c([Object(l.f)()],t)}()},521:function(t,e,n){var r=function(t,e){return n(710).createHash(t).update(e).digest("hex")},o={djb2:function(t){var e=5381;for(i=0;i<t.length;i++)e=(e<<5)+e+t.charCodeAt(i);return e},sdbm:function(t){var e=0;for(i=0;i<t.length;i++)char=t.charCodeAt(i),e=char+(e<<6)+(e<<16)-e;return e},javaHashCode:function(t){var e=0;if(0==t.length)return e;for(i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i),e&=e;return e},crc32:function(t){var e=0,i=0,n=0,r=arguments.length<2?79764919:arguments[1],o=arguments.length<3?4294967295:arguments[2],a=arguments.length<4?4294967295:arguments[3],s=o,u=[];function h(t,e){for(var i=0;e;)i=2*i+t%2,t/=2,t-=t%1,e--;return i}var l=255;e=0;for(i=0;i<t.length;i++)(e=t.charCodeAt(i))>l&&(l=e);for(i=l;i>=0;i--){for(e=h(i,32),n=0;n<8;n++)e=(2*e^(e>>>31)%2*r)>>>0;u[i]=h(e,32)}for(i=0;i<t.length;i++){if((e=t.charCodeAt(i))>l)throw new RangeError;s=(s/256^u[n=s%256^e])>>>0}return(s^a)>>>0},sha1:function(t){return r("sha1",t)},md5:function(t){return r("md5",t)},sha256:function(t){return r("sha256",t)},sha512:function(t){return r("sha512",t)},ripemd160:function(t){return r("ripemd160",t)}};t.exports=function(e,i,n){var r=[];for(var a in e)"object"==typeof e[a]&&(e[a]=t.exports(e[a])),r.push(a+e[a]+a.length+("string"==typeof e[a]?e[a].length:0));if(void 0!==n&&n||r.sort(),void 0===i&&(i="djb2"),void 0===o[i])throw"Undefined algorithm "+i;return o[i](r.join("|"))}},53:function(t,e,i){"use strict";(function(t){var n=i(118),r=i(165),o=i(49),a=i(25),s=i(64),u=i(131);i(835);function h(t,e){const i={config:Object.assign(Object.assign({},n.b),c.defaultConfig),l10n:r.a};function h(t){return t.bind(i)}function l(){const t=i.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){const e=(i.days.offsetWidth+1)*t.showMonths;i.daysContainer.style.width=e+"px",i.calendarContainer.style.width=e+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}}))}function d(t){if(0===i.selectedDates.length){const t=void 0===i.config.minDate||Object(s.a)(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),e=Object(s.e)(i.config);t.setHours(e.hours,e.minutes,e.seconds,t.getMilliseconds()),i.selectedDates=[t],i.latestSelectedDateObj=t}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();const e="keydown"===t.type,n=Object(a.e)(t),r=n;void 0!==i.amPM&&n===i.amPM&&(i.amPM.textContent=i.l10n.amPM[Object(o.c)(i.amPM.textContent===i.l10n.amPM[0])]);const s=parseFloat(r.getAttribute("min")),u=parseFloat(r.getAttribute("max")),h=parseFloat(r.getAttribute("step")),l=parseInt(r.value,10),c=t.delta||(e?38===t.which?1:-1:0);let d=l+h*c;if(void 0!==r.value&&2===r.value.length){const t=r===i.hourElement,e=r===i.minuteElement;d<s?(d=u+d+Object(o.c)(!t)+(Object(o.c)(t)&&Object(o.c)(!i.amPM)),e&&_(void 0,-1,i.hourElement)):d>u&&(d=r===i.hourElement?d-u-Object(o.c)(!i.amPM):s,e&&_(void 0,1,i.hourElement)),i.amPM&&t&&(1===h?d+l===23:Math.abs(d-l)>h)&&(i.amPM.textContent=i.l10n.amPM[Object(o.c)(i.amPM.textContent===i.l10n.amPM[0])]),r.value=Object(o.d)(d)}}(t);const e=i._input.value;f(),rt(),i._input.value!==e&&i._debouncedChange()}function f(){if(void 0===i.hourElement||void 0===i.minuteElement)return;let t=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,e=(parseInt(i.minuteElement.value,10)||0)%60,n=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;var r,a;void 0!==i.amPM&&(r=t,a=i.amPM.textContent,t=r%12+12*Object(o.c)(a===i.l10n.amPM[1]));const u=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===Object(s.a)(i.latestSelectedDateObj,i.config.minDate,!0);if(void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===Object(s.a)(i.latestSelectedDateObj,i.config.maxDate,!0)){const r=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;t=Math.min(t,r.getHours()),t===r.getHours()&&(e=Math.min(e,r.getMinutes())),e===r.getMinutes()&&(n=Math.min(n,r.getSeconds()))}if(u){const r=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;t=Math.max(t,r.getHours()),t===r.getHours()&&e<r.getMinutes()&&(e=r.getMinutes()),e===r.getMinutes()&&(n=Math.max(n,r.getSeconds()))}m(t,e,n)}function p(t){const e=t||i.latestSelectedDateObj;e&&m(e.getHours(),e.getMinutes(),e.getSeconds())}function m(t,e,n){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(t%24,e,n||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=Object(o.d)(i.config.time_24hr?t:(12+t)%12+12*Object(o.c)(t%12==0)),i.minuteElement.value=Object(o.d)(e),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[Object(o.c)(t>=12)]),void 0!==i.secondElement&&(i.secondElement.value=Object(o.d)(n)))}function g(t){const e=Object(a.e)(t),i=parseInt(e.value)+(t.delta||0);(i/1e3>1||"Enter"===t.key&&!/[^\d]/.test(i.toString()))&&L(i)}function b(t,e,n,r){return e instanceof Array?e.forEach((e=>b(t,e,n,r))):t instanceof Array?t.forEach((t=>b(t,e,n,r))):(t.addEventListener(e,n,r),void i._handlers.push({remove:()=>t.removeEventListener(e,n)}))}function v(){J("onChange")}function y(t,e){const n=void 0!==t?i.parseDate(t):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),r=i.currentYear,o=i.currentMonth;try{void 0!==n&&(i.currentYear=n.getFullYear(),i.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n,i.config.errorHandler(t)}e&&i.currentYear!==r&&(J("onYearChange"),E()),!e||i.currentYear===r&&i.currentMonth===o||J("onMonthChange"),i.redraw()}function w(t){const e=Object(a.e)(t);~e.className.indexOf("arrow")&&_(t,e.classList.contains("arrowUp")?1:-1)}function _(t,e,i){const n=t&&Object(a.e)(t),r=i||n&&n.parentNode&&n.parentNode.firstChild,o=tt("increment");o.delta=e,r&&r.dispatchEvent(o)}function M(t,e,n,r){const o=B(e,!0),u=Object(a.b)("span","flatpickr-day "+t,e.getDate().toString());return u.dateObj=e,u.$i=r,u.setAttribute("aria-label",i.formatDate(e,i.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===Object(s.a)(e,i.now)&&(i.todayDateElem=u,u.classList.add("today"),u.setAttribute("aria-current","date")),o?(u.tabIndex=-1,et(e)&&(u.classList.add("selected"),i.selectedDateElem=u,"range"===i.config.mode&&(Object(a.f)(u,"startRange",i.selectedDates[0]&&0===Object(s.a)(e,i.selectedDates[0],!0)),Object(a.f)(u,"endRange",i.selectedDates[1]&&0===Object(s.a)(e,i.selectedDates[1],!0)),"nextMonthDay"===t&&u.classList.add("inRange")))):u.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function(t){return!("range"!==i.config.mode||i.selectedDates.length<2)&&(Object(s.a)(t,i.selectedDates[0])>=0&&Object(s.a)(t,i.selectedDates[1])<=0)}(e)&&!et(e)&&u.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==t&&n%7==1&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(e)+"</span>"),J("onDayCreate",u),u}function x(t){t.focus(),"range"===i.config.mode&&F(t)}function S(t){const e=t>0?0:i.config.showMonths-1,n=t>0?i.config.showMonths:-1;for(let r=e;r!=n;r+=t){const e=i.daysContainer.children[r],n=t>0?0:e.children.length-1,o=t>0?e.children.length:-1;for(let i=n;i!=o;i+=t){const t=e.children[i];if(-1===t.className.indexOf("hidden")&&B(t.dateObj))return t}}}function T(t,e){const n=N(document.activeElement||document.body),r=void 0!==t?t:n?document.activeElement:void 0!==i.selectedDateElem&&N(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&N(i.todayDateElem)?i.todayDateElem:S(e>0?1:-1);void 0===r?i._input.focus():n?function(t,e){const n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():i.currentMonth,r=e>0?i.config.showMonths:-1,o=e>0?1:-1;for(let a=n-i.currentMonth;a!=r;a+=o){const r=i.daysContainer.children[a],s=n-i.currentMonth===a?t.$i+e:e<0?r.children.length-1:0,u=r.children.length;for(let i=s;i>=0&&i<u&&i!=(e>0?u:-1);i+=o){const n=r.children[i];if(-1===n.className.indexOf("hidden")&&B(n.dateObj)&&Math.abs(t.$i-i)>=Math.abs(e))return x(n)}}i.changeMonth(o),T(S(o),0)}(r,e):x(r)}function A(t,e){const n=(new Date(t,e,1).getDay()-i.l10n.firstDayOfWeek+7)%7,r=i.utils.getDaysInMonth((e-1+12)%12,t),o=i.utils.getDaysInMonth(e,t),s=window.document.createDocumentFragment(),u=i.config.showMonths>1,h=u?"prevMonthDay hidden":"prevMonthDay",l=u?"nextMonthDay hidden":"nextMonthDay";let c=r+1-n,d=0;for(;c<=r;c++,d++)s.appendChild(M(h,new Date(t,e-1,c),c,d));for(c=1;c<=o;c++,d++)s.appendChild(M("",new Date(t,e,c),c,d));for(let r=o+1;r<=42-n&&(1===i.config.showMonths||d%7!=0);r++,d++)s.appendChild(M(l,new Date(t,e+1,r%o),r,d));const f=Object(a.b)("div","dayContainer");return f.appendChild(s),f}function C(){if(void 0===i.daysContainer)return;Object(a.a)(i.daysContainer),i.weekNumbers&&Object(a.a)(i.weekNumbers);const t=document.createDocumentFragment();for(let e=0;e<i.config.showMonths;e++){const n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),t.appendChild(A(n.getFullYear(),n.getMonth()))}i.daysContainer.appendChild(t),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&F()}function E(){if(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)return;const t=function(t){return!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&t<i.config.minDate.getMonth())&&!(void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&t>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(let e=0;e<12;e++){if(!t(e))continue;const n=Object(a.b)("option","flatpickr-monthDropdown-month");n.value=new Date(i.currentYear,e).getMonth().toString(),n.textContent=Object(u.b)(e,i.config.shorthandCurrentMonth,i.l10n),n.tabIndex=-1,i.currentMonth===e&&(n.selected=!0),i.monthsDropdownContainer.appendChild(n)}}function k(){const t=Object(a.b)("div","flatpickr-month"),e=window.document.createDocumentFragment();let n;i.config.showMonths>1||"static"===i.config.monthSelectorType?n=Object(a.b)("span","cur-month"):(i.monthsDropdownContainer=Object(a.b)("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),b(i.monthsDropdownContainer,"change",(t=>{const e=Object(a.e)(t),n=parseInt(e.value,10);i.changeMonth(n-i.currentMonth),J("onMonthChange")})),E(),n=i.monthsDropdownContainer);const r=Object(a.c)("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&o.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(o.setAttribute("max",i.config.maxDate.getFullYear().toString()),o.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());const s=Object(a.b)("div","flatpickr-current-month");return s.appendChild(n),s.appendChild(r),e.appendChild(s),t.appendChild(e),{container:t,yearElement:o,monthElement:n}}function O(){Object(a.a)(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(let t=i.config.showMonths;t--;){const t=k();i.yearElements.push(t.yearElement),i.monthElements.push(t.monthElement),i.monthNav.appendChild(t.container)}i.monthNav.appendChild(i.nextMonthNav)}function P(){i.weekdayContainer?Object(a.a)(i.weekdayContainer):i.weekdayContainer=Object(a.b)("div","flatpickr-weekdays");for(let t=i.config.showMonths;t--;){const t=Object(a.b)("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(t)}return I(),i.weekdayContainer}function I(){if(!i.weekdayContainer)return;const t=i.l10n.firstDayOfWeek;let e=[...i.l10n.weekdays.shorthand];t>0&&t<e.length&&(e=[...e.splice(t,e.length),...e.splice(0,t)]);for(let t=i.config.showMonths;t--;)i.weekdayContainer.children[t].innerHTML=`\n      <span class='flatpickr-weekday'>\n        ${e.join("</span><span class='flatpickr-weekday'>")}\n      </span>\n      `}function j(t,e=!0){const n=e?t:t-i.currentMonth;n<0&&!0===i._hidePrevMonthArrow||n>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=n,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,J("onYearChange"),E()),C(),J("onMonthChange"),it())}function R(t){return!(!i.config.appendTo||!i.config.appendTo.contains(t))||i.calendarContainer.contains(t)}function D(t){if(i.isOpen&&!i.config.inline){const e=Object(a.e)(t),n=R(e),r=e===i.input||e===i.altInput||i.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(i.input)||~t.path.indexOf(i.altInput)),o="blur"===t.type?r&&t.relatedTarget&&!R(t.relatedTarget):!r&&!n&&!R(t.relatedTarget),s=!i.config.ignoredFocusElements.some((t=>t.contains(e)));o&&s&&(void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&d(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&(i.clear(!1),i.redraw()))}}function L(t){if(!t||i.config.minDate&&t<i.config.minDate.getFullYear()||i.config.maxDate&&t>i.config.maxDate.getFullYear())return;const e=t,n=i.currentYear!==e;i.currentYear=e||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),n&&(i.redraw(),J("onYearChange"),E())}function B(t,e=!0){var n;const r=i.parseDate(t,void 0,e);if(i.config.minDate&&r&&Object(s.a)(r,i.config.minDate,void 0!==e?e:!i.minDateHasTime)<0||i.config.maxDate&&r&&Object(s.a)(r,i.config.maxDate,void 0!==e?e:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===r)return!1;const o=!!i.config.enable,a=null!==(n=i.config.enable)&&void 0!==n?n:i.config.disable;for(let t,e=0;e<a.length;e++){if(t=a[e],"function"==typeof t&&t(r))return o;if(t instanceof Date&&void 0!==r&&t.getTime()===r.getTime())return o;if("string"==typeof t){const e=i.parseDate(t,void 0,!0);return e&&e.getTime()===r.getTime()?o:!o}if("object"==typeof t&&void 0!==r&&t.from&&t.to&&r.getTime()>=t.from.getTime()&&r.getTime()<=t.to.getTime())return o}return!o}function N(t){return void 0!==i.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(t))}function z(t){!(t.target===i._input)||!(i.selectedDates.length>0||i._input.value.length>0)||t.relatedTarget&&R(t.relatedTarget)||i.setDate(i._input.value,!0,t.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function H(e){const n=Object(a.e)(e),r=i.config.wrap?t.contains(n):n===i._input,o=i.config.allowInput,s=i.isOpen&&(!o||!r),u=i.config.inline&&r&&!o;if(13===e.keyCode&&r){if(o)return i.setDate(i._input.value,!0,n===i.altInput?i.config.altFormat:i.config.dateFormat),n.blur();i.open()}else if(R(n)||s||u){const t=!!i.timeContainer&&i.timeContainer.contains(n);switch(e.keyCode){case 13:t?(e.preventDefault(),d(),Y()):$(e);break;case 27:e.preventDefault(),Y();break;case 8:case 46:r&&!i.config.allowInput&&(e.preventDefault(),i.clear());break;case 37:case 39:if(t||r)i.hourElement&&i.hourElement.focus();else if(e.preventDefault(),void 0!==i.daysContainer&&(!1===o||document.activeElement&&N(document.activeElement))){const t=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),j(t),T(S(1),0)):T(void 0,t)}break;case 38:case 40:e.preventDefault();const a=40===e.keyCode?1:-1;i.daysContainer&&void 0!==n.$i||n===i.input||n===i.altInput?e.ctrlKey?(e.stopPropagation(),L(i.currentYear-a),T(S(1),0)):t||T(void 0,7*a):n===i.currentYearElement?L(i.currentYear-a):i.config.enableTime&&(!t&&i.hourElement&&i.hourElement.focus(),d(e),i._debouncedChange());break;case 9:if(t){const t=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter((t=>t)),r=t.indexOf(n);if(-1!==r){const n=t[r+(e.shiftKey?-1:1)];e.preventDefault(),(n||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(n)&&e.shiftKey&&(e.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&n===i.amPM)switch(e.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],f(),rt();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],f(),rt()}(r||R(n))&&J("onKeyDown",e)}function F(t){if(1!==i.selectedDates.length||t&&(!t.classList.contains("flatpickr-day")||t.classList.contains("flatpickr-disabled")))return;const e=t?t.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),n=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),r=Math.min(e,i.selectedDates[0].getTime()),o=Math.max(e,i.selectedDates[0].getTime());let a=!1,u=0,h=0;for(let t=r;t<o;t+=s.d.DAY)B(new Date(t),!0)||(a=a||t>r&&t<o,t<n&&(!u||t>u)?u=t:t>n&&(!h||t<h)&&(h=t));for(let r=0;r<i.config.showMonths;r++){const o=i.daysContainer.children[r];for(let r=0,l=o.children.length;r<l;r++){const l=o.children[r],c=l.dateObj.getTime(),d=u>0&&c<u||h>0&&c>h;d?(l.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((t=>{l.classList.remove(t)}))):a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((t=>{l.classList.remove(t)})),void 0!==t&&(t.classList.add(e<=i.selectedDates[0].getTime()?"startRange":"endRange"),n<e&&c===n?l.classList.add("startRange"):n>e&&c===n&&l.classList.add("endRange"),c>=u&&(0===h||c<=h)&&Object(s.f)(c,n,e)&&l.classList.add("inRange")))}}}function V(){!i.isOpen||i.config.static||i.config.inline||W()}function U(t){return e=>{const n=i.config[`_${t}Date`]=i.parseDate(e,i.config.dateFormat),r=i.config[`_${"min"===t?"max":"min"}Date`];void 0!==n&&(i["min"===t?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter((t=>B(t))),i.selectedDates.length||"min"!==t||p(n),rt()),i.daysContainer&&(Z(),void 0!==n?i.currentYearElement[t]=n.getFullYear().toString():i.currentYearElement.removeAttribute(t),i.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function G(){return i.config.wrap?t.querySelector("[data-input]"):t}function q(){"object"!=typeof i.config.locale&&void 0===c.l10ns[i.config.locale]&&i.config.errorHandler(new Error(`flatpickr: invalid locale ${i.config.locale}`)),i.l10n=Object.assign(Object.assign({},c.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?c.l10ns[i.config.locale]:void 0),u.d.K=`(${i.l10n.amPM[0]}|${i.l10n.amPM[1]}|${i.l10n.amPM[0].toLowerCase()}|${i.l10n.amPM[1].toLowerCase()})`;void 0===Object.assign(Object.assign({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===c.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=Object(s.b)(i),i.parseDate=Object(s.c)({config:i.config,l10n:i.l10n})}function W(t){if("function"==typeof i.config.position)return void i.config.position(i,t);if(void 0===i.calendarContainer)return;J("onPreCalendarPosition");const e=t||i._positionElement,n=Array.prototype.reduce.call(i.calendarContainer.children,((t,e)=>t+e.offsetHeight),0),r=i.calendarContainer.offsetWidth,o=i.config.position.split(" "),s=o[0],u=o.length>1?o[1]:null,h=e.getBoundingClientRect(),l=window.innerHeight-h.bottom,c="above"===s||"below"!==s&&l<n&&h.top>n,d=window.pageYOffset+h.top+(c?-n-2:e.offsetHeight+2);if(Object(a.f)(i.calendarContainer,"arrowTop",!c),Object(a.f)(i.calendarContainer,"arrowBottom",c),i.config.inline)return;let f=window.pageXOffset+h.left,p=!1,m=!1;"center"===u?(f-=(r-h.width)/2,p=!0):"right"===u&&(f-=r-h.width,m=!0),Object(a.f)(i.calendarContainer,"arrowLeft",!p&&!m),Object(a.f)(i.calendarContainer,"arrowCenter",p),Object(a.f)(i.calendarContainer,"arrowRight",m);const g=window.document.body.offsetWidth-(window.pageXOffset+h.right),b=f+r>window.document.body.offsetWidth,v=g+r>window.document.body.offsetWidth;if(Object(a.f)(i.calendarContainer,"rightMost",b),!i.config.static)if(i.calendarContainer.style.top=`${d}px`,b)if(v){const t=function(){let t=null;for(let e=0;e<document.styleSheets.length;e++){const i=document.styleSheets[e];try{i.cssRules}catch(t){continue}t=i;break}return null!=t?t:function(){const t=document.createElement("style");return document.head.appendChild(t),t.sheet}()}();if(void 0===t)return;const e=window.document.body.offsetWidth,n=Math.max(0,e/2-r/2),o=".flatpickr-calendar.centerMost:before",s=".flatpickr-calendar.centerMost:after",u=t.cssRules.length,l=`{left:${h.left}px;right:auto;}`;Object(a.f)(i.calendarContainer,"rightMost",!1),Object(a.f)(i.calendarContainer,"centerMost",!0),t.insertRule(`${o},${s}${l}`,u),i.calendarContainer.style.left=`${n}px`,i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=`${g}px`;else i.calendarContainer.style.left=`${f}px`,i.calendarContainer.style.right="auto"}function Z(){i.config.noCalendar||i.isMobile||(E(),it(),C())}function Y(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function $(t){t.preventDefault(),t.stopPropagation();const e=Object(a.d)(Object(a.e)(t),(t=>t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")));if(void 0===e)return;const n=e,r=i.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(r.getMonth()<i.currentMonth||r.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=n,"single"===i.config.mode)i.selectedDates=[r];else if("multiple"===i.config.mode){const t=et(r);t?i.selectedDates.splice(parseInt(t),1):i.selectedDates.push(r)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=r,i.selectedDates.push(r),0!==Object(s.a)(r,i.selectedDates[0],!0)&&i.selectedDates.sort(((t,e)=>t.getTime()-e.getTime())));if(f(),o){const t=i.currentYear!==r.getFullYear();i.currentYear=r.getFullYear(),i.currentMonth=r.getMonth(),t&&(J("onYearChange"),E()),J("onMonthChange")}if(it(),C(),rt(),o||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():x(n),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect){const t="single"===i.config.mode&&!i.config.enableTime,e="range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime;(t||e)&&Y()}v()}i.parseDate=Object(s.c)({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=b,i._setHoursFromDate=p,i._positionCalendar=W,i.changeMonth=j,i.changeYear=L,i.clear=function(t=!0,e=!0){i.input.value="",void 0!==i.altInput&&(i.altInput.value="");void 0!==i.mobileInput&&(i.mobileInput.value="");i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===e&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth());if(!0===i.config.enableTime){const{hours:t,minutes:e,seconds:n}=Object(s.e)(i.config);m(t,e,n)}i.redraw(),t&&J("onChange")},i.close=function(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active"));J("onClose")},i._createElement=a.b,i.destroy=function(){void 0!==i.config&&J("onDestroy");for(let t=i._handlers.length;t--;)i._handlers[t].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){const t=i.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput);i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((t=>{try{delete i[t]}catch(t){}}))},i.isEnabled=B,i.jumpToDate=y,i.open=function(t,e=i._positionElement){if(!0===i.isMobile){if(t){t.preventDefault();const e=Object(a.e)(t);e&&e.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void J("onOpen")}if(i._input.disabled||i.config.inline)return;const n=i.isOpen;i.isOpen=!0,n||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),J("onOpen"),W(e));!0===i.config.enableTime&&!0===i.config.noCalendar&&(!1!==i.config.allowInput||void 0!==t&&i.timeContainer.contains(t.relatedTarget)||setTimeout((()=>i.hourElement.select()),50))},i.redraw=Z,i.set=function(t,e){if(null!==t&&"object"==typeof t){Object.assign(i.config,t);for(const e in t)void 0!==K[e]&&K[e].forEach((t=>t()))}else i.config[t]=e,void 0!==K[t]?K[t].forEach((t=>t())):n.a.indexOf(t)>-1&&(i.config[t]=Object(o.a)(e));i.redraw(),rt(!0)},i.setDate=function(t,e=!1,n=i.config.dateFormat){if(0!==t&&!t||t instanceof Array&&0===t.length)return i.clear(e);X(t,n),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),y(void 0,e),p(),0===i.selectedDates.length&&i.clear(!1);rt(e),e&&J("onChange")},i.toggle=function(t){if(!0===i.isOpen)return i.close();i.open(t)};const K={locale:[q,I],showMonths:[O,l,P],minDate:[y],maxDate:[y],clickOpens:[()=>{!0===i.config.clickOpens?(b(i._input,"focus",i.open),b(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function X(t,e){let n=[];if(t instanceof Array)n=t.map((t=>i.parseDate(t,e)));else if(t instanceof Date||"number"==typeof t)n=[i.parseDate(t,e)];else if("string"==typeof t)switch(i.config.mode){case"single":case"time":n=[i.parseDate(t,e)];break;case"multiple":n=t.split(i.config.conjunction).map((t=>i.parseDate(t,e)));break;case"range":n=t.split(i.l10n.rangeSeparator).map((t=>i.parseDate(t,e)))}else i.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(t)}`));i.selectedDates=i.config.allowInvalidPreload?n:n.filter((t=>t instanceof Date&&B(t,!1))),"range"===i.config.mode&&i.selectedDates.sort(((t,e)=>t.getTime()-e.getTime()))}function Q(t){return t.slice().map((t=>"string"==typeof t||"number"==typeof t||t instanceof Date?i.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:i.parseDate(t.from,void 0),to:i.parseDate(t.to,void 0)}:t)).filter((t=>t))}function J(t,e){if(void 0===i.config)return;const n=i.config[t];if(void 0!==n&&n.length>0)for(let t=0;n[t]&&t<n.length;t++)n[t](i.selectedDates,i.input.value,i,e);"onChange"===t&&(i.input.dispatchEvent(tt("change")),i.input.dispatchEvent(tt("input")))}function tt(t){const e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function et(t){for(let e=0;e<i.selectedDates.length;e++)if(0===Object(s.a)(i.selectedDates[e],t))return""+e;return!1}function it(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach(((t,e)=>{const n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[e].textContent=Object(u.b)(n.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function nt(t){return i.selectedDates.map((e=>i.formatDate(e,t))).filter(((t,e,n)=>"range"!==i.config.mode||i.config.enableTime||n.indexOf(t)===e)).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function rt(t=!0){void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=nt(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=nt(i.config.altFormat)),!1!==t&&J("onValueUpdate")}function ot(t){const e=Object(a.e)(t),n=i.prevMonthNav.contains(e),r=i.nextMonthNav.contains(e);n||r?j(n?-1:1):i.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):e.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function(){i.element=i.input=t,i.isOpen=!1,function(){const r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=Object.assign(Object.assign({},JSON.parse(JSON.stringify(t.dataset||{}))),e),s={};i.config.parseDate=a.parseDate,i.config.formatDate=a.formatDate,Object.defineProperty(i.config,"enable",{get:()=>i.config._enable,set:t=>{i.config._enable=Q(t)}}),Object.defineProperty(i.config,"disable",{get:()=>i.config._disable,set:t=>{i.config._disable=Q(t)}});const u="time"===a.mode;if(!a.dateFormat&&(a.enableTime||u)){const t=c.defaultConfig.dateFormat||n.b.dateFormat;s.dateFormat=a.noCalendar||u?"H:i"+(a.enableSeconds?":S":""):t+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||u)&&!a.altFormat){const t=c.defaultConfig.altFormat||n.b.altFormat;s.altFormat=a.noCalendar||u?"h:i"+(a.enableSeconds?":S K":" K"):t+` h:i${a.enableSeconds?":S":""} K`}Object.defineProperty(i.config,"minDate",{get:()=>i.config._minDate,set:U("min")}),Object.defineProperty(i.config,"maxDate",{get:()=>i.config._maxDate,set:U("max")});const l=t=>e=>{i.config["min"===t?"_minTime":"_maxTime"]=i.parseDate(e,"H:i:S")};Object.defineProperty(i.config,"minTime",{get:()=>i.config._minTime,set:l("min")}),Object.defineProperty(i.config,"maxTime",{get:()=>i.config._maxTime,set:l("max")}),"time"===a.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0);Object.assign(i.config,s,a);for(let t=0;t<r.length;t++)i.config[r[t]]=!0===i.config[r[t]]||"true"===i.config[r[t]];n.a.filter((t=>void 0!==i.config[t])).forEach((t=>{i.config[t]=Object(o.a)(i.config[t]||[]).map(h)})),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let t=0;t<i.config.plugins.length;t++){const e=i.config.plugins[t](i)||{};for(const t in e)n.a.indexOf(t)>-1?i.config[t]=Object(o.a)(e[t]).map(h).concat(i.config[t]):void 0===a[t]&&(i.config[t]=e[t])}a.altInputClass||(i.config.altInputClass=G().className+" "+i.config.altInputClass);J("onParseConfig")}(),q(),function(){if(i.input=G(),!i.input)return void i.config.errorHandler(new Error("Invalid input element specified"));i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=Object(a.b)(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling));i.config.allowInput||i._input.setAttribute("readonly","readonly");i._positionElement=i.config.positionElement||i._input}(),function(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;const t=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);t&&X(t,i.config.dateFormat);i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]);void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i"));void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i"));i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),i.utils={getDaysInMonth:(t=i.currentMonth,e=i.currentYear)=>1===t&&(e%4==0&&e%100!=0||e%400==0)?29:i.l10n.daysInMonth[t]},i.isMobile||function(){const t=window.document.createDocumentFragment();if(i.calendarContainer=Object(a.b)("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(t.appendChild((i.monthNav=Object(a.b)("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=Object(a.b)("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=Object(a.b)("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,O(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:()=>i.__hidePrevMonthArrow,set(t){i.__hidePrevMonthArrow!==t&&(Object(a.f)(i.prevMonthNav,"flatpickr-disabled",t),i.__hidePrevMonthArrow=t)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:()=>i.__hideNextMonthArrow,set(t){i.__hideNextMonthArrow!==t&&(Object(a.f)(i.nextMonthNav,"flatpickr-disabled",t),i.__hideNextMonthArrow=t)}}),i.currentYearElement=i.yearElements[0],it(),i.monthNav)),i.innerContainer=Object(a.b)("div","flatpickr-innerContainer"),i.config.weekNumbers){const{weekWrapper:t,weekNumbers:e}=function(){i.calendarContainer.classList.add("hasWeeks");const t=Object(a.b)("div","flatpickr-weekwrapper");t.appendChild(Object(a.b)("span","flatpickr-weekday",i.l10n.weekAbbreviation));const e=Object(a.b)("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}();i.innerContainer.appendChild(t),i.weekNumbers=e,i.weekWrapper=t}i.rContainer=Object(a.b)("div","flatpickr-rContainer"),i.rContainer.appendChild(P()),i.daysContainer||(i.daysContainer=Object(a.b)("div","flatpickr-days"),i.daysContainer.tabIndex=-1),C(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),t.appendChild(i.innerContainer)}i.config.enableTime&&t.appendChild(function(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");const t=Object(s.e)(i.config);i.timeContainer=Object(a.b)("div","flatpickr-time"),i.timeContainer.tabIndex=-1;const e=Object(a.b)("span","flatpickr-time-separator",":"),n=Object(a.c)("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=n.getElementsByTagName("input")[0];const r=Object(a.c)("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});i.minuteElement=r.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=Object(o.d)(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),i.minuteElement.value=Object(o.d)(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():t.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(n),i.timeContainer.appendChild(e),i.timeContainer.appendChild(r),i.config.time_24hr&&i.timeContainer.classList.add("time24hr");if(i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");const e=Object(a.c)("flatpickr-second");i.secondElement=e.getElementsByTagName("input")[0],i.secondElement.value=Object(o.d)(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():t.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(Object(a.b)("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(e)}i.config.time_24hr||(i.amPM=Object(a.b)("span","flatpickr-am-pm",i.l10n.amPM[Object(o.c)((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM));return i.timeContainer}());Object(a.f)(i.calendarContainer,"rangeMode","range"===i.config.mode),Object(a.f)(i.calendarContainer,"animate",!0===i.config.animate),Object(a.f)(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(t);const e=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!e&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){const t=Object(a.b)("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(t,i.element),t.appendChild(i.element),i.altInput&&t.appendChild(i.altInput),t.appendChild(i.calendarContainer)}i.config.static||i.config.inline||(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function(){i.config.wrap&&["open","close","toggle","clear"].forEach((t=>{Array.prototype.forEach.call(i.element.querySelectorAll(`[data-${t}]`),(e=>b(e,"click",i[t])))}));if(i.isMobile)return void function(){const t=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=Object(a.b)("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=t,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr));i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d"));i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d"));i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step")));i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch(t){}b(i.mobileInput,"change",(t=>{i.setDate(Object(a.e)(t).value,!1,i.mobileFormatStr),J("onChange"),J("onClose")}))}();const t=Object(o.b)(V,50);i._debouncedChange=Object(o.b)(v,300),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(i.daysContainer,"mouseover",(t=>{"range"===i.config.mode&&F(Object(a.e)(t))}));b(window.document.body,"keydown",H),i.config.inline||i.config.static||b(window,"resize",t);void 0!==window.ontouchstart?b(window.document,"touchstart",D):b(window.document,"mousedown",D);b(window.document,"focus",D,{capture:!0}),!0===i.config.clickOpens&&(b(i._input,"focus",i.open),b(i._input,"click",i.open));void 0!==i.daysContainer&&(b(i.monthNav,"click",ot),b(i.monthNav,["keyup","increment"],g),b(i.daysContainer,"click",$));if(void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){const t=t=>Object(a.e)(t).select();b(i.timeContainer,["increment"],d),b(i.timeContainer,"blur",d,{capture:!0}),b(i.timeContainer,"click",w),b([i.hourElement,i.minuteElement],["focus","click"],t),void 0!==i.secondElement&&b(i.secondElement,"focus",(()=>i.secondElement&&i.secondElement.select())),void 0!==i.amPM&&b(i.amPM,"click",(t=>{d(t),v()}))}i.config.allowInput&&b(i._input,"blur",z)}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&p(i.config.noCalendar?i.latestSelectedDateObj:void 0),rt(!1)),l();const r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&r&&W(),J("onReady")}(),i}function l(t,e){const i=Array.prototype.slice.call(t).filter((t=>t instanceof HTMLElement)),n=[];for(let t=0;t<i.length;t++){const r=i[t];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=h(r,e||{}),n.push(r._flatpickr)}catch(t){console.error(t)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return l(this,t)},HTMLElement.prototype.flatpickr=function(t){return l([this],t)});var c=function(t,e){return"string"==typeof t?l(window.document.querySelectorAll(t),e):t instanceof Node?l([t],e):l(t,e)};c.defaultConfig={},c.l10ns={en:Object.assign({},r.a),default:Object.assign({},r.a)},c.localize=t=>{c.l10ns.default=Object.assign(Object.assign({},c.l10ns.default),t)},c.setDefaults=t=>{c.defaultConfig=Object.assign(Object.assign({},c.defaultConfig),t)},c.parseDate=Object(s.c)({}),c.formatDate=Object(s.b)({}),c.compareDates=s.a,void 0!==t&&void 0!==t.fn&&(t.fn.flatpickr=function(t){return l(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=c),e.a=c}).call(this,i(50))},56:function(t,e,i){"use strict";i.r(e),i.d(e,"logLevel",(function(){return n})),i.d(e,"getLogger",(function(){return f})),i.d(e,"addAppender",(function(){return p})),i.d(e,"removeAppender",(function(){return m})),i.d(e,"getAppenders",(function(){return g})),i.d(e,"clearAppenders",(function(){return b})),i.d(e,"addCustomLevel",(function(){return v})),i.d(e,"removeCustomLevel",(function(){return y})),i.d(e,"setLevel",(function(){return w})),i.d(e,"getLevel",(function(){return _})),i.d(e,"Logger",(function(){return M}));var n={none:0,error:10,warn:20,info:30,debug:40},r={},o=[],a=n.none,s=["none","error","warn","info","debug"];function u(t){return s.filter((function(e){return e===t})).length>0}function h(){return[this].concat(Array.prototype.slice.call(arguments))}function l(t){var e=n[t];return function(){if(!(this.level<e))for(var i=h.apply(this,arguments),n=o.length;n--;){var r;(r=o[n])[t].apply(r,i)}}}function c(t){var e=n[t];return function(){if(!(this.level<e))for(var i=h.apply(this,arguments),n=o.length;n--;){var r=o[n];void 0!==r[t]&&r[t].apply(r,i)}}}function d(){var t=M.prototype;for(var e in n)u(e)?"none"!==e&&(t[e]=l(e)):t[e]=c(e)}function f(t){return r[t]||new M(t)}function p(t){1===o.push(t)&&d()}function m(t){o=o.filter((function(e){return e!==t}))}function g(){return[].concat(o)}function b(){o=[],function(){var t=M.prototype;for(var e in n)"none"!==e&&(t[e]=function(){})}()}function v(t,e){if(void 0!==n[t])throw Error('Log level "'+t+'" already exists.');if(isNaN(e))throw Error("Value must be a number.");n[t]=e,o.length>0?d():M.prototype[t]=function(){}}function y(t){if(void 0!==n[t]){if(u(t))throw Error('Built-in log level "'+t+'" cannot be removed.');delete n[t],delete M.prototype[t]}}function w(t){for(var e in a=t,r)r[e].setLevel(t)}function _(){return a}var M=function(){function t(t){var e=r[t];if(e)return e;r[t]=this,this.id=t,this.level=a}return t.prototype.debug=function(t){},t.prototype.info=function(t){},t.prototype.warn=function(t){},t.prototype.error=function(t){},t.prototype.setLevel=function(t){this.level=t},t.prototype.isDebugEnabled=function(){return this.level===n.debug},t}()},639:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(t,e,i){var r;return i=i||{},r="string"==typeof n[t]?n[t]:1===e?n[t].one:n[t].other.replace("{{count}}",e),i.addSuffix?i.comparison>0?"in "+r:r+" ago":r}},64:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return u})),i.d(e,"f",(function(){return h})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c}));var n=i(131),r=i(118),o=i(165);const a=({config:t=r.b,l10n:e=o.b,isMobile:i=!1})=>(r,o,a)=>{const s=a||e;return void 0===t.formatDate||i?o.split("").map(((e,i,o)=>n.a[e]&&"\\"!==o[i-1]?n.a[e](r,s,t):"\\"!==e?e:"")).join(""):t.formatDate(r,o,s)},s=({config:t=r.b,l10n:e=o.b})=>(i,o,a,s)=>{if(0!==i&&!i)return;const u=s||e;let h;const l=i;if(i instanceof Date)h=new Date(i.getTime());else if("string"!=typeof i&&void 0!==i.toFixed)h=new Date(i);else if("string"==typeof i){const e=o||(t||r.b).dateFormat,s=String(i).trim();if("today"===s)h=new Date,a=!0;else if(/Z$/.test(s)||/GMT$/.test(s))h=new Date(i);else if(t&&t.parseDate)h=t.parseDate(i,e);else{h=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let r,o=[];for(let t=0,a=0,s="";t<e.length;t++){const l=e[t],c="\\"===l,d="\\"===e[t-1]||c;if(n.d[l]&&!d){s+=n.d[l];const t=new RegExp(s).exec(i);t&&(r=!0)&&o["Y"!==l?"push":"unshift"]({fn:n.c[l],val:t[++a]})}else c||(s+=".");o.forEach((({fn:t,val:e})=>h=t(h,e,u)||h))}h=r?h:void 0}}if(h instanceof Date&&!isNaN(h.getTime()))return!0===a&&h.setHours(0,0,0,0),h;t.errorHandler(new Error(`Invalid date provided: ${l}`))};function u(t,e,i=!0){return!1!==i?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}const h=(t,e,i)=>t>Math.min(e,i)&&t<Math.max(e,i),l={DAY:864e5};function c(t){let e=t.defaultHour,i=t.defaultMinute,n=t.defaultSeconds;if(void 0!==t.minDate){const r=t.minDate.getHours(),o=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<r&&(e=r),e===r&&i<o&&(i=o),e===r&&i===o&&n<a&&(n=t.minDate.getSeconds())}if(void 0!==t.maxDate){const r=t.maxDate.getHours(),o=t.maxDate.getMinutes();e=Math.min(e,r),e===r&&(i=Math.min(o,i)),e===r&&i===o&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:i,seconds:n}}},640:function(t,e,i){"use strict";var n=i(304),r={date:Object(n.a)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Object(n.a)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Object(n.a)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};e.a=r},641:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function r(t,e,i,r){return n[t]}},642:function(t,e,i){"use strict";var n=i(199);var r={ordinalNumber:function(t,e){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Object(n.a)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Object(n.a)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Object(n.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Object(n.a)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Object(n.a)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.a=r},643:function(t,e,i){"use strict";var n=i(644),r=i(200),o={ordinalNumber:Object(n.a)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Object(r.a)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Object(r.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Object(r.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(r.a)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(r.a)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.a=o},644:function(t,e,i){"use strict";function n(t){return function(e,i){var n=String(e),r=i||{},o=n.match(t.matchPattern);if(!o)return null;var a=o[0],s=n.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return{value:u=r.valueCallback?r.valueCallback(u):u,rest:n.slice(a.length)}}}i.d(e,"a",(function(){return n}))},645:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(r.a)(t).getTime(),a=Object(n.a)(e);return new Date(i+a)}},646:function(t,e,i){"use strict";var n=i(142),r=i(649),o=i(290),a=i(288),s=i(289),u=i(180),h=i(38),l="midnight",c="noon",d="morning",f="afternoon",p="evening",m="night",g={G:function(t,e,i){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var r=t.getUTCFullYear(),o=r>0?r:1-r;return i.ordinalNumber(o,{unit:"year"})}return n.a.y(t,e)},Y:function(t,e,i,n){var r=Object(u.a)(t,n),o=r>0?r:1-r;if("YY"===e){var a=o%100;return Object(h.a)(a,2)}return"Yo"===e?i.ordinalNumber(o,{unit:"year"}):Object(h.a)(o,e.length)},R:function(t,e){var i=Object(a.a)(t);return Object(h.a)(i,e.length)},u:function(t,e){var i=t.getUTCFullYear();return Object(h.a)(i,e.length)},Q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Object(h.a)(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Object(h.a)(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return n.a.M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return Object(h.a)(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){var r=Object(s.a)(t,n);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Object(h.a)(r,e.length)},I:function(t,e,i){var n=Object(o.a)(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):Object(h.a)(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):n.a.d(t,e)},D:function(t,e,i){var n=Object(r.a)(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):Object(h.a)(n,e.length)},E:function(t,e,i){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){var r=t.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Object(h.a)(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){var r=t.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Object(h.a)(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){var n=t.getUTCDay(),r=0===n?7:n;switch(e){case"i":return String(r);case"ii":return Object(h.a)(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){var n,r=t.getUTCHours();switch(n=12===r?c:0===r?l:r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){var n,r=t.getUTCHours();switch(n=r>=17?p:r>=12?f:r>=4?d:m,e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return n.a.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):n.a.H(t,e)},K:function(t,e,i){var n=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):Object(h.a)(n,e.length)},k:function(t,e,i){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):Object(h.a)(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):n.a.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):n.a.s(t,e)},S:function(t,e){return n.a.S(t,e)},X:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return v(r);case"XXXX":case"XX":return y(r);case"XXXXX":case"XXX":default:return y(r,":")}},x:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return v(r);case"xxxx":case"xx":return y(r);case"xxxxx":case"xxx":default:return y(r,":")}},O:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b(r,":");case"OOOO":default:return"GMT"+y(r,":")}},z:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b(r,":");case"zzzz":default:return"GMT"+y(r,":")}},t:function(t,e,i,n){var r=n._originalDate||t,o=Math.floor(r.getTime()/1e3);return Object(h.a)(o,e.length)},T:function(t,e,i,n){var r=(n._originalDate||t).getTime();return Object(h.a)(r,e.length)}};function b(t,e){var i=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var a=e||"";return i+String(r)+a+Object(h.a)(o,2)}function v(t,e){return t%60==0?(t>0?"-":"+")+Object(h.a)(Math.abs(t)/60,2):y(t,e)}function y(t,e){var i=e||"",n=t>0?"-":"+",r=Math.abs(t);return n+Object(h.a)(Math.floor(r/60),2)+i+Object(h.a)(r%60,2)}e.a=g},647:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(23),r=i(180),o=i(117),a=i(19);function s(t,e){Object(a.a)(1,arguments);var i=e||{},s=i.locale,u=s&&s.options&&s.options.firstWeekContainsDate,h=null==u?1:Object(n.a)(u),l=null==i.firstWeekContainsDate?h:Object(n.a)(i.firstWeekContainsDate),c=Object(r.a)(t,e),d=new Date(0);d.setUTCFullYear(c,0,l),d.setUTCHours(0,0,0,0);var f=Object(o.a)(d,e);return f}},648:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(288),r=i(125),o=i(19);function a(t){Object(o.a)(1,arguments);var e=Object(n.a)(t),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var a=Object(r.a)(i);return a}},649:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(21),r=i(19),o=864e5;function a(t){Object(r.a)(1,arguments);var e=Object(n.a)(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),s=i-a;return Math.floor(s/o)+1}},650:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(101),r=i(163),o=i(19),a=864e5;function s(t,e){Object(o.a)(2,arguments);var i=Object(r.a)(t),s=Object(r.a)(e),u=i.getTime()-Object(n.a)(i),h=s.getTime()-Object(n.a)(s);return Math.round((u-h)/a)}},655:function(t,e,i){!function(t,e){t((function(){"use strict";var t,i={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",Pixel:"; \\bPixel\\b",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 5X|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F|SM-G610F|SM-G981B|SM-G892A|SM-A530F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533|SOV34|601SO|F8332",Asus:"Asus.*Galaxy|PadFone.*Mobile",Xiaomi:"^(?!.*\\bx11\\b).*xiaomi.*$|POCOPHONE F1|MI 8|Redmi Note 9S|Redmi Note 5A Prime|N2G47H|M2001J2G|M2001J2I|M1805E10A|M2004J11G|M1902F1G|M2002J9G|M2004J19G|M2003J6A1G",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V|SM-P610|SM-T290|SM-T515|SM-T590|SM-T595|SM-T725|SM-T817P|SM-P585N0|SM-T395|SM-T295|SM-T865|SM-P610N|SM-P615|SM-T970|SM-T380|SM-T5950|SM-T905|SM-T231|SM-T500|SM-T860",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30|A3-A40",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X|TB-X704F|TB-X104F|TB3-X70F|TB-X705F|TB-8504F|TB3-X70L|TB3-710F|TB-X704L",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android [0-9.]+; [a-z-]+; \\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",SailfishOS:"Sailfish",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"\\bEdgiOS\\b|Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version((?!\\bEdgiOS\\b).)*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",SailfishBrowser:"SailfishBrowser/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",Sailfish:"Sailfish [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp|AspiegelBot",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},n=Object.prototype.hasOwnProperty;function r(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function o(t,e){var i,n,r=t.length;if(!r||!e)return!1;for(i=e.toLowerCase(),n=0;n<r;++n)if(i===t[n].toLowerCase())return!0;return!1}function a(t){for(var e in t)n.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}function s(t,e){this.ua=function(t){return(t||"").substr(0,500)}(t),this._cache={},this.maxPhoneWidth=e||600}return i.FALLBACK_PHONE="UnknownPhone",i.FALLBACK_TABLET="UnknownTablet",i.FALLBACK_MOBILE="UnknownMobile",t="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},function(){var e,r,o,s,u,h,l=i.mobileDetectRules;for(e in l.props)if(n.call(l.props,e)){for(r=l.props[e],t(r)||(r=[r]),u=r.length,s=0;s<u;++s)(h=(o=r[s]).indexOf("[VER]"))>=0&&(o=o.substring(0,h)+"([\\w._\\+]+)"+o.substring(h+5)),r[s]=new RegExp(o,"i");l.props[e]=r}a(l.oss),a(l.phones),a(l.tablets),a(l.uas),a(l.utils),l.oss0={WindowsPhoneOS:l.oss.WindowsPhoneOS,WindowsMobileOS:l.oss.WindowsMobileOS}}(),i.findMatch=function(t,e){for(var i in t)if(n.call(t,i)&&t[i].test(e))return i;return null},i.findMatches=function(t,e){var i=[];for(var r in t)n.call(t,r)&&t[r].test(e)&&i.push(r);return i},i.getVersionStr=function(t,e){var r,o,a,s,u=i.mobileDetectRules.props;if(n.call(u,t))for(a=(r=u[t]).length,o=0;o<a;++o)if(null!==(s=r[o].exec(e)))return s[1];return null},i.getVersion=function(t,e){var n=i.getVersionStr(t,e);return n?i.prepareVersionNo(n):NaN},i.prepareVersionNo=function(t){var e;return 1===(e=t.split(/[a-z._ \/\-]/i)).length&&(t=e[0]),e.length>1&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},i.isMobileFallback=function(t){return i.detectMobileBrowsers.fullPattern.test(t)||i.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},i.isTabletFallback=function(t){return i.detectMobileBrowsers.tabletPattern.test(t)},i.prepareDetectionCache=function(t,n,r){if(t.mobile===e){var o,a,u;if(a=i.findMatch(i.mobileDetectRules.tablets,n))return t.mobile=t.tablet=a,void(t.phone=null);if(o=i.findMatch(i.mobileDetectRules.phones,n))return t.mobile=t.phone=o,void(t.tablet=null);i.isMobileFallback(n)?(u=s.isPhoneSized(r))===e?(t.mobile=i.FALLBACK_MOBILE,t.tablet=t.phone=null):u?(t.mobile=t.phone=i.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=i.FALLBACK_TABLET,t.phone=null):i.isTabletFallback(n)?(t.mobile=t.tablet=i.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null}},i.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&t.version("iPad")>=4.3||t.os("iOS")&&t.version("iPhone")>=3.1||t.os("iOS")&&t.version("iPod")>=3.1||t.version("Android")>2.1&&t.is("Webkit")||t.version("Windows Phone OS")>=7||t.is("BlackBerry")&&t.version("BlackBerry")>=6||t.match("Playbook.*Tablet")||t.version("webOS")>=1.4&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&t.version("Firefox")>=12||t.is("Chrome")&&t.is("AndroidOS")&&t.version("Android")>=4||t.is("Skyfire")&&t.version("Skyfire")>=4.1&&t.is("AndroidOS")&&t.version("Android")>=2.3||t.is("Opera")&&t.version("Opera Mobi")>11&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&t.version("Bada")>=2||(t.is("UC Browser")||t.is("Dolfin"))&&t.version("Android")>=2.3||t.match("Kindle Fire")||t.is("Kindle")&&t.version("Kindle")>=3||t.is("AndroidOS")&&t.is("NookTablet")||t.version("Chrome")>=11&&!e||t.version("Safari")>=5&&!e||t.version("Firefox")>=4&&!e||t.version("MSIE")>=7&&!e||t.version("Opera")>=10&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&t.version("BlackBerry")>=5&&t.version("BlackBerry")<6||t.version("Opera Mini")>=5&&t.version("Opera Mini")<=6.5&&(t.version("Android")>=2.3||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||t.version("Opera Mobi")>=11&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile"),"C")},i.detectOS=function(t){return i.findMatch(i.mobileDetectRules.oss0,t)||i.findMatch(i.mobileDetectRules.oss,t)},i.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},s.prototype={constructor:s,mobile:function(){return i.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return i.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return i.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===e&&(this._cache.userAgent=i.findMatch(i.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===e&&(this._cache.userAgents=i.findMatches(i.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===e&&(this._cache.os=i.detectOS(this.ua)),this._cache.os},version:function(t){return i.getVersion(t,this.ua)},versionStr:function(t){return i.getVersionStr(t,this.ua)},is:function(t){return o(this.userAgents(),t)||r(t,this.os())||r(t,this.phone())||r(t,this.tablet())||o(i.findMatches(i.mobileDetectRules.utils,this.ua),t)},match:function(t){return t instanceof RegExp||(t=new RegExp(t,"i")),t.test(this.ua)},isPhoneSized:function(t){return s.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===e&&(this._cache.grade=i.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?s.isPhoneSized=function(t){return t<0?e:i.getDeviceSmallerSide()<=t}:s.isPhoneSized=function(){},s._impl=i,s.version="1.4.5 2021-03-13",s}))}(t.exports?function(e){t.exports=e()}:i(497))},656:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t,e){Object(r.a)(2,arguments);var i=Object(n.a)(t),o=Object(n.a)(e),a=i.getTime()-o.getTime();return a<0?-1:a>0?1:a}},657:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(294);function r(t){return Object(n.a)({},t)}},681:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(254),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(n.a)(e);return Object(r.a)(t,-i)}},682:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(255),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(n.a)(e);return Object(r.a)(t,-i)}},683:function(t,e,i){(function(e){!function(t){"use strict";function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,i){if(i||(i="undefined"==typeof window?e:window),void 0!==i[t])return i[t];for(var n=["webkit","moz","ms","o"],r=0,o=n.length,a=t.charAt(0).toUpperCase()+t.substr(1);r<o;r++){var s=i[n[r]+a];if(void 0!==s)return s}return null}function a(t,e,i,n,r,o,s){if("function"!=typeof n)throw new TypeError("Invalid animation rule:",n);var u=t-i,h=u/r,l=0;h>1&&(h=1),1!==h&&(l=n(h),isFinite(l)&&!isNaN(l)&&(h=l)),e&&e(h),u<r?s.frame=j((function(t){return a(t,e,i,n,r,o,s)})):(o&&o(),s.inProgress=!1)}function s(){Array.prototype.constructor.apply(this,arguments)}function u(t,e,i,n,r,o){t.beginPath(),t.moveTo(e+o,i),t.lineTo(e+n-o,i),t.quadraticCurveTo(e+n,i,e+n,i+o),t.lineTo(e+n,i+r-o),t.quadraticCurveTo(e+n,i+r,e+n-o,i+r),t.lineTo(e+o,i+r),t.quadraticCurveTo(e,i+r,e,i+r-o),t.lineTo(e,i+o),t.quadraticCurveTo(e,i,e+o,i),t.closePath()}function h(t,e){var i,n=e.valueDec,r=e.valueInt,o=0,a=void 0,s=void 0;if(i=(t=parseFloat(t))<0,t=Math.abs(t),n>0){for(a=r-(s=t.toFixed(n).toString().split("."))[0].length;o<a;++o)s[0]="0"+s[0];s=(i?"-":"")+s[0]+"."+s[1]}else{for(a=r-(s=Math.round(t).toString()).length;o<a;++o)s="0"+s;s=(i?"-":"")+s}return s}function l(t,e,i){return t["font"+e+"Style"]+" "+t["font"+e+"Weight"]+" "+t["font"+e+"Size"]*i+"px "+t["font"+e]}function c(t){t.shadowOffsetX=null,t.shadowOffsetY=null,t.shadowBlur=null,t.shadowColor="",t.strokeStyle=null,t.lineWidth=0,t.save()}function d(t,e,i,n){e.valueTextShadow&&(t.shadowOffsetX=i,t.shadowOffsetY=i,t.shadowBlur=n,t.shadowColor=e.colorValueTextShadow)}function f(t,e,i,n,r){i.beginPath(),i.arc(0,0,H(t),0,2*q,!0),i.lineWidth=e,i.strokeStyle=r?G.linearGradient(i,n,r,t):n,i.stroke(),i.closePath()}function p(t,e){var i=B.pixelRatio;return t.maxRadius||(t.maxRadius=t.max-e.borderShadowWidth-e.borderOuterWidth*i-e.borderMiddleWidth*i-e.borderInnerWidth*i+(e.borderOuterWidth?.5:0)+(e.borderMiddleWidth?.5:0)+(e.borderInnerWidth?.5:0)),t.maxRadius}function m(t,e){var i=B.pixelRatio,n=e.borderShadowWidth*i,r=t.max-n-e.borderOuterWidth*i/2,o=r-e.borderOuterWidth*i/2-e.borderMiddleWidth*i/2+.5,a=o-e.borderMiddleWidth*i/2-e.borderInnerWidth*i/2+.5,s=p(t,e),u=void 0,h=!1;t.save(),e.borderOuterWidth&&(h=G.drawShadow(t,e,h),f(r,e.borderOuterWidth*i,t,e.colorBorderOuter,e.colorBorderOuterEnd)),e.borderMiddleWidth&&(h=G.drawShadow(t,e,h),f(o,e.borderMiddleWidth*i,t,e.colorBorderMiddle,e.colorBorderMiddleEnd)),e.borderInnerWidth&&(h=G.drawShadow(t,e,h),f(a,e.borderInnerWidth*i,t,e.colorBorderInner,e.colorBorderInnerEnd)),G.drawShadow(t,e,h),t.beginPath(),t.arc(0,0,H(s),0,2*q,!0),e.colorPlateEnd?((u=t.createRadialGradient(0,0,s/2,0,0,s)).addColorStop(0,e.colorPlate),u.addColorStop(1,e.colorPlateEnd)):u=e.colorPlate,t.fillStyle=u,t.fill(),t.closePath(),t.restore()}function g(t,e){var i=t.max*(parseFloat(e.highlightsWidth)||0)/100;if(i){var n=H(v(t,e)-i/2),r=0,o=e.highlights.length,a=(e.maxValue-e.minValue)/e.ticksAngle;for(t.save();r<o;r++){var s=e.highlights[r];t.beginPath(),t.rotate(W),t.arc(0,0,n,G.radians(e.startAngle+(s.from-e.minValue)/a),G.radians(e.startAngle+(s.to-e.minValue)/a),!1),t.strokeStyle=s.color,t.lineWidth=i,t.lineCap=e.highlightsLineCap,t.stroke(),t.closePath(),t.restore(),t.save()}}}function b(t,e){var i=v(t,e),n=void 0,r=void 0,o=void 0,a=0,s=0,u=Math.abs(e.minorTicks)||0,h=e.ticksAngle/(e.maxValue-e.minValue);for(t.lineWidth=B.pixelRatio,t.strokeStyle=e.colorMinorTicks||e.colorStrokeTicks,t.save(),e.exactTicks?(r=e.maxValue-e.minValue,n=u?r/u:0,s=(V.mod(e.majorTicks[0],u)||0)*h):n=u*(e.majorTicks.length-1);a<n;++a)(o=e.startAngle+s+a*(e.ticksAngle/n))<=e.ticksAngle+e.startAngle&&(t.rotate(G.radians(o)),t.beginPath(),t.moveTo(0,i),t.lineTo(0,i-.075*t.max),_(t))}function v(t,e){var i=t.max/100;return p(t,e)-5*i-(e.barWidth?2*(parseFloat(e.barStrokeWidth)||0)+((parseFloat(e.barWidth)||0)+5)*i:0)}function y(t,e){G.prepareTicks(e);var i,n=H(v(t,e)),r=void 0,o=e.majorTicks.length,a=B.pixelRatio;for(t.lineWidth=2*a,t.save(),i=e.colorMajorTicks instanceof Array?e.colorMajorTicks:new Array(o).fill(e.colorStrokeTicks||e.colorMajorTicks),r=0;r<o;++r)t.strokeStyle=i[r],t.rotate(G.radians(w(e,e.exactTicks?e.majorTicks[r]:r,o))),t.beginPath(),t.moveTo(0,n),t.lineTo(0,n-.15*t.max),_(t);e.strokeTicks&&(t.strokeStyle=e.colorStrokeTicks||i[0],t.rotate(W),t.beginPath(),t.arc(0,0,n,G.radians(e.startAngle),G.radians(e.startAngle+e.ticksAngle),!1),_(t))}function w(t,e,i){if(t.exactTicks){var n=t.ticksAngle/(t.maxValue-t.minValue);return t.startAngle+n*(e-t.minValue)}return t.startAngle+e*(t.ticksAngle/(i-1))}function _(t){t.stroke(),t.restore(),t.closePath(),t.save()}function M(t,e){var i=v(t,e)-.15*t.max,n={},r=0,o=e.majorTicks.length,a="needle"!==e.animationTarget,s=e.colorNumbers instanceof Array?e.colorNumbers:new Array(o).fill(e.colorNumbers),u=a?-(e.value-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle:0;for(a&&(t.save(),t.rotate(-G.radians(u))),t.font=G.font(e,"Numbers",t.max/200),t.lineWidth=0,t.textAlign="center",t.textBaseline="middle";r<o;++r){var h=u+w(e,e.exactTicks?e.majorTicks[r]:r,o),l=t.measureText(e.majorTicks[r]).width,c=e.fontNumbersSize,d=Math.sqrt(l*l+c*c)/2,f=G.radialPoint(i-d-e.numbersMargin/100*t.max,G.radians(h));360===h&&(h=0),n[h]||(n[h]=!0,t.fillStyle=s[r],t.fillText(e.majorTicks[r],f.x,f.y))}a&&t.restore()}function x(t,e){e.title&&(t.save(),t.font=G.font(e,"Title",t.max/200),t.fillStyle=e.colorTitle,t.textAlign="center",t.fillText(e.title,0,-t.max/4.25,.8*t.max),t.restore())}function S(t,e){e.units&&(t.save(),t.font=G.font(e,"Units",t.max/200),t.fillStyle=e.colorUnits,t.textAlign="center",t.fillText(G.formatContext(e,e.units),0,t.max/3.25,.8*t.max),t.restore())}function T(t,e){if(e.needle){var i=e.ticksAngle<360?G.normalizedValue(e).indented:e.value,n=d?e.startAngle:e.startAngle+(i-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle;"right"===e.barStartPosition&&(n=e.startAngle+e.ticksAngle-(i-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle);var r=p(t,e),o=H(r/100*e.needleCircleSize),a=H(r/100*e.needleCircleSize*.75),s=H(r/100*e.needleEnd),u=H(e.needleStart?r/100*e.needleStart:0),h=r/100*e.needleWidth,l=r/100*e.needleWidth/2,c=B.pixelRatio,d="needle"!==e.animationTarget;t.save(),G.drawNeedleShadow(t,e),t.rotate(G.radians(n)),t.fillStyle=G.linearGradient(t,e.colorNeedle,e.colorNeedleEnd,s-u),"arrow"===e.needleType?(t.beginPath(),t.moveTo(-l,-u),t.lineTo(-h,0),t.lineTo(-1*c,s),t.lineTo(c,s),t.lineTo(h,0),t.lineTo(l,-u),t.closePath(),t.fill(),t.beginPath(),t.lineTo(-.5*c,s),t.lineTo(-1*c,s),t.lineTo(-h,0),t.lineTo(-l,-u),t.lineTo(l/2*c-2*c,-u),t.closePath(),t.fillStyle=e.colorNeedleShadowUp,t.fill()):(t.beginPath(),t.moveTo(-l,s),t.lineTo(-l,u),t.lineTo(l,u),t.lineTo(l,s),t.closePath(),t.fill()),e.needleCircleSize&&(t.restore(),G.drawNeedleShadow(t,e),e.needleCircleOuter&&(t.beginPath(),t.arc(0,0,o,0,2*q,!0),t.fillStyle=G.linearGradient(t,e.colorNeedleCircleOuter,e.colorNeedleCircleOuterEnd,o),t.fill(),t.closePath()),e.needleCircleInner&&(t.beginPath(),t.arc(0,0,a,0,2*q,!0),t.fillStyle=G.linearGradient(t,e.colorNeedleCircleInner,e.colorNeedleCircleInnerEnd,a),t.fill(),t.closePath()),t.restore())}}function A(t,e,i){G.drawValueBox(t,e,i,0,t.max-.33*t.max,t.max)}function C(t,e){var i=t.max/100,n=p(t,e)-5*i,r=parseFloat(e.barStrokeWidth+"")||0,o=(parseFloat(e.barWidth+"")||0)*i,a=n-2*r-o,s=(n-a)/2,u=a+s,h=r/u,l=e.startAngle,c=e.startAngle+e.ticksAngle;if(t.save(),t.rotate(W),r&&(t.beginPath(),t.arc(0,0,u,G.radians(l)-h,G.radians(c)+h,!1),t.strokeStyle=e.colorBarStroke,t.lineWidth=2*s,t.stroke(),t.closePath()),o&&(t.beginPath(),t.arc(0,0,u,G.radians(l),G.radians(c),!1),t.strokeStyle=e.colorBar,t.lineWidth=o,t.stroke(),t.closePath(),e.barShadow&&(t.beginPath(),t.arc(0,0,n,G.radians(l),G.radians(c),!1),t.clip(),t.beginPath(),t.strokeStyle=e.colorBar,t.lineWidth=1,t.shadowBlur=e.barShadow,t.shadowColor=e.colorBarShadow,t.shadowOffsetX=0,t.shadowOffsetY=0,t.arc(0,0,n,G.radians(e.startAngle),G.radians(e.startAngle+e.ticksAngle),!1),t.stroke(),t.closePath(),t.restore(),t.rotate(W)),e.barProgress)){var d=function(t){var e=t.startAngle,i=t.startAngle+t.ticksAngle,n=e,r=e+(G.normalizedValue(t).normal-t.minValue)/(t.maxValue-t.minValue)*t.ticksAngle;if("middle"===t.barStartPosition){var o=.5*(t.minValue+t.maxValue);t.value<o?(n=180-(o-G.normalizedValue(t).normal)/(t.maxValue-t.minValue)*t.ticksAngle,r=180):(n=180,r=180+(G.normalizedValue(t).normal-o)/(t.maxValue-t.minValue)*t.ticksAngle)}else"right"===t.barStartPosition&&(n=i-r+e,r=i);return{startAngle:n,endAngle:r}}(e),f=d.startAngle,m=d.endAngle;t.beginPath(),t.arc(0,0,u,G.radians(f),G.radians(m),!1),t.strokeStyle=e.colorBarProgress,t.lineWidth=o,t.stroke(),t.closePath()}t.restore()}function E(t){return t.options.animatedValue?t.options.value:t.value}var k=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0},O=function t(e,i,n,r){var o=Object.getOwnPropertyDescriptor(e,i);if(void 0===o){var a=Object.getPrototypeOf(e);null!==a&&t(a,i,n,r)}else if("value"in o&&o.writable)o.value=n;else{var s=o.set;void 0!==s&&s.call(r,n)}return n},P=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var i=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o=Object.keys(Object(r)),a=0,s=o.length;a<s;a++){var u=o[a],h=Object.getOwnPropertyDescriptor(r,u);void 0!==h&&h.enumerable&&(i[u]=r[u])}}return i}}),Array.prototype.indexOf||Object.defineProperty(Array.prototype,"indexOf",{value:function(t,e){var i;if(null===this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return-1;var o=+e||0;if(Math.abs(o)===1/0&&(o=0),o>=r)return-1;for(i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;){if(i in n&&n[i]===t)return i;i++}return-1}}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null===this)throw new TypeError("this is null or not defined");for(var e=Object(this),i=e.length>>>0,n=arguments[1],r=n>>0,o=r<0?Math.max(i+r,0):Math.min(r,i),a=arguments[2],s=void 0===a?i:a>>0,u=s<0?Math.max(i+s,0):Math.min(s,i);o<u;)e[o]=t,o++;return e}}),"undefined"==typeof window&&(window=void 0===e?{}:e);var I=function(){function t(){r(this,t),this._events={},this.addListener=this.on,this.removeListener=this.off}return P(t,[{key:"emit",value:function(t){if(this._events[t]){for(var e=0,i=this._events[t].length,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;e<i;e++)this._events[t][e]&&this._events[t][e].apply(this,r)}}},{key:"once",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0,o=i.length,a=this;r<o;r++)!function(){var e=i[r];i[r]=function i(){a.off(t,i),e.apply(a,arguments)}}();this.on.apply(this,[t].concat(i))}},{key:"on",value:function(t){this._events[t]||(this._events[t]=[]);for(var e=0,i=arguments.length<=1?0:arguments.length-1;e<i;e++)this._events[t].push(arguments.length<=e+1?void 0:arguments[e+1])}},{key:"off",value:function(t){if(this._events[t])for(var e=0,i=arguments.length<=1?0:arguments.length-1;e<i;e++)for(var n=arguments.length<=e+1?void 0:arguments[e+1],r=void 0;~(r=this._events[t].indexOf(n));)this._events[t].splice(r,1)}},{key:"removeAllListeners",value:function(t){delete this._events[t]}},{key:"listeners",get:function(){return this._events}}]),t}(),j=o("requestAnimationFrame")||function(t){return setTimeout((function(){return t((new Date).getTime())}),1e3/60)},R={linear:function(t){return t},quad:function(t){return Math.pow(t,2)},dequad:function(t){return 1-R.quad(1-t)},quint:function(t){return Math.pow(t,5)},dequint:function(t){return 1-Math.pow(1-t,5)},cycle:function(t){return 1-Math.sin(Math.acos(t))},decycle:function(t){return Math.sin(Math.acos(1-t))},bounce:function(t){return 1-R.debounce(1-t)},debounce:function(t){for(var e=0,i=1;;e+=i,i/=2)if(t>=(7-4*e)/11)return-Math.pow((11-6*e-11*t)/4,2)+Math.pow(i,2)},elastic:function(t){return 1-R.delastic(1-t)},delastic:function(t){return Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*1.5/3*t)}},D=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(r(this,t),this.duration=i,this.rule=e,this.draw=n,this.end=o,"function"!=typeof this.draw)throw new TypeError("Invalid animation draw callback:",n);if("function"!=typeof this.end)throw new TypeError("Invalid animation end callback:",o)}return P(t,[{key:"animate",value:function(t,e){var i=this;this.frame&&this.cancel();var n=window.performance&&window.performance.now?window.performance.now():o("animationStartTime")||Date.now();t=t||this.draw,e=e||this.end,this.draw=t,this.end=e,this.frame=j((function(r){return a(r,t,n,R[i.rule]||i.rule,i.duration,e,i)}))}},{key:"cancel",value:function(){this.frame&&((o("cancelAnimationFrame")||function(t){})(this.frame),this.frame=null)}},{key:"destroy",value:function(){this.cancel(),this.draw=null,this.end=null}}]),t}();D.rules=R;var L=function(){function e(i,n,o){r(this,e),this.options=i,this.element=n.toLowerCase(),this.type=e.toDashed(o),this.Type=t[o],this.mutationsObserved=!1,this.isObservable=!!window.MutationObserver,window.GAUGES_NO_AUTO_INIT||e.domReady(this.traverse.bind(this))}return P(e,[{key:"isValidNode",value:function(t){return!(!t.tagName||t.tagName.toLowerCase()!==this.element||t.getAttribute("data-type")!==this.type)}},{key:"traverse",value:function(){for(var t=document.getElementsByTagName(this.element),e=0,i=t.length;e<i;e++)this.process(t[e]);this.isObservable&&!this.mutationsObserved&&(new MutationObserver(this.observe.bind(this)).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0}),this.mutationsObserved=!0)}},{key:"observe",value:function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e];if("attributes"===n.type&&"data-type"===n.attributeName&&this.isValidNode(n.target)&&n.oldValue!==this.type)setTimeout(this.process.bind(this,n.target));else if(n.addedNodes&&n.addedNodes.length)for(var r=0,o=n.addedNodes.length;r<o;r++)setTimeout(this.process.bind(this,n.addedNodes[r]))}}},{key:"process",value:function(t){var i=this;if(!this.isValidNode(t))return null;var n=void 0,r=JSON.parse(JSON.stringify(this.options)),o=null;for(n in r)if(r.hasOwnProperty(n)){var a=e.toAttributeName(n),s=e.parse(t.getAttribute(a));null!=s&&(r[n]=s)}return r.renderTo=t,(o=new this.Type(r)).draw&&o.draw(),this.isObservable?(o.observer=new MutationObserver((function(n){n.forEach((function(n){if("attributes"===n.type){var r=n.attributeName.toLowerCase(),a=t.getAttribute(r).toLowerCase();if("data-type"===r&&a&&a!==i.type)o.observer.disconnect(),delete o.observer,o.destroy&&o.destroy();else if("data-"===r.substr(0,5)){var s=r.substr(5).split("-").map((function(t,e){return e?t.charAt(0).toUpperCase()+t.substr(1):t})).join(""),u={};u[s]=e.parse(t.getAttribute(n.attributeName)),"value"===s?o&&(o.value=u[s]):o.update&&o.update(u)}}}))})),o.observer.observe(t,{attributes:!0}),o):o}}],[{key:"parse",value:function(t){if("true"===t)return!0;if("false"===t)return!1;if("undefined"!==t){if("null"===t)return null;if(/^[-+#.\w\d\s]+(?:,[-+#.\w\d\s]*)+$/.test(t))return t.split(",");try{return JSON.parse(t)}catch(t){}return t}}},{key:"toDashed",value:function(t){for(var e=t.split(/(?=[A-Z])/),i=1,n=e.length,r=e[0].toLowerCase();i<n;i++)r+="-"+e[i].toLowerCase();return r}},{key:"toCamelCase",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.split(/-/),n=0,r=i.length,o="";n<r;n++)o+=n||e?i[n][0].toUpperCase()+i[n].substr(1).toLowerCase():i[n].toLowerCase();return o}},{key:"toAttributeName",value:function(t){return"data-"+e.toDashed(t)}},{key:"domReady",value:function(t){if(/comp|inter|loaded/.test((window.document||{}).readyState+""))return t();window.addEventListener?window.addEventListener("DOMContentLoaded",t,!1):window.attachEvent&&window.attachEvent("onload",t)}}]),e}(),B=function(){function t(e,i,n){r(this,t),t.collection.push(this),this.width=i||0,this.height=n||0,this.element=e,this.init()}return P(t,[{key:"init",value:function(){var e=t.pixelRatio;this.element.width=this.width*e,this.element.height=this.height*e,this.element.style.width=this.width+"px",this.element.style.height=this.height+"px",this.elementClone=this.element.cloneNode(!0),this.context=this.element.getContext("2d"),this.contextClone=this.elementClone.getContext("2d"),this.drawWidth=this.element.width,this.drawHeight=this.element.height,this.drawX=this.drawWidth/2,this.drawY=this.drawHeight/2,this.minSide=this.drawX<this.drawY?this.drawX:this.drawY,this.elementClone.initialized=!1,this.contextClone.translate(this.drawX,this.drawY),this.contextClone.save(),this.context.translate(this.drawX,this.drawY),this.context.save(),this.context.max=this.contextClone.max=this.minSide,this.context.maxRadius=this.contextClone.maxRadius=null}},{key:"destroy",value:function(){var e=t.collection.indexOf(this);~e&&t.collection.splice(e,1),this.context.clearRect(-this.drawX,-this.drawY,this.drawWidth,this.drawHeight),this.context.max=null,delete this.context.max,this.context.maxRadius=null,delete this.context.maxRadius,this.context=null,this.contextClone=null,this.elementClone=null,this.element=null,this.onRedraw=null}},{key:"commit",value:function(){var e=t.pixelRatio;return 1!==e&&(this.contextClone.scale(e,e),this.contextClone.save()),this}},{key:"redraw",value:function(){return this.init(),this.onRedraw&&this.onRedraw(),this}}],[{key:"redraw",value:function(){for(var e=0,i=t.collection.length;e<i;e++)t.collection[e].redraw()}},{key:"pixelRatio",get:function(){return window.devicePixelRatio||1}}]),t}();B.collection=[],window.matchMedia&&window.matchMedia("screen and (min-resolution: 2dppx)").addListener(B.redraw);var N={renderTo:null,width:0,height:0,minValue:0,maxValue:100,value:0,units:!1,exactTicks:!1,majorTicks:[0,20,40,60,80,100],minorTicks:10,strokeTicks:!0,animatedValue:!1,animateOnInit:!1,title:!1,borders:!0,numbersMargin:1,listeners:null,valueInt:3,valueDec:2,majorTicksInt:1,majorTicksDec:0,animation:!0,animationDuration:500,animationRule:"cycle",colorPlate:"#fff",colorPlateEnd:"",colorMajorTicks:"#444",colorMinorTicks:"#666",colorStrokeTicks:"",colorTitle:"#888",colorUnits:"#888",colorNumbers:"#444",colorNeedle:"rgba(240,128,128,1)",colorNeedleEnd:"rgba(255,160,122,.9)",colorValueText:"#444",colorValueTextShadow:"rgba(0,0,0,0.3)",colorBorderShadow:"rgba(0,0,0,0.5)",colorBorderOuter:"#ddd",colorBorderOuterEnd:"#aaa",colorBorderMiddle:"#eee",colorBorderMiddleEnd:"#f0f0f0",colorBorderInner:"#fafafa",colorBorderInnerEnd:"#ccc",colorValueBoxRect:"#888",colorValueBoxRectEnd:"#666",colorValueBoxBackground:"#babab2",colorValueBoxShadow:"rgba(0,0,0,1)",colorNeedleShadowUp:"rgba(2,255,255,0.2)",colorNeedleShadowDown:"rgba(188,143,143,0.45)",colorBarStroke:"#222",colorBar:"#ccc",colorBarProgress:"#888",colorBarShadow:"#000",fontNumbers:"Arial",fontTitle:"Arial",fontUnits:"Arial",fontValue:"Arial",fontNumbersSize:20,fontTitleSize:24,fontUnitsSize:22,fontValueSize:26,fontNumbersStyle:"normal",fontTitleStyle:"normal",fontUnitsStyle:"normal",fontValueStyle:"normal",fontNumbersWeight:"normal",fontTitleWeight:"normal",fontUnitsWeight:"normal",fontValueWeight:"normal",needle:!0,needleShadow:!0,needleType:"arrow",needleStart:5,needleEnd:85,needleWidth:4,borderOuterWidth:3,borderMiddleWidth:3,borderInnerWidth:3,borderShadowWidth:3,valueBox:!0,valueBoxStroke:5,valueBoxWidth:0,valueText:"",valueTextShadow:!0,valueBoxBorderRadius:2.5,highlights:[{from:20,to:60,color:"#eee"},{from:60,to:80,color:"#ccc"},{from:80,to:100,color:"#999"}],highlightsWidth:15,highlightsLineCap:"butt",barWidth:20,barStrokeWidth:0,barProgress:!0,barShadow:0};s.prototype=Object.create(Array.prototype),s.prototype.constructor=s,s.prototype.get=function(t){if("string"==typeof t)for(var e=0,i=this.length;e<i;e++){if((this[e].options.renderTo.tagName?this[e].options.renderTo:document.getElementById(this[e].options.renderTo||"")).getAttribute("id")===t)return this[e]}else if("number"==typeof t)return this[t];return null};var z="2.1.7",H=(Math.round,Math.abs),F=new s;F.version=z;var V=function(e){function o(e){r(this,o);var n=i(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),a=n.constructor.name;if("BaseGauge"===a)throw new TypeError("Attempt to instantiate abstract class!");if(F.push(n),e.listeners&&Object.keys(e.listeners).forEach((function(t){(e.listeners[t]instanceof Array?e.listeners[t]:[e.listeners[t]]).forEach((function(e){n.on(t,e)}))})),n.version=z,n.type=t[a]||o,n.initialized=!1,e.minValue=parseFloat(e.minValue),e.maxValue=parseFloat(e.maxValue),e.value=parseFloat(e.value)||0,e.borders||(e.borderInnerWidth=e.borderMiddleWidth=e.borderOuterWidth=0),!e.renderTo)throw TypeError("Canvas element was not specified when creating the Gauge object!");var s=e.renderTo.tagName?e.renderTo:document.getElementById(e.renderTo);if(!(s instanceof HTMLCanvasElement))throw TypeError("Given gauge canvas element is invalid!");return e.width=parseFloat(e.width)||0,e.height=parseFloat(e.height)||0,e.width&&e.height||(e.width||(e.width=s.parentNode?s.parentNode.offsetWidth:s.offsetWidth),e.height||(e.height=s.parentNode?s.parentNode.offsetHeight:s.offsetHeight)),n.options=e||{},n.options.animateOnInit&&(n._value=n.options.value,n.options.value=n.options.minValue),n.canvas=new B(s,e.width,e.height),n.canvas.onRedraw=n.draw.bind(n),n.animation=new D(e.animationRule,e.animationDuration),n}return n(o,e),P(o,[{key:"update",value:function(t){return Object.assign(this.options,this.type.configure(t||{})),this.canvas.width=this.options.width,this.canvas.height=this.options.height,this.animation.rule=this.options.animationRule,this.animation.duration=this.options.animationDuration,this.canvas.redraw(),this}},{key:"destroy",value:function(){var t=F.indexOf(this);~t&&F.splice(t,1),this.canvas.destroy(),this.canvas=null,this.animation.destroy(),this.animation=null,this.emit("destroy")}},{key:"draw",value:function(){return this.options.animateOnInit&&!this.initialized&&(this.value=this._value,this.initialized=!0,this.emit("init")),this.emit("render"),this}},{key:"value",set:function(t){var e=this;t=o.ensureValue(t,this.options.minValue);var i=this.options.value;if(t!==i)if(this.options.animation){if(this.animation.frame&&(this.options.value=this._value,this._value===t))return this.animation.cancel(),void delete this._value;void 0===this._value&&(this._value=t),this.emit("animationStart"),this.animation.animate((function(n){var r=i+(t-i)*n;e.options.animatedValue&&e.emit("value",r,e.value),e.options.value=r,e.draw(),e.emit("animate",n,e.options.value)}),(function(){void 0!==e._value&&(e.emit("value",e._value,e.value),e.options.value=e._value,delete e._value),e.draw(),e.emit("animationEnd")}))}else this.emit("value",t,this.value),this.options.value=t,this.draw()},get:function(){return void 0===this._value?this.options.value:this._value}}],[{key:"configure",value:function(t){return t}},{key:"initialize",value:function(t,e){return new L(e,"canvas",t)}},{key:"fromElement",value:function(t){var e=L.toCamelCase(t.getAttribute("data-type")),i=t.attributes,n=0,r=i.length,o={};if(e){for(/Gauge$/.test(e)||(e+="Gauge");n<r;n++)o[L.toCamelCase(i[n].name.replace(/^data-/,""),!1)]=L.parse(i[n].value);new L(o,t.tagName,e).process(t)}}},{key:"ensureValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=parseFloat(t),!isNaN(t)&&isFinite(t)||(t=parseFloat(e)||0),t}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"version",get:function(){return z}}]),o}(I);void 0!==t&&(t.BaseGauge=V,t.gauges=(window.document||{}).gauges=F);var U=/{([_a-zA-Z]+[_a-zA-Z0-9]*)}/g,G={roundRect:u,padValue:h,formatMajorTickNumber:function(t,e){var i=void 0,n=!1;return i=0===e.majorTicksDec?Math.round(t).toString():t.toFixed(e.majorTicksDec),e.majorTicksInt>1?(n=~i.indexOf("."),~i.indexOf("-")?"-"+[e.majorTicksInt+e.majorTicksDec+2+(n?1:0)-i.length].join("0")+i.replace("-",""):[e.majorTicksInt+e.majorTicksDec+1+(n?1:0)-i.length].join("0")+i):i},radians:function(t){return t*Math.PI/180},radialPoint:function(t,e){return{x:-t*Math.sin(e),y:t*Math.cos(e)}},linearGradient:function(t,e,i,n){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=t.createLinearGradient(r?0:o,r?o:0,r?0:n,r?n:0);return a.addColorStop(0,e),a.addColorStop(1,i),a},drawNeedleShadow:function(t,e){e.needleShadow&&(t.shadowOffsetX=2,t.shadowOffsetY=2,t.shadowBlur=10,t.shadowColor=e.colorNeedleShadowDown)},drawValueBox:function(t,e,i,n,r,o){if(e.valueBox){c(t);var a=e.valueDec?1+e.valueDec:0,s="9".repeat(Math.max.apply(null,[String(parseInt(i)).length+a].concat(e.majorTicks.map((function(t){return String(parseInt(t,10)).length+a}))))),f=e.valueText||h(i,e),p=o/200,m=o/100,g=.4*m,b=1.2*m;t.font=l(e,"Value",p),d(t,e,g,b);var v=t.measureText(e.valueText?f:"-"+h(Number(s),e)).width;c(t);var y=parseFloat(e.fontValueSize)*p+g+b,w=m*parseFloat(e.valueBoxStroke),_=2*o-2*w,M=v+10*m,x=1.1*y+g+b,S=m*e.valueBoxBorderRadius,T=(parseFloat(e.valueBoxWidth)||0)/100*_;T>M&&(M=T),M>_&&(M=_);var A=n-M/2,C=r-x/2,E=r-5.75*m;if(t.beginPath(),S?u(t,A,C,M,x,S):t.rect(A,C,M,x),w){var k=t.createRadialGradient(n,E,10*m,n,E,20*m);k.addColorStop(0,e.colorValueBoxRect),k.addColorStop(1,e.colorValueBoxRectEnd),t.strokeStyle=k,t.lineWidth=w,t.stroke()}e.colorValueBoxShadow&&(t.shadowBlur=1.2*m,t.shadowColor=e.colorValueBoxShadow),e.colorValueBoxBackground&&(t.fillStyle=e.colorValueBoxBackground,t.fill()),t.closePath(),t.restore(),d(t,e,g,b),t.fillStyle=e.colorValueText,t.textAlign="center",t.textBaseline="alphabetic",t.fillText(f,A+M/2,r+x/2-y/3),t.restore()}},verifyError:function(t){if(!(t instanceof DOMException&&2152923147===t.result))throw t},prepareTicks:function(t){return t.majorTicks instanceof Array||(t.majorTicks=t.majorTicks?[t.majorTicks]:[]),t.majorTicks.length||(t.majorTicks.push(G.formatMajorTickNumber(t.minValue,t)),t.majorTicks.push(G.formatMajorTickNumber(t.maxValue,t))),["right"!==t.tickSide,"left"!==t.tickSide]},drawShadow:function(t,e){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t.restore(),!0;t.save();var i=e.borderShadowWidth;return i&&(t.shadowBlur=i,t.shadowColor=e.colorBorderShadow),!0},font:l,normalizedValue:function(t){var e=t.value,i=t.minValue,n=t.maxValue,r=.01*(n-i);return{normal:e<i?i:e>n?n:e,indented:e<i?i-r:e>n?n+r:e}},formatContext:function(t,e){return e.replace(U,(function(e,i){var n=t[i];return void 0!==n?n:e}))}},q=Math.PI,W=q/2,Z=Object.assign({},N,{ticksAngle:270,startAngle:45,colorNeedleCircleOuter:"#f0f0f0",colorNeedleCircleOuterEnd:"#ccc",colorNeedleCircleInner:"#e8e8e8",colorNeedleCircleInnerEnd:"#f5f5f5",needleCircleSize:10,needleCircleInner:!0,needleCircleOuter:!0,needleStart:20,animationTarget:"needle",useMinPath:!1,barWidth:0,barStartPosition:"left"}),Y=function(t){function e(t){return r(this,e),t=Object.assign({},Z,t||{}),i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,e.configure(t)))}return n(e,t),P(e,[{key:"draw",value:function(){try{var t=this.canvas,i=[-t.drawX,-t.drawY,t.drawWidth,t.drawHeight],n=i[0],r=i[1],o=i[2],a=i[3],s=this.options;if("needle"===s.animationTarget){if(!t.elementClone.initialized){var u=t.contextClone;u.clearRect(n,r,o,a),u.save(),this.emit("beforePlate"),m(u,s),this.emit("beforeHighlights"),g(u,s),this.emit("beforeMinorTicks"),b(u,s),this.emit("beforeMajorTicks"),y(u,s),this.emit("beforeNumbers"),M(u,s),this.emit("beforeTitle"),x(u,s),this.emit("beforeUnits"),S(u,s),t.elementClone.initialized=!0}this.canvas.commit(),t.context.clearRect(n,r,o,a),t.context.save(),t.context.drawImage(t.elementClone,n,r,o,a),t.context.save(),this.emit("beforeProgressBar"),C(t.context,s),this.emit("beforeValueBox"),A(t.context,s,E(this)),this.emit("beforeNeedle"),T(t.context,s)}else{var h=-G.radians((s.value-s.minValue)/(s.maxValue-s.minValue)*s.ticksAngle);if(t.context.clearRect(n,r,o,a),t.context.save(),this.emit("beforePlate"),m(t.context,s),t.context.rotate(h),this.emit("beforeHighlights"),g(t.context,s),this.emit("beforeMinorTicks"),b(t.context,s),this.emit("beforeMajorTicks"),y(t.context,s),this.emit("beforeNumbers"),M(t.context,s),this.emit("beforeProgressBar"),C(t.context,s),t.context.rotate(-h),t.context.save(),!t.elementClone.initialized){var l=t.contextClone;l.clearRect(n,r,o,a),l.save(),this.emit("beforeTitle"),x(l,s),this.emit("beforeUnits"),S(l,s),this.emit("beforeNeedle"),T(l,s),t.elementClone.initialized=!0}t.context.drawImage(t.elementClone,n,r,o,a)}this.emit("beforeValueBox"),A(t.context,s,E(this)),k(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"draw",this).call(this)}catch(t){G.verifyError(t)}return this}},{key:"value",set:function(t){t=V.ensureValue(t,this.options.minValue),this.options.animation&&360===this.options.ticksAngle&&this.options.useMinPath&&(this._value=t,t=this.options.value+((t-this.options.value)%360+540)%360-180),O(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",t,this)},get:function(){return k(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this)}}],[{key:"configure",value:function(t){return t.barWidth>50&&(t.barWidth=50),isNaN(t.startAngle)&&(t.startAngle=45),isNaN(t.ticksAngle)&&(t.ticksAngle=270),t.ticksAngle>360&&(t.ticksAngle=360),t.ticksAngle<0&&(t.ticksAngle=0),t.startAngle<0&&(t.startAngle=0),t.startAngle>360&&(t.startAngle=360),t}}]),e}(V);void 0!==t&&(t.RadialGauge=Y),V.initialize("RadialGauge",Z),Object.assign(t,{Collection:s,GenericOptions:N,Animation:D,BaseGauge:V,drawings:G,SmartCanvas:B,DomObserver:L,vendorize:o})}(t.exports)}).call(this,i(88))},685:function(t,e,i){"use strict";var n=i(180),r=i(305),o=i(688),a=i(687),s=i(686),u=i(125),h=i(117),l=/^(1[0-2]|0?\d)/,c=/^(3[0-1]|[0-2]?\d)/,d=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,f=/^(5[0-3]|[0-4]?\d)/,p=/^(2[0-3]|[0-1]?\d)/,m=/^(2[0-4]|[0-1]?\d)/,g=/^(1[0-1]|0?\d)/,b=/^(1[0-2]|0?\d)/,v=/^[0-5]?\d/,y=/^[0-5]?\d/,w=/^\d/,_=/^\d{1,2}/,M=/^\d{1,3}/,x=/^\d{1,4}/,S=/^-?\d+/,T=/^-?\d/,A=/^-?\d{1,2}/,C=/^-?\d{1,3}/,E=/^-?\d{1,4}/,k=/^([+-])(\d{2})(\d{2})?|Z/,O=/^([+-])(\d{2})(\d{2})|Z/,P=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,I=/^([+-])(\d{2}):(\d{2})|Z/,j=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function R(t,e,i){var n=e.match(t);if(!n)return null;var r=parseInt(n[0],10);return{value:i?i(r):r,rest:e.slice(n[0].length)}}function D(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function L(t,e){return R(S,t,e)}function B(t,e,i){switch(t){case 1:return R(w,e,i);case 2:return R(_,e,i);case 3:return R(M,e,i);case 4:return R(x,e,i);default:return R(new RegExp("^\\d{1,"+t+"}"),e,i)}}function N(t,e,i){switch(t){case 1:return R(T,e,i);case 2:return R(A,e,i);case 3:return R(C,e,i);case 4:return R(E,e,i);default:return R(new RegExp("^-?\\d{1,"+t+"}"),e,i)}}function z(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function H(t,e){var i,n=e>0,r=n?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}var F=[31,28,31,30,31,30,31,31,30,31,30,31],V=[31,29,31,30,31,30,31,31,30,31,30,31];function U(t){return t%400==0||t%4==0&&t%100!=0}var G={G:{priority:140,parse:function(t,e,i,n){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}},set:function(t,e,i,n){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,i,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return B(4,t,r);case"yo":return i.ordinalNumber(t,{unit:"year",valueCallback:r});default:return B(e.length,t,r)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i,n){var r=t.getUTCFullYear();if(i.isTwoDigitYear){var o=H(i.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var a="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,i,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return B(4,t,r);case"Yo":return i.ordinalNumber(t,{unit:"year",valueCallback:r});default:return B(e.length,t,r)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i,r){var o=Object(n.a)(t,r);if(i.isTwoDigitYear){var a=H(i.year,o);return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(h.a)(t,r)}var s="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(h.a)(t,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,i,n){return N("R"===e?4:e.length,t)},set:function(t,e,i,n){var r=new Date(0);return r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0),Object(u.a)(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,i,n){return N("u"===e?4:e.length,t)},set:function(t,e,i,n){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,i,n){switch(e){case"Q":case"QQ":return B(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i,n){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,i,n){switch(e){case"q":case"qq":return B(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i,n){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,i,n){var r=function(t){return t-1};switch(e){case"M":return R(l,t,r);case"MM":return B(2,t,r);case"Mo":return i.ordinalNumber(t,{unit:"month",valueCallback:r});case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,i,n){var r=function(t){return t-1};switch(e){case"L":return R(l,t,r);case"LL":return B(2,t,r);case"Lo":return i.ordinalNumber(t,{unit:"month",valueCallback:r});case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,i,n){switch(e){case"w":return R(f,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i,n){return Object(h.a)(Object(s.a)(t,i,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,i,n){switch(e){case"I":return R(f,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i,n){return Object(u.a)(Object(a.a)(t,i,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,i,n){switch(e){case"d":return R(c,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return B(e.length,t)}},validate:function(t,e,i){var n=U(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=V[r]:e>=1&&e<=F[r]},set:function(t,e,i,n){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,i,n){switch(e){case"D":case"DD":return R(d,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return B(e.length,t)}},validate:function(t,e,i){return U(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,i,n){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,i,n){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Object(r.a)(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,i,n){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return B(e.length,t,r);case"eo":return i.ordinalNumber(t,{unit:"day",valueCallback:r});case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Object(r.a)(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,i,n){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return B(e.length,t,r);case"co":return i.ordinalNumber(t,{unit:"day",valueCallback:r});case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Object(r.a)(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,i,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return B(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return i.day(t,{width:"abbreviated",context:"formatting",valueCallback:r})||i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return i.day(t,{width:"wide",context:"formatting",valueCallback:r})||i.day(t,{width:"abbreviated",context:"formatting",valueCallback:r})||i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(t,e,i){return e>=1&&e<=7},set:function(t,e,i,n){return(t=Object(o.a)(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,i,n){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i,n){return t.setUTCHours(z(i),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,i,n){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i,n){return t.setUTCHours(z(i),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,i,n){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i,n){return t.setUTCHours(z(i),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,i,n){switch(e){case"h":return R(b,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=12},set:function(t,e,i,n){var r=t.getUTCHours()>=12;return r&&i<12?t.setUTCHours(i+12,0,0,0):r||12!==i?t.setUTCHours(i,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,i,n){switch(e){case"H":return R(p,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=23},set:function(t,e,i,n){return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,i,n){switch(e){case"K":return R(g,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.getUTCHours()>=12&&i<12?t.setUTCHours(i+12,0,0,0):t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,i,n){switch(e){case"k":return R(m,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=24},set:function(t,e,i,n){var r=i<=24?i%24:i;return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,i,n){switch(e){case"m":return R(v,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i,n){return t.setUTCMinutes(i,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,i,n){switch(e){case"s":return R(y,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return B(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i,n){return t.setUTCSeconds(i,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,i,n){return B(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,i,n){return t.setUTCMilliseconds(i),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,i,n){switch(e){case"X":return D(k,t);case"XX":return D(O,t);case"XXXX":return D(P,t);case"XXXXX":return D(j,t);case"XXX":default:return D(I,t)}},set:function(t,e,i,n){return e.timestampIsSet?t:new Date(t.getTime()-i)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,i,n){switch(e){case"x":return D(k,t);case"xx":return D(O,t);case"xxxx":return D(P,t);case"xxxxx":return D(j,t);case"xxx":default:return D(I,t)}},set:function(t,e,i,n){return e.timestampIsSet?t:new Date(t.getTime()-i)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,i,n){return L(t)},set:function(t,e,i,n){return[new Date(1e3*i),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,i,n){return L(t)},set:function(t,e,i,n){return[new Date(i),{timestampIsSet:!0}]},incompatibleTokens:"*"}};e.a=G},686:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(23),r=i(21),o=i(289),a=i(19);function s(t,e,i){Object(a.a)(2,arguments);var s=Object(r.a)(t),u=Object(n.a)(e),h=Object(o.a)(s,i)-u;return s.setUTCDate(s.getUTCDate()-7*h),s}},687:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(23),r=i(21),o=i(290),a=i(19);function s(t,e){Object(a.a)(2,arguments);var i=Object(r.a)(t),s=Object(n.a)(e),u=Object(o.a)(i)-s;return i.setUTCDate(i.getUTCDate()-7*u),i}},688:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(23),r=i(21),o=i(19);function a(t,e){Object(o.a)(2,arguments);var i=Object(n.a)(e);i%7==0&&(i-=7);var a=1,s=Object(r.a)(t),u=s.getUTCDay(),h=i%7,l=(h+7)%7,c=(l<a?7:0)+i-u;return s.setUTCDate(s.getUTCDate()+c),s}},692:function(t,e,i){(function(i){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){s(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i&&i.global===i?i:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,i){var s=a.URL||a.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?o(u):r(u.href)?n(t,e,i):o(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,i,a){if(i=i||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),i);else if(r(t))n(t,i,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,i);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&s)&&"object"==typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},h.readAsDataURL(t)}else{var l=a.URL||a.webkitURL,c=l.createObjectURL(t);r?r.location=c:location.href=c,r=null,setTimeout((function(){l.revokeObjectURL(c)}),4e4)}});a.saveAs=s.saveAs=s,t.exports=s})?n.apply(e,r):n)||(t.exports=o)}).call(this,i(88))},694:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(23),r=i(21),o=i(695),a=i(19);function s(t,e){Object(a.a)(2,arguments);var i=Object(r.a)(t),s=Object(n.a)(e),u=i.getFullYear(),h=i.getDate(),l=new Date(0);l.setFullYear(u,s,15),l.setHours(0,0,0,0);var c=Object(o.a)(l);return i.setMonth(s,Math.min(h,c)),i}},695:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=Object(n.a)(t),i=e.getFullYear(),o=e.getMonth(),a=new Date(0);return a.setFullYear(i,o+1,0),a.setHours(0,0,0,0),a.getDate()}},7:function(t,e,i){"use strict";(function(t){function n(t,e,i){if(e){if(e.innerError&&i)return e;var n="\n------------------------------------------------\n";t+=n+"Inner Error:\n","string"==typeof e?t+="Message: "+e:(e.message?t+="Message: "+e.message:t+="Unknown Inner Error Type. Displaying Inner Error as JSON:\n "+JSON.stringify(e,null,"  "),e.stack&&(t+="\nInner Error Stack:\n"+e.stack,t+="\nEnd Inner Error Stack")),t+=n}var r=new Error(t);return e&&(r.innerError=e),r}i.d(e,"a",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"f",(function(){return s})),i.d(e,"e",(function(){return u}));var r={},o={noop:function(){},eachModule:function(){},moduleName:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return t}))};o.global="undefined"!=typeof self?self:void 0!==t?t:new Function("return this")();var a={},s=!1;function u(t){s||(s=!0,"function"!=typeof Object.getPropertyDescriptor&&(Object.getPropertyDescriptor=function(t,e){for(var i=Object.getOwnPropertyDescriptor(t,e),n=Object.getPrototypeOf(t);void 0===i&&null!==n;)i=Object.getOwnPropertyDescriptor(n,e),n=Object.getPrototypeOf(n);return i}),t(o,r,a))}}).call(this,i(88))},70:function(t,e){var i,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,h=[],l=!1,c=-1;function d(){l&&u&&(l=!1,u.length?h=u.concat(h):c=-1,h.length&&f())}function f(){if(!l){var t=s(d);l=!0;for(var e=h.length;e;){for(u=h,h=[];++c<e;)u&&u[c].run();c=-1,e=h.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new p(t,e)),1!==h.length||l||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},702:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t,e){Object(r.a)(2,arguments);var i=Object(n.a)(t),o=Object(n.a)(e);return i.getTime()>o.getTime()}},703:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(21),r=i(19);function o(t){Object(r.a)(1,arguments);var e=Object(n.a)(t),i=e.getHours();return i}},704:function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i(122),r=i(154),o=i(21),a=i(294),s=i(287),u=i(101),h=i(130),l=i(23),c=i(685),d=i(19),f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,b=/\S/,v=/[a-zA-Z]/;function y(t,e,i,m){Object(d.a)(3,arguments);var g=String(t),y=String(e),M=m||{},x=M.locale||n.a;if(!x.match)throw new RangeError("locale must contain match property");var S=x.options&&x.options.firstWeekContainsDate,T=null==S?1:Object(l.a)(S),A=null==M.firstWeekContainsDate?T:Object(l.a)(M.firstWeekContainsDate);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=x.options&&x.options.weekStartsOn,E=null==C?0:Object(l.a)(C),k=null==M.weekStartsOn?E:Object(l.a)(M.weekStartsOn);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===y)return""===g?Object(o.a)(i):new Date(NaN);var O,P={firstWeekContainsDate:A,weekStartsOn:k,locale:x},I=[{priority:10,subPriority:-1,set:w,index:0}],j=y.match(p).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,s.a[e])(t,x.formatLong,P):t})).join("").match(f),R=[];for(O=0;O<j.length;O++){var D=j[O];!M.useAdditionalWeekYearTokens&&Object(h.b)(D)&&Object(h.c)(D,y,t),!M.useAdditionalDayOfYearTokens&&Object(h.a)(D)&&Object(h.c)(D,y,t);var L=D[0],B=c.a[L];if(B){var N=B.incompatibleTokens;if(Array.isArray(N)){for(var z=void 0,H=0;H<R.length;H++){var F=R[H].token;if(-1!==N.indexOf(F)||F===L){z=R[H];break}}if(z)throw new RangeError("The format string mustn't contain `".concat(z.fullToken,"` and `").concat(D,"` at the same time"))}else if("*"===B.incompatibleTokens&&R.length)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));R.push({token:L,fullToken:D});var V=B.parse(g,D,x.match,P);if(!V)return new Date(NaN);I.push({priority:B.priority,subPriority:B.subPriority||0,set:B.set,validate:B.validate,value:V.value,index:I.length}),g=V.rest}else{if(L.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if("''"===D?D="'":"'"===L&&(D=_(D)),0!==g.indexOf(D))return new Date(NaN);g=g.slice(D.length)}}if(g.length>0&&b.test(g))return new Date(NaN);var U=I.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return I.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),G=Object(o.a)(i);if(isNaN(G))return new Date(NaN);var q=Object(r.a)(G,Object(u.a)(G)),W={};for(O=0;O<U.length;O++){var Z=U[O];if(Z.validate&&!Z.validate(q,Z.value,P))return new Date(NaN);var Y=Z.set(q,W,Z.value,P);Y[0]?(q=Y[0],Object(a.a)(W,Y[1])):q=Y}return q}function w(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}function _(t){return t.match(m)[1].replace(g,"'")}},706:function(t,e,i){},707:function(t,e,i){"use strict";var n,r,o,a,s,u,h,l,c,d,f,p=i(7),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};"undefined"==typeof FEATURE_NO_ES2015&&(function(t,e){if(!(e in t)){var i,n=p.d.global,r=0,o=""+Math.random(),a="__symbol:",s=a.length,u="__symbol@@"+o,h="defineProperty",l="defineProperties",c="getOwnPropertyNames",d="getOwnPropertyDescriptor",f="propertyIsEnumerable",g=t[c],b=t[d],v=t.create,y=t.keys,w=t[h],_=t[l],M=b(t,c),x=t.prototype,S=x.hasOwnProperty,T=x[f],A=x.toString,C=(Array.prototype.indexOf,function(t,e,i){S.call(t,u)||w(t,u,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[u]["@@"+e]=i}),E=function(t,e){var i=v(t);return null!==e&&"object"===(void 0===e?"undefined":m(e))&&g(e).forEach((function(t){I.call(e,t)&&N(i,t,e[t])})),i},k=function(){},O=function(t){return t!=u&&!S.call(D,t)},P=function(t){return t!=u&&S.call(D,t)},I=function(t){var e=""+t;return P(e)?S.call(this,e)&&this[u]&&this[u]["@@"+e]:T.call(this,t)},j=function(e){return w(x,e,{enumerable:!1,configurable:!0,get:k,set:function(t){i(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),C(this,e,!0)}}),D[e]=w(t(e),"constructor",L)},R=function(t){if(this&&this!==n)throw new TypeError("Symbol is not a constructor");return j(a.concat(t||"",o,++r))},D=v(null),L={value:R},B=function(t){return D[t]},N=function(t,e,n){var r=""+e;return P(r)?(i(t,r,n.enumerable?function(t){var e=v(t);return e.enumerable=!1,e}(n):n),C(t,r,!!n.enumerable)):w(t,e,n),t},z=function(e){return e="[object String]"===A.call(e)?e.split(""):t(e),g(e).filter(P).map(B)};M.value=N,w(t,h,M),M.value=z,w(t,e,M);var H="object"===("undefined"==typeof window?"undefined":m(window))?t.getOwnPropertyNames(window):[],F=t.getOwnPropertyNames;M.value=function(t){if("[object Window]"===A.call(t))try{return F(t)}catch(t){return[].concat([],H)}return g(t).filter(O)},w(t,c,M),M.value=function(t,e){var i=z(e);return i.length?y(e).concat(i).forEach((function(i){I.call(e,i)&&N(t,i,e[i])})):_(t,e),t},w(t,l,M),M.value=I,w(x,f,M),M.value=R,w(n,"Symbol",M),M.value=function(t){var e=a.concat(a,t,o);return e in x?D[e]:j(e)},w(R,"for",M),M.value=function(t){return S.call(D,t)?t.slice(2*s,-o.length):void 0},w(R,"keyFor",M),M.value=function(t,e){var i=b(t,e);return i&&P(e)&&(i.enumerable=I.call(t,e)),i},w(t,d,M),M.value=function(t,e){return 1===arguments.length?v(t):E(t,e)},w(t,"create",M),M.value=function(){var t=A.call(this);return"[object String]"===t&&P(this)?"[object Symbol]":t},w(x,"toString",M);try{i=v(w({},a,{get:function(){return w(this,a,{value:!1})[a]}}))[a]||w}catch(t){i=function(t,e,i){var n=b(x,e);delete x[e],w(t,e,i),w(x,e,n)}}}}(Object,"getOwnPropertySymbols"),n=Object,Symbol,o=n.defineProperty,a=n.prototype,s=a.toString,["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive",u="toStringTag"].forEach((function(t){if(!(t in Symbol))switch(o(Symbol,t,{value:Symbol(t)}),t){case u:(r=n.getOwnPropertyDescriptor(a,"toString")).value=function(){var t=s.call(this),e=null==this?void 0:this[Symbol.toStringTag];return void 0===e?t:"[object "+e+"]"},o(a,"toString",r)}})),function(t,e,i){function n(){return this}e[t]||(e[t]=function(){var e=0,i=this,r={next:function(){var t=i.length<=e;return t?{done:t}:{done:t,value:i[e++]}}};return r[t]=n,r}),i[t]||(i[t]=function(){var e=String.fromCodePoint,i=this,r=0,o=i.length,a={next:function(){var t=o<=r,n=t?"":e(i.codePointAt(r));return r+=n.length,t?{done:t}:{done:t,value:n}}};return a[t]=n,a})}(Symbol.iterator,Array.prototype,String.prototype)),"undefined"==typeof FEATURE_NO_ES2015&&(Number.isNaN=Number.isNaN||function(t){return t!=t},Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)}),String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(t){return!0}}()||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.indexOf(t,e);return-1!==n&&n===e}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(t){return!0}}()||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),"undefined"==typeof FEATURE_NO_ES2015&&(Array.from||(Array.from=(h=function(t){return t>0?Math.min(function(t){return isNaN(t=+t)?0:(t>0?Math.floor:Math.ceil)(t)}(t),9007199254740991):0},l=function(t,e,i,n){try{return e(i,n)}catch(e){throw"function"==typeof t.return&&t.return(),e}},function(t){var e,i,n,r,o=Object(t),a="function"==typeof this?this:Array,s=arguments.length,u=s>1?arguments[1]:void 0,c=void 0!==u,d=0,f=o[Symbol.iterator];if(c&&(u=u.bind(s>2?arguments[2]:void 0)),null==f||Array.isArray(t))for(i=new a(e=h(o.length));e>d;d++)i[d]=c?u(o[d],d):o[d];else for(r=f.call(o),i=new a;!(n=r.next()).done;d++)i[d]=c?l(r,u,n.value,d):n.value;return i.length=d,i})),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,r=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(r,e,o,i))return e}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{configurable:!0,writable:!0,enumerable:!1,value:function(t){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,r=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(r,e,o,i))return o;return-1}})),"undefined"!=typeof FEATURE_NO_ES2016||Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{configurable:!0,writable:!0,enumerable:!1,value:function(t){var e=Object(this),i=parseInt(e.length)||0;if(0===i)return!1;var n,r,o=parseInt(arguments[1])||0;for(o>=0?n=o:(n=i+o)<0&&(n=0);n<i;){if(t===(r=e[n])||t!=t&&r!=r)return!0;n++}return!1}}),"undefined"==typeof FEATURE_NO_ES2015&&(!function(){var t,e,i,n,r=!1;try{var o=Object.keys("a");r=1!==o.length||"0"!==o[0]}catch(t){r=!0}r&&(Object.keys=(t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(r){if(null==r)throw TypeError("Cannot convert undefined or null to object");r=Object(r);var o,a,s=[];for(o in r)t.call(r,o)&&s.push(o);if(e)for(a=0;a<n;a++)t.call(r,i[a])&&s.push(i[a]);return s}))}(),function(t){var e,i,n;"assign"in t||t.defineProperty(t,"assign",{configurable:!0,writable:!0,value:(e=t.getOwnPropertySymbols,i=t.propertyIsEnumerable,n=e?function(t){return e(t).filter(i,t)}:function(){return Array.prototype},function(i){function r(t){i[t]=s[t]}!e||i instanceof t||console.warn("problematic Symbols",i);for(var o=1,a=arguments.length;o<a;++o){var s=arguments[o];null!=s&&t.keys(s).concat(n(s)).forEach(r)}return i})})}(Object),Object.is||(Object.is=function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e})),"undefined"==typeof FEATURE_NO_ES2015&&function(t){var e,i,n,r=Object.defineProperty;("undefined"==typeof WeakMap&&(t.WeakMap=o({delete:s,clear:p,get:u,has:c,set:d},!0)),"undefined"!=typeof Map&&"function"==typeof(new Map).values&&(new Map).values().next)||(t.Map=o(((i={delete:s,has:c,get:u,set:d,keys:function(){return b(this._itp,this._keys)},values:m,entries:g,forEach:y,clear:p})[Symbol.iterator]=g,i)));"undefined"!=typeof Set&&"function"==typeof(new Set).values&&(new Set).values().next||(t.Set=o(((n={has:l,add:f,delete:s,clear:p,keys:m,values:m,entries:function(){return b(this._itp,this._values,this._values)},forEach:y})[Symbol.iterator]=m,n)));function o(t,e){function i(t){if(!this||this.constructor!==i)return new i(t);this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,t&&a.call(this,t)}return e||r(t,"size",{get:v}),t.constructor=i,i.prototype=t,i}function a(t){this.add?t.forEach(this.add,this):t.forEach((function(t){this.set(t[0],t[1])}),this)}function s(t){return this.has(t)&&(this._keys.splice(e,1),this._values.splice(e,1),this._itp.forEach((function(t){e<t[0]&&t[0]--}))),-1<e}function u(t){return this.has(t)?this._values[e]:void 0}function h(t,i){if(this.objectOnly&&i!==Object(i))throw new TypeError("Invalid value used as weak collection key");if(i!=i||0===i)for(e=t.length;e--&&((n=t[e])!==(r=i)&&(n==n||r==r)););else e=t.indexOf(i);var n,r;return-1<e}function l(t){return h.call(this,this._values,t)}function c(t){return h.call(this,this._keys,t)}function d(t,i){return this.has(t)?this._values[e]=i:this._values[this._keys.push(t)-1]=i,this}function f(t){return this.has(t)||this._values.push(t),this}function p(){(this._keys||0).length=this._values.length=0}function m(){return b(this._itp,this._values)}function g(){return b(this._itp,this._keys,this._values)}function b(t,e,i){var n,r=[0],o=!1;return t.push(r),(n={})[Symbol.iterator]=function(){return this},n.next=function(){var n,a=r[0];return!o&&a<e.length?(n=i?[e[a],i[a]]:e[a],r[0]++):(o=!0,t.splice(t.indexOf(r),1)),{done:o,value:n}},n}function v(){return this._values.length}function y(t,e){for(var i=this.entries();;){var n=i.next();if(n.done)break;t.call(e,n.value[1],n.value[0],this)}}"undefined"==typeof WeakSet&&(t.WeakSet=o({delete:s,add:f,clear:p,has:l},!0))}(p.d.global),"undefined"==typeof FEATURE_NO_ES2015&&(c=Function.prototype.bind,void 0===p.d.global.Reflect&&(p.d.global.Reflect={}),"function"!=typeof Reflect.defineProperty&&(Reflect.defineProperty=function(t,e,i){if("object"===(void 0===t?"undefined":m(t))?null===t:"function"!=typeof t)throw new TypeError("Reflect.defineProperty called on non-object");try{return Object.defineProperty(t,e,i),!0}catch(t){return!1}}),"function"!=typeof Reflect.construct&&(Reflect.construct=function(t,e){if(e)switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}),"function"!=typeof Reflect.ownKeys&&(Reflect.ownKeys=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))})),"undefined"==typeof FEATURE_NO_ESNEXT&&(d=Object.freeze({}),f="__metadata__","function"!=typeof Reflect.getOwnMetadata&&(Reflect.getOwnMetadata=function(t,e,i){if(e.hasOwnProperty(f))return(e.__metadata__[i]||d)[t]}),"function"!=typeof Reflect.defineMetadata&&(Reflect.defineMetadata=function(t,e,i,n){var r=i.hasOwnProperty(f)?i.__metadata__:i.__metadata__={};(r[n]||(r[n]={}))[t]=e}),"function"!=typeof Reflect.metadata&&(Reflect.metadata=function(t,e){return function(i,n){Reflect.defineMetadata(t,e,i,n)}}))},710:function(t,e,i){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(167),e.createHash=e.Hash=i(203),e.createHmac=e.Hmac=i(453);var n=i(734),r=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return o};var a=i(456);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=i(736);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=i(751);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var h=i(755);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=i(791);var l=i(793);e.publicEncrypt=l.publicEncrypt,e.privateEncrypt=l.privateEncrypt,e.publicDecrypt=l.publicDecrypt,e.privateDecrypt=l.privateDecrypt;var c=i(796);e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},711:function(t,e,i){"use strict";e.byteLength=function(t){var e=h(t),i=e[0],n=e[1];return 3*(i+n)/4-n},e.toByteArray=function(t){var e,i,n=h(t),a=n[0],s=n[1],u=new o(function(t,e,i){return 3*(e+i)/4-i}(0,a,s)),l=0,c=s>0?a-4:a;for(i=0;i<c;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===s&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,u[l++]=255&e);1===s&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=16383,s=0,u=i-r;s<u;s+=a)o.push(l(t,s,s+a>u?u:s+a));1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var r,o,a=[],s=e;s<i;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=r)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},712:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,u=(1<<s)-1,h=u>>1,l=-7,c=i?r-1:0,d=i?-1:1,f=t[e+c];for(c+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+c],c+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+c],c+=d,l-=8);if(0===o)o=1-h;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=h}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,u,h=8*o-r-1,l=(1<<h)-1,c=l>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+c>=1?d/u:d*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(e*u-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,h+=r;h>0;t[i+f]=255&a,f+=p,a/=256,h-=8);t[i+f-p]|=128*m}},713:function(t,e,i){var n=i(76),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function a(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(r.prototype),o(r,a),a.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},714:function(t,e,i){(e=t.exports=i(441)).Stream=e,e.Readable=e,e.Writable=i(445),e.Duplex=i(170),e.Transform=i(446),e.PassThrough=i(718),e.finished=i(308),e.pipeline=i(719)},715:function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=i(76).Buffer,s=i(221).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,i,h;return e=t,(i=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,i,n,r=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,i=r,n=s,a.prototype.copy.call(e,i,n),s+=o.data.length,o=o.next;return r}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,n=e.data;for(t-=n.length;e=e.next;){var r=e.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),0==(t-=o)){o===r.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=r.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),i=this.head,n=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,i),h&&o(e,h),t}()},716:function(t,e,i){"use strict";(function(e){var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o=i(308),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var i=t[d].read();null!==i&&(t[l]=null,t[a]=null,t[s]=null,e(f(i,!1)))}}function m(t){e.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(n={get stream(){return this[d]},next:function(){var t=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[h])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(i,n){e.nextTick((function(){t[u]?n(t[u]):i(f(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(t,e){return function(i,n){t.then((function(){e[h]?i(f(void 0,!0)):e[c](i,n)}),n)}}(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[c])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),r(n,"return",(function(){var t=this;return new Promise((function(e,i){t[d].destroy(null,(function(t){t?i(t):e(f(void 0,!0))}))}))})),n),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},d,{value:t,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,h,{value:t._readableState.endEmitted,writable:!0}),r(e,c,{value:function(t,e){var n=i[d].read();n?(i[l]=null,i[a]=null,i[s]=null,t(f(n,!1))):(i[a]=t,i[s]=e)},writable:!0}),e));return i[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[s];return null!==e&&(i[l]=null,i[a]=null,i[s]=null,e(t)),void(i[u]=t)}var n=i[a];null!==n&&(i[l]=null,i[a]=null,i[s]=null,n(f(void 0,!0))),i[h]=!0})),t.on("readable",m.bind(null,i)),i}}).call(this,i(70))},717:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},718:function(t,e,i){"use strict";t.exports=r;var n=i(446);function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i(169)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},719:function(t,e,i){"use strict";var n;var r=i(168).codes,o=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,r,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=i(308)),n(t,{readable:e,writable:r},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function h(t){t()}function l(t,e){return t.pipe(e)}function c(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n,r=c(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,i){var o=i<e.length-1;return u(t,o,i>0,(function(t){n||(n=t),t&&a.forEach(h),o||(a.forEach(h),r(n))}))}));return e.reduce(l)}},720:function(t,e,i){var n=i(46),r=i(171),o=i(40).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,r.call(this,64,56)}function h(t){return t<<30|t>>>2}function l(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(u,r),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,c=0;c<16;++c)i[c]=t.readInt32BE(4*c);for(;c<80;++c)i[c]=i[c-3]^i[c-8]^i[c-14]^i[c-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=n)<<5|e>>>27)+l(f,r,o,s)+u+i[d]+a[f];u=s,s=o,o=h(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},721:function(t,e,i){var n=i(46),r=i(171),o=i(40).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,r.call(this,64,56)}function h(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function c(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(u,r),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,i=this._w,n=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)i[d]=t.readInt32BE(4*d);for(;d<80;++d)i[d]=(e=i[d-3]^i[d-8]^i[d-14]^i[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=h(n)+c(p,r,o,s)+u+i[f]+a[p]|0;u=s,s=o,o=l(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},722:function(t,e,i){var n=i(46),r=i(447),o=i(171),a=i(40).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,r),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},723:function(t,e,i){var n=i(46),r=i(448),o=i(171),a=i(40).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,r),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},724:function(t,e,i){t.exports=r;var n=i(148).EventEmitter;function r(){n.call(this)}i(46)(r,n),r.Readable=i(311),r.Writable=i(729),r.Duplex=i(730),r.Transform=i(731),r.PassThrough=i(732),r.Stream=r,r.prototype.pipe=function(t,e){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function o(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(i.on("end",s),i.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(l(),0===n.listenerCount(this,"error"))throw t}function l(){i.removeListener("data",r),t.removeListener("drain",o),i.removeListener("end",s),i.removeListener("close",u),i.removeListener("error",h),t.removeListener("error",h),i.removeListener("end",l),i.removeListener("close",l),t.removeListener("close",l)}return i.on("error",h),t.on("error",h),i.on("end",l),i.on("close",l),t.on("close",l),t.emit("pipe",i),t}},725:function(t,e,i){"use strict";var n=i(40).Buffer,r=i(224);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,i,r,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,i=o,r=s,e.copy(i,r),s+=a.data.length,a=a.next;return o},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},726:function(t,e,i){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i(727),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,i(88))},727:function(t,e,i){(function(t,e){!function(t,i){"use strict";if(!t.setImmediate){var n,r,o,a,s,u=1,h={},l=!1,c=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){o.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(t){var e=c.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),n=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return h[u]=r,n(u),u++},d.clearImmediate=f}function f(t){delete h[t]}function p(t){if(l)setTimeout(p,0,t);else{var e=h[t];if(e){l=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(void 0,i)}}(e)}finally{f(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(88),i(70))},728:function(t,e,i){"use strict";t.exports=o;var n=i(452),r=i(204);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r.inherits=i(46),r.inherits(o,n),o.prototype._transform=function(t,e,i){i(null,t)}},729:function(t,e,i){t.exports=i(312)},73:function(t,e,i){"use strict";function n(t,e){var i=e&&e.split("/"),n=t.trim().split("/");if("."===n[0].charAt(0)&&i){var r=i.slice(0,i.length-1);n.unshift.apply(n,r)}return function(t){for(var e=0;e<t.length;++e){var i=t[e];if("."===i)t.splice(e,1),e-=1;else if(".."===i){if(0===e||1===e&&".."===t[2]||".."===t[e-1])continue;e>0&&(t.splice(e-1,2),e-=2)}}}(n),n.join("/")}function r(t,e){if(!t)return e;if(!e)return t;var i,n=t.match(/^([^/]*?:)\//),r=n&&n.length>0?n[1]:"";i=0===(t=t.substr(r.length)).indexOf("///")&&"file:"===r?"///":0===t.indexOf("//")?"//":0===t.indexOf("/")?"/":"";for(var o="/"===e.slice(-1)?"/":"",a=t.split("/"),s=e.split("/"),u=[],h=0,l=a.length;h<l;++h)if(".."===a[h])u.length&&".."!==u[u.length-1]?u.pop():u.push(a[h]);else{if("."===a[h]||""===a[h])continue;u.push(a[h])}for(h=0,l=s.length;h<l;++h)if(".."===s[h])u.length&&".."!==u[u.length-1]?u.pop():u.push(s[h]);else{if("."===s[h]||""===s[h])continue;u.push(s[h])}return r+i+u.join("/")+o}i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return n}));var o=encodeURIComponent,a=function(t){return o(t).replace("%24","$")};function s(t,e,i){var n=[];if(null==e)return n;if(Array.isArray(e))for(var r=0,u=e.length;r<u;r++)if(i)n.push(a(t)+"="+o(e[r]));else{var h=t+"["+("object"==typeof e[r]&&null!==e[r]?r:"")+"]";n=n.concat(s(h,e[r]))}else if("object"!=typeof e||i)n.push(a(t)+"="+o(e));else for(var l in e)n=n.concat(s(t+"["+l+"]",e[l]));return n}function u(t,e){for(var i=[],n=Object.keys(t||{}).sort(),r=0,o=n.length;r<o;r++){var a=n[r];i=i.concat(s(a,t[a],e))}return 0===i.length?"":i.join("&")}function h(t,e){return Array.isArray(t)?(t.push(e),t):void 0!==t?[t,e]:e}function l(t,e,i){for(var n=t,r=e.length-1,o=0;o<=r;o++){var a=""===e[o]?n.length:e[o];if(d(a),o<r){var s=n[a]&&"object"!=typeof n[a]?[n[a]]:n[a];n=n[a]=s||(isNaN(e[o+1])?{}:[])}else n=n[a]=i}}function c(t){var e={};if(!t||"string"!=typeof t)return e;var i=t;"?"===i.charAt(0)&&(i=i.substr(1));for(var n=i.replace(/\+/g," ").split("&"),r=0;r<n.length;r++){var o=n[r].split("="),a=decodeURIComponent(o[0]);if(a){var s=a.split("]["),u=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[u])?(s[u]=s[u].replace(/\]$/,""),u=(s=s.shift().split("[").concat(s)).length-1):u=0,o.length>=2){var c=o[1]?decodeURIComponent(o[1]):"";u?l(e,s,c):(d(a),e[a]=h(e[a],c))}else e[a]=!0}}return e}function d(t){if("__proto__"===t)throw new Error("Prototype pollution detected.")}},730:function(t,e,i){t.exports=i(150)},731:function(t,e,i){t.exports=i(311).Transform},732:function(t,e,i){t.exports=i(311).PassThrough},733:function(t,e,i){"use strict";var n=i(46),r=i(40).Buffer,o=i(143),a=r.alloc(128),s=64;function u(t,e){o.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=r.concat([e,a],s));for(var i=this._ipad=r.allocUnsafe(s),n=this._opad=r.allocUnsafe(s),u=0;u<s;u++)i[u]=54^e[u],n[u]=92^e[u];this._hash=[i]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,t]))},t.exports=u},734:function(t,e,i){t.exports=i(455)},735:function(t,e,i){(function(e,n){var r,o=i(40).Buffer,a=i(457),s=i(458),u=i(459),h=i(460),l=e.crypto&&e.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(t,e,i,n,r){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:r}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,i,p,m,g,b){"function"==typeof g&&(b=g,g=void 0);var v=c[(g=g||"sha1").toLowerCase()];if(!v||"function"!=typeof e.Promise)return n.nextTick((function(){var e;try{e=u(t,i,p,m,g)}catch(t){return b(t)}b(null,e)}));if(a(p,m),t=h(t,s,"Password"),i=h(i,s,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var i=f(r=r||o.alloc(8),r,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=i,i}(v).then((function(e){return e?f(t,i,p,m,v):u(t,i,p,m,g)})),b)}}).call(this,i(88),i(70))},736:function(t,e,i){var n=i(737),r=i(314),o=i(315),a=i(750),s=i(226);function u(t,e,i){if(t=t.toLowerCase(),o[t])return r.createCipheriv(t,e,i);if(a[t])return new n({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function h(t,e,i){if(t=t.toLowerCase(),o[t])return r.createDecipheriv(t,e,i);if(a[t])return new n({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var i,n;if(t=t.toLowerCase(),o[t])i=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,n=a[t].iv}var r=s(e,!1,i,n);return u(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var i,n;if(t=t.toLowerCase(),o[t])i=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,n=a[t].iv}var r=s(e,!1,i,n);return h(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(r.getCiphers())}},737:function(t,e,i){var n=i(143),r=i(738),o=i(46),a=i(40).Buffer,s={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function u(t){n.call(this);var e,i=t.mode.toLowerCase(),r=s[i];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==i&&"des-ede-cbc"!==i||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=r.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},738:function(t,e,i){"use strict";e.utils=i(461),e.Cipher=i(313),e.DES=i(462),e.CBC=i(739),e.EDE=i(740)},739:function(t,e,i){"use strict";var n=i(104),r=i(46),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}r(e,t);for(var i=Object.keys(o),n=0;n<i.length;n++){var a=i[n];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,i,n){var r=this._cbcState,o=this.constructor.super_.prototype,a=r.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,i,n);for(s=0;s<this.blockSize;s++)a[s]=i[n+s]}else{o._update.call(this,t,e,i,n);for(s=0;s<this.blockSize;s++)i[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},740:function(t,e,i){"use strict";var n=i(104),r=i(46),o=i(313),a=i(462);function s(t,e){n.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}r(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,i,n){var r=this._edeState;r.ciphers[0]._update(t,e,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},741:function(t,e,i){var n=i(315),r=i(466),o=i(40).Buffer,a=i(467),s=i(143),u=i(225),h=i(226);function l(t,e,i){s.call(this),this._cache=new d,this._cipher=new u.AES(e),this._prev=o.from(i),this._mode=t,this._autopadding=!0}i(46)(l,s),l.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get();)i=this._mode.encrypt(this,e),n.push(i);return o.concat(n)};var c=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function f(t,e,i){var s=n[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=o.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===s.type?new a(s.module,e,i):"auth"===s.type?new r(s.module,e,i):new l(s.module,e,i)}l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return o.concat([this.cache,e])},e.createCipheriv=f,e.createCipher=function(t,e){var i=n[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=h(e,!1,i.key,i.iv);return f(t,r.key,r.iv)}},742:function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},743:function(t,e,i){var n=i(205);e.encrypt=function(t,e){var i=n(e,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return n(r,i)}},744:function(t,e,i){var n=i(40).Buffer,r=i(205);function o(t,e,i){var o=e.length,a=r(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,i?e:a]),a}e.encrypt=function(t,e,i){for(var r,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,i)]);break}r=t._cache.length,a=n.concat([a,o(t,e.slice(0,r),i)]),e=e.slice(r)}return a}},745:function(t,e,i){var n=i(40).Buffer;function r(t,e,i){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([i?e:r])]),r}e.encrypt=function(t,e,i){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=r(t,e[s],i);return a}},746:function(t,e,i){var n=i(40).Buffer;function r(t,e,i){for(var n,r,a=-1,s=0;++a<8;)n=e&1<<7-a?128:0,s+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,i?n:r);return s}function o(t,e){var i=t.length,r=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++r<i;)o[r]=t[r]<<1|t[r+1]>>7;return o}e.encrypt=function(t,e,i){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=r(t,e[s],i);return a}},747:function(t,e,i){(function(t){var n=i(205);function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,i){for(;e._cache.length<i.length;)e._cache=t.concat([e._cache,r(e)]);var o=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),n(i,o)}}).call(this,i(76).Buffer)},748:function(t,e,i){var n=i(40).Buffer,r=n.alloc(16,0);function o(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,i,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],r=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),i=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=o(r)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},749:function(t,e,i){var n=i(466),r=i(40).Buffer,o=i(315),a=i(467),s=i(143),u=i(225),h=i(226);function l(t,e,i){s.call(this),this._cache=new c,this._last=void 0,this._cipher=new u.AES(e),this._prev=r.from(i),this._mode=t,this._autopadding=!0}function c(){this.cache=r.allocUnsafe(0)}function d(t,e,i){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=r.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof e&&(e=r.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,i,!0):"auth"===s.type?new n(s.module,e,i,!0):new l(s.module,e,i)}i(46)(l,s),l.prototype._update=function(t){var e,i;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,e),n.push(i);return r.concat(n)},l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<e;)if(t[i+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},c.prototype.add=function(t){this.cache=r.concat([this.cache,t])},c.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=o[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=h(e,!1,i.key,i.iv);return d(t,n.key,n.iv)},e.createDecipheriv=d},750:function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},751:function(t,e,i){(function(t){var n=i(468),r=i(753),o=i(754);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var i=new t(r[e].prime,"hex"),n=new t(r[e].gen,"hex");return new o(i,n)},e.createDiffieHellman=e.DiffieHellman=function e(i,r,s,u){return t.isBuffer(r)||void 0===a[r]?e(i,"binary",r,s):(r=r||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"==typeof i?new o(n(i,s),s,!0):(t.isBuffer(i)||(i=new t(i,r)),new o(i,s,!0)))}}).call(this,i(76).Buffer)},752:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(228).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},753:function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},754:function(t,e,i){(function(e){var n=i(469),r=new(i(470)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),h=new n(7),l=i(468),c=i(167);function d(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new n(t),this}function f(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new n(t),this}t.exports=m;var p={};function m(t,e,i){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function g(t,i){var n=new e(t.toArray());return i?n.toString(i):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),n=[i,t.toString(16)].join("_");if(n in p)return p[n];var c,d=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!r.test(t))return d+=1,d+="02"===i||"05"===i?8:4,p[n]=d,d;switch(r.test(t.shrn(1))||(d+=2),i){case"02":t.mod(o).cmp(a)&&(d+=8);break;case"05":(c=t.mod(s)).cmp(u)&&c.cmp(h)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var i=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new e(i.toArray()),o=this.getPrime();if(r.length<o.length){var a=new e(o.length-r.length);a.fill(0),r=e.concat([a,r])}return r},m.prototype.getPublicKey=function(t){return g(this._pub,t)},m.prototype.getPrivateKey=function(t){return g(this._priv,t)},m.prototype.getPrime=function(t){return g(this.__prime,t)},m.prototype.getGenerator=function(t){return g(this._gen,t)},m.prototype.setGenerator=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.__gen=t,this._gen=new n(t),this}}).call(this,i(76).Buffer)},755:function(t,e,i){var n=i(317).Buffer,r=i(203),o=i(756),a=i(173),s=i(762),u=i(790),h=i(455);function l(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new l(t)}function f(t){return new c(t)}Object.keys(h).forEach((function(t){h[t].id=n.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),a(l,o.Writable),l.prototype._write=function(t,e,i){this._hash.update(t),i()},l.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),n=s(i,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(c,o.Writable),c.prototype._write=function(t,e,i){this._hash.update(t),i()},c.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},c.prototype.verify=function(t,e,i){"string"==typeof e&&(e=n.from(e,i)),this.end();var r=this._hash.digest();return u(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},756:function(t,e,i){(e=t.exports=i(471)).Stream=e,e.Readable=e,e.Writable=i(475),e.Duplex=i(174),e.Transform=i(476),e.PassThrough=i(760),e.finished=i(318),e.pipeline=i(761)},757:function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=i(76).Buffer,s=i(231).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,i,h;return e=t,(i=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,i,n,r=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,i=r,n=s,a.prototype.copy.call(e,i,n),s+=o.data.length,o=o.next;return r}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,n=e.data;for(t-=n.length;e=e.next;){var r=e.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),0==(t-=o)){o===r.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=r.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),i=this.head,n=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,i),h&&o(e,h),t}()},758:function(t,e,i){"use strict";(function(e){var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o=i(318),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var i=t[d].read();null!==i&&(t[l]=null,t[a]=null,t[s]=null,e(f(i,!1)))}}function m(t){e.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(n={get stream(){return this[d]},next:function(){var t=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[h])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(i,n){e.nextTick((function(){t[u]?n(t[u]):i(f(void 0,!0))}))}));var n,r=this[l];if(r)n=new Promise(function(t,e){return function(i,n){t.then((function(){e[h]?i(f(void 0,!0)):e[c](i,n)}),n)}}(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[c])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),r(n,"return",(function(){var t=this;return new Promise((function(e,i){t[d].destroy(null,(function(t){t?i(t):e(f(void 0,!0))}))}))})),n),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},d,{value:t,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,h,{value:t._readableState.endEmitted,writable:!0}),r(e,c,{value:function(t,e){var n=i[d].read();n?(i[l]=null,i[a]=null,i[s]=null,t(f(n,!1))):(i[a]=t,i[s]=e)},writable:!0}),e));return i[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[s];return null!==e&&(i[l]=null,i[a]=null,i[s]=null,e(t)),void(i[u]=t)}var n=i[a];null!==n&&(i[l]=null,i[a]=null,i[s]=null,n(f(void 0,!0))),i[h]=!0})),t.on("readable",m.bind(null,i)),i}}).call(this,i(70))},759:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},76:function(t,e,i){"use strict";(function(t){var n=i(711),r=i(712),o=i(439);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,i){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return h(this,t,e,i)}function h(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=d(t,e);return t}(t,e,i,n):"string"==typeof e?function(t,e,i){"string"==typeof i&&""!==i||(i="utf8");if(!u.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,i),r=(t=s(t,n)).write(e,i);r!==n&&(t=t.slice(0,r));return t}(t,e,i):function(t,e){if(u.isBuffer(e)){var i=0|f(e.length);return 0===(t=s(t,i)).length||e.copy(t,0,0,i),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(l(e),t=s(t,e<0?0:0|f(e)),!u.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function d(t,e){var i=e.length<0?0:0|f(e.length);t=s(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return V(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return A(this,e,i);case"ascii":return E(this,e,i);case"latin1":case"binary":return k(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,i,n,r);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):v(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,i,n,r){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,i/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var l=-1;for(o=i;o<s;o++)if(h(t,o)===h(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(i+u>s&&(i=s-u),o=i;o>=0;o--){for(var c=!0,d=0;d<u;d++)if(h(t,o+d)!==h(e,d)){c=!1;break}if(c)return o}return-1}function y(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function w(t,e,i,n){return U(F(e,t.length-i),t,i,n)}function _(t,e,i,n){return U(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,n)}function M(t,e,i,n){return _(t,e,i,n)}function x(t,e,i,n){return U(V(e),t,i,n)}function S(t,e,i,n){return U(function(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(i=t.charCodeAt(a))>>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function T(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function A(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o,a,s,u,h=t[r],l=null,c=h>239?4:h>223?3:h>191?2:1;if(r+c<=i)switch(c){case 1:h<128&&(l=h);break;case 2:128==(192&(o=t[r+1]))&&(u=(31&h)<<6|63&o)>127&&(l=u);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(u=(15&h)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&h)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=c}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var i="",n=0;for(;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=C));return i}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,i){return h(null,t,e,i)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,i){return function(t,e,i,n){return l(e),e<=0?s(t,e):void 0!==i?"string"==typeof n?s(t,e).fill(i,n):s(t,e).fill(i):s(t,e)}(null,t,e,i)},u.allocUnsafe=function(t){return c(null,t)},u.allocUnsafeSlow=function(t){return c(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=u.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,i,n,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0),s=Math.min(o,a),h=this.slice(n,r),l=t.slice(e,i),c=0;c<s;++c)if(h[c]!==l[c]){o=h[c],a=l[c];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},u.prototype.indexOf=function(t,e,i){return b(this,t,e,i,!0)},u.prototype.lastIndexOf=function(t,e,i){return b(this,t,e,i,!1)},u.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":return _(this,t,e,i);case"latin1":case"binary":return M(this,t,e,i);case"base64":return x(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function E(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function k(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=H(t[o]);return r}function P(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function I(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,i,n,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function R(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function D(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function L(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function B(t,e,i,n,o){return o||L(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function N(t,e,i,n,o){return o||L(t,0,i,8),r.write(t,e,i,n,52,8),i+8}u.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=u.prototype;else{var r=e-t;i=new u(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i},u.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||I(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},u.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||I(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},u.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||I(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||I(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||j(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},u.prototype.writeUIntBE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||j(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},u.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},u.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},u.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,i){return B(this,t,e,!0,i)},u.prototype.writeFloatBE=function(t,e,i){return B(this,t,e,!1,i)},u.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},u.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},u.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,o=n-i;if(this===t&&i<e&&e<n)for(r=o-1;r>=0;--r)t[r+e]=this[r+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},u.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o<i;++o)this[o]=t;else{var a=u.isBuffer(t)?t:F(new u(t,n).toString()),s=a.length;for(o=0;o<i-e;++o)this[o+e]=a[o%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function V(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(this,i(88))},760:function(t,e,i){"use strict";t.exports=r;var n=i(476);function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i(173)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},761:function(t,e,i){"use strict";var n;var r=i(172).codes,o=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,r,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=i(318)),n(t,{readable:e,writable:r},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function h(t){t()}function l(t,e){return t.pipe(e)}function c(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n,r=c(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,i){var o=i<e.length-1;return u(t,o,i>0,(function(t){n||(n=t),t&&a.forEach(h),o||(a.forEach(h),r(n))}))}));return e.reduce(l)}},762:function(t,e,i){var n=i(317).Buffer,r=i(453),o=i(319),a=i(321).ec,s=i(320),u=i(235),h=i(488);function l(t,e,i,o){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var s=i.length,u=function(t,e){t=(t=c(t,e)).mod(e);var i=n.from(t.toArray());if(i.length<e.byteLength()){var r=n.alloc(e.byteLength()-i.length);i=n.concat([r,i])}return i}(i,e),h=n.alloc(s);h.fill(1);var l=n.alloc(s);return l=r(o,l).update(h).update(n.from([0])).update(t).update(u).digest(),h=r(o,l).update(h).digest(),{k:l=r(o,l).update(h).update(n.from([1])).update(t).update(u).digest(),v:h=r(o,l).update(h).digest()}}function c(t,e){var i=new s(t),n=(t.length<<3)-e.bitLength();return n>0&&i.ishrn(n),i}function d(t,e,i){var o,a;do{for(o=n.alloc(0);8*o.length<t.bitLength();)e.v=r(i,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=c(o,t),e.k=r(i,e.k).update(e.v).update(n.from([0])).digest(),e.v=r(i,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function f(t,e,i,n){return t.toRed(s.mont(i)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,i,r,p){var m=u(e);if(m.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return function(t,e){var i=h[e.curve.join(".")];if(!i)throw new Error("unknown curve "+e.curve.join("."));var r=new a(i).keyFromPrivate(e.privateKey).sign(t);return n.from(r.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==r)throw new Error("wrong private key type");return function(t,e,i){var r,o=e.params.priv_key,a=e.params.p,u=e.params.q,h=e.params.g,p=new s(0),m=c(t,u).mod(u),g=!1,b=l(o,u,t,i);for(;!1===g;)p=f(h,r=d(u,b,i),a,u),0===(g=r.invm(u).imul(m.add(o.mul(p))).mod(u)).cmpn(0)&&(g=!1,p=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var i=[48,t.length+e.length+4,2,t.length];return i=i.concat(t,[2,e.length],e),n.from(i)}(p,g)}(t,m,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");t=n.concat([p,t]);for(var g=m.modulus.byteLength(),b=[0,1];t.length+b.length+1<g;)b.push(255);b.push(0);for(var v=-1;++v<t.length;)b.push(t[v]);return o(b,m)},t.exports.getKey=l,t.exports.makeKey=d},763:function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},764:function(t,e,i){"use strict";var n=i(105),r=i(132),o=i(322),a=i(234),s=n.assert;function u(t){a.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(t,e,i,n){a.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,i,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(i,16),this.z=new r(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)i=new r(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?i=o[0]:(i=o[1],s(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:i,basis:t.basis?t.basis.map((function(t){return{a:new r(t.a,16),b:new r(t.b,16)}})):this._getEndoBasis(i)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),i=new r(2).toRed(e).redInvm(),n=i.redNeg(),o=new r(3).toRed(e).redNeg().redSqrt().redMul(i);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,i,n,o,a,s,u,h,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new r(1),m=new r(0),g=new r(0),b=new r(1),v=0;0!==d.cmpn(0);){var y=f.div(d);h=f.sub(y.mul(d)),l=g.sub(y.mul(p));var w=b.sub(y.mul(m));if(!n&&h.cmp(c)<0)e=u.neg(),i=p,n=h.neg(),o=l;else if(n&&2==++v)break;u=h,f=d,d=h,g=p,p=l,b=m,m=w}a=h.neg(),s=l;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=e,s=i),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],n=e[1],r=n.b.mul(t).divRound(this.n),o=i.b.neg().mul(t).divRound(this.n),a=r.mul(i.a),s=o.mul(n.a),u=r.mul(i.b),h=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(h).neg()}},u.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,n=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,r[2*o]=a.k1,r[2*o+1]=a.k2}for(var h=this._wnafMulAdd(1,n,r,2*o,i),l=0;l<2*o;l++)n[l]=null,r[l]=null;return h},o(h,a.BasePoint),u.prototype.point=function(t,e,i){return new h(this,t,e,i)},u.prototype.pointFromJSON=function(t,e){return h.fromJSON(this,t,e)},h.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,n=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(t,e,i){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],i);if(!e[2])return n;function r(e){return t.point(e[0],e[1],i)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(r))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(r))}},n},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},h.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),a=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},h.prototype.jmulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return e},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(t,e,i){return new l(this,t,e,i)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(i,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(e),r=t.x.redMul(i),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(i.redMul(this.z)),s=n.redSub(r),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=s.redSqr(),l=h.redMul(s),c=n.redMul(h),d=u.redSqr().redIAdd(l).redISub(c).redISub(c),f=u.redMul(c.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,n=t.x.redMul(e),r=this.y,o=t.y.redMul(e).redMul(this.z),a=i.redSub(n),s=r.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),h=u.redMul(a),l=i.redMul(u),c=s.redSqr().redIAdd(h).redISub(l).redISub(l),d=s.redMul(l.redISub(c)).redISub(r.redMul(h)),f=this.z.redMul(a);return this.curve.jpoint(c,d,f)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e<t;e++)i=i.dbl();return i}var n=this.curve.a,r=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),h=a.redAdd(a);for(e=0;e<t;e++){var l=o.redSqr(),c=h.redSqr(),d=c.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=f.redMul(g);b=b.redIAdd(b).redISub(d);var v=h.redMul(s);e+1<t&&(u=u.redMul(d)),o=m,s=v,h=b}return this.curve.jpoint(o,h.redMul(r),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),a=this.x.redAdd(r).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=u,e=s.redMul(a.redISub(u)).redISub(h),i=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),d=c.redSqr(),f=this.x.redAdd(c).redSqr().redISub(l).redISub(d);f=f.redIAdd(f);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(t,e,i)},l.prototype._threeDbl=function(){var t,e,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),a=this.x.redAdd(r).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=s.redMul(a.redISub(u)).redISub(h),i=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),d=this.x.redMul(c),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);t=f.redSqr().redISub(m),i=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var g=c.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=f.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,i)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,n=this.z,r=n.redSqr().redSqr(),o=e.redSqr(),a=i.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(r)),u=e.redAdd(e),h=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=s.redMul(c).redISub(d),p=i.redAdd(i).redMul(n);return this.curve.jpoint(l,f,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr(),n=e.redSqr(),r=t.redAdd(t).redIAdd(t),o=r.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=r.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=e.redMul(h);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.x.redMul(s).redISub(l);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.y.redMul(h.redMul(u.redISub(h)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(a).redSqr().redISub(i).redISub(s);return this.curve.jpoint(c,d,f)},l.prototype.mul=function(t,e){return t=new r(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),i=t.z.redSqr();if(0!==this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),r=i.redMul(t.z);return 0===this.y.redMul(r).redISub(t.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},765:function(t,e,i){"use strict";var n=i(132),r=i(322),o=i(234),a=i(105);function s(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),n=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},r(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),n=t.redMul(e),r=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,r)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(i),a=r.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),i=this,n=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var o=r.length-1;o>=0;o--)0===r[o]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},766:function(t,e,i){"use strict";var n=i(105),r=i(132),o=i(322),a=i(234),s=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function h(t,e,i,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(i,16),this.z=n?new r(n,16):this.curve.one,this.t=o&&new r(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,i,n){return this.point(t,e,i,n)},u.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),o=this.one.redSub(this.c2.redMul(this.d).redMul(i)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),o=i.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),n=e.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===n.cmp(r)},o(h,a.BasePoint),u.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},u.prototype.point=function(t,e,i,n){return new h(this,t,e,i,n)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(i),s=n.redSub(e),u=r.redMul(a),h=o.redMul(s),l=r.redMul(s),c=a.redMul(o);return this.curve.point(u,h,c,l)},h.prototype._projDbl=function(){var t,e,i,n,r,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var h=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(t=a.redSub(s).redSub(u).redMul(h.redSub(this.curve.two)),e=h.redMul(n.redSub(u)),i=h.redSqr().redSub(h).redSub(h)):(r=this.z.redSqr(),o=h.redSub(r).redISub(r),t=a.redSub(s).redISub(u).redMul(o),e=h.redMul(n.redSub(u)),i=h.redMul(o))}else n=s.redAdd(u),r=this.curve._mulC(this.z).redSqr(),o=n.redSub(r).redSub(r),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(s.redISub(u)),i=n.redMul(o);return this.curve.point(t,e,i)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),o=i.redSub(e),a=r.redSub(n),s=r.redAdd(n),u=i.redAdd(e),h=o.redMul(a),l=s.redMul(u),c=o.redMul(u),d=a.redMul(s);return this.curve.point(h,l,d,c)},h.prototype._projAdd=function(t){var e,i,n=this.z.redMul(t.z),r=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=r.redSub(s),h=r.redAdd(s),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),c=n.redMul(u).redMul(l);return this.curve.twisted?(e=n.redMul(h).redMul(a.redSub(this.curve._mulA(o))),i=u.redMul(h)):(e=n.redMul(h).redMul(a.redSub(o)),i=this.curve._mulC(u).redMul(h)),this.curve.point(c,e,i)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},h.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},767:function(t,e,i){"use strict";e.sha1=i(768),e.sha224=i(769),e.sha256=i(480),e.sha384=i(770),e.sha512=i(481)},768:function(t,e,i){"use strict";var n=i(119),r=i(206),o=i(479),a=n.rotl32,s=n.sum32,u=n.sum32_5,h=o.ft_1,l=r.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n<i.length;n++)i[n]=a(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var r=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],f=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),m=u(a(r,5),h(p,o,l,d),f,i[n],c[p]);f=d,d=l,l=a(o,30),o=r,r=m}this.h[0]=s(this.h[0],r),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],f)},d.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},769:function(t,e,i){"use strict";var n=i(119),r=i(480);function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,r),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},770:function(t,e,i){"use strict";var n=i(119),r=i(481);function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,r),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},771:function(t,e,i){"use strict";var n=i(119),r=i(206),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,h=r.BlockHash;function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(t,e,i,n){return t<=15?e^i^n:t<=31?e&i|~e&n:t<=47?(e|~i)^n:t<=63?e&n|i&~n:e^(i|~n)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(l,h),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var i=this.h[0],n=this.h[1],r=this.h[2],h=this.h[3],l=this.h[4],v=i,y=n,w=r,_=h,M=l,x=0;x<80;x++){var S=a(o(u(i,c(x,n,r,h),t[p[x]+e],d(x)),g[x]),l);i=l,l=h,h=o(r,10),r=n,n=S,S=a(o(u(v,c(79-x,y,w,_),t[m[x]+e],f(x)),b[x]),M),v=M,M=_,_=o(w,10),w=y,y=S}S=s(this.h[1],r,_),this.h[1]=s(this.h[2],h,M),this.h[2]=s(this.h[3],l,v),this.h[3]=s(this.h[4],i,y),this.h[4]=s(this.h[0],n,w),this.h[0]=S},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},772:function(t,e,i){"use strict";var n=i(119),r=i(104);function o(t,e,i){if(!(this instanceof o))return new o(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,i))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},773:function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},774:function(t,e,i){"use strict";var n=i(132),r=i(775),o=i(105),a=i(323),s=i(316),u=o.assert,h=i(776),l=i(777);function c(t){if(!(this instanceof c))return new c(t);"string"==typeof t&&(u(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=c,c.prototype.keyPair=function(t){return new h(this,t)},c.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},c.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},c.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(i));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},c.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return i>0&&(t=t.ushrn(i)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},c.prototype.sign=function(t,e,i,o){"object"==typeof i&&(o=i,i=null),o||(o={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),h=new r({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),c=this.n.sub(new n(1)),d=0;;d++){var f=o.k?o.k(d):new n(h.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(c)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var b=f.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),v^=1),new l({r:g,s:b,recoveryParam:v})}}}}}},c.prototype.verify=function(t,e,i,r){t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r);var o=(e=new l(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),h=u.mul(t).umod(this.n),c=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(h,i.getPublic(),c)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(h,i.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(t,e,i,r){u((3&i)===i,"The recovery param is more than two bits"),e=new l(e,r);var o=this.n,a=new n(t),s=e.r,h=e.s,c=1&i,d=i>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var f=e.r.invm(o),p=o.sub(a).mul(f).umod(o),m=h.mul(f).umod(o);return this.g.mulAdd(p,s,m)},c.prototype.getKeyRecoveryParam=function(t,e,i,n){if(null!==(e=new l(e,n)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var o;try{o=this.recoverPubKey(t,e,r)}catch(t){continue}if(o.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},775:function(t,e,i){"use strict";var n=i(324),r=i(477),o=i(104);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),i=r.toArray(t.nonce,t.nonceEnc||"hex"),n=r.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,n)}t.exports=a,a.prototype._init=function(t,e,i){var n=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,i,n){"string"!=typeof e&&(n=i,i=e,e=null),t=r.toArray(t,e),i=r.toArray(i,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},a.prototype.generate=function(t,e,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=i,i=e,e=null),i&&(i=r.toArray(i,n||"hex"),this._update(i));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(i),this._reseed++,r.encode(a,e)}},776:function(t,e,i){"use strict";var n=i(132),r=i(105).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,i){return e instanceof o?e:new o(t,{pub:e,pubEnc:i})},o.fromPrivate=function(t,e,i){return e instanceof o?e:new o(t,{priv:e,privEnc:i})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||r(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},777:function(t,e,i){"use strict";var n=i(132),r=i(105),o=r.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var i=t[e.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var r=0,o=0,a=e.place;o<n;o++,a++)r<<=8,r|=t[a],r>>>=0;return!(r<=127)&&(e.place=a,r)}function h(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e<i;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var i=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=r.toArray(t,e);var i=new s;if(48!==t[i.place++])return!1;var o=u(t,i);if(!1===o)return!1;if(o+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var a=u(t,i);if(!1===a)return!1;var h=t.slice(i.place,a+i.place);if(i.place+=a,2!==t[i.place++])return!1;var l=u(t,i);if(!1===l)return!1;if(t.length!==l+i.place)return!1;var c=t.slice(i.place,l+i.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new n(h),this.s=new n(c),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=h(e),i=h(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];l(n,e.length),(n=n.concat(e)).push(2),l(n,i.length);var o=n.concat(i),a=[48];return l(a,o.length),a=a.concat(o),r.encode(a,t)}},778:function(t,e,i){"use strict";var n=i(324),r=i(323),o=i(105),a=o.assert,s=o.parseBytes,u=i(779),h=i(780);function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=r[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=l,l.prototype.sign=function(t,e){t=s(t);var i=this.keyFromSecret(e),n=this.hashInt(i.messagePrefix(),t),r=this.g.mul(n),o=this.encodePoint(r),a=this.hashInt(o,i.pubBytes(),t).mul(i.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:r,S:u,Rencoded:o})},l.prototype.verify=function(t,e,i){t=s(t),e=this.makeSignature(e);var n=this.keyFromPublic(i),r=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(r)).eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,i=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),r=o.intFromLE(i);return this.curve.pointFromY(r,n)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return o.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},779:function(t,e,i){"use strict";var n=i(105),r=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},s.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=s},78:function(t,e,i){"use strict";i.d(e,"d",(function(){return A})),i.d(e,"c",(function(){return k})),i.d(e,"b",(function(){return q})),i.d(e,"a",(function(){return Q}));var n=i(56),r=i(365),o=i(34),a=i(212),s=i("aurelia-event-aggregator"),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e||"#"===t[0]||(t="#"+t),e&&i&&(t=t.substring(1,t.length)),t}function c(t,e,i,n){if(p.test(t))return t;var r="";return e.length&&"/"!==e[0]&&(r+="/"),(r+=e).length&&"/"===r[r.length-1]||"/"===t[0]||(r+="/"),r.length&&"/"===r[r.length-1]&&"/"===t[0]&&(r=r.substring(0,r.length-1)),l(r+t,i,n)}function d(t){var e=[];if(Array.isArray(t.route))for(var i=0,n=t.route.length;i<n;++i){var r=Object.assign({},t);r.route=t.route[i],e.push(r)}else e.push(Object.assign({},t));return e}var f=/^#?\//,p=/^([a-z][a-z0-9+\-.]*:)?\/\//i,m=function(){function t(){}return t.prototype.run=function(t,e){return t._commitChanges(!0).then((function(){return t._updateTitle(),e()}))},t}(),g=function(){function t(t){this.plan=null,this.options={},Object.assign(this,t),this.params=this.params||{},this.viewPortInstructions={};var e=[],i=this;do{var n=Object.assign({},i.params);i.config&&i.config.hasChildRouter&&delete n[i.getWildCardName()],e.unshift(n),i=i.parentInstruction}while(i);var r=Object.assign.apply(Object,[{},this.queryParams].concat(e));this.lifecycleArgs=[r,this.config,this]}return t.prototype.getAllInstructions=function(){var t=[this];for(var e in this.viewPortInstructions){var i=this.viewPortInstructions[e].childNavigationInstruction;i&&t.push.apply(t,i.getAllInstructions())}return t},t.prototype.getAllPreviousInstructions=function(){return this.getAllInstructions().map((function(t){return t.previousInstruction})).filter((function(t){return t}))},t.prototype.addViewPortInstruction=function(t,e,i,n){var r=Object.assign({},this.lifecycleArgs[1],{currentViewPort:t});return this.viewPortInstructions[t]={name:t,strategy:e,moduleId:i,component:n,childRouter:n.childRouter,lifecycleArgs:[].concat(this.lifecycleArgs[0],r,this.lifecycleArgs[2])}},t.prototype.getWildCardName=function(){var t=this.config.route.lastIndexOf("*");return this.config.route.substr(t+1)},t.prototype.getWildcardPath=function(){var t=this.getWildCardName(),e=this.params[t]||"";return this.queryString&&(e+="?"+this.queryString),e},t.prototype.getBaseUrl=function(){var t=this,e=decodeURI(this.fragment);if(""===e){var i=this.router.routes.find((function(e){return e.name===t.config.name&&""!==e.route}));i&&(e=i.route)}if(!this.params)return encodeURI(e);var n=this.getWildCardName(),r=this.params[n]||"";return r?encodeURI(e.substr(0,e.lastIndexOf(r))):encodeURI(e)},t.prototype._commitChanges=function(t){var e=this,i=this.router;i.currentInstruction=this,this.previousInstruction&&(this.previousInstruction.config.navModel.isActive=!1),this.config.navModel.isActive=!0,i.refreshNavigation();var n=[],r=[],o=function(o){var a=e.viewPortInstructions[o],s=i.viewPorts[o];if(!s)throw new Error("There was no router-view found in the view for "+a.moduleId+".");a.strategy===A.replace?a.childNavigationInstruction&&a.childNavigationInstruction.parentCatchHandler?n.push(a.childNavigationInstruction._commitChanges(t)):(t&&r.push({viewPort:s,viewPortInstruction:a}),n.push(s.process(a,t).then((function(e){if(a.childNavigationInstruction)return a.childNavigationInstruction._commitChanges(t)})))):a.childNavigationInstruction&&n.push(a.childNavigationInstruction._commitChanges(t))};for(var a in this.viewPortInstructions)o(a);return Promise.all(n).then((function(){return r.forEach((function(t){return t.viewPort.swap(t.viewPortInstruction)})),null})).then((function(){return(t=e).previousInstruction=null,void(t.plan=null);var t}))},t.prototype._updateTitle=function(){var t=this._buildTitle(this.router.titleSeparator);t&&this.router.history.setTitle(t)},t.prototype._buildTitle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" | ",e="",i=[];for(var n in this.config.navModel.title&&(e=this.router.transformTitle(this.config.navModel.title)),this.viewPortInstructions){var r=this.viewPortInstructions[n];if(r.childNavigationInstruction){var o=r.childNavigationInstruction._buildTitle(t);o&&i.push(o)}}return i.length&&(e=i.join(t)+(e?t:"")+e),this.router.title&&(e+=(e?t:"")+this.router.transformTitle(this.router.title)),e},t}();var b=function(){function t(t,e){this.isActive=!1,this.title=null,this.href=null,this.relativeHref=null,this.settings={},this.config=null,this.router=t,this.relativeHref=e}return t.prototype.setTitle=function(t){this.title=t,this.isActive&&this.router.updateTitle()},t}();function v(t){return t&&"function"==typeof t.navigate}var y=function(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=t,this.options=Object.assign({trigger:!0,replace:!0},e),this.shouldContinueProcessing=!1}return t.prototype.setRouter=function(t){this.router=t},t.prototype.navigate=function(t){(this.options.useAppRouter?t:this.router||t).navigate(this.url,this.options)},t}(),w=(function(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.route=t,this.params=e,this.options=Object.assign({trigger:!0,replace:!0},i),this.shouldContinueProcessing=!1}t.prototype.setRouter=function(t){this.router=t},t.prototype.navigate=function(t){(this.options.useAppRouter?t:this.router||t).navigateToRoute(this.route,this.params,this.options)}}(),"completed"),_="canceled",M="rejected",x=function(){function t(){this.steps=[]}return t.prototype.addStep=function(t){var e=void 0;if("function"==typeof t)e=t;else{if("function"==typeof t.getSteps){for(var i=t.getSteps(),n=0,r=i.length;n<r;n++)this.addStep(i[n]);return this}e=t.run.bind(t)}return this.steps.push(e),this},t.prototype.run=function(t){var e=-1,i=this.steps;function n(){if(!(++e<i.length))return n.complete();var r=i[e];try{return r(t,n)}catch(t){return n.reject(t)}}return n.complete=S(n,w),n.cancel=S(n,_),n.reject=S(n,M),n()},t}();function S(t,e){return function(t){return Promise.resolve({status:e,output:t,completed:e===w})}}var T=function(){function t(){this.instructions=[],this.options={},this.pipelineSteps=[]}return t.prototype.addPipelineStep=function(t,e){if(null==e)throw new Error("Pipeline step cannot be null or undefined.");return this.pipelineSteps.push({name:t,step:e}),this},t.prototype.addAuthorizeStep=function(t){return this.addPipelineStep("authorize",t)},t.prototype.addPreActivateStep=function(t){return this.addPipelineStep("preActivate",t)},t.prototype.addPreRenderStep=function(t){return this.addPipelineStep("preRender",t)},t.prototype.addPostRenderStep=function(t){return this.addPipelineStep("postRender",t)},t.prototype.fallbackRoute=function(t){return this._fallbackRoute=t,this},t.prototype.map=function(t){return Array.isArray(t)?(t.forEach(this.map.bind(this)),this):this.mapRoute(t)},t.prototype.useViewPortDefaults=function(t){return this.viewPortDefaults=t,this},t.prototype.mapRoute=function(t){return this.instructions.push((function(e){for(var i=d(t),n=void 0,r=0,o=i.length;r<o;++r){var a=i[r];a.settings=a.settings||{},n||(n=e.createNavModel(a)),e.addRoute(a,n)}})),this},t.prototype.mapUnknownRoutes=function(t){return this.unknownRouteConfig=t,this},t.prototype.exportToRouter=function(t){for(var e=this.instructions,i=0,n=e.length;i<n;++i)e[i](t);this.title&&(t.title=this.title),this.titleSeparator&&(t.titleSeparator=this.titleSeparator),this.unknownRouteConfig&&t.handleUnknownRoutes(this.unknownRouteConfig),this._fallbackRoute&&(t.fallbackRoute=this._fallbackRoute),this.viewPortDefaults&&t.useViewPortDefaults(this.viewPortDefaults),Object.assign(t.options,this.options);var r=this.pipelineSteps;if(r.length){if(!t.isRoot)throw new Error("Pipeline steps can only be added to the root router");for(var o=t.pipelineProvider,a=0,s=r.length;a<s;++a){var u=r[a],h=u.name,l=u.step;o.addStep(h,l)}}},t}(),A={noChange:"no-change",invokeLifecycle:"invoke-lifecycle",replace:"replace"},C=function(){function t(){}return t.prototype.run=function(t,e){return E(t).then((function(i){return i instanceof y?e.cancel(i):(t.plan=i,e())})).catch(e.cancel)},t}();function E(t,e){var i=t.config;if("redirect"in i){var n=t.router;return n._createNavigationInstruction(i.redirect).then((function(e){var i={};for(var r in e.params){var o=e.params[r];"string"==typeof o&&":"===o[0]?(o=o.slice(1))in t.params&&(i[r]=t.params[o]):i[r]=e.params[r]}var a=n.generate(e.config.name,i,t.options);return t.queryString&&(a+="?"+t.queryString),Promise.resolve(new y(a))}))}var r=t.previousInstruction,o={},a=t.router.viewPortDefaults;if(r){var s=function(t,e){var i=t.params,n=e.params,r=e.config.hasChildRouter?e.getWildCardName():null;for(var o in n)if(o!==r&&i[o]!==n[o])return!0;for(var a in i)if(a!==r&&i[a]!==n[a])return!0;if(!e.options.compareQueryParams)return!1;var s=t.queryParams,u=e.queryParams;for(var h in u)if(s[h]!==u[h])return!0;for(var l in s)if(s[l]!==u[l])return!0;return!1}(r,t),u=[],h=function(n){var h=r.viewPortInstructions[n],l=n in i.viewPorts?i.viewPorts[n]:h;null===l.moduleId&&n in t.router.viewPortDefaults&&(l=a[n]);var c=o[n]={name:n,config:l,prevComponent:h.component,prevModuleId:h.moduleId};if(h.moduleId!==l.moduleId)c.strategy=A.replace;else if("determineActivationStrategy"in h.component.viewModel){var d;c.strategy=(d=h.component.viewModel).determineActivationStrategy.apply(d,t.lifecycleArgs)}else i.activationStrategy?c.strategy=i.activationStrategy:c.strategy=s||e?A.invokeLifecycle:A.noChange;if(c.strategy!==A.replace&&h.childRouter){var f=t.getWildcardPath(),p=h.childRouter._createNavigationInstruction(f,t).then((function(t){return c.childNavigationInstruction=t,E(t,c.strategy===A.invokeLifecycle).then((function(e){if(e instanceof y)return Promise.reject(e);t.plan=e}))}));u.push(p)}};for(var l in r.viewPortInstructions)h(l);return Promise.all(u).then((function(){return o}))}for(var l in i.viewPorts){var c=i.viewPorts[l];null===c.moduleId&&l in t.router.viewPortDefaults&&(c=a[l]),o[l]={name:l,strategy:A.replace,config:c}}return Promise.resolve(o)}var k=function(){function t(t,e){var i=this;this.parent=null,this.options={},this.viewPortDefaults={},this.transformTitle=function(t){return i.parent?i.parent.transformTitle(t):t},this.container=t,this.history=e,this.reset()}return t.prototype.reset=function(){var t=this;this.viewPorts={},this.routes=[],this.baseUrl="",this.isConfigured=!1,this.isNavigating=!1,this.isExplicitNavigation=!1,this.isExplicitNavigationBack=!1,this.isNavigatingFirst=!1,this.isNavigatingNew=!1,this.isNavigatingRefresh=!1,this.isNavigatingForward=!1,this.isNavigatingBack=!1,this.couldDeactivate=!1,this.navigation=[],this.currentInstruction=null,this.viewPortDefaults={},this._fallbackOrder=100,this._recognizer=new r.a,this._childRecognizer=new r.a,this._configuredPromise=new Promise((function(e){t._resolveConfiguredPromise=e}))},t.prototype.registerViewPort=function(t,e){e=e||"default",this.viewPorts[e]=t},t.prototype.ensureConfigured=function(){return this._configuredPromise},t.prototype.configure=function(t){var e=this;this.isConfigured=!0;var i=t,n=void 0;return"function"==typeof t&&(i=t(n=new T)),Promise.resolve(i).then((function(t){t&&t.exportToRouter&&(n=t),n.exportToRouter(e),e.isConfigured=!0,e._resolveConfiguredPromise()}))},t.prototype.navigate=function(t,e){return!this.isConfigured&&this.parent?this.parent.navigate(t,e):(this.isExplicitNavigation=!0,this.history.navigate(function(t,e,i){return f.test(t)?l(t,i):c(t,e,i)}(t,this.baseUrl,this.history._hasPushState),e))},t.prototype.navigateToRoute=function(t,e,i){var n=this.generate(t,e);return this.navigate(n,i)},t.prototype.navigateBack=function(){this.isExplicitNavigationBack=!0,this.history.navigateBack()},t.prototype.createChild=function(e){var i=new t(e||this.container.createChild(),this.history);return i.parent=this,i},t.prototype.generate=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._recognizer.hasRoute(t);if((!this.isConfigured||!n)&&this.parent)return this.parent.generate(t,e,i);if(!n)throw new Error("A route with name '"+t+"' could not be found. Check that `name: '"+t+"'` was specified in the route's config.");var r=this._recognizer.generate(t,e),o=c(r,this.baseUrl,this.history._hasPushState,i.absolute);return i.absolute?""+this.history.getAbsoluteRoot()+o:o},t.prototype.createNavModel=function(t){var e=new b(this,"href"in t?t.href:t.route);return e.title=t.title,e.order=t.nav,e.href=t.href,e.settings=t.settings,e.config=t,e},t.prototype.addRoute=function(t,e){if(Array.isArray(t.route)){d(t).forEach(this.addRoute.bind(this))}else{P(t,this.routes),"viewPorts"in t||t.navigationStrategy||(t.viewPorts={default:{moduleId:t.moduleId,view:t.view}}),e||(e=this.createNavModel(t)),this.routes.push(t);var i=t.route;"/"===i.charAt(0)&&(i=i.substr(1));var n=!0===t.caseSensitive,r=this._recognizer.add({path:i,handler:t,caseSensitive:n});if(i){var o=t.settings;delete t.settings;var a=JSON.parse(JSON.stringify(t));t.settings=o,a.route=i+"/*childRoute",a.hasChildRouter=!0,this._childRecognizer.add({path:a.route,handler:a,caseSensitive:n}),a.navModel=e,a.settings=t.settings,a.navigationStrategy=t.navigationStrategy}if(t.navModel=e,(e.order||0===e.order)&&-1===this.navigation.indexOf(e)){if(!e.href&&""!==e.href&&(r.types.dynamics||r.types.stars))throw new Error('Invalid route config for "'+t.route+'" : dynamic routes must specify an "href:" to be included in the navigation model.');"number"!=typeof e.order&&(e.order=++this._fallbackOrder),this.navigation.push(e),this.navigation=this.navigation.sort((function(t,e){return t.order-e.order}))}}},t.prototype.hasRoute=function(t){return!!(this._recognizer.hasRoute(t)||this.parent&&this.parent.hasRoute(t))},t.prototype.hasOwnRoute=function(t){return this._recognizer.hasRoute(t)},t.prototype.handleUnknownRoutes=function(t){var e=this;if(!t)throw new Error("Invalid unknown route handler");this.catchAllHandler=function(i){return e._createRouteConfig(t,i).then((function(t){return i.config=t,i}))}},t.prototype.updateTitle=function(){if(this.parent)return this.parent.updateTitle();this.currentInstruction&&this.currentInstruction._updateTitle()},t.prototype.refreshNavigation=function(){for(var t=this.navigation,e=0,i=t.length;e<i;e++){var n=t[e];n.config.href?n.href=l(n.config.href,this.history._hasPushState):n.href=c(n.relativeHref,this.baseUrl,this.history._hasPushState)}},t.prototype.useViewPortDefaults=function(t){for(var e in t){var i=t[e];this.viewPortDefaults[e]={moduleId:i.moduleId}}},t.prototype._refreshBaseUrl=function(){this.parent&&(this.baseUrl=O(this.parent,this.parent.currentInstruction))},t.prototype._createNavigationInstruction=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=t,n="",r=t.indexOf("?");-1!==r&&(i=t.substr(0,r),n=t.substr(r+1));var o=this._recognizer.recognize(t);o&&o.length||(o=this._childRecognizer.recognize(t));var a={fragment:i,queryString:n,config:null,parentInstruction:e,previousInstruction:this.currentInstruction,router:this,options:{compareQueryParams:this.options.compareQueryParams}},s=void 0;if(o&&o.length){var u=o[0],h=new g(Object.assign({},a,{params:u.params,queryParams:u.queryParams||o.queryParams,config:u.config||u.handler}));s="function"==typeof u.handler?I(h,u.handler,u):u.handler&&"function"==typeof u.handler.navigationStrategy?I(h,u.handler.navigationStrategy,u.handler):Promise.resolve(h)}else if(this.catchAllHandler){var l=new g(Object.assign({},a,{params:{path:i},queryParams:o?o.queryParams:{},config:null}));s=I(l,this.catchAllHandler)}else if(this.parent){var c=this._parentCatchAllHandler(this.parent);if(c){var d=this._findParentInstructionFromRouter(c,e),f=new g(Object.assign({},a,{params:{path:i},queryParams:o?o.queryParams:{},router:c,parentInstruction:d,parentCatchHandler:!0,config:null}));s=I(f,c.catchAllHandler)}}return s&&e&&(this.baseUrl=O(this.parent,e)),s||Promise.reject(new Error("Route not found: "+t))},t.prototype._findParentInstructionFromRouter=function(t,e){return e.router===t?(e.fragment=t.baseUrl,e):e.parentInstruction?this._findParentInstructionFromRouter(t,e.parentInstruction):void 0},t.prototype._parentCatchAllHandler=function(t){return t.catchAllHandler?t:!!t.parent&&this._parentCatchAllHandler(t.parent)},t.prototype._createRouteConfig=function(t,e){var i=this;return Promise.resolve(t).then((function(t){return"string"==typeof t?{moduleId:t}:"function"==typeof t?t(e):t})).then((function(t){return"string"==typeof t?{moduleId:t}:t})).then((function(t){return t.route=e.params.path,P(t,i.routes),t.navModel||(t.navModel=i.createNavModel(t)),t}))},h(t,[{key:"isRoot",get:function(){return!this.parent}}]),t}();function O(t,e){return""+(t.baseUrl||"")+(e.getBaseUrl()||"")}function P(t,e){if("object"!==(void 0===t?"undefined":u(t)))throw new Error("Invalid Route Config");if("string"!=typeof t.route){var i=t.name||"(no name)";throw new Error('Invalid Route Config for "'+i+'": You must specify a "route:" pattern.')}if(!("redirect"in t||t.moduleId||t.navigationStrategy||t.viewPorts))throw new Error('Invalid Route Config for "'+t.route+'": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".')}function I(t,e,i){return Promise.resolve(e.call(i,t)).then((function(){return"viewPorts"in t.config||(t.config.viewPorts={default:{moduleId:t.config.moduleId}}),t}))}var j=function(){function t(){}return t.prototype.run=function(t,e){return B(t,"canDeactivate",e)},t}(),R=function(){function t(){}return t.prototype.run=function(t,e){return H(t,"canActivate",e)},t}(),D=function(){function t(){}return t.prototype.run=function(t,e){return B(t,"deactivate",e,!0)},t}(),L=function(){function t(){}return t.prototype.run=function(t,e){return H(t,"activate",e,!0)},t}();function B(t,e,i,n){var r=N(t.plan,e),o=r.length;function a(t){return n||V(t)?s():i.cancel(t)}function s(){if(o--)try{return G(r[o][e](t),a,i.cancel)}catch(t){return i.cancel(t)}return t.router.couldDeactivate=!0,i()}return s()}function N(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(var n in t){var r=t[n],o=r.prevComponent;if((r.strategy===A.invokeLifecycle||r.strategy===A.replace)&&o){var a=o.viewModel;e in a&&i.push(a)}r.strategy===A.replace&&o?z(o,e,i):r.childNavigationInstruction&&N(r.childNavigationInstruction.plan,e,i)}return i}function z(t,e,i){var n=t.childRouter;if(n&&n.currentInstruction){var r=n.currentInstruction.viewPortInstructions;for(var o in r){var a=r[o].component,s=a.viewModel;e in s&&i.push(s),z(a,e,i)}}}function H(t,e,i,n){var r=F(t,e),o=r.length,a=-1;function s(){if(++a<o)try{var t,u=r[a];return G((t=u.viewModel)[e].apply(t,u.lifecycleArgs),(function(t){return function(t,e){return n||V(t,e)?s():i.cancel(t)}(t,u.router)}),i.cancel)}catch(t){return i.cancel(t)}return i()}return s()}function F(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments[3],r=t.plan;return Object.keys(r).filter((function(o){var a=r[o],s=t.viewPortInstructions[o],u=s.component.viewModel;a.strategy!==A.invokeLifecycle&&a.strategy!==A.replace||!(e in u)||i.push({viewModel:u,lifecycleArgs:s.lifecycleArgs,router:n}),a.childNavigationInstruction&&F(a.childNavigationInstruction,e,i,s.component.childRouter||n)})),i}function V(t,e){return!(t instanceof Error)&&(v(t)?("function"==typeof t.setRouter&&t.setRouter(e),!!t.shouldContinueProcessing):void 0===t||t)}var U=function(){function t(t){this._subscribed=!0,this._subscription=t(this),this._subscribed||this.unsubscribe()}return t.prototype.unsubscribe=function(){this._subscribed&&this._subscription&&this._subscription.unsubscribe(),this._subscribed=!1},h(t,[{key:"subscribed",get:function(){return this._subscribed}}]),t}();function G(t,e,i){if(t&&"function"==typeof t.then)return Promise.resolve(t).then(e).catch(i);if(t&&"function"==typeof t.subscribe){var n=t;return new U((function(r){return n.subscribe({next:function(){r.subscribed&&(r.unsubscribe(),e(t))},error:function(t){r.subscribed&&(r.unsubscribe(),i(t))},complete:function(){r.subscribed&&(r.unsubscribe(),e(t))}})}))}try{return e(t)}catch(t){return i(t)}}var q=function(){function t(){}return t.prototype.loadRoute=function(t,e,i){throw Error('Route loaders must implement "loadRoute(router, config, navigationInstruction)".')},t}(),W=function(){function t(t){this.routeLoader=t}return t.inject=function(){return[q]},t.prototype.run=function(t,e){return Z(this.routeLoader,t).then(e).catch(e.cancel)},t}();function Z(t,e){var i=Y(e).map((function(e){return function(t,e,i){var n=i.config?i.config.moduleId:null;return function(t,e,i){var n=e.router,r=e.lifecycleArgs;return t.loadRoute(n,i,e).then((function(t){var e=t.viewModel,o=t.childContainer;if(t.router=n,t.config=i,"configureRouter"in e){var a=o.getChildRouter();return t.childRouter=a,a.configure((function(t){return e.configureRouter.apply(e,[t,a].concat(r))})).then((function(){return t}))}return t}))}(t,e,i.config).then((function(r){var o=e.addViewPortInstruction(i.name,i.strategy,n,r),a=r.childRouter;if(a){var s=e.getWildcardPath();return a._createNavigationInstruction(s,e).then((function(e){return i.childNavigationInstruction=e,E(e).then((function(i){return i instanceof y?Promise.reject(i):(e.plan=i,o.childNavigationInstruction=e,Z(t,e))}))}))}}))}(t,e.navigationInstruction,e.viewPortPlan)}));return Promise.all(i)}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=t.plan;for(var n in i){var r=i[n];if(r.strategy===A.replace)e.push({viewPortPlan:r,navigationInstruction:t}),r.childNavigationInstruction&&Y(r.childNavigationInstruction,e);else{var o=t.addViewPortInstruction(n,r.strategy,r.prevModuleId,r.prevComponent);r.childNavigationInstruction&&(o.childNavigationInstruction=r.childNavigationInstruction,Y(r.childNavigationInstruction,e))}}return e}var $=function(){function t(t,e,i){this.steps=[],this.container=t,this.slotName=e,this.slotAlias=i}return t.prototype.getSteps=function(){var t=this;return this.steps.map((function(e){return t.container.get(e)}))},t}(),K=function(){function t(t){this.container=t,this.steps=[C,j,W,this._createPipelineSlot("authorize"),R,this._createPipelineSlot("preActivate","modelbind"),D,L,this._createPipelineSlot("preRender","precommit"),m,this._createPipelineSlot("postRender","postcomplete")]}return t.inject=function(){return[o.a]},t.prototype.createPipeline=function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=new x;return this.steps.forEach((function(n){(e||n!==j)&&i.addStep(t.container.get(n))})),i},t.prototype._findStep=function(t){return this.steps.find((function(e){return e.slotName===t||e.slotAlias===t}))},t.prototype.addStep=function(t,e){var i=this._findStep(t);if(!i)throw new Error("Invalid pipeline slot name: "+t+".");i.steps.includes(e)||i.steps.push(e)},t.prototype.removeStep=function(t,e){var i=this._findStep(t);i&&i.steps.splice(i.steps.indexOf(e),1)},t.prototype._clearSteps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this._findStep(t);e&&(e.steps=[])},t.prototype.reset=function(){this._clearSteps("authorize"),this._clearSteps("preActivate"),this._clearSteps("preRender"),this._clearSteps("postRender")},t.prototype._createPipelineSlot=function(t,e){return new $(this.container,t,e)},t}(),X=n.getLogger("app-router"),Q=function(t){function e(e,i,n,r){var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,e,i));return o.pipelineProvider=n,o.events=r,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.inject=function(){return[o.a,a.a,K,s.a]},e.prototype.reset=function(){t.prototype.reset.call(this),this.maxInstructionCount=10,this._queue?this._queue.length=0:this._queue=[]},e.prototype.loadUrl=function(t){var e=this;return this._createNavigationInstruction(t).then((function(t){return e._queueInstruction(t)})).catch((function(t){X.error(t),et(e)}))},e.prototype.registerViewPort=function(e,i){var n=this;if(t.prototype.registerViewPort.call(this,e,i),this.isActive)this._dequeueInstruction();else{var r=this._findViewModel(e);if("configureRouter"in r){if(!this.isConfigured){var o=this._resolveConfiguredPromise;return this._resolveConfiguredPromise=function(){},this.configure((function(t){return r.configureRouter(t,n)})).then((function(){n.activate(),o()}))}}else this.activate()}return Promise.resolve()},e.prototype.activate=function(t){this.isActive||(this.isActive=!0,this.options=Object.assign({routeHandler:this.loadUrl.bind(this)},this.options,t),this.history.activate(this.options),this._dequeueInstruction())},e.prototype.deactivate=function(){this.isActive=!1,this.history.deactivate()},e.prototype._queueInstruction=function(t){var e=this;return new Promise((function(i){t.resolve=i,e._queue.unshift(t),e._dequeueInstruction()}))},e.prototype._dequeueInstruction=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Promise.resolve().then((function(){if(!t.isNavigating||e){var i=t._queue.shift();if(t._queue.length=0,i){t.isNavigating=!0;var n=t.history.getState("NavigationTracker");if(n||t.currentNavigationTracker?n?t.currentNavigationTracker?t.currentNavigationTracker<n?t.isNavigatingForward=!0:t.currentNavigationTracker>n&&(t.isNavigatingBack=!0):t.isNavigatingRefresh=!0:t.isNavigatingNew=!0:(t.isNavigatingFirst=!0,t.isNavigatingNew=!0),n||(n=Date.now(),t.history.setState("NavigationTracker",n)),t.currentNavigationTracker=n,i.previousInstruction=t.currentInstruction,e){if(e===t.maxInstructionCount-1)return X.error(e+1+" navigation instructions have been attempted without success. Restoring last known good location."),et(t),t._dequeueInstruction(e+1);if(e>t.maxInstructionCount)throw new Error("Maximum navigation attempts exceeded. Giving up.")}else t.events.publish("router:navigation:processing",{instruction:i});return t.pipelineProvider.createPipeline(!t.couldDeactivate).run(i).then((function(n){return J(i,n,e,t)})).catch((function(t){return{output:t instanceof Error?t:new Error(t)}})).then((function(n){return tt(i,n,!!e,t)}))}}}))},e.prototype._findViewModel=function(t){if(this.container.viewModel)return this.container.viewModel;if(t.container)for(var e=t.container;e;){if(e.viewModel)return this.container.viewModel=e.viewModel,e.viewModel;e=e.parent}},e}(k);function J(t,e,i,n){e&&"completed"in e&&"output"in e||((e=e||{}).output=new Error("Expected router pipeline to return a navigation result, but got ["+JSON.stringify(e)+"] instead."));var r=null,o=null;return v(e.output)?o=e.output.navigate(n):(r=e,e.completed||(e.output instanceof Error&&X.error(e.output),et(n))),Promise.resolve(o).then((function(t){return n._dequeueInstruction(i+1)})).then((function(t){return r||t||e}))}function tt(t,e,i,n){t.resolve(e);var r={instruction:t,result:e};if(i)n.events.publish("router:navigation:child:complete",r);else{n.isNavigating=!1,n.isExplicitNavigation=!1,n.isExplicitNavigationBack=!1,n.isNavigatingFirst=!1,n.isNavigatingNew=!1,n.isNavigatingRefresh=!1,n.isNavigatingForward=!1,n.isNavigatingBack=!1,n.couldDeactivate=!1;var o=void 0;if(e.output instanceof Error)o="error";else if(e.completed){var a=t.queryString?"?"+t.queryString:"";n.history.previousLocation=t.fragment+a,o="success"}else o="canceled";n.events.publish("router:navigation:"+o,r),n.events.publish("router:navigation:complete",r)}return e}function et(t){t.history.previousLocation?t.navigate(t.history.previousLocation,{trigger:!1,replace:!0}):t.fallbackRoute?t.navigate(t.fallbackRoute,{trigger:!0,replace:!0}):X.error("Router navigation failed, and no previous location or fallbackRoute could be restored.")}},780:function(t,e,i){"use strict";var n=i(132),r=i(105),o=r.assert,a=r.cachedProperty,s=r.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},781:function(t,e,i){"use strict";var n=i(482);e.certificate=i(787);var r=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=r;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var h=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=h;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=l,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var c=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=c;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},782:function(t,e,i){"use strict";const n=i(484),r=i(486),o=i(46);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){const e=this.name;function i(t){this._initNamed(t,e)}return o(i,t),i.prototype._initNamed=function(e,i){t.call(this,e,i)},new i(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},a.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},a.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},783:function(t,e,i){"use strict";const n=i(46),r=i(485);function o(t){r.call(this,t),this.enc="pem"}n(o,r),t.exports=o,o.prototype.encode=function(t,e){const i=r.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"];for(let t=0;t<i.length;t+=64)n.push(i.slice(t,t+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},784:function(t,e,i){"use strict";const n=i(46),r=i(325).Buffer,o=i(487);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){const i=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let t=0;t<i.length;t++){const e=i[t].match(a);if(null!==e&&e[2]===n){if(-1!==s){if("END"!==e[1])break;u=t;break}if("BEGIN"!==e[1])break;s=t}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);const h=i.slice(s+1,u).join("");h.replace(/[^a-z0-9+/=]+/gi,"");const l=r.from(h,"base64");return o.prototype.decode.call(this,l,e)}},785:function(t,e,i){"use strict";const n=e;n.Reporter=i(327).Reporter,n.DecoderBuffer=i(207).DecoderBuffer,n.EncoderBuffer=i(207).EncoderBuffer,n.Node=i(326)},786:function(t,e,i){"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);const n=t[i];e[n]=i})),e},n.der=i(328)},787:function(t,e,i){"use strict";var n=i(482),r=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),h=n.define("RDNSequence",(function(){this.seqof(u)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),c=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(c),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},788:function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},789:function(t,e,i){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=i(226),s=i(314),u=i(40).Buffer;t.exports=function(t,e){var i,h=t.toString(),l=h.match(n);if(l){var c="aes"+l[1],d=u.from(l[2],"hex"),f=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(e,d.slice(0,8),parseInt(l[1],10)).key,m=[],g=s.createDecipheriv(c,p,d);m.push(g.update(f)),m.push(g.final()),i=u.concat(m)}else{var b=h.match(o);i=u.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(r)[1],data:i}}},790:function(t,e,i){var n=i(317).Buffer,r=i(320),o=i(321).ec,a=i(235),s=i(488);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,i,h,l){var c=a(i);if("ec"===c.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(t,e,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new o(n),a=i.data.subjectPrivateKey.data;return r.verify(e,t,a)}(t,e,c)}if("dsa"===c.type){if("dsa"!==h)throw new Error("wrong public key type");return function(t,e,i){var n=i.data.p,o=i.data.q,s=i.data.g,h=i.data.pub_key,l=a.signature.decode(t,"der"),c=l.s,d=l.r;u(c,o),u(d,o);var f=r.mont(n),p=c.invm(o);return 0===s.toRed(f).redPow(new r(e).mul(p).mod(o)).fromRed().mul(h.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}(t,e,c)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");e=n.concat([l,e]);for(var d=c.modulus.byteLength(),f=[1],p=0;e.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var m=-1;++m<e.length;)f.push(e[m]);f=n.from(f);var g=r.mont(c.modulus);t=(t=new r(t).toRed(g)).redPow(new r(c.publicExponent)),t=n.from(t.fromRed().toArray());var b=p<8?1:0;for(d=Math.min(t.length,f.length),t.length!==f.length&&(b=1),m=-1;++m<d;)b|=t[m]^f[m];return 0===b}},791:function(t,e,i){(function(e){var n=i(321),r=i(792);t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(t,i,n){Array.isArray(t)||(t=t.toArray());var r=new e(t);if(n&&r.length<n){var o=new e(n-r.length);o.fill(0),r=e.concat([o,r])}return i?r.toString(i):r}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,i,n){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var i=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(i[i.length-1]%2?i[0]=7:i[0]=6),s(i,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,i){i=i||"utf8",e.isBuffer(t)||(t=new e(t,i));var n=new r(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,i(76).Buffer)},792:function(t,e,i){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(237).Buffer}catch(t){}function s(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function u(t,e,i){var n=s(t,i);return i-1>=e&&(n|=s(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)r=u(t,e,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,u=0,l=i;l<s;l+=n)u=h(t,l,l+n,e),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=h(t,l,t.length,e),l=0;l<a;l++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;i.words[0]=s;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;l+=(a=(r=0|t.words[p])*(o=0|e.words[f])+c)/67108864|0,c=67108863&a}i.words[h]=0|c,u=0|l}return 0!==u?i.words[h]=0|u:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);i=0!==(o=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+i:u+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);i=(p=p.idivn(f)).isZero()?m+i:l[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<i.length;a++)o=(e=(0|i.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var n,r,o,a=t.words,s=e.words,u=i.words,h=0,l=0|a[0],c=8191&l,d=l>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],x=8191&M,S=M>>>13,T=0|a[5],A=8191&T,C=T>>>13,E=0|a[6],k=8191&E,O=E>>>13,P=0|a[7],I=8191&P,j=P>>>13,R=0|a[8],D=8191&R,L=R>>>13,B=0|a[9],N=8191&B,z=B>>>13,H=0|s[0],F=8191&H,V=H>>>13,U=0|s[1],G=8191&U,q=U>>>13,W=0|s[2],Z=8191&W,Y=W>>>13,$=0|s[3],K=8191&$,X=$>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,lt=0|s[8],ct=8191&lt,dt=lt>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(h+(n=Math.imul(c,F))|0)+((8191&(r=(r=Math.imul(c,V))+Math.imul(d,F)|0))<<13)|0;h=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,F),r=(r=Math.imul(p,V))+Math.imul(m,F)|0,o=Math.imul(m,V);var bt=(h+(n=n+Math.imul(c,G)|0)|0)+((8191&(r=(r=r+Math.imul(c,q)|0)+Math.imul(d,G)|0))<<13)|0;h=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(b,F),r=(r=Math.imul(b,V))+Math.imul(v,F)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,r=(r=r+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var vt=(h+(n=n+Math.imul(c,Z)|0)|0)+((8191&(r=(r=r+Math.imul(c,Y)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,Y)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,F),r=(r=Math.imul(w,V))+Math.imul(_,F)|0,o=Math.imul(_,V),n=n+Math.imul(b,G)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0;var yt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(r=(r=r+Math.imul(c,X)|0)+Math.imul(d,K)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,F),r=(r=Math.imul(x,V))+Math.imul(S,F)|0,o=Math.imul(S,V),n=n+Math.imul(w,G)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,K)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var wt=(h+(n=n+Math.imul(c,J)|0)|0)+((8191&(r=(r=r+Math.imul(c,tt)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),r=(r=Math.imul(A,V))+Math.imul(C,F)|0,o=Math.imul(C,V),n=n+Math.imul(x,G)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,X)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(h+(n=n+Math.imul(c,it)|0)|0)+((8191&(r=(r=r+Math.imul(c,nt)|0)+Math.imul(d,it)|0))<<13)|0;h=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(k,F),r=(r=Math.imul(k,V))+Math.imul(O,F)|0,o=Math.imul(O,V),n=n+Math.imul(A,G)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(x,Z)|0,r=(r=r+Math.imul(x,Y)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,X)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,J)|0,r=(r=r+Math.imul(b,tt)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,it)|0,r=(r=r+Math.imul(p,nt)|0)+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0;var Mt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(r=(r=r+Math.imul(c,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(I,F),r=(r=Math.imul(I,V))+Math.imul(j,F)|0,o=Math.imul(j,V),n=n+Math.imul(k,G)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,Y)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,J)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(b,it)|0,r=(r=r+Math.imul(b,nt)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var xt=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(r=(r=r+Math.imul(c,ht)|0)+Math.imul(d,ut)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,F),r=(r=Math.imul(D,V))+Math.imul(L,F)|0,o=Math.imul(L,V),n=n+Math.imul(I,G)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(x,J)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,it)|0,r=(r=r+Math.imul(w,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(b,ot)|0,r=(r=r+Math.imul(b,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var St=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(r=(r=r+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,F),r=(r=Math.imul(N,V))+Math.imul(z,F)|0,o=Math.imul(z,V),n=n+Math.imul(D,G)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(A,J)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,r=(r=r+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(b,ut)|0,r=(r=r+Math.imul(b,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,dt)|0;var Tt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(r=(r=r+Math.imul(c,mt)|0)+Math.imul(d,pt)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,q))+Math.imul(z,G)|0,o=Math.imul(z,q),n=n+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,Y)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,r=(r=r+Math.imul(w,ht)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ht)|0,n=n+Math.imul(b,ct)|0,r=(r=r+Math.imul(b,dt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,dt)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(N,Z),r=(r=Math.imul(N,Y))+Math.imul(z,Z)|0,o=Math.imul(z,Y),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(I,J)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(O,it)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(w,ct)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0;var Ct=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(r=(r=r+Math.imul(b,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,K),r=(r=Math.imul(N,X))+Math.imul(z,K)|0,o=Math.imul(z,X),n=n+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,dt)|0;var Et=(h+(n=n+Math.imul(w,pt)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;h=((o=o+Math.imul(_,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(z,J)|0,o=Math.imul(z,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(L,it)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,dt)|0;var kt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(r=(r=r+Math.imul(x,mt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,it),r=(r=Math.imul(N,nt))+Math.imul(z,it)|0,o=Math.imul(z,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,dt)|0;var Ot=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,ot),r=(r=Math.imul(N,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ht)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,dt)|0;var Pt=(h+(n=n+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,ut),r=(r=Math.imul(N,ht))+Math.imul(z,ut)|0,o=Math.imul(z,ht),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(N,ct),r=(r=Math.imul(N,dt))+Math.imul(z,ct)|0,o=Math.imul(z,dt);var jt=(h+(n=n+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(L,pt)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Rt=(h+(n=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(z,pt)|0))<<13)|0;return h=((o=Math.imul(z,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=gt,u[1]=bt,u[2]=vt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=xt,u[8]=St,u[9]=Tt,u[10]=At,u[11]=Ct,u[12]=Et,u[13]=kt,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=jt,u[18]=Rt,0!==h&&(u[19]=h,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?f(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),d=67108863&c;s=67108863&(d=d+s|0),r+=(a=(a=a+(c/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},g.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a<o;a++)n[a]=e[t[a]],r[a]=i[t[a]]},g.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var c=u,d=h,f=0;f<a;f++){var p=i[l+f],m=n[l+f],g=i[l+f+a],b=n[l+f+a],v=c*g-d*b;b=c*b+d*g,g=v,i[l+f]=p+g,n[l+f]=m+b,i[l+f+a]=p-g,n[l+f+a]=m-b,f!==s&&(v=u*c-h*d,d=u*d+h*c,c=v)}},g.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},g.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,i,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)i[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),l=new Array(n),c=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,r),this.transform(h,o,l,c,n,r);for(var f=0;f<n;f++){var p=s[f]*l[f]-u[f]*c[f];u[f]=s[f]*c[f]+u[f]*l[f],s[f]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length&&0===e[n];n++,i=i.sqr());if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<i;this.words[e]=u|a,a=s>>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(r-=a,r=Math.max(0,r),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=r);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;return!(this.length<=i)&&!!(this.words[i]&r)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,a=t.length+i;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+s;var u=(0|t.words[r])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)s=(o=(0|this.words[r+i])+s)>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)s=(o=-(0|this.words[r])+s)>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,u=n.length-r.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var l=n.clone()._ishlnsubmul(r,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var c=u-1;c>=0;c--){var d=67108864*(0|n.words[r.length+c])+(0|n.words[r.length+c-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,c);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(c)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(c)),s.iushrn(1),u.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(u)):(i.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),u=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(y,v),y.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(w,v),r(_,v),r(M,v),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(b),c=b.redSqr(),f=f.redMul(c),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],t);var r=i[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;r!==i[0]&&(r=this.sqr(r)),0!==c||0!==a?(a<<=1,a|=c,(4===++s||0===n&&0===l)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}u=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},r(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(151)(t))},793:function(t,e,i){e.publicEncrypt=i(794),e.privateDecrypt=i(795),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},794:function(t,e,i){var n=i(235),r=i(167),o=i(203),a=i(489),s=i(490),u=i(329),h=i(491),l=i(319),c=i(40).Buffer;t.exports=function(t,e,i){var d;d=t.padding?t.padding:i?1:4;var f,p=n(t);if(4===d)f=function(t,e){var i=t.modulus.byteLength(),n=e.length,h=o("sha1").update(c.alloc(0)).digest(),l=h.length,d=2*l;if(n>i-d-2)throw new Error("message too long");var f=c.alloc(i-n-d-2),p=i-l-1,m=r(l),g=s(c.concat([h,f,c.alloc(1,1),e],p),a(m,p)),b=s(m,a(g,l));return new u(c.concat([c.alloc(1),b,g],i))}(p,e);else if(1===d)f=function(t,e,i){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=i?c.alloc(a-o-3,255):function(t){var e,i=c.allocUnsafe(t),n=0,o=r(2*t),a=0;for(;n<t;)a===o.length&&(o=r(2*t),a=0),(e=o[a++])&&(i[n++]=e);return i}(a-o-3);return new u(c.concat([c.from([0,i?1:2]),n,c.alloc(1),e],a))}(p,e,i);else{if(3!==d)throw new Error("unknown padding");if((f=new u(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return i?l(f,p):h(f,p)}},795:function(t,e,i){var n=i(235),r=i(489),o=i(490),a=i(329),s=i(319),u=i(203),h=i(491),l=i(40).Buffer;t.exports=function(t,e,i){var c;c=t.padding?t.padding:i?1:4;var d,f=n(t),p=f.modulus.byteLength();if(e.length>p||new a(e).cmp(f.modulus)>=0)throw new Error("decryption error");d=i?h(new a(e),f):s(e,f);var m=l.alloc(p-d.length);if(d=l.concat([m,d],p),4===c)return function(t,e){var i=t.modulus.byteLength(),n=u("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),h=e.slice(a+1),c=o(s,r(h,a)),d=o(h,r(c,i-a-1));if(function(t,e){t=l.from(t),e=l.from(e);var i=0,n=t.length;t.length!==e.length&&(i++,n=Math.min(t.length,e.length));var r=-1;for(;++r<n;)i+=t[r]^e[r];return i}(n,d.slice(0,a)))throw new Error("decryption error");var f=a;for(;0===d[f];)f++;if(1!==d[f++])throw new Error("decryption error");return d.slice(f)}(f,d);if(1===c)return function(t,e,i){var n=e.slice(0,2),r=2,o=0;for(;0!==e[r++];)if(r>=e.length){o++;break}var a=e.slice(2,r-1);("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(r)}(0,d,i);if(3===c)return d;throw new Error("unknown padding")}},796:function(t,e,i){"use strict";(function(t,n){function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i(40),a=i(167),s=o.Buffer,u=o.kMaxLength,h=t.crypto||t.msCrypto,l=Math.pow(2,32)-1;function c(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>l||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function d(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>u)throw new RangeError("buffer too small")}function f(t,e,i,r){if(n.browser){var o=t.buffer,s=new Uint8Array(o,e,i);return h.getRandomValues(s),r?void n.nextTick((function(){r(null,t)})):t}if(!r)return a(i).copy(t,e),t;a(i,(function(i,n){if(i)return r(i);n.copy(t,e),r(null,t)}))}h&&h.getRandomValues||!n.browser?(e.randomFill=function(e,i,n,r){if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)r=i,i=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-i;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return c(i,e.length),d(n,i,e.length),f(e,i,n,r)},e.randomFillSync=function(e,i,n){void 0===i&&(i=0);if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(i,e.length),void 0===n&&(n=e.length-i);return d(n,i,e.length),f(e,i,n)}):(e.randomFill=r,e.randomFillSync=r)}).call(this,i(88),i(70))},808:function(t,e,i){},810:function(t,e,i){i(811),i(812),i(813),i(814),i(815),i(816),i(817),i(818),i(819),i(820),i(821),i(822)},811:function(t,e,i){(function(t){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(t)}).call(this,i(50))},812:function(t,e,i){(function(t){!function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var n=t(this),r=n.attr("data-target");r||(r=(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),r="#"===r?[]:r;var o=t(document).find(r);function a(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a())};var n=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(t)}).call(this,i(50))},813:function(t,e,i){(function(t){!function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};function i(i){return this.each((function(){var n=t(this),r=n.data("bs.button"),o="object"==typeof i&&i;r||n.data("bs.button",r=new e(this,o)),"toggle"==i?r.toggle():i&&r.setState(i)}))}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[r]()),setTimeout(t.proxy((function(){n[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var n=t(e.target).closest(".btn");i.call(n,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(t)}).call(this,i(50))},814:function(t,e,i){(function(t){!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function i(i){return this.each((function(){var n=t(this),r=n.data("bs.carousel"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i),a="string"==typeof i?i:o.slide;r||n.data("bs.carousel",r=new e(this,o)),"number"==typeof i?r.to(i):a?r[a]():o.interval&&r.pause().cycle()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(n)},e.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(i,n){var r=this.$element.find(".item.active"),o=n||this.getItemForDirection(i,r),a=this.interval,s="next"==i?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var h=o[0],l=t.Event("slide.bs.carousel",{relatedTarget:h,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(o)]);c&&c.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(i),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",(function(){o.removeClass([i,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(d)}),0)})).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=i,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var r=function(e){var n=t(this),r=n.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||r,a=t(document).find(o);if(a.hasClass("carousel")){var s=t.extend({},a.data(),n.data()),u=n.attr("data-slide-to");u&&(s.interval=!1),i.call(a,s),u&&a.data("bs.carousel").to(u),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(t)}).call(this,i(50))},815:function(t,e,i){(function(t){!function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(n)}function n(i){return this.each((function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);!r&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),r||n.data("bs.collapse",r=new e(this,o)),"string"==typeof i&&r[i]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(i=r.data("bs.collapse"))&&i.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),i||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var u=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][u])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,n){var r=t(n);this.addAriaAndCollapsedClass(i(r),r)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var o=i(r),a=o.data("bs.collapse")?"toggle":r.data();n.call(o,a)}))}(t)}).call(this,i(50))},816:function(t,e,i){(function(t){!function(t){"use strict";var e='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?t(document).find(i):null;return n&&n.length?n:e.parent()}function r(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(e).each((function(){var e=t(this),r=n(e),o={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(r[0],i.target)||(r.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))})))}i.VERSION="3.4.1",i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var o=n(i),a=o.hasClass("open");if(r(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",r);var s={relatedTarget:this};if(o.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var r=t(this);if(i.preventDefault(),i.stopPropagation(),!r.is(".disabled, :disabled")){var o=n(r),a=o.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&o.find(e).trigger("focus"),r.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var u=s.index(i.target);38==i.which&&u>0&&u--,40==i.which&&u<s.length-1&&u++,~u||(u=0),s.eq(u).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new i(this)),"string"==typeof e&&r[e].call(n)}))},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",e,i.prototype.toggle).on("keydown.bs.dropdown.data-api",e,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(t)}).call(this,i(50))},817:function(t,e,i){(function(t){!function(t){"use strict";var e=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function i(i,n){return this.each((function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},e.DEFAULTS,r.data(),"object"==typeof i&&i);o||r.data("bs.modal",o=new e(this,a)),"string"==typeof i?o[i](n):a.show&&o.show(n)}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(i){var n=this,r=t.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){n.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),r&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:i});r?n.$dialog.one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(e.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)})))},e.prototype.hide=function(i){i&&i.preventDefault(),i=t.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(i){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;o?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){n.removeBackdrop(),i&&i()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else i&&i()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each((function(e,n){var r=n.style.paddingRight,o=t(n).css("padding-right");t(n).data("padding-right",r).css("padding-right",parseFloat(o)+i+"px")})))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each((function(e,i){var n=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=n||""}))},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var n=t(this),r=n.attr("href"),o=n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(o),s=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),n.data());n.is("a")&&e.preventDefault(),a.one("show.bs.modal",(function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),i.call(a,s,this)}))}(t)}).call(this,i(50))},818:function(t,e,i){(function(t){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(e,n){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,n))return-1===t.inArray(a,i)||Boolean(e.nodeValue.match(r)||e.nodeValue.match(o));for(var s=t(n).filter((function(t,e){return e instanceof RegExp})),u=0,h=s.length;u<h;u++)if(a.match(s[u]))return!0;return!1}function s(e,i,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=e;for(var o=t.map(i,(function(t,e){return e})),s=t(r.body).find("*"),u=0,h=s.length;u<h;u++){var l=s[u],c=l.nodeName.toLowerCase();if(-1!==t.inArray(c,o))for(var d=t.map(l.attributes,(function(t){return t})),f=[].concat(i["*"]||[],i[c]||[]),p=0,m=d.length;p<m;p++)a(d[p],f)||l.removeAttribute(d[p].nodeName);else l.parentNode.removeChild(l)}return r.body.innerHTML}var u=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};u.VERSION="3.4.1",u.TRANSITION_DURATION=150,u.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:n},u.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},u.prototype.getDefaults=function(){return u.DEFAULTS},u.prototype.getOptions=function(i){var n=this.$element.data();for(var r in n)n.hasOwnProperty(r)&&-1!==t.inArray(r,e)&&delete n[r];return(i=t.extend({},this.getDefaults(),n,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=s(i.template,i.whiteList,i.sanitizeFn)),i},u.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},u.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},u.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},u.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)}},u.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(a);h&&(a=a.replace(s,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(t(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=r[0].offsetWidth,d=r[0].offsetHeight;if(h){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-d<p.top?"bottom":"right"==a&&l.right+c>p.width?"left":"left"==a&&l.left-c<p.left?"right":a,r.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,l,c,d);this.applyPlacement(m,a);var g=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(u.TRANSITION_DURATION):g()}},u.prototype.applyPlacement=function(e,i){var n=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var u=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var l=this.getViewportAdjustedDelta(i,e,u,h);l.left?e.left+=l.left:e.top+=l.top;var c=/top|bottom/.test(i),d=c?2*l.left-r+u:2*l.top-o+h,f=c?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][f],c)},u.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},u.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=s(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},u.prototype.hide=function(e){var i=this,n=t(this.$tip),r=t.Event("hide.bs."+this.type);function o(){"in"!=i.hoverState&&n.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(u.TRANSITION_DURATION):o(),this.hoverState=null,this},u.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},u.prototype.hasContent=function(){return this.getTitle()},u.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&i instanceof window.SVGElement,a=n?{top:0,left:0}:o?null:e.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},u=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,u,a)},u.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},u.prototype.getViewportAdjustedDelta=function(t,e,i,n){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,u=e.top+o-a.scroll+n;s<a.top?r.top=a.top-s:u>a.top+a.height&&(r.top=a.top+a.height-u)}else{var h=e.left-o,l=e.left+o+i;h<a.left?r.left=a.left-h:l>a.right&&(r.left=a.left+a.width-l)}return r},u.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},u.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},u.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},u.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},u.prototype.enable=function(){this.enabled=!0},u.prototype.disable=function(){this.enabled=!1},u.prototype.toggleEnabled=function(){this.enabled=!this.enabled},u.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},u.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null}))},u.prototype.sanitizeHtml=function(t){return s(t,this.options.whiteList,this.options.sanitizeFn)};var h=t.fn.tooltip;t.fn.tooltip=function(e){return this.each((function(){var i=t(this),n=i.data("bs.tooltip"),r="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||i.data("bs.tooltip",n=new u(this,r)),"string"==typeof e&&n[e]())}))},t.fn.tooltip.Constructor=u,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=h,this}}(t)}).call(this,i(50))},819:function(t,e,i){(function(t){!function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var n=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===n&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===n?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var n=t(this),r=n.data("bs.popover"),o="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.popover",r=new e(this,o)),"string"==typeof i&&r[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(t)}).call(this,i(50))},820:function(t,e,i){(function(t){!function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(i).is(document.body)?t(window):t(i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=t(this),r=n.data("bs.scrollspy"),o="object"==typeof i&&i;r||n.data("bs.scrollspy",r=new e(this,o)),"string"==typeof i&&r[i]()}))}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,r]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(t)}).call(this,i(50))},821:function(t,e,i){(function(t){!function(t){"use strict";var e=function(e){this.element=t(e)};function i(i){return this.each((function(){var n=t(this),r=n.data("bs.tab");r||n.data("bs.tab",r=new e(this)),"string"==typeof i&&r[i]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(document).find(n);this.activate(e.closest("li"),i),this.activate(s,s.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},e.prototype.activate=function(i,n,r){var o=n.find("> .active"),a=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var r=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(t)}).call(this,i(50))},822:function(t,e,i){(function(t){!function(t){"use strict";var e=function(i,n){this.options=t.extend({},e.DEFAULTS,n);var r=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each((function(){var n=t(this),r=n.data("bs.affix"),o="object"==typeof i&&i;r||n.data("bs.affix",r=new e(this,o)),"string"==typeof i&&r[i]()}))}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,i,n){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return r<i&&"top";if("bottom"==this.affixed)return null!=i?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-n)&&"bottom";var s=null==this.affixed,u=s?r:o.top;return null!=i&&r<=i?"top":null!=n&&u+(s?a:e)>=t-n&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),n=this.options.offset,r=n.top,o=n.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,i,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),h=t.Event(u+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-i-o})}};var n=t.fn.affix;t.fn.affix=i,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),n=e.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),i.call(e,n)}))}))}(t)}).call(this,i(50))},835:function(t,e,i){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t,...e){if(!t)throw TypeError("Cannot convert undefined or null to object");for(const i of e)i&&Object.keys(i).forEach((e=>t[e]=i[e]));return t})},850:function(t,e,i){},88:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},889:function(t,e,i){"use strict";i.r(e);var n,r=i(7);Object.defineProperty(r.d,"Loader",{get:function(){return n||(n=i(241).WebpackLoader)},set:function(t){n=t}})},890:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},95:function(t,e,i){},955:function(t,e,i){"use strict";!function(){var e,n,r,o=0,a=[];for(n=0;n<256;n++)a[n]=(n+256).toString(16).substr(1);function s(){var t,i=(t=16,(!e||o+t>u.BUFFER_SIZE)&&(o=0,e=u.randomBytes(u.BUFFER_SIZE)),e.slice(o,o+=t));return i[6]=15&i[6]|64,i[8]=63&i[8]|128,i}function u(){var t=s();return a[t[0]]+a[t[1]]+a[t[2]]+a[t[3]]+"-"+a[t[4]]+a[t[5]]+"-"+a[t[6]]+a[t[7]]+"-"+a[t[8]]+a[t[9]]+"-"+a[t[10]]+a[t[11]]+a[t[12]]+a[t[13]]+a[t[14]]+a[t[15]]}u.BUFFER_SIZE=4096,u.bin=s,u.clearBuffer=function(){e=null,o=0},u.test=function(t){return"string"==typeof t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},"undefined"!=typeof crypto?r=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(r=window.msCrypto),r=r||i(956),t.exports=u,u.randomBytes=function(){if(r){if(r.randomBytes)return r.randomBytes;if(r.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(t){var e=new Uint8Array(t);return r.getRandomValues(e),Array.from(e)}:function(t){var e=new Uint8Array(t);return r.getRandomValues(e),e}}return function(t){var e,i=[];for(e=0;e<t;e++)i.push(Math.floor(256*Math.random()));return i}}()}()},97:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return u}));var n=i(73),r=i(17),o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function(t,e){this.src=t,this.name=e},s=function(){function t(t){this.templateIsLoaded=!1,this.factoryIsReady=!1,this.resources=null,this.dependencies=null,this.address=t,this.onReady=null,this._template=null,this._factory=null}return t.prototype.addDependency=function(t,e){var i="string"==typeof t?Object(n.d)(t,this.address):r.a.get(t).moduleId;this.dependencies.push(new a(i,e))},o(t,[{key:"template",get:function(){return this._template},set:function(t){var e,i=this.address,r=void 0,o=void 0,s=void 0;this._template=t,this.templateIsLoaded=!0,e=t.content.querySelectorAll("require"),s=this.dependencies=new Array(e.length);for(var u=0,h=e.length;u<h;++u){if(!(o=(r=e[u]).getAttribute("from")))throw new Error("<require> element in "+i+' has no "from" attribute.');s[u]=new a(Object(n.d)(o,i),r.getAttribute("as")),r.parentNode&&r.parentNode.removeChild(r)}}},{key:"factory",get:function(){return this._factory},set:function(t){this._factory=t,this.factoryIsReady=!0}}]),t}(),u=function(){function t(){this.templateRegistry={}}return t.prototype.map=function(t,e){throw new Error("Loaders must implement map(id, source).")},t.prototype.normalizeSync=function(t,e){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},t.prototype.normalize=function(t,e){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise<string>.")},t.prototype.loadModule=function(t){throw new Error("Loaders must implement loadModule(id).")},t.prototype.loadAllModules=function(t){throw new Error("Loader must implement loadAllModules(ids).")},t.prototype.loadTemplate=function(t){throw new Error("Loader must implement loadTemplate(url).")},t.prototype.loadText=function(t){throw new Error("Loader must implement loadText(url).")},t.prototype.applyPluginToUrl=function(t,e){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},t.prototype.addPlugin=function(t,e){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},t.prototype.getOrCreateTemplateRegistryEntry=function(t){return this.templateRegistry[t]||(this.templateRegistry[t]=new s(t))},t}()},98:function(t,e,i){var n,r;void 0===(r="function"==typeof(n=function(){var t,e,i,n,r,o="2.0.6",a={},s={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},h={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function l(t,e){this._input=t,this._value=e}return(t=function(i){var n,r,o,s;if(t.isNumeral(i))n=i.value();else if(0===i||void 0===i)n=0;else if(null===i||e.isNaN(i))n=null;else if("string"==typeof i)if(h.zeroFormat&&i===h.zeroFormat)n=0;else if(h.nullFormat&&i===h.nullFormat||!i.replace(/[^0-9]+/g,"").length)n=null;else{for(r in a)if((s="function"==typeof a[r].regexps.unformat?a[r].regexps.unformat():a[r].regexps.unformat)&&i.match(s)){o=a[r].unformat;break}n=(o=o||t._.stringToNumber)(i)}else n=Number(i)||null;return new l(i,n)}).version=o,t.isNumeral=function(t){return t instanceof l},t._=e={numberToFormat:function(e,i,n){var r,o,a,u,h,l,c,d=s[t.options.currentLocale],f=!1,p=!1,m=0,g="",b=1e12,v=1e9,y=1e6,w=1e3,_="",M=!1;if(e=e||0,o=Math.abs(e),t._.includes(i,"(")?(f=!0,i=i.replace(/[\(|\)]/g,"")):(t._.includes(i,"+")||t._.includes(i,"-"))&&(h=t._.includes(i,"+")?i.indexOf("+"):e<0?i.indexOf("-"):-1,i=i.replace(/[\+|\-]/g,"")),t._.includes(i,"a")&&(r=!!(r=i.match(/a(k|m|b|t)?/))&&r[1],t._.includes(i," a")&&(g=" "),i=i.replace(new RegExp(g+"a[kmbt]?"),""),o>=b&&!r||"t"===r?(g+=d.abbreviations.trillion,e/=b):o<b&&o>=v&&!r||"b"===r?(g+=d.abbreviations.billion,e/=v):o<v&&o>=y&&!r||"m"===r?(g+=d.abbreviations.million,e/=y):(o<y&&o>=w&&!r||"k"===r)&&(g+=d.abbreviations.thousand,e/=w)),t._.includes(i,"[.]")&&(p=!0,i=i.replace("[.]",".")),a=e.toString().split(".")[0],u=i.split(".")[1],l=i.indexOf(","),m=(i.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(t._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),_=t._.toFixed(e,u[0].length+u[1].length,n,u[1].length)):_=t._.toFixed(e,u.length,n),a=_.split(".")[0],_=t._.includes(_,".")?d.delimiters.decimal+_.split(".")[1]:"",p&&0===Number(_.slice(1))&&(_="")):a=t._.toFixed(e,0,n),g&&!r&&Number(a)>=1e3&&g!==d.abbreviations.trillion)switch(a=String(Number(a)/1e3),g){case d.abbreviations.thousand:g=d.abbreviations.million;break;case d.abbreviations.million:g=d.abbreviations.billion;break;case d.abbreviations.billion:g=d.abbreviations.trillion}if(t._.includes(a,"-")&&(a=a.slice(1),M=!0),a.length<m)for(var x=m-a.length;x>0;x--)a="0"+a;return l>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===i.indexOf(".")&&(a=""),c=a+_+(g||""),f?c=(f&&M?"(":"")+c+(f&&M?")":""):h>=0?c=0===h?(M?"-":"+")+c:c+(M?"-":"+"):M&&(c="-"+c),c},stringToNumber:function(t){var e,i,n,r=s[h.currentLocale],o=t,a={thousand:3,million:6,billion:9,trillion:12};if(h.zeroFormat&&t===h.zeroFormat)i=0;else if(h.nullFormat&&t===h.nullFormat||!t.replace(/[^0-9]+/g,"").length)i=null;else{for(e in i=1,"."!==r.delimiters.decimal&&(t=t.replace(/\./g,"").replace(r.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+r.abbreviations[e]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),o.match(n)){i*=Math.pow(10,a[e]);break}i*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),i*=Number(t)}return i},isNaN:function(t){return"number"==typeof t&&isNaN(t)},includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,i){return t.slice(0,i)+e+t.slice(i)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var i,n=Object(t),r=n.length>>>0,o=0;if(3===arguments.length)i=arguments[2];else{for(;o<r&&!(o in n);)o++;if(o>=r)throw new TypeError("Reduce of empty array with no initial value");i=n[o++]}for(;o<r;o++)o in n&&(i=e(i,n[o],o,n));return i},multiplier:function(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(t,i){var n=e.multiplier(i);return t>n?t:n}),1)},toFixed:function(t,e,i,n){var r,o,a,s,u=t.toString().split("."),h=e-(n||0);return r=2===u.length?Math.min(Math.max(u[1].length,h),e):h,a=Math.pow(10,r),s=(i(t+"e+"+r)/a).toFixed(r),n>e-r&&(o=new RegExp("\\.?0{1,"+(n-(e-r))+"}$"),s=s.replace(o,"")),s}},t.options=h,t.formats=a,t.locales=s,t.locale=function(t){return t&&(h.currentLocale=t.toLowerCase()),h.currentLocale},t.localeData=function(t){if(!t)return s[h.currentLocale];if(t=t.toLowerCase(),!s[t])throw new Error("Unknown locale : "+t);return s[t]},t.reset=function(){for(var t in u)h[t]=u[t]},t.zeroFormat=function(t){h.zeroFormat="string"==typeof t?t:null},t.nullFormat=function(t){h.nullFormat="string"==typeof t?t:null},t.defaultFormat=function(t){h.defaultFormat="string"==typeof t?t:"0.0"},t.register=function(t,e,i){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=i,i},t.validate=function(e,i){var n,r,o,a,s,u,h,l;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{h=t.localeData(i)}catch(e){h=t.localeData(t.locale())}return o=h.currency.symbol,s=h.abbreviations,n=h.delimiters.decimal,r="."===h.delimiters.thousands?"\\.":h.delimiters.thousands,!(null!==(l=e.match(/^[^\d]+/))&&(e=e.substr(1),l[0]!==o)||null!==(l=e.match(/[^\d]+$/))&&(e=e.slice(0,-1),l[0]!==s.thousand&&l[0]!==s.million&&l[0]!==s.billion&&l[0]!==s.trillion)||(u=new RegExp(r+"{2}"),e.match(/[^\d.,]/g)||(a=e.split(n)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!a[1].match(/^\d+$/))))},t.fn=l.prototype={clone:function(){return t(this)},format:function(e,i){var n,r,o,s=this._value,u=e||h.defaultFormat;if(i=i||Math.round,0===s&&null!==h.zeroFormat)r=h.zeroFormat;else if(null===s&&null!==h.nullFormat)r=h.nullFormat;else{for(n in a)if(u.match(a[n].regexps.format)){o=a[n].format;break}r=(o=o||t._.numberToFormat)(s,u,i)}return r},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var i=e.correctionFactor.call(null,this._value,t);function n(t,e,n,r){return t+Math.round(i*e)}return this._value=e.reduce([this._value,t],n,0)/i,this},subtract:function(t){var i=e.correctionFactor.call(null,this._value,t);function n(t,e,n,r){return t-Math.round(i*e)}return this._value=e.reduce([t],n,Math.round(this._value*i))/i,this},multiply:function(t){function i(t,i,n,r){var o=e.correctionFactor(t,i);return Math.round(t*o)*Math.round(i*o)/Math.round(o*o)}return this._value=e.reduce([this._value,t],i,1),this},divide:function(t){function i(t,i,n,r){var o=e.correctionFactor(t,i);return Math.round(t*o)/Math.round(i*o)}return this._value=e.reduce([this._value,t],i),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,i,n){var r,o=t._.includes(i," BPS")?" ":"";return e*=1e4,i=i.replace(/\s?BPS/,""),r=t._.numberToFormat(e,i,n),t._.includes(r,")")?((r=r.split("")).splice(-1,0,o+"BPS"),r=r.join("")):r=r+o+"BPS",r},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r="("+(r=(i={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(t){return i.suffixes.indexOf(t)<0}))).join("|")).replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(e,r,o){var a,s,u,h=t._.includes(r,"ib")?n:i,l=t._.includes(r," b")||t._.includes(r," ib")?" ":"";for(r=r.replace(/\s?i?b/,""),a=0;a<=h.suffixes.length;a++)if(s=Math.pow(h.base,a),u=Math.pow(h.base,a+1),null===e||0===e||e>=s&&e<u){l+=h.suffixes[a],s>0&&(e/=s);break}return t._.numberToFormat(e,r,o)+l},unformat:function(e){var r,o,a=t._.stringToNumber(e);if(a){for(r=i.suffixes.length-1;r>=0;r--){if(t._.includes(e,i.suffixes[r])){o=Math.pow(i.base,r);break}if(t._.includes(e,n.suffixes[r])){o=Math.pow(n.base,r);break}}a*=o||1}return a}}),t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,i,n){var r,o,a=t.locales[t.options.currentLocale],s={before:i.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:i.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(i=i.replace(/\s?\$\s?/,""),r=t._.numberToFormat(e,i,n),e>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(s.before,"-")&&!t._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":r=t._.insert(r,a.currency.symbol,o);break;case" ":r=t._.insert(r," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":r=o===s.after.length-1?r+a.currency.symbol:t._.insert(r,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":r=o===s.after.length-1?r+" ":t._.insert(r," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return r}}),t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,i,n){var r=("number"!=typeof e||t._.isNaN(e)?"0e+0":e.toExponential()).split("e");return i=i.replace(/e[\+|\-]{1}0/,""),t._.numberToFormat(Number(r[0]),i,n)+"e"+r[1]},unformat:function(e){var i=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),n=Number(i[0]),r=Number(i[1]);function o(e,i,n,r){var o=t._.correctionFactor(e,i);return e*o*(i*o)/(o*o)}return r=t._.includes(e,"e-")?r*=-1:r,t._.reduce([n,Math.pow(10,r)],o,1)}}),t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,i,n){var r=t.locales[t.options.currentLocale],o=t._.includes(i," o")?" ":"";return i=i.replace(/\s?o/,""),o+=r.ordinal(e),t._.numberToFormat(e,i,n)+o}}),t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,i,n){var r,o=t._.includes(i," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),i=i.replace(/\s?\%/,""),r=t._.numberToFormat(e,i,n),t._.includes(r,")")?((r=r.split("")).splice(-1,0,o+"%"),r=r.join("")):r=r+o+"%",r},unformat:function(e){var i=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*i:i}}),t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,i){var n=Math.floor(t/60/60),r=Math.floor((t-60*n*60)/60),o=Math.round(t-60*n*60-60*r);return n+":"+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)},unformat:function(t){var e=t.split(":"),i=0;return 3===e.length?(i+=60*Number(e[0])*60,i+=60*Number(e[1]),i+=Number(e[2])):2===e.length&&(i+=60*Number(e[0]),i+=Number(e[1])),Number(i)}}),t})?n.call(e,i,e,t):n)||(t.exports=r)},99:function(t,e,i){var n,r;!function(o){if(void 0===(r="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=r),!0,t.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function i(n){function r(){}function o(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},r.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(i);/^[\{\[]/.test(a)&&(i=a)}catch(t){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=e+"="+i+s}}function a(t,i){if("undefined"!=typeof document){for(var r={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");i||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var h=e(s[0]);if(u=(n.read||n)(u,h)||e(u),i)try{u=JSON.parse(u)}catch(t){}if(r[h]=u,t===h)break}catch(t){}}return t?r[t]:r}}return r.set=o,r.get=function(t){return a(t,!1)},r.getJSON=function(t){return a(t,!0)},r.remove=function(e,i){o(e,"",t(i,{expires:-1}))},r.defaults={},r.withConverter=i,r}((function(){}))}))},"aurelia-dialog":function(t,e,i){"use strict";i.r(e),i.d(e,"configure",(function(){return h}));var n=i(251),r=i(177);i.d(e,"DefaultDialogSettings",(function(){return r.a})),i.d(e,"DialogConfiguration",(function(){return n.a}));var o=i(176);i.d(e,"Renderer",(function(){return o.a}));var a=i(153);i.d(e,"createDialogCancelError",(function(){return a.a}));var s=i(438);i.d(e,"DialogService",(function(){return s.a}));var u=i(135);function h(t,e){var i=null,r=new n.a(t,(function(t){i=t}));return"function"==typeof e?e(r):r.useDefaults(),i()}i.d(e,"DialogController",(function(){return u.a}))},"aurelia-dialog/resources/attach-focus":function(t,e,i){"use strict";i.r(e),i.d(e,"AttachFocus",(function(){return s}));var n=i(14),r=i(11),o=i(7),a=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},s=function(){function t(t){this.element=t,this.value=!0}return t.prototype.attached=function(){(""===this.value||this.value&&"false"!==this.value)&&this.element.focus()},t.inject=[o.b.Element],t=a([Object(r.r)("attach-focus",n.r.oneTime)],t)}()},"aurelia-dialog/resources/ux-dialog":function(t,e,i){"use strict";i.r(e),i.d(e,"UxDialog",(function(){return o}));var n=i(11),r=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},o=function(){function t(){}return t=r([Object(n.s)("ux-dialog"),n.t("\n  <template>\n    <slot></slot>\n  </template>\n")],t)}()},"aurelia-dialog/resources/ux-dialog-body":function(t,e,i){"use strict";i.r(e),i.d(e,"UxDialogBody",(function(){return o}));var n=i(11),r=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},o=function(){function t(){}return t=r([Object(n.s)("ux-dialog-body"),n.t("\n  <template>\n    <slot></slot>\n  </template>\n")],t)}()},"aurelia-dialog/resources/ux-dialog-footer":function(t,e,i){"use strict";i.r(e),i.d(e,"UxDialogFooter",(function(){return a}));var n=i(11),r=i(135),o=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},a=function(){function t(t){this.controller=t,this.buttons=[],this.useDefaultButtons=!1}var e;return e=t,t.isCancelButton=function(t){return"Cancel"===t},t.prototype.close=function(t){e.isCancelButton(t)?this.controller.cancel(t):this.controller.ok(t)},t.prototype.useDefaultButtonsChanged=function(t){t&&(this.buttons=["Cancel","Ok"])},t.inject=[r.a],o([n.p],t.prototype,"buttons",void 0),o([n.p],t.prototype,"useDefaultButtons",void 0),t=e=o([Object(n.s)("ux-dialog-footer"),n.t('\n  <template>\n    <slot></slot>\n    <template if.bind="buttons.length > 0">\n      <button type="button"\n        class="btn btn-default"\n        repeat.for="button of buttons"\n        click.trigger="close(button)">\n        ${button}\n      </button>\n    </template>\n  </template>\n')],t)}()},"aurelia-dialog/resources/ux-dialog-header":function(t,e,i){"use strict";i.r(e),i.d(e,"UxDialogHeader",(function(){return a}));var n=i(11),r=i(135),o=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},a=function(){function t(t){this.controller=t}return t.prototype.bind=function(){"boolean"!=typeof this.showCloseButton&&(this.showCloseButton=!this.controller.settings.lock)},t.inject=[r.a],o([Object(n.p)()],t.prototype,"showCloseButton",void 0),t=o([Object(n.s)("ux-dialog-header"),n.t('\n  <template>\n    <button\n      type="button"\n      class="dialog-close"\n      aria-label="Close"\n      if.bind="showCloseButton"\n      click.trigger="controller.cancel()">\n      <span aria-hidden="true">&times;</span>\n    </button>\n\n    <div class="dialog-header-content">\n      <slot></slot>\n    </div>\n  </template>\n')],t)}()},"aurelia-event-aggregator":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"configure",(function(){return u}));var n=i(56).getLogger("event-aggregator"),r=function(){function t(t,e){this.messageType=t,this.callback=e}return t.prototype.handle=function(t){t instanceof this.messageType&&this.callback.call(null,t)},t}();function o(t,e,i){try{t(e,i)}catch(t){n.error(t)}}function a(t,e){try{t.handle(e)}catch(t){n.error(t)}}var s=function(){function t(){this.eventLookup={},this.messageHandlers=[]}return t.prototype.publish=function(t,e){var i=void 0,n=void 0;if(!t)throw new Error("Event was invalid.");if("string"==typeof t){if(i=this.eventLookup[t])for(n=(i=i.slice()).length;n--;)o(i[n],e,t)}else for(n=(i=this.messageHandlers.slice()).length;n--;)a(i[n],t)},t.prototype.subscribe=function(t,e){var i=void 0,n=void 0;if(!t)throw new Error("Event channel/type was invalid.");return"string"==typeof t?(i=e,n=this.eventLookup[t]||(this.eventLookup[t]=[])):(i=new r(t,e),n=this.messageHandlers),n.push(i),{dispose:function(){var t=n.indexOf(i);-1!==t&&n.splice(t,1)}}},t.prototype.subscribeOnce=function(t,e){var i=this.subscribe(t,(function(t,n){return i.dispose(),e(t,n)}));return i},t}();function u(t){var e,i;t.instance(s,(e=t.aurelia,i=new s,e.subscribeOnce=function(t,e){return i.subscribeOnce(t,e)},e.subscribe=function(t,e){return i.subscribe(t,e)},e.publish=function(t,e){i.publish(t,e)},i))}},"aurelia-framework":function(t,e,i){"use strict";i.d(e,"Aurelia",(function(){return y}));var n=i(34);i.d(e,"c",(function(){return n.a})),i.d(e,"k",(function(){return n.c})),i.d(e,"o",(function(){return n.e})),i.d(e,"p",(function(){return n.f}));var r=i(14);i.d(e,"b",(function(){return r.c})),i.d(e,"g",(function(){return r.r})),i.d(e,"h",(function(){return r.t})),i.d(e,"m",(function(){return r.z})),i.d(e,"n",(function(){return r.A}));i(17);var o=i(11);i.d(e,"f",(function(){return o.p})),i.d(e,"i",(function(){return o.q})),i.d(e,"j",(function(){return o.s})),i.d(e,"l",(function(){return o.u})),i.d(e,"q",(function(){return o.x}));var a=i(97),s=(i(120),i(73)),u=i(7);i.d(e,"d",(function(){return u.b}));var h=i(56);i.d(e,"e",(function(){return h}));var l=h.getLogger("aurelia"),c=/\.[^/.]+$/;function d(t,e){var i,n=function(){return(i=e.shift())?Promise.resolve(i(t)).then(n):Promise.resolve()};return n()}function f(t,e,i){if(0===Object.keys(e).length)return Promise.resolve();var n=t.container.get(o.l);return Promise.all(Object.keys(e).map((function(i){return function(e){var i=e.moduleId,n=p(i);r(i)&&(i=a(i));return t.loader.normalize(i,e.relativeTo).then((function(t){return{name:e.moduleId,importId:r(e.moduleId)?s(t,n):t}}))}(e[i])}))).then((function(t){var e=[],r=[];return t.forEach((function(t){e.push(void 0),r.push(t.importId)})),n.importViewResources(r,e,i)}));function r(t){var e=p(t);return!!e&&(""!==e&&(".js"!==e&&".ts"!==e))}function a(t){return t.replace(c,"")}function s(t,e){return a(t)+"."+e}}function p(t){var e=t.match(c);if(e&&e.length>0)return e[0].split(".")[1]}function m(t){return Promise.all(t.behaviorsToLoad.map((function(e){return e.load(t.container,e.target)}))).then((function(){t.behaviorsToLoad=null}))}function g(t){if(t.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}function b(t,e){return"Invalid ".concat(e," [").concat(t,"], ").concat(e," must be specified as functions or relative module IDs.")}var v=function(){function t(t){var e=this;this.aurelia=t,this.container=t.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.behaviorsToLoad=[],this.configuredPlugins=[],this.resourcesToLoad={},this.preTask((function(){return t.loader.normalize("aurelia-bootstrapper",void 0).then((function(t){return e.bootstrapperName=t}))})),this.postTask((function(){return f(t,e.resourcesToLoad,t.resources)}))}return t.prototype.instance=function(t,e){return this.container.registerInstance(t,e),this},t.prototype.singleton=function(t,e){return this.container.registerSingleton(t,e),this},t.prototype.transient=function(t,e){return this.container.registerTransient(t,e),this},t.prototype.preTask=function(t){return g(this),this.preTasks.push(t),this},t.prototype.postTask=function(t){return g(this),this.postTasks.push(t),this},t.prototype.feature=function(t,e){switch(void 0===e&&(e={}),typeof t){case"string":var i=/\/index$/i.test(t),n=i||p(t)?t:t+"/index",r=i?t.slice(0,-6):t;this.info.push({moduleId:n,resourcesRelativeTo:[r,""],config:e});break;case"function":this.info.push({configure:t,config:e||{}});break;default:throw new Error(b(t,"feature"))}return this},t.prototype.globalResources=function(t){var e=this;g(this);for(var i,n=Array.isArray(t)?t:arguments,r=this.resourcesRelativeTo||["",""],a=0,u=n.length;a<u;++a)switch(typeof(i=n[a])){case"string":var h=r[0],l=r[1],c=i;(i.startsWith("./")||i.startsWith("../"))&&""!==h&&(c=Object(s.b)(h,i)),this.resourcesToLoad[c]={moduleId:c,relativeTo:l};break;case"function":var d=this.aurelia.resources.autoRegister(this.container,i);d instanceof o.g&&null!==d.elementName&&1===this.behaviorsToLoad.push(d)&&this.postTask((function(){return m(e)}));break;default:throw new Error(b(i,"resource"))}return this},t.prototype.globalName=function(t,e){return g(this),this.resourcesToLoad[t]={moduleId:e,relativeTo:""},this},t.prototype.plugin=function(t,e){var i;switch(g(this),typeof t){case"string":i={moduleId:t,resourcesRelativeTo:[t,""],config:e||{}};break;case"function":i={configure:t,config:e||{}};break;default:throw new Error(b(t,"plugin"))}return this.info.push(i),this},t.prototype._addNormalizedPlugin=function(t,e){var i=this,n={moduleId:t,resourcesRelativeTo:[t,""],config:e||{}};return this.info.push(n),this.preTask((function(){var e=[t,i.bootstrapperName];return n.moduleId=t,n.resourcesRelativeTo=e,Promise.resolve()})),this},t.prototype.defaultBindingLanguage=function(){return this._addNormalizedPlugin("aurelia-templating-binding")},t.prototype.router=function(){return this._addNormalizedPlugin("aurelia-templating-router")},t.prototype.history=function(){return this._addNormalizedPlugin("aurelia-history-browser")},t.prototype.defaultResources=function(){return this._addNormalizedPlugin("aurelia-templating-resources")},t.prototype.eventAggregator=function(){return this._addNormalizedPlugin("aurelia-event-aggregator")},t.prototype.basicConfiguration=function(){return this.defaultBindingLanguage().defaultResources().eventAggregator()},t.prototype.standardConfiguration=function(){return this.basicConfiguration().history().router()},t.prototype.developmentLogging=function(t){var e=this,i=t?h.logLevel[t]:void 0;return void 0===i&&(i=h.logLevel.debug),this.preTask((function(){return e.aurelia.loader.normalize("aurelia-logging-console",e.bootstrapperName).then((function(t){return e.aurelia.loader.loadModule(t).then((function(t){h.addAppender(new t.ConsoleAppender),h.setLevel(i)}))}))})),this},t.prototype.apply=function(){var t=this;return this.processed?Promise.resolve():d(this,this.preTasks).then((function(){var e,i=t.aurelia.loader,n=t.info,r=function(){return(e=n.shift())?function(t,e,i){if(l.debug("Loading plugin ".concat(i.moduleId,".")),"string"==typeof i.moduleId){t.resourcesRelativeTo=i.resourcesRelativeTo;var n=i.moduleId;return i.resourcesRelativeTo.length>1?e.normalize(i.moduleId,i.resourcesRelativeTo[1]).then((function(t){return r(t)})):r(n)}if("function"==typeof i.configure)return-1!==t.configuredPlugins.indexOf(i.configure)?Promise.resolve():(t.configuredPlugins.push(i.configure),Promise.resolve(i.configure.call(null,t,i.config||{})));throw new Error(b(i.moduleId||i.configure,"plugin"));function r(n){return e.loadModule(n).then((function(e){if("configure"in e)return-1!==t.configuredPlugins.indexOf(e.configure)?Promise.resolve():Promise.resolve(e.configure(t,i.config||{})).then((function(){t.configuredPlugins.push(e.configure),t.resourcesRelativeTo=null,l.debug("Configured plugin ".concat(i.moduleId,"."))}));t.resourcesRelativeTo=null,l.debug("Loaded plugin ".concat(i.moduleId,"."))}))}}(t,i,e).then(r):(t.processed=!0,t.configuredPlugins=null,Promise.resolve())};return r().then((function(){return d(t,t.postTasks)}))}))},t}();var y=function(){function t(e,i,r){this.loader=e||new u.d.Loader,this.container=i||(new n.a).makeGlobal(),this.resources=r||new o.n,this.use=new v(this),this.logger=h.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(t,this),this.use.instance(a.a,this.loader),this.use.instance(o.n,this.resources)}return t.prototype.start=function(){var t=this;return this._started?this._started:(this.logger.info("Aurelia Starting"),this._started=this.use.apply().then((function(){if(u.b.addEventListener("submit",(function(t){var e=t.target,i=e.action;"form"!==e.tagName.toLowerCase()||i||t.preventDefault()}),!1),!t.container.hasResolver(o.c)){var e="You must configure Aurelia with a BindingLanguage implementation.";throw t.logger.error(e),new Error(e)}t.logger.info("Aurelia Started");var i=u.b.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return u.b.dispatchEvent(i),t})))},t.prototype.enhance=function(t,e){var i=this;return void 0===t&&(t={}),void 0===e&&(e=null),this._configureHost(e||u.b.querySelectorAll("body")[0]),new Promise((function(e){var n=i.container.get(o.k);i.root=n.enhance({container:i.container,element:i.host,resources:i.resources,bindingContext:t}),i.root.attached(),i._onAureliaComposed(),e(i)}))},t.prototype.setRoot=function(t,e){var i=this;void 0===t&&(t=null),void 0===e&&(e=null);var n={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(e);var r=this.container.get(o.k);return delete this.container.get(o.f).initialComposition,t||(t=this.configModuleId?Object(s.d)("./app",this.configModuleId):"app"),n.viewModel=t,n.container=n.childContainer=this.container,n.viewSlot=this.hostSlot,n.host=this.host,r.compose(n).then((function(t){return i.root=t,n.viewSlot.attached(),i._onAureliaComposed(),i}))},t.prototype._configureHost=function(t){if(!this.hostConfigured){if(t=t||this.host,this.host=t&&"string"!=typeof t?t:u.b.getElementById(t||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new o.o(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(u.b.boundary,this.host)}},t.prototype._onAureliaComposed=function(){var t=u.b.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout((function(){return u.b.dispatchEvent(t)}),1)},t}()},"aurelia-history-browser":function(t,e,i){"use strict";i.d(e,"b",(function(){return h})),i.d(e,"a",(function(){return l})),i.d(e,"configure",(function(){return c}));var n,r,o=i(7),a=i(212);function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(){function t(){}return t.prototype.activate=function(t){},t.prototype.deactivate=function(){},t}(),l=function(t){function e(){var i=s(this,t.call(this));return i.handler=function(t){var n=e.getEventInfo(t),r=n.shouldHandleEvent,o=n.href;r&&(t.preventDefault(),i.history.navigate(o))},i}return u(e,t),e.prototype.activate=function(t){t._hasPushState&&(this.history=t,o.b.addEventListener("click",this.handler,!0))},e.prototype.deactivate=function(){o.b.removeEventListener("click",this.handler)},e.getEventInfo=function(t){var i={shouldHandleEvent:!1,href:null,anchor:null},n=e.findClosestAnchor(t.target);if(!n||!e.targetIsThisWindow(n))return i;if(n.hasAttribute("download")||n.hasAttribute("router-ignore"))return i;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return i;var r=n.getAttribute("href");i.anchor=n,i.href=r;var o=1===t.which,a=r&&!("#"===r.charAt(0)||/^[a-z]+:/i.test(r));return i.shouldHandleEvent=o&&a,i},e.findClosestAnchor=function(t){for(;t;){if("A"===t.tagName)return t;t=t.parentNode}},e.targetIsThisWindow=function(t){var e=t.getAttribute("target"),i=o.d.global;return!e||e===i.name||"_self"===e},e}(h);function c(t){t.singleton(a.a,d),t.transient(h,l)}var d=(r=n=function(t){function e(e){var i=s(this,t.call(this));return i._isActive=!1,i._checkUrlCallback=i._checkUrl.bind(i),i.location=o.d.location,i.history=o.d.history,i.linkHandler=e,i}return u(e,t),e.prototype.activate=function(t){if(this._isActive)throw new Error("History has already been activated.");var e=!!t.pushState;this._isActive=!0,this.options=Object.assign({},{root:"/"},this.options,t),this.root=("/"+this.options.root+"/").replace(p,"/"),this._wantsHashChange=!1!==this.options.hashChange,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=void 0;if(this._hasPushState?i="popstate":this._wantsHashChange&&(i="hashchange"),o.d.addEventListener(i,this._checkUrlCallback),this._wantsHashChange&&e){var n=this.location,r=n.pathname.replace(/[^\/]$/,"$&/")===this.root;if(!this._hasPushState&&!r)return this.fragment=this._getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&r&&n.hash&&(this.fragment=this._getHash().replace(f,""),this.history.replaceState({},o.b.title,this.root+this.fragment+n.search))}if(this.fragment||(this.fragment=this._getFragment()),this.linkHandler.activate(this),!this.options.silent)return this._loadUrl()},e.prototype.deactivate=function(){o.d.removeEventListener("popstate",this._checkUrlCallback),o.d.removeEventListener("hashchange",this._checkUrlCallback),this._isActive=!1,this.linkHandler.deactivate()},e.prototype.getAbsoluteRoot=function(){var t,e,i;return""+(t=this.location.protocol,e=this.location.hostname,i=this.location.port,t+"//"+e+(i?":"+i:""))+this.root},e.prototype.navigate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.trigger,n=void 0===i||i,r=e.replace,a=void 0!==r&&r;if(t&&g.test(t))return this.location.href=t,!0;if(!this._isActive)return!1;if(t=this._getFragment(t||""),this.fragment===t&&!a)return!1;this.fragment=t;var s=this.root+t;return""===t&&"/"!==s&&(s=s.slice(0,-1)),this._hasPushState?(s=s.replace("//","/"),this.history[a?"replaceState":"pushState"]({},o.b.title,s)):this._wantsHashChange?b(this.location,t,a):this.location.assign(s),!n||this._loadUrl(t)},e.prototype.navigateBack=function(){this.history.back()},e.prototype.setTitle=function(t){o.b.title=t},e.prototype.setState=function(t,e){var i=Object.assign({},this.history.state),n=this.location,r=n.pathname,o=n.search,a=n.hash;i[t]=e,this.history.replaceState(i,null,""+r+o+a)},e.prototype.getState=function(t){return Object.assign({},this.history.state)[t]},e.prototype._getHash=function(){return this.location.hash.substr(1)},e.prototype._getFragment=function(t,e){var i=void 0;return t||(this._hasPushState||!this._wantsHashChange||e?(t=this.location.pathname+this.location.search,i=this.root.replace(m,""),t.indexOf(i)||(t=t.substr(i.length))):t=this._getHash()),"/"+t.replace(f,"")},e.prototype._checkUrl=function(){this._getFragment()!==this.fragment&&this._loadUrl()},e.prototype._loadUrl=function(t){var e=this.fragment=this._getFragment(t);return!!this.options.routeHandler&&this.options.routeHandler(e)},e}(a.a),n.inject=[h],r),f=/^#?\/*|\s+$/g,p=/^\/+|\/+$/g,m=/\/$/,g=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function b(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}},"aurelia-logging-console":function(t,e,i){"use strict";i.d(e,"ConsoleAppender",(function(){return n}));i(56);var n=function(){function t(){}return t.prototype.debug=function(t){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console).debug.apply(e,["DEBUG ["+t.id+"]"].concat(n))},t.prototype.info=function(t){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console).info.apply(e,["INFO ["+t.id+"]"].concat(n))},t.prototype.warn=function(t){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console).warn.apply(e,["WARN ["+t.id+"]"].concat(n))},t.prototype.error=function(t){for(var e,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(e=console).error.apply(e,["ERROR ["+t.id+"]"].concat(n))},t}()},"aurelia-pal-browser":function(t,e,i){"use strict";i.r(e),i.d(e,"_PLATFORM",(function(){return o})),i.d(e,"_FEATURE",(function(){return A})),i.d(e,"_DOM",(function(){return O})),i.d(e,"initialize",(function(){return P}));var n=i(7),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={location:window.location,history:window.history,addEventListener:function(t,e,i){this.global.addEventListener(t,e,i)},removeEventListener:function(t,e,i){this.global.removeEventListener(t,e,i)},performance:window.performance,requestAnimationFrame:function(t){return this.global.requestAnimationFrame(t)}};if("undefined"==typeof FEATURE_NO_IE){void 0===function(){}.name&&Object.defineProperty(Function.prototype,"name",{get:function(){var t=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:t}),t}})}if("undefined"==typeof FEATURE_NO_IE)if(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))){var a=String.prototype.trim,s=Array.prototype.indexOf,u=[],h=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=function(t,e){if(""===e)throw new h("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new h("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},c=function(t){for(var e=a.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):u,n=0,r=i.length;n<r;++n)this.push(i[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},d=c.prototype=[];h.prototype=Error.prototype,d.item=function(t){return this[t]||null},d.contains=function(t){return-1!==l(this,t+="")},d.add=function(){var t=arguments,e=0,i=t.length,n=void 0,r=!1;do{n=t[e]+"",-1===l(this,n)&&(this.push(n),r=!0)}while(++e<i);r&&this._updateClassName()},d.remove=function(){var t=arguments,e=0,i=t.length,n=void 0,r=!1,o=void 0;do{for(n=t[e]+"",o=l(this,n);-1!==o;)this.splice(o,1),r=!0,o=l(this,n)}while(++e<i);r&&this._updateClassName()},d.toggle=function(t,e){t+="";var i=this.contains(t),n=i?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!i},d.toString=function(){return this.join(" ")},Object.defineProperty(Element.prototype,"classList",{get:function(){return new c(this)},enumerable:!0,configurable:!0})}else{var f=document.createElement("_");if(f.classList.add("c1","c2"),!f.classList.contains("c2")){var p=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){for(var i=0,n=arguments.length;i<n;++i)t=arguments[i],e.call(this,t)}};p("add"),p("remove")}if(f.classList.toggle("c3",!1),f.classList.contains("c3")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:m.call(this,t)}}f=null}if("undefined"==typeof FEATURE_NO_IE){var g=function(t,e){for(var i=0,n=y.length,r=[];i<n;i++)y[i][t]==e&&r.push(y[i]);return r},b=function(t,e){for(var i,n=y.length;n--;)(i=y[n]).entryType!=t||void 0!==e&&i.name!=e||y.splice(n,1)};if("performance"in window==!1&&(window.performance={}),"now"in window.performance==!1){var v=Date.now();performance.timing&&performance.timing.navigationStart&&(v=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-v}}Date.now?Date.now():new Date;var y=[],w={};window.performance.mark||(window.performance.mark=window.performance.webkitMark||function(t){var e={name:t,entryType:"mark",startTime:window.performance.now(),duration:0};y.push(e),w[t]=e}),window.performance.measure||(window.performance.measure=window.performance.webkitMeasure||function(t,e,i){e=w[e].startTime,i=w[i].startTime,y.push({name:t,entryType:"measure",startTime:e,duration:i-e})}),window.performance.getEntriesByType||(window.performance.getEntriesByType=window.performance.webkitGetEntriesByType||function(t){return g("entryType",t)}),window.performance.getEntriesByName||(window.performance.getEntriesByName=window.performance.webkitGetEntriesByName||function(t){return g("name",t)}),window.performance.clearMarks||(window.performance.clearMarks=window.performance.webkitClearMarks||function(t){b("mark",t)}),window.performance.clearMeasures||(window.performance.clearMeasures=window.performance.webkitClearMeasures||function(t){b("measure",t)}),o.performance=window.performance}if("undefined"==typeof FEATURE_NO_IE){var _=window.console=window.console||{},M=function(){};_.memory||(_.memory={}),"assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",").forEach((function(t){_[t]||(_[t]=M)})),"object"===r(_.log)&&"log,info,warn,error,assert,dir,clear,profile,profileEnd".split(",").forEach((function(t){console[t]=this.bind(console[t],console)}),Function.prototype.call)}if("undefined"==typeof FEATURE_NO_IE&&(!window.CustomEvent||"function"!=typeof window.CustomEvent)){var x=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};x.prototype=window.Event.prototype,window.CustomEvent=x}if(Element&&!Element.prototype.matches){var S=Element.prototype;S.matches=S.matchesSelector||S.mozMatchesSelector||S.msMatchesSelector||S.oMatchesSelector||S.webkitMatchesSelector}var T,A={shadowDOM:!!HTMLElement.prototype.attachShadow,scopedCSS:"scoped"in document.createElement("style"),htmlTemplateElement:(T=document.createElement("div"),T.innerHTML="<template></template>","content"in T.children[0]),mutationObserver:!(!window.MutationObserver&&!window.WebKitMutationObserver),ensureHTMLTemplateElement:function(t){return t}};if("undefined"==typeof FEATURE_NO_IE){var C=function(t){var e=t.ownerDocument.createElement("template"),i=t.attributes,n=i.length,r=void 0;for(t.parentNode.insertBefore(e,t);n-- >0;)r=i[n],e.setAttribute(r.name,r.value),t.removeAttribute(r.name);return t.parentNode.removeChild(t),E(e)},E=function(t){for(var e=t.content=document.createDocumentFragment(),i=void 0;i=t.firstChild;)e.appendChild(i);return t};A.htmlTemplateElement||(A.ensureHTMLTemplateElement=function(t){for(var e,i=E(t).content.querySelectorAll("template"),n=0,r=i.length;n<r;++n){var o=i[n];"template"===(e=o).tagName&&"http://www.w3.org/2000/svg"===e.namespaceURI?C(o):E(o)}return t})}var k=window.ShadowDOMPolyfill||null,O={Element:Element,NodeList:NodeList,SVGElement:SVGElement,boundary:"aurelia-dom-boundary",addEventListener:function(t,e,i){document.addEventListener(t,e,i)},removeEventListener:function(t,e,i){document.removeEventListener(t,e,i)},adoptNode:function(t){return document.adoptNode(t)},createAttribute:function(t){return document.createAttribute(t)},createElement:function(t){return document.createElement(t)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},createDocumentFragment:function(){return document.createDocumentFragment()},createTemplateElement:function(){var t=document.createElement("template");return A.ensureHTMLTemplateElement(t)},createMutationObserver:function(t){return new(window.MutationObserver||window.WebKitMutationObserver)(t)},createCustomEvent:function(t,e){return new window.CustomEvent(t,e)},dispatchEvent:function(t){document.dispatchEvent(t)},getComputedStyle:function(t){return window.getComputedStyle(t)},getElementById:function(t){return document.getElementById(t)},querySelector:function(t){return document.querySelector(t)},querySelectorAll:function(t){return document.querySelectorAll(t)},nextElementSibling:function(t){if(t.nextElementSibling)return t.nextElementSibling;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t},createTemplateFromMarkup:function(t){var e=document.createElement("div");e.innerHTML=t;var i=e.firstElementChild;if(!i||"TEMPLATE"!==i.nodeName)throw new Error("Template markup must be wrapped in a <template> element e.g. <template> \x3c!-- markup here --\x3e </template>");return A.ensureHTMLTemplateElement(i)},appendNode:function(t,e){(e||document.body).appendChild(t)},replaceNode:function(t,e,i){e.parentNode?e.parentNode.replaceChild(t,e):null!==k?k.unwrap(i).replaceChild(k.unwrap(t),k.unwrap(e)):i.replaceChild(t,e)},removeNode:function(t,e){t.parentNode?t.parentNode.removeChild(t):e&&(null!==k?k.unwrap(e).removeChild(k.unwrap(t)):e.removeChild(t))},injectStyles:function(t,e,i,n){if(n){var r=document.getElementById(n);if(r){if("style"===r.tagName.toLowerCase())return void(r.innerHTML=t);throw new Error("The provided id does not indicate a style tag.")}}var o=document.createElement("style");return o.innerHTML=t,o.type="text/css",n&&(o.id=n),e=e||document.head,i&&e.childNodes.length>0?e.insertBefore(o,e.childNodes[0]):e.appendChild(o),o}};function P(){n.f||Object(n.e)((function(t,e,i){Object.assign(t,o),Object.assign(e,A),Object.assign(i,O),Object.defineProperty(i,"title",{get:function(){return document.title},set:function(t){document.title=t}}),Object.defineProperty(i,"activeElement",{get:function(){return document.activeElement}}),Object.defineProperty(t,"XMLHttpRequest",{get:function(){return t.global.XMLHttpRequest}})}))}},"aurelia-templating-binding":function(t,e,i){"use strict";i.d(e,"configure",(function(){return S}));var n,r,o,a,s,u,h,l,c=i(56),d=i(14),f=i(11);var p=(r=n=function(){function t(t){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=t,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("img","usemap","useMap"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return t.prototype.register=function(t,e,i){t=t.toLowerCase(),e=e.toLowerCase(),(this.elements[t]=this.elements[t]||Object.create(null))[e]=i},t.prototype.registerUniversal=function(t,e){t=t.toLowerCase(),this.allElements[t]=e},t.prototype.map=function(t,e){if(this.svg.isStandardSvgAttribute(t,e))return e;t=t.toLowerCase(),e=e.toLowerCase();var i=this.elements[t];return void 0!==i&&e in i?i[e]:e in this.allElements?this.allElements[e]:/(?:^data-)|(?:^aria-)|:/.test(e)?e:Object(d.s)(e)},t}(),n.inject=[d.n],r),m=function(){function t(t,e,i,n,r,o){this.observerLocator=t,this.targetProperty=e,this.parts=i,this.mode=n,this.lookupFunctions=r,this.attribute=this.attrToRemove=o,this.discrete=!1}return t.prototype.createBinding=function(t){return 3===this.parts.length?new v(t,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new b(this.observerLocator,this.parts,t,this.targetProperty,this.mode,this.lookupFunctions)},t}();function g(t,e){if("style"===e)c.getLogger("templating-binding").info('Internet Explorer does not support interpolation in "style" attributes.  Use the style attribute\'s alias, "css" instead.');else if(t.parentElement&&"TEXTAREA"===t.parentElement.nodeName&&"textContent"===e)throw new Error('Interpolation binding cannot be used in the content of a textarea element.  Use <textarea value.bind="expression"></textarea> instead.')}var b=function(){function t(t,e,i,n,r,o){g(i,n),this.observerLocator=t,this.parts=e,this.target=i,this.targetProperty=n,this.targetAccessor=t.getAccessor(i,n),this.mode=r,this.lookupFunctions=o}return t.prototype.interpolate=function(){if(this.isBound){for(var t="",e=this.parts,i=0,n=e.length;i<n;i++)t+=i%2==0?e[i]:this["childBinding"+i].value;this.targetAccessor.setValue(t,this.target,this.targetProperty)}},t.prototype.updateOneTimeBindings=function(){for(var t=1,e=this.parts.length;t<e;t+=2){var i=this["childBinding"+t];i.mode===d.r.oneTime&&i.call()}},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.source=t;for(var e=this.parts,i=1,n=e.length;i<n;i+=2){var r=new v(this,this.observerLocator,e[i],this.mode,this.lookupFunctions);r.bind(t),this["childBinding"+i]=r}this.isBound=!0,this.interpolate()},t.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;for(var t=1,e=this.parts.length;t<e;t+=2){this["childBinding"+t].unbind()}}},t}(),v=Object(d.u)()(o=function(){function t(t,e,i,n,r,o,a,s){t instanceof b?this.parent=t:(g(t,o),this.target=t,this.targetProperty=o,this.targetAccessor=e.getAccessor(t,o)),this.observerLocator=e,this.sourceExpression=i,this.mode=n,this.lookupFunctions=r,this.left=a,this.right=s}return t.prototype.updateTarget=function(t){(t=null==t?"":t.toString())!==this.value&&(this.value=t,this.parent?this.parent.interpolate():this.targetAccessor.setValue(this.left+t+this.right,this.target,this.targetProperty))},t.prototype.call=function(){this.isBound&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode!==d.r.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue),this.unobserve(!1)))},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t;var e=this.sourceExpression;e.bind&&e.bind(this,t,this.lookupFunctions),this.rawValue=e.evaluate(t,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode===d.r.oneWay&&Object(d.x)(this)},t.prototype.unbind=function(){if(this.isBound){this.isBound=!1;var t=this.sourceExpression;t.unbind&&t.unbind(this,this.source),this.source=null,this.value=null,this.rawValue=null,this.unobserve(!0)}},t.prototype.connect=function(t){this.isBound&&(t&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue)),this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue))},t}())||o,y=function(){function t(t,e,i,n,r){this.observerLocator=t,this.sourceExpression=i,this.targetProperty=e,this.lookupFunctions=n,this.toBindingContext=r}return t.prototype.createBinding=function(){return new w(this.observerLocator,this.sourceExpression,this.targetProperty,this.lookupFunctions,this.toBindingContext)},t}(),w=Object(d.u)()(a=function(){function t(t,e,i,n,r){this.observerLocator=t,this.sourceExpression=e,this.targetProperty=i,this.lookupFunctions=n,this.source=null,this.target=null,this.toBindingContext=r}return t.prototype.updateTarget=function(){var t=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.target[this.targetProperty]=t},t.prototype.call=function(t){if(this.isBound){if(t!==d.B)throw new Error("Unexpected call context "+t);this.updateTarget()}},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.target=this.toBindingContext?t.bindingContext:t.overrideContext,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions),Object(d.x)(this)},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.target=null,this.unobserve(!0))},t.prototype.connect=function(){this.isBound&&(this.updateTarget(),this.sourceExpression.connect(this,this.source))},t}())||a,_=(u=s=function(){function t(t,e,i,n){this.parser=t,this.observerLocator=e,this.eventManager=i,this.attributeMap=n}return t.prototype.interpret=function(t,e,i,n,r){return i.command in this?this[i.command](t,e,i,n,r):this.handleUnknownCommand(t,e,i,n,r)},t.prototype.handleUnknownCommand=function(t,e,i,n,r){return c.getLogger("templating-binding").warn("Unknown binding command.",i),n},t.prototype.determineDefaultBindingMode=function(t,e,i){var n=t.tagName.toLowerCase();return"input"===n&&("value"===e||"files"===e)&&"checkbox"!==t.type&&"radio"!==t.type||"input"===n&&"checked"===e&&("checkbox"===t.type||"radio"===t.type)||("textarea"===n||"select"===n)&&"value"===e||("textcontent"===e||"innerhtml"===e)&&"true"===t.contentEditable||"scrolltop"===e||"scrollleft"===e?d.r.twoWay:i&&e in i.attributes&&i.attributes[e]&&i.attributes[e].defaultBindingMode>=d.r.oneTime?i.attributes[e].defaultBindingMode:d.r.oneWay},t.prototype.bind=function(t,e,i,n,r){var o=n||f.b.attribute(i.attrName);return o.attributes[i.attrName]=new d.d(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),void 0===i.defaultBindingMode||null===i.defaultBindingMode?this.determineDefaultBindingMode(e,i.attrName,r):i.defaultBindingMode,t.lookupFunctions),o},t.prototype.trigger=function(t,e,i){return new d.i(this.eventManager,i.attrName,this.parser.parse(i.attrValue),d.w.none,!0,t.lookupFunctions)},t.prototype.capture=function(t,e,i){return new d.i(this.eventManager,i.attrName,this.parser.parse(i.attrValue),d.w.capturing,!0,t.lookupFunctions)},t.prototype.delegate=function(t,e,i){return new d.i(this.eventManager,i.attrName,this.parser.parse(i.attrValue),d.w.bubbling,!0,t.lookupFunctions)},t.prototype.call=function(t,e,i,n){var r=n||f.b.attribute(i.attrName);return r.attributes[i.attrName]=new d.e(this.observerLocator,i.attrName,this.parser.parse(i.attrValue),t.lookupFunctions),r},t.prototype.options=function(t,e,i,n,r){var o,a=n||f.b.attribute(i.attrName),s=i.attrValue,u=this.language,h=null,l="",c=void 0,d=void 0,p=!1,m=!1,g=!1;for(d=0,o=s.length;d<o;++d){if(";"!==(c=s[d])||p)if(":"===c&&null===h)g=!0,h=l.trim(),l="";else{if("\\"===c){l+=c,m=!0;continue}l+=c,null!==h&&!1===m&&"'"===c&&(p=!p)}else g||(h=this._getPrimaryPropertyName(t,r)),i=u.inspectAttribute(t,"?",h,l.trim()),u.createAttributeInstruction(t,e,i,a,r),a.attributes[i.attrName]||(a.attributes[i.attrName]=i.attrValue),l="",h=null;m=!1}return g||(h=this._getPrimaryPropertyName(t,r)),null!==h&&(i=u.inspectAttribute(t,"?",h,l.trim()),u.createAttributeInstruction(t,e,i,a,r),a.attributes[i.attrName]||(a.attributes[i.attrName]=i.attrValue)),a},t.prototype._getPrimaryPropertyName=function(t,e){var i=t.getAttribute(e.attributeName);return i&&i.primaryProperty?i.primaryProperty.attribute:null},t.prototype.for=function(t,e,i,n){var r,o=void 0,a=void 0,s=void 0,u=void 0;if(2!==(o=(r=(u=i.attrValue).match(/^ *[[].+[\]]/))?u.split("of "):u.split(" of ")).length)throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');return s=n||f.b.attribute(i.attrName),r?(a=o[0].replace(/[[\]]/g,"").replace(/,/g," ").replace(/\s+/g," ").trim().split(" "),s.attributes.key=a[0],s.attributes.value=a[1]):s.attributes.local=o[0],s.attributes.items=new d.d(this.observerLocator,"items",this.parser.parse(o[1]),d.r.oneWay,t.lookupFunctions),s},t.prototype["two-way"]=function(t,e,i,n){var r=n||f.b.attribute(i.attrName);return r.attributes[i.attrName]=new d.d(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),d.r.twoWay,t.lookupFunctions),r},t.prototype["to-view"]=function(t,e,i,n){var r=n||f.b.attribute(i.attrName);return r.attributes[i.attrName]=new d.d(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),d.r.toView,t.lookupFunctions),r},t.prototype["from-view"]=function(t,e,i,n){var r=n||f.b.attribute(i.attrName);return r.attributes[i.attrName]=new d.d(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),d.r.fromView,t.lookupFunctions),r},t.prototype["one-time"]=function(t,e,i,n){var r=n||f.b.attribute(i.attrName);return r.attributes[i.attrName]=new d.d(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),d.r.oneTime,t.lookupFunctions),r},t}(),s.inject=[d.m,d.l,d.g,p],u);_.prototype["one-way"]=_.prototype["to-view"];var M={},x=(l=h=function(t){function e(e,i,n,r){var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o.parser=e,o.observerLocator=i,o.syntaxInterpreter=n,o.emptyStringExpression=o.parser.parse("''"),n.language=o,o.attributeMap=r,o.toBindingContextAttr="to-binding-context",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.inspectAttribute=function(t,e,i,n){var r=i.split(".");if(M.defaultBindingMode=null,2===r.length)M.attrName=r[0].trim(),M.attrValue=n,M.command=r[1].trim(),"ref"===M.command?(M.expression=new d.k(this.parser.parse(n),M.attrName,t.lookupFunctions),M.command=null,M.attrName="ref"):M.expression=null;else if("ref"===i)M.attrName=i,M.attrValue=n,M.command=null,M.expression=new d.k(this.parser.parse(n),"element",t.lookupFunctions);else{M.attrName=i,M.attrValue=n,M.command=null;var o=this.parseInterpolation(t,n);M.expression=null===o?null:new m(this.observerLocator,this.attributeMap.map(e,i),o,d.r.oneWay,t.lookupFunctions,i)}return M},e.prototype.createAttributeInstruction=function(t,e,i,n,r){var o=void 0;if(i.expression){if("ref"===i.attrName)return i.expression;(o=n||f.b.attribute(i.attrName)).attributes[i.attrName]=i.expression}else i.command&&(o=this.syntaxInterpreter.interpret(t,e,i,n,r));return o},e.prototype.createLetExpressions=function(t,e){for(var i=[],n=e.attributes,r=void 0,o=void 0,a=void 0,s=void 0,u=this.toBindingContextAttr,h=e.hasAttribute(u),l=0,f=n.length;f>l;++l)if(a=(r=n[l]).name,s=r.nodeValue,o=a.split("."),a!==u)if(2===o.length){if("bind"!==o[1]){c.getLogger("templating-binding-language").warn('Detected invalid let command. Expected "'+o[0]+'.bind", given "'+a+'"');continue}i.push(new y(this.observerLocator,Object(d.s)(o[0]),this.parser.parse(s),t.lookupFunctions,h))}else a=Object(d.s)(a),null===(o=this.parseInterpolation(t,s))&&c.getLogger("templating-binding-language").warn('Detected string literal in let bindings. Did you mean "'+a+".bind="+s+'" or "'+a+"=${"+s+'}" ?'),o?i.push(new LetInterpolationBindingExpression(this.observerLocator,a,o,t.lookupFunctions,h)):i.push(new y(this.observerLocator,a,new d.j(s),t.lookupFunctions,h));return i},e.prototype.inspectTextContent=function(t,e){var i=this.parseInterpolation(t,e);return null===i?null:new m(this.observerLocator,"textContent",i,d.r.oneWay,t.lookupFunctions,"textContent")},e.prototype.parseInterpolation=function(t,e){for(var i=e.indexOf("${",0),n=e.length,r=void 0,o=0,a=0,s=null,u=void 0,h=void 0,l=0;i>=0&&i<n-2;){a=1,u=i,i+=2;do{r=e[i],i++,"'"!==r&&'"'!==r?"\\"!==r?null===s&&("{"===r?a++:"}"===r&&a--):i++:null===s?s=r:s===r&&(s=null)}while(a>0&&i<n);if(0!==a)break;h=h||[],"\\"===e[u-1]&&"\\"!==e[u-2]?(h[l]=e.substring(o,u-1)+e.substring(u,i),h[++l]=this.emptyStringExpression,l++):(h[l]=e.substring(o,u),h[++l]=this.parser.parse(e.substring(u+2,i-1)),l++),o=i,i=e.indexOf("${",i)}return 0===l?null:(h[l]=e.substr(o),h)},e}(f.c),h.inject=[d.m,d.l,_,p],l);function S(t){t.container.registerSingleton(f.c,x),t.container.registerAlias(f.c,x)}},"aurelia-templating-resources":function(t,e,i){"use strict";i.d(e,"configure",(function(){return T}));var n=i(347),r=i(348),o=i(349),a=i(350),s=i(351),u=i(352),h=i(353),l=i(354),c=i(355),d=i(356),f=i(11),p=i(515),m=(i(249),i(357)),g=i(115),b=i(358),v=i(359),y=i(360),w=i(361),_=i(250);i.d(e,"a",(function(){return _.a}));var M=i(362),x=(i(248),i(242),i(516)),S=(i(243),i(244),i(245),i(246),i(247),i(45),i(209),i(129));function T(t){Object(S.c)(),t.globalResources(n.a,r.a,o.a,a.a,s.a,u.a,h.a,c.a,d.a,l.a,g.b,g.c,g.d,g.a,g.e,b.a,v.a,y.a,w.a,M.a,m.a),Object(x.a)(t);var e=t.container.get(f.l),i={fetch:function(t){var e;return(e={})[t]=Object(p.a)(t),e}};[".css",".less",".sass",".scss",".styl"].forEach((function(t){return e.addResourcePlugin(t,i)}))}},"aurelia-templating-router":function(t,e,i){"use strict";i.d(e,"configure",(function(){return s}));var n=i(78),r=i(363),o=i(210),a=i(364);function s(t){t.singleton(n.b,r.a).singleton(n.c,n.a).globalResources(o.a,a.a),t.container.registerAlias(n.c,n.a)}}}]);