var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,a){c!=Array.prototype&&c!=Object.prototype&&(c[d]=a.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var c=$jscomp.global.Symbol.iterator;c||(c=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[c]&&$jscomp.defineProperty(Array.prototype,c,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(c){var d=0;return $jscomp.iteratorPrototype(function(){return d<c.length?{done:!1,value:c[d++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(c){$jscomp.initSymbolIterator();c={next:c};c[$jscomp.global.Symbol.iterator]=function(){return this};return c};$jscomp.iteratorFromArray=function(c,d){$jscomp.initSymbolIterator();c instanceof String&&(c+="");var a=0,e={next:function(){if(a<c.length){var h=a++;return{value:d(h,c[h]),done:!1}}e.next=function(){return{done:!0,value:void 0}};return e.next()}};e[Symbol.iterator]=function(){return e};return e};
$jscomp.polyfill=function(c,d,a,e){if(d){a=$jscomp.global;c=c.split(".");for(e=0;e<c.length-1;e++){var h=c[e];h in a||(a[h]={});a=a[h]}c=c[c.length-1];e=a[c];d=d(e);d!=e&&null!=d&&$jscomp.defineProperty(a,c,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.values",function(c){return c?c:function(){return $jscomp.iteratorFromArray(this,function(c,a){return a})}},"es6","es3");
$jscomp.findInternal=function(c,d,a){c instanceof String&&(c=String(c));for(var e=c.length,h=0;h<e;h++){var k=c[h];if(d.call(a,k,h,c))return{i:h,v:k}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,a){return $jscomp.findInternal(this,c,a).v}},"es6","es3");$jscomp.polyfill("Array.prototype.keys",function(c){return c?c:function(){return $jscomp.iteratorFromArray(this,function(c){return c})}},"es6","es3");
$jscomp.polyfill("Array.prototype.entries",function(c){return c?c:function(){return $jscomp.iteratorFromArray(this,function(c,a){return[c,a]})}},"es6","es3");$jscomp.polyfill("Object.getOwnPropertySymbols",function(c){return c?c:function(){return[]}},"es6","es5");
$jscomp.polyfill("Array.from",function(c){return c?c:function(c,a,e){$jscomp.initSymbolIterator();a=null!=a?a:function(a){return a};var d=[],k=c[Symbol.iterator];if("function"==typeof k)for(c=k.call(c);!(k=c.next()).done;)d.push(a.call(e,k.value));else{k=c.length;for(var m=0;m<k;m++)d.push(a.call(e,c[m]))}return d}},"es6","es3");
$jscomp.polyfill("Object.setPrototypeOf",function(c){return c?c:"object"!=typeof"".__proto__?null:function(c,a){c.__proto__=a;if(c.__proto__!==a)throw new TypeError(c+" is not extensible");return c}},"es6","es5");$jscomp.polyfill("Math.sign",function(c){return c?c:function(c){c=Number(c);return 0===c||isNaN(c)?c:0<c?1:-1}},"es6","es3");
$jscomp.polyfill("Math.expm1",function(c){return c?c:function(c){c=Number(c);if(.25>c&&-.25<c){for(var a=c,d=1,h=c,k=0;k!=h;)a*=c/++d,h=(k=h)+a;return h}return Math.exp(c)-1}},"es6","es3");$jscomp.checkStringArgs=function(c,d,a){if(null==c)throw new TypeError("The 'this' value for String.prototype."+a+" must not be null or undefined");if(d instanceof RegExp)throw new TypeError("First argument to String.prototype."+a+" must not be a regular expression");return c+""};
$jscomp.polyfill("String.prototype.repeat",function(c){return c?c:function(c){var a=$jscomp.checkStringArgs(this,null,"repeat");if(0>c||1342177279<c)throw new RangeError("Invalid count value");c|=0;for(var d="";c;)if(c&1&&(d+=a),c>>>=1)a+=a;return d}},"es6","es3");$jscomp.stringPadding=function(c,d){c=void 0!==c?String(c):" ";return 0<d&&c?c.repeat(Math.ceil(d/c.length)).substring(0,d):""};
$jscomp.polyfill("String.prototype.padStart",function(c){return c?c:function(c,a){var d=$jscomp.checkStringArgs(this,null,"padStart");return $jscomp.stringPadding(a,c-d.length)+d}},"es8","es3");$jscomp.polyfill("String.prototype.padEnd",function(c){return c?c:function(c,a){var d=$jscomp.checkStringArgs(this,null,"padStart");return d+$jscomp.stringPadding(a,c-d.length)}},"es8","es3");$jscomp.owns=function(c,d){return Object.prototype.hasOwnProperty.call(c,d)};
$jscomp.polyfill("Object.assign",function(c){return c?c:function(c,a){for(var d=1;d<arguments.length;d++){var h=arguments[d];if(h)for(var k in h)$jscomp.owns(h,k)&&(c[k]=h[k])}return c}},"es6","es3");$jscomp.polyfill("Math.log1p",function(c){return c?c:function(c){c=Number(c);if(.25>c&&-.25<c){for(var a=c,d=1,h=c,k=0,m=1;k!=h;)a*=c,m*=-1,h=(k=h)+m*a/++d;return h}return Math.log(1+c)}},"es6","es3");
$jscomp.polyfill("Array.prototype.copyWithin",function(c){return c?c:function(c,a,e){var d=this.length;c=Number(c);a=Number(a);e=Number(null!=e?e:d);if(c<a)for(e=Math.min(e,d);a<e;)a in this?this[c++]=this[a++]:(delete this[c++],a++);else for(e=Math.min(e,d+a-c),c+=e-a;e>a;)--e in this?this[--c]=this[e]:delete this[c];return this}},"es6","es3");$jscomp.polyfill("Object.is",function(c){return c?c:function(c,a){return c===a?0!==c||1/c===1/a:c!==c&&a!==a}},"es6","es3");
$jscomp.polyfill("Math.acosh",function(c){return c?c:function(c){c=Number(c);return Math.log(c+Math.sqrt(c*c-1))}},"es6","es3");$jscomp.polyfill("Math.asinh",function(c){return c?c:function(c){c=Number(c);if(0===c)return c;var a=Math.log(Math.abs(c)+Math.sqrt(c*c+1));return 0>c?-a:a}},"es6","es3");$jscomp.polyfill("Math.atanh",function(c){if(c)return c;var d=Math.log1p;return function(a){a=Number(a);return(d(a)-d(-a))/2}},"es6","es3");
$jscomp.polyfill("Math.imul",function(c){return c?c:function(c,a){c=Number(c);a=Number(a);var d=c&65535,h=a&65535;return d*h+((c>>>16&65535)*h+d*(a>>>16&65535)<<16>>>0)|0}},"es6","es3");$jscomp.polyfill("Math.sinh",function(c){if(c)return c;var d=Math.exp;return function(a){a=Number(a);return 0===a?a:(d(a)-d(-a))/2}},"es6","es3");
$jscomp.polyfill("String.fromCodePoint",function(c){return c?c:function(c){for(var a="",d=0;d<arguments.length;d++){var h=Number(arguments[d]);if(0>h||1114111<h||h!==Math.floor(h))throw new RangeError("invalid_code_point "+h);65535>=h?a+=String.fromCharCode(h):(h-=65536,a+=String.fromCharCode(h>>>10&1023|55296),a+=String.fromCharCode(h&1023|56320))}return a}},"es6","es3");$jscomp.polyfill("Array.of",function(c){return c?c:function(c){return Array.from(arguments)}},"es6","es3");
$jscomp.polyfill("Reflect.defineProperty",function(c){return c?c:function(c,a,e){try{Object.defineProperty(c,a,e);var d=Object.getOwnPropertyDescriptor(c,a);return d?d.configurable===(e.configurable||!1)&&d.enumerable===(e.enumerable||!1)&&("value"in d?d.value===e.value&&d.writable===(e.writable||!1):d.get===e.get&&d.set===e.set):!1}catch(k){return!1}}},"es6","es5");$jscomp.makeIterator=function(c){$jscomp.initSymbolIterator();var d=c[Symbol.iterator];return d?d.call(c):$jscomp.arrayIterator(c)};
$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(c){function d(){this.batch_=null}function a(a){return a instanceof h?a:new h(function(c,d){c(a)})}if(c&&!$jscomp.FORCE_POLYFILL_PROMISE)return c;d.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};d.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var e=$jscomp.global.setTimeout;d.prototype.asyncExecuteFunction=function(a){e(a,
0)};d.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var c=0;c<a.length;++c){var d=a[c];delete a[c];try{d()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};d.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var h=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var c=this.createResolveAndReject_();try{a(c.resolve,c.reject)}catch(q){c.reject(q)}};h.prototype.createResolveAndReject_=
function(){function a(a){return function(f){d||(d=!0,a.call(c,f))}}var c=this,d=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};h.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof h)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};h.prototype.resolveToNonPromiseObj_=function(a){var c=
void 0;try{c=a.then}catch(q){this.reject_(q);return}"function"==typeof c?this.settleSameAsThenable_(c,a):this.fulfill_(a)};h.prototype.reject_=function(a){this.settle_(2,a)};h.prototype.fulfill_=function(a){this.settle_(1,a)};h.prototype.settle_=function(a,c){if(0!=this.state_)throw Error("Cannot settle("+a+", "+c|"): Promise already settled in state"+this.state_);this.state_=a;this.result_=c;this.executeOnSettledCallbacks_()};h.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
this.onSettledCallbacks_,c=0;c<a.length;++c)a[c].call(),a[c]=null;this.onSettledCallbacks_=null}};var k=new d;h.prototype.settleSameAsPromise_=function(a){var c=this.createResolveAndReject_();a.callWhenSettled_(c.resolve,c.reject)};h.prototype.settleSameAsThenable_=function(a,c){var d=this.createResolveAndReject_();try{a.call(c,d.resolve,d.reject)}catch(l){d.reject(l)}};h.prototype.then=function(a,c){function d(a,c){return"function"==typeof a?function(c){try{l(a(c))}catch(y){f(y)}}:c}var l,f,e=new h(function(a,
c){l=a;f=c});this.callWhenSettled_(d(a,l),d(c,f));return e};h.prototype.catch=function(a){return this.then(void 0,a)};h.prototype.callWhenSettled_=function(a,c){function d(){switch(l.state_){case 1:a(l.result_);break;case 2:c(l.result_);break;default:throw Error("Unexpected state: "+l.state_);}}var l=this;null==this.onSettledCallbacks_?k.asyncExecute(d):this.onSettledCallbacks_.push(function(){k.asyncExecute(d)})};h.resolve=a;h.reject=function(a){return new h(function(c,d){d(a)})};h.race=function(c){return new h(function(d,
e){for(var l=$jscomp.makeIterator(c),f=l.next();!f.done;f=l.next())a(f.value).callWhenSettled_(d,e)})};h.all=function(c){var d=$jscomp.makeIterator(c),e=d.next();return e.done?a([]):new h(function(c,f){function l(a){return function(d){h[a]=d;k--;0==k&&c(h)}}var h=[],k=0;do h.push(void 0),k++,a(e.value).callWhenSettled_(l(h.length-1),f),e=d.next();while(!e.done)})};return h},"es6","es3");
function AjaxDialogHandler(c,d){this.Dialog=null;this.Parent=parent;this.URL=c;this.Target=d;var a=this;this.onchanged=function(a){};this.initdialog=function(a){this.Dialog=a;this.Dialog.SetDefaultValues()};this.oncommand=function(a){clearLastError();"input_cancel"==a?this.Dialog.Hide():"input_ok"==a&&this.Dialog.Validate()&&(HideDialogForLoading(this.Dialog.GetElement().id),BSMakePOSTRequest(this.URL,this,this.Dialog.GetValues()))};this.onkeypressed=function(a,c){return!0};this.Edit=function(a){this.Dialog.SetValues(a);
this.Dialog.Show()};this.New=function(){this.Dialog.SetDefaultValues();this.Dialog.Show()};this.OnError=function(c){BSAlert(c);a.Dialog.Hide()};this.OnResponse=function(c){a.Dialog.Hide();a.Target&&a.Target.Reload()}};function AjaxTable(c,d,a,e,h){this.Recordset=new Recordset(c,h);this.savedScroll=null;this.qc=this.Recordset.QueryContext;this.URL=d;var k=this,m=null;this.attachUpdateListener=function(a){m=a};this.Renderer=new RecordsetRenderer(a,this.qc.items);this.OnSort=function(a){k.qc.sortcolumn=a;k.qc.sortdirection="ASC"==k.qc.sortdirection?"DESC":"ASC";k.Reload()};this.OnNavigate=function(a,c){2==arguments.length?(k.qc.from=0>a?0:a,k.qc.items=c):k.qc.from=Number(a)*k.qc.items;k.Reload()};this.OnStartLoading=
function(){k.savedScroll=BSGetScroll();k.Renderer.RenderMessage(k.qc.items,e)};this.ReloadEx=function(a,c){this.URL=c;for(var d in a)this.qc[d]=a[d];this.Reload()};this.Reload=function(){k.OnStartLoading();BSMakePOSTRequest(k.URL,k,k.qc)};this.ReloadFrom=function(a,c){var d=this.URL;this.ReloadEx(a,c);this.URL=d};this.Render=function(){this.Renderer.Render(this.Recordset,this.OnSort,this.OnNavigate)};this.Update=function(a){k.Recordset.LoadFromObject(a);null!=k.savedScroll&&window.scrollTo(k.savedScroll.x,
k.savedScroll.y);k.Render();m&&m(k,a)};this.OnResponse=function(a){k.Update(a)}}function AjaxTableNoEmptyRows(c,d,a,e){this.inheritFrom=AjaxTable;this.inheritFrom(c,d,a,e);this.Renderer=new AjaxTableNoEmptyRowsRenderer(a,this.Recordset.QueryContext.items);this.OnStartLoading=function(){}}function AjaxSetMessages(c,d,a,e){this.inheritFrom=AjaxTable;this.inheritFrom(c,d,a,e);this.OnSort=null;this.Renderer=new CommentsRenderer(a,10);this.OnStartLoading=function(){}}
function AjaxSetPersonalInfo(c,d,a,e){this.inheritFrom=AjaxTable;this.inheritFrom(c,d,a,e);this.OnSort=null;this.Renderer=new PersonalInfoRenderer(a,this.Recordset.QueryContext.items);this.OnStartLoading=function(){}}function AjaxTableArtefactsByExample(c,d,a,e){this.inheritFrom=AjaxTable;this.inheritFrom(c,d,a,e);this.Renderer=new AjaxTableNoEmptyRowsRenderer(a,this.Recordset.QueryContext.items);this.OnStartLoading=function(){};this.OnNavigate=this.OnSort=null}
function AjaxTableHandbookData(c,d,a,e){this.inheritFrom=AjaxTable;this.inheritFrom(c,d,a,e);this.LinkedRecordset=new Recordset("");var h=this;this.OnResponse=function(a){a.linked&&h.LinkedRecordset.LoadFromArray(a.linked);h.Update(a)};this.GetRecord=function(a){var c=this.Recordset.GetRecord(a);return c?c:this.LinkedRecordset.GetRecord(a)}};function BarDiagram(c,d){function a(a,c){if(!a)return a;a=a.replace("#","");r=parseInt(a.substring(0,2),16);g=parseInt(a.substring(2,4),16);b=parseInt(a.substring(4,6),16);return result="rgba("+r+","+g+","+b+","+c+")"}function e(c,d,f){for(var l=0;l<d.length;++l){var e=d[l].column,n=d[l],h="function"==typeof n.color?n.color(f):n.color;n="function"==typeof n.fillOpacity?n.fillOpacity(f):n.fillOpacity;c.selectAll(".graph-tooltip-color-"+e.name).style("border-color",h).style("background-color",a(h,n));
c.selectAll(".graph-tooltip-value-"+e.name).html(void 0===f[e.name]?"":e.formatter.Format(e.name,f))}}function h(a,c){a[0]?a[1]?(a[0]-=c/2,a[1]+=c/2):a[0]+=0>a[0]?-c:c:a[1]+=0>a[1]?-c:c}function k(a,d,f,l,n,h,k){var q=f.map(function(c){return{column:c,color:a.color(c.name),fillOpacity:1,bgcolor:"#fff",cls:"graph-tooltip-line"}}).concat(l.map(function(c){return{column:c,color:a.color(c.name),fillOpacity:a.areaFillOpacity,bgcolor:"#fff",cls:"graph-tooltip-bar"}})).concat(n.map(function(c){return{column:c,
color:a.color(c.name),fillOpacity:a.barFillOpacity,cls:"graph-tooltip-bar"}})).concat(h.map(function(c){return{column:c,color:a.color(c.name),fillOpacity:a.barFillOpacity,cls:"graph-tooltip-bar"}})).concat(k.map(function(c,d){return{column:c,color:function(c){return a.color(c[k[0].name]>c[k[3].name]?k[2].name:k[1].name)},fillOpacity:function(a){return a[k[0].name]>a[k[3].name]?.7:.1},cls:"graph-tooltip-candle"+d}}));n=$('<tr class="graph-tooltip-x"><th></th><th>'+a.xColumn.dispname+'</th><th class="graph-tooltip-value graph-tooltip-value-'+
a.xColumn.name+'"></th></tr>');var m=a.container.append("div").attr("class","graph-tooltip").style("display","none");f=$("<table></table>");f.append(n);for(l=0;l<q.length;l++)n=q[l],n=$('<tr class="graph-tooltip-y"><td class="graph-tooltip-color"><div class="'+n.cls+" graph-tooltip-color-"+n.column.name+'"></div></td><td>'+n.column.dispname+'</td><td class="graph-tooltip-value graph-tooltip-value-'+n.column.name+'"></td></tr>'),f.append(n);q.push({column:a.xColumn});f=$("<div></div>").append(f).html();
m.html(f);var p=a.svg.append("line").attr("class","graph-hover-line").attr("stroke-width",1).style("stroke","#000").attr("stroke-dasharray","1,1").attr("y1",0).attr("y2",a.height).attr("x1",0).attr("x2",0).style("opacity",0);a.d3.select("#"+c).on("mousemove",function(){var c=a.d3.mouse(this)[0];if(c>=a.margin.left&&c<a.width+a.margin.left){var f=0;a.x.invert?(c=a.x.invert(c-a.margin.left),f=a.d3.bisector(function(c){return c[a.xColName]}).left,f=f(d,c),0<f&&c-d[f-1][a.xColName]<d[f][a.xColName]-c&&
f--):f=Math.round((c-a.margin.left-a.xMin)/((a.xMax-a.xMin)/d.length));f>=d.length&&(f=d.length-1);e(m,q,d[f]);c=a.x(d[f][a.xColName]);var l=a.xMin+(a.xMax-a.xMin)/2;m.style("display","block").style("left",a.d3.event.pageX-(c<l?0:m.node().getBoundingClientRect().width)-a.container.node().getBoundingClientRect().left+40+"px").style("top",a.d3.event.pageY-28+"px");f=a.x(d[f][a.xColName])+0;p.attr("x1",f).attr("x2",f).style("opacity",.5)}}).on("mouseout",function(){m.style("display","none");p.style("opacity",
0)})}function m(a,c){c=a.svg.selectAll(".dlegend").data(c).enter().append("g").attr("class","dlegend").attr("transform",function(c,d){return"translate(0,"+(a.topMargin+d*a.legendHeight-a.margin.top+2)+")"});c.append("rect").attr("x",a.width-18).attr("width",12).attr("y",function(a){return 1==a.chartKind||7==a.chartKind||8<a.chartKind?-5:0}).attr("height",function(a){return 1==a.chartKind||7==a.chartKind||8<a.chartKind?12:3}).style("fill",function(c){return a.color(c.name)}).style("fill-opacity",function(c){return 1==
c.chartKind||8<c.chartKind?a.barFillOpacity:7==c.chartKind?a.areaFillOpacity:1});c.append("text").attr("x",a.width-24).style("text-anchor","end").attr("alignment-baseline","central").text(function(a){return a.dispname});a.svg.selectAll(".dlegendx").data([a.xColumn]).enter().append("text").attr("x",a.width).attr("y",a.height+a.margin.bottom-4).style("text-anchor","end").text(function(a){return a.dispname})}function p(a,c,d){var f=0>a.y.domain()[0]&&0<a.y.domain()[1];if(c.length){var l=d.map(function(d){return{x:d[a.xColumn.name],
values:c.map(function(a){return{name:a.name,value:d[a.name]}})}});d=a.x.bandwidth?a.x.bandwidth():a.width/(d.length*c.length);var n=a.d3.scaleBand().domain(c.map(function(a){return a.name})).rangeRound([0,d]);a.svg.selectAll(".dbar").data(l).enter().append("g").attr("class","g").attr("transform",function(c){return"translate("+a.x(c.x)+",0)"}).selectAll("rect").data(function(a){return a.values}).enter().append("rect").attr("width",n.bandwidth()).attr("x",function(a){return n(a.name)}).attr("y",function(c){return f?
0<=c.value?a.y(c.value):a.y(0):a.y(c.value)}).attr("height",function(c){return f?Math.abs(a.y(c.value)-a.y(0)):a.height-a.y(c.value)}).style("stroke",function(c){return a.color(c.name)}).style("fill-opacity",a.barFillOpacity).style("fill",function(c){return a.color(c.name)})}}function q(a,c,d){c.length&&(d=d.map(function(d){return{x:d[a.xColumn.name],color:d[c[0].name]>d[c[3].name]?c[2].name:c[1].name,opacity:d[c[0].name]>d[c[3].name]?.7:.1,values:c.map(function(a){return d[a.name]})}}),a.svg.selectAll(".dcandle").data(d).enter().append("rect").style("stroke",
function(c){return a.color(c.color)}).style("fill",function(c){return a.color(c.color)}).style("fill-opacity",function(a){return a.opacity}).attr("width",4).attr("x",function(c){return a.x(c.x)}).attr("y",function(c){return a.y(a.d3.max([c.values[0],c.values[3]]))}).attr("height",function(c){return a.y(a.d3.min([c.values[0],c.values[3]]))-a.y(a.d3.max([c.values[0],c.values[3]]))}),a.svg.selectAll("line.stem").data(d).enter().append("svg:line").attr("class","stem").style("stroke",function(c){return a.color(c.color)}).attr("x1",
function(c){return a.x(c.x)+2}).attr("x2",function(c){return a.x(c.x)+2}).attr("y1",function(c){return a.y(c.values[1])}).attr("y2",function(c){return a.y(a.d3.max([c.values[0],c.values[3]]))}),a.svg.selectAll("line.stem1").data(d).enter().append("svg:line").attr("class","stem1").style("stroke",function(c){return a.color(c.color)}).attr("x1",function(c){return a.x(c.x)+2}).attr("x2",function(c){return a.x(c.x)+2}).attr("y1",function(c){return a.y(c.values[2])}).attr("y2",function(c){return a.y(a.d3.min([c.values[0],
c.values[3]]))}))}function l(a,c){switch(c){case "linear":return a.d3.curveLinear;case "step-before":return a.d3.curveStepBefore;case "step-after":return a.d3.curveStepAfter;case "basis":return a.d3.curveBasis;case "basis-open":return a.d3.curveBasisOpen;case "basis-closed":return a.d3.curveBasisClosed;case "bundle":return a.d3.curveBundle;case "cardinal":return a.d3.curveCardinal;case "cardinal-open":return a.d3.curveCardinalOpen;case "cardinal-closed":return a.d3.curveCardinalClosed;case "monotone":return a.d3.curveMonotoneX;
default:return a.d3.curveBasis}}function f(a,c,d){if(c.length){c=c.map(function(c){return{name:c.name,dispname:c.dispname,interpolate:l(a,c.interpolate),values:d.filter(function(a){return void 0!==a[c.name]}).map(function(d){return{x:d[a.xColumn.name],y:void 0===d[c.name]?void 0:0+d[c.name]}})}});var f=a.d3.line().defined(function(a){return void 0!==a.y&&!isNaN(a.y)}).x(function(c){return a.x(c.x)}).y(function(c){return a.y(c.y)});a.svg.selectAll(".dline").data(c).enter().append("g").attr("class",
"dline").append("path").attr("class","line").attr("fill","none").attr("d",function(a){return f.curve(a.interpolate)(a.values)}).style("stroke",function(c){return a.color(c.name)})}}function n(a,c,d){if(c.length){c=c.map(function(c){return{name:c.name,dispname:c.dispname,interpolate:l(a,c.interpolate),values:d.map(function(d){var f=d[c.name];void 0!==f&&(f=0+f);return{x:d[a.xColumn.name],y:f,i:d[c.name+"_interpolate"]}})}});var f=a.d3.area().defined(function(a){return void 0!==a.y&&!isNaN(a.y)}).x(function(c){return a.x(c.x)}).y0(function(c){return a.y(0)}).y1(function(c){return a.y(c.y)});
a.svg.selectAll(".darea").data(c).enter().append("g").attr("class","darea").append("path").attr("class","area").attr("fill",function(c){return a.color(c.name)}).style("fill-opacity",a.areaFillOpacity).style("opacity",a.areaFillOpacity).attr("d",function(a){return f.curve(a.interpolate)(a.values)}).style("stroke",function(c){return a.color(c.name)})}}function t(a,c,d){0>a.y.domain()[0]&&a.y.domain();c.length&&(d=d.map(function(d){return{x:d[a.xColumn.name],values:c.map(function(a){return{name:a.name,
value:d[a.name]}}).filter(function(a){return"undefined"!==typeof a.value})}}).filter(function(a){return a.values.length}),d=a.svg.selectAll(".dmarker").data(d).enter().append("g").attr("class","dmarker").attr("transform",function(c){return"translate("+a.x(c.x)+",0)"}),d.selectAll("line").data(function(a){return a.values}).enter().append("line").attr("y1",function(c){return a.y(a.y.domain()[0])}).style("stroke",function(c){return a.color(c.name)}),d.selectAll("text").data(function(a){return a.values}).enter().append("text").attr("dy",
"1em").attr("dx","0.5em").style("fill",function(c){return a.color(c.name)}).attr("y",a.y(a.y.domain()[1])).text(function(a){return a.value}))}function w(a,c,d){c.length&&(c=c.map(function(c){return{name:c.name,dispname:c.dispname,values:d.filter(function(a){return void 0!==a[c.name]&&null!==a[c.name]}).map(function(d){return{x:d[a.xColumn.name],y:0+d[c.name],shape:a.d3.symbols[c.chartKind-a.firstSymbol]}})}}),a.svg.selectAll(".dscatter").data(c).enter().append("g").attr("class","g").style("stroke",
function(c){return a.color(c.name)}).style("fill-opacity",a.barFillOpacity).style("fill",function(c){return a.color(c.name)}).selectAll("point").data(function(a){return a.values}).enter().append("path").attr("class","point").attr("d",a.d3.symbol().type(function(a){return a.shape})).attr("transform",function(c){return"translate("+a.x(c.x)+","+a.y(c.y)+")"}))}var u=d?d:{y_scale_type:"default"};this.Header=new RecordsetHeader;this.Show=function(){this.m_destination.style.display="block"};this.Hide=function(){this.m_destination.style.display=
"none"};this.m_destination=document.getElementById(c);this.lastData=null;this.Render=function(a){var c=this;c.m_destination.innerHTML="";require(["d3"],function(d){var l=d.values(c.Header.Columns),e=l.filter(function(a){return 1==a.chartKind&&a.visible});if(e.length){var y=e.filter(function(a,c){return 0<c&&a.visible});e=e[0];var z=l.filter(function(a){return 2==a.chartKind&&a.visible}),x=l.filter(function(a){return 2<a.chartKind&&7>a.chartKind&&a.visible}).sort(function(a,c){return a.chartKind-c.chartKind}),
I=function(a,c){return a.visible&&(2==a.chartKind||0<c&&1==a.chartKind||7==a.chartKind||8<a.chartKind&&15>a.chartKind)},J=l.filter(I);1==J.length&&(J=[]);var B=l.filter(I),L=l.filter(function(a){return 7==a.chartKind&&a.visible});I=l.filter(function(a){return 8==a.chartKind});l=l.filter(function(a){return 8<a.chartKind&&15>a.chartKind&&a.visible});var E=e.name,F=a.length?a[0][E]:0,G=$(c.m_destination),H="string"==typeof F,R=F instanceof Date;F=!H&&!R;var M={top:4+16*J.length,right:20,bottom:50,left:50};
G=G.width()-M.left-M.right;if(void 0===u.aspect_ratio||""==u.aspect_ratio)u.aspect_ratio="4:3";var S=u.aspect_ratio.split(":"),P=Number(S[1])/Number(S[0]);S=G*P;if(0>G||0>S)G=S=1;var U=function(a){return a[E]};R=H?d.scaleBand().domain(a.map(function(a){return a[E]})).rangeRound([0,G]):(R?d.scaleTime().domain([d.min(a,U),d.max(a,U)]):d.scaleLinear()).range([0,G]);U="log"==u.y_axis_type?d.scaleLog().base(u.scale_log_base).clamp(!0):"power"==u.y_axis_type?d.scalePow().exponent(u.scale_power_exponent):
d.scaleLinear();U=U.range([S,0]);var Z=d.axisBottom(R),aa=a.length/10;H&&1<aa&&(aa=Math.round(aa),Z.tickValues(R.domain().filter(function(a,c){return!(c%aa)})));H=d.axisLeft(U);var V=d.select(c.m_destination);V.select("svg").remove();var W=10>=B.length?d.scaleOrdinal(d.schemeCategory10):d.scaleOrdinal(d.schemeCategory20);if((y.length||z.length||L.length||l.length)&&a.length){var Q=V.append("svg").attr("width",G+M.left+M.right).attr("height",S+M.top+M.bottom).append("g").attr("transform","translate("+
M.left+","+M.top+")");W.domain(B.map(function(a){return a.name}));var N=[d.min(a,function(a){return d.min(B,function(c){return 0<a[c.name]&&L.length?0:a[c.name]})}),d.max(a,function(a){return d.max(B,function(c){return a[c.name]})})];N[0]==N[1]&&(N[0]=Math.round(N[0])-1,N[1]=N[0]+2);var D=[Math.abs(N[0]),Math.abs(N[1])];if(D[0]>D[1]){var ca=D[0];D[0]=D[1];D[0]=ca}if(99999<D[1]||.001>D[1])H=H.tickFormat(d.format("s"));D=F?[d.min(a,function(a){return a[E]}),d.max(a,function(a){return a[E]})]:null;if("linear_x"==
u.y_axis_type&&F){var ba=Math.abs(D[1]-D[0]),Y=Math.abs(N[1]-N[0]);ca=ba*P-Y;P=Y/P-ba;0<ca?h(N,ca):0<P&&h(D,P)}if("log"==u.y_axis_type)if(0==N[0]||0>N[0]&&0<N[1])N[0]=1E-6;else if(0==N[1]||0<N[0]&&0>N[1])N[1]=1E-6;U.domain(N).nice();F&&R.domain(D);Q.append("g").attr("class","x axis").attr("transform","translate(0,"+S+")").call(Z).selectAll("text").attr("class","daxis-labels");Q.append("g").attr("class","y axis").call(H).selectAll("text").attr("class","daxis-labels");e={x:R,y:U,width:G,height:S,margin:M,
d3:d,svg:Q,barFillOpacity:.9,areaFillOpacity:.3,xColumn:e,xColName:E,color:W,firstSymbol:9,topMargin:4,legendHeight:16,container:V,xMin:R(a[0][E]),xMax:R(a[a.length-1][E])};p(e,y,a);q(e,x,a);f(e,z,a);n(e,L,a);w(e,l,a);t(e,I,a);m(e,J);k(e,a,z,L,y,l,x)}}})}};function BSAdviseEvent(c,d,a,e){window.addEventListener?c.addEventListener(d,function(c){a(e);return BSPreventDefaultAction(c)},!1):c.attachEvent("on"+d,function(c){a(e);return BSPreventDefaultAction(c)})}function BSCreateXMLHttpRequest(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP")}function BSGetDataSourceDomain(){return"undefined"!=typeof dataSourceDomain?dataSourceDomain:document.domain}function BSAlert(c){alert(c)}
function BSJson2Object(c){return eval("("+c+")")}function ProcessResponseError(c,d){null!=c.OnError?c.OnError(d):BSAlert("Error occured:"+d)}function ProcessResponseData(c,d){d.error?ProcessResponseError(c,d.error):c.OnResponse(d)}
function BrowserResponse(c,d){this.OnResponse=function(){if(4==c.readyState)if(200==c.status){if(d)if(d.OnResponseText)d.OnResponseText(c.responseText);else{var a=BSJson2Object(c.responseText);ProcessResponseData(d,a)}}else if(c.responseText)try{a=BSJson2Object(c.responseText),a.error&&d&&ProcessResponseError(d,a.error)}catch(e){}else BSAlert("There was a problem retrieving the data from server:\n"+c.statusText)}}
function GGResponse(c){this.OnResponse=function(d){d.text&&""!=d.text?c.OnResponseText?c.OnResponseText(d.text):(ProcessResponseData(c,d.data),gadgets.window.adjustHeight()):ProcessResponseError(c,d.errors)}}
function BSMakePOSTRequest(c,d,a){if("undefined"!=typeof gadgets&&"undefined"!=typeof gadgets.io){var e={};e[gadgets.io.RequestParameters.METHOD]=gadgets.io.MethodType.POST;a=gadgets.io.encodeValues(a);e[gadgets.io.RequestParameters.POST_DATA]=a;e[gadgets.io.RequestParameters.CONTENT_TYPE]=gadgets.io.ContentType.JSON;gadgets.io.makeRequest(c,(new GGResponse(d)).OnResponse,e)}else e=BSCreateXMLHttpRequest(),e.onreadystatechange=(new BrowserResponse(e,d)).OnResponse,e.open("POST",c,!0),e.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded"),e.send(a?SaveObjectToURLParams(a):null)}function BSPoint(c,d){this.x=c;this.y=d;this.xpx=c+"px";this.ypx=d+"px"}function BSGetMouseXYFromEvent(c){c||(c=window.event);var d=0,a=0;if(c)if(c.pageX||c.pageY)d=c.pageX,a=c.pageY;else if(c.clientX||c.clientY)d=c.clientX+document.body.scrollLeft,a=c.clientY+document.body.scrollTop;return new BSPoint(d,a)}
function BSGetWindowSize(){var c=0,d=0;"number"==typeof window.innerWidth?(c=window.innerWidth,d=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(c=document.documentElement.clientWidth,d=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(c=document.body.clientWidth,d=document.body.clientHeight);return new BSPoint(c,d)}
function BSGetScroll(){var c=0,d=0;"number"==typeof window.pageYOffset?(d=window.pageYOffset,c=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(d=document.body.scrollTop,c=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(d=document.documentElement.scrollTop,c=document.documentElement.scrollLeft);return new BSPoint(c,d)}function BSSetScroll(c){window.scrollTo(c.x,c.y)}
function BSGetPageSize(){if(window.innerHeight&&window.scrollMaxY){var c=document.body.scrollWidth;var d=window.innerHeight+window.scrollMaxY}else document.body.scrollHeight>document.body.offsetHeight?(c=document.body.scrollWidth,d=document.body.scrollHeight):(c=document.body.offsetWidth,d=document.body.offsetHeight);var a=BSGetWindowSize();return new BSPoint(c<a.x?a.x:c,d<a.y?a.y:d)}function BSGetElementSize(c){return new BSPoint(c.clientWidth,c.clientHeight)}
function BSGetEventTarget(c){!(c=c.target?c.target:c.srcElement)||3!=c.nodeType&&4!=c.nodeType||(c=c.parentNode);return c}function BSPreventDefaultAction(c){c.preventDefault&&c.preventDefault();return!1}function BSSetDimmedSELECTsVisibility(c,d){if(document.all){for(var a=document.getElementsByTagName("SELECT"),e=0;e<a.length;++e)a[e].style.display=d?"inline":"none";c=c.getElementsByTagName("SELECT");for(a=0;a<c.length;++a)c[a].style.display=d?"none":"inline"}}
function BSGetTextSelection(c){var d={};if("undefined"!=typeof c.selectionStart)d.selectionStart=c.selectionStart,d.selectionEnd=c.selectionEnd;else{c.focus();var a=c.createTextRange();a.moveToBookmark(document.selection.createRange().getBookmark());for(var e=a.text.length,h=c.value,k=h.length,m=k-1;0<=m;--m){var p=h.charCodeAt(m);if(10==p||13==p)k--;else break}a.moveEnd("character",c.value.length);d.selectionStart=k-a.text.length;a.moveEnd("character",-a.text.length+e);d.selectionEnd=d.selectionStart+
e}return d}function BSTextAreaInsert(c,d){c.focus();var a=BSGetTextSelection(c),e=c.scrollTop;c.value=c.value.substring(0,a.selectionStart)+d+c.value.substring(a.selectionEnd,c.value.length);c.focus();c.scrollTop=e;if("undefined"!=typeof c.selectionStart)d=a.selectionStart+d.length,c.selectionStart=d,c.selectionEnd=d;else{e=c.createTextRange();e.collapse();for(var h=a=a.selectionStart,k=0;k<h;++k)10==c.value.charCodeAt(k)&&a--;e.moveStart("character",a+d.length);e.select()}}
function BSTextAreaInsertMarks(c,d,a,e){c.focus();var h=BSGetTextSelection(c),k=!1,m=a;h.selectionEnd-h.selectionStart&&(m=c.value.substring(h.selectionStart,h.selectionEnd),k=!0);m=" "==m.charAt(m.length-1)?d+m.substring(0,m.length-1)+e+" ":d+m+e;e=c.scrollTop;c.value=c.value.substring(0,h.selectionStart)+m+c.value.substring(h.selectionEnd,c.value.length);c.focus();c.scrollTop=e;if("undefined"!=typeof c.selectionStart)k?(d=h.selectionStart+m.length,c.selectionStart=d,c.selectionEnd=d):(c.selectionStart=
h.selectionStart+d.length,c.selectionEnd=c.selectionStart+a.length);else{e=c.createTextRange();e.collapse();for(var p=h=h.selectionStart,q=0;q<p;++q)10==c.value.charCodeAt(q)&&h--;k?e.moveStart("character",h+m.length):(e.moveStart("character",h+d.length),e.moveEnd("character",a.length));e.select()}}function BSGetPressedKeyCode(c){if(window.event)return c.keyCode;if(c.which)return c.which}var DOMVirtualKeys="DOM_VK_UNDEFINED DOM_VK_RIGHT_ALT DOM_VK_LEFT_ALT DOM_VK_LEFT_CONTROL DOM_VK_RIGHT_CONTROL DOM_VK_LEFT_SHIFT DOM_VK_RIGHT_SHIFT DOM_VK_LEFT_META DOM_VK_RIGHT_META DOM_VK_CAPS_LOCK DOM_VK_DELETE DOM_VK_END DOM_VK_ENTER DOM_VK_ESCAPE DOM_VK_HOME DOM_VK_INSERT DOM_VK_NUM_LOCK DOM_VK_PAUSE DOM_VK_PRINTSCREEN DOM_VK_SCROLL_LOCK DOM_VK_LEFT DOM_VK_RIGHT DOM_VK_UP DOM_VK_DOWN DOM_VK_PAGE_DOWN DOM_VK_PAGE_UP DOM_VK_F1 DOM_VK_F2 DOM_VK_F3 DOM_VK_F4 DOM_VK_F5 DOM_VK_F6 DOM_VK_F7 DOM_VK_F8 DOM_VK_F9 DOM_VK_F10 DOM_VK_F11 DOM_VK_F12 DOM_VK_F13 DOM_VK_F14 DOM_VK_F15 DOM_VK_F16 DOM_VK_F17 DOM_VK_F18 DOM_VK_F19 DOM_VK_F20 DOM_VK_F21 DOM_VK_F22 DOM_VK_F23 DOM_VK_F24".split(" ");
function BSGetPressedKey(c){var d={};if("undefined"!=typeof c.which)d.charCode=c.which;else if(window.event)d.charCode=c.keyCode;else for(var a=0;a<DOMVirtualKeys.length;++a)c[DOMVirtualKeys[a]]==c.keyCode&&(d.vk=DOMVirtualKeys[a]);return d}function BSGetElementTextNS(c,d,a){return(c=d.getElementsByTagName(c)[a])?1<c.childNodes.length?c.childNodes[1].nodeValue:c.firstChild?c.firstChild.nodeValue:"n/a":"n/a"}function BSGetTextContent(c){return c.textContent?c.textContent:c.innerText}
function BSReplaceOptions(c,d){if(c.outerHTML){var a=c.outerHTML,e=a.search(/<option/i);c.outerHTML=-1==e?a.replace(/<\/select>/i,d+"</select>"):a.substr(0,e)+d+"</select>"}else c.innerHTML=d}function BSBookmark(c,d,a){window.sidebar?window.sidebar.addPanel(d,a,""):window.opera?(c.setAttribute("href",a),c.setAttribute("title",d),c.setAttribute("rel","sidebar"),c.click()):document.all&&window.external.AddFavorite(a,d)}function BSBookmarkThis(c){BSBookmark(c,document.title,location.href)}
function BSGetMaxWidthProperty(){return document.all?"width":"max-width"}function BSAddSelectOption(c,d,a){var e=document.createElement("option");e.text=a;e.value=d;window.ActiveXObject?c.add(e):c.add(e,null)}function trim(c){c=c.replace(/^\s+/,"");for(var d=c.length-1;0<=d;d--)if(/\S/.test(c.charAt(d))){c=c.substring(0,d+1);break}return c}function leftpad(c,d,a){for(c=new String(c);c.length<a;)c=d+c;return c}
function String2Date(c){var d=new Date;if("string"==typeof c){if(ret=TryString2Date(c),ret instanceof Date)return ret}else d=new Date(c);return d}function TryString2Date(c){var d=trim(c);if(c=d.match(/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})( BC$|$)/i))d=new Date(Number(c[1]),Number(c[2])-1,c[3],c[4],c[5],c[6])," BC"==c[7]?d.setFullYear(1-Number(c[1])):d.setFullYear(c[1]);return d}
function Date2String(c){var d=c.getFullYear(),a=0>=d?" BC":"";0>=d&&(d=1-d);return leftpad(d,"0",4)+"-"+leftpad(c.getMonth()+1,"0",2)+"-"+leftpad(c.getDate(),"0",2)+" "+leftpad(c.getHours(),"0",2)+":"+leftpad(c.getMinutes(),"0",2)+":"+leftpad(c.getSeconds(),"0",2)+a}function BSDateParse(c){return String2Date(c)}function BSIsSystemKey(c){return 120==c.charCode||99==c.charCode||118==c.charCode}
function BSShim(){void 0!==Modernizr&&(Modernizr.flexbox||$(".mdc-layout-grid__cell,.mdc-layout-grid,.mdc-layout-grid__inner,.pc-cell-lg,.pc-cell-sm,.pc-cell-md, .pc-grid-inner").css({width:"auto",display:"block"}),Modernizr.ligatures||$(".material-icons").text(function(c,d){return MaterialIconIds[d]?String.fromCharCode(MaterialIconIds[d]):d}),Modernizr.datauri||$("select").css({"-webkit-appearance":"menulist","-moz-appearance":"menulist",appearance:"menulist"}))};var BACK_SPACE_ASCII_CODE=8,ENTER_ASCII_CODE=13,TAB_ASCII_CODE=9;function DialogResult(){this.ok="DialogResultOK";this.cancel="DialogResultCancel"}function ShowWindow(c){(new DialogWorker(c)).OpenWindow()}function HideWindow(c){(new DialogWorker(c)).HideWindow()}function ShowDialog(c){(new DialogWorker(c)).Show()}function HideDialog(c){(new DialogWorker(c)).Hide()}function HideDialogForLoading(c){(new DialogWorker(c)).HideForLoading()}function SetDialogBusy(c){(new DialogWorker(c)).SetBusy()}
function SetDialogFree(c){(new DialogWorker(c)).SetFree()}function EnableLoadingImage(c,d){var a=BSGetWindowSize();PlaceLoadingImage(c,0,0,a.x,a.y,d)}function PlaceLoadingImage(c,d,a,e,h,k){var m=document.getElementById("loading_image");m&&(c&&(m.style.zIndex=k,m.style.left=d+e/2-m.style.width/2+"px",m.style.top=a+h/3-m.style.height/2+"px"),m.style.display=c?"block":"none")}
function DialogWorker(c){function d(c){c.style.display="block";c.style.position="absolute";c.style.zIndex=a++}var a=2E3,e=document.getElementById(c);this.OpenWindow=function(){d(e);e.style.left=document.documentElement.offsetWidth-e.offsetWidth+"px";e.style.top=document.documentElement.scrollTop+"px"};this.HideWindow=function(){e.style.display="none"};this.Show=function(){var c=BSGetScroll(),k=document.body,m=document.createElement("div");k.insertBefore(m,k.firstChild);k=k.firstChild;k.style.overflow=
"hidden";k.style.overflowX&&(k.style.overflowX="hidden");k.style.overflowY&&(k.style.overflowY="hidden");document.body.scroll="no";document.body.scroll&&(k.scroll="no");m.setAttribute("id","dimmer");m.style.display="block";m.style.position="absolute";m.style.top="0";m.style.left="0";m.style.zIndex=a++;m.style.width="100%";k=BSGetPageSize();m.style.height=k.ypx;d(e);e.style.left=(document.documentElement.offsetWidth-e.offsetWidth)/2+"px";m=BSGetWindowSize();k=BSGetScroll();var p=e.offsetHeight;e.style.top=
Math.floor(p>m.y?0:(m.y-p)/2+k.y)+"px";BSSetDimmedSELECTsVisibility(e,!1);EnableLoadingImage(!1);BSSetScroll(c);$(e).find("input[type=text],textarea,select,input[type=radio],input[type=checkbox]").filter(":visible:first").focus()};this.Hide=function(){var a=document.body;a.removeChild(a.firstChild);e.style.display="none";BSSetDimmedSELECTsVisibility(e,!0);EnableLoadingImage(!1)};this.HideForLoading=function(){e.style.display="none";EnableLoadingImage(!0,a+10)};this.SetBusy=function(){var c=document.body,
d=document.createElement("div");c.insertBefore(d,c.firstChild);d.setAttribute("id","dimmer");d.style.display="block";d.style.position="absolute";c=e;var m=curtop=0;if(c.offsetParent){do m+=c.offsetLeft,curtop+=c.offsetTop;while(c=c.offsetParent)}c=[m,curtop];d.style.left=c[0]+"px";d.style.top=c[1]+"px";d.style.width=e.offsetWidth+"px";d.style.height=e.offsetHeight+"px";d.style.zIndex=a++;PlaceLoadingImage(!0,c[0],c[1],e.offsetWidth,e.offsetHeight,a+10)};this.SetFree=function(){var a=document.body;
a.removeChild(a.firstChild);PlaceLoadingImage(!1)}}function GetSelectOptionsAsArray(c){c=c.childNodes;for(var d=[],a=0;a<c.length;++a){var e=c[a];"OPTION"==e.nodeName&&(d[d.length]=e.value,d[d.length]=e.firstChild.nodeValue)}return d}
function ElementAccessorRadio(){this.GetElement=function(){return document.getElementById(this.id+"0")};this.GetValue=function(){for(var c=0;;){var d=document.getElementById(this.id+c++);if(!d)break;if(d.checked)return d.value}};this.ResetValue=function(){for(;;){var c=document.getElementById(this.id+index++);if(!c)break;c.defaultChecked&&(c.checked=!0)}};this.SetValue=function(c){for(var d=0;;){var a=document.getElementById(this.id+d++);if(!a)break;a.checked=a.value==c}};this.GetParent=function(){return this.GetElement().parentNode.parentNode}}
function ElementAccessorCheckbox(){this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){var c=this.GetElement();c.checked=c.defaultChecked};this.GetValue=function(){return this.GetElement().checked?1:0};this.SetValue=function(c){this.GetElement().checked=c?1:0};this.GetParent=function(){return this.GetElement().parentNode.parentNode}}
function ElementAccessorDefault(){this.GetElement=function(){return document.getElementById(this.id)};this.GetValue=function(){return this.GetRawValue()};this.GetRawValue=function(){return this.GetElement().value};this.ResetValue=function(){var c=this.GetElement();c.value=c.defaultValue};this.SetValue=function(c){var d=this.GetElement();void 0===d.type?d.innerHTML=c:(d.value=c,"text"==d.type&&(d=$(d).parent(),void 0!==c&&""!==c?(d.addClass("mdc-text-field--upgraded"),d.find("label").addClass("mdc-text-field__label--float-above")):
d.find("label").removeClass("mdc-text-field__label--float-above")))};this.GetParent=function(){return this.GetElement().parentNode}}
function ElementAccessorInputImage(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetParent=function(){return this.GetElement().parentNode.parentNode};this.GetRawValue=function(){return $(this.GetElement()).data("value")};this.SetValue=function(c){var d=$(this.GetElement());d.data("value",c);c&&""!=c?(d.attr("src",c+"_thumb.png"),d.parent().find("span").hide()):(d.hide(),d.parent().find("span").show())}}
function ElementAccessorSvg(){function c(d,a){for(var e in a){var h=a[e];switch(Object.prototype.toString.call(h)){case "[object Array]":for(var k=d.find(e),m=0;m<h.length;++m)c($(k.get(m)),h[m]);break;case "[object String]":case "[object Number]":"__text"==e?d.text(h):d.attr(e,h);break;default:c(d.find(e),h)}}}this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){return $(this.GetElement())};this.SetValue=function(d){var a=
$(this.GetElement()),e;for(e in d){var h=a.find("#"+e);c(h,d[e])}}}function ElementAccessorOutput(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetRawValue=function(){var c=this.GetElement();return"undefined"==typeof c.type?c.innerHTML:c.value}}function ElementAccessorNumber(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetValue=function(){return Number(this.GetElement().value.replace(",","."))}}
function ElementAccessorImage(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetRawValue=function(){return this.GetElement().src};this.ResetValue=function(){};this.SetValue=function(c){this.GetElement().src=c}}
function ElementAccessorCalculator(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){return eval("("+this.id+")").GetValues()};this.ResetValue=function(){};this.SetValue=function(c){eval("("+this.id+")").SetValues(c)}}
function ElementAccessorSvgMap(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){var c=$(this.GetElement()).find(".mapitem_selected");return c.length?c[0].id:""};this.ResetValue=function(){$(this.GetElement()).find(".mapitem_selected").attr("class","mapitem")};this.SetValue=function(c){var d=$(this.GetElement());c=d.find("#"+c);c.length&&(d.find(".mapitem_selected").attr("class","mapitem"),$(c[0]).attr("class",
"mapitem mapitem_selected"))}}function ElementAccessorSvgKeyboard(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){return window["kbd_buffer_"+this.GetElement().getAttribute("id")]};this.ResetValue=function(){};this.SetValue=function(c){}}
function ElementAccessorSelect(){this.GetElement=function(){return document.getElementById(this.id)};this.GetValue=function(){return this.GetElement().value};this.ResetValue=function(){for(var c=this.GetElement(),d=0;d<c.options.length;++d){var a=c.options[d];if(a.defaultSelected){this.SetValue(a.value);return}}c.options.length&&this.SetValue(c.options[0].value)};this.SetValue=function(c){for(var d=this.GetElement(),a="",e=!1,h=0;h<d.options.length;++h){var k=d.options[h];if(k.value==c){e=!0;break}else k.text==
c&&(a=k.value)}e?d.value=c:""!=a&&(d.value=a)};this.GetParent=function(){return this.GetElement().parentNode}}function ElementAccessorTree(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.value={};this.d=null;this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){return this.value};this.SetValue=function(c){this.value=c;this.d||(this.d=new TreeDiagram(this.id));this.d.Render(c)}}
function ElementAccessorAce(){function c(c,a,e){c.config.set("packaged",!0);c=c.edit(e.id+"_div");$(a).val(c.getValue());c.session.setMode("ace/mode/javascript");c.setShowPrintMargin(!1);a.editor=c;e.editor=c}this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.init=function(){var d=this,a=d.GetElement();void 0===window.ace?window.require(["ace/ace"],function(e){c(ace,a,d)}):c(ace,a,d)};this.GetParent=function(){return this.GetElement()};this.GetRawValue=function(){var c=this.GetElement();
var a=this.editor;a||(a=c.editor);c=a.getValue();$(this.GetElement()).val(c);return c};this.SetValue=function(c){ace.config.set("packaged",!0);this.editor.setValue(c)}}function FilterAccessor(c,d){this.GetElement=function(){return c.GetElement()};this.GetValue=function(){return c.GetValue()};this.ResetValue=function(){c.ResetValue()};this.SetValue=function(a){c.SetValue(a)};this.GetParent=function(){return c.GetParent()};this.Filter=function(a){var c=this.GetValue();return c&&""!=c?a[d]==c:!0}}
function ElementAccessorDate(){function c(a,c){return a?a.value:c}function d(a){for(;a.options.length;)a.remove(0)}this.YearsGap=100;this.CenturyGap=25;this.GetElement=function(){return document.getElementById(this.id)};this.GetControls=function(){return{d:document.getElementById(this.id+"_day"),m:document.getElementById(this.id+"_month"),y:document.getElementById(this.id+"_year"),c:document.getElementById(this.id+"_century"),h:document.getElementById(this.id+"_hour"),n:document.getElementById(this.id+
"_minute")}};this.GetValue=function(){var a=this.GetControls(),d=a.y?a.y.value:a.c?a.c.value:0,h=new Date(d,c(a.m,0),c(a.d,1),c(a.h,0),c(a.n,0));a.m&&h.getMonth()!=a.m.value&&h.setMonth(a.m.value);h.setFullYear(d);return h};this.ResetValue=function(){this.SetValue(eval(this.id+"_init"))};this.SetValue=function(a){a=new Date(String2Date(a));var c=this.GetControls(),d=c.m,k=a.getMonth();d&&(d.value=k);d=c.d;k=a.getDate();d&&(d.value=k);d=c.h;k=a.getHours();d&&(d.value=k);c=c.n;d=a.getMinutes();c&&(c.value=
d);this.UpdateY(a);this.UpdateD(a)};this.GetParent=function(){return this.GetElement().parentNode};this.UpdateY=function(a){var c,h,k=this.GetControls(),m=(c=getFormattedMessage("b_c"))?" "+c:"";if(k.y){d(k.y);for(var p=-this.YearsGap;p<=this.YearsGap;++p){var q=h=a.getFullYear()+p;0>=h&&(q=1-h+m);BSAddSelectOption(k.y,h,q)}k.c||(k.y.value=a.getFullYear())}if(k.c){d(k.c);var l=a.getFullYear();for(p=-this.CenturyGap;p<=this.CenturyGap;++p)h=l+100*p,q=Math.floor((h-1)/100),0<=q?(c=PCL.getOrdinal(q+
1),q=c.replace("%1",q+1)):(c=PCL.getOrdinal(-q),q=c.replace("%1",-q)+m),BSAddSelectOption(k.c,h,q);k.c.value=l;k.y&&(k.y.value=a.getFullYear())}};this.UpdateD=function(a){var c=this.GetControls();if(c.d){d(c.d);for(var h=1;31>=h;++h){var k=new Date(a);k.setDate(h);if(a.getMonth()!=k.getMonth())break;BSAddSelectOption(c.d,h,getFormattedMessage("dow_"+k.getDay())+", "+h)}c.d.value=a.getDate()}};this.Initialize=function(a){var c=this.GetControls();if(c.h){d(c.h);for(var h=0;24>h;++h)BSAddSelectOption(c.h,
h,h);c.h.value=a.getHours()}if(c.n){d(c.n);for(h=0;60>h;++h)BSAddSelectOption(c.n,h,(10>h?"0":"")+h);c.n.value=a.getMinutes()}if(c.m){d(c.m);var k=320>=this.GetElement().offsetWidth?"smon_":"mon_";for(h=0;12>h;++h)BSAddSelectOption(c.m,h,getFormattedMessage(k+h));c.m.value=a.getMonth()}this.UpdateY(a);this.UpdateD(a)}}
function ElementAccessorDynamicSelect(c,d,a,e,h,k,m){c&&(this.URL="//"+BSGetDataSourceDomain()+c);this.PatchDefaultValue=function(a){if("object"==typeof a)return a;var c='({"'+this.pkFieldName+'" : ',d="string"==typeof a?'"':"";c=c+(d+a+d)+"})";eval(c);return eval(c)};this.params=d;this.fieldid=a;this.pkFieldName=""==h?a:h;this.initialvalue=this.currentvalue=this.PatchDefaultValue(e);this.valuesarray=[];this.sort=m;this.m_handlerVarName=k;this.valuesmap={};this.URL&&BSMakePOSTRequest(this.URL,this,
this.params);this.SetParams=function(a){this.params=a;this.URL&&BSMakePOSTRequest(this.URL,this,this.params)};this.Query=function(a,c){this.params=c;this.URL="//"+BSGetDataSourceDomain()+a;BSMakePOSTRequest(this.URL,this,this.params)};this.OnResponse=function(a){if(this.sort){var c=new Recordset;c.LoadFromArray(a);c.SortAsc(this.fieldid);this.valuesarray=c.GetRecordArray()}else this.valuesarray=a;this.valuesmap={};for(a=0;a<this.valuesarray.length;++a)this.valuesmap[this.valuesarray[a][this.pkFieldName]]=
this.valuesarray[a];c="";var d=!1,f=!1;for(a=0;a<this.valuesarray.length;++a){var n=this.valuesarray[a],e="";this.currentvalue[this.pkFieldName]==n[this.pkFieldName]?(e='selected="selected"',d=!0):d||this.currentvalue[this.pkFieldName]!=n[this.fieldid]||(e="%selectedbyname%",f=!0);c+='<OPTION VALUE="'+n[this.pkFieldName]+'" '+e+">"+n[this.fieldid]+"</OPTION>"}f&&(c=c.replace("%selectedbyname%",d?"":'selected="selected"'));if(c.length&&(BSReplaceOptions(this.GetElement(),c),eval(this.m_handlerVarName)))this.GetElement().onchange()};
this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){this.SetValue(this.initialvalue)};this.GetValue=function(){var a=this.GetElement().value;a=this.valuesmap[a];return void 0!==a?a:""};this.SetValue=function(a){"undefined"!=typeof this.GetElement().type&&(this.currentvalue=this.PatchDefaultValue(a),void 0!=this.valuesarray[this.currentvalue[this.pkFieldName]]?this.OnResponse(this.valuesarray):this.URL&&BSMakePOSTRequest(this.URL,this,this.params))};this.GetParent=
function(){return this.GetElement().parentNode}}
function ElementAccessorSelectHandbook(c,d,a,e,h,k,m,p,q,l){c&&(this.URL="//"+BSGetDataSourceDomain()+c);this.PatchDefaultValue=function(a){if("object"==typeof a)return a;var c='({"'+this.pkFieldName+'" : ',d="string"==typeof a?'"':"";c=c+(d+a+d)+"})";eval(c);return eval(c)};this.created=!1;this.params=d;this.fieldid=a;this.pkFieldName=""==h?a:h;this.initialvalue=this.currentvalue=this.PatchDefaultValue(e);this.valuesarray=[];this.valuesmap={};this.sort=m;this.m_handlerVarName=k;this.filter=new function(){this.filter=
function(a){return!0}};if(this.URL){var f=this;$(function(){BSMakePOSTRequest(f.URL,f,f.params)})}this.SetFilter=function(a){this.filter=a};this.SetParams=function(a){this.params=a;this.URL&&BSMakePOSTRequest(this.URL,this,this.params)};this.Query=function(a,c){this.params=c;this.URL="//"+BSGetDataSourceDomain()+a;BSMakePOSTRequest(this.URL,this,this.params)};this.OnResponse=function(a){if(this.sort){var c=new Recordset;c.LoadFromArray(a);c.SortAsc(this.fieldid);this.valuesarray=c.GetRecordArray()}else this.valuesarray=
a;this.valuesmap={};for(a=0;a<this.valuesarray.length;++a)this.valuesmap[this.valuesarray[a][this.pkFieldName]]=this.valuesarray[a];this.Refresh()};this.Refresh=function(){for(var a="",c=0,d=0;d<this.valuesarray.length;++d){var f=this.valuesarray[d];if(this.filter.filter(f)){var e=null,k=null;this.currentvalue[this.pkFieldName]==f[this.pkFieldName]&&(c=d);q&&(e=f[q]+"_thumb.png");if(l){k=l;for(var h in f)k=k.replace(new RegExp("%"+h+"%","g"),f[h])}a+='<li class="mdc-list-item" role="option" id="grains" tabindex="0">';
var m="";e&&(m='<img src="'+e+'" alt="'+f[this.fieldid]+'" class="pc-list-img"/>');m+=f[this.fieldid];k&&(m+='<span class="mdc-list-item__text__secondary">'+k+"</span>");a+=m+"</li>"}}this.GetElement().getElementsByClassName("mdc-list")[0].innerHTML=a;var p=this;p.control=PLANETCALC.select(this.GetElement());a=function(){var a=eval(p.m_handlerVarName);if(a&&a.onchanged){var c=p.id.indexOf("_");a.onchanged(p.id.substr(c+1))}};p.control.listen("MDCSelect:change",a);p.control.selectedIndex=c;a()};this.GetElement=
function(){return document.getElementById(this.id)};this.ResetValue=function(){this.SetValue(this.initialvalue)};this.GetValue=function(){if(f.control)return this.valuesarray[f.control.selectedIndex]};this.SetValue=function(a){if("undefined"!=typeof this.GetElement().type&&(this.currentvalue=this.PatchDefaultValue(a),this.control)){a=this.currentvalue[this.pkFieldName];for(var c=0;c<this.valuesarray.length;++c)if(this.valuesarray[c][this.pkFieldName]==a){this.control.selectedIndex=c;break}}};this.GetParent=
function(){return this.GetElement().parentNode.parentNode}}
function ElementAccessorInputTable(c,d){function a(a,c){var d={},e;for(e in a){var h=a[e];d[e]=c[e]&&"string"==typeof h?TryString2Date(h):h}return d}this.GetElement=function(){return document.getElementById(this.id)};this.GetHandler=function(){this.handler||(this.handler=eval(c));return this.handler};this.GetValue=function(){return this.GetHandler().accessor.data};this.ResetValue=function(){return this.GetHandler().accessor.data=[]};this.SetValue=function(c){this.ResetValue();if(Array.isArray(c))if(d){for(var e=
[],k=0;k<c.length;++k)e.push(a(c[k],d));this.GetHandler().accessor.data=e}else this.GetHandler().accessor.data=c;this.GetHandler().Refresh()};this.GetParent=function(){return this.GetElement()}}function ElementAccessorPrecision(){this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){};this.GetValue=function(){return PCF.getCalcPrecision()};this.SetValue=function(c){PCF.setCalcPrecision(c)};this.GetParent=function(){return this.GetElement()}}
function ElementAccessorResource(){this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){};this.GetValue=function(){return eval("("+this.id+"_data)")};this.SetValue=function(c){};this.GetParent=function(){return this.GetElement().parentNode}}
function ElementAccessorDegrees(){this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){var c=document.getElementById(this.id+"_value");this.SetValue(c.defaultValue)};this.GetValue=function(){var c=document.getElementById(this.id+"_value");return Number(c.value)};this.SetValue=function(c){this.SetDegreesValue(c)};this.SetDegreesValue=function(c){document.getElementById(this.id+"_value").value=c;c=Number(c);var d="";0>c&&(c=-c,d="-");document.getElementById(this.id+
"_sec").value=Math.floor(3600*c)%60;document.getElementById(this.id+"_min").value=Math.floor(60*c)%60;document.getElementById(this.id+"_deg").value=d+Math.floor(Number(c))};this.GetParent=function(){return this.GetElement().parentNode}}
function ElementAccessorCoordinate(){this.inheritFrom=ElementAccessorDegrees;this.inheritFrom();this.SetValue=function(c){var d=Number(c);document.getElementById(this.id+"_side1").checked=0<=d;document.getElementById(this.id+"_side2").checked=0>d;0>d&&(d=-d);this.SetDegreesValue(d);document.getElementById(this.id+"_value").value=c}}
function ElementAccessorSelectImage(c){function d(){a.control||(a.control=PLANETCALC.select(a.GetElement()),a.control.listen("MDCSelect:change",function(){a.value=a.control.selectedOptions[0].getAttribute("data-value");var c=eval(a.m_handlerVarName);if(c&&c.onchanged){var d=a.id.indexOf("_");c.onchanged(a.id.substr(d+1))}}))}this.value=this.initialvalue=c;this.created=!1;var a=this;this.GetElement=function(){return document.getElementById(this.id)};this.ResetValue=function(){this.SetValue(this.initialvalue)};
this.GetValue=function(){d();return a.value};this.SetValue=function(c){d();for(var e=a.control.options,k=0;k<e.length;++k)if(e[k].getAttribute("data-value")===c){a.control.selectedIndex=k;break}};this.GetParent=function(){return this.GetElement().parentNode.parentNode}}
function ElementAccessorNumericArray(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetValue=function(){var c=this.GetElement().value.trim();c=c.replace(/,/g,".");c=c.split(/\s+/);for(var d=[],a=0;a<c.length;++a)d.push(Number(c[a]));return d}}
function ElementAccessorBigNumberArray(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetValue=function(){var c=this.GetElement().value.trim();if(""==c)return[];c=c.split(/\s+/);for(var d=[],a=0;a<c.length;++a)d.push(PCR.parse(c[a]));return d}}function ElementAccessorBigNumber(){this.inheritFrom=ElementAccessorDefault;this.inheritFrom();this.GetValue=function(){var c=this.GetElement().value;return""==c?PCR.integer(0):PCR.parse(c)}}
function CookieParameters(){function c(a){return a.replace(/^[\s\t]+/,"").replace(/[\s\t]+$/,"")}this.Parameters={};this.SetParameter=function(a,c){this.Parameters[a]=c};for(var d=document.cookie.split(";"),a=0;a<d.length;++a){var e=d[a].split("="),h=c(e[0]);if("field_"==h.substring(0,6)){h=h.substring(6);var k="";1<e.length&&(k=c(e[1]));this.SetParameter(h,k)}}d=new Date;d.setTime(d.getTime()+2592E6);this.expires="expires="+d.toGMTString();this.Save=function(){for(var a in this.Parameters)document.cookie=
"field_"+a+"="+this.Parameters[a]+";"+this.expires}}function getControlValueAfterChange(c,d){var a=BSGetTextSelection(d);d=d.value;var e=d.substring(0,a.selectionStart);c.charCode==BACK_SPACE_ASCII_CODE?e.length&&(e=e.substring(0,e.length-1)):c.charCode&&(e+=String.fromCharCode(c.charCode));return e+=d.substring(a.selectionEnd,d.length)}
function handleOnKeyPressed(c,d,a,e){var h=BSGetPressedKey(c);if("undefined"==typeof h||h.charCode==BACK_SPACE_ASCII_CODE||h.charCode==ENTER_ASCII_CODE||h.charCode==TAB_ASCII_CODE||0==h.charCode||BSIsSystemKey(h))return!0;h=getControlValueAfterChange(h,d);return(a=a.Validate(h))&&e&&e.ShowMessage?(e.ShowMessage(a),BSPreventDefaultAction(c)):showOrClearError(d,a,e)?!0:BSPreventDefaultAction(c)}
function DialogInput(c,d,a,e){this.id=c;this.dialog=d;this.validator=a;this.formatter=null;this.elementAccessor=e;this.elementAccessor.id=d.GetElement().getAttribute("id")+"_"+this.id;this.elementAccessor.init&&this.elementAccessor.init();var h=null,k=!1;this.GetElement=function(){return this.elementAccessor.GetElement()};this.GetElementAccessor=function(){return this.elementAccessor};this.ResetValue=function(){this.elementAccessor.ResetValue()};this.SetValue=function(a){if(this.formatter&&this.formatter instanceof
FormatterFormula){var c=this.formatter.FormatSimple(a);require(["mathjax"],function(a){k?h&&a.Hub.queue.Push(["Text",h,"\\displaystyle{"+c+"}"]):(e.SetValue('<script type="math/tex">\x3c/script>'),a.Hub.queue.Push(function(){h=a.Hub.getAllJax(e.id)[0];a.Hub.queue.Push(["Text",h,"\\displaystyle{"+c+"}"])}),k=!0)})}else c=this.formatter?this.formatter.Format(a):a,this.elementAccessor.SetValue(c)};this.GetValue=function(a){return this.elementAccessor.GetValue()};this.GetElementToShow=function(){for(var a=
this.elementAccessor.GetElement(),c=a.parentNode;c;){if(c.className&&(-1!==c.className.indexOf("pc-cell")||-1!=c.className.indexOf("mdc-layout-grid__cell")))return c;c=c.parentNode}return a.parentNode};this.Show=function(){return this.GetElementToShow().style.display="block"};this.Hide=function(){return this.GetElementToShow().style.display="none"};this.getMsgElement=function(){var a=this.elementAccessor.GetElement();if(a){if(a.hasAttribute("aria-controls")){a=a.getAttribute("aria-controls").split(" ");
for(var c=0;c<a.length;++c){var d=document.getElementById(a[c]);if(d&&-1!=d.className.indexOf("pc-field-msg"))return d}}a=this.GetElementToShow().getElementsByClassName("pc-field-msg");if(a.length)return a[0]}};this.ShowError=function(a,c){if(this.elementAccessor.ShowError)return this.elementAccessor.ShowError(a);var d=this.elementAccessor.GetParent();$(d).addClass("invalid");c&&($o=$(c),$o.hasClass("mdc-textfield__input")?$o.parent().addClass("invalid"):$o.addClass("invalid"));this.ShowMessage(a);
return!0};this.ShowMessage=function(a){var c=this.getMsgElement();if(c)return c.hasAttribute("data-original")||c.setAttribute("data-original",c.innerHTML),c.innerHTML=a,!0;alert(a)};this.ClearError=function(a){if(this.elementAccessor.ClearError)return this.elementAccessor.ClearError();var c=this.elementAccessor.GetParent();$(c).removeClass("invalid");a&&($o=$(a),$o.hasClass("mdc-textfield__input")?$o.parent().removeClass("invalid"):$o.removeClass("invalid"));(a=this.getMsgElement())&&a.hasAttribute("data-original")&&
(a.innerHTML=a.getAttribute("data-original"))};this.ShowOrClearError=function(a){if(""==a)return this.ClearError(),!0;this.ShowError(a);return!1};this.Validate=function(a){return this.validator?(a=this.elementAccessor.GetRawValue?this.elementAccessor.GetRawValue():this.elementAccessor.GetValue(),this.ShowOrClearError(this.validator.Validate(a))):!0};this.ValidateCurrent=function(){if(this.validator)return this.Validate(this.GetValue());this.ClearError();return!0};this.GetOptions=function(){return GetSelectOptionsAsArray(this.GetElement())};
this.Load=function(a){var c=this.GetElement().name;c&&(a=a[c],"undefined"!=typeof a&&this.SetValue(a))}};function HTTPParameters(){this.Parameters={};this.SetParameter=function(a,c){this.Parameters[a]=c};var c=(new String(document.URL)).split("?");if(1<c.length){c=c[1].split("&");for(var d=0;d<c.length;++d){var a=c[d].split("="),e="";2==a.length&&(e=a[1]);this.SetParameter(a[0],decodeURIComponent(e))}}}
function SaveObjectToURLParams(c){var d="",a;for(a in c){var e=c[a];"object"==typeof e&&(e=Value2Json(e,!0));"undefined"!=typeof e&&(d+="&"+a+"="+encodeURIComponent(e))}return d.length?d.substring(1):d}
var PSS="object"==typeof PSS?PSS:function(){var c=new function(){this.Parameters={};this.SetParameter=function(a,c){var d=c.length?c.substr(0,1):"",e=c.length?c.substr(c.length-1):"";this.Parameters[a]="{"==d&&"}"==e||"["==d&&"]"==e?JSON.parse(c):c};var c=(new String(document.URL)).split("?");if(1<c.length){c=c[1].split("&");for(var a=0;a<c.length;++a){var e=c[a].split("="),h="";2==e.length&&(h=e[1]);this.SetParameter(e[0],decodeURIComponent(h))}}};return{LoadInput:function(d,a,e,h){if(c.Parameters[a])e.SetValue(c.Parameters[a]);
else{if(window.CalculatorData&&(d=window.CalculatorData["id"+d])){a=d[a];"undefined"!=typeof a&&e.SetValue(a);return}"undefined"!=typeof h&&e.SetValue(h)}},SaveInput:function(c,a,e){}}}();var PCF=function(){function c(a,d){if(a.childNodes)for(var f in a.childNodes){var l=a.childNodes[f];if(1==l.nodeType){var e=l.getAttribute("data-precision");""===e||null===e?c(l,d):d(l,Number(e))}}}var d,a=[],e=[],h=[],k,m=null,p="R",q=!1;return{advisePrecisionmeter:function(l,f,e){void 0===d&&(k=d=f);a[a.length]=l;h[h.length]=e;c(l,function(a,c){BSAdviseEvent(a,"click",PCF.changeCalcPrecision,c)});c(l,function(a,c){"Plus"!=c&&"Minus"!=c&&(a.className=Number(c)<=f?"selected":"")})},changeCalcPrecision:function(l){var f=
Number(d);"Plus"==l?f<PCF.getMaxPrecision()&&(f+=1):"Minus"==l?0<f&&--f:f=Number(l);d=f;for(l=0;l<a.length;++l){f=a[l];var e=eval(h[l]);c(f,function(a,c){"Plus"!=c&&"Minus"!=c&&(a.className=Number(c)<=d?"selected":"")});e.onchanged("precisionmeter")}},advisePrecisionmeter2:function(a,c){void 0===d&&(k=d=a);h[h.length]=c},getMaxPrecision:function(){return 20},getResultsSet:function(){return p},setResultsSet:function(a){if(a!==p)for(p=a,$("[name=precisionmeter_resultset]").val(a),a=0;a<h.length;++a)try{eval(h[a]).onchanged("precisionmeter")}catch(f){}},
getCalcPrecision:function(){return d},setCalcPrecision:function(a){d=a},getDefaultPrecision:function(){return k},format:function(a){for(var c=a,l=1;l<arguments.length;++l){var e=arguments[l];"number"==typeof e&&void 0!==d&&Math.round(e)!=e&&(e=e.toFixed(d));c=c.replace("%"+l,e)}return c},changeCalcPrecision2:function(a){d=a;for(var c=0;c<h.length;++c)eval(h[c]).onchanged("precisionmeter");for(c=0;c<e.length;++c){var l=e[c];l.value=a;if(l=l.root_.getAttribute("aria-controls"))if(l=document.getElementById(l))l.innerHTML=
PCL.digits_afterdot.replace("%1",a)}},setPrecisionControls:function(a,c){void 0!==c&&(d=c);e=a},formatRecords:function(a,c,d,e){for(var f=[],l=d;l<a.length&&l<d+e;++l){for(var n=[],k=0;k<c.length;++k){var h=c[k];n[k]=h.formatter?h.formatter.Format(h.name,a[l]):a[l][h.name];void 0===n[k]&&(n[k]="")}f.push(n)}return f},getSortMethod:function(a,c,d){var f=a[c];if(f.formatter&&f.isNumeric)return d?function(a,c){return a[f.name]-c[f.name]}:function(a,c){return c[f.name]-a[f.name]};var l=f.formatter?f.formatter:
new RecordFieldFormatterSame;return d?function(a,c){a=l.Format(f.name,a);c=l.Format(f.name,c);return a>c?1:a<c?-1:0}:function(a,c){a=l.Format(f.name,a);c=l.Format(f.name,c);return a<c?1:a>c?-1:0}},sortRecords:function(a,c,d,e){c=this.getSortMethod(c,d,e);a.sort(c)},insertSortedRecord:function(a,c,d,e,k){if(0>e&&e>=c.length||void 0===k||!a.length)return a.push(d),a.length-1;var f=0,l=a.length;for(c=this.getSortMethod(c,e,k);;)if(e=l-f,e-=e%2,e/=2,e+=f,k=c(d,a[e]),0===k){f=e;break}else if(0<k){if(1===
l-f){f=e+1;break}f=e}else{if(1===l-f){f=e;break}l=e}a.splice(f,0,d);return f},htmlEncode:function(a){m||(m=$("<div/>"));return m.text(a).html()},patchDate:function(a){var c={},d;for(d in a){var l=a[d];l instanceof Date?c[d]=Date2String(l):Array.isArray(l)?c[d]=PCF.patchDateA(l):c[d]=l&&"object"===typeof l?PCF.patchDate(l):l}return c},patchDateA:function(a){for(var c=[],d=0;d<a.length;++d)c.push(this.patchDate(a[d]));return c},formatProfile:function(a){if(!a.userid)return"";var c=(new FormatterTimeSpan).Format(TryString2Date(a.updated));
return" "+formatMessage(PCL.userdata,a.username,c,a.userid)},requestFormulaUpdate:function(a){void 0===a&&(a=!0);var c=q;q=a;return c}}}();function GetDateParts(c,d){return[c.getFullYear(),c.getMonth()+1,c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()]}function GetDateCentury(c){c=Math.ceil(c.getFullYear()/100);0>c?c=1-c:0<c?c:c=1;return PCL.getOrdinal(c).replace("%1",c)+" "+getFormattedMessage("century")}
function FormatDate(c,d){if("0000-00-00 00:00:00"==d||!d)return"";d="string"==typeof d?String2Date(d):new Date(d);var a=6;-1==c.search("%8")?a=4:-1==c.search("%9")&&(a=5);a=GetDateParts(d,a);var e=0>=a[0]?" "+getFormattedMessage("b_c"):"";0>=a[0]&&(a[0]=1-a[0]);d=GetDateCentury(d);return formatMessage(c,leftpad(a[0],"0",4),leftpad(a[1],"0",2),leftpad(a[2],"0",2),e,d,leftpad(a[3],"0",2),leftpad(a[4],"0",2),leftpad(a[5],"0",2),leftpad(a[6],"0",3))}
function FormatAbsDegrees(c,d){0>c&&(c=-c);var a="";if(void 0===c||isNaN(c))return"";d?(c=Math.round(36E5*c),a=(a=c%1E3/1E3)?a.toFixed(3).substr(1):"",c=(c-c%1E3)/1E3):c=Math.round(3600*c);d=c%60;c=(c-d)/60;var e=c%60;return(c-e)/60+"&#176;"+e+"'"+d+'"'+a}function FormatterDegrees(c){this.Format=function(d){d=Number(d);return(0>d?"-":"")+FormatAbsDegrees(d,c)};this.isNumeric=!0}
function FormatterCoordinate(c,d){var a="lat"==c?["latitudeN","latitudeS"]:["longitudeE","longitudeW"];this.Format=function(c){c=Number(c);var e=getFormattedMessage(a[0>c?1:0]);return FormatAbsDegrees(c,d)+" "+e};this.isNumeric=!1}function FormatterDate(){this.Format=function(c){return FormatDate(getFormattedMessage("date_format"),c)}}function FormatterBoolean(){this.Format=function(c){return getFormattedMessage(c?"yes":"no")}}
function FormatterDateFlags(c){var d=getFormattedMessage("date_format"),a=getFormattedMessage("date_time_format"),e=["",d,"%6:%7",a,"%5","%5 "+d,"%5 %6:%7","%5 "+a];this.Format=function(a){if((new Date).toLocaleString){if("0000-00-00 00:00:00"==a||!a)return"";a="string"==typeof a?String2Date(a):new Date(a);var d=0>=a.getFullYear()?" "+getFormattedMessage("b_c"):"";return[function(a){return""},function(a){return a.toLocaleDateString()+d},function(a){return a.toLocaleTimeString()},function(a){return a.toLocaleDateString()+
d+" "+a.toLocaleTimeString()},function(a){return GetDateCentury(a)},function(a){return GetDateCentury(a)+" "+a.toLocaleDateString()+d},function(a){return GetDateCentury(a)+" "+a.toLocaleTimeString()},function(a){return GetDateCentury(a)+" "+a.toLocaleDateString()+d+" "+a.toLocaleTimeString()}][c](a)}return FormatDate(e[c],a)}}function FormatterImage(c,d){this.Format=function(a){return a&&""!=a?'<img src="'+a+'" '+(d?'class="'+d+'"':"")+' alt="'+c+'" title="'+c+'"/>':""}}
function FormatterTree(c){this.Format=function(d){d.expanded=c;return d};this.isNumeric=!1}function FormatterSimpleURL(){this.Format=function(c){if(""!=c){var d=c;"http"!=d.substr(0,4)&&(d="http://"+d);return'<a href="'+d+'" />'+c+"</a>"}return""}}
function FormatterDateOnly(){this.Format=function(c){if("0000-00-00 00:00:00"!=c&&c){c=String2Date(c);var d=c.getTime();d-=6E4*c.getTimezoneOffset();c.setTime(d);return c.getFullYear()+"."+(10>c.getMonth()+1?"0"+(c.getMonth()+1):c.getMonth()+1)+"."+c.getDate()}return""}}
function FormatterTimeSpan(){function c(c,a){var d=a=Number(a).toFixed(0);if(10<=a&&20>=a)return getFormattedMessage(c+"1X_ago",a);20<a&&(d=a%10);return getFormattedMessage(c+d.toString()+"_ago",a)}this.Format=function(d){if("0000-00-00 00:00:00"!=d&&d){d=String2Date(d);var a=d.getTime();a-=6E4*d.getTimezoneOffset();d.setTime(a);d=d.getTime();d=(new Date).getTime()-d;0>d&&(d=0);return 36E5>d?c("N_minute_",d/6E4):864E5>d?c("N_hour_",d/36E5):26784E5>d?c("N_day_",d/864E5):321408E5>d?c("N_month_",d/26784E5):
c("N_year_",d/321408E5)}return""}}function FormatterMap(c){for(var d=[],a=0;a<c.length;a+=2)d[c[a]]=c[a+1];this.Format=function(a){a=d[a];return"undefined"==typeof a?"":a}}function DoubleFormatterMap(c){for(var d=[],a=0;a<c.length;a+=2)d[c[a]]=c[a+1];this.Formatter=new FormatterSame;this.Format=function(a){a=d[a];return"undefined"==typeof a?"":this.Formatter.Format(a)}}function FormatterLabel(c){this.Format=function(d){return c}}
function FormatterPrefix(c,d){this.Format=function(a){return c+(null!=d?d.Format(a):a)}}function FormatterEmptyLabel(c){this.Format=function(d){return"undefined"==typeof d?c:d}}function FormatterSame(){this.Format=function(c){return c}}
function FormatterNumber(c,d,a,e){function h(a){return"number"!=typeof a&&void 0!==a.add&&void 0!==a.mul&&void 0!==a.div||void 0!==a.sign&&void 0!=a.value&&void 0!=a.isSmall}function k(a){return"R"!=PCF.getResultsSet()&&p&&a.toTeX}function m(){var a=c,f=PCF.getCalcPrecision(),e=PCF.getDefaultPrecision();a&&!d&&void 0!==f&&e!=f&&(a+=f-e,0>a&&(a=0),a>PCF.getMaxPrecision()&&(a=PCF.getMaxPrecision()));return a}var p="R"==e?null:new FormatterFormula,q=this;this.Format=function(a){var c=q.FormatSimple(a);
return h(a)&&k(a)?(PCF.requestFormulaUpdate(),p.Format(c)):c};this.FormatSimple=function(c){if(Infinity==c||-Infinity==c)return-Infinity==c?"-":"&#8734;";if(void 0===c)return"";if(h(c))return k(c)?c.toTeX():void 0!==c.toFixed?c.toFixed(m(),PCF.getResultsSet()):c.toString();if("string"===typeof c)return c;if(isNaN(c))return"";c=new Number(c);for(var d=m(),l=0;l<d&&Number(c.toFixed(l).toString())!=c;++l);return a&&Math.abs(c)<Math.pow(10,a)?(d=Array(a+1).join("0"),0>c?"-"+(d+Math.abs(c).toFixed(l)).slice(-(a+
(0<l?l+1:0))):(d+c.toFixed(l)).slice(-(a+(0<l?l+1:0)))):c.toFixed(l)};this.isNumeric=!0}function FormatterPersent(c){this.Format=function(d){return(100*d).toFixed(c)};this.isNumeric=!0}
function FormatterMatrix(c,d,a,e){var h=new FormatterNumber(c,d,a,e);this.Format=function(a){for(var c='<table class="pc-value-matrixout">',d=0;d<a.length;++d){var e=a[d];void 0!==e&&void 0===e.length&&(e=[e]);c+="<tr>";for(var l=0;l<e.length;++l){var f=e[l];c+="<td>";c+=h.Format(f);c+="</td>"}c+="</tr>"}return c+"</table>"}}
function FormatterFormula(){this.Reset=function(){this.data={}};this.Format=function(c){c=this.FormatSimple(c);if(!c||""==c)return"";PCF.requestFormulaUpdate();return'<script type="math/tex">'+c+"\x3c/script>"};this.FormatSimple=function(c){c="object"==typeof c?PCM.getTeX(c):c;return""!=c?c:""}}function FormatterColor(){this.Format=function(c){return'<span class="output-color" style="background-color:#'+c+'" data-value="#'+c+'">#'+c+"</span>"}}
function FormatterLength(){this.Format=function(c){return c&&c.length?c.length:0}}
function FormatterComplexNumber(c,d,a,e){var h=new FormatterNumber(c,d,a,e),k="R"==e?null:new FormatterFormula,m=this;this.Format=function(a){a=m.FormatSimple(a);return k?k.Format(a):a};this.FormatSimple=function(a){if(void 0===a)return"";if(void 0===a.im&&void 0===a.re)return h.FormatSimple(a);var c=h.FormatSimple(a.im);a=h.FormatSimple(a.re);if("0"==c||""==c)return a;"0"==a&&(a="");"-1"===c?c="-":"1"==c&&(c="");""!=a&&"-"!==c.substr(0,1)&&(c="+"+c);return a+c+"i"};this.isNumeric=!0}
function FormatterPolynomial(c,d,a,e){var h=new FormatterNumber(c,d,a,e),k=new FormatterFormula,m=this;this.isNumeric=!1;this.Format=function(a){a=m.FormatSimple(a);return k.Format(a)};this.isNumeric=!1;this.FormatSimple=function(a){for(var c="",d=0;d<a.length;++d){var f=a[d];if(f&&(f=h.FormatSimple(f),"0"!=f)){if(d!=a.length-1){if("-1"==f)f="-";else if("1"==f)f="";else{var e=-1!==f.indexOf("+",1)||-1!==f.indexOf("-",1);f=(e?"(":"")+f+(e?")":"")}f+="x";e=a.length-d-1;1<e&&(f+="^{"+e+"}")}c&&"-"!=
f.substr(0,1)&&(c+="+");c+=f}}return c}};function ValidatorNonempty(){this.Validate=function(c){return""==c?getFormattedMessage("err_must_be_not_empty"):""}}function ValidatorEmail(c){this.Validate=function(c){return-1==c.indexOf("@")?getFormattedMessage("err_invalid_email",c):""}}function ValidatorEqual(c,d){this.Validate=function(a){return c.value!=a?getFormattedMessage("err_must_be_the_same_as",d):""}}
function ValidatorTextSize(c,d){this.Validate=function(a){a=a.length;return a<c?getFormattedMessage("err_must_be_at_least_x_chars_long",c):a>d?getFormattedMessage("err_must_be_less_or_equal_x_chars",d):""}}function ValidatorCharset(c){this.Validate=function(d){for(var a=0;a<d.length;++a){var e=d.substring(a,a+1);if(-1==c.indexOf(e))return getFormattedMessage("err_invalid_symbol",c)}return""}}
function ValidatorComplex(){var c=arguments;this.Validate=function(d){for(var a="",e=0;e<c.length;++e){var h=c[e].Validate(d);""!=h&&(""!=a&&(a+="<br/>"),a+=h)}return a}}
function ValidatorImport(){var c=arguments,d=null,a=0,e=0;this.ParseData=function(h,k){d=null;e=a=0;var m="\r\n";-1==k.search(m)&&(m="\n");k=k.split(m);if(!k.length)return"";if(1<c.length){a:{m=k[0];for(var p=c.length,q=["\t",";",","],l=0;l<q.length;++l){var f=q[l];if(m.split(f).length==p){d=f;break a}}d=null}if(!d)return getFormattedMessage("err_import_cannot_find_separator")}for(m=0;m<k.length;++m)if(p=[],q=k[m],d?p=q.split(d):p[0]=q,++a,p=h.ProcessRow(p,a-1,k.length),""!=p)return p;return""};this.Validate=
function(a){return this.ParseData(this,a)};this.ProcessRow=function(d){for(e=0;e<c.length;++e){var k=c[e];if(k){var h=d[e];k=k.Validate(h);if(""!=k)return getFormattedMessage("err_import_error",a,h,k)}}return""}}function removeInvalidDigits(c,d,a){for(var e=!1,h="",k=0;k<c.length;++k){var m=c.substring(k,k+1);-1=="0123456789+-*/".indexOf(m)?"-"==m?d&&0==k&&(h+=m):"."!=m&&","!=m||!a||0==k||e||(e=!0,h+=m):h+=m}return h}
function ValidatorNumber(c,d){this.Validate=function(a){return""!=a&&removeInvalidDigits(a,c,d)!=a?c&&d?getFormattedMessage("err_invalid_number"):!c&&d?getFormattedMessage("err_invalid_positive_number"):c&&!d?getFormattedMessage("err_invalid_integer_number"):getFormattedMessage("err_invalid_integer_positive_number"):""}}function ValidatorRange(c,d){this.Validate=function(a){a=Number(a);return a<c||a>d?getFormattedMessage("err_range_error",c,d):""}}
function ValidatorFirstAlpha(){this.Validate=function(c){return c.length&&(c=c.substring(0,1),"a"<=c&&"z">=c||"A"<=c&&"Z">=c)?"":getFormattedMessage("err_first_char_must_be_alpha")}}
function ValidatorCalculatorScript(c){this.Prohibited=[];for(var d=1;d<arguments.length;++d)this.Prohibited[d-1]=arguments[d];this.Validate=function(a){a=c+a+"}";for(var d=0;d<this.Prohibited.length;++d){var h=this.Prohibited[d];if(-1!=a.indexOf(h))return getFormattedMessage("err_prohibited_features",h)}try{eval(a)}catch(k){return getFormattedMessage("err_script_compilation_error",k.message)}return""}}
function ValidatorUpload(c){var d=c.toLowerCase().split(",");this.Validate=function(a){if(!a||""==a)return"";var e=a.lastIndexOf(".");if(-1!=e)for(a=a.substr(e+1).toLowerCase(),e=0;e<d.length;++e)if(a==d[e])return"";return getFormattedMessage("err_invalid_upload_extension",c)}}
function ValidatorAce(c){this.Validate=function(d){d=c.editor;var a=d.getSession().getAnnotations();for(h in a){var e=a[h];if(a.hasOwnProperty(h)&&"error"==e.type){var h=Number(e.row)+1;d.scrollToLine(h,!0,!0,function(){});d.gotoLine(h,0,!0);return e.text+" ("+h+")"}}return""}}function ValidatorLookup(c){this.Validate=function(d){if(void 0===c[d]){d=getFormattedMessage;var a="";for(e in c)a+=", "+e+" ("+c[e]+")";var e=a.substr(2);d=d("err_value_out_of_set",e)}else d="";return d}}
function ValidatorNumericArray(c,d,a){var e="0123456789+ ";c&&(e+="i");d&&(e+="-");a&&(e+=",.");this.Validate=function(c){if(""!=c)for(var k=0;k<c.length;++k){var h=c.substring(k,k+1);if(-1==e.indexOf(h))return d||-1==="-".indexOf(h)&&-1==="i".indexOf(h)?a||-1===",.".indexOf(h)&&-1==="i".indexOf(h)?getFormattedMessage("err_invalid_array"):getFormattedMessage("err_invalid_integer_number"):getFormattedMessage("err_invalid_positive_number")}return""}}
function ValidatorRing(c,d,a,e){this.Validate=function(h){if(""==h)return"";try{var k=h.trim();if(!c&&"-"==k.substr(0,1))return getFormattedMessage("err_invalid_positive_number");if(!d&&(-1!=k.indexOf(".")||-1!=k.indexOf(",")))return getFormattedMessage("err_invalid_integer_number");if(!a&&-1!=k.indexOf("i"))return PCL.err_complex_not_allowed;if(!e&&-1!=k.indexOf("/"))return PCL.err_fractions_not_allowed;PCR.parse(h)}catch(m){return m.message}return""}}
function ValidatorArray(c){this.Validate=function(c){c=c.trim();if(""==c)return"";c=c.split(/\s+/);for(var a=0;a<c.length;++a)try{PCR.parse(c[a])}catch(e){return PCL.array_error.replace("%1",a+1)+" "+e.message}return""}};var hideSubmenu={};function SetMenuStyle(c,d,a){document.getElementById(c+"_p").className=a;document.getElementById(c).style.display=d}function ShowSubmenu(c){hideSubmenu[c]&&(hideSubmenu[c]=!1);SetMenuStyle(c,"block","msubitem_s")}function HideSubmenu(c){hideSubmenu[c]=!0;setTimeout('DoHideSubmenu("'+c+'")',300)}function DoHideSubmenu(c){hideSubmenu[c]&&(hideSubmenu[c]=!1,SetMenuStyle(c,"none","msubitem"))};function formatMessage(c){for(var d=new String(c),a=1;a<arguments.length;++a)d=d.replace("%"+a.toString(),arguments[a]);return d}function getFormattedMessage(c){var d;PCL&&(d=PCL[c]);if(void 0===d){var a=document.getElementById(c);a&&(d=a.innerHTML)}if(void 0===d)return"Error message "+c+" is not included by server-side code. Contact site support";for(a=1;a<arguments.length;++a)d=d.replace("%"+a.toString(),arguments[a]);return d}
var lastErrorObject=null,lastErrorObjectBorderColor="",lastErrorObjectColor="",lastErrorMessageBox=null;function showOrClearComplexControlError(c,d,a){d.length?a.ShowError(d,c):a.ClearError(c);return 0==d.length}function showOrClearError(c,d,a){if(d.length)return a&&a.ShowError?a.ShowError(d):showError(c,d,a),!1;a&&a.ClearError?a.ClearError():clearError(c);return!0}
function showError(c,d,a){a=document.getElementById(a?a:c?c.id+"_errmsg":"errmsg");null==a?0<d.length&&alert(d):(lastErrorObject&&clearError(lastErrorObject),c&&(c!=lastErrorObject&&(lastErrorObject=c,lastErrorObjectBorderColor=c.style.borderColor,lastErrorObjectColor=c.style.color,lastErrorMessageBox=a),c.style.borderColor="#FF0000",c.style.color="#FF0000"),a.innerHTML=d,a.style.display="block",a.style.zIndex=1E6,c&&c.parentNode&&(c.parentNode.appendChild(a),a.style.left=c.parentNode.firstChild.nextSibling.offsetLeft,
a.style.top=c.bottom+4))}function clearError(c){lastErrorObject==c&&(lastErrorMessageBox&&(lastErrorMessageBox.style.display="none"),lastErrorObject.style.borderColor=lastErrorObjectBorderColor,lastErrorObject.style.color=lastErrorObjectColor,lastErrorMessageBox=lastErrorObject=null)}
function clearLastError(){lastErrorObject&&(lastErrorMessageBox&&(lastErrorMessageBox.style.display="none"),lastErrorObject.style.borderColor=lastErrorObjectBorderColor,lastErrorObject.style.color=lastErrorObjectColor,lastErrorMessageBox=lastErrorObject=null)}function reportScriptError(c){alert(c)}function htmlencode(c){return c=new String(c),c.replace("<","&lt;").replace(">","&gt;").replace("&","&amp;").replace('"',"&quot;")};function RecordFieldFormatterCSVImportStatus(){var c=new FormatterImage("Error"),d=new FormatterImage("Success");this.Format=function(a,e){return 0==e[a]?d.Format("/img/success.png"):c.Format("/img/error.png")}}function RecordFieldFormatterCSVImportValue(){this.Format=function(c,d){var a="__error_"+c;c=d[c];d[a]&&(c+='<p class="csverror">'+eval(d[a])+"</p>");return c}}
function RecordFieldFormatter(c){this.BaseFormatter=function(){return c};this.Format=function(d,a){return c.Format(a[d])};this.isNumeric=void 0===c.isNumeric?!1:c.isNumeric}function RecordFieldFormatterSubrecord(c){this.Format=function(d,a){return(d=a[d])?d[c]:""}}function RecordFieldFormatterLabelsMap(){var c=new FormatterMap(arguments);this.Format=function(d,a){return c.Format(a[d])}}
function RecordFieldFormatterImagesMap(){var c=new DoubleFormatterMap(arguments);c.Formatter=new FormatterImage("");this.Format=function(d,a){return c.Format(a[d])}}function RecordFieldFormatterLabelsMapArray(c){var d=new FormatterMap(c);this.Format=function(a,c){return d.Format(c[a])}}
function RecordFieldFormatterEditArtefact(c,d){this.Format=function(a,e){a="edit";var h=c;e.fkTranslatedFrom&&(a="translate",h=d);var k="articles";1==e.artefactType?k="calculators":4==e.artefactType&&(k="handbooks");return'<a href="'+("/personal/"+k+"/"+a+"/?id="+e.pkID)+'">'+h+"</a>"}}function RecordFieldFormatterURLPattern(c,d){this.Format=function(a,e){a=d?d.Format(a,e):e[a];return'<a href="'+c.replace(/%1/g,e.pkID)+'">'+a+"</a>"}}
function RecordFieldFormatterURLPatternKey(c,d){for(var a=[],e=2;e<arguments.length;++e)a[a.length]=arguments[e];this.Format=function(e,k){e=d?d.Format(e,k):k[e];for(var h=c,p=0;p<a.length;++p)h=h.replace(new RegExp("%"+(p+1),"g"),k[a[p]]);return'<a href="'+h+'">'+e+"</a>"}}function RecordFieldFormatterPublishedArtefact(c){this.Format=function(d,a){d=c?c.Format(d,a):a[d];return a.published?'<a href="/'+a.pkID+'/">'+d+"</a>":d}}
function RecordFieldFormatterParamScriptURL(c,d,a){this.Format=function(e,h){e=a?a.Format(e,h):h[e];return'<a href="#" onclick="'+c.replace(/%1/g,h[d])+'; return BSPreventDefaultAction( event);">'+e+"</a>"}}
function RecordFieldFormatterParamScriptURLEx(c,d){for(var a=[],e=2;e<arguments.length;++e)a[e-2]=arguments[e];this.Format=function(e,k){e=d?d.Format(e,k):k[e];for(var h=c,p=0;p<a.length;++p)h=h.replace("%"+(p+1).toString(),k[a[p]]?k[a[p]]:"");return'<a href="#" onclick="'+h+';return BSPreventDefaultAction( event);">'+e+"</a>"}}
function RecordFieldFormatterParamScriptURLLabel(c,d,a){this.Format=function(e,h){return'<a href="#" onclick="'+c.replace(/%1/g,h[d])+'; return BSPreventDefaultAction( event);">'+a+"</a>"}}function RecordFieldFormatterLabel(c){this.Format=function(d,a){return c}}function RecordFieldFormatterEmptyLabel(c){this.Format=function(d,a){d=a[d];if("undefined"==typeof d||""==d)d=c;return d}}
function RecordFieldFormatterAlternate(c,d){this.Format=function(a,e){return"undefined"==typeof e[a]?d.Format(c,e):d.Format(a,e)}}function RecordFieldFormatterChangeButtonsM(c,d,a){function e(a,c,d,e,q){return'<button type="button" class="pc-btn-round mdc-button material-icons" title="'+e+'" href="#" onclick="'+c+"."+d+"("+a+'); return BSPreventDefaultAction( event);">'+q+"</button>"}this.Format=function(h,k){h=k.pkID;return e(h,c,"Edit",a,"&#xE254;")+" "+e(h,c,"Delete",d,"&#xE872;")}}
function RecordFieldFormatterChangeButtons(c,d,a){function e(a,c,d,e,q){return'<a role="button" class="btn btn-xs btn-default" title="'+e+'" href="#" onclick="'+c+"."+d+"("+a+'); return BSPreventDefaultAction( event);"><i class="fa fa-'+q+'"></i></a>'}this.Format=function(h,k){h=k.pkID;return e(h,c,"Edit",a,"pencil")+" "+e(h,c,"Delete",d,"times")}}function RecordFieldFormatterProgress(c){this.Format=function(d,a){d=Number(a[d]);return formatMessage(c,100<d?100:d,d)}}
function RecordFieldFormatterMany(){var c=arguments;this.Format=function(d,a){d=c[0];for(var e=1;e<c.length;++e)d=d.replace(new RegExp("%"+e,"g"),a[c[e]]);return d}}function RecordFieldFormatterThumbImage(){this.Format=function(c,d){return'<img src="'+d[c]+'_thumb.png" >'}}function RecordFieldFormatterDropDown_change(c,d,a){c[d]=a}
function RecordFieldFormatterDropDown(c,d,a){this.Format=function(e,h){var k=h[e];e='<select onchange="RecordFieldFormatterDropDown_change('+a.replace("%1",h[d])+",'"+e+"',this.options[this.selectedIndex].value);\">";for(var m in c)e+='<option value="'+m+'"',k==m&&(e+=' selected="selected"'),e+=">"+c[m],e+="</option>";return e+"</seclect>"}}function RecordFieldFormaterIf(c,d,a){this.Format=function(e,h){return c(h)?d.Format(e,h):a.Format(e,h)}}
function RecordFieldFormatterEmpty(){this.Format=function(c,d){return""}}function RecordFieldFormatterSame(){this.Format=function(c,d){return d[c]}}function RecordFieldFormatterKeyValue(c,d){this.Format=function(a,e){a=d?d.Format(a,e):e[a];return c.replace(/%key%/g,e.pkID).replace(/%value%/g,a)}}function RecordFieldFormatterFixedColumn(c,d){this.Format=function(a,e){return d.Format(c,e)}}
function RecordFieldFormatterSequence(c){this.Format=function(d,a){for(var e="",h=0;h<c.length;++h)e+=c[h].Format(d,a);return e}}function RecordFieldFormatterChild(c,d){this.Format=function(a,e){a=e[a];a="string"==typeof a&&"{"==a.substr(0,1)?JSON.parse(a):a;return d?d.Format(c,a):a[c]}};function GetObjectPropertiesCount(c){var d=0,a;for(a in c)++d;return d}
function Recordset(c,d){function a(a,c){var d={},f;for(f in a)c!=f&&(d[f]=a[f]);return d}function e(a){this.IsLess=function(c,d){return c[a]<d[a]}}function h(a){this.IsLess=function(c,d){return c[a]>d[a]}}var k={},m=d?d:"pkID",p=0,q={},l=0;this.QueryContext={from:0,items:10,sortcolumn:1,sortdirection:"ASC"};this.GetTotal=function(){return p};this.LoadFromJson=function(a){a&&""!=a?(a=eval("("+a+")"),a.error?reportScriptError(a.error):Array.isArray(a)?this.LoadFromArray(a):this.LoadFromObject(a)):this.Clear()};
this.LoadFromRecordsetNode=function(a){this.Clear();if(a){for(var c=a.attributes,d=0;d<c.length;++d){var f=c.item(d);this.QueryContext[f.nodeName]=f.nodeValue}c=a.childNodes;for(d=0;d<c.length;++d)if(a=c[d],"record"==a.nodeName){f=a.childNodes;a={};for(var l=0;l<f.length;l++){var e=f[l];if(1==e.nodeType){if(e.firstChild&&1==e.firstChild.nodeType){var k=new Recordset;k.LoadFromRecordsetNode(e.firstChild)}else k=e.firstChild?e.firstChild.nodeValue:"";a[e.nodeName]=k}}this.SetRecord(a)}else"summary"==
a.nodeName&&(p=new Number(a.getAttribute("total")))}else alert("empty node passed into recordset")};this.LoadFromObject=function(a){this.Clear();a.params&&(this.QueryContext=a.params);a.summary&&(p=a.summary.total);(a=a.recordset)&&this.LoadFromArray(a)};this.LoadFromArray=function(a){for(var c=0;c<a.length;++c){var d=a[c],f;for(f in d){var l=d[f];if(!Array.isArray(l))if("object"==typeof l&&l.recordset){var e=new Recordset("");e.LoadFromObject(l);d[f]=e}else"string"==typeof l&&(d[f]=TryString2Date(l));
this.SetRecord(d)}}};this.SaveToJsonArray=function(){var a="",c="[",d;for(d in k){c+=a+"{";var l=k[d];a="";for(var e in l)e==m&&this.IsNew(l[m])||(a=c+=a+'"'+e+'":',c=l[e],c="object"==typeof c&&c.SaveToJson?c.SaveToJson():Value2Json(c),c=a+c,a=",");c+="}";a=","}return c+"]"};this.SaveToJson=function(){var a='{ "params":{',c="",d;for(d in this.QueryContext)a+=c+'"'+d+'":"'+this.QueryContext[d]+'"',c=",";return a+='} , "recordset":'+this.SaveToJsonArray()+"}"};this.GetPrimaryKey=function(a){if(void 0!=
a[m]&&""!=a[m]){isNaN(a[m])?l=a[m]:l<parseInt(a[m])&&(l=parseInt(a[m]));var c="pk"+a[m]}else c="number"===typeof l?++l:this.GetUniquePropertyValue(m,""),a[m]=c,c="pk"+c,q[c]=!0;return c};this.SetRecord=function(a){var c=this.GetPrimaryKey(a);k[c]=a};this.InsertRecord=function(a,c){var d=this.GetPrimaryKey(a),f={},l=!1,e;for(e in k)f[e]=k[e],"pk"+c==e&&(l=!0,f[d]=a);l||(f[d]=a);k=f};this.Exists=function(a){return"undefined"!=typeof k[a]};this.GetRecord=function(a){return k["pk"+a]};this.IsNew=function(a){return 1==
q["pk"+a]};this.RemoveRecord=function(c){var d="pk"+c;k=a(k,d);this.IsNew(c)&&(q=a(q,d))};this.FindByProperty=function(a,c){for(var d in k){var f=k[d];if(f[a]==c)return f}return null};this.GetUniquePropertyValue=function(a,c){var d=1;do var f=c+d++;while(this.FindByProperty(a,f));return f};this.IsEmpty=function(){for(var a in k)return!1;return!0};this.GetRecordArray=function(){var a=[],c;for(c in k)a[a.length]=k[c];return a};this.GetCount=function(){return GetObjectPropertiesCount(k)};this.Clear=
function(){q={};k={}};this.AddNewRecord=function(){var a={};this.SetRecord(a);return a};this.SelectByField=function(a,c){var d=new Recordset("",m),f;for(f in k){var l=k[f];-1!=l[c].indexOf(a)&&d.SetRecord(l)}return d};this.Rollback=function(){var a=q,c;for(c in a)this.RemoveRecord(c.substring(2))};this.SortAsc=function(a){this.Sort(new e(a))};this.SortDesc=function(a){this.Sort(new h(a))};this.Sort=function(a){var c=[],d;for(d in k){var f=0;for(var l=k[d];f<c.length&&!a.IsLess(l,c[f]);++f);c.splice(f,
0,l)}this.Clear();for(f=0;f<c.length;++f)this.SetRecord(c[f])};void 0!=c&&""!=c&&this.LoadFromJson(c)}
function Value2Json(c,d){if(null==c)return"null";var a=typeof c;d=d?"":'"';if("string"==a)return c=new String(c),d+c.replace(/\\/g,"\\\\").replace(/\"/g,'\\"').replace(/\n/g,"\\n")+d;if("object"==a){if(c instanceof Array){d="";for(a=0;a<c.length;++a)d+=","+Value2Json(c[a]);d=c.length?"["+d.substr(1)+"]":"[]"}else if(c instanceof Date)d=d+Date2String(c)+d;else{d="";a=0;for(var e in c)++a,d+=',"'+e+'":'+Value2Json(c[e]);d=a?"{"+d.substr(1)+"}":"{}"}return d}return"undefined"==a?d+d:c};function RecordsetHeader(){this.Columns={};this.Size=0;this.AddColumn=function(c,d,a,e,h,k){var m={};m.name=c;m.dispname=d;m.formatter=a;m.description=e;m.chartKind=h;m.visible=!0;m.interpolate=k?k:"cardinal";this.Columns[c]=m;this.Size++;return m};this.RestoreColumns=function(){if(this.OriginalColumns){this.Columns={};this.Size=0;for(var c in this.OriginalColumns)this.Columns[c]=this.OriginalColumns[c],this.Size++}};this.CloneColumn=function(c,d,a,e){if(!this.OriginalColumns){this.OriginalColumns=
{};for(var h in this.Columns)this.OriginalColumns[h]=this.Columns[h]}c=this.Columns[c];void 0!==c&&(a={name:d,dispname:void 0===a?c.dispname:a,formatter:c.formatter,description:void 0===e?c.description:e,chartKind:c.chartKind,visible:c.visible},void 0===this.Columns[d]&&this.Size++,this.Columns[d]=a)};this.GetLabel=function(c){var d=this.Columns[c];c=d.dispname;(d=d.description)&&(c='<span title="'+d+'">'+c+"</span>");return c};this.GetFormatter=function(c){return this.Columns[c]?this.Columns[c].formatter:
null};this.HasColumn=function(c){return"undefined"!=typeof this.Columns[c]}}
function RecordsetRenderer(c,d){function a(a,d,e){return"<li "+d+'><a href="#" id="'+("nav_"+c+"_")+a+'">'+e+"</a></li>"}function e(a,c,d){if(d&&(a=document.getElementById(a)))for(var e=a.getElementsByTagName("a"),l=0;l<e.length;++l){var f=e[l];a=f.id.replace(c,"");BSAdviseEvent(f,"click",d,a)}}var h=this;h.table_class="table table-striped";this.TableWrapper=function(a){return'<div class="table" ><table class="'+h.table_class+'">'+a+"</table></div>"};this.RenderMessage=function(a,d){var e=h.CreateTableHeader("",
"",!1);e+='<tr><td colspan="'+h.Header.Size+'">'+d+"</td></tr>";e+=h.GetEmptyLines(a-1);document.getElementById(c).innerHTML=h.TableWrapper(e)};this.GetEmptyLines=function(a){return""};this.AddColumn=function(a,c,d,e,l){h.Header.AddColumn(a,c,d,e,l)};this.AdviseNavigation=function(a,d){e("navigation_div_"+c,"nav_"+c+"_",d)};this.Render=function(a,d,p){var k=h.CreateTable(a,d?!0:!1,p?!0:!1);document.getElementById(c).innerHTML=k;p&&h.AdviseNavigation(a,p);d&&e(h.GetHeaderId(),"col_"+c+"_",d);PCF.requestFormulaUpdate(!1)&&
require(["mathjax"],function(a){a.Hub.Queue(["Typeset",a.Hub])})};this.CreateTable=function(a,c,d){c=h.CreateTableHeader(a.QueryContext.sortcolumn,a.QueryContext.sortdirection,c);c+=h.CreateTableData(a);d&&(c+=h.CreateNavigation(a));return h.TableWrapper(c)};this.TableHeader=function(a){return"<th>"};this.CreateTableHeader=function(a,d,e){var k='<thead><tr id="'+h.GetHeaderId()+'" >',l;for(l in h.Header.Columns)if(h.Header.Columns[l].visible){var f="th_notsorted";l==a&&(f="ASC"==d?"th_sortedasc":
"th_sorteddesc");k+=h.TableHeader(l);e&&(k+='<a href="" class="'+f+'" id="'+("col_"+c+"_")+l+'">');k+=h.Header.GetLabel(l);e&&(k+="</a>");k+="</th>"}return k+"</tr></thead>"};this.CreateTableData=function(a){for(var c=1,d=a.GetRecordArray(),e="<tbody>",l=0;l<d.length;l++)e+=h.CreateRowData(c%2?"tr_odd":"tr_even",d[l]),c++;c=a.QueryContext.items;0==c&&(c=a.GetCount());e+=h.GetEmptyLines(c-d.length);return e+"</tbody>"};this.TableData=function(a){return'<td class="td_'+a+'">'};this.CreateRowData=function(a,
c){a="<tr>";for(var d in h.Header.Columns)if(h.Header.Columns[d].visible){a+=h.TableData(d);var e=h.Header.GetFormatter(d);a=e?a+e.Format(d,c):a+c[d];a+="</td>"}return a+"</tr>"};this.GetNavigationId=function(){return"nav_"+c+"_"};this.GetHeaderId=function(){return"header_"+c};this.CreateNavigation=function(d){var e=(e=Number(d.QueryContext.items))?Math.floor((Number(d.QueryContext.from)+1)/e):0;var k=Number(d.QueryContext.items);d=k?Math.floor(d.GetTotal()/k)+(d.GetTotal()%k?1:0):0;if(1>=d)return"";
k=BSGetElementSize(document.getElementById(c));var q=500<=k.x?10:300<=k.x?5:3,l='<tfoot><tr><td colspan="'+h.Header.Size+'">';l+='<nav class="text-center"><ul class="pagination" id="navigation_div_'+c+'">';var f=e-q/2;k=e+q/2;0>f?(f=0,k=(q>=d?d:q)-1):k>d-1&&(k=d-1,f=q>d?0:d-q);q=l;for(l=a(0<f?f-1:0,0==e?'class="disabled"':"",'<i class="fa fa-chevron-left"></i>');f<=k;)l+=a(f,e==f?'class="active"':"",f+1),f++;l+=a(f==d?d-1:f,e==d-1?'class="disabled"':"",'<i class="fa fa-chevron-right"></i>');return q+
l+"</ul></nav></td></tr></tfoot>"};this.Header=new RecordsetHeader;this.Show=function(){return document.getElementById(c).parentNode.style.display="block"};this.Hide=function(){return document.getElementById(c).parentNode.style.display="none"};this.ShowTable=function(){return document.getElementById(c).style.display="block"};this.HideTable=function(){return document.getElementById(c).style.display="none"}}
function AjaxTableNoEmptyRowsRenderer(c,d){this.inheritFrom=RecordsetRenderer;this.inheritFrom(c,d);this.GetEmptyLines=function(a){return""}}
function RecordsetRendererM(c,d){this.inheritFrom=RecordsetRenderer;this.inheritFrom(c,d);var a=this;this.TableWrapper=function(a){return'<div class="pc-data-table" ><table>'+a+"</table></div>"};this.TableHeader=function(c){c=a.Header.Columns[c];return'<th class="'+(c.formatter&&c.formatter.isNumeric?"pc-align-r":"pc-align-l")+'">'};this.TableData=function(c){c=a.Header.Columns[c];return'<td class="'+(c.formatter&&c.formatter.isNumeric?"pc-align-r":"pc-align-l")+'">'};this.AdviseNavigation=function(c,
d){var e=document.getElementById(a.GetNavigationId());if(e){var h=$(e),p=h.find(".mdc-select");e=h.find(".pc-button-prev");h=h.find(".pc-button-next");p.change(function(){var a=Number(p.val()),l=c.QueryContext.from;d(l-l%a,a)});e.on("click",function(){d(c.QueryContext.from-c.QueryContext.items,c.QueryContext.items)});h.on("click",function(){d(c.QueryContext.from+c.QueryContext.items,c.QueryContext.items)})}};this.CreateNavigation=function(c){var d=c.QueryContext.items,e=c.QueryContext.from;c=c.GetTotal();
if(!c)return"";var m=[5,10,20,50,100],p='<tfoot><tr><td colspan="'+a.Header.Size+'">';p+='<div class="pc-paging" id="'+a.GetNavigationId()+'">';p+='<span class="pc-paging-items">'+PCL.items_per_page+": </span>";p+='<select class="mdc-select">';for(var q=0;q<m.length;++q)p+='<option value="'+m[q]+'"'+(m[q]==d?" selected":"")+">"+m[q]+"</option>";d=e+d<c?e+d:c;p=p+"</select>"+('<span class="pc-paging-current">'+PCL.x_of_y.replace("%1",e+1+" - "+d).replace("%2",c)+"</span>");p+='<button type="button" class="pc-button-prev mdc-button" title="'+
PCL.prev_page+'"'+(e?"":" disabled")+'><i class="material-icons">chevron_left</i></button>';p+='<button type="button" class="pc-button-next mdc-button material-icons" title="'+PCL.next_page+'"'+(d<c?"":" disabled")+'><i class="material-icons">chevron_right</i></button>';return p+"</div></td></tr></tfoot>"}};function CommentFormHandler(c,d){function a(){""==e.Dialog.message.GetValue()?$(e.Dialog.send.GetElement()).attr("disabled",""):$(e.Dialog.send.GetElement()).removeAttr("disabled")}var e=this;this.updater=d?d:function(){};var h=null!=d;this.isRegistered=function(){return h};this.setTable=function(a){e.table=a};this.prepare=function(a){BSMakePOSTRequest("/service/comments/prepare/",{OnResponse:function(c){a(c.id)}},{message:e.Dialog.message.GetValue(),subscribe:e.Dialog.notify.GetValue()})};this.onchanged=
function(a){"notify"==a&&(e.Dialog.progress.Show(),e.isRegistered()?(a=e.Dialog.notify.GetValue(),BSMakePOSTRequest("/service/comments/tracker/",{OnResponse:function(){e.Dialog.progress.Hide()}},{op:a?1:0,id:e.Dialog.messagebox.GetValue()})):e.prepare(function(a){document.location.href=c+"&prepost="+a}))};this.initdialog=function(c){this.Dialog=c;e.Dialog.progress.Hide();a();$(e.Dialog.message.GetElement()).bind("input propertychange",function(){a()})};this.oncommand=function(a){};this.onkeypressed=
function(a,c){return!0};this.Send=function(){""!=e.Dialog.message.GetValue()&&e.Dialog.message.Validate()&&(e.Dialog.progress.Show(),e.table.attachUpdateListener(function(){e.Dialog.progress.Hide();e.updater()}),BSMakePOSTRequest("/service/comments/add/",{OnResponse:function(){e.table.Reload();e.Dialog.message.SetValue("")}},{id:e.Dialog.messagebox.GetValue(),message:e.Dialog.message.GetValue(),parent:0}))};this.Delete=function(a){e.Dialog.progress.Show();BSMakePOSTRequest("/service/comments/spamcontrol/",
{OnResponse:function(){e.Update()}},{id:a,op:"delete"})};this.Update=function(){e.Dialog.progress.Show();e.table.Reload();e.table.attachUpdateListener(function(){e.Dialog.progress.Hide();e.updater()})};this.LoginAndSend=function(a){""!=e.Dialog.message.GetValue()&&e.Dialog.message.Validate()&&(a?a.Show(e.Dialog.messagebox.GetValue(),e.Dialog.message.GetValue(),e.Dialog.notify.GetValue(),c,function(){e.Update();e.Dialog.message.SetValue("")}):(e.Dialog.progress.Show(),e.prepare(function(a){document.location.href=
c+"&prepost="+a})))}}
function IdentityCommentHandler(){var c=this;this.onchanged=function(d){"user_or_not"==d&&c.switchTabs()};this.isAnon=function(){return"anon"==c.Dialog.user_or_not.GetValue()};this.switchTabs=function(){c.isAnon()?(c.Dialog.anon.Show(),c.Dialog.user.Hide()):(c.Dialog.anon.Hide(),c.Dialog.user.Show())};this.Show=function(d,a,e,h,k){c.message=a;c.messagebox=d;c.subscribe=e;c.refresh_captcha();c.onsuccess=k;c.url=h;c.Dialog.Show()};this.initdialog=function(d){this.Dialog=d;c.switchTabs();c.Dialog.progress.Hide()};
this.refresh_captcha=function(){var d=c.Dialog.code.GetElement();document.getElementById(d.id+"_captcha_image").src="/captcha/?new="+Math.random()};this.loginAndDo=function(d,a){a=c.url+"&prepost="+a;"send"===d?(d=$('<form action="'+a+'" method="post"></form>'),d.append('<input type="hidden" name="login_useremail" value="'+c.Dialog.login_useremail.GetValue()+'" />'),d.append('<input type="hidden" name="login_userpassword" value="'+c.Dialog.login_userpassword.GetValue()+'" />'),$(document.body).append(d),
d.submit()):window.location.href="/service/login/other/?operation="+d+"&pageURL="+encodeURIComponent(a)};this.oncommand=function(d){clearLastError();if("cancel"==d)c.Dialog.Hide();else if(c.isAnon())c.Dialog.code.Validate()&&c.Dialog.anon_name.Validate()&&(c.Dialog.progress.Show(),BSMakePOSTRequest("/service/comments/add/",{OnResponse:function(){c.onsuccess();c.Dialog.progress.Hide();c.Dialog.Hide()},OnError:function(a){c.Dialog.progress.Hide();c.Dialog.code.ShowError(a);c.refresh_captcha()}},{id:c.messagebox,
message:c.message,parent:0,captcha:c.Dialog.code.GetValue(),sender:c.Dialog.anon_name.GetValue()}));else if("send"!=d||c.Dialog.login_useremail.Validate()&&c.Dialog.login_userpassword.Validate())c.Dialog.progress.Show(),BSMakePOSTRequest("/service/comments/prepare/",{OnResponse:function(a){c.loginAndDo(d,a.id)}},{message:c.message,subscribe:c.subscribe})};this.onkeypressed=function(c,a){return!0}}
function CommentsRenderer(c,d){function a(a,c){return'<p class="'+a+'">'+c+"</p>"}function e(a,c){return'<span class="'+a+'">'+c+"</span>"}this.inheritFrom=RecordsetRendererM;this.inheritFrom(c,d);this.table_class="table";var h=this;this.GetEmptyLines=function(a){return""};this.CreateTableHeader=function(a,c,d){return""};this.CreateRowData=function(c,d){c='<tr><td rowspan=2 class="author_info">';c=0==d.role?c+this.RenderAnonimousInfo(d):c+a("photo",h.Header.GetFormatter("photo")?h.Header.GetFormatter("photo").Format("photo",
d):d.photo);c=c+'</td><td class="comment_created">'+e("nick",h.Header.GetFormatter("nickname")?h.Header.GetFormatter("nickname").Format("nickname",d):d.nickname);h.Header.GetFormatter("spamDelete")&&(c+='<span class="spam_control">',h.Header.GetFormatter("spamDelete")&&(c+=h.Header.GetFormatter("spamDelete").Format("spamDelete",d)),c+="</span>");c+=e("comment_posted",h.Header.GetFormatter("posted")?h.Header.GetFormatter("posted").Format("posted",d):d.posted);c=c+'</td></tr><tr class="comment_data"><td class="message">'+
d.message;return c+"</td></tr>"};this.RenderAnonimousInfo=function(c){c.photo="/img/none.png";return a("photo",h.Header.GetFormatter("photo")?h.Header.GetFormatter("photo").Format("photo",c):c.photo)}}
function Commenter(c,d){this.OuterDivID=c;this.URL=d;this.SetTable=function(a){this.Comments=a};this.initdialog=function(a){this.Dialog=a};this.onchanged=function(a){};this.onkeypressed=function(a,c){return!0};this.oncommand=function(a){clearLastError();"ok"==a?this.Dialog.Validate()&&this.Send():"cancel"==a&&this.Discard()};this.Send=function(){if(this.Dialog.Validate()){this.Dialog.Busy();var a=BSMakePOSTRequest,c=this.URL,d=this.Dialog,k={id:d.comment_id.GetValue(),message:d.message_text.GetValue(),
parent:d.parent.GetValue()};void 0!=d.captcha&&(k.captcha=d.captcha.GetValue());void 0!=d.sender&&(k.sender=d.sender.GetValue());a(c,this,k)}};this.Discard=function(){document.getElementById(this.OuterDivID).style.display="none"};this.OnResponse=function(a){this.Dialog.Free();this.ResetCaptcha();this.Dialog.message_text.SetValue("");this.Comments.Reload()};this.OnError=function(a){this.Dialog.Free();this.ResetCaptcha();this.Dialog.ShowError(null,a);return!0};this.ResetCaptcha=function(){commenter.Dialog.captcha&&
(commenter.Dialog.captcha.SetValue(""),document.getElementById(this.Dialog.GetElement().id+"_captcha_image").src="/captcha/?"+Math.random())}}
function FormTrackerHandler(c){this.Dialog=null;this.URL=c;this.onchanged=function(c){c=BSMakePOSTRequest;var a=this.URL;var d=this.Dialog;d={id:d.item_id.GetValue(),op:d.op.GetValue()};c(a,this,d)};this.initdialog=function(c){this.Dialog=c};this.oncommand=function(c){clearLastError()};this.onkeypressed=function(c,a){return!0};this.OnResponse=function(c){}}
function Requester(c){this.URL=c;this.Request=function(c){BSMakePOSTRequest(this.URL,this,{id:c})};this.Close=function(c){this.Request(c)};this.OnResponse=function(c){alert("Done")}}function Trigger(c){this.URL=c;this.Request=function(c){BSMakePOSTRequest(this.URL,this,{id:c})};this.Trigger=function(c){this.Request(c)};this.OnResponse=function(c){alert("Done")}};var PCI="object"==typeof PCI?PCI:function(){function c(){this.match=function(c,a,e){if("object"==typeof e){switch(e.t){case "&":c=this.matchAnd(c,a,e);break;case "!":c=this.matchNot(c,a,e);break;case "|":c=this.matchOneOf(c,a,e);break;case "->":c=this.matchReference(c,a,e);break;case "*":c=this.matchArray(c,a,e);break;case "+":c=this.matchArray1(c,a,e);break;default:throw"Invalid rule type '"+e.t+"'";}return c}return this.matchExactString(c,a,e)};this.matchAnd=function(c,a,e){for(var d=[],k=c.getPos(),
m=0;m<e.v.length;++m){var p=this.match(c,a,e.v[m]);if(!p)return c.setPos(k),null;d[m]=p}return new PCI.resultArray(d,e)};this.matchOneOf=function(c,a,e){for(var d=0;d<e.v.length;++d){var k=this.match(c,a,e.v[d]);if(k)return k}return null};this.matchArray=function(c,a,e){for(var d,k=[];d=this.match(c,a,e.v);)k[k.length]=d;return new PCI.resultArray(k,e)};this.matchArray1=function(c,a,e){for(var d,k=[];d=this.match(c,a,e.v);)k[k.length]=d;return 0==k.length?null:new PCI.resultArray(k,e)};this.matchNot=
function(c,a,e){var d=c.getPos();a=this.match(c,a,e.v);c.setPos(d);return a?null:(c=c.get())?new PCI.resultString(c,e):null};this.matchReference=function(c,a,e){var d=c.getPos();return(c=this.match(c,a,a[e.v]))?new PCI.resultReference(c,e.v,d):null};this.matchExactString=function(c,a,e){a="";for(var d=c.getPos(),k=0;k<e.length;++k){var m=c.get();if(!m||m!=e.charAt(k))return c.setPos(d),null;a+=m}return new PCI.resultString(a,e)}}return{resultString:function(c){this.value=c;this.getValue=function(){return this.value};
this.__enum=function(){return[this.value]};this.__clone=function(a){return new PCI.resultString(a[0])}},resultReference:function(c,a,e){this.value=c;this.pos=e;this.getPos=function(){return e};this.getValue=function(){return this.value.getValue()};this.__enum=function(){return[this.value]};this.__name=a;this.__clone=function(a){return new PCI.resultReference(a[0],this.__name)}},resultArray:function(c){this.length=c.length;for(var a=0;a<c.length;++a)this[a]=c[a];this.getValue=function(){for(var a=
"",c=0;c<this.length;++c){var d=this[c];var m=typeof d;d="number"==m?d.toString():"string"==m||"undefined"==m?d:d.getValue?d.getValue():d;a+=d}return a};this.__enum=function(){for(var a=[],c=0;c<this.length;++c)a[c]=this[c];return a};this.__clone=function(a){return new PCI.resultArray(a)}},checkrules:function(c){for(var a in c)if(!PCI.checkrule(c[a],c))return!1;return!0},checkrule:function(c,a){if("object"!=typeof c)return!0;if(c instanceof Array)for(var d=0;d<c.length;++d){if(!PCI.checkrule(c[d],
a))return!1}else if("->"==c.t&&!a[c.v])return!1;return PCI.checkrule(c.v,a)},match:function(d,a,e){return(new c).match(d,a,e)},parserLine:function(c){var a=0;this.get=function(){for(;a!=c.length;)if(ch=c.charAt(a++),"\t"!=ch&&"\r"!=ch&&" "!=ch)return ch;return 0};this.remainder=function(){return c.substr(a)};this.setPos=function(c){a=c};this.getPos=function(c){return a}},simpleStream:function(c){var a=0;this.get=function(){for(;a!=c.length;)return ch=c.charAt(a++);return 0};this.remainder=function(){return c.substr(a)};
this.setPos=function(c){a=c};this.getPos=function(c){return a}}}}();var PCM="object"==typeof PCM?PCM:function(){function c(a){return"undefined"!=typeof a}function d(){for(var a=[],c=this.args,d=0;d<c.length;++d)a[d]=c[d];return a}function a(){var a=[];c(this.arg1)&&(a[a.length]=this.arg1);c(this.arg2)&&(a[a.length]=this.arg2);c(this.arg3)&&(a[a.length]=this.arg3);return a}function e(a,c){if(PCM.getValue(a.arg2)==PCM.getValue(c))return a.arg1;if(PCM.isNumber(a.arg1)&&PCM.isNumber(c))return PCM.division(PCM.multiplication([a.arg1,c]),a.arg2)}function h(a,c){if(PCM.isNumber(a)&&
PCM.isNumber(c))return PCM.getNumber(a)*PCM.getNumber(c);var d=PCM.getValue(a),f=PCM.getValue(c);if("0"==d||"0"==f)return 0;if("1"==d)return c;if("1"==f)return a;if(a instanceof PCM.multiplication_fn&&c instanceof PCM.multiplication_fn)return a=a.__enum(),PCM.multiplication(a.concat(c.__enum()));if(a instanceof PCM.division_fn&&c instanceof PCM.division_fn)return PCM.getValue(a.arg1)==PCM.getValue(c.arg2)&&PCM.getValue(c.arg1)==PCM.getValue(a.arg2)?1:PCM.getValue(a.arg1)==PCM.getValue(c.arg2)?PCM.division(c.arg1,
a.arg2):PCM.getValue(a.arg2)==PCM.getValue(c.arg1)?PCM.division(a.arg1,c.arg2):PCM.division(PCM.multiplication([a.arg1,c.arg1]),PCM.multiplication([a.arg2,c.arg2]));if(a instanceof PCM.power_fn&&c instanceof PCM.power_fn&&PCM.getValue(a.arg1)==PCM.getValue(c.arg1))return PCM.power(a.arg1,PCM.sum([a.arg2,c.arg2]));if(a instanceof PCM.division_fn)return e(a,c);if(c instanceof PCM.sqrt_fn&&a instanceof PCM.sqrt_fn)return PCM.sqrt(PCM.multiplication([a.arg1,c.arg1]));if(c instanceof PCM.division_fn)return e(c,
a);if(d==f)return PCM.power(a,2)}function k(a,c){var d=c?"\\right)":"";return(c?"\\left(":"")+PCM.getTeX(a)+d}function m(a,c){var d=c?")":"";return(c?"(":"")+PCM.getMath(a)+d}function p(a){return m(a,a instanceof PCM.sum_fn||a instanceof PCM.minus_fn)}function q(a){return m(a,a instanceof PCM.power_fn||a instanceof PCM.sum_fn||a instanceof PCM.multiplication_fn||a instanceof PCM.division_fn||a instanceof PCM.minus_fn)}function l(a,c){return PCM.getComplexity(a)-PCM.getComplexity(c)}function f(a,c){return PCM.isConstant(a)?
0:"x"==PCM.getValue(a)?c:PCM.multiplication([c,new PCM.derivative_fn(a)])}function n(c,d,f,l){c.arg1=d;c.immediatepowersign=!0;c.name=f;c.__enum=a;c.getValue=function(){return this.name+"("+PCM.getValue(this.arg1)+")"};c.__clone=function(a){return l(a[0])};c.getTeX=function(){return"\\"+this.name+"\\left("+PCM.getTeX(this.arg1)+"\\right)"};c.getMath=function(){return this.name+"("+PCM.getMath(this.arg1)+")"}}function t(a){a.getTeX=function(){return this.name+"\\left("+PCM.getTeX(this.arg1)+"\\right)"}}
function w(){var a=this;this.__translate=function(c){if(c instanceof PCI.resultString)return c.getValue();if(c instanceof PCI.resultReference){var d=a[c.__name];if(d)return d(c.value)}throw"Could not translate: "+PCM.getValue(c);};this.func=function(c){var d=PCM.getValue(c[0]);c=a.__translate(c[2]);var f={sin:new PCM.sin_fn(c),cos:new PCM.cos_fn(c),tan:new PCM.tan_fn(c),cot:new PCM.cot_fn(c),tg:new PCM.tan_fn(c),ctg:new PCM.cot_fn(c),th:new PCM.tanh_fn(c),cth:new PCM.coth_fn(c),tanh:new PCM.tanh_fn(c),
coth:new PCM.coth_fn(c),ch:new PCM.cosh_fn(c),sh:new PCM.sinh_fn(c),cosh:new PCM.cosh_fn(c),sinh:new PCM.sinh_fn(c),sec:new PCM.sec_fn(c),cosec:new PCM.csc_fn(c),sech:new PCM.sech_fn(c),csch:new PCM.csch_fn(c),sqrt:new PCM.sqrt_fn(c),exp:new PCM.power_fn(PCM.exp(),c),ln:new PCM.ln_fn(c),lg:new PCM.lg_fn(c),lb:new PCM.lb_fn(c),arcsin:new PCM.arcsin_fn(c),arccos:new PCM.arccos_fn(c),arctan:new PCM.arctan_fn(c),arccot:new PCM.arccot_fn(c),arctg:new PCM.arctan_fn(c),arcctg:new PCM.arccot_fn(c),arcsec:new PCM.arcsec_fn(c),
arccosec:new PCM.arccosec_fn(c),abs:new PCM.abs_fn(c),sgn:new PCM.sign_fn(c),sign:new PCM.sign_fn(c)};return f[d]?f[d]:new PCM.function_fn(c,d)};this.funcnum=function(c){var d=PCM.getValue(c[0]),f=PCM.getNumber(c[1]);c=a.__translate(c[3]);return{root:new PCM.root_fn(c,f),log:new PCM.logn_fn(c,f)}[d]};this.factor=function(c){return 1==("-"==PCM.getValue(c[0])?-1:1)?a.__translate(c[1]):PCM.minus(a.__translate(c[1]))};this.value=function(c){switch(c.__name){case "func":case "pi":case "exponenta":case "variable":case "funcnum":return a.__translate(c);
case "paren expression":return a.__translate(c.value[1])}return PCM.getNumber(c)};this.variable=function(a){return new PCM.variable_fn};this.pi=function(a){return new PCM.pi_fn};this.exponenta=function(a){return PCM.exp()};this.power=function(c){if(0==c[1].length)return a.__translate(c[0]);for(var d=[],f=c[1],l=0;l<f.length;++l)d[d.length]=a.__translate(f[l][1]);d=PCM.multiplication(d);c=a.__translate(c[0]);return new PCM.power_fn(c,d)};this.product=function(c){if(0==c[1].length)return a.__translate(c[0]);
var d=[a.__translate(c[0])],f=[];c=c[1];for(var l=0;l<c.length;++l){var e=c[l];"*"==PCM.getValue(e[0])?d[d.length]=a.__translate(e[1]):"/"==PCM.getValue(e[0])&&(f[f.length]=a.__translate(e[1]))}return f.length?(d=1<d.length?new PCM.multiplication_fn(d):d[0],f=1<f.length?new PCM.multiplication_fn(f):f[0],new PCM.division_fn(d,f)):1==d.length?d[0]:new PCM.multiplication_fn(d)};this.sum=function(c){if(0==c[1].length)return a.__translate(c[0]);var d=[a.__translate(c[0])];c=c[1];for(var f=0;f<c.length;++f){var l=
c[f];d[d.length]=a.__translate(l[1]);"-"==PCM.getValue(l[0])&&(d[d.length-1]=new PCM.minus_fn(d[d.length-1]))}return 1==d.length?d[0]:new PCM.sum_fn(d)};this.expression=function(c){return a.__translate(c)}}return{Complex:function(a,c){void 0===c?(this.im=0,void 0===a?this.re=void 0:"number"===typeof a?this.re=a:"string"===typeof a?(a=a.replace(/\s/g,""),this.re=parseFloat(a),c=a.substring(1).search(/[\+-]/),-1!==c?(a=a.substring(c+1),this.im="+i"==a?1:"-i"==a?-1:parseFloat(a)):"i"==a.substr(a.length-
1)&&(this.im="i"==a?1:"-i"==a?-1:this.re,this.re=0)):void 0!==a.re&&void 0!==a.im?(this.re=a.re,this.im=a.im):this.re=a):(this.re=a,this.im=c)},isNumber:function(a){return"number"==typeof a},isConstant:function(a){if("string"==typeof a||"number"==typeof a)return!0;if(a instanceof PCM.variable_fn)return!1;a=a.__enum();for(var c=0;c<a.length;++c)if(!PCM.isConstant(a[c]))return!1;return!0},getNumber:function(a){var c=typeof a;return"number"==c?a:"string"==c?Number(a):Number(a.getValue())},getValue:function(a){var c=
typeof a;return"number"==c?new String(a):"string"==c||"undefined"==c?a:a.getValue?a.getValue():a},getTeX:function(a){var c=typeof a;return"number"==c?new String(a):"string"==c||"undefined"==c?a:a.getTeX?a.getTeX():a},getMath:function(a){var c=typeof a;return"number"==c?new String(a):"string"==c||"undefined"==c?a:a.getMath?a.getMath():a},getComplexity:function(a){var c=1,d=typeof a;if("object"==d||a.__enum)if(a instanceof PCM.variable_fn)c+=3;else for(c+=1,a instanceof PCM.division_fn&&(c+=1),a instanceof
PCM.power_fn&&(c="number"==typeof a||"object"==typeof a&&a.arg1 instanceof PCM.variable_fn?c+1:c+2),a=a.__enum(),d=0;d<a.length;++d)c+=PCM.getComplexity(a[d]);else"number"==d&&(0>a&&(c+=1),a!=Math.round(a)&&(c+=1));return c},getNod:function(a,c){a=0>a?-a:a;for(c=0>c?-c:c;a*c;)a>=c?a%=c:c%=a;return a+c},getMultipliers:function(a){if(a instanceof PCM.multiplication_fn)return a.__enum();if(a instanceof PCM.minus_fn){var c=PCM.getMultipliers(a.arg1);c[c.length]=-1;return c}if(a instanceof PCM.power_fn){c=
PCM.getMultipliers(a.arg1);for(var d=[],f=0;f<c.length;++f)d[d.length]=PCM.power(c[f],a.arg2);return d}return[a]},calculate:function(a,c){return PCM.isNumber(a)?a:a.calculate(c)},division_fn:function(c,d){this.arg1=c;this.arg2=d;this.__enum=a;this.getValue=function(){return"("+PCM.getValue(this.arg1)+")/("+PCM.getValue(this.arg2)+")"};this.getTeX=function(){return"\\frac{"+PCM.getTeX(this.arg1)+"}{"+PCM.getTeX(this.arg2)+"}"};this.getMath=function(){var a=p(this.arg1)+"/";var c=this.arg2;c=m(c,c instanceof
PCM.sum_fn||c instanceof PCM.multiplication_fn||c instanceof PCM.division_fn||c instanceof PCM.minus_fn);return a+c};this.getDerivative=function(){return PCM.division(PCM.sum([PCM.multiplication([PCM.derivative(this.arg1),this.arg2]),PCM.minus(PCM.multiplication([this.arg1,PCM.derivative(this.arg2)]))]),PCM.power(this.arg2,2))};this.__clone=function(a){return PCM.division(a[0],a[1])};this.calculate=function(a){return PCM.calculate(this.arg1,a)/PCM.calculate(this.arg2,a)}},division:function(a,c){if(a instanceof
PCM.division_fn&&c instanceof PCM.division_fn)return PCM.division(PCM.multiplication([a.arg1,c.arg2]),PCM.multiplication([a.arg2,c.arg1]));if(a instanceof PCM.division_fn)return c=PCM.division(a.arg1,PCM.multiplication([a.arg2,c]));if(c instanceof PCM.division_fn)return PCM.division(PCM.multiplication([a,c.arg2]),c.arg1);for(var d=PCM.getMultipliers(a),f=PCM.getMultipliers(c),l=0;l<d.length;++l)for(var e=0;e<f.length;++e){a=d[l];c=f[e];if(PCM.getValue(a)==PCM.getValue(c))f[e]=1,d[l]=1;else if(PCM.isNumber(a)&&
PCM.isNumber(c)&&a==Math.round(a)&&c==Math.round(c)){a=PCM.getNumber(a);c=PCM.getNumber(c);var n=PCM.getNod(a,c);f[e]=c/n;d[l]=a/n}else continue;break}a=PCM.multiplication(d);c=PCM.multiplication(f);d=PCM.isNumber(a);f=PCM.isNumber(c);return c=d&&0==PCM.getNumber(a)?0:f&&1==PCM.getNumber(c)?a:new PCM.division_fn(a,c)},multiplication:function(a){for(var c,d=[],f=!1,l=0;l<a.length;++l)for(var e=PCM.getMultipliers(a[l]),n=0;n<e.length;++n){var q=e[n];if(-1==q)f=!f;else{for(var k=!1,m=0;m<d.length;++m)if(c=
h(d[m],q),"undefined"!=typeof c){d[m]=c;k=!0;break}k||(d[d.length]=q)}}c=1==d.length?d[0]:0==d.length?1:new PCM.multiplication_fn(d);return f?PCM.minus(c):c},multiplication_fn:function(a){this.args=a;this.__enum=d;this.sorted=!1;this.sort=function(){this.args.sort(l)};this.getValue=function(){this.sort();for(var a="",c=0;c<this.args.length;++c)a=a+"*"+PCM.getValue(this.args[c]);return a.substring(1)};this.getTeX=function(){this.sort();for(var a="",c="",d=0;d<this.args.length;++d)a=a+c+" ",c=this.args[d],
c=k(c,c instanceof PCM.sum_fn||c instanceof PCM.minus_fn),a+=c,c="\\cdot";return a};this.getMath=function(){this.sort();for(var a="",c="",d=0;d<this.args.length;++d)a=a+c+p(this.args[d]),c="*";return a};this.__clone=function(a){return PCM.multiplication(a)};this.getDerivative=function(){for(var a=[],c=0;c<this.args.length;++c){for(var d=[],f=0;f<this.args.length;++f)d[d.length]=c==f?PCM.derivative(this.args[f]):this.args[f];a[a.length]=PCM.multiplication(d)}return PCM.sum(a)};this.calculate=function(a){for(var c=
1,d=0;d<this.args.length;++d)c*=PCM.calculate(this.args[d],a);return c}},sum:function(a){for(var c=0,d=[],f=0;f<a.length;++f)PCM.isNumber(a[f])?c+=PCM.getNumber(a[f]):d[d.length]=a[f];if(!d.length)return c;c&&(d[d.length]=c);return 1==d.length?d[0]:new PCM.sum_fn(d)},sum_fn:function(a){this.args=a;this.__enum=d;this.getValue=function(){for(var a="",c=!0,d=0;d<this.args.length;++d){var f=new String(PCM.getValue(this.args[d]));0<f.length&&"-"==f.charAt(0)?a+=f:c?(a=f+a,c=!1):a=a+"+"+f}return"("+a+")"};
this.getTeX=function(){for(var a="",c=!0,d=0;d<this.args.length;++d){var f=new String(PCM.getValue(this.args[d]));0<f.length&&"-"==f.charAt(0)?a+=PCM.getTeX(this.args[d]):c?(a=PCM.getTeX(this.args[d])+a,c=!1):a=a+"+"+PCM.getTeX(this.args[d])}return a};this.getMath=function(){for(var a="",c=0;c<this.args.length;++c){var d=new String(PCM.getValue(this.args[c]));a=0<d.length&&"-"==d.charAt(0)||0==a.length?a+PCM.getMath(this.args[c]):a+"+"+PCM.getMath(this.args[c])}return a};this.getDerivative=function(){for(var a=
[],c=0;c<this.args.length;++c)PCM.isConstant(this.args[c])||(a[a.length]=PCM.derivative(this.args[c]));return PCM.sum(a)};this.__clone=function(a){return PCM.sum(a)};this.calculate=function(a){for(var c=0,d=0;d<this.args.length;++d)c+=PCM.calculate(this.args[d],a);return c}},substraction:function(a,c){return PCM.sum([a,PCM.minus(c)])},power:function(a,c){if(PCM.isNumber(a)&&PCM.isNumber(c)){var d=PCM.getNumber(a);c=PCM.getNumber(c);return 0>c?PCM.division(1,PCM.power(a,-c)):Math.pow(d,c)}if(PCM.isNumber(c)){d=
PCM.getNumber(c);if(0==d)return 1;if(1==d)return a}else if(PCM.isNumber(a)){d=PCM.getNumber(a);if(0==d)return 0;if(1==d)return 1}return a instanceof PCM.power_fn?new PCM.power_fn(a.arg1,PCM.multiplication([c,a.arg2])):new PCM.power_fn(a,c)},power_fn:function(c,d){this.arg1=c;this.arg2=d;this.__enum=a;this.getValue=function(){return"("+PCM.getValue(this.arg1)+")^("+PCM.getValue(this.arg2)+")"};this.getTeX=function(){if("object"==typeof this.arg1&&this.arg1.immediatepowersign)return"{\\"+this.arg1.name+
"}^{"+PCM.getTeX(this.arg2)+"}\\left({"+PCM.getTeX(this.arg1.arg1)+"}\\right)";var a=this.arg1;return"{"+k(a,a instanceof PCM.sum_fn||a instanceof PCM.multiplication_fn||a instanceof PCM.division_fn||a instanceof PCM.minus_fn)+"}^{"+PCM.getTeX(this.arg2)+"}"};this.getMath=function(){return q(this.arg1)+"^"+q(this.arg2)};this.__clone=function(a){return PCM.power(a[0],a[1])};this.getDerivative=function(){var a=PCM.isConstant(this.arg1);var c=PCM.isConstant(this.arg2);return a&&c?0:a?(a=[this,PCM.ln(this.arg1)],
"x"!=PCM.getValue(this.arg2)&&(a[a.length]=PCM.derivative(this.arg2)),PCM.multiplication(a)):c?(a=[this.arg2,PCM.power(this.arg1,PCM.sum([this.arg2,-1]))],"x"!=PCM.getValue(this.arg1)&&(a[a.length]=PCM.derivative(this.arg1)),PCM.multiplication(a)):PCM.derivative(new PCM.power(PCM.exp(),PCM.multiplication([PCM.ln(this.arg1),this.arg2])))};this.calculate=function(a){return Math.pow(PCM.calculate(this.arg1,a),PCM.calculate(this.arg2,a))}},minus:function(a){if(PCM.isNumber(a))return-PCM.getNumber(a);
if(a instanceof PCM.minus_fn)return a.arg1;if(a instanceof PCM.division_fn)return PCM.division(PCM.minus(a.arg1),a.arg2);if(a instanceof PCM.multiplication_fn){if(a.args[0]instanceof PCM.minus_fn)return a.args[0]=a.args[0].arg1,a;if(PCM.isNumber(a.args[0]))return a.args[0]=-PCM.getNumber(a.args[0]),a}return new PCM.minus_fn(a)},minus_fn:function(a){n(this,a,"minus",PCM.minus);this.immediatepowersign=!1;this.getValue=function(){var a=this.arg1,c=a instanceof PCM.sum_fn||a instanceof PCM.minus_fn||
a instanceof PCM.power_fn,d=c?")":"";return"-"+((c?"(":"")+PCM.getValue(a)+d)};this.getTeX=function(){var a=this.arg1;return"-"+k(a,a instanceof PCM.sum_fn||a instanceof PCM.minus_fn)};this.getMath=function(){var a=this.arg1;return"-"+m(a,a instanceof PCM.sum_fn||a instanceof PCM.minus_fn||a instanceof PCM.power_fn)};this.getDerivative=function(){return PCM.minus(PCM.derivative(a))};this.calculate=function(a){return-PCM.calculate(this.arg1,a)}},sin:function(a){return new PCM.sin_fn(a)},sin_fn:function(a){n(this,
a,"sin",PCM.sin);this.getDerivative=function(){return f(this.arg1,PCM.cos(this.arg1))};this.calculate=function(a){return Math.sin(PCM.calculate(this.arg1,a))}},cos:function(a){return new PCM.cos_fn(a)},cos_fn:function(a){n(this,a,"cos",PCM.cos);this.getDerivative=function(){return f(this.arg1,PCM.minus(PCM.sin(this.arg1)))};this.calculate=function(a){return Math.cos(PCM.calculate(this.arg1,a))}},ln:function(a){return a instanceof PCM.exp_fn?1:new PCM.ln_fn(a)},ln_fn:function(a){n(this,a,"ln",PCM.ln);
this.getDerivative=function(){return f(this.arg1,PCM.division(1,this.arg1))};this.calculate=function(a){return Math.log(PCM.calculate(this.arg1,a))}},lg:function(a){return new PCM.lg_fn(a)},lg_fn:function(a){n(this,a,"lg",PCM.lg);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.multiplication([this.arg1,PCM.ln(10)])))};this.calculate=function(a){return Math.log(PCM.calculate(this.arg1,a))/Math.log(10)}},lb:function(a){return new PCM.lb_fn(a)},lb_fn:function(a){n(this,a,"lb",PCM.lb);
t(this);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.multiplication([this.arg1,PCM.ln(2)])))};this.calculate=function(a){return Math.log(PCM.calculate(this.arg1,a))/Math.log(2)}},logn:function(a,c){return new PCM.logn_fn(a,c)},logn_fn:function(a,c){n(this,a,"log_"+c,PCM.logn);this.getMath=function(){return"log"+this.arg2+"("+PCM.getMath(this.arg1)+")"};this.getValue=function(){return"log"+this.arg2+"("+PCM.getMath(this.arg1)+")"};this.arg2=c;this.__clone=function(a){return PCM.logn(a[0],
a[1])};this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.multiplication([this.arg1,PCM.ln(this.arg2)])))};this.calculate=function(a){return Math.log(PCM.calculate(this.arg1,a))/Math.log(this.arg2)}},cosh_fn:function(a){n(this,a,"cosh",PCM.cosh);this.getDerivative=function(){return f(this.arg1,PCM.sinh(this.arg1))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return(Math.exp(a)+Math.exp(-a))/2}},cosh:function(a){return new PCM.cosh_fn(a)},sinh_fn:function(a){n(this,a,"sinh",
PCM.sinh);this.getDerivative=function(){return f(this.arg1,PCM.cosh(this.arg1))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return(Math.exp(a)-Math.exp(-a))/2}},sinh:function(a){return new PCM.sinh_fn(a)},sech_fn:function(a){n(this,a,"sech",PCM.sech);t(this);this.getDerivative=function(){return PCM.division(1,PCM.cosh(this.arg1)).getDerivative()};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 2/(Math.exp(a)+Math.exp(-a))}},sech:function(a){return new PCM.sech_fn(a)},csch_fn:function(a){n(this,
a,"csch",PCM.csch);t(this);this.getDerivative=function(){return PCM.division(1,PCM.sinh(this.arg1)).getDerivative()};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 2/(Math.exp(a)-Math.exp(-a))}},csch:function(a){return new PCM.csch_fn(a)},tanh_fn:function(a){n(this,a,"tanh",PCM.tanh);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.power(PCM.cosh(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return(Math.exp(2*a)-1)/(Math.exp(2*a)+1)}},
tanh:function(a){return new PCM.tanh_fn(a)},coth_fn:function(a){n(this,a,"coth",PCM.coth);this.getDerivative=function(){return f(this.arg1,PCM.division(-1,PCM.power(PCM.sinh(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return(Math.exp(2*a)+1)/(Math.exp(2*a)-1)}},coth:function(a){return new PCM.coth_fn(a)},variable_fn:function(a){this.getValue=function(){return"x"};this.getTeX=function(){return"{x}"};this.getMath=function(){return"x"};this.__enum=function(){return[]};this.__clone=
function(a){return new PCM.variable_fn};this.getDerivative=function(){return 1};this.calculate=function(a){return a.x}},sqrt_fn:function(a){n(this,a,"sqrt",PCM.sqrt);this.immediatepowersign=!1;this.getTeX=function(){return"\\sqrt{"+PCM.getTeX(this.arg1)+"}"};this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.multiplication([2,PCM.sqrt(this.arg1)])))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.sqrt(a)}},sqrt:function(a){return new PCM.sqrt_fn(a)},root_fn:function(a,
c){this.arg1=a;this.arg2=c;this.immediatepowersign=!1;this.name="root";this.__enum=function(){return[this.arg1,this.arg2]};this.getValue=function(){return this.name+this.arg2+"("+PCM.getValue(this.arg1)+")"};this.__clone=function(a){return PCM.root(a[0],a[1])};this.getTeX=function(){return"{\\small^"+PCM.getTeX(this.arg2)+"}\\sqrt{"+PCM.getTeX(this.arg1)+"}"};this.getMath=function(){return"root"+this.arg2+"("+PCM.getMath(this.arg1)+")"};this.getDerivative=function(){return(new PCM.power_fn(this.arg1,
PCM.division(1,this.arg2))).getDerivative()};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.pow(a,1/this.arg2)}},root:function(a,c){return new PCM.root_fn(a,c)},exp_fn:function(a){this.getValue=function(){return"e"};this.getTeX=function(){return"e"};this.getMath=function(){return"e"};this.__enum=function(){return[]};this.__clone=function(a){return new PCM.exp_fn};this.getDerivative=function(){return 0};this.calculate=function(a){return Math.exp(1)}},exp:function(){return new PCM.exp_fn},
tan_fn:function(a){n(this,a,"tan",PCM.tan);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.power(PCM.cos(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.tan(a)}},tan:function(a){return new PCM.tan_fn(a)},cot_fn:function(a){n(this,a,"cot",PCM.cot);this.getDerivative=function(){return f(this.arg1,PCM.division(-1,PCM.power(PCM.sin(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 1/Math.tan(a)}},cot:function(a){return new PCM.cot_fn(a)},
sec_fn:function(a){n(this,a,"sec",PCM.sec);this.getDerivative=function(){return f(this.arg1,PCM.division(PCM.sin(this.arg1),PCM.power(PCM.cos(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 1/Math.cos(a)}},sec:function(a){return new PCM.sec_fn(a)},csc_fn:function(a){n(this,a,"csc",PCM.csc);this.getDerivative=function(){return f(this.arg1,PCM.division(PCM.cos(this.arg1),PCM.power(PCM.sin(this.arg1),2)))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 1/
Math.sin(a)}},csc:function(a){return new PCM.csc_fn(a)},arctan_fn:function(a){n(this,a,"arctan",PCM.arctan);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.sum([1,PCM.power(this.arg1,2)])))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.atan(a)}},arctan:function(a){return new PCM.arctan_fn(a)},arccot_fn:function(a){n(this,a,"arccot",PCM.arccot);t(this);this.getDerivative=function(){return f(this.arg1,PCM.division(-1,PCM.sum([1,PCM.power(this.arg1,2)])))};
this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.PI/2-Math.atan(a)}},arccot:function(a){return new PCM.arccot_fn(a)},arcsin_fn:function(a){n(this,a,"arcsin",PCM.arcsin);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.sqrt(PCM.substraction(1,PCM.power(this.arg1,2)))))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.asin(a)}},arcsin:function(a){return new PCM.arcsin_fn(a)},arccos_fn:function(a){n(this,a,"arccos",PCM.arccos);this.getDerivative=
function(){return f(this.arg1,PCM.division(-1,PCM.sqrt(PCM.substraction(1,PCM.power(this.arg1,2)))))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.acos(a)}},arccos:function(a){return new PCM.arccos_fn(a)},arcsec_fn:function(a){n(this,a,"arcsec",PCM.arcsec);t(this);this.getDerivative=function(){return f(this.arg1,PCM.division(1,PCM.multiplication([PCM.power(this.arg1,2),PCM.sqrt(PCM.sum([1,PCM.minus(PCM.power(this.arg1,2))]))])))};this.calculate=function(a){a=PCM.calculate(this.arg1,
a);return Math.acos(1/a)}},arcsec:function(a){return new PCM.arcsec_fn(a)},arccosec_fn:function(a){n(this,a,"arccosec",PCM.arccosec);t(this);this.getDerivative=function(){return f(this.arg1,PCM.division(-1,PCM.multiplication([PCM.power(this.arg1,2),PCM.sqrt(PCM.substraction(1,PCM.power(this.arg1,2)))])))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.PI/2-Math.acos(1/a)}},arccosec:function(a){return new PCM.arccosec_fn(a)},function_fn:function(a,c){n(this,a,c,null);t(this);this.__clone=
function(a){return new PCM.function_fn(a[0],this.name)};var d={versin:function(a){return PCM.sin(a)},vercos:function(a){return PCM.minus(PCM.cos(a))},haversin:function(a){return PCM.division(PCM.sin(a),2)},exsec:function(a){return PCM.division(PCM.sin(a),PCM.power(PCM.cos(a),2))},excsc:function(a){return PCM.division(PCM.minus(PCM.cos(a)),PCM.power(PCM.sin(a),2))}},l={versin:function(a){return 1-Math.cos(a)},vercos:function(a){return 1+Math.cos(a)},haversin:function(a){return(1-Math.cos(a))/2},exsec:function(a){return 1/
Math.cos(a)-1},excsc:function(a){return 1/Math.sin(a)-1}};this.getDerivative=function(){if(PCM.isConstant(this.arg1))return 0;var a=d[this.name];if(a)return f(this.arg1,a(this.arg1))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return(0,l[this.name])(a)}},abs:function(a){return new PCM.abs_fn(a)},abs_fn:function(a){n(this,a,"abs",PCM.abs);this.getDerivative=function(){return f(this.arg1,PCM.sign(-1,this.arg1))};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return Math.abs(a)};
this.getTeX=function(){return"\\left|"+PCM.getTeX(this.arg1)+"\\right|"}},sign:function(a){return PCM.isNumber(a)?0>a?-1:0<a?1:0:new PCM.sign_fn(a)},sign_fn:function(a){n(this,a,"sign",PCM.sign);t(this);this.getDerivative=function(){return 0};this.calculate=function(a){a=PCM.calculate(this.arg1,a);return 0>a?-1:0<a?1:0}},pi_fn:function(){this.__enum=function(){return[]};this.__clone=function(a){return new PCM.pi_fn};this.getValue=function(){return"pi"};this.getTeX=function(){return"\\pi"};this.getMath=
function(){return"pi"};this.getDerivative=function(){return 0};this.calculate=function(a){return Math.PI}},derivative_fn:function(c){this.arg1=c;this.__enum=a;this.__clone=function(a){return PCM.derivative(a[0])};this.getValue=function(){return"f'("+PCM.getValue(this.arg1)+")"};this.getTeX=function(){return"{f^\\prime}\\left("+PCM.getTeX(this.arg1)+"\\right)"};this.getMath=function(){return"derivative("+PCM.getMath(this.arg1)+")"};this.getDerivative=function(){return this.arg1.getDerivative()}},derivative:function(a){return PCM.isConstant(a)?
0:new PCM.derivative_fn(a)},translate:function(a){return(new w).__translate(a)},grammar:function(){this.digit={t:"|",v:"0123456789".split("")};this["plus sign"]="+";this["power sign"]="^";this["minus sign"]="-";this.dot=".";this["left paren"]="(";this["right paren"]=")";this.asterisk="*";this.solidus="/";this.dotorcomma={t:"|",v:[".",","]};this["unsigned integer"]={t:"&",v:[{t:"->",v:"digit"},{t:"*",v:{t:"->",v:"digit"}}]};this["exact numeric literal"]={t:"|",v:[{t:"&",v:[{t:"->",v:"unsigned integer"},
{t:"|",v:[{t:"&",v:[{t:"->",v:"dotorcomma"},{t:"|",v:[{t:"->",v:"unsigned integer"},""]}]},""]}]},{t:"&",v:[{t:"->",v:"dotorcomma"},{t:"->",v:"unsigned integer"}]}]};this.mantissa={t:"->",v:"exact numeric literal"};this["signed integer"]={t:"&",v:[{t:"|",v:[{t:"->",v:"sign"},""]},{t:"->",v:"unsigned integer"}]};this.sign={t:"|",v:[{t:"->",v:"plus sign"},{t:"->",v:"minus sign"}]};this.exponent={t:"->",v:"signed integer"};this["approximate numeric literal"]={t:"&",v:[{t:"->",v:"mantissa"},"E",{t:"->",
v:"exponent"}]};this["unsigned numeric literal"]={t:"|",v:[{t:"->",v:"approximate numeric literal"},{t:"->",v:"exact numeric literal"}]};this.variable="x";this.pi="pi";this.exponenta={t:"|",v:["e","E"]};this["paren expression"]={t:"&",v:[{t:"->",v:"left paren"},{t:"->",v:"expression"},{t:"->",v:"right paren"}]};this.value={t:"|",v:[{t:"->",v:"unsigned numeric literal"},{t:"->",v:"variable"},{t:"->",v:"func"},{t:"->",v:"funcnum"},{t:"->",v:"pi"},{t:"->",v:"exponenta"},{t:"->",v:"paren expression"}]};
this.factor={t:"&",v:[{t:"|",v:[{t:"->",v:"sign"},""]},{t:"->",v:"value"}]};this.factoroperator={t:"|",v:[{t:"->",v:"asterisk"},{t:"->",v:"solidus"}]};this.power={t:"&",v:[{t:"->",v:"factor"},{t:"*",v:{t:"&",v:[{t:"->",v:"power sign"},{t:"->",v:"factor"}]}}]};this.product={t:"&",v:[{t:"->",v:"power"},{t:"*",v:{t:"&",v:[{t:"->",v:"factoroperator"},{t:"->",v:"power"}]}}]};this.sum={t:"&",v:[{t:"->",v:"product"},{t:"*",v:{t:"&",v:[{t:"->",v:"sign"},{t:"->",v:"product"}]}}]};this.func={t:"&",v:[{t:"->",
v:"func name"},{t:"->",v:"left paren"},{t:"->",v:"expression"},{t:"->",v:"right paren"}]};this.funcnum={t:"&",v:[{t:"->",v:"funcnum name"},{t:"->",v:"unsigned integer"},{t:"->",v:"left paren"},{t:"->",v:"expression"},{t:"->",v:"right paren"}]};this["func name"]={t:"|",v:"sinh tanh coth cosh sin cosec cos tg tan ctg cot sech sec arcsin arccosec arccos arctg arctan arcctg arccot arcsec exp lb lg ln versin vercos haversin exsec excsc sqrt sh ch th cth csch abs sgn sign".split(" ")};this["funcnum name"]=
{t:"|",v:["root","log"]};this.expression={t:"->",v:"sum"};this._getRootRule=function(){return{t:"->",v:"expression"}}}}}();function ResetOverflow(c){c.style.overflow="hidden";c.style.overflowX&&(c.style.overflowX="hidden");c.style.overflowY&&(c.style.overflowY="hidden");document.body.scroll="no";document.body.scroll&&(c.scroll="no")}
function DimmScreen(){var c=document.body,d=document.createElement("div");c.insertBefore(d,c.firstChild);ResetOverflow(c.firstChild);d.setAttribute("id","dimmer");d.style.display="block";d.style.position="absolute";d.style.top="0";d.style.left="0";d.style.zIndex=200;d.style.width="100%";c=BSGetPageSize();d.style.height=c.ypx}function UndimmScreen(){var c=document.body;c.removeChild(c.firstChild)}var RegisterWithDialog=null;
function RegisterWith(){this.onchanged=function(c){};this.initdialog=function(c){RegisterWithDialog=c};this.oncommand=function(c){};this.onkeypressed=function(c,d){return!0}}function GenericLogin(c,d,a,e,h){RegisterWithDialog.registerwith.SetValue(c);RegisterWithDialog.username.SetValue(d);RegisterWithDialog.picture.SetValue(a);RegisterWithDialog.profile.SetValue(e);RegisterWithDialog.fullname.SetValue(h);RegisterWithDialog.GetElement().submit()}
function LoginWith(){this.Dialog=null;this.onchanged=function(c){};var c=this;this.initdialog=function(c){this.Dialog=c};this.oncommand=function(d){clearLastError();"google"==d?auth2.signIn().then(function(){auth2.currentUser.get().getBasicProfile();c.Dialog.code.SetValue(gapi.auth2.getAuthInstance().currentUser.get().getAuthResponse().id_token);c.Dialog.GetElement().submit()}):("twitter"==d||"facebook"==d||"vkontakte"==d)&&this.Dialog.Validate()&&this.Dialog.GetElement().submit()};this.onkeypressed=
function(c,a){return!0}};function getspaceseparated(c){for(var d="",a=0;a<c.length;++a){var e="";-1!=c[a].indexOf(" ")&&(e="&quot;");d+=e+c[a]+e+" "}return d}function exporttarget_email(c){document.location="mailto:?subject==?utf-8?q?"+encodeURIComponent(c.title).replace(/%/g,"=")+"?=&body="+encodeURIComponent(c.url+"?"+c.urlParams())}
function exporttarget_fields(c,d,a,e){window.open(d+a.url+"="+encodeURIComponent(c.url)+"&"+a.title+"="+encodeURIComponent(c.title)+"&"+a.tags+"="+encodeURIComponent(c.tags.join(e)),"delicious","toolbar=no,width=800,height=600")}function exporttarget_standard(c,d,a){exporttarget_fields(c,d,{url:"url",title:"title",tags:"tags"},a)}function exporttarget_delicious(c){exporttarget_standard(c,"//del.icio.us/post?v=4&noui&jump=close&"," ")}
function exporttarget_googlegadget(c){window.open("//fusion.google.com/add?source=atgs&moduleurl="+encodeURIComponent(c.url)+c.language+"/"+c.id+".xml","gadget","toolbar=no,width=800,height=600")}function exporttarget_mrwong(c,d){exporttarget_fields(c,"//www.mister-wong.ru/index.php?action=addurl&",{url:"bm_url",title:"bm_description",tags:"bm_tags"}," ")}
function exporttarget_yandex(c){exporttarget_fields(c,"//zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&",{url:"url",title:"name",tags:"tags"},",")}function exporttarget_myscoop(c){exporttarget_standard(c,"//myscoop.ru/add/?"," ")}function exporttarget_memori(c){exporttarget_fields(c,"//memori.ru/link/?sm=1&",{url:"u_data[url]",title:"u_data[name]",tags:"u_data[tags]"}," ")}
function exporttarget_google(c){exporttarget_fields(c,"//www.google.com/bookmarks/mark?op=add&",{url:"bkmk",title:"title",tags:"labels"},",")}function exporttarget_furl(c){exporttarget_fields(c,"//www.furl.net/storeIt.jsp?",{url:"u",title:"t",tags:"keywords"},",")}function exporttarget_digg(c){exporttarget_fields(c,"//digg.com/submit?phase=2&",{url:"url",title:"title",tags:"bodytext"},",")}
function exporttarget_tweetter(c){window.open("//twitter.com/intent/tweet?text="+encodeURIComponent(c.title+" ")+encodeURIComponent(c.url)+"&lang="+c.language,"tweetter","toolbar=no,width=800,height=600")};function TreeDiagram(c){function d(a){function c(a,d,e){e.children&&0!=e.children.length&&(a[d]=a[d]||[],e.children.forEach(function(e){a[d].push(e);c(a,d+1,e)}))}var d=[[a]];c(d,1,a);return d}this.Header=new RecordsetHeader;this.Show=function(){this.m_destination.style.display="block"};this.Hide=function(){this.m_destination.style.display="none"};this.m_destination=document.getElementById(c);this.Render=function(a){var c=this;c.m_destination.innerHTML="";require(["d3"],function(e){function h(a){a.children&&
(a.children.forEach(h),p(a))}function m(a){var d=q.descendants().reverse();d.forEach(function(a){a.y=150*a.depth});var f=w.selectAll("g.node").data(d,function(a){return a.id||(a.id=++u)});f.select("circle").style("fill",function(a){return a._children?"lightsteelblue":"#fff"});var h=f.enter().append("svg:g").attr("class","node").attr("transform",function(c){return"translate("+a.y0+","+a.x0+")"}).on("click",function(a){p(a);m(a)});h.append("svg:circle").attr("r",1E-6).style("fill",function(a){return a._children?
"lightsteelblue":"#fff"});h.append("svg:text").attr("x",function(a){return a.children||a._children?-10:10}).attr("dy",".35em").attr("text-anchor",function(a){return a.children||a._children?"end":"start"}).text(function(a){return a.data.name}).style("fill-opacity",1E-6);h.transition().duration(1E3).attr("transform",function(a){return"translate("+a.y+","+a.x+")"});h.select("circle").transition().duration(1E3).attr("r",4.5).style("fill",function(a){return a._children?"lightsteelblue":"#fff"});h.select("text").transition().duration(1E3).style("fill-opacity",
1);f.exit().transition().duration(1E3).attr("transform",function(c){return"translate("+a.y+","+a.x+")"}).remove();f.exit().select("circle").transition().duration(1E3).attr("r",1E-6);f.exit().select("text").transition().duration(1E3).style("fill-opacity",1E-6);f=w.selectAll("path.link").data(q.links(),function(a){return a.target.id});f.enter().insert("svg:path","g").attr("class","link").attr("d",function(c){c={x:a.x0,y:a.y0};return n({source:c,target:c})}).transition().duration(1E3).attr("d",n);f.transition().duration(1E3).attr("d",
n);f.exit().transition().duration(1E3).attr("d",function(c){c={x:a.x,y:a.y};return n({source:c,target:c})}).remove();d.forEach(function(a){a.x0=a.x;a.y0=a.y});d=-a.y0;d=d+l/2+(a.children?-75:a._children?75:0);e.select(c.m_destination).select("g").transition().duration(500).attr("transform","translate("+d+",0)")}function p(a){a.children?(a._children=a.children,a.children=null):(a.children=a._children,a._children=null)}var q=e.hierarchy(a),l=$(c.m_destination).width()-20-20,f=40*q.descendants().reduce(function(a,
c){return a+(c.children?0:1)},0);if(0>l||0>f)l=f=1;e.tree().size([f,l])(q).descendants();q.x0=f/2;q.y0=0;var n=e.linkHorizontal().x(function(a){return a.y}).y(function(a){return a.x}),t=e.select(c.m_destination);t.select("svg").remove();var w=t.append("svg").attr("width",l).attr("height",f).append("g").attr("transform","translate(40,0)"),u=0;q.children&&!a.expanded&&q.children.forEach(h);m(q);a.expanded&&(f=d(q),t=Math.floor(f.length/2),m(f[0<t?t-1:0][0]))})}};/*

 Copyright 2016 Google Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 Copyright 2017 Google Inc. All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 Copyright 2016 Google Inc. All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
(function(c){function d(e){if(a[e])return a[e].exports;var h=a[e]={i:e,l:!1,exports:{}};c[e].call(h.exports,h,h.exports,d);h.l=!0;return h.exports}var a={};d.m=c;d.c=a;d.d=function(a,c,k){d.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:k})};d.n=function(a){var c=a&&a.__esModule?function(){return a["default"]}:function(){return a};d.d(c,"a",c);return c};d.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};d.p="";return d(d.s=147)})([function(c,d,a){var e=a(2),
h=a(24),k=a(12),m=a(13),p=a(20);d=function l(a,c,d){var f=a&l.F,n=a&l.G,t=a&l.S,x=a&l.P,z=a&l.B;t=n?e:t?e[c]||(e[c]={}):(e[c]||{}).prototype;var v=n?h:h[c]||(h[c]={}),A=v.prototype||(v.prototype={}),C;n&&(d=c);for(C in d)n=!f&&t&&void 0!==t[C],c=(n?t:d)[C],n=z&&n?p(c,e):x&&"function"==typeof c?p(Function.call,c):c,t&&m(t,C,c,a&l.U),v[C]!=c&&k(v,C,n),x&&A[C]!=c&&(A[C]=c)};e.core=h;d.F=1;d.G=2;d.S=4;d.P=8;d.B=16;d.W=32;d.U=64;d.R=128;c.exports=d},function(c,d,a){var e=a(4);c.exports=function(a){if(!e(a))throw TypeError(a+
" is not an object!");return a}},function(c,d,a){c=c.exports="undefined"!=typeof window&&Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},function(c,d,a){c.exports=function(a){try{return!!a()}catch(h){return!0}}},function(c,d,a){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":
typeof a};c.exports=function(a){return"object"===("undefined"===typeof a?"undefined":e(a))?null!==a:"function"===typeof a}},function(c,d,a){var e=a(55)("wks"),h=a(35),k=a(2).Symbol,m="function"==typeof k;(c.exports=function(a){return e[a]||(e[a]=m&&k[a]||(m?k:h)("Symbol."+a))}).store=e},function(c,d,a){c.exports=!a(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(c,d,a){var e=a(1),h=a(103),k=a(25),m=Object.defineProperty;d.f=a(6)?Object.defineProperty:
function(a,c,d){e(a);c=k(c,!0);e(d);if(h)try{return m(a,c,d)}catch(f){}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");"value"in d&&(a[c]=d.value);return a}},function(c,d,a){var e=a(27),h=Math.min;c.exports=function(a){return 0<a?h(e(a),9007199254740991):0}},function(c,d,a){var e=a(26);c.exports=function(a){return Object(e(a))}},function(c,d,a){c.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(c,d,a){var e={}.hasOwnProperty;
c.exports=function(a,c){return e.call(a,c)}},function(c,d,a){var e=a(7),h=a(34);c.exports=a(6)?function(a,c,d){return e.f(a,c,h(1,d))}:function(a,c,d){a[c]=d;return a}},function(c,d,a){var e=a(2),h=a(12),k=a(11),m=a(35)("src"),p=Function.toString,q=(""+p).split("toString");a(24).inspectSource=function(a){return p.call(a)};(c.exports=function(a,c,d,p){var f="function"==typeof d;f&&(k(d,"name")||h(d,"name",c));a[c]!==d&&(f&&(k(d,m)||h(d,m,a[c]?""+a[c]:q.join(String(c)))),a===e?a[c]=d:p?a[c]?a[c]=d:
h(a,c,d):(delete a[c],h(a,c,d)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[m]||p.call(this)})},function(c,d,a){var e=a(0),h=a(3),k=a(26),m=/"/g,p=function(a,c,d,e){a=String(k(a));var f="<"+c;""!==d&&(f+=" "+d+'="'+String(e).replace(m,"&quot;")+'"');return f+">"+a+"</"+c+">"};c.exports=function(a,c){var d={};d[a]=c(p);e(e.P+e.F*h(function(){var c=""[a]('"');return c!==c.toLowerCase()||3<c.split('"').length}),"String",d)}},function(c,d,a){Object.defineProperty(d,
"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=function(){function a(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.adapter_=c}e(a,null,[{key:"cssClasses",get:function(){return{}}},
{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]);e(a,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]);return a}();d.default=c},function(c,d,a){var e=a(51),h=a(26);c.exports=function(a){return e(h(a))}},function(c,d,a){var e=a(52),h=a(34),k=a(16),m=a(25),p=a(11),q=a(103),l=Object.getOwnPropertyDescriptor;d.f=a(6)?l:function(a,c){a=k(a);c=m(c,!0);if(q)try{return l(a,c)}catch(t){}if(p(a,c))return h(!e.f.call(a,
c),a[c])}},function(c,d,a){var e=a(11),h=a(9),k=a(73)("IE_PROTO"),m=Object.prototype;c.exports=Object.getPrototypeOf||function(a){a=h(a);return e(a,k)?a[k]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?m:null}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.MDCComponent=d.MDCFoundation=void 0;c=(c=a(15))&&c.__esModule?c:{default:c};a=(a=a(23))&&a.__esModule?a:{default:a};d.MDCFoundation=c.default;d.MDCComponent=a.default},
function(c,d,a){var e=a(10);c.exports=function(a,c,d){e(a);if(void 0===c)return a;switch(d){case 1:return function(d){return a.call(c,d)};case 2:return function(d,e){return a.call(c,d,e)};case 3:return function(d,e,l){return a.call(c,d,e,l)}}return function(){return a.apply(c,arguments)}}},function(c,d,a){var e={}.toString;c.exports=function(a){return e.call(a).slice(8,-1)}},function(c,d,a){var e=a(3);c.exports=function(a,c){return!!a&&e(function(){c?a.call(null,function(){},1):a.call(null)})}},function(c,
d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var l=c[d];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(a,l.key,l)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),h=(c=a(15))&&c.__esModule?c:{default:c};c=function(){function a(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
this.root_=c;for(var e=arguments.length,l=Array(2<e?e-2:0),f=2;f<e;f++)l[f-2]=arguments[f];this.initialize.apply(this,l);this.foundation_=void 0===d?this.getDefaultFoundation():d;this.foundation_.init();this.initialSyncWithDOM()}e(a,null,[{key:"attachTo",value:function(c){return new a(c,new h.default)}}]);e(a,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(a,c){this.root_.addEventListener(a,c)}},{key:"unlisten",value:function(a,c){this.root_.removeEventListener(a,c)}},{key:"emit",value:function(a,c){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;if("function"===typeof CustomEvent)var l=new CustomEvent(a,{detail:c,bubbles:d});else l=document.createEvent("CustomEvent"),l.initCustomEvent(a,d,!1,c);
this.root_.dispatchEvent(l)}}]);return a}();d.default=c},function(c,d,a){c=c.exports={version:"2.5.1"};"number"==typeof __e&&(__e=c)},function(c,d,a){var e=a(4);c.exports=function(a,c){if(!e(a))return a;var d,k;if(c&&"function"==typeof(d=a.toString)&&!e(k=d.call(a))||"function"==typeof(d=a.valueOf)&&!e(k=d.call(a))||!c&&"function"==typeof(d=a.toString)&&!e(k=d.call(a)))return k;throw TypeError("Can't convert object to primitive value");}},function(c,d,a){c.exports=function(a){if(void 0==a)throw TypeError("Can't call method on  "+
a);return a}},function(c,d,a){var e=Math.ceil,h=Math.floor;c.exports=function(a){return isNaN(a=+a)?0:(0<a?h:e)(a)}},function(c,d,a){var e=a(0),h=a(24),k=a(3);c.exports=function(a,c){var d=(h.Object||{})[a]||Object[a],l={};l[a]=c(d);e(e.S+e.F*k(function(){d(1)}),"Object",l)}},function(c,d,a){var e=a(20),h=a(51),k=a(9),m=a(8),p=a(90);c.exports=function(a,c){var d=1==a,l=2==a,q=3==a,w=4==a,u=6==a,y=5==a||u,x=c||p;return function(c,f,n){var p=k(c),t=h(p);f=e(f,n,3);n=m(t.length);var v=0;c=d?x(c,n):l?
x(c,0):void 0;for(var A,z;n>v;v++)if(y||v in t)if(A=t[v],z=f(A,v,p),a)if(d)c[v]=z;else if(z)switch(a){case 3:return!0;case 5:return A;case 6:return v;case 2:c.push(A)}else if(w)return!1;return u?-1:q||w?w:c}}},function(c,d,a){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};if(a(6)){var h=a(36),k=a(2),m=a(3),p=a(0),q=a(65),l=a(96),f=a(20),
n=a(42),t=a(34),w=a(12);d=a(44);var u=a(27),y=a(8),x=a(129),z=a(38),v=a(25),A=a(11),C=a(53),K=a(4),O=a(9),I=a(87),J=a(39),B=a(18),L=a(40).f,E=a(89),F=a(35),G=a(5),H=a(29),R=a(56),M=a(63),S=a(92),P=a(49),U=a(60),Z=a(41),aa=a(91),V=a(119),W=a(7);a=a(17);var Q=W.f,N=a.f,D=k.RangeError,ca=k.TypeError,ba=k.Uint8Array,Y=Array.prototype,da=l.ArrayBuffer,fa=l.DataView,ea=H(0),T=H(2),ia=H(3),Fa=H(4),qa=H(5),Ga=H(6),Ha=R(!0),Ia=R(!1),Ja=S.values,Ka=S.keys,La=S.entries,Ma=Y.lastIndexOf,Na=Y.reduce,Oa=Y.reduceRight,
va=Y.join,Pa=Y.sort,wa=Y.slice,ka=Y.toString,ra=Y.toLocaleString,sa=G("iterator"),la=G("toStringTag"),xa=F("typed_constructor"),ma=F("def_constructor");l=q.CONSTR;var ja=q.TYPED,Qa=q.VIEW,Ra=H(1,function(a,c){return na(M(a,a[ma]),c)}),ya=m(function(){return 1===(new ba((new Uint16Array([1])).buffer))[0]}),Sa=!!ba&&!!ba.prototype.set&&m(function(){(new ba(1)).set({})}),oa=function(a,c){a=u(a);if(0>a||a%c)throw D("Wrong offset!");return a},X=function(a){if(K(a)&&ja in a)return a;throw ca(a+" is not a typed array!");
},na=function(a,c){if(!(K(a)&&xa in a))throw ca("It is not a typed array constructor!");return new a(c)},za=function(a,c){return ta(M(a,a[ma]),c)},ta=function(a,c){var d=0,f=c.length;for(a=na(a,f);f>d;)a[d]=c[d++];return a};H=function(a,c,d){Q(a,c,{get:function(){return this._d[d]}})};var ua=function(a){var c=O(a),d=arguments.length,l=1<d?arguments[1]:void 0,e=void 0!==l,n=E(c),k;if(void 0!=n&&!I(n)){var q=n.call(c);c=[];for(n=0;!(k=q.next()).done;n++)c.push(k.value)}e&&2<d&&(l=f(l,arguments[2],2));
n=0;d=y(c.length);for(k=na(this,d);d>n;n++)k[n]=e?l(c[n],n):c[n];return k},Ta=function(){for(var a=0,c=arguments.length,d=na(this,c);c>a;)d[a]=arguments[a++];return d},Ua=!!ba&&m(function(){ra.call(new ba(1))}),Aa=function(){return ra.apply(Ua?wa.call(X(this)):X(this),arguments)},Ba={copyWithin:function(a,c){return V.call(X(this),a,c,2<arguments.length?arguments[2]:void 0)},every:function(a){return Fa(X(this),a,1<arguments.length?arguments[1]:void 0)},fill:function(a){return aa.apply(X(this),arguments)},
filter:function(a){return za(this,T(X(this),a,1<arguments.length?arguments[1]:void 0))},find:function(a){return qa(X(this),a,1<arguments.length?arguments[1]:void 0)},findIndex:function(a){return Ga(X(this),a,1<arguments.length?arguments[1]:void 0)},forEach:function(a){ea(X(this),a,1<arguments.length?arguments[1]:void 0)},indexOf:function(a){return Ia(X(this),a,1<arguments.length?arguments[1]:void 0)},includes:function(a){return Ha(X(this),a,1<arguments.length?arguments[1]:void 0)},join:function(a){return va.apply(X(this),
arguments)},lastIndexOf:function(a){return Ma.apply(X(this),arguments)},map:function(a){return Ra(X(this),a,1<arguments.length?arguments[1]:void 0)},reduce:function(a){return Na.apply(X(this),arguments)},reduceRight:function(a){return Oa.apply(X(this),arguments)},reverse:function(){for(var a=X(this).length,c=Math.floor(a/2),d=0,f;d<c;)f=this[d],this[d++]=this[--a],this[a]=f;return this},some:function(a){return ia(X(this),a,1<arguments.length?arguments[1]:void 0)},sort:function(a){return Pa.call(X(this),
a)},subarray:function(a,c){var d=X(this),f=d.length;a=z(a,f);return new (M(d,d[ma]))(d.buffer,d.byteOffset+a*d.BYTES_PER_ELEMENT,y((void 0===c?f:z(c,f))-a))}},Ca=function(a,c){return za(this,wa.call(X(this),a,c))},Da=function(a,c){X(this);c=oa(c,1);var d=this.length;a=O(a);var f=y(a.length),l=0;if(f+c>d)throw D("Wrong length!");for(;l<f;)this[c+l]=a[l++]},pa={entries:function(){return La.call(X(this))},keys:function(){return Ka.call(X(this))},values:function(){return Ja.call(X(this))}},Ea=function(a,
c){return K(a)&&a[ja]&&"symbol"!=("undefined"===typeof c?"undefined":e(c))&&c in a&&String(+c)==String(c)};F=function(a,c){return Ea(a,c=v(c,!0))?t(2,a[c]):N(a,c)};G=function(a,c,d){return!(Ea(a,c=v(c,!0))&&K(d)&&A(d,"value"))||A(d,"get")||A(d,"set")||d.configurable||A(d,"writable")&&!d.writable||A(d,"enumerable")&&!d.enumerable?Q(a,c,d):(a[c]=d.value,a)};l||(a.f=F,W.f=G);p(p.S+p.F*!l,"Object",{getOwnPropertyDescriptor:F,defineProperty:G});m(function(){ka.call({})})&&(ka=ra=function(){return va.call(this)});
var ha=d({},Ba);d(ha,pa);w(ha,sa,pa.values);d(ha,{slice:Ca,set:Da,constructor:function(){},toString:ka,toLocaleString:Aa});H(ha,"buffer","b");H(ha,"byteOffset","o");H(ha,"byteLength","l");H(ha,"length","e");Q(ha,la,{get:function(){return this[ja]}});c.exports=function(a,c,d,f){f=!!f;var l=a+(f?"Clamped":"")+"Array",e="get"+a,t="set"+a,u=k[l],T=u||{},v=u&&B(u);a={};var A=u&&u.prototype,z=function(a,d){Q(a,d,{get:function(){var a=this._d;return a.v[e](d*c+a.o,ya)},set:function(a){var l=this._d;f&&(a=
0>(a=Math.round(a))?0:255<a?255:a&255);l.v[t](d*c+l.o,a,ya)},enumerable:!0})};u&&q.ABV?m(function(){u(1)})&&m(function(){new u(-1)})&&U(function(a){new u;new u(null);new u(1.5);new u(a)},!0)||(u=d(function(a,d,f,e){n(a,u,l);var k;return K(d)?d instanceof da||"ArrayBuffer"==(k=C(d))||"SharedArrayBuffer"==k?void 0!==e?new T(d,oa(f,c),e):void 0!==f?new T(d,oa(f,c)):new T(d):ja in d?ta(u,d):ua.call(u,d):new T(x(d))}),ea(v!==Function.prototype?L(T).concat(L(v)):L(T),function(a){a in u||w(u,a,T[a])}),u.prototype=
A,h||(A.constructor=u)):(u=d(function(a,d,f,e){n(a,u,l,"_d");var k=0,q=0,h;if(K(d))if(d instanceof da||"ArrayBuffer"==(h=C(d))||"SharedArrayBuffer"==h){h=d;q=oa(f,c);d=d.byteLength;if(void 0===e){if(d%c)throw D("Wrong length!");e=d-q;if(0>e)throw D("Wrong length!");}else if(e=y(e)*c,e+q>d)throw D("Wrong length!");d=e/c}else return ja in d?ta(u,d):ua.call(u,d);else d=x(d),e=d*c,h=new da(e);for(w(a,"_d",{b:h,o:q,l:e,e:d,v:new fa(h)});k<d;)z(a,k++)}),A=u.prototype=J(ha),w(A,"constructor",u));d=A[sa];
v=!!d&&("values"==d.name||void 0==d.name);var ia=pa.values;w(u,xa,!0);w(A,ja,l);w(A,Qa,!0);w(A,ma,u);(f?(new u(1))[la]==l:la in A)||Q(A,la,{get:function(){return l}});a[l]=u;p(p.G+p.W+p.F*(u!=T),a);p(p.S,l,{BYTES_PER_ELEMENT:c});p(p.S+p.F*m(function(){T.of.call(u,1)}),l,{from:ua,of:Ta});"BYTES_PER_ELEMENT"in A||w(A,"BYTES_PER_ELEMENT",c);p(p.P,l,Ba);Z(l);p(p.P+p.F*Sa,l,{set:Da});p(p.P+p.F*!v,l,pa);h||A.toString==ka||(A.toString=ka);p(p.P+p.F*m(function(){(new u(1)).slice()}),l,{slice:Ca});p(p.P+p.F*
(m(function(){return[1,2].toLocaleString()!=(new u([1,2])).toLocaleString()})||!m(function(){A.toLocaleString.call([1,2])})),l,{toLocaleString:Aa});P[l]=v?d:ia;h||v||w(A,sa,ia)}}else c.exports=function(){}},function(c,d,a){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},h=a(124),k=a(0);d=a(55)("metadata");var m=d.store||(d.store=new (a(127))),
p=function(a,c,d){var f=m.get(a);if(!f){if(!d)return;m.set(a,f=new h)}a=f.get(c);if(!a){if(!d)return;f.set(c,a=new h)}return a};c.exports={store:m,map:p,has:function(a,c,d){c=p(c,d,!1);return void 0===c?!1:c.has(a)},get:function(a,c,d){c=p(c,d,!1);return void 0===c?void 0:c.get(a)},set:function(a,c,d,e){p(d,e,!0).set(a,c)},keys:function(a,c){a=p(a,c,!1);var d=[];a&&a.forEach(function(a,c){d.push(c)});return d},key:function(a){return void 0===a||"symbol"==("undefined"===typeof a?"undefined":e(a))?
a:String(a)},exp:function(a){k(k.S,"Reflect",a)}}},function(c,d,a){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},h=a(35)("meta"),k=a(4),m=a(11),p=a(7).f,q=0,l=Object.isExtensible||function(){return!0},f=!a(3)(function(){return l(Object.preventExtensions({}))}),n=function(a){p(a,h,{value:{i:"O"+ ++q,w:{}}})},t=c.exports={KEY:h,NEED:!1,
fastKey:function(a,c){if(!k(a))return"symbol"==("undefined"===typeof a?"undefined":e(a))?a:("string"==typeof a?"S":"P")+a;if(!m(a,h)){if(!l(a))return"F";if(!c)return"E";n(a)}return a[h].i},getWeak:function(a,c){if(!m(a,h)){if(!l(a))return!0;if(!c)return!1;n(a)}return a[h].w},onFreeze:function(a){f&&t.NEED&&l(a)&&!m(a,h)&&n(a);return a}}},function(c,d,a){var e=a(5)("unscopables"),h=Array.prototype;void 0==h[e]&&a(12)(h,e,{});c.exports=function(a){h[e][a]=!0}},function(c,d,a){c.exports=function(a,c){return{enumerable:!(a&
1),configurable:!(a&2),writable:!(a&4),value:c}}},function(c,d,a){var e=0,h=Math.random();c.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++e+h).toString(36))}},function(c,d,a){c.exports=!1},function(c,d,a){var e=a(105),h=a(74);c.exports=Object.keys||function(a){return e(a,h)}},function(c,d,a){var e=a(27),h=Math.max,k=Math.min;c.exports=function(a,c){a=e(a);return 0>a?h(a+c,0):k(a,c)}},function(c,d,a){var e=a(1),h=a(106),k=a(74),m=a(73)("IE_PROTO"),p=function(){},q=function(){var c=
a(71)("iframe"),d=k.length;c.style.display="none";a(75).appendChild(c);c.src="javascript:";c=c.contentWindow.document;c.open();c.write("<script>document.F=Object\x3c/script>");c.close();for(q=c.F;d--;)delete q.prototype[k[d]];return q()};c.exports=Object.create||function(a,c){if(null!==a){p.prototype=e(a);var d=new p;p.prototype=null;d[m]=a}else d=q();return void 0===c?d:h(d,c)}},function(c,d,a){var e=a(105),h=a(74).concat("length","prototype");d.f=Object.getOwnPropertyNames||function(a){return e(a,
h)}},function(c,d,a){var e=a(2),h=a(7),k=a(6),m=a(5)("species");c.exports=function(a){a=e[a];k&&a&&!a[m]&&h.f(a,m,{configurable:!0,get:function(){return this}})}},function(c,d,a){c.exports=function(a,c,d,m){if(!(a instanceof c)||void 0!==m&&m in a)throw TypeError(d+": incorrect invocation!");return a}},function(c,d,a){var e=a(20),h=a(117),k=a(87),m=a(1),p=a(8),q=a(89),l={},f={};c=c.exports=function(a,c,d,u,y){y=y?function(){return a}:q(a);d=e(d,u,c?2:1);u=0;var n,t;if("function"!=typeof y)throw TypeError(a+
" is not iterable!");if(k(y))for(n=p(a.length);n>u;u++){if(y=c?d(m(t=a[u])[0],t[1]):d(a[u]),y===l||y===f)return y}else for(u=y.call(a);!(t=u.next()).done;)if(y=h(u,d,t.value,c),y===l||y===f)return y};c.BREAK=l;c.RETURN=f},function(c,d,a){var e=a(13);c.exports=function(a,c,d){for(var k in c)e(a,k,c[k],d);return a}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.MDCSelectionControl=d.MDCSelectionControlState=void 0;var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=
c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();a(46);c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"ripple",get:function(){}}]);return a}();d.MDCSelectionControlState=void 0;d.MDCSelectionControl=c},function(c,d,a){function e(a){return a&&a.__esModule?a:{default:a}}function h(a,c){if("function"!==
typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.util=d.MDCRippleFoundation=d.MDCRipple=void 0;var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;
"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(23);c=e(c);var m=a(137);e(m);m=a(352);var p=e(m),q=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(98));a=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,f=Array(d),e=0;e<
d;e++)f[e]=arguments[e];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,[this].concat(f));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.disabled=!1;return a}h(c,a);k(c,[{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",
value:function(){return new p.default(c.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(a){var c=p.default.cssClasses.UNBOUNDED;(this.unbounded_=!!a)?this.root_.classList.add(c):this.root_.classList.remove(c)}}],[{key:"attachTo",value:function(a){var d=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded;d=void 0===d?void 0:d;var f=
new c(a);void 0!==d&&(f.unbounded=d);return f}},{key:"createAdapter",value:function(a){var c=q.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return q.supportsCssVariables(window)},isUnbounded:function(){return a.unbounded},isSurfaceActive:function(){return a.root_[c](":active")},isSurfaceDisabled:function(){return a.disabled},addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},registerInteractionHandler:function(c,
d){return a.root_.addEventListener(c,d,q.applyPassive())},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d,q.applyPassive())},registerResizeHandler:function(a){return window.addEventListener("resize",a)},deregisterResizeHandler:function(a){return window.removeEventListener("resize",a)},updateCssVariable:function(c,d){return a.root_.style.setProperty(c,d)},computeBoundingRect:function(){return a.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,
y:window.pageYOffset}}}}}]);return c}(c.default);d.MDCRipple=a;d.MDCRippleFoundation=p.default;d.util=q},function(c,d,a){var e=a(7).f,h=a(11),k=a(5)("toStringTag");c.exports=function(a,c,d){a&&!h(a=d?a:a.prototype,k)&&e(a,k,{configurable:!0,value:c})}},function(c,d,a){var e=a(0),h=a(26),k=a(3),m=a(77);d="["+m+"]";var p=RegExp("^"+d+d+"*"),q=RegExp(d+d+"*$");d=function(a,c,d){var f={},n=k(function(){return!!m[a]()||"\u200b\u0085"!="\u200b\u0085"[a]()});c=f[a]=n?c(l):m[a];d&&(f[d]=c);e(e.P+e.F*n,"String",
f)};var l=d.trim=function(a,c){a=String(h(a));c&1&&(a=a.replace(p,""));c&2&&(a=a.replace(q,""));return a};c.exports=d},function(c,d,a){c.exports={}},function(c,d,a){var e=a(4);c.exports=function(a,c){if(!e(a)||a._t!==c)throw TypeError("Incompatible receiver, "+c+" required!");return a}},function(c,d,a){var e=a(21);c.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==e(a)?a.split(""):Object(a)}},function(c,d,a){d.f={}.propertyIsEnumerable},function(c,d,a){var e=a(21),h=
a(5)("toStringTag"),k="Arguments"==e(function(){return arguments}());c.exports=function(a){var c;if(void 0===a)var d="Undefined";else{if(null===a)var l="Null";else{a:{var f=a=Object(a);try{l=f[h];break a}catch(n){}l=void 0}l="string"==typeof(d=l)?d:k?e(a):"Object"==(c=e(a))&&"function"==typeof a.callee?"Arguments":c}d=l}return d}},function(c,d,a){function e(a,c){if(void 0===a.document||"function"!==typeof a.document.createElement||!(c in h||c in k))return c;var d=c in h?h:k;a=a.document.createElement("div");
return d===h?d[c].styleProperty in a.style?d[c].noPrefix:d[c].webkitPrefix:d[c].noPrefix in a.style?d[c].noPrefix:d[c].webkitPrefix}Object.defineProperty(d,"__esModule",{value:!0});var h={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},
transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},k={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};d.transformStyleProperties=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"];d.getCorrectEventName=function(a,c){return e(a,c)};d.getCorrectPropertyName=function(a,c){return e(a,
c)}},function(c,d,a){d=a(2);var e=d["__core-js_shared__"]||(d["__core-js_shared__"]={});c.exports=function(a){return e[a]||(e[a]={})}},function(c,d,a){var e=a(16),h=a(8),k=a(38);c.exports=function(a){return function(c,d,l){c=e(c);var f=h(c.length);l=k(l,f);if(a&&d!=d)for(;f>l;){if(d=c[l++],d!=d)return!0}else for(;f>l;l++)if((a||l in c)&&c[l]===d)return a||l||0;return!a&&-1}}},function(c,d,a){d.f=Object.getOwnPropertySymbols},function(c,d,a){var e=a(21);c.exports=Array.isArray||function(a){return"Array"==
e(a)}},function(c,d,a){var e=a(4),h=a(21),k=a(5)("match");c.exports=function(a){var c;return e(a)&&(void 0!==(c=a[k])?!!c:"RegExp"==h(a))}},function(c,d,a){var e=a(5)("iterator"),h=!1;try{var k=[7][e]();k["return"]=function(){h=!0};Array.from(k,function(){throw 2;})}catch(m){}c.exports=function(a,c){if(!c&&!h)return!1;var d=!1;try{c=[7];var l=c[e]();l.next=function(){return{done:d=!0}};c[e]=function(){return l};a(c)}catch(f){}return d}},function(c,d,a){var e=a(1);c.exports=function(){var a=e(this),
c="";a.global&&(c+="g");a.ignoreCase&&(c+="i");a.multiline&&(c+="m");a.unicode&&(c+="u");a.sticky&&(c+="y");return c}},function(c,d,a){var e=a(12),h=a(13),k=a(3),m=a(26),p=a(5);c.exports=function(a,c,d){var f=p(a);d=d(m,f,""[a]);var l=d[0],q=d[1];k(function(){var c={};c[f]=function(){return 7};return 7!=""[a](c)})&&(h(String.prototype,a,l),e(RegExp.prototype,f,2==c?function(a,c){return q.call(a,this,c)}:function(a){return q.call(a,this)}))}},function(c,d,a){var e=a(1),h=a(10),k=a(5)("species");c.exports=
function(a,c){a=e(a).constructor;var d;return void 0===a||void 0==(d=e(a)[k])?c:h(d)}},function(c,d,a){var e=a(2),h=a(0),k=a(13),m=a(44),p=a(32),q=a(43),l=a(42),f=a(4),n=a(3),t=a(60),w=a(47),u=a(78);c.exports=function(a,c,d,v,A,C){var y=e[a],z=y,x=A?"set":"add",J=z&&z.prototype,B={},L=function(a){var c=J[a];k(J,a,"delete"==a?function(a){return C&&!f(a)?!1:c.call(this,0===a?0:a)}:"has"==a?function(a){return C&&!f(a)?!1:c.call(this,0===a?0:a)}:"get"==a?function(a){return C&&!f(a)?void 0:c.call(this,
0===a?0:a)}:"add"==a?function(a){c.call(this,0===a?0:a);return this}:function(a,d){c.call(this,0===a?0:a,d);return this})};if("function"==typeof z&&(C||J.forEach&&!n(function(){(new z).entries().next()}))){var E=new z;d=E[x](C?{}:-0,1)!=E;var F=n(function(){E.has(1)}),G=t(function(a){new z(a)}),H=!C&&n(function(){for(var a=new z,c=5;c--;)a[x](c,c);return!a.has(-0)});G||(z=c(function(c,d){l(c,z,a);c=u(new y,c,z);void 0!=d&&q(d,A,c[x],c);return c}),z.prototype=J,J.constructor=z);if(F||H)L("delete"),
L("has"),A&&L("get");(H||d)&&L(x);C&&J.clear&&delete J.clear}else z=v.getConstructor(c,a,A,x),m(z.prototype,d),p.NEED=!0;w(z,a);B[a]=z;h(h.G+h.W+h.F*(z!=y),B);C||v.setStrong(z,a,A);return z}},function(c,d,a){d=a(2);var e=a(12),h=a(35);a=h("typed_array");h=h("view");for(var k=!(!d.ArrayBuffer||!d.DataView),m=k,p=0,q,l="Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ");9>p;)(q=d[l[p++]])?(e(q.prototype,a,!0),e(q.prototype,h,!0)):
m=!1;c.exports={ABV:k,CONSTR:m,TYPED:a,VIEW:h}},function(c,d,a){c.exports=a(36)||!a(3)(function(){var c=Math.random();__defineSetter__.call(null,c,function(){});delete a(2)[c]})},function(c,d,a){var e=a(0);c.exports=function(a){e(e.S,a,{of:function(){for(var a=arguments.length,c=Array(a);a--;)c[a]=arguments[a];return new this(c)}})}},function(c,d,a){var e=a(0),h=a(10),k=a(20),m=a(43);c.exports=function(a){e(e.S,a,{from:function(a,c,d){var f;h(this);(f=void 0!==c)&&h(c);if(void 0==a)return new this;
var e=[];if(f){var l=0;var q=k(c,d,2);m(a,!1,function(a){e.push(q(a,l++))})}else m(a,!1,e.push,e);return new this(e)}})}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=a(397);Object.defineProperty(d,"FOCUSABLE_ELEMENTS",{enumerable:!0,get:function(){return e.FOCUSABLE_ELEMENTS}});var h=a(398);Object.defineProperty(d,"MDCSlidableDrawerFoundation",{enumerable:!0,get:function(){return h.MDCSlidableDrawerFoundation}})},function(c,d,a){d="function"===typeof Symbol&&"symbol"===
typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"===typeof window?"undefined":d(window))&&(a=window)}c.exports=a},function(c,d,a){d=a(4);var e=a(2).document,h=d(e)&&d(e.createElement);c.exports=function(a){return h?e.createElement(a):{}}},function(c,d,a){var e=a(2),h=a(24),
k=a(36),m=a(104),p=a(7).f;c.exports=function(a){var c=h.Symbol||(h.Symbol=k?{}:e.Symbol||{});"_"==a.charAt(0)||a in c||p(c,a,{value:m.f(a)})}},function(c,d,a){var e=a(55)("keys"),h=a(35);c.exports=function(a){return e[a]||(e[a]=h(a))}},function(c,d,a){c.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(c,d,a){d=a(2).document;c.exports=d&&d.documentElement},function(c,d,a){var e=a(4),h=a(1),k=function(a,c){h(a);if(!e(c)&&null!==
c)throw TypeError(c+": can't set as prototype!");};c.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(c,d,e){try{e=a(20)(Function.call,a(17).f(Object.prototype,"__proto__").set,2),e(c,[]),d=!(c instanceof Array)}catch(l){d=!0}return function(a,c){k(a,c);d?a.__proto__=c:e(a,c);return a}}({},!1):void 0),check:k}},function(c,d,a){c.exports="\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(c,d,
a){var e=a(4),h=a(76).set;c.exports=function(a,c,d){c=c.constructor;var k;c!==d&&"function"==typeof c&&(k=c.prototype)!==d.prototype&&e(k)&&h&&h(a,k);return a}},function(c,d,a){var e=a(27),h=a(26);c.exports=function(a){var c=String(h(this)),d="";a=e(a);if(0>a||Infinity==a)throw RangeError("Count can't be negative");for(;0<a;(a>>>=1)&&(c+=c))a&1&&(d+=c);return d}},function(c,d,a){c.exports=Math.sign||function(a){return 0==(a=+a)||a!=a?a:0>a?-1:1}},function(c,d,a){d=Math.expm1;c.exports=!d||22025.465794806718<
d(10)||22025.465794806718>d(10)||-2E-17!=d(-2E-17)?function(a){return 0==(a=+a)?a:-1E-6<a&&1E-6>a?a+a*a/2:Math.exp(a)-1}:d},function(c,d,a){var e=a(27),h=a(26);c.exports=function(a){return function(c,d){c=String(h(c));d=e(d);var k=c.length,l;if(0>d||d>=k)return a?"":void 0;var f=c.charCodeAt(d);return 55296>f||56319<f||d+1===k||56320>(l=c.charCodeAt(d+1))||57343<l?a?c.charAt(d):f:a?c.slice(d,d+2):(f-55296<<10)+(l-56320)+65536}}},function(c,d,a){var e=a(36),h=a(0),k=a(13),m=a(12),p=a(11),q=a(49),l=
a(84),f=a(47),n=a(18),t=a(5)("iterator"),w=!([].keys&&"next"in[].keys()),u=function(){return this};c.exports=function(a,c,d,v,A,C,K){l(d,c,v);v=function(a){return!w&&a in B?B[a]:function(){return new d(this,a)}};var y=c+" Iterator",z="values"==A,x=!1,B=a.prototype,L=B[t]||B["@@iterator"]||A&&B[A],E=L||v(A),F=A?z?v("entries"):E:void 0,G="Array"==c?B.entries||L:L,H;G&&(a=n(G.call(new a)),a!==Object.prototype&&a.next&&(f(a,y,!0),e||p(a,t)||m(a,t,u)));z&&L&&"values"!==L.name&&(x=!0,E=function(){return L.call(this)});
e&&!K||!w&&!x&&B[t]||m(B,t,E);q[c]=E;q[y]=u;if(A){var R={values:z?E:v("values"),keys:C?E:v("keys"),entries:F};if(K)for(H in R)H in B||k(B,H,R[H]);else h(h.P+h.F*(w||x),c,R)}return R}},function(c,d,a){var e=a(39),h=a(34),k=a(47),m={};a(12)(m,a(5)("iterator"),function(){return this});c.exports=function(a,c,d){a.prototype=e(m,{next:h(1,d)});k(a,c+" Iterator")}},function(c,d,a){var e=a(59),h=a(26);c.exports=function(a,c,d){if(e(c))throw TypeError("String#"+d+" doesn't accept regex!");return String(h(a))}},
function(c,d,a){var e=a(5)("match");c.exports=function(a){var c=/./;try{"/./"[a](c)}catch(m){try{return c[e]=!1,!"/./"[a](c)}catch(p){}}return!0}},function(c,d,a){var e=a(49),h=a(5)("iterator"),k=Array.prototype;c.exports=function(a){return void 0!==a&&(e.Array===a||k[h]===a)}},function(c,d,a){var e=a(7),h=a(34);c.exports=function(a,c,d){c in a?e.f(a,c,h(0,d)):a[c]=d}},function(c,d,a){var e=a(53),h=a(5)("iterator"),k=a(49);c.exports=a(24).getIteratorMethod=function(a){if(void 0!=a)return a[h]||a["@@iterator"]||
k[e(a)]}},function(c,d,a){var e=a(239);c.exports=function(a,c){return new (e(a))(c)}},function(c,d,a){var e=a(9),h=a(38),k=a(8);c.exports=function(a){var c=e(this),d=k(c.length),l=arguments.length,f=h(1<l?arguments[1]:void 0,d);l=2<l?arguments[2]:void 0;for(d=void 0===l?d:h(l,d);d>f;)c[f++]=a;return c}},function(c,d,a){d=a(33);var e=a(120),h=a(49),k=a(16);c.exports=a(83)(Array,"Array",function(a,c){this._t=k(a);this._i=0;this._k=c},function(){var a=this._t,c=this._k,d=this._i++;return!a||d>=a.length?
(this._t=void 0,e(1)):"keys"==c?e(0,d):"values"==c?e(0,a[d]):e(0,[d,a[d]])},"values");h.Arguments=h.Array;d("keys");d("values");d("entries")},function(c,d,a){var e=a(20),h=a(110),k=a(75),m=a(71),p=a(2),q=p.process;d=p.setImmediate;var l=p.clearImmediate,f=p.MessageChannel,n=p.Dispatch,t=0,w={},u=function(){var a=+this;if(w.hasOwnProperty(a)){var c=w[a];delete w[a];c()}},y=function(a){u.call(a.data)};if(!d||!l)if(d=function(a){for(var c=[],d=1;arguments.length>d;)c.push(arguments[d++]);w[++t]=function(){h("function"==
typeof a?a:Function(a),c)};x(t);return t},l=function(a){delete w[a]},"process"==a(21)(q))var x=function(a){q.nextTick(e(u,a,1))};else n&&n.now?x=function(a){n.now(e(u,a,1))}:f?(a=new f,f=a.port2,a.port1.onmessage=y,x=e(f.postMessage,f,1)):p.addEventListener&&"function"==typeof postMessage&&!p.importScripts?(x=function(a){p.postMessage(a+"","*")},p.addEventListener("message",y,!1)):x="onreadystatechange"in m("script")?function(a){k.appendChild(m("script")).onreadystatechange=function(){k.removeChild(this);
u.call(a)}}:function(a){setTimeout(e(u,a,1),0)};c.exports={set:d,clear:l}},function(c,d,a){var e=a(2),h=a(93).set,k=e.MutationObserver||e.WebKitMutationObserver,m=e.process,p=e.Promise,q="process"==a(21)(m);c.exports=function(){var a,c,d=function(){var d;for(q&&(d=m.domain)&&d.exit();a;){var f=a.fn;a=a.next;try{f()}catch(v){throw a?t():c=void 0,v;}}c=void 0;d&&d.enter()};if(q)var t=function(){m.nextTick(d)};else if(k){var w=!0,u=document.createTextNode("");(new k(d)).observe(u,{characterData:!0});
t=function(){u.data=w=!w}}else if(p&&p.resolve){var y=p.resolve();t=function(){y.then(d)}}else t=function(){h.call(e,d)};return function(d){d={fn:d,next:void 0};c&&(c.next=d);a||(a=d,t());c=d}}},function(c,d,a){function e(a){var c,d;this.promise=new a(function(a,e){if(void 0!==c||void 0!==d)throw TypeError("Bad Promise constructor");c=a;d=e});this.resolve=h(c);this.reject=h(d)}var h=a(10);c.exports.f=function(a){return new e(a)}},function(c,d,a){function e(a,c,d){var f=Array(d);d=8*d-c-1;var e=(1<<
d)-1,l=e>>1,n=23===c?P(2,-24)-P(2,-77):0,h=0,k=0>a||0===a&&0>1/a?1:0,q;a=S(a);if(a!=a||a===R){a=a!=a?1:0;var m=e}else m=U(Z(a)/aa),1>a*(q=P(2,-m))&&(m--,q*=2),a=1<=m+l?a+n/q:a+n*P(2,1-l),2<=a*q&&(m++,q/=2),m+l>=e?(a=0,m=e):1<=m+l?(a=(a*q-1)*P(2,c),m+=l):(a=a*P(2,l-1)*P(2,c),m=0);for(;8<=c;f[h++]=a&255,a/=256,c-=8);m=m<<c|a;for(d+=c;0<d;f[h++]=m&255,m/=256,d-=8);f[--h]|=128*k;return f}function h(a,c,d){var f=8*d-c-1,e=(1<<f)-1,l=e>>1;f-=7;--d;var n=a[d--],h=n&127;for(n>>=7;0<f;h=256*h+a[d],d--,f-=
8);var k=h&(1<<-f)-1;h>>=-f;for(f+=c;0<f;k=256*k+a[d],d--,f-=8);if(0===h)h=1-l;else{if(h===e)return k?NaN:n?-R:R;k+=P(2,c);h-=l}return(n?-1:1)*k*P(2,h-c)}function k(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]}function m(a){return[a&255]}function p(a){return[a&255,a>>8&255]}function q(a){return[a&255,a>>8&255,a>>16&255,a>>24&255]}function l(a){return e(a,52,8)}function f(a){return e(a,23,4)}function n(a,c,d){B(a.prototype,c,{get:function(){return this[d]}})}function t(a,c,d,f){d=I(+d);if(d+c>a[W])throw H("Wrong index!");
d+=a[Q];a=a[V]._b.slice(d,d+c);return f?a:a.reverse()}function w(a,c,d,f,e,l){var n=I(+d);if(n+c>a[W])throw H("Wrong index!");d=a[V]._b;a=n+a[Q];f=f(+e);for(e=0;e<c;e++)d[a+e]=f[l?e:c-e-1]}var u=a(2),y=a(6),x=a(36);c=a(65);var z=a(12),v=a(44),A=a(3),C=a(42),K=a(27),O=a(8),I=a(129),J=a(40).f,B=a(7).f,L=a(91);a=a(47);var E=u.ArrayBuffer,F=u.DataView,G=u.Math,H=u.RangeError,R=u.Infinity,M=E,S=G.abs,P=G.pow,U=G.floor,Z=G.log,aa=G.LN2,V=y?"_b":"buffer",W=y?"_l":"byteLength",Q=y?"_o":"byteOffset";if(c.ABV){if(!A(function(){E(1)})||
!A(function(){new E(-1)})||A(function(){new E;new E(1.5);new E(NaN);return"ArrayBuffer"!=E.name})){E=function(a){C(this,E);return new M(I(a))};u=E.prototype=M.prototype;J=J(M);y=0;for(var N;J.length>y;)(N=J[y++])in E||z(E,N,M[N]);x||(u.constructor=E)}N=new F(new E(2));var D=F.prototype.setInt8;N.setInt8(0,2147483648);N.setInt8(1,2147483649);!N.getInt8(0)&&N.getInt8(1)||v(F.prototype,{setInt8:function(a,c){D.call(this,a,c<<24>>24)},setUint8:function(a,c){D.call(this,a,c<<24>>24)}},!0)}else E=function(a){C(this,
E,"ArrayBuffer");a=I(a);this._b=L.call(Array(a),0);this[W]=a},F=function(a,c,d){C(this,F,"DataView");C(a,E,"DataView");var f=a[W];c=K(c);if(0>c||c>f)throw H("Wrong offset!");d=void 0===d?f-c:O(d);if(c+d>f)throw H("Wrong length!");this[V]=a;this[Q]=c;this[W]=d},y&&(n(E,"byteLength","_l"),n(F,"buffer","_b"),n(F,"byteLength","_l"),n(F,"byteOffset","_o")),v(F.prototype,{getInt8:function(a){return t(this,1,a)[0]<<24>>24},getUint8:function(a){return t(this,1,a)[0]},getInt16:function(a,c){a=t(this,2,a,c);
return(a[1]<<8|a[0])<<16>>16},getUint16:function(a,c){a=t(this,2,a,c);return a[1]<<8|a[0]},getInt32:function(a,c){return k(t(this,4,a,c))},getUint32:function(a,c){return k(t(this,4,a,c))>>>0},getFloat32:function(a,c){return h(t(this,4,a,c),23,4)},getFloat64:function(a,c){return h(t(this,8,a,c),52,8)},setInt8:function(a,c){w(this,1,a,m,c)},setUint8:function(a,c){w(this,1,a,m,c)},setInt16:function(a,c,d){w(this,2,a,p,c,d)},setUint16:function(a,c,d){w(this,2,a,p,c,d)},setInt32:function(a,c,d){w(this,
4,a,q,c,d)},setUint32:function(a,c,d){w(this,4,a,q,c,d)},setFloat32:function(a,c,d){w(this,4,a,f,c,d)},setFloat64:function(a,c,d){w(this,8,a,l,c,d)}});a(E,"ArrayBuffer");a(F,"DataView");z(F.prototype,c.VIEW,!0);d.ArrayBuffer=E;d.DataView=F},function(c,d,a){c.exports=function(a){a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),
a.webpackPolyfill=1);return a}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=void 0,h=void 0;d.supportsCssVariables=function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if("boolean"===typeof e&&!c)return e;if(a.CSS&&"function"===typeof a.CSS.supports){c=a.CSS.supports("--css-vars","yes");var d=a.CSS.supports("(--css-vars: yes)")&&a.CSS.supports("color","#00000000");c||d?(d=a.document,c=d.createElement("div"),c.className="mdc-ripple-surface--test-edge-var-bug",
d.body.appendChild(c),d=a.getComputedStyle(c),d=null!==d&&"solid"===d.borderTopStyle,c.remove(),e=!d):e=!1;return e}};d.applyPassive=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(void 0===h||c){var d=!1;try{a.document.addEventListener("test",null,{get passive(){d=!0}})}catch(q){}h=d}return h?{passive:!0}:!1};d.getMatchesProperty=function(a){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(c){return c in
a}).pop()};d.getNormalizedEventCoords=function(a,c,d){var e=c.x+d.left;c=c.y+d.top;"touchstart"===a.type?(e=a.changedTouches[0].pageX-e,a=a.changedTouches[0].pageY-c):(e=a.pageX-e,a=a.pageY-c);return{x:e,y:a}}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.util=d.MDCSimpleMenuFoundation=d.MDCSimpleMenu=void 0;if((c=a(100))&&c.__esModule)var e=c;else{var h={};if(null!=c)for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(h[e]=c[e]);h.default=c;e=h}a=a(372);d.MDCSimpleMenu=a.MDCSimpleMenu;
d.MDCSimpleMenuFoundation=a.MDCSimpleMenuFoundation;d.util=e},function(c,d,a){function e(a,c,d){if(0===a||1===a)return a;var e=a*c;c+=a*(d-c);e+=a*(c-e);return e+a*(c+a*(d+a*(1-d)-c)-e)}Object.defineProperty(d,"__esModule",{value:!0});var h=void 0;d.getTransformPropertyName=function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(void 0===h||c)h="transform"in a.document.createElement("div").style?"transform":"webkitTransform";return h};d.clamp=function(a){return Math.min(2<arguments.length&&
void 0!==arguments[2]?arguments[2]:1,Math.max(1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,a))};d.bezierProgress=function(a,c,d,h,l){a:if(0>=a)a=0;else if(1<=a)a=1;else{for(var f=a,n=0,k=1,q=0,m=0;8>m;m++){q=e(f,c,h);var p=(e(f+1E-6,c,h)-q)/1E-6;if(1E-6>Math.abs(q-a)){a=f;break a}else if(1E-6>Math.abs(p))break;else q<a?n=f:k=f,f-=(q-a)/p}for(m=0;1E-6<Math.abs(q-a)&&8>m;m++)q<a?(n=f,f=(f+k)/2):(k=f,f=(f+n)/2),q=e(f,c,h);a=f}return e(a,d,l)}},function(c,d,a){Object.defineProperty(d,"__esModule",
{value:!0});d.remapEvent=function(a){if(!("ontouchstart"in(1<arguments.length&&void 0!==arguments[1]?arguments[1]:window).document))switch(a){case "touchstart":return"pointerdown";case "touchmove":return"pointermove";case "touchend":return"pointerup"}return a};d.getTransformPropertyName=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(void 0===k||c)k="transform"in a.document.createElement("div").style?"transform":
"-webkit-transform";return k};d.supportsCssCustomProperties=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;return"CSS"in a?a.CSS.supports("(--color: red)"):!1};d.applyPassive=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(void 0===m||c){var d=!1;try{a.document.addEventListener("test",null,{get passive(){d=!0}})}catch(f){}m=d}return m?{passive:!0}:!1};d.saveElementTabState=
function(a){a.hasAttribute("tabindex")&&a.setAttribute(e,a.getAttribute("tabindex"));a.setAttribute(h,!0)};d.restoreElementTabState=function(a){a.hasAttribute(h)&&(a.hasAttribute(e)?(a.setAttribute("tabindex",a.getAttribute(e)),a.removeAttribute(e)):a.removeAttribute("tabindex"),a.removeAttribute(h))};var e="data-mdc-tabindex",h="data-mdc-tabindex-handled",k=void 0,m=void 0},function(c,d,a){(function(c){function d(a,c,d){a[c]||Object.defineProperty(a,c,{writable:!0,configurable:!0,value:d})}a(148);
a(345);a(346);if(c._babelPolyfill)throw Error("only one instance of babel-polyfill is allowed");c._babelPolyfill=!0;d(String.prototype,"padLeft","".padStart);d(String.prototype,"padRight","".padEnd);"pop reverse shift keys values entries indexOf every some forEach map filter find findIndex includes join slice concat push splice unshift sort lastIndexOf reduce reduceRight copyWithin fill".split(" ").forEach(function(a){[][a]&&d(Array,a,Function.call.bind([][a]))})}).call(d,a(70))},function(c,d,a){c.exports=
!a(6)&&!a(3)(function(){return 7!=Object.defineProperty(a(71)("div"),"a",{get:function(){return 7}}).a})},function(c,d,a){d.f=a(5)},function(c,d,a){var e=a(11),h=a(16),k=a(56)(!1),m=a(73)("IE_PROTO");c.exports=function(a,c){a=h(a);var d=0,f=[],n;for(n in a)n!=m&&e(a,n)&&f.push(n);for(;c.length>d;)e(a,n=c[d++])&&(~k(f,n)||f.push(n));return f}},function(c,d,a){var e=a(7),h=a(1),k=a(37);c.exports=a(6)?Object.defineProperties:function(a,c){h(a);for(var d=k(c),l=d.length,f=0,n;l>f;)e.f(a,n=d[f++],c[n]);
return a}},function(c,d,a){d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a(16),h=a(40).f,k={}.toString,m="object"==("undefined"===typeof window?"undefined":d(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];c.exports.f=function(a){if(m&&"[object Window]"==k.call(a))try{var c=h(a)}catch(l){c=m.slice()}else c=
h(e(a));return c}},function(c,d,a){var e=a(37),h=a(57),k=a(52),m=a(9),p=a(51),q=Object.assign;c.exports=!q||a(3)(function(){var a={},c={},d=Symbol();a[d]=7;"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return 7!=q({},a)[d]||"abcdefghijklmnopqrst"!=Object.keys(q({},c)).join("")})?function(a,c){for(var d=m(a),f=arguments.length,l=1,q=h.f,y=k.f;f>l;)for(var x=p(arguments[l++]),z=q?e(x).concat(q(x)):e(x),v=z.length,A=0,C;v>A;)y.call(x,C=z[A++])&&(d[C]=x[C]);return d}:q},function(c,d,a){var e=
a(10),h=a(4),k=a(110),m=[].slice,p={};c.exports=Function.bind||function(a){var c=e(this),d=m.call(arguments,1),n=function w(){var f=d.concat(m.call(arguments));if(this instanceof w){var e=f.length;if(!(e in p)){for(var l=[],n=0;n<e;n++)l[n]="a["+n+"]";p[e]=Function("F,a","return new F("+l.join(",")+")")}f=p[e](c,f)}else f=k(c,f,a);return f};h(c.prototype)&&(n.prototype=c.prototype);return n}},function(c,d,a){c.exports=function(a,c,d){var e=void 0===d;switch(c.length){case 0:return e?a():a.call(d);
case 1:return e?a(c[0]):a.call(d,c[0]);case 2:return e?a(c[0],c[1]):a.call(d,c[0],c[1]);case 3:return e?a(c[0],c[1],c[2]):a.call(d,c[0],c[1],c[2]);case 4:return e?a(c[0],c[1],c[2],c[3]):a.call(d,c[0],c[1],c[2],c[3])}return a.apply(d,c)}},function(c,d,a){var e=a(2).parseInt,h=a(48).trim;d=a(77);var k=/^[-+]?0[xX]/;c.exports=8!==e(d+"08")||22!==e(d+"0x16")?function(a,c){a=h(String(a),3);return e(a,c>>>0||(k.test(a)?16:10))}:e},function(c,d,a){var e=a(2).parseFloat,h=a(48).trim;c.exports=-Infinity!==
1/e(a(77)+"-0")?function(a){a=h(String(a),3);var c=e(a);return 0===c&&"-"==a.charAt(0)?-0:c}:e},function(c,d,a){var e=a(21);c.exports=function(a,c){if("number"!=typeof a&&"Number"!=e(a))throw TypeError(c);return+a}},function(c,d,a){var e=a(4),h=Math.floor;c.exports=function(a){return!e(a)&&isFinite(a)&&h(a)===a}},function(c,d,a){c.exports=Math.log1p||function(a){return-1E-8<(a=+a)&&1E-8>a?a-a*a/2:Math.log(1+a)}},function(c,d,a){var e=a(80);d=Math.pow;var h=d(2,-52),k=d(2,-23),m=d(2,127)*(2-k),p=d(2,
-126);c.exports=Math.fround||function(a){var c=Math.abs(a);a=e(a);if(c<p)return a*(c/p/k+1/h-1/h)*p*k;var d=(1+k/h)*c;c=d-(d-c);return c>m||c!=c?Infinity*a:a*c}},function(c,d,a){var e=a(1);c.exports=function(a,c,d,p){try{return p?c(e(d)[0],d[1]):c(d)}catch(q){throw c=a["return"],void 0!==c&&e(c.call(a)),q;}}},function(c,d,a){var e=a(10),h=a(9),k=a(51),m=a(8);c.exports=function(a,c,d,f,n){e(c);a=h(a);var l=k(a),q=m(a.length),p=n?q-1:0,y=n?-1:1;if(2>d)for(;;){if(p in l){f=l[p];p+=y;break}p+=y;if(n?
0>p:q<=p)throw TypeError("Reduce of empty array with no initial value");}for(;n?0<=p:q>p;p+=y)p in l&&(f=c(f,l[p],p,a));return f}},function(c,d,a){var e=a(9),h=a(38),k=a(8);c.exports=[].copyWithin||function(a,c){var d=e(this),l=k(d.length),f=h(a,l),n=h(c,l),t=2<arguments.length?arguments[2]:void 0;l=Math.min((void 0===t?l:h(t,l))-n,l-f);t=1;n<f&&f<n+l&&(t=-1,n+=l-1,f+=l-1);for(;0<l--;)n in d?d[f]=d[n]:delete d[f],f+=t,n+=t;return d}},function(c,d,a){c.exports=function(a,c){return{value:c,done:!!a}}},
function(c,d,a){a(6)&&"g"!=/./g.flags&&a(7).f(RegExp.prototype,"flags",{configurable:!0,get:a(61)})},function(c,d,a){c.exports=function(a){try{return{e:!1,v:a()}}catch(h){return{e:!0,v:h}}}},function(c,d,a){var e=a(1),h=a(4),k=a(95);c.exports=function(a,c){e(a);if(h(c)&&c.constructor===a)return c;a=k.f(a);var d=a.resolve;d(c);return a.promise}},function(c,d,a){var e=a(125),h=a(50);c.exports=a(64)("Map",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{get:function(a){return(a=
e.getEntry(h(this,"Map"),a))&&a.v},set:function(a,c){return e.def(h(this,"Map"),0===a?0:a,c)}},e,!0)},function(c,d,a){var e=a(7).f,h=a(39),k=a(44),m=a(20),p=a(42),q=a(43),l=a(83),f=a(120),n=a(41),t=a(6),w=a(32).fastKey,u=a(50),y=t?"_s":"size",x=function(a,c){var d=w(c);if("F"!==d)return a._i[d];for(a=a._f;a;a=a.n)if(a.k==c)return a};c.exports={getConstructor:function(a,c,d,f){var l=a(function(a,e){p(a,l,c,"_i");a._t=c;a._i=h(null);a._f=void 0;a._l=void 0;a[y]=0;void 0!=e&&q(e,d,a[f],a)});k(l.prototype,
{clear:function(){for(var a=u(this,c),d=a._i,f=a._f;f;f=f.n)f.r=!0,f.p&&(f.p=f.p.n=void 0),delete d[f.i];a._f=a._l=void 0;a[y]=0},"delete":function(a){var d=u(this,c);if(a=x(d,a)){var f=a.n,e=a.p;delete d._i[a.i];a.r=!0;e&&(e.n=f);f&&(f.p=e);d._f==a&&(d._f=f);d._l==a&&(d._l=e);d[y]--}return!!a},forEach:function(a){u(this,c);for(var d=m(a,1<arguments.length?arguments[1]:void 0,3),f;f=f?f.n:this._f;)for(d(f.v,f.k,this);f&&f.r;)f=f.p},has:function(a){return!!x(u(this,c),a)}});t&&e(l.prototype,"size",
{get:function(){return u(this,c)[y]}});return l},def:function(a,c,d){var f=x(a,c),e;f?f.v=d:(a._l=f={i:e=w(c,!0),k:c,v:d,p:c=a._l,n:void 0,r:!1},a._f||(a._f=f),c&&(c.n=f),a[y]++,"F"!==e&&(a._i[e]=f));return a},getEntry:x,setStrong:function(a,c,d){l(a,c,function(a,d){this._t=u(a,c);this._k=d;this._l=void 0},function(){for(var a=this._k,c=this._l;c&&c.r;)c=c.p;return this._t&&(this._l=c=c?c.n:this._t._f)?"keys"==a?f(0,c.k):"values"==a?f(0,c.v):f(0,[c.k,c.v]):(this._t=void 0,f(1))},d?"entries":"values",
!d,!0);n(c)}}},function(c,d,a){var e=a(125),h=a(50);c.exports=a(64)("Set",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{add:function(a){return e.def(h(this,"Set"),a=0===a?0:a,a)}},e)},function(c,d,a){d=a(29)(0);var e=a(13),h=a(32),k=a(108),m=a(128),p=a(4),q=a(3),l=a(50),f=h.getWeak,n=Object.isExtensible,t=m.ufstore,w={},u=function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},y={get:function(a){if(p(a)){var c=f(a);return!0===
c?t(l(this,"WeakMap")).get(a):c?c[this._i]:void 0}},set:function(a,c){return m.def(l(this,"WeakMap"),a,c)}},x=c.exports=a(64)("WeakMap",u,y,m,!0,!0);if(q(function(){return 7!=(new x).set((Object.freeze||Object)(w),7).get(w)})){var z=m.getConstructor(u,"WeakMap");k(z.prototype,y);h.NEED=!0;d(["delete","has","get","set"],function(a){var c=x.prototype,d=c[a];e(c,a,function(c,f){return p(c)&&!n(c)?(this._f||(this._f=new z),c=this._f[a](c,f),"set"==a?this:c):d.call(this,c,f)})})}},function(c,d,a){var e=
a(44),h=a(32).getWeak,k=a(1),m=a(4),p=a(42),q=a(43);d=a(29);var l=a(11),f=a(50),n=d(5),t=d(6),w=0,u=function(a){return a._l||(a._l=new y)},y=function(){this.a=[]},x=function(a,c){return n(a.a,function(a){return a[0]===c})};y.prototype={get:function(a){if(a=x(this,a))return a[1]},has:function(a){return!!x(this,a)},set:function(a,c){var d=x(this,a);d?d[1]=c:this.a.push([a,c])},"delete":function(a){var c=t(this.a,function(c){return c[0]===a});~c&&this.a.splice(c,1);return!!~c}};c.exports={getConstructor:function(a,
c,d,n){var k=a(function(a,f){p(a,k,c,"_i");a._t=c;a._i=w++;a._l=void 0;void 0!=f&&q(f,d,a[n],a)});e(k.prototype,{"delete":function(a){if(!m(a))return!1;var d=h(a);return!0===d?u(f(this,c))["delete"](a):d&&l(d,this._i)&&delete d[this._i]},has:function(a){if(!m(a))return!1;var d=h(a);return!0===d?u(f(this,c)).has(a):d&&l(d,this._i)}});return k},def:function(a,c,d){var f=h(k(c),!0);!0===f?u(a).set(c,d):f[a._i]=d;return a},ufstore:u}},function(c,d,a){var e=a(27),h=a(8);c.exports=function(a){if(void 0===
a)return 0;a=e(a);var c=h(a);if(a!==c)throw RangeError("Wrong length!");return c}},function(c,d,a){var e=a(40),h=a(57),k=a(1);d=a(2).Reflect;c.exports=d&&d.ownKeys||function(a){var c=e.f(k(a)),d=h.f;return d?c.concat(d(a)):c}},function(c,d,a){function e(a,c,d,t,w,u,y,x){var f=0;y=y?p(y,x,3):!1;for(var l;f<t;){if(f in d){x=y?y(d[f],f,c):d[f];l=!1;k(x)&&(l=x[q],l=void 0!==l?!!l:h(x));if(l&&0<u)w=e(a,c,x,m(x.length),w,u-1)-1;else{if(9007199254740991<=w)throw TypeError();a[w]=x}w++}f++}return w}var h=
a(58),k=a(4),m=a(8),p=a(20),q=a(5)("isConcatSpreadable");c.exports=e},function(c,d,a){var e=a(8),h=a(79),k=a(26);c.exports=function(a,c,d,l){a=String(k(a));var f=a.length;d=void 0===d?" ":String(d);c=e(c);if(c<=f||""==d)return a;c-=f;f=h.call(d,Math.ceil(c/d.length));f.length>c&&(f=f.slice(0,c));return l?f+a:a+f}},function(c,d,a){var e=a(37),h=a(16),k=a(52).f;c.exports=function(a){return function(c){c=h(c);for(var d=e(c),l=d.length,f=0,n=[],t;l>f;)k.call(c,t=d[f++])&&n.push(a?[t,c[t]]:c[t]);return n}}},
function(c,d,a){var e=a(53),h=a(135);c.exports=function(a){return function(){if(e(this)!=a)throw TypeError(a+"#toJSON isn't generic");return h(this)}}},function(c,d,a){var e=a(43);c.exports=function(a,c){var d=[];e(a,!1,d.push,d,c);return d}},function(c,d,a){c.exports=Math.scale||function(a,c,d,m,p){return 0===arguments.length||a!=a||c!=c||d!=d||m!=m||p!=p?NaN:Infinity===a||-Infinity===a?a:(a-c)*(p-m)/(d-c)+m}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,
c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},
{key:"addClass",value:function(a){}},{key:"removeClass",value:function(a){}},{key:"registerInteractionHandler",value:function(a,c){}},{key:"deregisterInteractionHandler",value:function(a,c){}},{key:"registerResizeHandler",value:function(a){}},{key:"deregisterResizeHandler",value:function(a){}},{key:"updateCssVariable",value:function(a,c){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}]);return a}();d.default=c},function(c,d,a){Object.defineProperty(d,
"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-text-field",UPGRADED:"mdc-text-field--upgraded",DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",INVALID:"mdc-text-field--invalid",HELPTEXT_PERSISTENT:"mdc-text-field-helptext--persistent",HELPTEXT_VALIDATION_MSG:"mdc-text-field-helptext--validation-msg",LABEL_FLOAT_ABOVE:"mdc-text-field__label--float-above",LABEL_SHAKE:"mdc-text-field__label--shake",BOX:"mdc-text-field--box",TEXT_FIELD_ICON:"mdc-text-field__icon",TEXTAREA:"mdc-text-field--textarea",
BOTTOM_LINE_ACTIVE:"mdc-text-field__bottom-line--active"};d.strings={ARIA_HIDDEN:"aria-hidden",ROLE:"role",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-text-field__label",ICON_SELECTOR:".mdc-text-field__icon",ICON_EVENT:"MDCTextField:icon",BOTTOM_LINE_SELECTOR:".mdc-text-field__bottom-line"}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in
e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"addClass",value:function(a){}},{key:"removeClass",value:function(a){}},{key:"addClassToLabel",value:function(a){}},{key:"removeClassFromLabel",value:function(a){}},{key:"setIconAttr",value:function(a,c){}},{key:"eventTargetHasClass",value:function(a,c){}},{key:"registerTextFieldInteractionHandler",
value:function(a,c){}},{key:"deregisterTextFieldInteractionHandler",value:function(a,c){}},{key:"notifyIconAction",value:function(){}},{key:"addClassToBottomLine",value:function(a){}},{key:"removeClassFromBottomLine",value:function(a){}},{key:"addClassToHelptext",value:function(a){}},{key:"removeClassFromHelptext",value:function(a){}},{key:"helptextHasClass",value:function(a){}},{key:"registerInputInteractionHandler",value:function(a,c){}},{key:"deregisterInputInteractionHandler",value:function(a,
c){}},{key:"registerTransitionEndHandler",value:function(a){}},{key:"deregisterTransitionEndHandler",value:function(a){}},{key:"setBottomLineAttr",value:function(a,c){}},{key:"setHelptextAttr",value:function(a,c){}},{key:"removeHelptextAttr",value:function(a){}},{key:"getNativeInput",value:function(){}}]);return a}();d.MDCTextFieldAdapter=c;d.NativeInputType=void 0},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCTab=d.MDCTabFoundation=void 0;var h=function f(a,c,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return f(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?
void 0:c.call(d)}},k=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};var m=a(46),p=a(141),q=(a=a(381))&&a.__esModule?a:{default:a};d.MDCTabFoundation=q.default;d.MDCTab=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");
for(var d=arguments.length,f=Array(d),e=0;e<d;e++)f[e]=arguments[e];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,[this].concat(f));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.ripple_=m.MDCRipple.attachTo(a.root_);return a}e(c,a);k(c,[{key:"computedWidth",get:function(){return this.foundation_.getComputedWidth()}},{key:"computedLeft",get:function(){return this.foundation_.getComputedLeft()}},
{key:"isActive",get:function(){return this.foundation_.isActive()},set:function(a){this.foundation_.setActive(a)}},{key:"preventDefaultOnClick",get:function(){return this.foundation_.preventsDefaultOnClick()},set:function(a){this.foundation_.setPreventDefaultOnClick(a)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);k(c,[{key:"destroy",value:function(){this.ripple_.destroy();h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",
value:function(){var a=this;return new q.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},registerInteractionHandler:function(c,d){return a.root_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d)},getOffsetWidth:function(){return a.root_.offsetWidth},getOffsetLeft:function(){return a.root_.offsetLeft},notifySelected:function(){return a.emit(q.default.strings.SELECTED_EVENT,
{tab:a},!0)}})}},{key:"initialSyncWithDOM",value:function(){this.isActive=this.root_.classList.contains(p.cssClasses.ACTIVE)}},{key:"measureSelf",value:function(){this.foundation_.measureSelf()}}]);return c}(c.default)},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ACTIVE:"mdc-tab--active"};d.strings={SELECTED_EVENT:"MDCTab:selected"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCTabBar=d.MDCTabBarFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,f){d&&a(c.prototype,d);
f&&a(c,f);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};var k=a(140),m=(a=a(382))&&a.__esModule?a:{default:a};d.MDCTabBarFoundation=m.default;d.MDCTabBar=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,
[{key:"initialize",value:function(){var a=this,c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(a){return new k.MDCTab(a)};this.indicator_=this.root_.querySelector(m.default.strings.INDICATOR_SELECTOR);this.tabs_=this.gatherTabs_(c);this.tabSelectedHandler_=function(c){a.setActiveTab_(c.detail.tab,!0)}}},{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},
bindOnMDCTabSelectedEvent:function(){return a.listen(k.MDCTabFoundation.strings.SELECTED_EVENT,a.tabSelectedHandler_)},unbindOnMDCTabSelectedEvent:function(){return a.unlisten(k.MDCTabFoundation.strings.SELECTED_EVENT,a.tabSelectedHandler_)},registerResizeHandler:function(a){return window.addEventListener("resize",a)},deregisterResizeHandler:function(a){return window.removeEventListener("resize",a)},getOffsetWidth:function(){return a.root_.offsetWidth},setStyleForIndicator:function(c,d){return a.indicator_.style.setProperty(c,
d)},getOffsetWidthForIndicator:function(){return a.indicator_.offsetWidth},notifyChange:function(c){return a.emit(m.default.strings.CHANGE_EVENT,c)},getNumberOfTabs:function(){return a.tabs.length},isTabActiveAtIndex:function(c){return a.tabs[c].isActive},setTabActiveAtIndex:function(c,d){a.tabs[c].isActive=d},isDefaultPreventedOnClickForTabAtIndex:function(c){return a.tabs[c].preventDefaultOnClick},setPreventDefaultOnClickForTabAtIndex:function(c,d){a.tabs[c].preventDefaultOnClick=d},measureTabAtIndex:function(c){return a.tabs[c].measureSelf()},
getComputedWidthForTabAtIndex:function(c){return a.tabs[c].computedWidth},getComputedLeftForTabAtIndex:function(c){return a.tabs[c].computedLeft}})}},{key:"gatherTabs_",value:function(a){return[].slice.call(this.root_.querySelectorAll(m.default.strings.TAB_SELECTOR)).map(function(c){return a(c)})}},{key:"setActiveTabIndex_",value:function(a,c){this.foundation_.switchToTabAtIndex(a,c)}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"setActiveTab_",value:function(a,c){a=this.tabs.indexOf(a);
if(0>a)throw Error("Invalid tab component given as activeTab: Tab not found within this component's tab list");this.setActiveTabIndex_(a,c)}},{key:"tabs",get:function(){return this.tabs_}},{key:"activeTab",get:function(){var a=this.foundation_.getActiveTabIndex();return this.tabs[a]},set:function(a){this.setActiveTab_(a,!1)}},{key:"activeTabIndex",get:function(){return this.foundation_.getActiveTabIndex()},set:function(a){this.setActiveTabIndex_(a,!1)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);
return c}(c.default)},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--focus",IN_TRANSIT:"mdc-slider--in-transit",IS_DISCRETE:"mdc-slider--discrete",HAS_TRACK_MARKER:"mdc-slider--display-markers"};d.strings={TRACK_SELECTOR:".mdc-slider__track",TRACK_MARKER_CONTAINER_SELECTOR:".mdc-slider__track-marker-container",LAST_TRACK_MARKER_SELECTOR:".mdc-slider__track-marker:last-child",
THUMB_CONTAINER_SELECTOR:".mdc-slider__thumb-container",PIN_VALUE_MARKER_SELECTOR:".mdc-slider__pin-value-marker",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_DISABLED:"aria-disabled",STEP_DATA_ATTR:"data-step",CHANGE_EVENT:"MDCSlider:change",INPUT_EVENT:"MDCSlider:input"};d.numbers={PAGE_FACTOR:4}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.strings={BUTTON_EDIT_SELECTOR:".pc-btn-edit",BUTTON_REMOVE_SELECTOR:".pc-btn-delete",
CHECKBOX_SELECTOR:"input[type='checkbox'],input[type=radio]",TITLE_SELECTOR:".pc-name",ITEMS_TITLE_SELECTOR:".pc-items",SORT_COLUMN_HEADER_SELECTOR:".pc-column-header[aria-sort]",COLUMN_HEADER_SELECTOR:".pc-column-header",REQUEST_DATA_EVENT:"request_data",DELETE_EVENT:"delete",EDIT_EVENT:"edit",SELECT_EVENT:"selected",PAGING_SELECTOR:".pc-paging",SELECT_SELECTOR:"select",CURRENT_PAGE_SELECTOR:".pc-paging-current",PATTERN_ATTRIBUTE:"data-pattern",BUTTON_PREV_SELECTOR:".pc-button-prev",SORT_ASC_SELECTOR:".pc-asc",
SORT_DESC_SELECTOR:".pc-desc",SORT_DESC:"descending",SORT_ASC:"ascending",SORT_NONE:"none",SORT_ATTRIBUTE:"aria-sort",BUTTON_NEXT_SELECTOR:".pc-button-next",BUTTON_SINGLESELECT:".pc-btn__single",BUTTON_MULTISELECT:".pc-btn__multi"};d.cssClasses={HIDDEN:"hidden",SELECTED:"selected",SINGLESELECT:"pc-single-select"}},function(c,d,a){(function(a){var c,e,m=function(a){function c(a,d){if("undefined"===typeof a)return c[0];if("undefined"!==typeof d){if(10===+d)a=D(a);else{var e=a.length,l,n=Math.abs(d);
for(l=0;l<e;l++){var h=a[l].toLowerCase();if("-"!==h&&/[a-z0-9]/.test(h)){if(/[0-9]/.test(h)&&+h>=n){if("1"===h&&1===n)continue;throw Error(h+" is not a valid digit in base "+d+".");}if(h.charCodeAt(0)-87>=n)throw Error(h+" is not a valid digit in base "+d+".");}}if(2<=d&&36>=d&&e<=ba/Math.log(d)){l=parseInt(a,d);if(isNaN(l))throw Error(h+" is not a valid digit in base "+d+".");a=new f(parseInt(a,d))}else{d=D(d);e=[];for(l=(n="-"===a[0])?1:0;l<a.length;l++){h=a[l].toLowerCase();var k=h.charCodeAt(0);
if(48<=k&&57>=k)e.push(D(h));else if(97<=k&&122>=k)e.push(D(h.charCodeAt(0)-87));else if("<"===h){h=l;do l++;while(">"!==a[l]);e.push(D(a.slice(h+1,l)))}else throw Error(h+" is not a valid character");}a=V(e,d,n)}}return a}return D(a)}function d(a,c){this.value=a;this.sign=c;this.isSmall=!1}function f(a){this.value=a;this.sign=0>a;this.isSmall=!0}function e(a){return-9007199254740992<a&&9007199254740992>a}function h(a){return 1E7>a?[a]:1E14>a?[a%1E7,Math.floor(a/1E7)]:[a%1E7,Math.floor(a/1E7)%1E7,
Math.floor(a/1E14)]}function k(a){p(a);var c=a.length;if(4>c&&0>H(a,ca))switch(c){case 0:return 0;case 1:return a[0];case 2:return a[0]+1E7*a[1];default:return a[0]+1E7*(a[1]+1E7*a[2])}return a}function p(a){for(var c=a.length;0===a[--c];);a.length=c+1}function y(a){for(var c=Array(a),d=-1;++d<a;)c[d]=0;return c}function x(a){return 0<a?Math.floor(a):Math.ceil(a)}function z(a,c){var d=a.length,f=c.length,e=Array(d),l=0,n;for(n=0;n<f;n++){var h=a[n]+c[n]+l;l=1E7<=h?1:0;e[n]=h-1E7*l}for(;n<d;)h=a[n]+
l,l=1E7===h?1:0,e[n++]=h-1E7*l;0<l&&e.push(l);return e}function v(a,c){return a.length>=c.length?z(a,c):z(c,a)}function A(a,c){var d=a.length,f=Array(d),e;for(e=0;e<d;e++){var l=a[e]-1E7+c;c=Math.floor(l/1E7);f[e]=l-1E7*c;c+=1}for(;0<c;)f[e++]=c%1E7,c=Math.floor(c/1E7);return f}function C(a,c){var d=a.length,f=c.length,e=Array(d),l=0,n;for(n=0;n<f;n++){var h=a[n]-l-c[n];0>h?(h+=1E7,l=1):l=0;e[n]=h}for(n=f;n<d;n++){h=a[n]-l;if(0>h)h+=1E7;else{e[n++]=h;break}e[n]=h}for(;n<d;n++)e[n]=a[n];p(e);return e}
function K(a,c,e){var l=a.length,n=Array(l);c=-c;var h;for(h=0;h<l;h++){var q=a[h]+c;c=Math.floor(q/1E7);q%=1E7;n[h]=0>q?q+1E7:q}n=k(n);return"number"===typeof n?(e&&(n=-n),new f(n)):new d(n,e)}function O(a,c){var d=a.length,f=c.length,e=y(d+f),l;for(l=0;l<d;++l){var n=a[l];for(var h=0;h<f;++h){var k=c[h];k=n*k+e[l+h];var q=Math.floor(k/1E7);e[l+h]=k-1E7*q;e[l+h+1]+=q}}p(e);return e}function I(a,c){var d=a.length,f=Array(d),e=0,l;for(l=0;l<d;l++){var n=a[l]*c+e;e=Math.floor(n/1E7);f[l]=n-1E7*e}for(;0<
e;)f[l++]=e%1E7,e=Math.floor(e/1E7);return f}function J(a,c){for(var d=[];0<c--;)d.push(0);return d.concat(a)}function B(a,c){var d=Math.max(a.length,c.length);if(30>=d)return O(a,c);d=Math.ceil(d/2);var f=a.slice(d);a=a.slice(0,d);var e=c.slice(d),l=c.slice(0,d);c=B(a,l);var n=B(f,e);f=B(v(a,f),v(l,e));d=v(v(c,J(C(C(f,c),n),d)),J(n,2*d));p(d);return d}function L(a,c,f){return 1E7>a?new d(I(c,a),f):new d(O(c,h(a)),f)}function E(a){var c=a.length,d=y(c+c),f;for(f=0;f<c;f++){var e=a[f];for(var l=0;l<
c;l++){var n=a[l];n=e*n+d[f+l];var h=Math.floor(n/1E7);d[f+l]=n-1E7*h;d[f+l+1]+=h}}p(d);return d}function F(a,c){var d=a.length,f=y(d);var e=0;for(--d;0<=d;--d){e=1E7*e+a[d];var l=x(e/c);e-=l*c;f[d]=l|0}return[f,e|0]}function G(a,e){e=D(e);var l=a.value;var n=e.value;if(0===n)throw Error("Cannot divide by zero");if(a.isSmall)return e.isSmall?[new f(x(l/n)),new f(l%n)]:[c[0],a];if(e.isSmall){if(1===n)return[a,c[0]];if(-1==n)return[a.negate(),c[0]];n=Math.abs(n);if(1E7>n)return n=F(l,n),l=k(n[0]),n=
n[1],a.sign&&(n=-n),"number"===typeof l?(a.sign!==e.sign&&(l=-l),[new f(l),new f(n)]):[new d(l,a.sign!==e.sign),new f(n)];n=h(n)}var q=H(l,n);if(-1===q)return[c[0],a];if(0===q)return[c[a.sign===e.sign?1:-1],c[0]];if(200>=l.length+n.length){var t=n,m=l.length;n=t.length;q=y(t.length);var w=t[n-1],u=Math.ceil(1E7/(2*w));l=I(l,u);t=I(t,u);var T,v,A;l.length<=m&&l.push(0);t.push(0);w=t[n-1];for(T=m-n;0<=T;T--){m=9999999;l[T+n]!==w&&(m=Math.floor((1E7*l[T+n]+l[T+n-1])/w));var z=v=0;var ia=t.length;for(A=
0;A<ia;A++){v+=m*t[A];var K=Math.floor(v/1E7);z+=l[T+A]-(v-1E7*K);v=K;0>z?(l[T+A]=z+1E7,z=-1):(l[T+A]=z,z=0)}for(;0!==z;){--m;for(A=v=0;A<ia;A++)v+=l[T+A]-1E7+t[A],0>v?(l[T+A]=v+1E7,v=0):(l[T+A]=v,v=1);z+=v}q[T]=m}l=F(l,u)[0];n=[k(q),k(l)]}else{q=l.length;w=n.length;u=[];for(t=[];q;)if(t.unshift(l[--q]),p(t),0>H(t,n))u.push(0);else{m=t.length;T=1E7*t[m-1]+t[m-2];v=1E7*n[w-1]+n[w-2];m>w&&(T=1E7*(T+1));m=Math.ceil(T/v);do{T=I(n,m);if(0>=H(T,t))break;m--}while(m);u.push(m);t=C(t,T)}u.reverse();n=[k(u),
k(t)]}l=n[0];e=a.sign!==e.sign;n=n[1];a=a.sign;"number"===typeof l?(e&&(l=-l),l=new f(l)):l=new d(l,e);"number"===typeof n?(a&&(n=-n),n=new f(n)):n=new d(n,a);return[l,n]}function H(a,c){if(a.length!==c.length)return a.length>c.length?1:-1;for(var d=a.length-1;0<=d;d--)if(a[d]!==c[d])return a[d]>c[d]?1:-1;return 0}function R(a){a=a.abs();if(a.isUnit())return!1;if(a.equals(2)||a.equals(3)||a.equals(5))return!0;if(a.isEven()||a.isDivisibleBy(3)||a.isDivisibleBy(5))return!1;if(a.lesser(25))return!0}
function M(a){return("number"===typeof a||"string"===typeof a)&&1E7>=+Math.abs(a)||a instanceof d&&1>=a.value.length}function S(a,c,d){c=D(c);var f=a.isNegative(),e=c.isNegative();a=f?a.not():a;var l=e?c.not():c;for(c=[];!a.isZero()||!l.isZero();){a=G(a,fa);var n=a[1].toJSNumber();f&&(n=fa-1-n);l=G(l,fa);var h=l[1].toJSNumber();e&&(h=fa-1-h);a=a[0];l=l[0];c.push(d(n,h))}d=0!==d(f?1:0,e?1:0)?m(-1):m(0);for(f=c.length-1;0<=f;--f)d=d.multiply(fa).add(m(c[f]));return d}function P(a){a=a.value;a="number"===
typeof a?a|1073741824:a[0]+1E7*a[1]|1073758208;return a&-a}function U(a,c){a=D(a);c=D(c);return a.greater(c)?a:c}function Z(a,c){a=D(a);c=D(c);return a.lesser(c)?a:c}function aa(a,d){a=D(a).abs();d=D(d).abs();if(a.equals(d))return a;if(a.isZero())return d;if(d.isZero())return a;for(var f=c[1],e;a.isEven()&&d.isEven();)e=Math.min(P(a),P(d)),a=a.divide(e),d=d.divide(e),f=f.multiply(e);for(;a.isEven();)a=a.divide(P(a));do{for(;d.isEven();)d=d.divide(P(d));a.greater(d)&&(e=d,d=a,a=e);d=d.subtract(a)}while(!d.isZero());
return f.isUnit()?a:a.multiply(f)}function V(a,d,f){var e=c[0],l=c[1],n;for(n=a.length-1;0<=n;n--)e=e.add(a[n].times(l)),l=l.times(d);return f?e.negate():e}function W(a){a=a.value;"number"===typeof a&&(a=[a]);return 1===a.length&&35>=a[0]?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a[0]):"<"+a+">"}function Q(a,c){c=m(c);if(c.isZero()){if(a.isZero())return"0";throw Error("Cannot convert nonzero numbers to base 0.");}if(c.equals(-1))return a.isZero()?"0":a.isNegative()?Array(1-a).join("10"):"1"+Array(+a).join("01");
var d="";a.isNegative()&&c.isPositive()&&(d="-",a=a.abs());if(c.equals(1))return a.isZero()?"0":d+Array(+a+1).join(1);for(var f=[],e;a.isNegative()||0<=a.compareAbs(c);)e=a.divmod(c),a=e.quotient,e=e.remainder,e.isNegative()&&(e=c.minus(e).abs(),a=a.next()),f.push(W(e));f.push(W(a));return d+f.reverse().join("")}function N(a){if(e(+a)){var c=+a;if(c===x(c))return new f(c);throw"Invalid integer: "+a;}(c="-"===a[0])&&(a=a.slice(1));var l=a.split(/e/i);if(2<l.length)throw Error("Invalid integer: "+l.join("e"));
if(2===l.length){a=l[1];"+"===a[0]&&(a=a.slice(1));a=+a;if(a!==x(a)||!e(a))throw Error("Invalid integer: "+a+" is not a valid exponent.");l=l[0];var n=l.indexOf(".");0<=n&&(a-=l.length-n-1,l=l.slice(0,n)+l.slice(n+1));if(0>a)throw Error("Cannot include negative exponent part for integers");a=l+=Array(a+1).join("0")}if(!/^([0-9][0-9]*)$/.test(a))throw Error("Invalid integer: "+a);l=[];n=a.length;for(var h=n-7;0<n;)l.push(+a.slice(h,n)),h-=7,0>h&&(h=0),n-=7;p(l);return new d(l,c)}function D(a){if("number"===
typeof a){if(e(a)){if(a!==x(a))throw Error(a+" is not an integer.");a=new f(a)}else a=N(a.toString());return a}return"string"===typeof a?N(a):a}var ca=h(9007199254740992),ba=Math.log(9007199254740992);d.prototype=Object.create(c.prototype);f.prototype=Object.create(c.prototype);d.prototype.add=function(a){a=D(a);if(this.sign!==a.sign)return this.subtract(a.negate());var c=this.value,f=a.value;return a.isSmall?new d(A(c,Math.abs(f)),this.sign):new d(v(c,f),this.sign)};d.prototype.plus=d.prototype.add;
f.prototype.add=function(a){a=D(a);var c=this.value;if(0>c!==a.sign)return this.subtract(a.negate());var l=a.value;if(a.isSmall){if(e(c+l))return new f(c+l);l=h(Math.abs(l))}return new d(A(l,Math.abs(c)),0>c)};f.prototype.plus=f.prototype.add;d.prototype.subtract=function(a){var c=D(a);if(this.sign!==c.sign)return this.add(c.negate());a=this.value;var e=c.value;if(c.isSmall)return K(a,Math.abs(e),this.sign);c=this.sign;0<=H(a,e)?a=C(a,e):(a=C(e,a),c=!c);a=k(a);"number"===typeof a?(c&&(a=-a),a=new f(a)):
a=new d(a,c);return a};d.prototype.minus=d.prototype.subtract;f.prototype.subtract=function(a){a=D(a);var c=this.value;if(0>c!==a.sign)return this.add(a.negate());var d=a.value;return a.isSmall?new f(c-d):K(d,Math.abs(c),0<=c)};f.prototype.minus=f.prototype.subtract;d.prototype.negate=function(){return new d(this.value,!this.sign)};f.prototype.negate=function(){var a=this.sign,c=new f(-this.value);c.sign=!a;return c};d.prototype.abs=function(){return new d(this.value,!1)};f.prototype.abs=function(){return new f(Math.abs(this.value))};
d.prototype.multiply=function(a){var f=D(a);a=this.value;var e=f.value,l=this.sign!==f.sign;if(f.isSmall){if(0===e)return c[0];if(1===e)return this;if(-1===e)return this.negate();e=Math.abs(e);if(1E7>e)return new d(I(a,e),l);e=h(e)}f=a.length;var n=e.length;return 0<-.012*f-.012*n+1.5E-5*f*n?new d(B(a,e),l):new d(O(a,e),l)};d.prototype.times=d.prototype.multiply;f.prototype._multiplyBySmall=function(a){return e(a.value*this.value)?new f(a.value*this.value):L(Math.abs(a.value),h(Math.abs(this.value)),
this.sign!==a.sign)};d.prototype._multiplyBySmall=function(a){return 0===a.value?c[0]:1===a.value?this:-1===a.value?this.negate():L(Math.abs(a.value),this.value,this.sign!==a.sign)};f.prototype.multiply=function(a){return D(a)._multiplyBySmall(this)};f.prototype.times=f.prototype.multiply;d.prototype.square=function(){return new d(E(this.value),!1)};f.prototype.square=function(){var a=this.value*this.value;return e(a)?new f(a):new d(E(h(Math.abs(this.value))),!1)};d.prototype.divmod=function(a){a=
G(this,a);return{quotient:a[0],remainder:a[1]}};f.prototype.divmod=d.prototype.divmod;d.prototype.divide=function(a){return G(this,a)[0]};f.prototype.over=f.prototype.divide=d.prototype.over=d.prototype.divide;d.prototype.mod=function(a){return G(this,a)[1]};f.prototype.remainder=f.prototype.mod=d.prototype.remainder=d.prototype.mod;d.prototype.pow=function(a){var d=D(a),l=this.value;a=d.value;var n;if(0===a)return c[1];if(0===l)return c[0];if(1===l)return c[1];if(-1===l)return d.isEven()?c[1]:c[-1];
if(d.sign)return c[0];if(!d.isSmall)throw Error("The exponent "+d.toString()+" is too large.");if(this.isSmall&&e(n=Math.pow(l,a)))return new f(x(n));n=this;for(d=c[1];;){a&1&&(d=d.times(n),--a);if(0===a)break;a/=2;n=n.square()}return d};f.prototype.pow=d.prototype.pow;d.prototype.modPow=function(a,d){a=D(a);d=D(d);if(d.isZero())throw Error("Cannot take modPow with modulus 0");for(var f=c[1],e=this.mod(d);a.isPositive();){if(e.isZero())return c[0];a.isOdd()&&(f=f.multiply(e).mod(d));a=a.divide(2);
e=e.square().mod(d)}return f};f.prototype.modPow=d.prototype.modPow;d.prototype.compareAbs=function(a){a=D(a);return a.isSmall?1:H(this.value,a.value)};f.prototype.compareAbs=function(a){a=D(a);var c=Math.abs(this.value),d=a.value;return a.isSmall?(d=Math.abs(d),c===d?0:c>d?1:-1):-1};d.prototype.compare=function(a){if(Infinity===a)return-1;if(-Infinity===a)return 1;a=D(a);return this.sign!==a.sign?a.sign?1:-1:a.isSmall?this.sign?-1:1:H(this.value,a.value)*(this.sign?-1:1)};d.prototype.compareTo=d.prototype.compare;
f.prototype.compare=function(a){if(Infinity===a)return-1;if(-Infinity===a)return 1;a=D(a);var c=this.value,d=a.value;return a.isSmall?c==d?0:c>d?1:-1:0>c!==a.sign?0>c?-1:1:0>c?1:-1};f.prototype.compareTo=f.prototype.compare;d.prototype.equals=function(a){return 0===this.compare(a)};f.prototype.eq=f.prototype.equals=d.prototype.eq=d.prototype.equals;d.prototype.notEquals=function(a){return 0!==this.compare(a)};f.prototype.neq=f.prototype.notEquals=d.prototype.neq=d.prototype.notEquals;d.prototype.greater=
function(a){return 0<this.compare(a)};f.prototype.gt=f.prototype.greater=d.prototype.gt=d.prototype.greater;d.prototype.lesser=function(a){return 0>this.compare(a)};f.prototype.lt=f.prototype.lesser=d.prototype.lt=d.prototype.lesser;d.prototype.greaterOrEquals=function(a){return 0<=this.compare(a)};f.prototype.geq=f.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals;d.prototype.lesserOrEquals=function(a){return 0>=this.compare(a)};f.prototype.leq=f.prototype.lesserOrEquals=d.prototype.leq=
d.prototype.lesserOrEquals;d.prototype.isEven=function(){return 0===(this.value[0]&1)};f.prototype.isEven=function(){return 0===(this.value&1)};d.prototype.isOdd=function(){return 1===(this.value[0]&1)};f.prototype.isOdd=function(){return 1===(this.value&1)};d.prototype.isPositive=function(){return!this.sign};f.prototype.isPositive=function(){return 0<this.value};d.prototype.isNegative=function(){return this.sign};f.prototype.isNegative=function(){return 0>this.value};d.prototype.isUnit=function(){return!1};
f.prototype.isUnit=function(){return 1===Math.abs(this.value)};d.prototype.isZero=function(){return!1};f.prototype.isZero=function(){return 0===this.value};d.prototype.isDivisibleBy=function(a){a=D(a);var d=a.value;return 0===d?!1:1===d?!0:2===d?this.isEven():this.mod(a).equals(c[0])};f.prototype.isDivisibleBy=d.prototype.isDivisibleBy;d.prototype.isPrime=function(){var d=R(this);if(d!==a)return d;d=this.abs();for(var f=d.prev(),e=[2,3,5,7,11,13,17,19],l=f,n,h,k,q;l.isEven();)l=l.divide(2);for(k=
0;k<e.length;k++)if(q=m(e[k]).modPow(l,d),!q.equals(c[1])&&!q.equals(f)){h=!0;for(n=l;h&&n.lesser(f);n=n.multiply(2))q=q.square().mod(d),q.equals(f)&&(h=!1);if(h)return!1}return!0};f.prototype.isPrime=d.prototype.isPrime;d.prototype.isProbablePrime=function(c){var d=R(this);if(d!==a)return d;d=this.abs();c=c===a?5:c;for(var f=0;f<c;f++)if(!m.randBetween(2,d.minus(2)).modPow(d.prev(),d).isUnit())return!1;return!0};f.prototype.isProbablePrime=d.prototype.isProbablePrime;d.prototype.modInv=function(a){for(var c=
m.zero,d=m.one,f=D(a),e=this.abs(),l,n,h;!e.equals(m.zero);)l=f.divide(e),n=c,h=f,c=d,f=e,d=n.subtract(l.multiply(d)),e=h.subtract(l.multiply(e));if(!f.equals(1))throw Error(this.toString()+" and "+a.toString()+" are not co-prime");-1===c.compare(0)&&(c=c.add(a));return this.isNegative()?c.negate():c};f.prototype.modInv=d.prototype.modInv;d.prototype.next=function(){var a=this.value;return this.sign?K(a,1,this.sign):new d(A(a,1),this.sign)};f.prototype.next=function(){var a=this.value;return 9007199254740992>
a+1?new f(a+1):new d(ca,!1)};d.prototype.prev=function(){var a=this.value;return this.sign?new d(A(a,1),!0):K(a,1,this.sign)};f.prototype.prev=function(){var a=this.value;return-9007199254740992<a-1?new f(a-1):new d(ca,!0)};for(var Y=[1];1E7>=2*Y[Y.length-1];)Y.push(2*Y[Y.length-1]);var da=Y.length,fa=Y[da-1];d.prototype.shiftLeft=function(a){if(!M(a))throw Error(String(a)+" is too large for shifting.");a=+a;if(0>a)return this.shiftRight(-a);for(var c=this;a>=da;)c=c.multiply(fa),a-=da-1;return c.multiply(Y[a])};
f.prototype.shiftLeft=d.prototype.shiftLeft;d.prototype.shiftRight=function(a){var c;if(!M(a))throw Error(String(a)+" is too large for shifting.");a=+a;if(0>a)return this.shiftLeft(-a);for(c=this;a>=da;){if(c.isZero())return c;c=G(c,fa);c=c[1].isNegative()?c[0].prev():c[0];a-=da-1}c=G(c,Y[a]);return c[1].isNegative()?c[0].prev():c[0]};f.prototype.shiftRight=d.prototype.shiftRight;d.prototype.not=function(){return this.negate().prev()};f.prototype.not=d.prototype.not;d.prototype.and=function(a){return S(this,
a,function(a,c){return a&c})};f.prototype.and=d.prototype.and;d.prototype.or=function(a){return S(this,a,function(a,c){return a|c})};f.prototype.or=d.prototype.or;d.prototype.xor=function(a){return S(this,a,function(a,c){return a^c})};f.prototype.xor=d.prototype.xor;d.prototype.toString=function(c){c===a&&(c=10);if(10!==c)return Q(this,c);c=this.value;for(var d=c.length,f=String(c[--d]),e;0<=--d;)e=String(c[d]),f+="0000000".slice(e.length)+e;return(this.sign?"-":"")+f};f.prototype.toString=function(c){c===
a&&(c=10);return 10!=c?Q(this,c):String(this.value)};d.prototype.toJSON=f.prototype.toJSON=function(){return this.toString()};d.prototype.valueOf=function(){return+this.toString()};d.prototype.toJSNumber=d.prototype.valueOf;f.prototype.valueOf=function(){return this.value};f.prototype.toJSNumber=f.prototype.valueOf;for(var ea=0;1E3>ea;ea++)c[ea]=new f(ea),0<ea&&(c[-ea]=new f(-ea));c.one=c[1];c.zero=c[0];c.minusOne=c[-1];c.max=U;c.min=Z;c.gcd=aa;c.lcm=function(a,c){a=D(a).abs();c=D(c).abs();return a.divide(aa(a,
c)).multiply(c)};c.isInstance=function(a){return a instanceof d||a instanceof f};c.randBetween=function(a,c){a=D(a);c=D(c);var e=Z(a,c);a=U(a,c).subtract(e).add(1);if(a.isSmall)return e.add(Math.floor(Math.random()*a));c=[];for(var l=!0,n=a.value.length-1;0<=n;n--){var h=l?a.value[n]:1E7,q=x(Math.random()*h);c.unshift(q);q<h&&(l=!1)}c=k(c);return e.add("number"===typeof c?new f(c):new d(c,!1))};c.fromArray=function(a,c,d){return V(a.map(D),D(c||10),d)};return c}();"undefined"!==typeof a&&a.hasOwnProperty("exports")&&
(a.exports=m);!(c=[],e=function(){return m}.apply(d,c),void 0!==e&&(a.exports=e))}).call(d,a(97)(c))},function(c,d,a){(function(a){var c,e,m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},p="object"==("undefined"===typeof p?"undefined":m(p))?p:function(){function a(a,c){var d=[PCL?PCL.parser_error_1:"Unexpected character %token% in position %pos% line %line% (%decorated%). Expected: %expected%.",
PCL?PCL.parser_error_1:"Unexpected token %token% in position %pos% line %line% (%decorated%). Expected: %expected%.",PCL?PCL.parser_error_1:"Unexpected end of input. Expected: %expected%."];this.code=a;d=d[a];if(c)for(var f in c){var e=c[f];Array.isArray(e)&&(e=e.join(","));d=d.replace(new RegExp("%"+f+"%","g"),e)}console.log("ParserException:"+a+" "+d);this.message=d;this.args=c}function c(c){function f(){return this.value}function e(a,c){return{getValue:f,name:void 0===a?"":a,value:"",pos:-1,index:void 0===
c?0:c,len:0}}function l(a,c,d,f){var e={token:a,len:c,absolutePos:d,expected:[]},l=d,h=/\r?\n/g,k=0,q=0;do{var t=k;k=h.exec(n)?h.lastIndex:n.length;q++}while(k<=l&&k<n.length);e.line=q;e.pos=l-t+1;l=10>d?d:10;h=n.length-d-c;10<h&&(h=10);e.decorated=n.substr(d-l,l)+">>>"+a+"<<<"+n.substr(d+c,h);if(f.isTerminal())e.expected.push(f.n);else if(f.m.pattern)for(a=0;a<f.m.pattern.length;++a)if(d=f.m.pattern[a])for(var m in d)e.expected.push(m);return e}var n=c,h=[],k=0,q=0;this.exclude=function(a,c){h.splice(a,
c);a<q&&(q-=c)};this.reset=function(){q=0};this.print=function(){for(var a="",c=0;c<h.length;++c)a+=h[c].name+"["+h[c].index+"]~",0==(c+1)%20&&(a+="\n");return a};this.get=function(a,c){a=this.peek(a);q!==h.length&&q++;return a};var t=e("<eof>",-1);e("<empty>",0);this.peek=function(c,d){if(void 0===c.m)if(c.m={},c.f)for(p in c.f){if("0"!==p&&"-1"!==p){var f=d[p];var m=c.m;if(f.re)void 0===m.re&&(m.re=[]),m.re.push([f.re,f]);else{void 0===m.pattern&&(m.pattern=[]);if(f.n.length>m.pattern.length||void 0===
m.pattern[f.n.length-1])m.pattern[f.n.length-1]={};m=m.pattern[f.n.length-1];m[f.n]=f}}}else c.m.pattern=[],m={},m[c.n]=c,c.m.pattern[c.n.length-1]=m;if(q<h.length)var p=h[q];else if(k===n.length)p=t;else{p=c.m.re;d=null;if(void 0!==p)for(f=0;f<p.length;++f){m=p[f];var w=m[0].exec(n.substr(k));w&&(!d||w[0].length>d.len)&&(d=e(m[1].n,m[1].i),d.len=w[0].length,d.value=w[0])}if(p=c.m.pattern)for(f=p.length;f&&(!d||f>d.len);){if(f<=n.length-k&&(w=p[f-1],void 0!==w&&(m=n.substr(k,f),w=w[m],void 0!==w))){d=
h[q]=e(w.n,w.i);d.pos=k;d.len=f;d.value=m;break}f--}if(d)h[q]=d,k+=d.len,p=d;else throw new a(0,l(n.charAt(k),1,k,c));}d=c;if(c.isTerminal()){if(c.i!=p.index){if(-1==p.index)throw new a(2,l(p.value,p.len,p.pos,c));throw new a(1,l(p.value,p.len,p.pos,c));}}else if(d=c.f[p.index],void 0===d)throw new a(1,l(p.value,p.len,p.pos,c));return d};this.getBookmark=function(){return new d(this,h,q)};this.revert=function(a,c){h=a;q=c};this.EOF=function(){return q>=h.length};this.peekString=function(a){return n.substr(h[q].pos,
a)};this.getStringAt=function(a,c){return n.substr(a,c)}}function d(a,c,d){this.revert=function(){a.revert(c,d)};this.getIndexPosition=function(){return d};this.getPosition=function(){if(c.length>d)return c[d].pos;var a=c[d-1];return a.pos+a.len};this.getLength=function(a){for(var f=0,e=d;e<c.length&&c[e].pos<a.getPosition();)f+=c[e++].len;return f};this.getSymbol=function(){return c.length<=d?"<eof>":a.getStringAt(this.getPosition(),c[d].len)};this.getToken=function(){return c[d]};this.getValue=
function(){return c.length<=d?"<eof>":c[d].getValue()};this.exclude=function(c){a.exclude(d,c.getIndexPosition()-d)}}function e(a,c,d){if(c.d)for(var f=c.d.length-1;0<=f;--f){var e=c.d[f];0!=e.i&&(e=new k(e,a),d.push(e))}else 0!=c.i&&(e=new k(c,a),d.push(e))}function h(a,c,d,f){f.push(new k(d["-1"]));d=new k(a);d.start=c.getBookmark();e(d,a,f);d.exclude={};if(a.t)for(c=0;c<a.t.length;++c)d.exclude[a.t[c]]=1;return d}function k(a,c){function d(a,c,f){var e=c[a.name];if(e&&(e=e(a),void 0!==e)){f.push(e);
return}a.value.forEach(function(a){d(a,c,f)})}this.rule=a;this.parent=c;this.name=a.name();this.value=[];var f=!1;this.complete=function(a,c){this.pos=this.start.getPosition();c[this.rule.i]?f||(this.start.exclude(a),f=!0):(this.parent&&!f&&(this.parent.value.push(this),this.parent.complete(a,c)),f=!0,this.setLen(a))};this.setLen=function(a){a&&(this.end=a,this.len=this.start.getLength(a))};this.getEnd=function(){this.end||(this.start.getPosition(),this.value.forEach(function(a){if(a=a.getEnd())this.end=
a},this));return this.end};this.getLen=function(){if(!this.end){var a=this.getEnd();a&&(this.len=this.start.getLength(a))}return this.len};this.visit=function(a){var c=[];d(this,a,c);if(c.length)return 1==c.length?c[0]:c};this.getValue=function(){if(this.value.length){var a="";this.value.forEach(function(c){a+=c.getValue()});return a}return this.start.getValue()}}function m(){return this.n}function p(){return void 0===this.f}function x(){return this.f}function z(a,c){a=a[c];if(void 0===a)throw{code:"DATA",
message:c+" rule not found"};return a}function v(a,c){if(a.d)for(var d=a.d,f=0;f<d.length;++f)d[f]=z(c,d[f]);a.isTerminal=p;a.name=m;if(a.f){for(var e in a.f)a.f[e]=z(c,a.f[e]);a.firstPlus=x}a.c&&(a.c=z(c,a.c))}return{exception:a,parser:function(a){for(var d,f={},l=0;l<a.length;++l){var n=a[l];if("string"===typeof n)f[l]={n:n};else if(n.re)d=n.fl?n.fl:"",f[l]={re:new RegExp(("^"!==n.re.charAt(0)?"^":"")+n.re,d),n:"/"+n.re+"/"+d};else{n.f={};if(n.s){for(var k=0;k<n.s.length;++k)if(d=n.s[k],"number"==
typeof d)n.f[d]=d;else for(var q=d[0];q<=d[1];++q)n.f[q]=q;delete n.s}if(n.r){for(var t in n.r){var m=n.r[t];for(k=0;k<m.length;++k)if(d=m[k],"number"==typeof d)n.f[d]=Number(t);else for(q=d[0];q<=d[1];++q)n.f[q]=Number(t)}delete n.r}f[l]=n}}var p=f[0];f["0"]={n:"<empty>"};f["-1"]={n:"<eof>"};for(t in f)v(f[t],f),f[t].i=t;v(p,f);this.parse=function(a){a:{a=new c(a);for(var d=p,l=[],n=h(d,a,f,l);;){focus=l[l.length-1];var k=a.getBookmark();focus.start=k;if(a.EOF()&&-1==focus.rule.i)if(d.c)a.reset(),
d=d.c,n=h(d,a,f,l);else break a;else focus.rule.isTerminal()?(a.get(focus.rule,f),focus.complete(a.getBookmark(),n.exclude),l.pop()):(k=a.peek(focus.rule,f),l.pop(),e(focus,k,l))}}return n}}}}();"undefined"!==typeof a&&a.hasOwnProperty("exports")&&(a.exports=p);!(c=[],e=function(){return p}.apply(d,c),void 0!==e&&(a.exports=e))}).call(d,a(97)(c))},function(c,d,a){a(102);c.exports=a(349)},function(c,d,a){a(149);a(151);a(152);a(153);a(154);a(155);a(156);a(157);a(158);a(159);a(160);a(161);a(162);a(163);
a(164);a(165);a(167);a(168);a(169);a(170);a(171);a(172);a(173);a(174);a(175);a(176);a(177);a(178);a(179);a(180);a(181);a(182);a(183);a(184);a(185);a(186);a(187);a(188);a(189);a(190);a(191);a(192);a(193);a(194);a(195);a(196);a(197);a(198);a(199);a(200);a(201);a(202);a(203);a(204);a(205);a(206);a(207);a(208);a(209);a(210);a(211);a(212);a(213);a(214);a(215);a(216);a(217);a(218);a(219);a(220);a(221);a(222);a(223);a(224);a(225);a(226);a(227);a(229);a(230);a(232);a(233);a(234);a(235);a(236);a(237);a(238);
a(240);a(241);a(242);a(243);a(244);a(245);a(246);a(247);a(248);a(249);a(250);a(251);a(252);a(92);a(253);a(254);a(121);a(255);a(256);a(257);a(258);a(259);a(124);a(126);a(127);a(260);a(261);a(262);a(263);a(264);a(265);a(266);a(267);a(268);a(269);a(270);a(271);a(272);a(273);a(274);a(275);a(276);a(277);a(278);a(279);a(280);a(281);a(282);a(283);a(284);a(285);a(286);a(287);a(288);a(289);a(290);a(291);a(292);a(293);a(294);a(295);a(296);a(297);a(298);a(299);a(300);a(301);a(302);a(303);a(304);a(305);a(306);
a(307);a(308);a(309);a(310);a(311);a(312);a(313);a(314);a(315);a(316);a(317);a(318);a(319);a(320);a(321);a(322);a(323);a(324);a(325);a(326);a(327);a(328);a(329);a(330);a(331);a(332);a(333);a(334);a(335);a(336);a(337);a(338);a(339);a(340);a(341);a(342);a(343);a(344);c.exports=a(24)},function(c,d,a){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};
c=a(2);var h=a(11),k=a(6);d=a(0);var m=a(13),p=a(32).KEY,q=a(3),l=a(55),f=a(47),n=a(35),t=a(5),w=a(104),u=a(72),y=a(150),x=a(58),z=a(1),v=a(16),A=a(25),C=a(34),K=a(39),O=a(107),I=a(17),J=a(7),B=a(37),L=I.f,E=J.f,F=O.f,G=c.Symbol,H=c.JSON,R=H&&H.stringify,M=t("_hidden"),S=t("toPrimitive"),P={}.propertyIsEnumerable,U=l("symbol-registry"),Z=l("symbols"),aa=l("op-symbols"),V=Object.prototype;l="function"==typeof G;var W=c.QObject,Q=!W||!W.prototype||!W.prototype.findChild,N=k&&q(function(){return 7!=
K(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(a,c,d){var f=L(V,c);f&&delete V[c];E(a,c,d);f&&a!==V&&E(V,c,f)}:E,D=function(a){var c=Z[a]=K(G.prototype);c._k=a;return c},ca=l&&"symbol"==e(G.iterator)?function(a){return"symbol"==("undefined"===typeof a?"undefined":e(a))}:function(a){return a instanceof G},ba=function(a,c,d){a===V&&ba(aa,c,d);z(a);c=A(c,!0);z(d);return h(Z,c)?(d.enumerable?(h(a,M)&&a[M][c]&&(a[M][c]=!1),d=K(d,{enumerable:C(0,!1)})):(h(a,M)||E(a,M,C(1,{})),
a[M][c]=!0),N(a,c,d)):E(a,c,d)},Y=function(a,c){z(a);for(var d=y(c=v(c)),f=0,e=d.length,l;e>f;)ba(a,l=d[f++],c[l]);return a},da=function(a){var c=P.call(this,a=A(a,!0));return this===V&&h(Z,a)&&!h(aa,a)?!1:c||!h(this,a)||!h(Z,a)||h(this,M)&&this[M][a]?c:!0};W=function(a,c){a=v(a);c=A(c,!0);if(a!==V||!h(Z,c)||h(aa,c)){var d=L(a,c);!d||!h(Z,c)||h(a,M)&&a[M][c]||(d.enumerable=!0);return d}};var fa=function(a){a=F(v(a));for(var c=[],d=0,f;a.length>d;)h(Z,f=a[d++])||f==M||f==p||c.push(f);return c},ea=
function(a){var c=a===V;a=F(c?aa:v(a));for(var d=[],f=0,e;a.length>f;)h(Z,e=a[f++])&&(c?h(V,e):1)&&d.push(Z[e]);return d};l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var a=n(0<arguments.length?arguments[0]:void 0),c=function qa(c){this===V&&qa.call(aa,c);h(this,M)&&h(this[M],a)&&(this[M][a]=!1);N(this,a,C(1,c))};k&&Q&&N(V,a,{configurable:!0,set:c});return D(a)},m(G.prototype,"toString",function(){return this._k}),I.f=W,J.f=ba,a(40).f=O.f=fa,a(52).f=da,a(57).f=
ea,k&&!a(36)&&m(V,"propertyIsEnumerable",da,!0),w.f=function(a){return D(t(a))});d(d.G+d.W+d.F*!l,{Symbol:G});m="hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables".split(" ");for(w=0;m.length>w;)t(m[w++]);B=B(t.store);for(m=0;B.length>m;)u(B[m++]);d(d.S+d.F*!l,"Symbol",{"for":function(a){return h(U,a+="")?U[a]:U[a]=G(a)},keyFor:function(a){if(!ca(a))throw TypeError(a+" is not a symbol!");for(var c in U)if(U[c]===a)return c},useSetter:function(){Q=
!0},useSimple:function(){Q=!1}});d(d.S+d.F*!l,"Object",{create:function(a,c){return void 0===c?K(a):Y(K(a),c)},defineProperty:ba,defineProperties:Y,getOwnPropertyDescriptor:W,getOwnPropertyNames:fa,getOwnPropertySymbols:ea});H&&d(d.S+d.F*(!l||q(function(){var a=G();return"[null]"!=R([a])||"{}"!=R({a:a})||"{}"!=R(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!ca(a)){for(var c=[a],d=1,f;arguments.length>d;)c.push(arguments[d++]);d=c[1];"function"==typeof d&&(f=d);if(f||!x(d))d=function(a,
c){f&&(c=f.call(this,a,c));if(!ca(c))return c};c[1]=d;return R.apply(H,c)}}});G.prototype[S]||a(12)(G.prototype,S,G.prototype.valueOf);f(G,"Symbol");f(Math,"Math",!0);f(c.JSON,"JSON",!0)},function(c,d,a){var e=a(37),h=a(57),k=a(52);c.exports=function(a){var c=e(a),d=h.f;if(d){d=d(a);for(var l=k.f,f=0,n;d.length>f;)l.call(a,n=d[f++])&&c.push(n)}return c}},function(c,d,a){c=a(0);c(c.S,"Object",{create:a(39)})},function(c,d,a){c=a(0);c(c.S+c.F*!a(6),"Object",{defineProperty:a(7).f})},function(c,d,a){c=
a(0);c(c.S+c.F*!a(6),"Object",{defineProperties:a(106)})},function(c,d,a){var e=a(16),h=a(17).f;a(28)("getOwnPropertyDescriptor",function(){return function(a,c){return h(e(a),c)}})},function(c,d,a){var e=a(9),h=a(18);a(28)("getPrototypeOf",function(){return function(a){return h(e(a))}})},function(c,d,a){var e=a(9),h=a(37);a(28)("keys",function(){return function(a){return h(e(a))}})},function(c,d,a){a(28)("getOwnPropertyNames",function(){return a(107).f})},function(c,d,a){var e=a(4),h=a(32).onFreeze;
a(28)("freeze",function(a){return function(c){return a&&e(c)?a(h(c)):c}})},function(c,d,a){var e=a(4),h=a(32).onFreeze;a(28)("seal",function(a){return function(c){return a&&e(c)?a(h(c)):c}})},function(c,d,a){var e=a(4),h=a(32).onFreeze;a(28)("preventExtensions",function(a){return function(c){return a&&e(c)?a(h(c)):c}})},function(c,d,a){var e=a(4);a(28)("isFrozen",function(a){return function(c){return e(c)?a?a(c):!1:!0}})},function(c,d,a){var e=a(4);a(28)("isSealed",function(a){return function(c){return e(c)?
a?a(c):!1:!0}})},function(c,d,a){var e=a(4);a(28)("isExtensible",function(a){return function(c){return e(c)?a?a(c):!0:!1}})},function(c,d,a){c=a(0);c(c.S+c.F,"Object",{assign:a(108)})},function(c,d,a){c=a(0);c(c.S,"Object",{is:a(166)})},function(c,d,a){c.exports=Object.is||function(a,c){return a===c?0!==a||1/a===1/c:a!=a&&c!=c}},function(c,d,a){c=a(0);c(c.S,"Object",{setPrototypeOf:a(76).set})},function(c,d,a){var e=a(53);c={};c[a(5)("toStringTag")]="z";"[object z]"!=c+""&&a(13)(Object.prototype,
"toString",function(){return"[object "+e(this)+"]"},!0)},function(c,d,a){c=a(0);c(c.P,"Function",{bind:a(109)})},function(c,d,a){c=a(7).f;d=Function.prototype;var e=/^\s*function ([^ (]*)/;"name"in d||a(6)&&c(d,"name",{configurable:!0,get:function(){try{return(""+this).match(e)[1]}catch(h){return""}}})},function(c,d,a){var e=a(4),h=a(18);c=a(5)("hasInstance");d=Function.prototype;c in d||a(7).f(d,c,{value:function(a){if("function"!=typeof this||!e(a))return!1;if(!e(this.prototype))return a instanceof
this;for(;a=h(a);)if(this.prototype===a)return!0;return!1}})},function(c,d,a){c=a(0);a=a(111);c(c.G+c.F*(parseInt!=a),{parseInt:a})},function(c,d,a){c=a(0);a=a(112);c(c.G+c.F*(parseFloat!=a),{parseFloat:a})},function(c,d,a){c=a(2);d=a(11);var e=a(21),h=a(78),k=a(25),m=a(3),p=a(40).f,q=a(17).f,l=a(7).f,f=a(48).trim,n=c.Number,t=n,w=n.prototype,u="Number"==e(a(39)(w)),y="trim"in String.prototype,x=function(a){var c=k(a,!1);if("string"==typeof c&&2<c.length)if(c=y?c.trim():f(c,3),a=c.charCodeAt(0),43===
a||45===a){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===a){switch(c.charCodeAt(1)){case 66:case 98:a=2;var d=49;break;case 79:case 111:a=8;d=55;break;default:return+c}c=c.slice(2);for(var e=0,l=c.length,n;e<l;e++)if(n=c.charCodeAt(e),48>n||n>d)return NaN;return parseInt(c,a)}return+c};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var c=1>arguments.length?0:a,d=this;return d instanceof n&&(u?m(function(){w.valueOf.call(d)}):"Number"!=e(d))?h(new t(x(c)),d,n):x(c)};p=a(6)?p(t):
"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON isFinite isInteger isNaN isSafeInteger MAX_SAFE_INTEGER MIN_SAFE_INTEGER parseFloat parseInt isInteger".split(" ");for(var z=0,v;p.length>z;z++)d(t,v=p[z])&&!d(n,v)&&l(n,v,q(t,v));n.prototype=w;w.constructor=n;a(13)(c,"Number",n)}},function(c,d,a){c=a(0);var e=a(27),h=a(113),k=a(79),m=(1).toFixed,p=Math.floor,q=[0,0,0,0,0,0],l=function(a,c){for(var d=-1;6>++d;)c+=a*q[d],q[d]=c%1E7,c=p(c/1E7)},f=function(a){for(var c=6,d=0;0<=--c;)d+=
q[c],q[c]=p(d/a),d=d%a*1E7},n=function(){for(var a=6,c="";0<=--a;)if(""!==c||0===a||0!==q[a]){var d=String(q[a]);c=""===c?d:c+k.call("0",7-d.length)+d}return c},t=function u(a,c,d){return 0===c?d:1===c%2?u(a,c-1,d*a):u(a*a,c/2,d)};c(c.P+c.F*(!!m&&("0.000"!==(8E-5).toFixed(3)||"1"!==(.9).toFixed(0)||"1.25"!==(1.255).toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a(3)(function(){m.call({})})),"Number",{toFixed:function(a){var c=h(this,"Number.toFixed: incorrect invocation!");
a=e(a);var d="",q="0";if(0>a||20<a)throw RangeError("Number.toFixed: incorrect invocation!");if(c!=c)return"NaN";if(-1E21>=c||1E21<=c)return String(c);0>c&&(d="-",c=-c);if(1E-21<c){q=0;for(var m=c*t(2,69,1);4096<=m;)q+=12,m/=4096;for(;2<=m;)q+=1,m/=2;q-=69;c=0>q?c*t(2,-q,1):c/t(2,q,1);c*=4503599627370496;q=52-q;if(0<q){l(0,c);for(c=a;7<=c;)l(1E7,0),c-=7;l(t(10,c,1),0);for(c=q-1;23<=c;)f(8388608),c-=23;f(1<<c);l(1,1);f(2);q=n()}else l(0,c),l(1<<-q,0),q=n()+k.call("0",a)}0<a?(c=q.length,q=d+(c<=a?"0."+
k.call("0",a-c)+q:q.slice(0,c-a)+"."+q.slice(c-a))):q=d+q;return q}})},function(c,d,a){c=a(0);d=a(3);var e=a(113),h=(1).toPrecision;c(c.P+c.F*(d(function(){return"1"!==h.call(1,void 0)})||!d(function(){h.call({})})),"Number",{toPrecision:function(a){var c=e(this,"Number#toPrecision: incorrect invocation!");return void 0===a?h.call(c):h.call(c,a)}})},function(c,d,a){c=a(0);c(c.S,"Number",{EPSILON:Math.pow(2,-52)})},function(c,d,a){c=a(0);var e=a(2).isFinite;c(c.S,"Number",{isFinite:function(a){return"number"==
typeof a&&e(a)}})},function(c,d,a){c=a(0);c(c.S,"Number",{isInteger:a(114)})},function(c,d,a){c=a(0);c(c.S,"Number",{isNaN:function(a){return a!=a}})},function(c,d,a){c=a(0);var e=a(114),h=Math.abs;c(c.S,"Number",{isSafeInteger:function(a){return e(a)&&9007199254740991>=h(a)}})},function(c,d,a){c=a(0);c(c.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(c,d,a){c=a(0);c(c.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(c,d,a){c=a(0);a=a(112);c(c.S+c.F*(Number.parseFloat!=a),"Number",
{parseFloat:a})},function(c,d,a){c=a(0);a=a(111);c(c.S+c.F*(Number.parseInt!=a),"Number",{parseInt:a})},function(c,d,a){c=a(0);var e=a(115),h=Math.sqrt;a=Math.acosh;c(c.S+c.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&Infinity==a(Infinity)),"Math",{acosh:function(a){return 1>(a=+a)?NaN:9.490626562425156E7<a?Math.log(a)+Math.LN2:e(a-1+h(a-1)*h(a+1))}})},function(c,d,a){function e(a){return isFinite(a=+a)&&0!=a?0>a?-e(-a):Math.log(a+Math.sqrt(a*a+1)):a}c=a(0);d=Math.asinh;c(c.S+c.F*!(d&&0<1/d(0)),"Math",
{asinh:e})},function(c,d,a){c=a(0);d=Math.atanh;c(c.S+c.F*!(d&&0>1/d(-0)),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},function(c,d,a){c=a(0);var e=a(80);c(c.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},function(c,d,a){c=a(0);c(c.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},function(c,d,a){c=a(0);var e=Math.exp;c(c.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},function(c,d,a){c=a(0);a=a(81);
c(c.S+c.F*(a!=Math.expm1),"Math",{expm1:a})},function(c,d,a){c=a(0);c(c.S,"Math",{fround:a(116)})},function(c,d,a){c=a(0);var e=Math.abs;c(c.S,"Math",{hypot:function(a,c){for(var d=0,h=0,q=arguments.length,l=0,f,n;h<q;)f=e(arguments[h++]),l<f?(n=l/f,d=d*n*n+1,l=f):0<f?(n=f/l,d+=n*n):d+=f;return Infinity===l?Infinity:l*Math.sqrt(d)}})},function(c,d,a){c=a(0);var e=Math.imul;c(c.S+c.F*a(3)(function(){return-5!=e(4294967295,5)||2!=e.length}),"Math",{imul:function(a,c){a=+a;c=+c;var d=65535&a,e=65535&
c;return 0|d*e+((65535&a>>>16)*e+d*(65535&c>>>16)<<16>>>0)}})},function(c,d,a){c=a(0);c(c.S,"Math",{log10:function(a){return Math.log(a)*Math.LOG10E}})},function(c,d,a){c=a(0);c(c.S,"Math",{log1p:a(115)})},function(c,d,a){c=a(0);c(c.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},function(c,d,a){c=a(0);c(c.S,"Math",{sign:a(80)})},function(c,d,a){c=a(0);var e=a(81),h=Math.exp;c(c.S+c.F*a(3)(function(){return-2E-17!=!Math.sinh(-2E-17)}),"Math",{sinh:function(a){return 1>Math.abs(a=+a)?(e(a)-
e(-a))/2:(h(a-1)-h(-a-1))*(Math.E/2)}})},function(c,d,a){c=a(0);var e=a(81),h=Math.exp;c(c.S,"Math",{tanh:function(a){var c=e(a=+a),d=e(-a);return Infinity==c?1:Infinity==d?-1:(c-d)/(h(a)+h(-a))}})},function(c,d,a){c=a(0);c(c.S,"Math",{trunc:function(a){return(0<a?Math.floor:Math.ceil)(a)}})},function(c,d,a){c=a(0);var e=a(38),h=String.fromCharCode;a=String.fromCodePoint;c(c.S+c.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(a){for(var c=[],d=arguments.length,q=0,l;d>q;){l=+arguments[q++];
if(e(l,1114111)!==l)throw RangeError(l+" is not a valid code point");c.push(65536>l?h(l):h(((l-=65536)>>10)+55296,l%1024+56320))}return c.join("")}})},function(c,d,a){c=a(0);var e=a(16),h=a(8);c(c.S,"String",{raw:function(a){for(var c=e(a.raw),d=h(c.length),q=arguments.length,l=[],f=0;d>f;)l.push(String(c[f++])),f<q&&l.push(String(arguments[f]));return l.join("")}})},function(c,d,a){a(48)("trim",function(a){return function(){return a(this,3)}})},function(c,d,a){var e=a(82)(!0);a(83)(String,"String",
function(a){this._t=String(a);this._i=0},function(){var a=this._t,c=this._i;if(c>=a.length)return{value:void 0,done:!0};a=e(a,c);this._i+=a.length;return{value:a,done:!1}})},function(c,d,a){c=a(0);var e=a(82)(!1);c(c.P,"String",{codePointAt:function(a){return e(this,a)}})},function(c,d,a){c=a(0);var e=a(8),h=a(85),k="".endsWith;c(c.P+c.F*a(86)("endsWith"),"String",{endsWith:function(a){var c=h(this,a,"endsWith"),d=1<arguments.length?arguments[1]:void 0,l=e(c.length);d=void 0===d?l:Math.min(e(d),l);
l=String(a);return k?k.call(c,l,d):c.slice(d-l.length,d)===l}})},function(c,d,a){c=a(0);var e=a(85);c(c.P+c.F*a(86)("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,1<arguments.length?arguments[1]:void 0)}})},function(c,d,a){c=a(0);c(c.P,"String",{repeat:a(79)})},function(c,d,a){c=a(0);var e=a(8),h=a(85),k="".startsWith;c(c.P+c.F*a(86)("startsWith"),"String",{startsWith:function(a){var c=h(this,a,"startsWith"),d=e(Math.min(1<arguments.length?arguments[1]:void 0,c.length)),
l=String(a);return k?k.call(c,l,d):c.slice(d,d+l.length)===l}})},function(c,d,a){a(14)("anchor",function(a){return function(c){return a(this,"a","name",c)}})},function(c,d,a){a(14)("big",function(a){return function(){return a(this,"big","","")}})},function(c,d,a){a(14)("blink",function(a){return function(){return a(this,"blink","","")}})},function(c,d,a){a(14)("bold",function(a){return function(){return a(this,"b","","")}})},function(c,d,a){a(14)("fixed",function(a){return function(){return a(this,
"tt","","")}})},function(c,d,a){a(14)("fontcolor",function(a){return function(c){return a(this,"font","color",c)}})},function(c,d,a){a(14)("fontsize",function(a){return function(c){return a(this,"font","size",c)}})},function(c,d,a){a(14)("italics",function(a){return function(){return a(this,"i","","")}})},function(c,d,a){a(14)("link",function(a){return function(c){return a(this,"a","href",c)}})},function(c,d,a){a(14)("small",function(a){return function(){return a(this,"small","","")}})},function(c,
d,a){a(14)("strike",function(a){return function(){return a(this,"strike","","")}})},function(c,d,a){a(14)("sub",function(a){return function(){return a(this,"sub","","")}})},function(c,d,a){a(14)("sup",function(a){return function(){return a(this,"sup","","")}})},function(c,d,a){c=a(0);c(c.S,"Date",{now:function(){return(new Date).getTime()}})},function(c,d,a){c=a(0);var e=a(9),h=a(25);c(c.P+c.F*a(3)(function(){return null!==(new Date(NaN)).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),
"Date",{toJSON:function(a){a=e(this);var c=h(a);return"number"!=typeof c||isFinite(c)?a.toISOString():null}})},function(c,d,a){c=a(0);a=a(228);c(c.P+c.F*(Date.prototype.toISOString!==a),"Date",{toISOString:a})},function(c,d,a){d=a(3);var e=Date.prototype.getTime,h=Date.prototype.toISOString,k=function(a){return 9<a?a:"0"+a};c.exports=d(function(){return"0385-07-25T07:06:39.999Z"!=h.call(new Date(-5E13-1))})||!d(function(){h.call(new Date(NaN))})?function(){if(!isFinite(e.call(this)))throw RangeError("Invalid time value");
var a=this.getUTCFullYear(),c=this.getUTCMilliseconds(),d=0>a?"-":9999<a?"+":"";return d+("00000"+Math.abs(a)).slice(d?-6:-4)+"-"+k(this.getUTCMonth()+1)+"-"+k(this.getUTCDate())+"T"+k(this.getUTCHours())+":"+k(this.getUTCMinutes())+":"+k(this.getUTCSeconds())+"."+(99<c?c:"0"+k(c))+"Z"}:h},function(c,d,a){c=Date.prototype;var e=c.toString,h=c.getTime;"Invalid Date"!=new Date(NaN)+""&&a(13)(c,"toString",function(){var a=h.call(this);return a===a?e.call(this):"Invalid Date"})},function(c,d,a){c=a(5)("toPrimitive");
d=Date.prototype;c in d||a(12)(d,c,a(231))},function(c,d,a){var e=a(1),h=a(25);c.exports=function(a){if("string"!==a&&"number"!==a&&"default"!==a)throw TypeError("Incorrect hint");return h(e(this),"number"!=a)}},function(c,d,a){c=a(0);c(c.S,"Array",{isArray:a(58)})},function(c,d,a){var e=a(20);c=a(0);var h=a(9),k=a(117),m=a(87),p=a(8),q=a(88),l=a(89);c(c.S+c.F*!a(60)(function(a){Array.from(a)}),"Array",{from:function(a){var c=h(a),d="function"==typeof this?this:Array,f=arguments.length,u=1<f?arguments[1]:
void 0,y=void 0!==u,x=0,z=l(c);y&&(u=e(u,2<f?arguments[2]:void 0,2));if(void 0==z||d==Array&&m(z))for(f=p(c.length),d=new d(f);f>x;x++)q(d,x,y?u(c[x],x):c[x]);else for(c=z.call(c),d=new d;!(f=c.next()).done;x++)q(d,x,y?k(c,u,[f.value,x],!0):f.value);d.length=x;return d}})},function(c,d,a){c=a(0);var e=a(88);c(c.S+c.F*a(3)(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,c=arguments.length,d=new ("function"==typeof this?this:Array)(c);c>a;)e(d,a,arguments[a++]);
d.length=c;return d}})},function(c,d,a){c=a(0);var e=a(16),h=[].join;c(c.P+c.F*(a(51)!=Object||!a(22)(h)),"Array",{join:function(a){return h.call(e(this),void 0===a?",":a)}})},function(c,d,a){c=a(0);var e=a(75),h=a(21),k=a(38),m=a(8),p=[].slice;c(c.P+c.F*a(3)(function(){e&&p.call(e)}),"Array",{slice:function(a,c){var d=m(this.length),e=h(this);c=void 0===c?d:c;if("Array"==e)return p.call(this,a,c);a=k(a,d);c=k(c,d);c=m(c-a);d=Array(c);for(var l=0;l<c;l++)d[l]="String"==e?this.charAt(a+l):this[a+l];
return d}})},function(c,d,a){c=a(0);var e=a(10),h=a(9);d=a(3);var k=[].sort,m=[1,2,3];c(c.P+c.F*(d(function(){m.sort(void 0)})||!d(function(){m.sort(null)})||!a(22)(k)),"Array",{sort:function(a){return void 0===a?k.call(h(this)):k.call(h(this),e(a))}})},function(c,d,a){c=a(0);var e=a(29)(0);a=a(22)([].forEach,!0);c(c.P+c.F*!a,"Array",{forEach:function(a,c){return e(this,a,c)}})},function(c,d,a){var e=a(4),h=a(58),k=a(5)("species");c.exports=function(a){if(h(a)){var c=a.constructor;"function"!=typeof c||
c!==Array&&!h(c.prototype)||(c=void 0);e(c)&&(c=c[k],null===c&&(c=void 0))}return void 0===c?Array:c}},function(c,d,a){c=a(0);var e=a(29)(1);c(c.P+c.F*!a(22)([].map,!0),"Array",{map:function(a,c){return e(this,a,c)}})},function(c,d,a){c=a(0);var e=a(29)(2);c(c.P+c.F*!a(22)([].filter,!0),"Array",{filter:function(a,c){return e(this,a,c)}})},function(c,d,a){c=a(0);var e=a(29)(3);c(c.P+c.F*!a(22)([].some,!0),"Array",{some:function(a,c){return e(this,a,c)}})},function(c,d,a){c=a(0);var e=a(29)(4);c(c.P+
c.F*!a(22)([].every,!0),"Array",{every:function(a,c){return e(this,a,c)}})},function(c,d,a){c=a(0);var e=a(118);c(c.P+c.F*!a(22)([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},function(c,d,a){c=a(0);var e=a(118);c(c.P+c.F*!a(22)([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},function(c,d,a){c=a(0);var e=a(56)(!1),h=[].indexOf,k=!!h&&0>1/[1].indexOf(1,-0);c(c.P+c.F*(k||!a(22)(h)),"Array",{indexOf:function(a){return k?
h.apply(this,arguments)||0:e(this,a,arguments[1])}})},function(c,d,a){c=a(0);var e=a(16),h=a(27),k=a(8),m=[].lastIndexOf,p=!!m&&0>1/[1].lastIndexOf(1,-0);c(c.P+c.F*(p||!a(22)(m)),"Array",{lastIndexOf:function(a){if(p)return m.apply(this,arguments)||0;var c=e(this),d=k(c.length),n=d-1;1<arguments.length&&(n=Math.min(n,h(arguments[1])));for(0>n&&(n=d+n);0<=n;n--)if(n in c&&c[n]===a)return n||0;return-1}})},function(c,d,a){c=a(0);c(c.P,"Array",{copyWithin:a(119)});a(33)("copyWithin")},function(c,d,a){c=
a(0);c(c.P,"Array",{fill:a(91)});a(33)("fill")},function(c,d,a){c=a(0);var e=a(29)(5),h=!0;"find"in[]&&Array(1).find(function(){h=!1});c(c.P+c.F*h,"Array",{find:function(a){return e(this,a,1<arguments.length?arguments[1]:void 0)}});a(33)("find")},function(c,d,a){c=a(0);var e=a(29)(6),h=!0;"findIndex"in[]&&Array(1).findIndex(function(){h=!1});c(c.P+c.F*h,"Array",{findIndex:function(a){return e(this,a,1<arguments.length?arguments[1]:void 0)}});a(33)("findIndex")},function(c,d,a){a(41)("Array")},function(c,
d,a){c=a(2);var e=a(78),h=a(7).f,k=a(40).f,m=a(59),p=a(61),q=c.RegExp,l=q,f=q.prototype,n=/a/g,t=/a/g,w=new q(n)!==n;if(a(6)&&(!w||a(3)(function(){t[a(5)("match")]=!1;return q(n)!=n||q(t)==t||"/a/i"!=q(n,"i")}))){q=function(a,c){var d=this instanceof q,n=m(a),h=void 0===c;return!d&&n&&a.constructor===q&&h?a:e(w?new l(n&&!h?a.source:a,c):l((n=a instanceof q)?a.source:a,n&&h?p.call(a):c),d?this:f,q)};d=function(a){a in q||h(q,a,{configurable:!0,get:function(){return l[a]},set:function(c){l[a]=c}})};
k=k(l);for(var u=0;k.length>u;)d(k[u++]);f.constructor=q;q.prototype=f;a(13)(c,"RegExp",q)}a(41)("RegExp")},function(c,d,a){a(121);var e=a(1),h=a(61),k=a(6),m=/./.toString;a(3)(function(){return"/a/b"!=m.call({source:"a",flags:"b"})})?a(13)(RegExp.prototype,"toString",function(){var a=e(this);return"/".concat(a.source,"/","flags"in a?a.flags:!k&&a instanceof RegExp?h.call(a):void 0)},!0):"toString"!=m.name&&a(13)(RegExp.prototype,"toString",function(){return m.call(this)},!0)},function(c,d,a){a(62)("match",
1,function(a,c,d){return[function(d){var e=a(this),h=void 0==d?void 0:d[c];return void 0!==h?h.call(d,e):(new RegExp(d))[c](String(e))},d]})},function(c,d,a){a(62)("replace",2,function(a,c,d){return[function(e,h){var q=a(this),l=void 0==e?void 0:e[c];return void 0!==l?l.call(e,q,h):d.call(String(q),e,h)},d]})},function(c,d,a){a(62)("search",1,function(a,c,d){return[function(d){var e=a(this),h=void 0==d?void 0:d[c];return void 0!==h?h.call(d,e):(new RegExp(d))[c](String(e))},d]})},function(c,d,a){a(62)("split",
2,function(c,d,k){var e=a(59),h=k,q=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length){var l=void 0===/()??/.exec("")[1];k=function(a,c){var d=String(this);if(void 0===a&&0===c)return[];if(!e(a))return h.call(d,a,c);var f=[],n=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),k=0;c=void 0===c?4294967295:c>>>0;a=new RegExp(a.source,
n+"g");var m,p,v;for(l||(m=new RegExp("^"+a.source+"$(?!\\s)",n));p=a.exec(d);){n=p.index+p[0].length;if(n>k){f.push(d.slice(k,p.index));!l&&1<p.length&&p[0].replace(m,function(){for(v=1;v<arguments.length-2;v++)void 0===arguments[v]&&(p[v]=void 0)});1<p.length&&p.index<d.length&&q.apply(f,p.slice(1));var A=p[0].length;k=n;if(f.length>=c)break}a.lastIndex===p.index&&a.lastIndex++}k===d.length?!A&&a.test("")||f.push(""):f.push(d.slice(k));return f.length>c?f.slice(0,c):f}}else"0".split(void 0,0).length&&
(k=function(a,c){return void 0===a&&0===c?[]:h.call(this,a,c)});return[function(a,e){var f=c(this),l=void 0==a?void 0:a[d];return void 0!==l?l.call(a,f,e):k.call(String(f),a,e)},k]})},function(c,d,a){var e=a(36),h=a(2),k=a(20),m=a(53);c=a(0);var p=a(4),q=a(10),l=a(42),f=a(43),n=a(63),t=a(93).set,w=a(94)();d=a(95);var u=a(122),y=a(123),x=h.TypeError,z=h.process,v=h.Promise,A="process"==m(z),C=function(){},K,O=K=d.f;m=!!function(){try{var c=v.resolve(1),d=(c.constructor={})[a(5)("species")]=function(a){a(C,
C)};return(A||"function"==typeof PromiseRejectionEvent)&&c.then(C)instanceof d}catch(U){}}();var I=function(a){var c;return p(a)&&"function"==typeof(c=a.then)?c:!1},J=function(a,c){if(!a._n){a._n=!0;var d=a._c;w(function(){for(var f=a._v,e=1==a._s,l=0;d.length>l;){var n=void 0,h=void 0,q=d[l++],k=e?q.ok:q.fail,t=q.resolve,m=q.reject,p=q.domain;try{k?(e||(2==a._h&&E(a),a._h=1),!0===k?h=f:(p&&p.enter(),h=k(f),p&&p.exit()),h===q.promise?m(x("Promise-chain cycle")):(n=I(h))?n.call(h,t,m):t(h)):m(f)}catch(da){m(da)}}a._c=
[];a._n=!1;c&&!a._h&&B(a)})}},B=function(a){t.call(h,function(){var c=a._v,d=L(a),f,e;if(d){var l=u(function(){A?z.emit("unhandledRejection",c,a):(f=h.onunhandledrejection)?f({promise:a,reason:c}):(e=h.console)&&e.error&&e.error("Unhandled promise rejection",c)});a._h=A||L(a)?2:1}a._a=void 0;if(d&&l.e)throw l.v;})},L=function P(a){if(1==a._h)return!1;a=a._a||a._c;for(var c=0,d;a.length>c;)if(d=a[c++],d.fail||!P(d.promise))return!1;return!0},E=function(a){t.call(h,function(){var c;A?z.emit("rejectionHandled",
a):(c=h.onrejectionhandled)&&c({promise:a,reason:a._v})})},F=function(a){var c=this;c._d||(c._d=!0,c=c._w||c,c._v=a,c._s=2,c._a||(c._a=c._c.slice()),J(c,!0))},G=function U(a){var c=this,d;if(!c._d){c._d=!0;c=c._w||c;try{if(c===a)throw x("Promise can't be resolved itself");(d=I(a))?w(function(){var f={_w:c,_d:!1};try{d.call(a,k(U,f,1),k(F,f,1))}catch(Q){F.call(f,Q)}}):(c._v=a,c._s=1,J(c,!1))}catch(W){F.call({_w:c,_d:!1},W)}}};if(!m){v=function(a){l(this,v,"Promise","_h");q(a);H.call(this);try{a(k(G,
this,1),k(F,this,1))}catch(Z){F.call(this,Z)}};var H=function(a){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1};H.prototype=a(44)(v.prototype,{then:function(a,c){var d=O(n(this,v));d.ok="function"==typeof a?a:!0;d.fail="function"==typeof c&&c;d.domain=A?z.domain:void 0;this._c.push(d);this._a&&this._a.push(d);this._s&&J(this,!1);return d.promise},"catch":function(a){return this.then(void 0,a)}});var R=function(){var a=new H;this.promise=a;this.resolve=k(G,a,1);
this.reject=k(F,a,1)};d.f=O=function(a){return a===v||a===M?new R(a):K(a)}}c(c.G+c.W+c.F*!m,{Promise:v});a(47)(v,"Promise");a(41)("Promise");var M=a(24).Promise;c(c.S+c.F*!m,"Promise",{reject:function(a){var c=O(this),d=c.reject;d(a);return c.promise}});c(c.S+c.F*(e||!m),"Promise",{resolve:function(a){return y(e&&this===M?v:this,a)}});c(c.S+c.F*!(m&&a(60)(function(a){v.all(a)["catch"](C)})),"Promise",{all:function(a){var c=this,d=O(c),e=d.resolve,l=d.reject,n=u(function(){var d=[],n=0,h=1;f(a,!1,
function(a){var f=n++,q=!1;d.push(void 0);h++;c.resolve(a).then(function(a){q||(q=!0,d[f]=a,--h||e(d))},l)});--h||e(d)});n.e&&l(n.v);return d.promise},race:function(a){var c=this,d=O(c),e=d.reject,l=u(function(){f(a,!1,function(a){c.resolve(a).then(d.resolve,e)})});l.e&&e(l.v);return d.promise}})},function(c,d,a){var e=a(128),h=a(50);a(64)("WeakSet",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{add:function(a){return e.def(h(this,"WeakSet"),a,!0)}},e,!1,!0)},
function(c,d,a){c=a(0);d=a(65);var e=a(96),h=a(1),k=a(38),m=a(8),p=a(4),q=a(2).ArrayBuffer,l=a(63),f=e.ArrayBuffer,n=e.DataView,t=d.ABV&&q.isView,w=f.prototype.slice,u=d.VIEW;c(c.G+c.W+c.F*(q!==f),{ArrayBuffer:f});c(c.S+c.F*!d.CONSTR,"ArrayBuffer",{isView:function(a){return t&&t(a)||p(a)&&u in a}});c(c.P+c.U+c.F*a(3)(function(){return!(new f(2)).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,c){if(void 0!==w&&void 0===c)return w.call(h(this),a);var d=h(this).byteLength;a=k(a,d);c=k(void 0===
c?d:c,d);d=new (l(this,f))(m(c-a));for(var e=new n(this),q=new n(d),t=0;a<c;)q.setUint8(t++,e.getUint8(a++));return d}});a(41)("ArrayBuffer")},function(c,d,a){c=a(0);c(c.G+c.W+c.F*!a(65).ABV,{DataView:a(96).DataView})},function(c,d,a){a(30)("Int8",1,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Uint8",1,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Uint8",1,function(a){return function(c,d,e){return a(this,c,d,e)}},!0)},function(c,
d,a){a(30)("Int16",2,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Uint16",2,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Int32",4,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Uint32",4,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Float32",4,function(a){return function(c,d,e){return a(this,c,d,e)}})},function(c,d,a){a(30)("Float64",8,function(a){return function(c,
d,e){return a(this,c,d,e)}})},function(c,d,a){c=a(0);var e=a(10),h=a(1),k=(a(2).Reflect||{}).apply,m=Function.apply;c(c.S+c.F*!a(3)(function(){k(function(){})}),"Reflect",{apply:function(a,c,d){a=e(a);d=h(d);return k?k(a,c,d):m.call(a,c,d)}})},function(c,d,a){c=a(0);var e=a(39),h=a(10),k=a(1),m=a(4);d=a(3);var p=a(109),q=(a(2).Reflect||{}).construct,l=d(function(){function a(){}return!(q(function(){},[],a)instanceof a)}),f=!d(function(){q(function(){})});c(c.S+c.F*(l||f),"Reflect",{construct:function(a,
c){h(a);k(c);var d=3>arguments.length?a:h(arguments[2]);if(f&&!l)return q(a,c,d);if(a==d){switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3])}d=[null];d.push.apply(d,c);return new (p.apply(a,d))}d=d.prototype;d=e(m(d)?d:Object.prototype);var n=Function.apply.call(a,d,c);return m(n)?n:d}})},function(c,d,a){var e=a(7);c=a(0);var h=a(1),k=a(25);c(c.S+c.F*a(3)(function(){Reflect.defineProperty(e.f({},
1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,c,d){h(a);c=k(c,!0);h(d);try{return e.f(a,c,d),!0}catch(l){return!1}}})},function(c,d,a){c=a(0);var e=a(17).f,h=a(1);c(c.S,"Reflect",{deleteProperty:function(a,c){var d=e(h(a),c);return d&&!d.configurable?!1:delete a[c]}})},function(c,d,a){c=a(0);var e=a(1),h=function(a){this._t=e(a);this._i=0;var c=this._k=[],d;for(d in a)c.push(d)};a(84)(h,"Object",function(){var a=this._k,c;do if(this._i>=a.length)return{value:void 0,done:!0};while(!((c=
a[this._i++])in this._t));return{value:c,done:!1}});c(c.S,"Reflect",{enumerate:function(a){return new h(a)}})},function(c,d,a){function e(a,c){var d=3>arguments.length?a:arguments[2],f;if(q(a)===d)return a[c];if(f=h.f(a,c))return m(f,"value")?f.value:void 0!==f.get?f.get.call(d):void 0;if(p(f=k(a)))return e(f,c,d)}var h=a(17),k=a(18),m=a(11);c=a(0);var p=a(4),q=a(1);c(c.S,"Reflect",{get:e})},function(c,d,a){var e=a(17);c=a(0);var h=a(1);c(c.S,"Reflect",{getOwnPropertyDescriptor:function(a,c){return e.f(h(a),
c)}})},function(c,d,a){c=a(0);var e=a(18),h=a(1);c(c.S,"Reflect",{getPrototypeOf:function(a){return e(h(a))}})},function(c,d,a){c=a(0);c(c.S,"Reflect",{has:function(a,c){return c in a}})},function(c,d,a){c=a(0);var e=a(1),h=Object.isExtensible;c(c.S,"Reflect",{isExtensible:function(a){e(a);return h?h(a):!0}})},function(c,d,a){c=a(0);c(c.S,"Reflect",{ownKeys:a(130)})},function(c,d,a){c=a(0);var e=a(1),h=Object.preventExtensions;c(c.S,"Reflect",{preventExtensions:function(a){e(a);try{return h&&h(a),
!0}catch(m){return!1}}})},function(c,d,a){function e(a,c,d){var n=4>arguments.length?a:arguments[3],t=k.f(l(a),c);if(!t){if(f(t=m(a)))return e(t,c,d,n);t=q(0)}if(p(t,"value")){if(!1===t.writable||!f(n))return!1;t=k.f(n,c)||q(0);t.value=d;h.f(n,c,t);return!0}return void 0===t.set?!1:(t.set.call(n,d),!0)}var h=a(7),k=a(17),m=a(18),p=a(11);c=a(0);var q=a(34),l=a(1),f=a(4);c(c.S,"Reflect",{set:e})},function(c,d,a){c=a(0);var e=a(76);e&&c(c.S,"Reflect",{setPrototypeOf:function(a,c){e.check(a,c);try{return e.set(a,
c),!0}catch(m){return!1}}})},function(c,d,a){c=a(0);var e=a(56)(!0);c(c.P,"Array",{includes:function(a){return e(this,a,1<arguments.length?arguments[1]:void 0)}});a(33)("includes")},function(c,d,a){c=a(0);var e=a(131),h=a(9),k=a(8),m=a(10),p=a(90);c(c.P,"Array",{flatMap:function(a,c){var d=h(this);m(a);var l=k(d.length);var q=p(d,0);e(q,d,d,l,0,1,a,c);return q}});a(33)("flatMap")},function(c,d,a){c=a(0);var e=a(131),h=a(9),k=a(8),m=a(27),p=a(90);c(c.P,"Array",{flatten:function(a){var c=h(this),d=
k(c.length),n=p(c,0);e(n,c,c,d,0,void 0===a?1:m(a));return n}});a(33)("flatten")},function(c,d,a){c=a(0);var e=a(82)(!0);c(c.P,"String",{at:function(a){return e(this,a)}})},function(c,d,a){c=a(0);var e=a(132);c(c.P,"String",{padStart:function(a){return e(this,a,1<arguments.length?arguments[1]:void 0,!0)}})},function(c,d,a){c=a(0);var e=a(132);c(c.P,"String",{padEnd:function(a){return e(this,a,1<arguments.length?arguments[1]:void 0,!1)}})},function(c,d,a){a(48)("trimLeft",function(a){return function(){return a(this,
1)}},"trimStart")},function(c,d,a){a(48)("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},function(c,d,a){c=a(0);var e=a(26),h=a(8),k=a(59),m=a(61),p=RegExp.prototype,q=function(a,c){this._r=a;this._s=c};a(84)(q,"RegExp String",function(){var a=this._r.exec(this._s);return{value:a,done:null===a}});c(c.P,"String",{matchAll:function(a){e(this);if(!k(a))throw TypeError(a+" is not a regexp!");var c=String(this),d="flags"in p?String(a.flags):m.call(a);d=new RegExp(a.source,~d.indexOf("g")?
d:"g"+d);d.lastIndex=h(a.lastIndex);return new q(d,c)}})},function(c,d,a){a(72)("asyncIterator")},function(c,d,a){a(72)("observable")},function(c,d,a){c=a(0);var e=a(130),h=a(16),k=a(17),m=a(88);c(c.S,"Object",{getOwnPropertyDescriptors:function(a){a=h(a);for(var c=k.f,d=e(a),f={},n=0,t,p;d.length>n;)p=c(a,t=d[n++]),void 0!==p&&m(f,t,p);return f}})},function(c,d,a){c=a(0);var e=a(133)(!1);c(c.S,"Object",{values:function(a){return e(a)}})},function(c,d,a){c=a(0);var e=a(133)(!0);c(c.S,"Object",{entries:function(a){return e(a)}})},
function(c,d,a){c=a(0);var e=a(9),h=a(10),k=a(7);a(6)&&c(c.P+a(66),"Object",{__defineGetter__:function(a,c){k.f(e(this),a,{get:h(c),enumerable:!0,configurable:!0})}})},function(c,d,a){c=a(0);var e=a(9),h=a(10),k=a(7);a(6)&&c(c.P+a(66),"Object",{__defineSetter__:function(a,c){k.f(e(this),a,{set:h(c),enumerable:!0,configurable:!0})}})},function(c,d,a){c=a(0);var e=a(9),h=a(25),k=a(18),m=a(17).f;a(6)&&c(c.P+a(66),"Object",{__lookupGetter__:function(a){var c=e(this);a=h(a,!0);var d;do if(d=m(c,a))return d.get;
while(c=k(c))}})},function(c,d,a){c=a(0);var e=a(9),h=a(25),k=a(18),m=a(17).f;a(6)&&c(c.P+a(66),"Object",{__lookupSetter__:function(a){var c=e(this);a=h(a,!0);var d;do if(d=m(c,a))return d.set;while(c=k(c))}})},function(c,d,a){c=a(0);c(c.P+c.R,"Map",{toJSON:a(134)("Map")})},function(c,d,a){c=a(0);c(c.P+c.R,"Set",{toJSON:a(134)("Set")})},function(c,d,a){a(67)("Map")},function(c,d,a){a(67)("Set")},function(c,d,a){a(67)("WeakMap")},function(c,d,a){a(67)("WeakSet")},function(c,d,a){a(68)("Map")},function(c,
d,a){a(68)("Set")},function(c,d,a){a(68)("WeakMap")},function(c,d,a){a(68)("WeakSet")},function(c,d,a){c=a(0);c(c.G,{global:a(2)})},function(c,d,a){c=a(0);c(c.S,"System",{global:a(2)})},function(c,d,a){c=a(0);var e=a(21);c(c.S,"Error",{isError:function(a){return"Error"===e(a)}})},function(c,d,a){c=a(0);c(c.S,"Math",{clamp:function(a,c,d){return Math.min(d,Math.max(c,a))}})},function(c,d,a){c=a(0);c(c.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(c,d,a){c=a(0);var e=180/Math.PI;c(c.S,"Math",{degrees:function(a){return a*
e}})},function(c,d,a){c=a(0);var e=a(136),h=a(116);c(c.S,"Math",{fscale:function(a,c,d,q,l){return h(e(a,c,d,q,l))}})},function(c,d,a){c=a(0);c(c.S,"Math",{iaddh:function(a,c,d,m){a>>>=0;d>>>=0;return(c>>>0)+(m>>>0)+((a&d|(a|d)&~(a+d>>>0))>>>31)|0}})},function(c,d,a){c=a(0);c(c.S,"Math",{isubh:function(a,c,d,m){a>>>=0;d>>>=0;return(c>>>0)-(m>>>0)-((~a&d|~(a^d)&a-d>>>0)>>>31)|0}})},function(c,d,a){c=a(0);c(c.S,"Math",{imulh:function(a,c){var d=+a,e=+c;c=d&65535;a=e&65535;d>>=16;e>>=16;a=(d*a>>>0)+
(c*a>>>16);return d*e+(a>>16)+((c*e>>>0)+(a&65535)>>16)}})},function(c,d,a){c=a(0);c(c.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(c,d,a){c=a(0);var e=Math.PI/180;c(c.S,"Math",{radians:function(a){return a*e}})},function(c,d,a){c=a(0);c(c.S,"Math",{scale:a(136)})},function(c,d,a){c=a(0);c(c.S,"Math",{umulh:function(a,c){var d=+a,e=+c;c=d&65535;a=e&65535;d>>>=16;e>>>=16;a=(d*a>>>0)+(c*a>>>16);return d*e+(a>>>16)+((c*e>>>0)+(a&65535)>>>16)}})},function(c,d,a){c=a(0);c(c.S,"Math",{signbit:function(a){return(a=
+a)!=a?a:0==a?Infinity==1/a:0<a}})},function(c,d,a){c=a(0);var e=a(24),h=a(2),k=a(63),m=a(123);c(c.P+c.R,"Promise",{"finally":function(a){var c=k(this,e.Promise||h.Promise),d="function"==typeof a;return this.then(d?function(d){return m(c,a()).then(function(){return d})}:a,d?function(d){return m(c,a()).then(function(){throw d;})}:a)}})},function(c,d,a){c=a(0);var e=a(95),h=a(122);c(c.S,"Promise",{"try":function(a){var c=e.f(this);a=h(a);(a.e?c.reject:c.resolve)(a.v);return c.promise}})},function(c,
d,a){c=a(31);var e=a(1),h=c.key,k=c.set;c.exp({defineMetadata:function(a,c,d,l){k(a,c,e(d),h(l))}})},function(c,d,a){c=a(31);var e=a(1),h=c.key,k=c.map,m=c.store;c.exp({deleteMetadata:function(a,c){var d=3>arguments.length?void 0:h(arguments[2]),f=k(e(c),d,!1);if(void 0===f||!f["delete"](a))return!1;if(f.size)return!0;f=m.get(c);f["delete"](d);return!!f.size||m["delete"](c)}})},function(c,d,a){c=a(31);var e=a(1),h=a(18),k=c.has,m=c.get,p=c.key,q=function f(a,c,d){if(k(a,c,d))return m(a,c,d);c=h(c);
return null!==c?f(a,c,d):void 0};c.exp({getMetadata:function(a,c){return q(a,e(c),3>arguments.length?void 0:p(arguments[2]))}})},function(c,d,a){var e=a(126),h=a(135);c=a(31);var k=a(1),m=a(18),p=c.keys,q=c.key,l=function n(a,c){var d=p(a,c);a=m(a);if(null===a)return d;c=n(a,c);return c.length?d.length?h(new e(d.concat(c))):c:d};c.exp({getMetadataKeys:function(a){return l(k(a),2>arguments.length?void 0:q(arguments[1]))}})},function(c,d,a){c=a(31);var e=a(1),h=c.get,k=c.key;c.exp({getOwnMetadata:function(a,
c){return h(a,e(c),3>arguments.length?void 0:k(arguments[2]))}})},function(c,d,a){c=a(31);var e=a(1),h=c.keys,k=c.key;c.exp({getOwnMetadataKeys:function(a){return h(e(a),2>arguments.length?void 0:k(arguments[1]))}})},function(c,d,a){c=a(31);var e=a(1),h=a(18),k=c.has,m=c.key,p=function l(a,c,d){if(k(a,c,d))return!0;c=h(c);return null!==c?l(a,c,d):!1};c.exp({hasMetadata:function(a,c){return p(a,e(c),3>arguments.length?void 0:m(arguments[2]))}})},function(c,d,a){c=a(31);var e=a(1),h=c.has,k=c.key;c.exp({hasOwnMetadata:function(a,
c){return h(a,e(c),3>arguments.length?void 0:k(arguments[2]))}})},function(c,d,a){c=a(31);var e=a(1),h=a(10),k=c.key,m=c.set;c.exp({metadata:function(a,c){return function(d,f){m(a,c,(void 0!==f?e:h)(d),k(f))}}})},function(c,d,a){c=a(0);var e=a(94)(),h=a(2).process,k="process"==a(21)(h);c(c.G,{asap:function(a){var c=k&&h.domain;e(c?c.bind(a):a)}})},function(c,d,a){c=a(0);var e=a(2),h=a(24),k=a(94)(),m=a(5)("observable"),p=a(10),q=a(1),l=a(42);d=a(44);var f=a(12),n=a(43),t=n.RETURN,w=function(a){return null==
a?void 0:p(a)},u=function(a){var c=a._c;c&&(a._c=void 0,c())},y=function(a){return void 0===a._o},x=function(a,c){q(a);this._c=void 0;this._o=a;a=new z(this);try{var d=c(a),f=d;null!=d&&("function"===typeof d.unsubscribe?d=function(){f.unsubscribe()}:p(d),this._c=d)}catch(I){a.error(I);return}y(this)&&u(this)};x.prototype=d({},{unsubscribe:function(){y(this)||(this._o=void 0,u(this))}});var z=function(a){this._s=a};z.prototype=d({},{next:function(a){var c=this._s;if(!y(c)){var d=c._o;try{var f=w(d.next);
if(f)return f.call(d,a)}catch(I){try{y(c)||(c._o=void 0,u(c))}finally{throw I;}}}},error:function(a){var c=this._s;if(y(c))throw a;var d=c._o;c._o=void 0;try{var f=w(d.error);if(!f)throw a;a=f.call(d,a)}catch(I){try{u(c)}finally{throw I;}}u(c);return a},complete:function(a){var c=this._s;if(!y(c)){var d=c._o;c._o=void 0;try{var f=w(d.complete);a=f?f.call(d,a):void 0}catch(I){try{u(c)}finally{throw I;}}u(c);return a}}});var v=function(a){l(this,v,"Observable","_f")._f=p(a)};d(v.prototype,{subscribe:function(a){return new x(a,
this._f)},forEach:function(a){var c=this;return new (h.Promise||e.Promise)(function(d,f){p(a);var e=c.subscribe({next:function(c){try{return a(c)}catch(B){f(B),e.unsubscribe()}},error:f,complete:d})})}});d(v,{from:function(a){var c="function"===typeof this?this:v,d=w(q(a)[m]);if(d){var f=q(d.call(a));return f.constructor===c?f:new c(function(a){return f.subscribe(a)})}return new c(function(c){var d=!1;k(function(){if(!d){try{if(n(a,!1,function(a){c.next(a);if(d)return t})===t)return}catch(B){if(d)throw B;
c.error(B);return}c.complete()}});return function(){d=!0}})},of:function(){for(var a=0,c=arguments.length,d=Array(c);a<c;)d[a]=arguments[a++];return new ("function"===typeof this?this:v)(function(a){var c=!1;k(function(){if(!c){for(var f=0;f<d.length;++f)if(a.next(d[f]),c)return;a.complete()}});return function(){c=!0}})}});f(v.prototype,m,function(){return this});c(c.G,{Observable:v});a(41)("Observable")},function(c,d,a){c=a(2);a=a(0);d=c.navigator;var e=[].slice;d=!!d&&/MSIE .\./.test(d.userAgent);
var h=function(a){return function(c,d){var h=2<arguments.length,l=h?e.call(arguments,2):!1;return a(h?function(){("function"==typeof c?c:Function(c)).apply(this,l)}:c,d)}};a(a.G+a.B+a.F*d,{setTimeout:h(c.setTimeout),setInterval:h(c.setInterval)})},function(c,d,a){c=a(0);a=a(93);c(c.G+c.B,{setImmediate:a.set,clearImmediate:a.clear})},function(c,d,a){c=a(92);var e=a(37);d=a(13);var h=a(2),k=a(12),m=a(49),p=a(5);a=p("iterator");p=p("toStringTag");var q=m.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,
CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1};e=e(l);
for(var f=0;f<e.length;f++){var n=e[f],t=l[n],w=h[n];w=w&&w.prototype;var u;if(w&&(w[a]||k(w,a,q),w[p]||k(w,p,n),m[n]=q,t))for(u in c)w[u]||d(w,u,c[u],!0)}},function(c,d,a){(function(a,c){var d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};!function(a){function e(a,c,d,f){c=Object.create((c&&c.prototype instanceof l?c:l).prototype);f=new v(f||
[]);c._invoke=u(a,d,f);return c}function h(a,c,d){try{return{type:"normal",arg:a.call(c,d)}}catch(W){return{type:"throw",arg:W}}}function l(){}function f(){}function n(){}function k(a){["next","throw","return"].forEach(function(c){a[c]=function(a){return this._invoke(c,a)}})}function m(c){function f(a,e,l,n){a=h(c[a],c,e);if("throw"===a.type)n(a.arg);else{var q=a.arg;return(a=q.value)&&"object"===("undefined"===typeof a?"undefined":d(a))&&O.call(a,"__await")?Promise.resolve(a.__await).then(function(a){f("next",
a,l,n)},function(a){f("throw",a,l,n)}):Promise.resolve(a).then(function(a){q.value=a;l(q)},n)}}"object"===d(a.process)&&a.process.domain&&(f=a.process.domain.bind(f));var e;this._invoke=function(a,c){function d(){return new Promise(function(d,e){f(a,c,d,e)})}return e=e?e.then(d,d):d()}}function u(a,c,d){var f=G;return function(e,l){if(f===R)throw Error("Generator is already running");if(f===M){if("throw"===e)throw l;return C()}d.method=e;for(d.arg=l;;){if(e=d.delegate)if(e=y(e,d)){if(e===S)continue;
return e}if("next"===d.method)d.sent=d._sent=d.arg;else if("throw"===d.method){if(f===G)throw f=M,d.arg;d.dispatchException(d.arg)}else"return"===d.method&&d.abrupt("return",d.arg);f=R;e=h(a,c,d);if("normal"===e.type){f=d.done?M:H;if(e.arg===S)continue;return{value:e.arg,done:d.done}}"throw"===e.type&&(f=M,d.method="throw",d.arg=e.arg)}}}function y(a,c){var d=a.iterator[c.method];if(d===I){c.delegate=null;if("throw"===c.method){if(a.iterator.return&&(c.method="return",c.arg=I,y(a,c),"throw"===c.method))return S;
c.method="throw";c.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}d=h(d,a.iterator,c.arg);if("throw"===d.type)return c.method="throw",c.arg=d.arg,c.delegate=null,S;d=d.arg;if(!d)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,S;if(d.done)c[a.resultName]=d.value,c.next=a.nextLoc,"return"!==c.method&&(c.method="next",c.arg=I);else return d;c.delegate=null;return S}function x(a){var c={tryLoc:a[0]};1 in a&&(c.catchLoc=a[1]);
2 in a&&(c.finallyLoc=a[2],c.afterLoc=a[3]);this.tryEntries.push(c)}function z(a){var c=a.completion||{};c.type="normal";delete c.arg;a.completion=c}function v(a){this.tryEntries=[{tryLoc:"root"}];a.forEach(x,this);this.reset(!0)}function A(a){if(a){var c=a[B];if(c)return c.call(a);if("function"===typeof a.next)return a;if(!isNaN(a.length)){var d=-1;c=function Q(){for(;++d<a.length;)if(O.call(a,d))return Q.value=a[d],Q.done=!1,Q;Q.value=I;Q.done=!0;return Q};return c.next=c}}return{next:C}}function C(){return{value:I,
done:!0}}var K=Object.prototype,O=K.hasOwnProperty,I,J="function"===typeof Symbol?Symbol:{},B=J.iterator||"@@iterator",L=J.asyncIterator||"@@asyncIterator",E=J.toStringTag||"@@toStringTag";J="object"===d(c);var F=a.regeneratorRuntime;if(F)J&&(c.exports=F);else{F=a.regeneratorRuntime=J?c.exports:{};F.wrap=e;var G="suspendedStart",H="suspendedYield",R="executing",M="completed",S={};J={};J[B]=function(){return this};var P=Object.getPrototypeOf;(P=P&&P(P(A([]))))&&P!==K&&O.call(P,B)&&(J=P);var U=n.prototype=
l.prototype=Object.create(J);f.prototype=U.constructor=n;n.constructor=f;n[E]=f.displayName="GeneratorFunction";F.isGeneratorFunction=function(a){return(a="function"===typeof a&&a.constructor)?a===f||"GeneratorFunction"===(a.displayName||a.name):!1};F.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,n):(a.__proto__=n,E in a||(a[E]="GeneratorFunction"));a.prototype=Object.create(U);return a};F.awrap=function(a){return{__await:a}};k(m.prototype);m.prototype[L]=function(){return this};
F.AsyncIterator=m;F.async=function(a,c,d,f){var l=new m(e(a,c,d,f));return F.isGeneratorFunction(c)?l:l.next().then(function(a){return a.done?a.value:l.next()})};k(U);U[E]="Generator";U[B]=function(){return this};U.toString=function(){return"[object Generator]"};F.keys=function(a){var c=[],d;for(d in a)c.push(d);c.reverse();return function Q(){for(;c.length;){var d=c.pop();if(d in a)return Q.value=d,Q.done=!1,Q}Q.done=!0;return Q}};F.values=A;v.prototype={constructor:v,reset:function(a){this.next=
this.prev=0;this.sent=this._sent=I;this.done=!1;this.delegate=null;this.method="next";this.arg=I;this.tryEntries.forEach(z);if(!a)for(var c in this)"t"===c.charAt(0)&&O.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=I)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(a){function c(c,f){l.type="throw";l.arg=a;d.next=c;f&&(d.method="next",d.arg=I);return!!f}if(this.done)throw a;for(var d=this,f=this.tryEntries.length-
1;0<=f;--f){var e=this.tryEntries[f];var l=e.completion;if("root"===e.tryLoc)return c("end");if(e.tryLoc<=this.prev){var n=O.call(e,"catchLoc"),h=O.call(e,"finallyLoc");if(n&&h){if(this.prev<e.catchLoc)return c(e.catchLoc,!0);if(this.prev<e.finallyLoc)return c(e.finallyLoc)}else if(n){if(this.prev<e.catchLoc)return c(e.catchLoc,!0)}else if(h){if(this.prev<e.finallyLoc)return c(e.finallyLoc)}else throw Error("try statement without catch or finally");}}},abrupt:function(a,c){for(var d,f=this.tryEntries.length-
1;0<=f;--f){var e=this.tryEntries[f];if(e.tryLoc<=this.prev&&O.call(e,"finallyLoc")&&this.prev<e.finallyLoc){d=e;break}}d&&("break"===a||"continue"===a)&&d.tryLoc<=c&&c<=d.finallyLoc&&(d=null);f=d?d.completion:{};f.type=a;f.arg=c;return d?(this.method="next",this.next=d.finallyLoc,S):this.complete(f)},complete:function(a,c){if("throw"===a.type)throw a.arg;"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===
a.type&&c&&(this.next=c);return S},finish:function(a){for(var c=this.tryEntries.length-1;0<=c;--c){var d=this.tryEntries[c];if(d.finallyLoc===a)return this.complete(d.completion,d.afterLoc),z(d),S}},"catch":function(a){for(var c,d=this.tryEntries.length-1;0<=d;--d){var f=this.tryEntries[d];if(f.tryLoc===a)return a=f.completion,"throw"===a.type&&(c=a.arg,z(f)),c}throw Error("illegal catch attempt");},delegateYield:function(a,c,d){this.delegate={iterator:A(a),resultName:c,nextLoc:d};"next"===this.method&&
(this.arg=I);return S}}}}("object"===("undefined"===typeof a?"undefined":d(a))?a:"object"===("undefined"===typeof window?"undefined":d(window))?window:"object"===("undefined"===typeof self?"undefined":d(self))?self:void 0)}).call(d,a(70),a(97)(c))},function(c,d,a){a(347);c.exports=a(24).RegExp.escape},function(c,d,a){c=a(0);var e=a(348)(/[\\^$*+?.()|[\]{}]/g,"\\$&");c(c.S,"RegExp",{escape:function(a){return e(a)}})},function(c,d,a){c.exports=function(a,c){var d=c===Object(c)?function(a){return c[a]}:
c;return function(c){return String(c).replace(a,d)}}},function(c,d,a){function e(a){this.root_.style.top=a.top+"px";this.root_.style.left=a.left+"px";this.show()}c=a(350);a(102);var h=a(351),k=a(357);a(363);var m=a(367),p=a(371),q=a(378),l=a(99),f=a(380),n=a(387);a(391);var t=a(394),w=a(46),u=a(403),y=a(405);d=a(407);var x=a(145);x=x&&x.__esModule?x:{default:x};a=(a=a(146))&&a.__esModule?a:{default:a};window.requestAnimationFrame||(window.requestAnimationFrame=c.requestAnimationFrame,window.cancelAnimationFrame=
c.cancelAnimationFrame);window.PCP=a.default;window.bigInt=x.default;window.PCR=d.Ring;window.PLANETCALC={dialogIndex:2E3,Ring:d.Ring,init:function(){var a=document.querySelector(".pc-tb");if(a){a=new n.MDCToolbar(a);var c=document.getElementById("main_div");c&&(a.fixedAdjustElement=c)}if(a=document.querySelector(".mdc-temporary-drawer")){var d=new t.MDCTemporaryDrawer(a);d.foundation_.closeOld=d.foundation_.close;d.foundation_.close=function(){document.body&&document.body.className&&(document.body.className=
document.body.className.replace("mdc-drawer-scroll-lock",""));this.closeOld()};d.foundation_.isRootTransitioningEventTarget_=function(a){return!0};if(c=document.querySelector(".mdc-toolbar__icon--menu"))c.addEventListener("click",function(){return d.open=!d.open}),$(a).find("a").click(function(){d.open=!1})}a=document.getElementsByClassName("mdc-text-field");for(c=0;c<a.length;++c)new q.MDCTextField(a[c]);a=document.getElementsByClassName("mdc-button");for(c=0;c<a.length;++c)new w.MDCRipple(a[c]);
a=document.getElementsByClassName("mdc-radio");for(c=0;c<a.length;++c)new m.MDCRadio(a[c]);a=document.getElementsByClassName("mdc-checkbox");for(c=0;c<a.length;++c)new h.MDCCheckbox(a[c]);a=document.getElementsByClassName("pc-precision");var e=[];for(c=0;c<a.length;++c)e[c]=new u.MDCSlider(a[c]),e[c].root_.addEventListener("MDCSlider:change",function(a){PCF.changeCalcPrecision2(a.detail.value)});a=document.getElementsByClassName("mdc-tab-bar");for(c=0;c<a.length;++c)new f.MDCTabBar(a[c]);PCF.setPrecisionControls(e)},
menu:function(a){a=new l.MDCSimpleMenu(a);a.showAt=e;return a},select:function(a){return new p.MDCSelect(a)},dialog:function(a){a.style.zIndex=PLANETCALC.dialogIndex++;a=new k.MDCDialog(a);a.foundation_.adapter_.isDialog=function(a){return!0};return a},tablegrid:function(a){return new y.PCTablegrid(a)}}},function(c,d,a){(function(a){Object.defineProperty(d,"__esModule",{value:!0});d.requestAnimationFrame="function"===typeof a.requestAnimationFrame?function(c){return a.requestAnimationFrame(c)}:"function"===
typeof a.webkitRequestAnimationFrame?function(c){return a.webkitRequestAnimationFrame(c)}:"function"===typeof a.mozRequestAnimationFrame?function(c){return a.mozRequestAnimationFrame(c)}:function(a,c){return window.setTimeout(a,1E3/60)};d.cancelAnimationFrame="function"===typeof a.cancelAnimationFrame?function(c){return a.cancelAnimationFrame(c)}:"function"===typeof a.webkitCancelAnimationFrame?function(c){return a.webkitCancelAnimationFrame(c)}:"function"===typeof a.webkitCancelRequestAnimationFrame?
function(c){return a.webkitCancelRequestAnimationFrame(c)}:"function"===typeof a.mozCancelAnimationFrame?function(c){return a.mozCancelAnimationFrame(c)}:function(a){window.clearTimeout(a)}}).call(d,a(70))},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,
c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCCheckbox=d.MDCCheckboxFoundation=void 0;var h=function t(a,c,d){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,c);if(void 0===f){if(a=Object.getPrototypeOf(a),null!==a)return t(a,c,d)}else{if("value"in f)return f.value;c=f.get;return void 0===c?void 0:c.call(d)}},k=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=
!0);Object.defineProperty(a,f.key,f)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}(),m=a(54);c=(c=a(23))&&c.__esModule?c:{default:c};a(45);var p=a(354),q=p&&p.__esModule?p:{default:p},l=a(46),f=a(98);a=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,f=Array(d),e=0;e<d;e++)f[e]=arguments[e];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,[this].concat(f));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.ripple_=a.initRipple_();return a}e(c,a);k(c,[{key:"nativeCb_",get:function(){return this.root_.querySelector(q.default.strings.NATIVE_CONTROL_SELECTOR)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);k(c,[{key:"initRipple_",value:function(){var a=this,c=(0,f.getMatchesProperty)(HTMLElement.prototype),d=Object.assign(l.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return a.nativeCb_[c](":active")},
registerInteractionHandler:function(c,d){return a.nativeCb_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.nativeCb_.removeEventListener(c,d)},computeBoundingRect:function(){var c=a.root_.getBoundingClientRect(),d=c.left;c=c.top;return{top:c,left:d,right:d+40,bottom:c+40,width:40,height:40}}});d=new l.MDCRippleFoundation(d);return new l.MDCRipple(this.root_,d)}},{key:"getDefaultFoundation",value:function(){var a=this;return new q.default({addClass:function(c){return a.root_.classList.add(c)},
removeClass:function(c){return a.root_.classList.remove(c)},registerAnimationEndHandler:function(c){return a.root_.addEventListener((0,m.getCorrectEventName)(window,"animationend"),c)},deregisterAnimationEndHandler:function(c){return a.root_.removeEventListener((0,m.getCorrectEventName)(window,"animationend"),c)},registerChangeHandler:function(c){return a.nativeCb_.addEventListener("change",c)},deregisterChangeHandler:function(c){return a.nativeCb_.removeEventListener("change",c)},getNativeControl:function(){return a.nativeCb_},
forceLayout:function(){return a.root_.offsetWidth},isAttachedToDOM:function(){return!!a.root_.parentNode}})}},{key:"destroy",value:function(){this.ripple_.destroy();h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"ripple",get:function(){return this.ripple_}},{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(a){this.foundation_.setChecked(a)}},{key:"indeterminate",get:function(){return this.foundation_.isIndeterminate()},set:function(a){this.foundation_.setIndeterminate(a)}},
{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(a){this.foundation_.setDisabled(a)}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(a){this.foundation_.setValue(a)}}]);return c}(c.default);d.MDCCheckboxFoundation=q.default;d.MDCCheckbox=a},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==
typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,
f.key,f)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};a(137);var m=a(353),p=a(98),q={mouseup:"mousedown",pointerup:"pointerdown",touchend:"touchstart",keyup:"keydown",blur:"focus"};a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.layoutFrame_=0;d.frame_={width:0,height:0};d.activationState_=
d.defaultActivationState_();d.xfDuration_=0;d.initialSize_=0;d.maxRadius_=0;d.listenerInfos_=[{activate:"touchstart",deactivate:"touchend"},{activate:"pointerdown",deactivate:"pointerup"},{activate:"mousedown",deactivate:"mouseup"},{activate:"keydown",deactivate:"keyup"},{focus:"focus",blur:"blur"}];d.listeners_={activate:function(a){return d.activate_(a)},deactivate:function(a){return d.deactivate_(a)},focus:function(){return requestAnimationFrame(function(){return d.adapter_.addClass(c.cssClasses.BG_FOCUSED)})},
blur:function(){return requestAnimationFrame(function(){return d.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})}};d.resizeHandler_=function(){return d.layout()};d.unboundedCoords_={left:0,top:0};d.fgScale_=0;d.activationTimer_=0;d.fgDeactivationRemovalTimer_=0;d.activationAnimationHasEnded_=!1;d.activationTimerCallback_=function(){d.activationAnimationHasEnded_=!0;d.runDeactivationUXLogicIfReady_()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},
{key:"numbers",get:function(){return m.numbers}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]);
k(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationStartTime:0,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var a=this;if(this.isSupported_()){this.addEventListeners_();var d=c.cssClasses,f=d.ROOT,e=d.UNBOUNDED;requestAnimationFrame(function(){a.adapter_.addClass(f);a.adapter_.isUnbounded()&&
a.adapter_.addClass(e);a.layoutInternal_()})}}},{key:"addEventListeners_",value:function(){var a=this;this.listenerInfos_.forEach(function(c){Object.keys(c).forEach(function(d){a.adapter_.registerInteractionHandler(c[d],a.listeners_[d])})});this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"activate_",value:function(a){var c=this;if(!this.adapter_.isSurfaceDisabled()){var d=this.activationState_;d.isActivated||(d.isActivated=!0,d.isProgrammatic=null===a,d.activationEvent=a,d.wasActivatedByPointer=
d.isProgrammatic?!1:"mousedown"===a.type||"touchstart"===a.type||"pointerdown"===a.type,d.activationStartTime=Date.now(),requestAnimationFrame(function(){d.wasElementMadeActive=a&&"keydown"===a.type?c.adapter_.isSurfaceActive():!0;d.wasElementMadeActive?c.animateActivation_():c.activationState_=c.defaultActivationState_()}))}}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var a=this,d=c.strings,
f=d.VAR_FG_TRANSLATE_START;d=d.VAR_FG_TRANSLATE_END;var e=c.cssClasses,l=e.BG_ACTIVE_FILL,h=e.FG_DEACTIVATION;e=e.FG_ACTIVATION;var q=c.numbers.DEACTIVATION_TIMEOUT_MS,k="",p="";this.adapter_.isUnbounded()||(p=this.getFgTranslationCoordinates_(),k=p.startPoint,p=p.endPoint,k=k.x+"px, "+k.y+"px",p=p.x+"px, "+p.y+"px");this.adapter_.updateCssVariable(f,k);this.adapter_.updateCssVariable(d,p);clearTimeout(this.activationTimer_);clearTimeout(this.fgDeactivationRemovalTimer_);this.rmBoundedActivationClasses_();
this.adapter_.removeClass(h);this.adapter_.computeBoundingRect();this.adapter_.addClass(l);this.adapter_.addClass(e);this.activationTimer_=setTimeout(function(){return a.activationTimerCallback_()},q)}},{key:"getFgTranslationCoordinates_",value:function(){var a=this.activationState_,c=a.activationEvent;a=a.wasActivatedByPointer?(0,p.getNormalizedEventCoords)(c,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2};a={x:a.x-this.initialSize_/
2,y:a.y-this.initialSize_/2};return{startPoint:a,endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var a=this,d=c.cssClasses.FG_DEACTIVATION,f=this.activationState_,e=f.isActivated;!f.hasDeactivationUXRun&&e||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(d),this.fgDeactivationRemovalTimer_=setTimeout(function(){a.adapter_.removeClass(d)},m.numbers.FG_DEACTIVATION_MS))}},
{key:"rmBoundedActivationClasses_",value:function(){var a=c.cssClasses,d=a.FG_ACTIVATION;this.adapter_.removeClass(a.BG_ACTIVE_FILL);this.adapter_.removeClass(d);this.activationAnimationHasEnded_=!1;this.adapter_.computeBoundingRect()}},{key:"deactivate_",value:function(a){var c=this,d=this.activationState_;if(d.isActivated)if(d.isProgrammatic){var f=Object.assign({},d);requestAnimationFrame(function(){return c.animateDeactivation_(null,f)});this.activationState_=this.defaultActivationState_()}else{var e=
q[a.type]===d.activationEvent.type,l=e;d.wasActivatedByPointer&&(l="mouseup"===a.type);var n=Object.assign({},d);requestAnimationFrame(function(){e&&(c.activationState_.hasDeactivationUXRun=!0,c.animateDeactivation_(a,n));l&&(c.activationState_=c.defaultActivationState_())})}}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(a,d){a=d.wasElementMadeActive;var f=c.cssClasses.BG_FOCUSED;if(d.wasActivatedByPointer||
a)this.adapter_.removeClass(f),this.runDeactivationUXLogicIfReady_()}},{key:"destroy",value:function(){var a=this;if(this.isSupported_()){this.removeEventListeners_();var d=c.cssClasses,f=d.ROOT,e=d.UNBOUNDED;requestAnimationFrame(function(){a.adapter_.removeClass(f);a.adapter_.removeClass(e);a.removeCssVars_()})}}},{key:"removeEventListeners_",value:function(){var a=this;this.listenerInfos_.forEach(function(c){Object.keys(c).forEach(function(d){a.adapter_.deregisterInteractionHandler(c[d],a.listeners_[d])})});
this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"removeCssVars_",value:function(){var a=this,d=c.strings;Object.keys(d).forEach(function(c){0===c.indexOf("VAR_")&&a.adapter_.updateCssVariable(d[c],null)})}},{key:"layout",value:function(){var a=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_);this.layoutFrame_=requestAnimationFrame(function(){a.layoutInternal_();a.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){this.frame_=this.adapter_.computeBoundingRect();
var a=Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2));this.initialSize_=Math.max(this.frame_.height,this.frame_.width)*c.numbers.INITIAL_ORIGIN_SCALE;this.maxRadius_=a+c.numbers.PADDING;this.fgScale_=this.maxRadius_/this.initialSize_;this.xfDuration_=1E3*Math.sqrt(this.maxRadius_/1024);this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var a=c.strings,d=a.VAR_LEFT,f=a.VAR_TOP,e=a.VAR_FG_SCALE;this.adapter_.updateCssVariable(a.VAR_FG_SIZE,this.initialSize_+
"px");this.adapter_.updateCssVariable(e,this.fgScale_);this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(d,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(f,this.unboundedCoords_.top+"px"))}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-ripple-upgraded",
UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",BG_ACTIVE_FILL:"mdc-ripple-upgraded--background-active-fill",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"};d.strings={VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"};
d.numbers={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:300,FG_DEACTIVATION_MS:83}},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,
configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};a(45);a(355);var m=a(356),p=["checked","indeterminate"];a=function(a){function c(a){if(!(this instanceof
c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.currentCheckState_=m.strings.TRANSITION_STATE_INIT;d.currentAnimationClass_="";d.animEndLatchTimer_=0;d.animEndHandler_=function(){clearTimeout(d.animEndLatchTimer_);d.animEndLatchTimer_=setTimeout(function(){d.adapter_.removeClass(d.currentAnimationClass_);d.adapter_.deregisterAnimationEndHandler(d.animEndHandler_)},m.numbers.ANIM_END_LATCH_MS)};
d.changeHandler_=function(){return d.transitionCheckState_()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"numbers",get:function(){return m.numbers}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},registerAnimationEndHandler:function(){},deregisterAnimationEndHandler:function(){},registerChangeHandler:function(){},deregisterChangeHandler:function(){},getNativeControl:function(){},
forceLayout:function(){},isAttachedToDOM:function(){}}}}]);k(c,[{key:"init",value:function(){this.currentCheckState_=this.determineCheckState_(this.getNativeControl_());this.adapter_.addClass(m.cssClasses.UPGRADED);this.adapter_.registerChangeHandler(this.changeHandler_);this.installPropertyChangeHooks_()}},{key:"destroy",value:function(){this.adapter_.deregisterChangeHandler(this.changeHandler_);this.uninstallPropertyChangeHooks_()}},{key:"isChecked",value:function(){return this.getNativeControl_().checked}},
{key:"setChecked",value:function(a){this.getNativeControl_().checked=a}},{key:"isIndeterminate",value:function(){return this.getNativeControl_().indeterminate}},{key:"setIndeterminate",value:function(a){this.getNativeControl_().indeterminate=a}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(a){(this.getNativeControl_().disabled=a)?this.adapter_.addClass(m.cssClasses.DISABLED):this.adapter_.removeClass(m.cssClasses.DISABLED)}},{key:"getValue",
value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(a){this.getNativeControl_().value=a}},{key:"installPropertyChangeHooks_",value:function(){var a=this,c=this.getNativeControl_(),d=Object.getPrototypeOf(c);p.forEach(function(f){var e=Object.getOwnPropertyDescriptor(d,f);e&&"function"===typeof e.set&&Object.defineProperty(c,f,{get:e.get,set:function(d){e.set.call(c,d);a.transitionCheckState_()},configurable:e.configurable,enumerable:e.enumerable})})}},{key:"uninstallPropertyChangeHooks_",
value:function(){var a=this.getNativeControl_(),c=Object.getPrototypeOf(a);p.forEach(function(d){var f=Object.getOwnPropertyDescriptor(c,d);f&&"function"===typeof f.set&&Object.defineProperty(a,d,f)})}},{key:"transitionCheckState_",value:function(){var a=this.adapter_.getNativeControl();if(a){var c=this.currentCheckState_;a=this.determineCheckState_(a);c!==a&&(0<this.currentAnimationClass_.length&&(clearTimeout(this.animEndLatchTimer_),this.adapter_.forceLayout(),this.adapter_.removeClass(this.currentAnimationClass_)),
this.currentAnimationClass_=this.getTransitionAnimationClass_(c,a),this.currentCheckState_=a,this.adapter_.isAttachedToDOM()&&0<this.currentAnimationClass_.length&&(this.adapter_.addClass(this.currentAnimationClass_),this.adapter_.registerAnimationEndHandler(this.animEndHandler_)))}}},{key:"determineCheckState_",value:function(a){var c=m.strings.TRANSITION_STATE_INDETERMINATE,d=m.strings.TRANSITION_STATE_CHECKED,f=m.strings.TRANSITION_STATE_UNCHECKED;return a.indeterminate?c:a.checked?d:f}},{key:"getTransitionAnimationClass_",
value:function(a,d){var f=m.strings.TRANSITION_STATE_INIT,e=m.strings.TRANSITION_STATE_CHECKED,l=m.strings.TRANSITION_STATE_UNCHECKED,n=c.cssClasses,h=n.ANIM_UNCHECKED_CHECKED,q=n.ANIM_UNCHECKED_INDETERMINATE,k=n.ANIM_CHECKED_UNCHECKED,p=n.ANIM_CHECKED_INDETERMINATE,C=n.ANIM_INDETERMINATE_CHECKED;n=n.ANIM_INDETERMINATE_UNCHECKED;switch(a){case f:if(d===l)return"";case l:return d===e?h:q;case e:return d===l?k:p;default:return d===e?C:n}}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||
{checked:!1,indeterminate:!1,disabled:!1,value:null}}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();a(45);c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
}e(a,[{key:"addClass",value:function(a){}},{key:"removeClass",value:function(a){}},{key:"registerAnimationEndHandler",value:function(a){}},{key:"deregisterAnimationEndHandler",value:function(a){}},{key:"registerChangeHandler",value:function(a){}},{key:"deregisterChangeHandler",value:function(a){}},{key:"getNativeControl",value:function(){}},{key:"forceLayout",value:function(){}},{key:"isAttachedToDOM",value:function(){}}]);return a}();d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",
{value:!0});d.cssClasses={UPGRADED:"mdc-checkbox--upgraded",CHECKED:"mdc-checkbox--checked",INDETERMINATE:"mdc-checkbox--indeterminate",DISABLED:"mdc-checkbox--disabled",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",
ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked"};d.strings={NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_UNCHECKED:"unchecked",TRANSITION_STATE_INDETERMINATE:"indeterminate"};d.numbers={ANIM_END_LATCH_MS:100}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&
c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCDialog=d.util=d.MDCDialogFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}(),k=function n(a,
c,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return n(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(d)}};c=a(19);var m=a(46),p=a(358),q=p&&p.__esModule?p:{default:p},l=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(360));d.MDCDialogFoundation=q.default;d.util=l;d.MDCDialog=
function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"initialize",value:function(){this.focusTrap_=l.createFocusTrapInstance(this.dialogSurface_,this.acceptButton_);this.footerBtnRipples_=[];for(var a=this.root_.querySelectorAll(".mdc-dialog__footer__button"),
c=0,d;d=a[c];c++)this.footerBtnRipples_.push(new m.MDCRipple(d))}},{key:"destroy",value:function(){this.footerBtnRipples_.forEach(function(a){return a.destroy()});k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"show",value:function(){this.foundation_.open()}},{key:"close",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var a=this;return new q.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},
addBodyClass:function(a){return document.body.classList.add(a)},removeBodyClass:function(a){return document.body.classList.remove(a)},eventTargetHasClass:function(a,c){return a.classList.contains(c)},registerInteractionHandler:function(c,d){return a.root_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d)},registerSurfaceInteractionHandler:function(c,d){return a.dialogSurface_.addEventListener(c,d)},deregisterSurfaceInteractionHandler:function(c,
d){return a.dialogSurface_.removeEventListener(c,d)},registerDocumentKeydownHandler:function(a){return document.addEventListener("keydown",a)},deregisterDocumentKeydownHandler:function(a){return document.removeEventListener("keydown",a)},registerTransitionEndHandler:function(c){return a.dialogSurface_.addEventListener("transitionend",c)},deregisterTransitionEndHandler:function(c){return a.dialogSurface_.removeEventListener("transitionend",c)},notifyAccept:function(){return a.emit(q.default.strings.ACCEPT_EVENT)},
notifyCancel:function(){return a.emit(q.default.strings.CANCEL_EVENT)},trapFocusOnSurface:function(){return a.focusTrap_.activate()},untrapFocusOnSurface:function(){return a.focusTrap_.deactivate()},isDialog:function(c){return c===a.dialogSurface_},layoutFooterRipples:function(){return a.footerBtnRipples_.forEach(function(a){return a.layout()})}})}},{key:"open",get:function(){return this.foundation_.isOpen()}},{key:"acceptButton_",get:function(){return this.root_.querySelector(q.default.strings.ACCEPT_SELECTOR)}},
{key:"dialogSurface_",get:function(){return this.root_.querySelector(q.default.strings.DIALOG_SURFACE_SELECTOR)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}();c=a(19);var m=a(359);
a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.isOpen_=!1;d.componentClickHandler_=function(a){d.adapter_.eventTargetHasClass(a.target,m.cssClasses.BACKDROP)&&d.cancel(!0)};d.dialogClickHandler_=function(a){return d.handleDialogClick_(a)};d.documentKeydownHandler_=function(a){(a.key&&"Escape"===a.key||27===a.keyCode)&&d.cancel(!0)};d.transitionEndHandler_=
function(a){return d.handleTransitionEnd_(a)};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},addBodyClass:function(){},removeBodyClass:function(){},eventTargetHasClass:function(){return!1},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerSurfaceInteractionHandler:function(){},deregisterSurfaceInteractionHandler:function(){},
registerDocumentKeydownHandler:function(){},deregisterDocumentKeydownHandler:function(){},registerTransitionEndHandler:function(){},deregisterTransitionEndHandler:function(){},notifyAccept:function(){},notifyCancel:function(){},trapFocusOnSurface:function(){},untrapFocusOnSurface:function(){},isDialog:function(){return!1},layoutFooterRipples:function(){}}}}]);k(c,[{key:"destroy",value:function(){this.isOpen_&&(this.adapter_.deregisterSurfaceInteractionHandler("click",this.dialogClickHandler_),this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_),
this.adapter_.deregisterInteractionHandler("click",this.componentClickHandler_),this.adapter_.untrapFocusOnSurface(),this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_),this.adapter_.removeClass(c.cssClasses.ANIMATING),this.adapter_.removeClass(c.cssClasses.OPEN),this.enableScroll_())}},{key:"open",value:function(){this.isOpen_=!0;this.disableScroll_();this.adapter_.registerDocumentKeydownHandler(this.documentKeydownHandler_);this.adapter_.registerSurfaceInteractionHandler("click",
this.dialogClickHandler_);this.adapter_.registerInteractionHandler("click",this.componentClickHandler_);this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_);this.adapter_.addClass(c.cssClasses.ANIMATING);this.adapter_.addClass(c.cssClasses.OPEN)}},{key:"close",value:function(){this.isOpen_=!1;this.adapter_.deregisterSurfaceInteractionHandler("click",this.dialogClickHandler_);this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_);this.adapter_.deregisterInteractionHandler("click",
this.componentClickHandler_);this.adapter_.untrapFocusOnSurface();this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_);this.adapter_.addClass(c.cssClasses.ANIMATING);this.adapter_.removeClass(c.cssClasses.OPEN)}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"accept",value:function(a){a&&this.adapter_.notifyAccept();this.close()}},{key:"cancel",value:function(a){a&&this.adapter_.notifyCancel();this.close()}},{key:"handleDialogClick_",value:function(a){a=a.target;this.adapter_.eventTargetHasClass(a,
m.cssClasses.ACCEPT_BTN)?this.accept(!0):this.adapter_.eventTargetHasClass(a,m.cssClasses.CANCEL_BTN)&&this.cancel(!0)}},{key:"handleTransitionEnd_",value:function(a){this.adapter_.isDialog(a.target)&&(this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_),this.adapter_.removeClass(c.cssClasses.ANIMATING),this.isOpen_?(this.adapter_.trapFocusOnSurface(),this.adapter_.layoutFooterRipples()):this.enableScroll_())}},{key:"disableScroll_",value:function(){this.adapter_.addBodyClass(m.cssClasses.SCROLL_LOCK)}},
{key:"enableScroll_",value:function(){this.adapter_.removeBodyClass(m.cssClasses.SCROLL_LOCK)}}]);return c}(c.MDCFoundation);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-dialog",OPEN:"mdc-dialog--open",ANIMATING:"mdc-dialog--animating",BACKDROP:"mdc-dialog__backdrop",SCROLL_LOCK:"mdc-dialog-scroll-lock",ACCEPT_BTN:"mdc-dialog__footer__button--accept",CANCEL_BTN:"mdc-dialog__footer__button--cancel"};d.strings={OPEN_DIALOG_SELECTOR:".mdc-dialog--open",
DIALOG_SURFACE_SELECTOR:".mdc-dialog__surface",ACCEPT_SELECTOR:".mdc-dialog__footer__button--accept",ACCEPT_EVENT:"MDCDialog:accept",CANCEL_EVENT:"MDCDialog:cancel"}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.createFocusTrapInstance=function(a,c){return(2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.default)(a,{initialFocus:c,clickOutsideDeactivates:!0})};var e=(c=a(361))&&c.__esModule?c:{default:c}},function(c,d,a){function e(a){a&&a.focus&&a!==document.activeElement&&
(a.focus(),"input"===a.tagName.toLowerCase()&&a.select())}var h=a(362),k=null;c.exports=function(a,c){function d(a){if(K){a={returnFocus:a&&void 0!==a.returnFocus?a.returnFocus:B.returnFocusOnDeactivate,onDeactivate:a&&void 0!==a.onDeactivate?a.onDeactivate:B.onDeactivate};f();if(a.onDeactivate)a.onDeactivate();a.returnFocus&&setTimeout(function(){e(C)},0);O=K=!1;return this}}function l(){if(K){k&&k.pause();k=L;x();var a=null!==n("initialFocus")?n("initialFocus"):J.contains(document.activeElement)?
document.activeElement:z[0]||n("fallbackFocus");if(!a)throw Error("You can't have a focus-trap without at least one focusable element");e(a);document.addEventListener("focus",u,!0);document.addEventListener("click",m,!0);document.addEventListener("mousedown",p,!0);document.addEventListener("touchstart",p,!0);document.addEventListener("keydown",y,!0);return L}}function f(){if(K&&k===L)return document.removeEventListener("focus",u,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",
p,!0),document.removeEventListener("touchstart",p,!0),document.removeEventListener("keydown",y,!0),k=null,L}function n(a){var c=B[a],d=c;if(!c)return null;if("string"===typeof c&&(d=document.querySelector(c),!d))throw Error("`"+a+"` refers to no known node");if("function"===typeof c&&(d=c(),!d))throw Error("`"+a+"` did not return a node");return d}function p(a){B.clickOutsideDeactivates&&!J.contains(a.target)&&d({returnFocus:!1})}function m(a){B.clickOutsideDeactivates||J.contains(a.target)||(a.preventDefault(),
a.stopImmediatePropagation())}function u(a){J.contains(a.target)||(a.preventDefault(),a.stopImmediatePropagation(),"function"===typeof a.target.blur&&a.target.blur(),I&&(I.shiftKey?e(A):e(v)))}function y(a){if("Tab"===a.key||9===a.keyCode)if(x(),a.target.hasAttribute("tabindex")&&0>Number(a.target.getAttribute("tabindex")))I=a;else{a.preventDefault();var c=z.indexOf(a.target);a.shiftKey?a.target===v||-1===z.indexOf(a.target)?e(A):e(z[c-1]):a.target===A?e(v):e(z[c+1])}!1===B.escapeDeactivates||"Escape"!==
a.key&&"Esc"!==a.key&&27!==a.keyCode||d()}function x(){z=h(J);v=z[0];A=z[z.length-1]}var z=[],v=null,A=null,C=null,K=!1,O=!1,I=null,J="string"===typeof a?document.querySelector(a):a,B=c||{};B.returnFocusOnDeactivate=c&&void 0!==c.returnFocusOnDeactivate?c.returnFocusOnDeactivate:!0;B.escapeDeactivates=c&&void 0!==c.escapeDeactivates?c.escapeDeactivates:!0;var L={activate:function(a){if(!K){a={onActivate:a&&void 0!==a.onActivate?a.onActivate:B.onActivate};K=!0;O=!1;C=document.activeElement;if(a.onActivate)a.onActivate();
l();return L}},deactivate:d,pause:function(){!O&&K&&(O=!0,f())},unpause:function(){O&&K&&(O=!1,l())}};return L}},function(c,d,a){function e(a){function c(e,h){if(e===a.documentElement)return!1;for(var l=0,f=d.length;l<f;l++)if(d[l][0]===e)return d[l][1];h=h||a.defaultView.getComputedStyle(e);l=!1;"none"===h.display?l=!0:e.parentNode&&(l=c(e.parentNode));d.push([e,l]);return l}var d=[];return function(d){if(d===a.documentElement)return!1;var e=a.defaultView.getComputedStyle(d);return c(d,e)?!0:"hidden"===
e.visibility}}c.exports=function(a,c){c=c||{};var d=a.ownerDocument||a,h=[],q=[],l=e(d),f="input select a[href] textarea button [tabindex]".split(" "),n=a.querySelectorAll(f);if(c.includeContainer){var k=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;f.some(function(c){return k.call(a,c)})&&(n=Array.prototype.slice.apply(n),n.unshift(a))}for(var w=0,u=n.length;w<u;w++)c=n[w],f=parseInt(c.getAttribute("tabindex"),10)||c.tabIndex,0>f||"INPUT"===
c.tagName&&"hidden"===c.type||c.disabled||l(c,d)||(0===f?h.push(c):q.push({index:w,tabIndex:f,node:c}));d=q.sort(function(a,c){return a.tabIndex===c.tabIndex?a.index-c.index:a.tabIndex-c.tabIndex}).map(function(a){return a.node});Array.prototype.push.apply(d,h);return d}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCFormFieldFoundation=d.MDCFormField=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};var k=a(364),m=k&&
k.__esModule?k:{default:k};a(45);a=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,e=Array(d),h=0;h<d;h++)e[h]=arguments[h];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,[this].concat(e));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.input_;return a}e(c,a);h(c,[{key:"input",set:function(a){this.input_=
a},get:function(){return this.input_}}],[{key:"attachTo",value:function(a){return new c(a)}}]);h(c,[{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({registerInteractionHandler:function(c,d){return a.label_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.label_.removeEventListener(c,d)},activateInputRipple:function(){a.input_&&a.input_.ripple&&a.input_.ripple.activate()},deactivateInputRipple:function(){a.input_&&a.input_.ripple&&a.input_.ripple.deactivate()}})}},
{key:"label_",get:function(){return this.root_.querySelector(m.default.strings.LABEL_SELECTOR)}}]);return c}(c.default);d.MDCFormField=a;d.MDCFormFieldFoundation=m.default},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=
Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,f){d&&a(c.prototype,d);f&&a(c,f);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};
a(365);var m=a(366);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.clickHandler_=function(){return d.handleClick_()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},
activateInputRipple:function(){},deactivateInputRipple:function(){}}}}]);k(c,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("click",this.clickHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_)}},{key:"handleClick_",value:function(){var a=this;this.adapter_.activateInputRipple();requestAnimationFrame(function(){return a.adapter_.deactivateInputRipple()})}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,
"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"registerInteractionHandler",value:function(a,c){}},{key:"deregisterInteractionHandler",value:function(a,c){}},
{key:"activateInputRipple",value:function(){}},{key:"deactivateInputRipple",value:function(){}}]);return a}();d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-form-field"};d.strings={LABEL_SELECTOR:".mdc-form-field > label"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCRadioFoundation=d.MDCRadio=void 0;var h=function f(a,c,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return f(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(d)}},k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];
e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};a(45);var m=a(368),p=m&&m.__esModule?m:{default:m},q=a(46);a=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,
[this].concat(e));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.ripple_=a.initRipple_();return a}e(c,a);k(c,[{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(a){this.foundation_.setChecked(a)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(a){this.foundation_.setDisabled(a)}},{key:"value",get:function(){return this.foundation_.getValue()},
set:function(a){this.foundation_.setValue(a)}},{key:"ripple",get:function(){return this.ripple_}}],[{key:"attachTo",value:function(a){return new c(a)}}]);k(c,[{key:"initRipple_",value:function(){var a=this,c=Object.assign(q.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return!1},registerInteractionHandler:function(c,d){return a.nativeControl_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.nativeControl_.removeEventListener(c,
d)},computeBoundingRect:function(){var c=a.root_.getBoundingClientRect(),d=c.left;c=c.top;return{top:c,left:d,right:d+40,bottom:c+40,width:40,height:40}}});c=new q.MDCRippleFoundation(c);return new q.MDCRipple(this.root_,c)}},{key:"destroy",value:function(){this.ripple_.destroy();h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var a=this;return new p.default({addClass:function(c){return a.root_.classList.add(c)},
removeClass:function(c){return a.root_.classList.remove(c)},getNativeControl:function(){return a.root_.querySelector(p.default.strings.NATIVE_CONTROL_SELECTOR)}})}},{key:"nativeControl_",get:function(){return this.root_.querySelector(p.default.strings.NATIVE_CONTROL_SELECTOR)}}]);return c}(c.default);d.MDCRadio=a;d.MDCRadioFoundation=p.default},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);
a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:
{default:c};a(45);a(369);var k=a(370);a=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"isChecked",value:function(){return this.getNativeControl_().checked}},{key:"setChecked",value:function(a){this.getNativeControl_().checked=
a}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(a){var d=c.cssClasses.DISABLED;(this.getNativeControl_().disabled=a)?this.adapter_.addClass(d):this.adapter_.removeClass(d)}},{key:"getValue",value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(a){this.getNativeControl_().value=a}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||{checked:!1,disabled:!1,value:null}}}],
[{key:"cssClasses",get:function(){return k.cssClasses}},{key:"strings",get:function(){return k.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getNativeControl:function(){}}}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,
e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();a(45);c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"addClass",value:function(a){}},{key:"removeClass",value:function(a){}},{key:"getNativeControl",value:function(){}}]);return a}();d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.strings={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"};d.cssClasses={ROOT:"mdc-radio",
DISABLED:"mdc-radio--disabled"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCSelect=d.MDCSelectFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<
c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=a(99),m=(a=a(376))&&a.__esModule?a:{default:a};d.MDCSelectFoundation=m.default;d.MDCSelect=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"item",value:function(a){return this.options[a]||null}},{key:"nameditem",value:function(a){for(var c=0,d=this.options,e;e=d[c];c++)if(e.id===a||e.getAttribute("name")===a)return e;return null}},{key:"initialize",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(a){return new k.MDCSimpleMenu(a)};this.menuEl_=this.root_.querySelector(".mdc-select__menu");this.menu_=a(this.menuEl_);this.selectedText_=
this.root_.querySelector(".mdc-select__selected-text")}},{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},setAttr:function(c,d){return a.root_.setAttribute(c,d)},rmAttr:function(c,d){return a.root_.removeAttribute(c,d)},computeBoundingRect:function(){return a.root_.getBoundingClientRect()},registerInteractionHandler:function(c,d){return a.root_.addEventListener(c,
d)},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d)},focus:function(){return a.root_.focus()},makeTabbable:function(){a.root_.tabIndex=0},makeUntabbable:function(){a.root_.tabIndex=-1},getComputedStyleValue:function(c){return window.getComputedStyle(a.root_).getPropertyValue(c)},setStyle:function(c,d){return a.root_.style.setProperty(c,d)},create2dRenderingContext:function(){return document.createElement("canvas").getContext("2d")},setMenuElStyle:function(c,d){return a.menuEl_.style.setProperty(c,
d)},setMenuElAttr:function(c,d){return a.menuEl_.setAttribute(c,d)},rmMenuElAttr:function(c){return a.menuEl_.removeAttribute(c)},getMenuElOffsetHeight:function(){return a.menuEl_.offsetHeight},openMenu:function(c){return a.menu_.show({focusIndex:c})},isMenuOpen:function(){return a.menu_.open},setSelectedTextContent:function(c){a.selectedText_.textContent=c},getNumberOfOptions:function(){return a.options.length},getTextForOptionAtIndex:function(c){return a.options[c].textContent},getValueForOptionAtIndex:function(c){return a.options[c].id||
a.options[c].textContent},setAttrForOptionAtIndex:function(c,d,e){return a.options[c].setAttribute(d,e)},rmAttrForOptionAtIndex:function(c,d){return a.options[c].removeAttribute(d)},getOffsetTopForOptionAtIndex:function(c){return a.options[c].offsetTop},registerMenuInteractionHandler:function(c,d){return a.menu_.listen(c,d)},deregisterMenuInteractionHandler:function(c,d){return a.menu_.unlisten(c,d)},notifyChange:function(){return a.emit(m.default.strings.CHANGE_EVENT,a)},getWindowInnerHeight:function(){return window.innerHeight}})}},
{key:"initialSyncWithDOM",value:function(){var a=this.selectedOptions[0];a=a?this.options.indexOf(a):-1;0<=a&&(this.selectedIndex=a);"true"===this.root_.getAttribute("aria-disabled")&&(this.disabled=!0)}},{key:"value",get:function(){return this.foundation_.getValue()}},{key:"options",get:function(){return this.menu_.items}},{key:"selectedOptions",get:function(){return this.root_.querySelectorAll("[aria-selected]")}},{key:"selectedIndex",get:function(){return this.foundation_.getSelectedIndex()},set:function(a){this.foundation_.setSelectedIndex(a)}},
{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(a){this.foundation_.setDisabled(a)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,
c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCSimpleMenu=d.MDCSimpleMenuFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};var k=a(373),m=k&&k.__esModule?k:{default:k},p=a(100);a=function(a){function c(){var a;if(!(this instanceof
c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,e=Array(d),l=0;l<d;l++)e[l]=arguments[l];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,[this].concat(e));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.previousFocus_;return a}e(c,a);h(c,[{key:"show",value:function(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).focusIndex;this.foundation_.open({focusIndex:void 0===
a?null:a})}},{key:"hide",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},hasClass:function(c){return a.root_.classList.contains(c)},hasNecessaryDom:function(){return!!a.itemsContainer_},getAttributeForEventTarget:function(a,c){return a.getAttribute(c)},getInnerDimensions:function(){var c=a.itemsContainer_;return{width:c.offsetWidth,
height:c.offsetHeight}},hasAnchor:function(){return a.root_.parentElement&&a.root_.parentElement.classList.contains("mdc-menu-anchor")},getAnchorDimensions:function(){return a.root_.parentElement.getBoundingClientRect()},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},setScale:function(c,d){a.root_.style[(0,p.getTransformPropertyName)(window)]="scale("+c+", "+d+")"},setInnerScale:function(c,d){a.itemsContainer_.style[(0,p.getTransformPropertyName)(window)]=
"scale("+c+", "+d+")"},getNumberOfItems:function(){return a.items.length},registerInteractionHandler:function(c,d){return a.root_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d)},registerBodyClickHandler:function(a){return document.body.addEventListener("click",a)},deregisterBodyClickHandler:function(a){return document.body.removeEventListener("click",a)},getYParamsForItemAtIndex:function(c){c=a.items[c];return{top:c.offsetTop,height:c.offsetHeight}},
setTransitionDelayForItemAtIndex:function(c,d){return a.items[c].style.setProperty("transition-delay",d)},getIndexForEventTarget:function(c){return a.items.indexOf(c)},notifySelected:function(c){return a.emit(m.default.strings.SELECTED_EVENT,{index:c.index,item:a.items[c.index]})},notifyCancel:function(){return a.emit(m.default.strings.CANCEL_EVENT,{})},saveFocus:function(){a.previousFocus_=document.activeElement},restoreFocus:function(){a.previousFocus_&&a.previousFocus_.focus()},isFocused:function(){return document.activeElement===
a.root_},focus:function(){return a.root_.focus()},getFocusedItemIndex:function(){return a.items.indexOf(document.activeElement)},focusItemAtIndex:function(c){return a.items[c].focus()},isRtl:function(){return"rtl"===getComputedStyle(a.root_).getPropertyValue("direction")},setTransformOrigin:function(c){a.root_.style[(0,p.getTransformPropertyName)(window)+"-origin"]=c},setPosition:function(c){a.root_.style.left="left"in c?c.left:null;a.root_.style.right="right"in c?c.right:null;a.root_.style.top="top"in
c?c.top:null;a.root_.style.bottom="bottom"in c?c.bottom:null},getAccurateTime:function(){return window.performance.now()}})}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(a){a?this.foundation_.open():this.foundation_.close()}},{key:"itemsContainer_",get:function(){return this.root_.querySelector(m.default.strings.ITEMS_SELECTOR)}},{key:"items",get:function(){return[].slice.call(this.itemsContainer_.querySelectorAll(".mdc-list-item[role]"))}}],[{key:"attachTo",value:function(a){return new c(a)}}]);
return c}(c.default);d.MDCSimpleMenuFoundation=m.default;d.MDCSimpleMenu=a},function(c,d,a){function e(a,c,d){c in a?Object.defineProperty(a,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):a[c]=d;return a}function h(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function k(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var m=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?
c:{default:c};a(374);var p=a(375),q=a(100);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=h(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.clickHandler_=function(a){return d.handlePossibleSelected_(a)};d.keydownHandler_=function(a){return d.handleKeyboardDown_(a)};d.keyupHandler_=function(a){return d.handleKeyboardUp_(a)};d.documentClickHandler_=function(a){d.adapter_.notifyCancel();d.close(a)};
d.isOpen_=!1;d.startScaleX_=0;d.startScaleY_=0;d.targetScale_=1;d.scaleX_=0;d.scaleY_=0;d.running_=!1;d.selectedTriggerTimerId_=0;d.animationRequestId_=0;return d}k(c,a);m(c,null,[{key:"cssClasses",get:function(){return p.cssClasses}},{key:"strings",get:function(){return p.strings}},{key:"numbers",get:function(){return p.numbers}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasNecessaryDom:function(){return!1},getAttributeForEventTarget:function(){},
getInnerDimensions:function(){return{}},hasAnchor:function(){return!1},getAnchorDimensions:function(){return{}},getWindowDimensions:function(){return{}},setScale:function(){},setInnerScale:function(){},getNumberOfItems:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerBodyClickHandler:function(){},deregisterBodyClickHandler:function(){},getYParamsForItemAtIndex:function(){return{}},setTransitionDelayForItemAtIndex:function(){},getIndexForEventTarget:function(){return 0},
notifySelected:function(){},notifyCancel:function(){},saveFocus:function(){},restoreFocus:function(){},isFocused:function(){return!1},focus:function(){},getFocusedItemIndex:function(){return-1},focusItemAtIndex:function(){},isRtl:function(){return!1},setTransformOrigin:function(){},setPosition:function(){},getAccurateTime:function(){return 0}}}}]);m(c,[{key:"init",value:function(){var a=c.cssClasses,d=a.ROOT;a=a.OPEN;if(!this.adapter_.hasClass(d))throw Error(d+" class required in root element.");
if(!this.adapter_.hasNecessaryDom())throw Error("Required DOM nodes missing in "+d+" component.");this.adapter_.hasClass(a)&&(this.isOpen_=!0);this.adapter_.registerInteractionHandler("click",this.clickHandler_);this.adapter_.registerInteractionHandler("keyup",this.keyupHandler_);this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_)}},{key:"destroy",value:function(){clearTimeout(this.selectedTriggerTimerId_);cancelAnimationFrame(this.animationRequestId_);this.adapter_.deregisterInteractionHandler("click",
this.clickHandler_);this.adapter_.deregisterInteractionHandler("keyup",this.keyupHandler_);this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_);this.adapter_.deregisterBodyClickHandler(this.documentClickHandler_)}},{key:"applyTransitionDelays_",value:function(){var a=c.cssClasses,d=a.BOTTOM_LEFT;a=a.BOTTOM_RIGHT;for(var e=this.adapter_.getNumberOfItems(),f=this.dimensions_.height,l=c.numbers.TRANSITION_DURATION_MS/1E3,h=c.numbers.TRANSITION_SCALE_ADJUSTMENT_Y,k=0;k<e;k++){var q=
this.adapter_.getYParamsForItemAtIndex(k),m=q.top;this.itemHeight_=q=q.height;var p=m/f;if(this.adapter_.hasClass(d)||this.adapter_.hasClass(a))p=(f-m-q)/f;this.adapter_.setTransitionDelayForItemAtIndex(k,((h+p*(1-h))*l).toFixed(3)+"s")}}},{key:"removeTransitionDelays_",value:function(){for(var a=this.adapter_.getNumberOfItems(),c=0;c<a;c++)this.adapter_.setTransitionDelayForItemAtIndex(c,null)}},{key:"animationLoop_",value:function(){var a=this,d=this.adapter_.getAccurateTime(),e=c.numbers,f=e.TRANSITION_DURATION_MS,
l=e.TRANSITION_X1,h=e.TRANSITION_Y1,k=e.TRANSITION_X2,m=e.TRANSITION_Y2,p=e.TRANSITION_SCALE_ADJUSTMENT_X;e=e.TRANSITION_SCALE_ADJUSTMENT_Y;d=(0,q.clamp)((d-this.startTime_)/f);var C=(0,q.clamp)((d-p)/(1-p)),K=d;f=this.startScaleY_;1===this.targetScale_&&(this.itemHeight_&&(f=Math.max(this.itemHeight_/this.dimensions_.height,f)),C=(0,q.clamp)(d+p),K=(0,q.clamp)((d-e)/(1-e)));p=(0,q.bezierProgress)(C,l,h,k,m);l=(0,q.bezierProgress)(K,l,h,k,m);this.scaleX_=this.startScaleX_+(this.targetScale_-this.startScaleX_)*
p;h=1/(0===this.scaleX_?1:this.scaleX_);this.scaleY_=f+(this.targetScale_-f)*l;l=1/(0===this.scaleY_?1:this.scaleY_);this.adapter_.setScale(this.scaleX_,this.scaleY_);this.adapter_.setInnerScale(h,l);1>d?this.animationRequestId_=requestAnimationFrame(function(){return a.animationLoop_()}):(this.animationRequestId_=0,this.running_=!1,this.adapter_.removeClass(c.cssClasses.ANIMATING))}},{key:"animateMenu_",value:function(){var a=this;this.startTime_=this.adapter_.getAccurateTime();this.startScaleX_=
this.scaleX_;this.startScaleY_=this.scaleY_;this.targetScale_=this.isOpen_?1:0;this.running_||(this.running_=!0,this.animationRequestId_=requestAnimationFrame(function(){return a.animationLoop_()}))}},{key:"focusOnOpen_",value:function(a){null===a?(this.adapter_.focus(),this.adapter_.isFocused()||this.adapter_.focusItemAtIndex(0)):this.adapter_.focusItemAtIndex(a)}},{key:"handleKeyboardDown_",value:function(a){if(a.altKey||a.ctrlKey||a.metaKey)return!0;var c=a.keyCode,d=a.key,e=a.shiftKey,f="Tab"===
d||9===c,l="ArrowUp"===d||38===c,h="ArrowDown"===d||40===c;c="Space"===d||32===c;d=this.adapter_.getFocusedItemIndex();var n=this.adapter_.getNumberOfItems()-1;if(e&&f&&0===d)return this.adapter_.focusItemAtIndex(n),a.preventDefault(),!1;if(!e&&f&&d===n)return this.adapter_.focusItemAtIndex(0),a.preventDefault(),!1;(l||h||c)&&a.preventDefault();l?0===d||this.adapter_.isFocused()?this.adapter_.focusItemAtIndex(n):this.adapter_.focusItemAtIndex(d-1):h&&(d===n||this.adapter_.isFocused()?this.adapter_.focusItemAtIndex(0):
this.adapter_.focusItemAtIndex(d+1));return!0}},{key:"handleKeyboardUp_",value:function(a){if(a.altKey||a.ctrlKey||a.metaKey)return!0;var c=a.keyCode,d=a.key,e="Escape"===d||27===c;"Enter"!==d&&13!==c&&"Space"!==d&&32!==c||this.handlePossibleSelected_(a);e&&(this.adapter_.notifyCancel(),this.close());return!0}},{key:"handlePossibleSelected_",value:function(a){var c=this;if("true"!==this.adapter_.getAttributeForEventTarget(a.target,p.strings.ARIA_DISABLED_ATTR)){var d=this.adapter_.getIndexForEventTarget(a.target);
0>d||this.selectedTriggerTimerId_||(this.selectedTriggerTimerId_=setTimeout(function(){c.selectedTriggerTimerId_=0;c.close();c.adapter_.notifySelected({index:d})},p.numbers.SELECTED_TRIGGER_DELAY))}}},{key:"autoPosition_",value:function(){var a;if(this.adapter_.hasAnchor()){var c="top",d="left",f=this.adapter_.getAnchorDimensions(),l=this.adapter_.getWindowDimensions(),h=f.top+this.dimensions_.height-l.height,k=this.dimensions_.height-f.bottom;0<h&&k<h&&(c="bottom");l=f.left+this.dimensions_.width-
l.width;f=this.dimensions_.width-f.right;h=0<l;k=0<f;this.adapter_.isRtl()?(d="right",k&&l<f&&(d="left")):h&&f<l&&(d="right");f=(a={},e(a,d,"0"),e(a,c,"0"),a);this.adapter_.setTransformOrigin(c+" "+d);this.adapter_.setPosition(f)}}},{key:"open",value:function(){var a=this,d=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,e=void 0===d?null:d;this.adapter_.saveFocus();this.adapter_.addClass(c.cssClasses.ANIMATING);this.animationRequestId_=requestAnimationFrame(function(){a.dimensions_=
a.adapter_.getInnerDimensions();a.applyTransitionDelays_();a.autoPosition_();a.animateMenu_();a.adapter_.addClass(c.cssClasses.OPEN);a.focusOnOpen_(e);a.adapter_.registerBodyClickHandler(a.documentClickHandler_)});this.isOpen_=!0}},{key:"close",value:function(){var a=this,d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;d&&"true"===this.adapter_.getAttributeForEventTarget(d.target,p.strings.ARIA_DISABLED_ATTR)||(this.adapter_.deregisterBodyClickHandler(this.documentClickHandler_),this.adapter_.addClass(c.cssClasses.ANIMATING),
requestAnimationFrame(function(){a.removeTransitionDelays_();a.animateMenu_();a.adapter_.removeClass(c.cssClasses.OPEN)}),this.isOpen_=!1,this.adapter_.restoreFocus())}},{key:"isOpen",value:function(){return this.isOpen_}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,
e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");}e(a,[{key:"addClass",value:function(a){}},{key:"removeClass",value:function(a){}},{key:"hasClass",value:function(a){}},{key:"hasNecessaryDom",value:function(){}},{key:"getAttributeForEventTarget",value:function(a,c){}},{key:"getInnerDimensions",value:function(){}},{key:"hasAnchor",value:function(){}},{key:"getAnchorDimensions",
value:function(){}},{key:"getWindowDimensions",value:function(){}},{key:"setScale",value:function(a,c){}},{key:"setInnerScale",value:function(a,c){}},{key:"getNumberOfItems",value:function(){}},{key:"registerInteractionHandler",value:function(a,c){}},{key:"deregisterInteractionHandler",value:function(a,c){}},{key:"registerBodyClickHandler",value:function(a){}},{key:"deregisterBodyClickHandler",value:function(a){}},{key:"getYParamsForItemAtIndex",value:function(a){}},{key:"setTransitionDelayForItemAtIndex",
value:function(a,c){}},{key:"getIndexForEventTarget",value:function(a){}},{key:"notifySelected",value:function(a){}},{key:"notifyCancel",value:function(){}},{key:"saveFocus",value:function(){}},{key:"restoreFocus",value:function(){}},{key:"isFocused",value:function(){}},{key:"focus",value:function(){}},{key:"getFocusedItemIndex",value:function(){}},{key:"focusItemAtIndex",value:function(a){}},{key:"isRtl",value:function(){}},{key:"setTransformOrigin",value:function(a){}},{key:"setPosition",value:function(a){}},
{key:"getAccurateTime",value:function(){}}]);return a}();d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-simple-menu",OPEN:"mdc-simple-menu--open",ANIMATING:"mdc-simple-menu--animating",TOP_RIGHT:"mdc-simple-menu--open-from-top-right",BOTTOM_LEFT:"mdc-simple-menu--open-from-bottom-left",BOTTOM_RIGHT:"mdc-simple-menu--open-from-bottom-right"};d.strings={ITEMS_SELECTOR:".mdc-simple-menu__items",SELECTED_EVENT:"MDCSimpleMenu:selected",CANCEL_EVENT:"MDCSimpleMenu:cancel",
ARIA_DISABLED_ATTR:"aria-disabled"};d.numbers={SELECTED_TRIGGER_DELAY:50,TRANSITION_DURATION_MS:300,TRANSITION_SCALE_ADJUSTMENT_X:.5,TRANSITION_SCALE_ADJUSTMENT_Y:.2,TRANSITION_X1:0,TRANSITION_Y1:0,TRANSITION_X2:.2,TRANSITION_Y2:1}},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var m=a(377),
p=a(99),q=[{key:"ArrowUp",keyCode:38,forType:"keydown"},{key:"ArrowDown",keyCode:40,forType:"keydown"},{key:"Space",keyCode:32,forType:"keyup"}];a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.ctx_=null;d.selectedIndex_=-1;d.disabled_=!1;d.displayHandler_=function(a){a.preventDefault();d.adapter_.isMenuOpen()||d.open_()};d.displayViaKeyboardHandler_=
function(a){return d.handleDisplayViaKeyboard_(a)};d.selectionHandler_=function(a){a=a.detail.index;d.close_();a!==d.selectedIndex_&&(d.setSelectedIndex(a),d.adapter_.notifyChange())};d.cancelHandler_=function(){d.close_()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},setAttr:function(){},rmAttr:function(){},computeBoundingRect:function(){return{left:0,
top:0}},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},focus:function(){},makeTabbable:function(){},makeUntabbable:function(){},getComputedStyleValue:function(){return""},setStyle:function(){},create2dRenderingContext:function(){return{font:"",measureText:function(){return{width:0}}}},setMenuElStyle:function(){},setMenuElAttr:function(){},rmMenuElAttr:function(){},getMenuElOffsetHeight:function(){return 0},openMenu:function(){},isMenuOpen:function(){return!1},setSelectedTextContent:function(){},
getNumberOfOptions:function(){return 0},getTextForOptionAtIndex:function(){return""},getValueForOptionAtIndex:function(){return""},setAttrForOptionAtIndex:function(){},rmAttrForOptionAtIndex:function(){},getOffsetTopForOptionAtIndex:function(){return 0},registerMenuInteractionHandler:function(){},deregisterMenuInteractionHandler:function(){},notifyChange:function(){},getWindowInnerHeight:function(){return 0}}}}]);k(c,[{key:"init",value:function(){this.ctx_=this.adapter_.create2dRenderingContext();
this.adapter_.registerInteractionHandler("click",this.displayHandler_);this.adapter_.registerInteractionHandler("keydown",this.displayViaKeyboardHandler_);this.adapter_.registerInteractionHandler("keyup",this.displayViaKeyboardHandler_);this.adapter_.registerMenuInteractionHandler(p.MDCSimpleMenuFoundation.strings.SELECTED_EVENT,this.selectionHandler_);this.adapter_.registerMenuInteractionHandler(p.MDCSimpleMenuFoundation.strings.CANCEL_EVENT,this.cancelHandler_);this.resize()}},{key:"destroy",value:function(){this.ctx_=
null;this.adapter_.deregisterInteractionHandler("click",this.displayHandler_);this.adapter_.deregisterInteractionHandler("keydown",this.displayViaKeyboardHandler_);this.adapter_.deregisterInteractionHandler("keyup",this.displayViaKeyboardHandler_);this.adapter_.deregisterMenuInteractionHandler(p.MDCSimpleMenuFoundation.strings.SELECTED_EVENT,this.selectionHandler_);this.adapter_.deregisterMenuInteractionHandler(p.MDCSimpleMenuFoundation.strings.CANCEL_EVENT,this.cancelHandler_)}},{key:"getValue",
value:function(){return 0<=this.selectedIndex_?this.adapter_.getValueForOptionAtIndex(this.selectedIndex_):""}},{key:"getSelectedIndex",value:function(){return this.selectedIndex_}},{key:"setSelectedIndex",value:function(a){0<=this.selectedIndex_&&this.adapter_.rmAttrForOptionAtIndex(this.selectedIndex_,"aria-selected");this.selectedIndex_=0<=a&&a<this.adapter_.getNumberOfOptions()?a:-1;a="";0<=this.selectedIndex_&&(a=this.adapter_.getTextForOptionAtIndex(this.selectedIndex_).trim(),this.adapter_.setAttrForOptionAtIndex(this.selectedIndex_,
"aria-selected","true"));this.adapter_.setSelectedTextContent(a)}},{key:"isDisabled",value:function(){return this.disabled_}},{key:"setDisabled",value:function(a){var d=c.cssClasses.DISABLED;(this.disabled_=a)?(this.adapter_.addClass(d),this.adapter_.setAttr("aria-disabled","true"),this.adapter_.makeUntabbable()):(this.adapter_.removeClass(d),this.adapter_.rmAttr("aria-disabled"),this.adapter_.makeTabbable())}},{key:"resize",value:function(){var a=this.adapter_.getComputedStyleValue("font"),c=parseFloat(this.adapter_.getComputedStyleValue("letter-spacing"));
if(a)this.ctx_.font=a;else{a=this.adapter_.getComputedStyleValue("font-family").split(",")[0];var d=this.adapter_.getComputedStyleValue("font-size");this.ctx_.font=d+" "+a}d=a=0;for(var e=this.adapter_.getNumberOfOptions();d<e;d++){var f=this.adapter_.getTextForOptionAtIndex(d).trim(),l=this.ctx_.measureText(f).width;a=Math.max(a,Math.ceil(l+c*f.length))}this.adapter_.setStyle("width",a+"px")}},{key:"open_",value:function(){var a=c.cssClasses.OPEN,d=0>this.selectedIndex_?0:this.selectedIndex_;this.setMenuStylesForOpenAtIndex_(d);
this.adapter_.addClass(a);this.adapter_.openMenu(d)}},{key:"setMenuStylesForOpenAtIndex_",value:function(a){var c=this.adapter_.getWindowInnerHeight(),d=this.adapter_.computeBoundingRect(),e=d.left,f=d.top;this.adapter_.setMenuElAttr("aria-hidden","true");this.adapter_.setMenuElStyle("display","block");d=this.adapter_.getMenuElOffsetHeight();a=this.adapter_.getOffsetTopForOptionAtIndex(a);this.adapter_.setMenuElStyle("display","");this.adapter_.rmMenuElAttr("aria-hidden");f-=a;0>f?f=0:f+d>c&&(f=Math.max(0,
c-d));this.adapter_.setMenuElStyle("left",e+"px");this.adapter_.setMenuElStyle("top",f+"px");this.adapter_.setMenuElStyle("transform-origin","center "+a+"px")}},{key:"close_",value:function(){this.adapter_.removeClass(c.cssClasses.OPEN);this.adapter_.focus()}},{key:"handleDisplayViaKeyboard_",value:function(a){2===a.eventPhase&&("keydown"!==a.type||"Space"!==a.key&&32!==a.keyCode||a.preventDefault(),q.some(function(c){var d=c.key,e=c.keyCode;return a.type===c.forType&&(a.key===d||a.keyCode===e)})&&
this.displayHandler_(a))}}]);return c}(c.MDCFoundation);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={ROOT:"mdc-select",OPEN:"mdc-select--open",DISABLED:"mdc-select--disabled"};d.strings={CHANGE_EVENT:"MDCSelect:change"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCTextFieldFoundation=d.MDCTextField=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),k=function f(a,c,d){null===a&&(a=Function.prototype);var e=
Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return f(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(d)}};c=(c=a(23))&&c.__esModule?c:{default:c};var m=a(46),p=a(138);a(139);var q=(a=a(379))&&a.__esModule?a:{default:a};a=function(a){function c(){var a;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];d=(a=c.__proto__||Object.getPrototypeOf(c)).call.apply(a,
[this].concat(e));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!d||"object"!==typeof d&&"function"!==typeof d?this:d;a.input_;return a}e(c,a);h(c,[{key:"initialize",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(a){return new m.MDCRipple(a)};this.input_=this.root_.querySelector(p.strings.INPUT_SELECTOR);this.label_=this.root_.querySelector(p.strings.LABEL_SELECTOR);this.ripple=this.helptextElement=null;this.input_.hasAttribute("aria-controls")&&
(this.helptextElement=document.getElementById(this.input_.getAttribute("aria-controls")));this.root_.classList.contains(p.cssClasses.BOX)&&(this.ripple=a(this.root_));this.root_.classList.contains(p.cssClasses.TEXTAREA)||(this.bottomLine_=this.root_.querySelector(p.strings.BOTTOM_LINE_SELECTOR));this.root_.classList.contains(p.cssClasses.TEXT_FIELD_ICON)||(this.icon_=this.root_.querySelector(p.strings.ICON_SELECTOR))}},{key:"destroy",value:function(){this.ripple&&this.ripple.destroy();k(c.prototype.__proto__||
Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"initialSyncWithDom",value:function(){this.disabled=this.input_.disabled}},{key:"getDefaultFoundation",value:function(){var a=this;return new q.default(Object.assign({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},addClassToLabel:function(c){var d=a.label_;d&&d.classList.add(c)},removeClassFromLabel:function(c){var d=a.label_;d&&d.classList.remove(c)},eventTargetHasClass:function(a,
c){return a.classList.contains(c)},registerTextFieldInteractionHandler:function(c,d){return a.root_.addEventListener(c,d)},deregisterTextFieldInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d)},notifyIconAction:function(){return a.emit(q.default.strings.ICON_EVENT,{})}},this.getInputAdapterMethods_(),this.getHelptextAdapterMethods_(),this.getBottomLineAdapterMethods_(),this.getIconAdapterMethods_()))}},{key:"getIconAdapterMethods_",value:function(){var a=this;return{setIconAttr:function(c,
d){a.icon_&&a.icon_.setAttribute(c,d)}}}},{key:"getBottomLineAdapterMethods_",value:function(){var a=this;return{addClassToBottomLine:function(c){a.bottomLine_&&a.bottomLine_.classList.add(c)},removeClassFromBottomLine:function(c){a.bottomLine_&&a.bottomLine_.classList.remove(c)},setBottomLineAttr:function(c,d){a.bottomLine_&&a.bottomLine_.setAttribute(c,d)},registerTransitionEndHandler:function(c){a.bottomLine_&&a.bottomLine_.addEventListener("transitionend",c)},deregisterTransitionEndHandler:function(c){a.bottomLine_&&
a.bottomLine_.removeEventListener("transitionend",c)}}}},{key:"getInputAdapterMethods_",value:function(){var a=this;return{registerInputInteractionHandler:function(c,d){return a.input_.addEventListener(c,d)},deregisterInputInteractionHandler:function(c,d){return a.input_.removeEventListener(c,d)},getNativeInput:function(){return a.input_}}}},{key:"getHelptextAdapterMethods_",value:function(){var a=this;return{addClassToHelptext:function(c){a.helptextElement&&a.helptextElement.classList.add(c)},removeClassFromHelptext:function(c){a.helptextElement&&
a.helptextElement.classList.remove(c)},helptextHasClass:function(c){return a.helptextElement?a.helptextElement.classList.contains(c):!1},setHelptextAttr:function(c,d){a.helptextElement&&a.helptextElement.setAttribute(c,d)},removeHelptextAttr:function(c){a.helptextElement&&a.helptextElement.removeAttribute(c)}}}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(a){this.foundation_.setDisabled(a)}},{key:"valid",set:function(a){this.foundation_.setValid(a)}}],[{key:"attachTo",
value:function(a){return new c(a)}}]);return c}(c.default);d.MDCTextField=a;d.MDCTextFieldFoundation=q.default},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};a(139);var m=a(138);a=function(a){function c(){var a=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.isFocused_=!1;d.receivedUserInput_=!1;d.useCustomValidityChecking_=!1;d.inputFocusHandler_=function(){return d.activateFocus()};d.inputBlurHandler_=function(){return d.deactivateFocus()};d.inputInputHandler_=function(){return d.autoCompleteFocus()};d.setPointerXOffset_=function(a){return d.animateBottomLine(a)};
d.textFieldInteractionHandler_=function(a){return d.handleTextFieldInteraction(a)};d.transitionEndHandler_=function(a){return d.handleBottomLineAnimationEnd(a)};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},addClassToLabel:function(){},removeClassFromLabel:function(){},setIconAttr:function(){},eventTargetHasClass:function(){},
registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},notifyIconAction:function(){},addClassToBottomLine:function(){},removeClassFromBottomLine:function(){},addClassToHelptext:function(){},removeClassFromHelptext:function(){},helptextHasClass:function(){return!1},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerTransitionEndHandler:function(){},deregisterTransitionEndHandler:function(){},setBottomLineAttr:function(){},
setHelptextAttr:function(){},removeHelptextAttr:function(){},getNativeInput:function(){}}}}]);k(c,[{key:"init",value:function(){var a=this;this.adapter_.addClass(c.cssClasses.UPGRADED);this.getNativeInput_().value&&this.adapter_.addClassToLabel(c.cssClasses.LABEL_FLOAT_ABOVE);this.adapter_.registerInputInteractionHandler("focus",this.inputFocusHandler_);this.adapter_.registerInputInteractionHandler("blur",this.inputBlurHandler_);this.adapter_.registerInputInteractionHandler("input",this.inputInputHandler_);
["mousedown","touchstart"].forEach(function(c){a.adapter_.registerInputInteractionHandler(c,a.setPointerXOffset_)});["click","keydown"].forEach(function(c){a.adapter_.registerTextFieldInteractionHandler(c,a.textFieldInteractionHandler_)});this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_)}},{key:"destroy",value:function(){var a=this;this.adapter_.removeClass(c.cssClasses.UPGRADED);this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_);this.adapter_.deregisterInputInteractionHandler("blur",
this.inputBlurHandler_);this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_);["mousedown","touchstart"].forEach(function(c){a.adapter_.deregisterInputInteractionHandler(c,a.setPointerXOffset_)});["click","keydown"].forEach(function(c){a.adapter_.deregisterTextFieldInteractionHandler(c,a.textFieldInteractionHandler_)});this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_)}},{key:"handleTextFieldInteraction",value:function(a){if(!this.adapter_.getNativeInput().disabled){this.receivedUserInput_=
!0;var d=a.type,e=this.adapter_.eventTargetHasClass(a.target,c.cssClasses.TEXT_FIELD_ICON);a="click"===d||"Enter"===a.key||13===a.keyCode;e&&a&&this.adapter_.notifyIconAction()}}},{key:"activateFocus",value:function(){var a=c.cssClasses,d=a.BOTTOM_LINE_ACTIVE,e=a.LABEL_FLOAT_ABOVE,h=a.LABEL_SHAKE;this.adapter_.addClass(a.FOCUSED);this.adapter_.addClassToBottomLine(d);this.adapter_.addClassToLabel(e);this.adapter_.removeClassFromLabel(h);this.showHelptext_();this.isFocused_=!0}},{key:"animateBottomLine",
value:function(a){var c=a.target.getBoundingClientRect();this.adapter_.setBottomLineAttr("style","transform-origin: "+(a.clientX-c.left)+"px center")}},{key:"autoCompleteFocus",value:function(){this.receivedUserInput_||this.activateFocus()}},{key:"showHelptext_",value:function(){this.adapter_.removeHelptextAttr(c.strings.ARIA_HIDDEN)}},{key:"handleBottomLineAnimationEnd",value:function(a){var d=c.cssClasses.BOTTOM_LINE_ACTIVE;"opacity"!==a.propertyName||this.isFocused_||this.adapter_.removeClassFromBottomLine(d)}},
{key:"deactivateFocus",value:function(){var a=c.cssClasses,d=a.FOCUSED,e=a.LABEL_FLOAT_ABOVE;a=a.LABEL_SHAKE;var h=this.getNativeInput_();this.isFocused_=!1;this.adapter_.removeClass(d);this.adapter_.removeClassFromLabel(a);h.value||this.isBadInput_()||(this.adapter_.removeClassFromLabel(e),this.receivedUserInput_=!1);this.useCustomValidityChecking_||this.changeValidity_(h.checkValidity())}},{key:"changeValidity_",value:function(a){var d=c.cssClasses,e=d.INVALID;d=d.LABEL_SHAKE;a?this.adapter_.removeClass(e):
(this.adapter_.addClassToLabel(d),this.adapter_.addClass(e));this.updateHelptext_(a)}},{key:"updateHelptext_",value:function(a){var d=c.cssClasses,e=d.HELPTEXT_VALIDATION_MSG,l=c.strings.ROLE;d=this.adapter_.helptextHasClass(d.HELPTEXT_PERSISTENT);(a=this.adapter_.helptextHasClass(e)&&!a)?this.adapter_.setHelptextAttr(l,"alert"):this.adapter_.removeHelptextAttr(l);d||a||this.hideHelptext_()}},{key:"hideHelptext_",value:function(){this.adapter_.setHelptextAttr(c.strings.ARIA_HIDDEN,"true")}},{key:"isBadInput_",
value:function(){var a=this.getNativeInput_();return a.validity?a.validity.badInput:a.badInput}},{key:"isDisabled",value:function(){return this.getNativeInput_().disabled}},{key:"setDisabled",value:function(a){var d=c.cssClasses.DISABLED;(this.getNativeInput_().disabled=a)?(this.adapter_.addClass(d),this.adapter_.setIconAttr("tabindex","-1")):(this.adapter_.removeClass(d),this.adapter_.setIconAttr("tabindex","0"))}},{key:"getNativeInput_",value:function(){return this.adapter_.getNativeInput()||{checkValidity:function(){return!0},
value:"",disabled:!1,badInput:!1}}},{key:"setValid",value:function(a){this.useCustomValidityChecking_=!0;this.changeValidity_(a)}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});var e=a(140);Object.defineProperty(d,"MDCTabFoundation",{enumerable:!0,get:function(){return e.MDCTabFoundation}});Object.defineProperty(d,"MDCTab",{enumerable:!0,get:function(){return e.MDCTab}});var h=a(142);Object.defineProperty(d,"MDCTabBarFoundation",{enumerable:!0,
get:function(){return h.MDCTabBarFoundation}});Object.defineProperty(d,"MDCTabBar",{enumerable:!0,get:function(){return h.MDCTabBar}});var k=a(384);Object.defineProperty(d,"MDCTabBarScrollerFoundation",{enumerable:!0,get:function(){return k.MDCTabBarScrollerFoundation}});Object.defineProperty(d,"MDCTabBarScroller",{enumerable:!0,get:function(){return k.MDCTabBarScroller}})},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=
e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};var m=a(141);a=function(a){function c(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.computedWidth_=
0;d.computedLeft_=0;d.isActive_=!1;d.preventDefaultOnClick_=!1;d.clickHandler_=function(a){d.preventDefaultOnClick_&&a.preventDefault();d.adapter_.notifySelected()};d.keydownHandler_=function(a){(a.key&&"Enter"===a.key||13===a.keyCode)&&d.adapter_.notifySelected()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},registerInteractionHandler:function(){},
deregisterInteractionHandler:function(){},getOffsetWidth:function(){return 0},getOffsetLeft:function(){return 0},notifySelected:function(){}}}}]);k(c,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("click",this.clickHandler_);this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_);this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_)}},
{key:"getComputedWidth",value:function(){return this.computedWidth_}},{key:"getComputedLeft",value:function(){return this.computedLeft_}},{key:"isActive",value:function(){return this.isActive_}},{key:"setActive",value:function(a){(this.isActive_=a)?this.adapter_.addClass(m.cssClasses.ACTIVE):this.adapter_.removeClass(m.cssClasses.ACTIVE)}},{key:"preventsDefaultOnClick",value:function(){return this.preventDefaultOnClick_}},{key:"setPreventDefaultOnClick",value:function(a){this.preventDefaultOnClick_=
a}},{key:"measureSelf",value:function(){this.computedWidth_=this.adapter_.getOffsetWidth();this.computedLeft_=this.adapter_.getOffsetLeft()}}]);return c}(c.default);d.default=a},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=
Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};
var m=a(54),p=a(383);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.isIndicatorShown_=!1;d.computedWidth_=0;d.computedLeft_=0;d.activeTabIndex_=0;d.layoutFrame_=0;d.resizeHandler_=function(){return d.layout()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return p.cssClasses}},{key:"strings",get:function(){return p.strings}},
{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},bindOnMDCTabSelectedEvent:function(){},unbindOnMDCTabSelectedEvent:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getOffsetWidth:function(){return 0},setStyleForIndicator:function(){},getOffsetWidthForIndicator:function(){return 0},notifyChange:function(){},getNumberOfTabs:function(){return 0},isTabActiveAtIndex:function(){return!1},setTabActiveAtIndex:function(){},isDefaultPreventedOnClickForTabAtIndex:function(){return!1},
setPreventDefaultOnClickForTabAtIndex:function(){},measureTabAtIndex:function(){},getComputedWidthForTabAtIndex:function(){return 0},getComputedLeftForTabAtIndex:function(){return 0}}}}]);k(c,[{key:"init",value:function(){this.adapter_.addClass(p.cssClasses.UPGRADED);this.adapter_.bindOnMDCTabSelectedEvent();this.adapter_.registerResizeHandler(this.resizeHandler_);var a=this.findActiveTabIndex_();0<=a&&(this.activeTabIndex_=a);this.layout()}},{key:"destroy",value:function(){this.adapter_.removeClass(p.cssClasses.UPGRADED);
this.adapter_.unbindOnMDCTabSelectedEvent();this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"layoutInternal_",value:function(){var a=this;this.forEachTabIndex_(function(c){return a.adapter_.measureTabAtIndex(c)});this.computedWidth_=this.adapter_.getOffsetWidth();this.layoutIndicator_()}},{key:"layoutIndicator_",value:function(){var a=!this.isIndicatorShown_;a&&this.adapter_.setStyleForIndicator("transition","none");var c=this.adapter_.getComputedLeftForTabAtIndex(this.activeTabIndex_),
d=this.adapter_.getComputedWidthForTabAtIndex(this.activeTabIndex_)/this.adapter_.getOffsetWidth();c="translateX("+c+"px) scale("+d+", 1)";this.adapter_.setStyleForIndicator((0,m.getCorrectPropertyName)(window,"transform"),c);a&&(this.adapter_.getOffsetWidthForIndicator(),this.adapter_.setStyleForIndicator("transition",""),this.adapter_.setStyleForIndicator("visibility","visible"),this.isIndicatorShown_=!0)}},{key:"findActiveTabIndex_",value:function(){var a=this,c=-1;this.forEachTabIndex_(function(d){if(a.adapter_.isTabActiveAtIndex(d))return c=
d,!0});return c}},{key:"forEachTabIndex_",value:function(a){for(var c=this.adapter_.getNumberOfTabs(),d=0;d<c&&!a(d);d++);}},{key:"layout",value:function(){var a=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_);this.layoutFrame_=requestAnimationFrame(function(){a.layoutInternal_();a.layoutFrame_=0})}},{key:"switchToTabAtIndex",value:function(a,c){var d=this;if(a!==this.activeTabIndex_){if(0>a||a>=this.adapter_.getNumberOfTabs())throw Error("Out of bounds index specified for tab: "+
a);var e=this.activeTabIndex_;this.activeTabIndex_=a;requestAnimationFrame(function(){0<=e&&d.adapter_.setTabActiveAtIndex(e,!1);d.adapter_.setTabActiveAtIndex(d.activeTabIndex_,!0);d.layoutIndicator_();c&&d.adapter_.notifyChange({activeTabIndex:d.activeTabIndex_})})}}},{key:"getActiveTabIndex",value:function(){return this.findActiveTabIndex_()}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={UPGRADED:"mdc-tab-bar-upgraded"};d.strings=
{TAB_SELECTOR:".mdc-tab",INDICATOR_SELECTOR:".mdc-tab-bar__indicator",CHANGE_EVENT:"MDCTabBar:change"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCTabBarScroller=
d.MDCTabBarScrollerFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),k=a(54);c=(c=a(23))&&c.__esModule?c:{default:c};var m=a(142),p=(a=a(385))&&a.__esModule?a:{default:a};d.MDCTabBarScrollerFoundation=p.default;d.MDCTabBarScroller=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");
var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"initialize",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(a){return new m.MDCTabBar(a)};this.scrollFrame_=this.root_.querySelector(p.default.strings.FRAME_SELECTOR);this.tabBarEl_=this.root_.querySelector(p.default.strings.TABS_SELECTOR);
this.forwardIndicator_=this.root_.querySelector(p.default.strings.INDICATOR_FORWARD_SELECTOR);this.backIndicator_=this.root_.querySelector(p.default.strings.INDICATOR_BACK_SELECTOR);this.tabBar_=a(this.tabBarEl_)}},{key:"getDefaultFoundation",value:function(){var a=this;return new p.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},eventTargetHasClass:function(a,c){return a.classList.contains(c)},addClassToForwardIndicator:function(c){return a.forwardIndicator_.classList.add(c)},
removeClassFromForwardIndicator:function(c){return a.forwardIndicator_.classList.remove(c)},addClassToBackIndicator:function(c){return a.backIndicator_.classList.add(c)},removeClassFromBackIndicator:function(c){return a.backIndicator_.classList.remove(c)},isRTL:function(){return"rtl"===getComputedStyle(a.root_).getPropertyValue("direction")},registerBackIndicatorClickHandler:function(c){return a.backIndicator_.addEventListener("click",c)},deregisterBackIndicatorClickHandler:function(c){return a.backIndicator_.removeEventListener("click",
c)},registerForwardIndicatorClickHandler:function(c){return a.forwardIndicator_.addEventListener("click",c)},deregisterForwardIndicatorClickHandler:function(c){return a.forwardIndicator_.removeEventListener("click",c)},registerCapturedInteractionHandler:function(c,d){return a.root_.addEventListener(c,d,!0)},deregisterCapturedInteractionHandler:function(c,d){return a.root_.removeEventListener(c,d,!0)},registerWindowResizeHandler:function(a){return window.addEventListener("resize",a)},deregisterWindowResizeHandler:function(a){return window.removeEventListener("resize",
a)},getNumberOfTabs:function(){return a.tabBar.tabs.length},getComputedWidthForTabAtIndex:function(c){return a.tabBar.tabs[c].computedWidth},getComputedLeftForTabAtIndex:function(c){return a.tabBar.tabs[c].computedLeft},getOffsetWidthForScrollFrame:function(){return a.scrollFrame_.offsetWidth},getScrollLeftForScrollFrame:function(){return a.scrollFrame_.scrollLeft},setScrollLeftForScrollFrame:function(c){return a.scrollFrame_.scrollLeft=c},getOffsetWidthForTabBar:function(){return a.tabBarEl_.offsetWidth},
setTransformStyleForTabBar:function(c){a.tabBarEl_.style.setProperty((0,k.getCorrectPropertyName)(window,"transform"),c)},getOffsetLeftForEventTarget:function(a){return a.offsetLeft},getOffsetWidthForEventTarget:function(a){return a.offsetWidth}})}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"tabBar",get:function(){return this.tabBar_}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.default)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=
e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?c:{default:c};var m=a(386);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.pointerDownRecognized_=!1;d.currentTranslateOffset_=0;d.focusedTarget_=null;
d.layoutFrame_=0;d.scrollFrameScrollLeft_=0;d.forwardIndicatorClickHandler_=function(a){return d.scrollForward(a)};d.backIndicatorClickHandler_=function(a){return d.scrollBack(a)};d.resizeHandler_=function(){return d.layout()};d.interactionHandler_=function(a){if("touchstart"==a.type||"mousedown"==a.type)d.pointerDownRecognized_=!0;d.handlePossibleTabKeyboardFocus_(a);"focus"==a.type&&(d.pointerDownRecognized_=!1)};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",
get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},eventTargetHasClass:function(){return!1},addClassToForwardIndicator:function(){},removeClassFromForwardIndicator:function(){},addClassToBackIndicator:function(){},removeClassFromBackIndicator:function(){},isRTL:function(){return!1},registerBackIndicatorClickHandler:function(){},deregisterBackIndicatorClickHandler:function(){},registerForwardIndicatorClickHandler:function(){},
deregisterForwardIndicatorClickHandler:function(){},registerCapturedInteractionHandler:function(){},deregisterCapturedInteractionHandler:function(){},registerWindowResizeHandler:function(){},deregisterWindowResizeHandler:function(){},getNumberOfTabs:function(){return 0},getComputedWidthForTabAtIndex:function(){return 0},getComputedLeftForTabAtIndex:function(){return 0},getOffsetWidthForScrollFrame:function(){return 0},getScrollLeftForScrollFrame:function(){return 0},setScrollLeftForScrollFrame:function(){},
getOffsetWidthForTabBar:function(){return 0},setTransformStyleForTabBar:function(){},getOffsetLeftForEventTarget:function(){return 0},getOffsetWidthForEventTarget:function(){return 0}}}}]);k(c,[{key:"init",value:function(){var a=this;this.adapter_.registerBackIndicatorClickHandler(this.backIndicatorClickHandler_);this.adapter_.registerForwardIndicatorClickHandler(this.forwardIndicatorClickHandler_);this.adapter_.registerWindowResizeHandler(this.resizeHandler_);["touchstart","mousedown","focus"].forEach(function(c){a.adapter_.registerCapturedInteractionHandler(c,
a.interactionHandler_)});this.layout()}},{key:"destroy",value:function(){var a=this;this.adapter_.deregisterBackIndicatorClickHandler(this.backIndicatorClickHandler_);this.adapter_.deregisterForwardIndicatorClickHandler(this.forwardIndicatorClickHandler_);this.adapter_.deregisterWindowResizeHandler(this.resizeHandler_);["touchstart","mousedown","focus"].forEach(function(c){a.adapter_.deregisterCapturedInteractionHandler(c,a.interactionHandler_)})}},{key:"scrollBack",value:function(){var a=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:null;a&&a.preventDefault();for(var c=a=0,d=this.adapter_.getNumberOfTabs()-1;0<d;d--){var e=this.adapter_.getComputedLeftForTabAtIndex(d),h=this.adapter_.getOffsetWidthForTabBar()-e;e=e>this.currentTranslateOffset_;this.isRTL_()&&(e=h>this.currentTranslateOffset_);if(!e&&(a+=this.adapter_.getComputedWidthForTabAtIndex(d),a>this.adapter_.getOffsetWidthForScrollFrame())){c=this.isRTL_()?d+1:d;break}}this.scrollToTabAtIndex(c)}},{key:"scrollForward",value:function(){var a=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;a&&a.preventDefault();a=this.adapter_.getOffsetWidthForScrollFrame()+this.currentTranslateOffset_;for(var c=0,d=0;d<this.adapter_.getNumberOfTabs();d++){var e=this.adapter_.getComputedLeftForTabAtIndex(d)+this.adapter_.getComputedWidthForTabAtIndex(d)>a;if(this.isRTL_()){e=a-this.adapter_.getComputedWidthForTabAtIndex(d);var h=this.adapter_.getComputedLeftForTabAtIndex(d)+this.adapter_.getComputedWidthForTabAtIndex(d);e=this.adapter_.getOffsetWidthForTabBar()-
h>e}if(e){c=d;break}}this.scrollToTabAtIndex(c)}},{key:"layout",value:function(){var a=this;cancelAnimationFrame(this.layoutFrame_);this.scrollFrameScrollLeft_=this.adapter_.getScrollLeftForScrollFrame();this.layoutFrame_=requestAnimationFrame(function(){return a.layout_()})}},{key:"isRTL_",value:function(){return this.adapter_.isRTL()}},{key:"handlePossibleTabKeyboardFocus_",value:function(a){if(this.adapter_.eventTargetHasClass(a.target,m.cssClasses.TAB)&&!this.pointerDownRecognized_){var c=this.isRTL_()?
this.scrollFrameScrollLeft_:0;this.adapter_.setScrollLeftForScrollFrame(c);this.focusedTarget_=a.target;a=this.adapter_.getOffsetWidthForScrollFrame();c=this.adapter_.getOffsetWidthForTabBar();var d=this.adapter_.getOffsetLeftForEventTarget(this.focusedTarget_),e=d+this.adapter_.getOffsetWidthForEventTarget(this.focusedTarget_),l=e<=this.currentTranslateOffset_;e=e>this.currentTranslateOffset_+a;this.isRTL_()&&(l=d>=c-this.currentTranslateOffset_,e=c-d>a+this.currentTranslateOffset_);e?this.scrollForward():
l&&this.scrollBack();this.pointerDownRecognized_=!1}}},{key:"layout_",value:function(){var a=this.adapter_.getOffsetWidthForScrollFrame();this.adapter_.getOffsetWidthForTabBar()>a||(this.currentTranslateOffset_=0);this.shiftFrame_();this.updateIndicatorEnabledStates_()}},{key:"scrollToTabAtIndex",value:function(a){var c=this,d=this.adapter_.getComputedLeftForTabAtIndex(a);a=this.adapter_.getComputedWidthForTabAtIndex(a);this.currentTranslateOffset_=this.normalizeForRTL_(d,a);requestAnimationFrame(function(){return c.shiftFrame_()})}},
{key:"normalizeForRTL_",value:function(a,c){return this.isRTL_()?this.adapter_.getOffsetWidthForTabBar()-(a+c):a}},{key:"shiftFrame_",value:function(){var a=this.isRTL_()?this.currentTranslateOffset_:-this.currentTranslateOffset_;this.adapter_.setTransformStyleForTabBar("translateX("+a+"px)");this.updateIndicatorEnabledStates_()}},{key:"updateIndicatorEnabledStates_",value:function(){var a=m.cssClasses.INDICATOR_ENABLED;0===this.currentTranslateOffset_?this.adapter_.removeClassFromBackIndicator(a):
this.adapter_.addClassToBackIndicator(a);this.adapter_.getOffsetWidthForTabBar()-this.currentTranslateOffset_>this.adapter_.getOffsetWidthForScrollFrame()?this.adapter_.addClassToForwardIndicator(a):this.adapter_.removeClassFromForwardIndicator(a)}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={INDICATOR_FORWARD:"mdc-tab-bar-scroller__indicator--forward",INDICATOR_BACK:"mdc-tab-bar-scroller__indicator--back",INDICATOR_ENABLED:"mdc-tab-bar-scroller__indicator--enabled",
TAB:"mdc-tab"};d.strings={FRAME_SELECTOR:".mdc-tab-bar-scroller__scroll-frame",TABS_SELECTOR:".mdc-tab-bar-scroller__scroll-frame__tabs",TAB_SELECTOR:".mdc-tab",INDICATOR_FORWARD_SELECTOR:".mdc-tab-bar-scroller__indicator--forward",INDICATOR_BACK_SELECTOR:".mdc-tab-bar-scroller__indicator--back"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,
enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCToolbar=d.util=d.MDCToolbarFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=a(388),m=k&&k.__esModule?k:
{default:k},p=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(390));d.MDCToolbarFoundation=m.default;d.util=p;d.MDCToolbar=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||
"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({hasClass:function(c){return a.root_.classList.contains(c)},addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},registerScrollHandler:function(a){return window.addEventListener("scroll",a,p.applyPassive())},deregisterScrollHandler:function(a){return window.removeEventListener("scroll",a,p.applyPassive())},
registerResizeHandler:function(a){return window.addEventListener("resize",a)},deregisterResizeHandler:function(a){return window.removeEventListener("resize",a)},getViewportWidth:function(){return window.innerWidth},getViewportScrollY:function(){return window.pageYOffset},getOffsetHeight:function(){return a.root_.offsetHeight},getFirstRowElementOffsetHeight:function(){return a.firstRowElement_.offsetHeight},notifyChange:function(c){return a.emit(m.default.strings.CHANGE_EVENT,c)},setStyle:function(c,
d){return a.root_.style.setProperty(c,d)},setStyleForTitleElement:function(c,d){return a.titleElement_.style.setProperty(c,d)},setStyleForFlexibleRowElement:function(c,d){return a.firstRowElement_.style.setProperty(c,d)},setStyleForFixedAdjustElement:function(c,d){a.fixedAdjustElement&&a.fixedAdjustElement.style.setProperty(c,d)}})}},{key:"firstRowElement_",get:function(){return this.root_.querySelector(m.default.strings.FIRST_ROW_SELECTOR)}},{key:"titleElement_",get:function(){return this.root_.querySelector(m.default.strings.TITLE_SELECTOR)}},
{key:"fixedAdjustElement",set:function(a){this.fixedAdjustElement_=a;this.foundation_.updateAdjustElementStyles()},get:function(){return this.fixedAdjustElement_}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(15))&&c.__esModule?
c:{default:c};var m=a(389);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.resizeHandler_=function(){return d.checkRowHeight_()};d.scrollHandler_=function(){return d.updateToolbarStyles_()};d.checkRowHeightFrame_=0;d.scrollFrame_=0;d.executedLastChange_=!1;d.calculations_={toolbarRowHeight:0,toolbarRatio:0,flexibleExpansionRatio:0,maxTranslateYRatio:0,
scrollThresholdRatio:0,toolbarHeight:0,flexibleExpansionHeight:0,maxTranslateYDistance:0,scrollThreshold:0};d.fixed_=!1;d.fixedLastrow_=!1;d.hasFlexibleRow_=!1;d.useFlexDefaultBehavior_=!1;return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"numbers",get:function(){return m.numbers}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},registerScrollHandler:function(){},
deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportWidth:function(){return 0},getViewportScrollY:function(){return 0},getOffsetHeight:function(){return 0},getFirstRowElementOffsetHeight:function(){return 0},notifyChange:function(){},setStyle:function(){},setStyleForTitleElement:function(){},setStyleForFlexibleRowElement:function(){},setStyleForFixedAdjustElement:function(){}}}}]);k(c,[{key:"init",value:function(){this.fixed_=this.adapter_.hasClass(c.cssClasses.FIXED);
this.fixedLastrow_=this.adapter_.hasClass(c.cssClasses.FIXED_LASTROW)&this.fixed_;if(this.hasFlexibleRow_=this.adapter_.hasClass(c.cssClasses.TOOLBAR_ROW_FLEXIBLE))this.useFlexDefaultBehavior_=this.adapter_.hasClass(c.cssClasses.FLEXIBLE_DEFAULT_BEHAVIOR);this.initKeyRatio_();this.setKeyHeights_();this.adapter_.registerResizeHandler(this.resizeHandler_);this.adapter_.registerScrollHandler(this.scrollHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterResizeHandler(this.resizeHandler_);
this.adapter_.deregisterScrollHandler(this.scrollHandler_)}},{key:"updateAdjustElementStyles",value:function(){this.fixed_&&this.adapter_.setStyleForFixedAdjustElement("margin-top",this.calculations_.toolbarHeight+"px")}},{key:"getFlexibleExpansionRatio_",value:function(a){return Math.max(0,1-a/(this.calculations_.flexibleExpansionHeight+1E-4))}},{key:"checkRowHeight_",value:function(){var a=this;cancelAnimationFrame(this.checkRowHeightFrame_);this.checkRowHeightFrame_=requestAnimationFrame(function(){return a.setKeyHeights_()})}},
{key:"setKeyHeights_",value:function(){var a=this.getRowHeight_();a!==this.calculations_.toolbarRowHeight&&(this.calculations_.toolbarRowHeight=a,this.calculations_.toolbarHeight=this.calculations_.toolbarRatio*this.calculations_.toolbarRowHeight,this.calculations_.flexibleExpansionHeight=this.calculations_.flexibleExpansionRatio*this.calculations_.toolbarRowHeight,this.calculations_.maxTranslateYDistance=this.calculations_.maxTranslateYRatio*this.calculations_.toolbarRowHeight,this.calculations_.scrollThreshold=
this.calculations_.scrollThresholdRatio*this.calculations_.toolbarRowHeight,this.updateAdjustElementStyles(),this.updateToolbarStyles_())}},{key:"updateToolbarStyles_",value:function(){var a=this;cancelAnimationFrame(this.scrollFrame_);this.scrollFrame_=requestAnimationFrame(function(){var c=a.adapter_.getViewportScrollY(),d=a.scrolledOutOfThreshold_(c);if(!d||!a.executedLastChange_){var e=a.getFlexibleExpansionRatio_(c);a.updateToolbarFlexibleState_(e);a.fixedLastrow_&&a.updateToolbarFixedState_(c);
a.hasFlexibleRow_&&a.updateFlexibleRowElementStyles_(e);a.executedLastChange_=d;a.adapter_.notifyChange({flexibleExpansionRatio:e})}})}},{key:"scrolledOutOfThreshold_",value:function(a){return a>this.calculations_.scrollThreshold}},{key:"initKeyRatio_",value:function(){var a=this.getRowHeight_(),c=this.adapter_.getFirstRowElementOffsetHeight()/a;this.calculations_.toolbarRatio=this.adapter_.getOffsetHeight()/a;this.calculations_.flexibleExpansionRatio=c-1;this.calculations_.maxTranslateYRatio=this.fixedLastrow_?
this.calculations_.toolbarRatio-c:0;this.calculations_.scrollThresholdRatio=(this.fixedLastrow_?this.calculations_.toolbarRatio:c)-1}},{key:"getRowHeight_",value:function(){var a=c.numbers.TOOLBAR_MOBILE_BREAKPOINT;return this.adapter_.getViewportWidth()<a?c.numbers.TOOLBAR_ROW_MOBILE_HEIGHT:c.numbers.TOOLBAR_ROW_HEIGHT}},{key:"updateToolbarFlexibleState_",value:function(a){this.adapter_.removeClass(c.cssClasses.FLEXIBLE_MAX);this.adapter_.removeClass(c.cssClasses.FLEXIBLE_MIN);1===a?this.adapter_.addClass(c.cssClasses.FLEXIBLE_MAX):
0===a&&this.adapter_.addClass(c.cssClasses.FLEXIBLE_MIN)}},{key:"updateToolbarFixedState_",value:function(a){a=Math.max(0,Math.min(a-this.calculations_.flexibleExpansionHeight,this.calculations_.maxTranslateYDistance));this.adapter_.setStyle("transform","translateY("+-a+"px)");a===this.calculations_.maxTranslateYDistance?this.adapter_.addClass(c.cssClasses.FIXED_AT_LAST_ROW):this.adapter_.removeClass(c.cssClasses.FIXED_AT_LAST_ROW)}},{key:"updateFlexibleRowElementStyles_",value:function(a){this.fixed_&&
this.adapter_.setStyleForFlexibleRowElement("height",this.calculations_.flexibleExpansionHeight*a+this.calculations_.toolbarRowHeight+"px");this.useFlexDefaultBehavior_&&this.updateElementStylesDefaultBehavior_(a)}},{key:"updateElementStylesDefaultBehavior_",value:function(a){var d=c.numbers.MIN_TITLE_SIZE;this.adapter_.setStyleForTitleElement("font-size",(c.numbers.MAX_TITLE_SIZE-d)*a+d+"rem")}}]);return c}(c.default);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});
d.cssClasses={FIXED:"mdc-toolbar--fixed",FIXED_LASTROW:"mdc-toolbar--fixed-lastrow-only",FIXED_AT_LAST_ROW:"mdc-toolbar--fixed-at-last-row",TOOLBAR_ROW_FLEXIBLE:"mdc-toolbar--flexible",FLEXIBLE_DEFAULT_BEHAVIOR:"mdc-toolbar--flexible-default-behavior",FLEXIBLE_MAX:"mdc-toolbar--flexible-space-maximized",FLEXIBLE_MIN:"mdc-toolbar--flexible-space-minimized"};d.strings={TITLE_SELECTOR:".mdc-toolbar__title",FIRST_ROW_SELECTOR:".mdc-toolbar__row:first-child",CHANGE_EVENT:"MDCToolbar:change"};d.numbers=
{MAX_TITLE_SIZE:2.125,MIN_TITLE_SIZE:1.25,TOOLBAR_ROW_HEIGHT:64,TOOLBAR_ROW_MOBILE_HEIGHT:56,TOOLBAR_MOBILE_BREAKPOINT:600}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.applyPassive=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(void 0===e||c){var d=!1;try{a.document.addEventListener("test",null,{get passive(){d=!0}})}catch(p){}e=d}return e?{passive:!0}:!1};var e=void 0},function(c,
d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCLinearProgress=d.MDCLinearProgressFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=
e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=(a=a(392))&&a.__esModule?a:{default:a};d.MDCLinearProgressFoundation=k.default;d.MDCLinearProgress=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"open",value:function(){this.foundation_.open()}},{key:"close",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var a=this;return new k.default({addClass:function(c){return a.root_.classList.add(c)},getPrimaryBar:function(){return a.root_.querySelector(k.default.strings.PRIMARY_BAR_SELECTOR)},getBuffer:function(){return a.root_.querySelector(k.default.strings.BUFFER_SELECTOR)},hasClass:function(c){return a.root_.classList.contains(c)},
removeClass:function(c){return a.root_.classList.remove(c)},setStyle:function(a,c,d){return a.style[c]=d}})}},{key:"determinate",set:function(a){this.foundation_.setDeterminate(a)}},{key:"progress",set:function(a){this.foundation_.setProgress(a)}},{key:"buffer",set:function(a){this.foundation_.setBuffer(a)}},{key:"reverse",set:function(a){this.foundation_.setReverse(a)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if("function"!==
typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,
e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=a(54),m=a(393);a=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");a=(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},
{key:"strings",get:function(){return m.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},getPrimaryBar:function(){},getBuffer:function(){},hasClass:function(){return!1},removeClass:function(){},setStyle:function(){}}}}]);h(c,[{key:"init",value:function(){this.determinate_=!this.adapter_.hasClass(m.cssClasses.INDETERMINATE_CLASS);this.reverse_=this.adapter_.hasClass(m.cssClasses.REVERSED_CLASS)}},{key:"setDeterminate",value:function(a){(this.determinate_=a)?this.adapter_.removeClass(m.cssClasses.INDETERMINATE_CLASS):
(this.adapter_.addClass(m.cssClasses.INDETERMINATE_CLASS),this.setScale_(this.adapter_.getPrimaryBar(),1),this.setScale_(this.adapter_.getBuffer(),1))}},{key:"setProgress",value:function(a){this.determinate_&&this.setScale_(this.adapter_.getPrimaryBar(),a)}},{key:"setBuffer",value:function(a){this.determinate_&&this.setScale_(this.adapter_.getBuffer(),a)}},{key:"setReverse",value:function(a){(this.reverse_=a)?this.adapter_.addClass(m.cssClasses.REVERSED_CLASS):this.adapter_.removeClass(m.cssClasses.REVERSED_CLASS)}},
{key:"open",value:function(){this.adapter_.removeClass(m.cssClasses.CLOSED_CLASS)}},{key:"close",value:function(){this.adapter_.addClass(m.cssClasses.CLOSED_CLASS)}},{key:"setScale_",value:function(a,c){var d=this,e="scaleX("+c+")";k.transformStyleProperties.forEach(function(c){d.adapter_.setStyle(a,c,e)})}}]);return c}(c.MDCFoundation);d.default=a},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.cssClasses={CLOSED_CLASS:"mdc-linear-progress--closed",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",
REVERSED_CLASS:"mdc-linear-progress--reversed"};d.strings={PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar",BUFFER_SELECTOR:".mdc-linear-progress__buffer"}},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.util=d.MDCPersistentDrawerFoundation=d.MDCPersistentDrawer=d.MDCTemporaryDrawerFoundation=d.MDCTemporaryDrawer=void 0;var e=a(395);Object.defineProperty(d,"MDCTemporaryDrawer",{enumerable:!0,get:function(){return e.MDCTemporaryDrawer}});Object.defineProperty(d,"MDCTemporaryDrawerFoundation",
{enumerable:!0,get:function(){return e.MDCTemporaryDrawerFoundation}});var h=a(400);Object.defineProperty(d,"MDCPersistentDrawer",{enumerable:!0,get:function(){return h.MDCPersistentDrawer}});Object.defineProperty(d,"MDCPersistentDrawerFoundation",{enumerable:!0,get:function(){return h.MDCPersistentDrawerFoundation}});c=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(101));d.util=c},function(c,
d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCTemporaryDrawer=d.util=d.MDCTemporaryDrawerFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=
c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=a(396),m=k&&k.__esModule?k:{default:k},p=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(101));d.MDCTemporaryDrawerFoundation=m.default;d.util=p;d.MDCTemporaryDrawer=function(a){function c(){if(!(this instanceof
c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"getDefaultFoundation",value:function(){var a=this,c=m.default.strings,d=c.FOCUSABLE_ELEMENTS,e=c.OPACITY_VAR_NAME;return new m.default({addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},
hasClass:function(c){return a.root_.classList.contains(c)},addBodyClass:function(a){return document.body.classList.add(a)},removeBodyClass:function(a){return document.body.classList.remove(a)},hasNecessaryDom:function(){return!!a.drawer},registerInteractionHandler:function(c,d){return a.root_.addEventListener(p.remapEvent(c),d,p.applyPassive())},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(p.remapEvent(c),d,p.applyPassive())},registerDrawerInteractionHandler:function(c,
d){return a.drawer.addEventListener(p.remapEvent(c),d)},deregisterDrawerInteractionHandler:function(c,d){return a.drawer.removeEventListener(p.remapEvent(c),d)},registerTransitionEndHandler:function(c){return a.drawer.addEventListener("transitionend",c)},deregisterTransitionEndHandler:function(c){return a.drawer.removeEventListener("transitionend",c)},registerDocumentKeydownHandler:function(a){return document.addEventListener("keydown",a)},deregisterDocumentKeydownHandler:function(a){return document.removeEventListener("keydown",
a)},getDrawerWidth:function(){return a.drawer.offsetWidth},setTranslateX:function(c){return a.drawer.style.setProperty(p.getTransformPropertyName(),null===c?null:"translateX("+c+"px)")},updateCssVariable:function(c){p.supportsCssCustomProperties()&&a.root_.style.setProperty(e,c)},getFocusableElements:function(){return a.drawer.querySelectorAll(d)},saveElementTabState:function(a){return p.saveElementTabState(a)},restoreElementTabState:function(a){return p.restoreElementTabState(a)},makeElementUntabbable:function(a){return a.setAttribute("tabindex",
-1)},notifyOpen:function(){return a.emit(m.default.strings.OPEN_EVENT)},notifyClose:function(){return a.emit(m.default.strings.CLOSE_EVENT)},isRtl:function(){return"rtl"===getComputedStyle(a.root_).getPropertyValue("direction")},isDrawer:function(c){return c===a.drawer}})}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(a){a?this.foundation_.open():this.foundation_.close()}},{key:"drawer",get:function(){return this.root_.querySelector(m.default.strings.DRAWER_SELECTOR)}}],
[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});
c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function f(a,c,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return f(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(d)}},m=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=
!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),p=a(69),q=a(399);c=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a),c.cssClasses.ROOT,c.cssClasses.ANIMATING,c.cssClasses.OPEN));d.componentClickHandler_=function(){return d.close()};return d}h(c,a);m(c,null,[{key:"cssClasses",get:function(){return q.cssClasses}},
{key:"strings",get:function(){return q.strings}},{key:"defaultAdapter",get:function(){return Object.assign(p.MDCSlidableDrawerFoundation.defaultAdapter,{addBodyClass:function(){},removeBodyClass:function(){},isDrawer:function(){return!1},updateCssVariable:function(){}})}}]);m(c,[{key:"init",value:function(){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"init",this).call(this);this.adapter_.updateCssVariable(0);this.adapter_.registerInteractionHandler("click",this.componentClickHandler_)}},
{key:"destroy",value:function(){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this);this.adapter_.deregisterInteractionHandler("click",this.componentClickHandler_);this.enableScroll_()}},{key:"open",value:function(){this.disableScroll_();this.adapter_.updateCssVariable("");k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"open",this).call(this)}},{key:"close",value:function(){this.adapter_.updateCssVariable("");k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),
"close",this).call(this)}},{key:"prepareForTouchEnd_",value:function(){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"prepareForTouchEnd_",this).call(this);this.adapter_.updateCssVariable("")}},{key:"updateDrawer_",value:function(){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"updateDrawer_",this).call(this);this.adapter_.updateCssVariable(Math.max(0,1+this.newPosition_/this.drawerWidth_*this.direction_))}},{key:"isRootTransitioningEventTarget_",value:function(a){return this.adapter_.isDrawer(a)}},
{key:"handleTransitionEnd_",value:function(a){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"handleTransitionEnd_",this).call(this,a);this.isOpen_||this.enableScroll_()}},{key:"disableScroll_",value:function(){this.adapter_.addBodyClass(q.cssClasses.SCROLL_LOCK)}},{key:"enableScroll_",value:function(){this.adapter_.removeBodyClass(q.cssClasses.SCROLL_LOCK)}}]);return c}(p.MDCSlidableDrawerFoundation);d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.FOCUSABLE_ELEMENTS=
"a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]"},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=
Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCSlidableDrawerFoundation=void 0;var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=
a(19);d.MDCSlidableDrawerFoundation=function(a){function c(a,d,f,h){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var l=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));l.rootCssClass_=d;l.animatingCssClass_=f;l.openCssClass_=h;l.transitionEndHandler_=function(a){return l.handleTransitionEnd_(a)};l.inert_=!1;l.drawerClickHandler_=function(a){return a.stopPropagation()};l.componentTouchStartHandler_=function(a){return l.handleTouchStart_(a)};
l.componentTouchMoveHandler_=function(a){return l.handleTouchMove_(a)};l.componentTouchEndHandler_=function(a){return l.handleTouchEnd_(a)};l.documentKeydownHandler_=function(a){(a.key&&"Escape"===a.key||27===a.keyCode)&&l.close()};return l}h(c,a);k(c,null,[{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},hasNecessaryDom:function(){return!1},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDrawerInteractionHandler:function(){},
deregisterDrawerInteractionHandler:function(){},registerTransitionEndHandler:function(){},deregisterTransitionEndHandler:function(){},registerDocumentKeydownHandler:function(){},deregisterDocumentKeydownHandler:function(){},setTranslateX:function(){},getFocusableElements:function(){},saveElementTabState:function(){},restoreElementTabState:function(){},makeElementUntabbable:function(){},notifyOpen:function(){},notifyClose:function(){},isRtl:function(){return!1},getDrawerWidth:function(){return 0}}}}]);
k(c,[{key:"init",value:function(){var a=this.rootCssClass_,c=this.openCssClass_;if(!this.adapter_.hasClass(a))throw Error(a+" class required in root element.");if(!this.adapter_.hasNecessaryDom())throw Error("Required DOM nodes missing in "+a+" component.");this.adapter_.hasClass(c)?this.isOpen_=!0:(this.detabinate_(),this.isOpen_=!1);this.adapter_.registerDrawerInteractionHandler("click",this.drawerClickHandler_);this.adapter_.registerDrawerInteractionHandler("touchstart",this.componentTouchStartHandler_);
this.adapter_.registerInteractionHandler("touchmove",this.componentTouchMoveHandler_);this.adapter_.registerInteractionHandler("touchend",this.componentTouchEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterDrawerInteractionHandler("click",this.drawerClickHandler_);this.adapter_.deregisterDrawerInteractionHandler("touchstart",this.componentTouchStartHandler_);this.adapter_.deregisterInteractionHandler("touchmove",this.componentTouchMoveHandler_);this.adapter_.deregisterInteractionHandler("touchend",
this.componentTouchEndHandler_);this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_)}},{key:"open",value:function(){this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_);this.adapter_.registerDocumentKeydownHandler(this.documentKeydownHandler_);this.adapter_.addClass(this.animatingCssClass_);this.adapter_.addClass(this.openCssClass_);this.retabinate_();this.isOpen_||this.adapter_.notifyOpen();this.isOpen_=!0}},{key:"close",value:function(){this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_);
this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_);this.adapter_.addClass(this.animatingCssClass_);this.adapter_.removeClass(this.openCssClass_);this.detabinate_();this.isOpen_&&this.adapter_.notifyClose();this.isOpen_=!1}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"detabinate_",value:function(){if(!this.inert_){var a=this.adapter_.getFocusableElements();if(a)for(var c=0;c<a.length;c++)this.adapter_.saveElementTabState(a[c]),this.adapter_.makeElementUntabbable(a[c]);
this.inert_=!0}}},{key:"retabinate_",value:function(){if(this.inert_){var a=this.adapter_.getFocusableElements();if(a)for(var c=0;c<a.length;c++)this.adapter_.restoreElementTabState(a[c]);this.inert_=!1}}},{key:"handleTouchStart_",value:function(a){!this.adapter_.hasClass(this.openCssClass_)||a.pointerType&&"touch"!==a.pointerType||(this.direction_=this.adapter_.isRtl()?-1:1,this.drawerWidth_=this.adapter_.getDrawerWidth(),this.currentX_=this.startX_=a.touches?a.touches[0].pageX:a.pageX,this.updateRaf_=
requestAnimationFrame(this.updateDrawer_.bind(this)))}},{key:"handleTouchMove_",value:function(a){a.pointerType&&"touch"!==a.pointerType||(this.currentX_=a.touches?a.touches[0].pageX:a.pageX)}},{key:"handleTouchEnd_",value:function(a){a.pointerType&&"touch"!==a.pointerType||(this.prepareForTouchEnd_(),.5<=Math.abs(this.newPosition_/this.drawerWidth_)?this.close():this.open())}},{key:"prepareForTouchEnd_",value:function(){cancelAnimationFrame(this.updateRaf_);this.adapter_.setTranslateX(null)}},{key:"updateDrawer_",
value:function(){this.updateRaf_=requestAnimationFrame(this.updateDrawer_.bind(this));this.adapter_.setTranslateX(this.newPosition_)}},{key:"isRootTransitioningEventTarget_",value:function(){return!1}},{key:"handleTransitionEnd_",value:function(a){this.isRootTransitioningEventTarget_(a.target)&&(this.adapter_.removeClass(this.animatingCssClass_),this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_))}},{key:"newPosition_",get:function(){return 1===this.direction_?Math.min(0,this.currentX_-
this.startX_):Math.max(0,this.currentX_-this.startX_)}}]);return c}(c.MDCFoundation)},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.strings=d.cssClasses=void 0;c=a(69);d.cssClasses={ROOT:"mdc-temporary-drawer",OPEN:"mdc-temporary-drawer--open",ANIMATING:"mdc-temporary-drawer--animating",SCROLL_LOCK:"mdc-drawer-scroll-lock"};d.strings={DRAWER_SELECTOR:".mdc-temporary-drawer__drawer",OPACITY_VAR_NAME:"--mdc-temporary-drawer-opacity",FOCUSABLE_ELEMENTS:c.FOCUSABLE_ELEMENTS,OPEN_EVENT:"MDCTemporaryDrawer:open",
CLOSE_EVENT:"MDCTemporaryDrawer:close"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCPersistentDrawer=d.util=d.MDCPersistentDrawerFoundation=void 0;var h=function(){function a(a,
c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var k=a(401),m=k&&k.__esModule?k:{default:k},p=function(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c.default=a;return c}(a(101));d.MDCPersistentDrawerFoundation=m.default;d.util=p;d.MDCPersistentDrawer=
function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"getDefaultFoundation",value:function(){var a=this,c=m.default.strings.FOCUSABLE_ELEMENTS;return new m.default({addClass:function(c){return a.root_.classList.add(c)},
removeClass:function(c){return a.root_.classList.remove(c)},hasClass:function(c){return a.root_.classList.contains(c)},hasNecessaryDom:function(){return!!a.drawer},registerInteractionHandler:function(c,d){return a.root_.addEventListener(p.remapEvent(c),d,p.applyPassive())},deregisterInteractionHandler:function(c,d){return a.root_.removeEventListener(p.remapEvent(c),d,p.applyPassive())},registerDrawerInteractionHandler:function(c,d){return a.drawer.addEventListener(p.remapEvent(c),d)},deregisterDrawerInteractionHandler:function(c,
d){return a.drawer.removeEventListener(p.remapEvent(c),d)},registerTransitionEndHandler:function(c){return a.root_.addEventListener("transitionend",c)},deregisterTransitionEndHandler:function(c){return a.root_.removeEventListener("transitionend",c)},registerDocumentKeydownHandler:function(a){return document.addEventListener("keydown",a)},deregisterDocumentKeydownHandler:function(a){return document.removeEventListener("keydown",a)},getDrawerWidth:function(){return a.drawer.offsetWidth},setTranslateX:function(c){return a.drawer.style.setProperty(p.getTransformPropertyName(),
null===c?null:"translateX("+c+"px)")},getFocusableElements:function(){return a.drawer.querySelectorAll(c)},saveElementTabState:function(a){return p.saveElementTabState(a)},restoreElementTabState:function(a){return p.restoreElementTabState(a)},makeElementUntabbable:function(a){return a.setAttribute("tabindex",-1)},notifyOpen:function(){return a.emit(m.default.strings.OPEN_EVENT)},notifyClose:function(){return a.emit(m.default.strings.CLOSE_EVENT)},isRtl:function(){return"rtl"===getComputedStyle(a.root_).getPropertyValue("direction")},
isDrawer:function(c){return c===a.drawer}})}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(a){a?this.foundation_.open():this.foundation_.close()}},{key:"drawer",get:function(){return this.root_.querySelector(m.default.strings.DRAWER_SELECTOR)}}],[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),k=a(69),m=a(402);
c=function(a){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");a=(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a),c.cssClasses.ROOT,c.cssClasses.ANIMATING,c.cssClasses.OPEN);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},
{key:"defaultAdapter",get:function(){return Object.assign(k.MDCSlidableDrawerFoundation.defaultAdapter,{isDrawer:function(){return!1}})}}]);h(c,[{key:"isRootTransitioningEventTarget_",value:function(a){return this.adapter_.isDrawer(a)}}]);return c}(k.MDCSlidableDrawerFoundation);d.default=c},function(c,d,a){Object.defineProperty(d,"__esModule",{value:!0});d.strings=d.cssClasses=void 0;c=a(69);d.cssClasses={ROOT:"mdc-persistent-drawer",OPEN:"mdc-persistent-drawer--open",ANIMATING:"mdc-persistent-drawer--animating"};
d.strings={DRAWER_SELECTOR:".mdc-persistent-drawer__drawer",FOCUSABLE_ELEMENTS:c.FOCUSABLE_ELEMENTS,OPEN_EVENT:"MDCPersistentDrawer:open",CLOSE_EVENT:"MDCPersistentDrawer:close"}},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=
c)}Object.defineProperty(d,"__esModule",{value:!0});d.MDCSlider=d.MDCSliderFoundation=void 0;var h=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=(c=a(23))&&c.__esModule?c:{default:c};var k=a(143),m=(a=a(404))&&a.__esModule?a:{default:a};d.MDCSliderFoundation=m.default;d.MDCSlider=function(a){function c(){if(!(this instanceof
c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);h(c,[{key:"initialize",value:function(){this.thumbContainer_=this.root_.querySelector(k.strings.THUMB_CONTAINER_SELECTOR);this.track_=this.root_.querySelector(k.strings.TRACK_SELECTOR);this.pinValueMarker_=this.root_.querySelector(k.strings.PIN_VALUE_MARKER_SELECTOR);
this.trackMarkerContainer_=this.root_.querySelector(k.strings.TRACK_MARKER_CONTAINER_SELECTOR)}},{key:"getDefaultFoundation",value:function(){var a=this;return new m.default({hasClass:function(c){return a.root_.classList.contains(c)},addClass:function(c){return a.root_.classList.add(c)},removeClass:function(c){return a.root_.classList.remove(c)},getAttribute:function(c){return a.root_.getAttribute(c)},setAttribute:function(c,d){return a.root_.setAttribute(c,d)},removeAttribute:function(c){return a.root_.removeAttribute(c)},
computeBoundingRect:function(){return a.root_.getBoundingClientRect()},getTabIndex:function(){return a.root_.tabIndex},registerInteractionHandler:function(c,d){a.root_.addEventListener(c,d)},deregisterInteractionHandler:function(c,d){a.root_.removeEventListener(c,d)},registerThumbContainerInteractionHandler:function(c,d){a.thumbContainer_.addEventListener(c,d)},deregisterThumbContainerInteractionHandler:function(c,d){a.thumbContainer_.removeEventListener(c,d)},registerBodyInteractionHandler:function(a,
c){document.body.addEventListener(a,c)},deregisterBodyInteractionHandler:function(a,c){document.body.removeEventListener(a,c)},registerResizeHandler:function(a){window.addEventListener("resize",a)},deregisterResizeHandler:function(a){window.removeEventListener("resize",a)},notifyInput:function(){a.emit(k.strings.INPUT_EVENT,a)},notifyChange:function(){a.emit(k.strings.CHANGE_EVENT,a)},setThumbContainerStyleProperty:function(c,d){a.thumbContainer_.style.setProperty(c,d)},setTrackStyleProperty:function(c,
d){a.track_.style.setProperty(c,d)},setMarkerValue:function(c){a.pinValueMarker_.innerText=c},appendTrackMarkers:function(c){for(var d=document.createDocumentFragment(),e=0;e<c;e++){var f=document.createElement("div");f.classList.add("mdc-slider__track-marker");d.appendChild(f)}a.trackMarkerContainer_.appendChild(d)},removeTrackMarkers:function(){for(;a.trackMarkerContainer_.firstChild;)a.trackMarkerContainer_.removeChild(a.trackMarkerContainer_.firstChild)},setLastTrackMarkersStyleProperty:function(c,
d){a.root_.querySelector(k.strings.LAST_TRACK_MARKER_SELECTOR).style.setProperty(c,d)},isRTL:function(){return"rtl"===getComputedStyle(a.root_).direction}})}},{key:"initialSyncWithDOM",value:function(){var a=parseFloat(this.root_.getAttribute(k.strings.ARIA_VALUENOW));this.min=parseFloat(this.root_.getAttribute(k.strings.ARIA_VALUEMIN))||this.min;this.max=parseFloat(this.root_.getAttribute(k.strings.ARIA_VALUEMAX))||this.max;this.step=parseFloat(this.root_.getAttribute(k.strings.STEP_DATA_ATTR))||
this.step;this.value=a||this.value;this.disabled=this.root_.hasAttribute(k.strings.ARIA_DISABLED)&&"false"!==this.root_.getAttribute(k.strings.ARIA_DISABLED);this.foundation_.setupTrackMarker()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"stepUp",value:function(){this.value+=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.step||1}},{key:"stepDown",value:function(){this.value-=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.step||1}},{key:"value",get:function(){return this.foundation_.getValue()},
set:function(a){this.foundation_.setValue(a)}},{key:"min",get:function(){return this.foundation_.getMin()},set:function(a){this.foundation_.setMin(a)}},{key:"max",get:function(){return this.foundation_.getMax()},set:function(a){this.foundation_.setMax(a)}},{key:"step",get:function(){return this.foundation_.getStep()},set:function(a){this.foundation_.setStep(a)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(a){this.foundation_.setDisabled(a)}}],[{key:"attachTo",
value:function(a){return new c(a)}}]);return c}(c.default)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?
Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),m=a(143),p=a(54);c=a(15);var q=["mouseup","pointerup","touchend"];c=function(a){function c(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof
c))throw new TypeError("Cannot call a class as a function");var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.rect_=null;d.savedTabIndex_=NaN;d.active_=!1;d.inTransit_=!1;d.isDiscrete_=!1;d.hasTrackMarker_=!1;d.handlingThumbTargetEvt_=!1;d.min_=0;d.max_=100;d.step_=0;d.value_=0;d.disabled_=!1;d.preventFocusState_=!1;d.updateUIFrame_=0;d.thumbContainerPointerHandler_=function(){d.handlingThumbTargetEvt_=!0};d.mousedownHandler_=d.createDownHandler_("mousemove");
d.pointerdownHandler_=d.createDownHandler_("pointermove");d.touchstartHandler_=d.createDownHandler_("touchmove",function(a){return a.targetTouches[0].pageX});d.keydownHandler_=function(a){return d.handleKeydown_(a)};d.focusHandler_=function(){return d.handleFocus_()};d.blurHandler_=function(){return d.handleBlur_()};d.resizeHandler_=function(){return d.layout()};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"numbers",
get:function(){return m.numbers}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabIndex:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerThumbContainerInteractionHandler:function(){},
deregisterThumbContainerInteractionHandler:function(){},registerBodyInteractionHandler:function(){},deregisterBodyInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},notifyInput:function(){},notifyChange:function(){},setThumbContainerStyleProperty:function(){},setTrackStyleProperty:function(){},setMarkerValue:function(){},appendTrackMarkers:function(){},removeTrackMarkers:function(){},setLastTrackMarkersStyleProperty:function(){},isRTL:function(){return!1}}}}]);
k(c,[{key:"init",value:function(){var a=this;this.isDiscrete_=this.adapter_.hasClass(m.cssClasses.IS_DISCRETE);this.hasTrackMarker_=this.adapter_.hasClass(m.cssClasses.HAS_TRACK_MARKER);this.adapter_.registerInteractionHandler("mousedown",this.mousedownHandler_);this.adapter_.registerInteractionHandler("pointerdown",this.pointerdownHandler_);this.adapter_.registerInteractionHandler("touchstart",this.touchstartHandler_);this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_);this.adapter_.registerInteractionHandler("focus",
this.focusHandler_);this.adapter_.registerInteractionHandler("blur",this.blurHandler_);["mousedown","pointerdown","touchstart"].forEach(function(c){a.adapter_.registerThumbContainerInteractionHandler(c,a.thumbContainerPointerHandler_)});this.adapter_.registerResizeHandler(this.resizeHandler_);this.layout();this.isDiscrete_&&0==this.getStep()&&(this.step_=1)}},{key:"destroy",value:function(){var a=this;this.adapter_.deregisterInteractionHandler("mousedown",this.mousedownHandler_);this.adapter_.deregisterInteractionHandler("pointerdown",
this.pointerdownHandler_);this.adapter_.deregisterInteractionHandler("touchstart",this.touchstartHandler_);this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_);this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_);this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_);["mousedown","pointerdown","touchstart"].forEach(function(c){a.adapter_.deregisterThumbContainerInteractionHandler(c,a.thumbContainerPointerHandler_)});this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},
{key:"setupTrackMarker",value:function(){if(this.isDiscrete_&&this.hasTrackMarker_&&0!=this.getStep()){var a=this.getMin(),c=this.getMax(),d=this.getStep();a=(c-a)/d;var e=Math.ceil(a)!==a;e&&(a=Math.ceil(a));this.adapter_.removeTrackMarkers();this.adapter_.appendTrackMarkers(a);e&&(c=(c-a*d)/d+1,d=(0,p.getCorrectPropertyName)(window,"flex"),this.adapter_.setLastTrackMarkersStyleProperty(d,c))}}},{key:"layout",value:function(){this.rect_=this.adapter_.computeBoundingRect();this.updateUIForCurrentValue_()}},
{key:"getValue",value:function(){return this.value_}},{key:"setValue",value:function(a){this.setValue_(a,!1)}},{key:"getMax",value:function(){return this.max_}},{key:"setMax",value:function(a){if(a<this.min_)throw Error("Cannot set max to be less than the slider's minimum value");this.max_=a;this.setValue_(this.value_,!1,!0);this.adapter_.setAttribute(m.strings.ARIA_VALUEMAX,String(this.max_));this.setupTrackMarker()}},{key:"getMin",value:function(){return this.min_}},{key:"setMin",value:function(a){if(a>
this.max_)throw Error("Cannot set min to be greater than the slider's maximum value");this.min_=a;this.setValue_(this.value_,!1,!0);this.adapter_.setAttribute(m.strings.ARIA_VALUEMIN,String(this.min_));this.setupTrackMarker()}},{key:"getStep",value:function(){return this.step_}},{key:"setStep",value:function(a){if(0>a)throw Error("Step cannot be set to a negative number");this.isDiscrete_&&("number"!==typeof a||1>a)&&(a=1);this.step_=a;this.setValue_(this.value_,!1,!0);this.setupTrackMarker()}},{key:"isDisabled",
value:function(){return this.disabled_}},{key:"setDisabled",value:function(a){this.disabled_=a;this.toggleClass_(m.cssClasses.DISABLED,this.disabled_);this.disabled_?(this.savedTabIndex_=this.adapter_.getTabIndex(),this.adapter_.setAttribute(m.strings.ARIA_DISABLED,"true"),this.adapter_.removeAttribute("tabindex")):(this.adapter_.removeAttribute(m.strings.ARIA_DISABLED),isNaN(this.savedTabIndex_)||this.adapter_.setAttribute("tabindex",String(this.savedTabIndex_)))}},{key:"createDownHandler_",value:function(a){var c=
this,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(a){return a.pageX},e=function(a){a.preventDefault();c.setValueFromEvt_(a,d)},f=function z(){c.setActive_(!1);c.adapter_.deregisterBodyInteractionHandler(a,e);q.forEach(function(a){return c.adapter_.deregisterBodyInteractionHandler(a,z)});c.adapter_.notifyChange()};return function(h){c.disabled_||(c.preventFocusState_=!0,c.setInTransit_(!c.handlingThumbTargetEvt_),c.handlingThumbTargetEvt_=!1,c.setActive_(!0),c.adapter_.registerBodyInteractionHandler(a,
e),q.forEach(function(a){return c.adapter_.registerBodyInteractionHandler(a,f)}),c.setValueFromEvt_(h,d))}}},{key:"setValueFromEvt_",value:function(a,c){a=c(a);a=this.computeValueFromPageX_(a);this.setValue_(a,!0)}},{key:"computeValueFromPageX_",value:function(a){var c=this.max_,d=this.min_;a=(a-this.rect_.left)/this.rect_.width;this.adapter_.isRTL()&&(a=1-a);return d+a*(c-d)}},{key:"handleKeydown_",value:function(a){var c=this.getKeyId_(a);c=this.getValueForKeyId_(c);isNaN(c)||(a.preventDefault(),
this.adapter_.addClass(m.cssClasses.FOCUS),this.setValue_(c,!0),this.adapter_.notifyChange())}},{key:"getKeyId_",value:function(a){switch(a.key||a.keyCode){case "ArrowLeft":case 37:return"ArrowLeft";case "ArrowRight":case 39:return"ArrowRight";case "ArrowUp":case 38:return"ArrowUp";case "ArrowDown":case 40:return"ArrowDown";case "Home":case 36:return"Home";case "End":case 35:return"End";case "PageUp":case 33:return"PageUp";case "PageDown":case 34:return"PageDown";default:return""}}},{key:"getValueForKeyId_",
value:function(a){var c=this.max_,d=this.min_;c=this.step_||(c-d)/100;!this.adapter_.isRTL()||"ArrowLeft"!==a&&"ArrowRight"!==a||(c=-c);switch(a){case "ArrowLeft":case "ArrowDown":return this.value_-c;case "ArrowRight":case "ArrowUp":return this.value_+c;case "Home":return this.min_;case "End":return this.max_;case "PageUp":return this.value_+c*m.numbers.PAGE_FACTOR;case "PageDown":return this.value_-c*m.numbers.PAGE_FACTOR;default:return NaN}}},{key:"handleFocus_",value:function(){this.preventFocusState_||
this.adapter_.addClass(m.cssClasses.FOCUS)}},{key:"handleBlur_",value:function(){this.preventFocusState_=!1;this.adapter_.removeClass(m.cssClasses.FOCUS)}},{key:"setValue_",value:function(a,c){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;if(a!==this.value_||d){d=this.min_;var e=this.max_;this.step_&&a!==d&&a!==e&&(a=this.quantize_(a));a<d?a=d:a>e&&(a=e);this.value_=a;this.adapter_.setAttribute(m.strings.ARIA_VALUENOW,String(this.value_));this.updateUIForCurrentValue_();c&&(this.adapter_.notifyInput(),
this.isDiscrete_&&this.adapter_.setMarkerValue(a))}}},{key:"quantize_",value:function(a){return Math.round(a/this.step_)*this.step_}},{key:"updateUIForCurrentValue_",value:function(){var a=this,c=this.min_,d=(this.value_-c)/(this.max_-c),e=d*this.rect_.width;this.adapter_.isRTL()&&(e=this.rect_.width-e);var f=(0,p.getCorrectPropertyName)(window,"transform"),h=(0,p.getCorrectEventName)(window,"transitionend");this.inTransit_&&this.adapter_.registerThumbContainerInteractionHandler(h,function v(){a.setInTransit_(!1);
a.adapter_.deregisterThumbContainerInteractionHandler(h,v)});this.updateUIFrame_=requestAnimationFrame(function(){a.adapter_.setThumbContainerStyleProperty(f,"translateX("+e+"px) translateX(-50%)");a.adapter_.setTrackStyleProperty(f,"scaleX("+d+")")})}},{key:"setActive_",value:function(a){this.active_=a;this.toggleClass_(m.cssClasses.ACTIVE,this.active_)}},{key:"setInTransit_",value:function(a){this.inTransit_=a;this.toggleClass_(m.cssClasses.IN_TRANSIT,this.inTransit_)}},{key:"toggleClass_",value:function(a,
c){c?this.adapter_.addClass(a):this.adapter_.removeClass(a)}}]);return c}((c&&c.__esModule?c:{default:c}).default);d.default=c},function(c,d,a){function e(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function h(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");
}Object.defineProperty(d,"__esModule",{value:!0});d.PCTablegrid=d.PCTablegridFoundation=void 0;var k=function n(a,c,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return n(a,c,d)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(d)}},m=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,
e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var p=a(144),q=(a=a(406))&&a.__esModule?a:{default:a};d.PCTablegridFoundation=q.default;var l=function(){function a(c){h(this,a);this.button_=c}m(a,[{key:"registerClickHandler",value:function(a){this.button_&&this.button_.addEventListener("click",a)}},{key:"unregisterClickHandler",value:function(a){this.button_&&this.button_.removeEventListener("click",a)}},{key:"disabled",get:function(){return this.button_?this.button_.disabled:
!1},set:function(a){this.button_&&(this.button_.disabled=a)}}]);return a}();d.PCTablegrid=function(a){function c(){h(this,c);var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}e(c,a);m(c,[{key:"initialize",value:function(){this.buttonEdit_=this.root_.querySelector(p.strings.BUTTON_EDIT_SELECTOR);this.buttonRemove_=this.root_.querySelector(p.strings.BUTTON_REMOVE_SELECTOR);
this.buttonImport_=this.root_.querySelector(p.strings.BUTTON_IMPORT_SELECTOR);this.checkAll_=this.root_.querySelector("thead").querySelector(p.strings.CHECKBOX_SELECTOR)||{addEventListener:function(){},removeEventListener:function(){}};this.title_=this.root_.querySelector(p.strings.TITLE_SELECTOR);this.titleItems_=this.root_.querySelector(p.strings.ITEMS_TITLE_SELECTOR);this.columns_=this.root_.querySelectorAll(p.strings.COLUMN_HEADER_SELECTOR);this.sortColumns_=this.root_.querySelectorAll(p.strings.SORT_COLUMN_HEADER_SELECTOR);
this.body_=this.root_.querySelector("tbody");this.header_=this.root_.querySelector("header");this.paging_=this.root_.querySelector(p.strings.PAGING_SELECTOR);this.pageSizeSelect_=this.paging_.querySelector(p.strings.SELECT_SELECTOR);this.currentPage_=this.paging_.querySelector(p.strings.CURRENT_PAGE_SELECTOR);this.currentPagePattern_=this.currentPage_.getAttribute(p.strings.PATTERN_ATTRIBUTE);this.buttonPrev_=this.paging_.querySelector(p.strings.BUTTON_PREV_SELECTOR);this.buttonNext_=this.paging_.querySelector(p.strings.BUTTON_NEXT_SELECTOR);
this.buttonsSingle_=this.createButtons_(p.strings.BUTTON_SINGLESELECT);this.buttonsMulti_=this.createButtons_(p.strings.BUTTON_MULTISELECT);var a=this.root_.querySelector("table").className;this.singleSelect_=a&&-1!=a.indexOf(p.cssClasses.SINGLESELECT)}},{key:"destroy",value:function(){k(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"destroy",this).call(this)}},{key:"initialSyncWithDOM",value:function(){this.foundation_.setPageSize(Number(this.pageSizeSelect_.value));for(var a=this.isSelectionEnabled()?
1:0,c=0;c<this.columns_.length;++c){var d=this.columns_[c].getAttribute(p.strings.SORT_ATTRIBUTE),e=c-a;if(d==p.strings.SORT_ASC){this.foundation_.setSortColumn(e,!0);break}else if(d==p.strings.SORT_DESC){this.foundation_.setSortColumn(e,!1);break}}}},{key:"setData",value:function(a,c,d){this.foundation_.setData(a,c,d)}},{key:"setRowData",value:function(a,c){this.foundation_.setRowData(a,c)}},{key:"getDefaultFoundation",value:function(){var a=this;return new q.default(Object.assign({getColumnClickEventData:function(c){for(c=
c.target;c.parentNode&&"TH"!=c.nodeName.toUpperCase();)c=c.parentNode;for(var d=0;d<a.columns_.length;++d)if(a.columns_[d]==c)return{index:d-(a.isSelectionEnabled()?1:0),asc:c.getAttribute(p.strings.SORT_ATTRIBUTE)==p.strings.SORT_ASC}},changeColumnSortOrder:function(c,d){c+=a.isSelectionEnabled()?1:0;if(0<=c&&c<a.columns_.length){var e=a.columns_[c].querySelector(p.strings.SORT_ASC_SELECTOR),h=a.columns_[c].querySelector(p.strings.SORT_DESC_SELECTOR);a.showElement_(e,!0===d);a.showElement_(h,!1===
d);!0===d?a.columns_[c].setAttribute(p.strings.SORT_ATTRIBUTE,p.strings.SORT_ASC):!1===d?a.columns_[c].setAttribute(p.strings.SORT_ATTRIBUTE,p.strings.SORT_DESC):a.columns_[c].setAttribute(p.strings.SORT_ATTRIBUTE,p.strings.SORT_NONE)}},requestData:function(c,d,e,h){a.emit(p.strings.REQUEST_DATA_EVENT,{table:a,start:c,size:d,sortAsc:h,sortColumn:e})},notifyDelete:function(c){a.emit(p.strings.DELETE_EVENT,{table:a,rows:c})},notifyEdit:function(c){a.emit(p.strings.EDIT_EVENT,{table:a,row:c})},setCheckAll:function(c){a.checkAll_.checked=
c},setRowSelected:function(c,d){var e=a.body_.querySelectorAll("tr");e.length>c&&(a.rowCheckbox_(c).checked=d,a.setClass_(e[c],d,p.cssClasses.SELECTED))},notifySelected:function(c){a.emit(p.strings.SELECT_EVENT,{table:a,rows:c})},showHeader:function(c){a.showElement_(a.title_,c)},showItemsHeader:function(c){a.showElement_(a.titleItems_,c);a.setClass_(a.header_,c,p.cssClasses.SELECTED)},setSelectedItemsText:function(c){a.titleItems_.innerHTML=c},showRows:function(c,d,e){for(var h=d;h<a.body_.rows.length&&
h<d+e;++h)a.showElement_(a.body_.rows[h],c)},appendRows:function(c){for(var d=a.body_.rows[a.body_.rows.length-1],e=0;e<c;++e){var h=d.cloneNode(!0);a.body_.appendChild(h)}},updatePageIndicator:function(c,d,e){a.currentPage_.innerHTML=a.currentPagePattern_.replace("%1",c+"-"+d).replace("%2",e)},showPageIndicator:function(c){a.showElement_(a.paging_,c)},getSelectRowEventData:function(c){c=c.target;for(var d={checked:c.checked};c.parentNode;){c=c.parentNode;if("TH"==c.nodeName.toUpperCase())break;if("TR"==
c.nodeName.toUpperCase())for(var e=a.body_.querySelectorAll("tr"),h=0;h<e.length;++h)if(e[h]===c){d.index=h;break}}return d},setCellValue:function(c,d,e){var h=a.body_.querySelectorAll("tr");h.length>c&&(c=h[c].querySelectorAll("td"),d+=a.isSelectionEnabled()?1:0,c.length>d&&(c[d].innerHTML=e))},getRemoveButton:function(){return new l(a.buttonRemove_)},getEditButton:function(){return new l(a.buttonEdit_)},registerColumnHeaderClickHandler:function(c){for(var d=0;d<a.sortColumns_.length;++d)a.sortColumns_[d].addEventListener("click",
c)},deregisterColumnHeaderClickHandler:function(c){for(var d=0;d<a.sortColumns_.length;++d)a.sortColumns_[d].removeEventListener("click",c)},registerSelectAllHandler:function(c){a.checkAll_.addEventListener("change",c)},deregisterSelectAllHandler:function(c){a.checkAll_.removeEventListener("change",c)},registerSelectRowHandler:function(c,d){a.rowCheckbox_(c).addEventListener("change",d)},deregisterSelectRowHandler:function(c,d){a.rowCheckbox_(c).removeEventListener("change",d)},getPrevButton:function(){return new l(a.buttonPrev_)},
getNextButton:function(){return new l(a.buttonNext_)},getPageSelectedEventData:function(a){return{pageSize:a.target.value}},registerSetPageSizeHandler:function(c){a.pageSizeSelect_.addEventListener("change",c)},deregisterSetPageSizeHandler:function(c){a.pageSizeSelect_.removeEventListener("change",c)},getSingleSelectButtons:function(){return a.buttonsSingle_},getMultiSelectButtons:function(){return a.buttonsMulti_},isSingleSelection:function(){return a.isSingleSelection()}}))}},{key:"rowCheckbox_",
value:function(a){var c=this.body_.querySelectorAll("tr");if(c&&c.length>a)return c[a].querySelector(p.strings.CHECKBOX_SELECTOR)||{addEventListener:function(){},removeEventListener:function(){}}}},{key:"showElement_",value:function(a,c){this.setClass_(a,!c,p.cssClasses.HIDDEN)}},{key:"setClass_",value:function(a,c,d){a&&(c?a.classList.add(d):a.classList.remove(d))}},{key:"isSingleSelection",value:function(){return this.singleSelect_}},{key:"isSelectionEnabled",value:function(){void 0===this.firstRowCheckbox_&&
(this.firstRowCheckbox_=this.rowCheckbox_(0));return void 0!==this.firstRowCheckbox_.tagName}},{key:"createButtons_",value:function(a){var c=[];a=this.root_.querySelectorAll(a);for(var d=0;d<a.length;++d)c.push(new l(a[d]));return c}},{key:"setRowSelected",value:function(a,c,d){if(d)for(d=0;d<this.foundation_.visibleRows_;++d)d!=a&&this.foundation_.setRowSelected(d,!c);this.foundation_.setRowSelected(a,c)}},{key:"clearSelection",value:function(){for(var a=0;a<this.foundation_.selected_.length;++a)this.foundation_.setRowSelected(a,
!1)}},{key:"pageSize",get:function(){return this.foundation_.getPageSize()}},{key:"startIndex",get:function(){return this.foundation_.getStartIndex()}},{key:"sortColumn",get:function(){return this.foundation_.getSortColumn()}},{key:"sortAsc",get:function(){return this.foundation_.getSortDirection()}},{key:"totalCount",get:function(){return this.foundation_.getTotalCount()}},{key:"selectedIndexes",get:function(){return this.foundation_.getSortColumn()}},{key:"selected",get:function(){return this.foundation_.getSelectedArray_()}}],
[{key:"attachTo",value:function(a){return new c(a)}}]);return c}(c.MDCComponent)},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});
c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(d,"__esModule",{value:!0});var k=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}();c=a(19);var m=a(144);a=function(a){function c(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");
var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign(c.defaultAdapter,a)));d.startIndex_=0;d.pageSize_=20;d.total_=0;d.allocatedRows_=1;d.visibleRows_=0;d.selected_={};d.selectedCount_=0;d.sortColumn_=-1;d.sortMode_=void 0;d.sortColumnClick_=function(a){d.onSortColumnClick_(a)};d.selectAllChanged_=function(a){d.onSelectAllChanged_(a)};d.editClicked_=function(a){d.onEditClicked_(a)};d.removeClicked_=function(a){d.onRemoveClicked_(a)};d.selectRowChanged_=function(a){d.onSelectRowChanged_(a)};
d.pageSizeChanged_=function(a){d.onPageSizeChanged_(a)};d.nextPageClicked_=function(a){d.onNextPageClicked_(a)};d.prevPageClicked_=function(a){d.onPrevPageClicked_(a)};return d}h(c,a);k(c,null,[{key:"cssClasses",get:function(){return m.cssClasses}},{key:"strings",get:function(){return m.strings}},{key:"fakeButton",get:function(){return{registerClickHandler:function(){},deregisterClickHandler:function(){},disabled:!1}}},{key:"defaultAdapter",get:function(){return{getColumnClickEventData:function(){return{index:0,
asc:void 0}},changeColumnSortOrder:function(){},requestData:function(){},notifyDelete:function(){},notifyEdit:function(){},notifySelected:function(){},setRowSelected:function(){},setCheckAll:function(){},showHeader:function(){},showItemsHeader:function(){},setSelectedItemsText:function(){},showRows:function(){},appendRows:function(){},updatePageIndicator:function(){},showPageIndicator:function(){},getSelectRowEventData:function(){return{index:0,checked:!1}},setCellValue:function(){},getEditButton:function(){return c.fakeButton},
getRemoveButton:function(){return c.fakeButton},getPrevButton:function(){return c.fakeButton},getNextButton:function(){return c.fakeButton},getPageSelectedEventData:function(){return{pageSize:0}},registerColumnHeaderClickHandler:function(){},deregisterColumnHeaderClickHandler:function(){},registerSelectAllHandler:function(){},deregisterSelectAllHandler:function(){},registerSelectRowHandler:function(){},deregisterSelectRowHandler:function(){},registerSetPageSizeHandler:function(){},deregisterSetPageSizeHandler:function(){},
isSingleSelection:function(){return!1}}}}]);k(c,[{key:"init",value:function(){this.adapter_.registerColumnHeaderClickHandler(this.sortColumnClick_);this.adapter_.registerSelectAllHandler(this.selectAllChanged_);this.adapter_.getEditButton().registerClickHandler(this.editClicked_);this.adapter_.getRemoveButton().registerClickHandler(this.removeClicked_);this.adapter_.registerSelectRowHandler(0,this.selectRowChanged_);this.adapter_.registerSetPageSizeHandler(this.pageSizeChanged_);this.adapter_.getNextButton().registerClickHandler(this.nextPageClicked_);
this.adapter_.getPrevButton().registerClickHandler(this.prevPageClicked_)}},{key:"destroy",value:function(){this.adapter_.deregisterColumnHeaderClickHandler(this.sortColumnClick_);this.adapter_.deregisterSelectAllHandler(this.selectAllChanged_);this.adapter_.getEditButton().deregisterClickHandler(this.editClicked_);this.adapter_.getRemoveButton().deregisterClickHandler(this.removeClicked_);for(var a=0;a<allocatedRows_;++a)this.adapter_.deregisterSelectRowHandler(a,this.selectRowChanged_);this.adapter_.deregisterSetPageSizeHandler(this.pageSizeChanged_);
this.adapter_.getNextButton().deregisterClickHandler(this.nextPageClicked_);this.adapter_.getPrevButton().deregisterClickHandler(this.prevPageClicked_)}},{key:"onSortColumnClick_",value:function(a){var c=this.adapter_.getColumnClickEventData(a);a=c.index;c=!0===c.asc?!1:!0;this.sortColumn_!=a&&this.adapter_.changeColumnSortOrder(this.sortColumn_,void 0);this.sortColumn_=a;this.sortMode_=c;this.adapter_.changeColumnSortOrder(a,c);this.adapter_.requestData(this.getStartIndex(),this.getPageSize(),a,
c)}},{key:"onSelectAllChanged_",value:function(a){a=this.adapter_.getSelectRowEventData(a).checked;this.allRowSelection_(a)}},{key:"changeRowSelection_",value:function(a,c){if(c&&void 0===this.selected_[a]){if(this.adapter_.isSingleSelection()){for(var d in this.selected_){this.adapter_.setRowSelected(d,!1);delete this.selected_[d];break}this.selectedCount_=1}else this.selectedCount_++;this.selected_[a]=1;this.adapter_.setRowSelected(a,c);return!0}return!c&&this.selected_[a]?(this.selectedCount_--,
delete this.selected_[a],this.adapter_.setRowSelected(a,c),!0):!1}},{key:"onSelectRowChanged_",value:function(a){a=this.adapter_.getSelectRowEventData(a);this.setRowSelected(a.index,a.checked)&&this.notifySelected_()}},{key:"setRowSelected",value:function(a,c){var d=this.selectedCount_;a=this.changeRowSelection_(a,c);this.enableSelectionButtons_(d);return a}},{key:"getStartIndex",value:function(){return this.startIndex_}},{key:"getPageSize",value:function(){return this.pageSize_}},{key:"getSortColumn",
value:function(){return this.sortColumn_}},{key:"getSortDirection",value:function(){return this.sortMode_}},{key:"getTotalCount",value:function(){return this.total_}},{key:"setPageSize",value:function(a){this.pageSize_=a}},{key:"setData",value:function(a,c,d){this.startIndex_=c;this.total_=d;0<d&&(this.adapter_.updatePageIndicator(c+1,c+a.length,d),this.adapter_.getPrevButton().disabled=0==c,this.adapter_.getNextButton().disabled=c+a.length==d);this.adapter_.showPageIndicator(0<d);this.allRowSelection_(!1);
if(this.allocatedRows_<a.length){this.adapter_.appendRows(a.length-this.allocatedRows_);for(c=this.allocatedRows_;c<a.length;++c)this.adapter_.registerSelectRowHandler(c,this.selectRowChanged_);this.allocatedRows_=a.length}for(c=0;c<a.length;++c){d=a[c];for(var e=0;e<d.length;++e)this.adapter_.setCellValue(c,e,d[e])}this.visibleRows_<a.length?this.adapter_.showRows(!0,this.visibleRows_,a.length-this.visibleRows_):this.visibleRows_>a.length&&this.adapter_.showRows(!1,a.length,this.visibleRows_-a.length);
this.visibleRows_=a.length}},{key:"setRowData",value:function(a,c){for(var d=0;d<c.length;++d)this.adapter_.setCellValue(a,d,c[d])}},{key:"allRowSelection_",value:function(a){for(var c=this.selectedCount_,d=a?this.visibleRows_:0,e=0;e<this.visibleRows_&&this.selectedCount_!=d;++e)this.changeRowSelection_(e,a);this.enableSelectionButtons_(c)}},{key:"enableButtons_",value:function(a,c){for(var d=0;d<a.length;++d)a[d].disabled=!c}},{key:"enableSelectionButtons_",value:function(a){if(this.selectedCount_!=
a){0<this.selectedCount_&&this.adapter_.setSelectedItemsText(PCL.items_selected.replace("%1",this.selectedCount_));if(a&&!this.selectedCount_||!a&&this.selectedCount_)this.adapter_.isSingleSelection()||(this.adapter_.showHeader(0==this.selectedCount_),this.adapter_.showItemsHeader(0<this.selectedCount_)),this.adapter_.getRemoveButton().disabled=0==this.selectedCount_,this.enableButtons_(this.adapter_.getMultiSelectButtons(),0<this.selectedCount_);this.enableButtons_(this.adapter_.getSingleSelectButtons(),
1==this.selectedCount_);this.adapter_.getEditButton().disabled=1!=this.selectedCount_;this.selectedCount_==this.visibleRows_?this.adapter_.setCheckAll(!0):this.adapter_.setCheckAll(!1)}}},{key:"getSelectedArray_",value:function(){var a=[],c;for(c in this.selected_)a.push(Number(c)+this.startIndex_);return a}},{key:"onEditClicked_",value:function(){var a=this.getSelectedArray_();1===a.length&&this.adapter_.notifyEdit(a[0])}},{key:"onRemoveClicked_",value:function(){var a=this.getSelectedArray_();this.adapter_.notifyDelete(a)}},
{key:"onPageSizeChanged_",value:function(a){a=Number(this.adapter_.getPageSelectedEventData(a).pageSize);a!=this.pageSize_&&(this.pageSize_=a,this.adapter_.requestData(this.startIndex_-this.startIndex_%a,a,this.sortColumn_,this.sortMode_))}},{key:"onNextPageClicked_",value:function(a){this.adapter_.requestData(this.startIndex_+this.pageSize_,this.pageSize_,this.sortColumn_,this.sortMode_)}},{key:"onPrevPageClicked_",value:function(a){this.adapter_.requestData(this.startIndex_>=this.pageSize_?this.startIndex_-
this.pageSize_:0,this.pageSize_,this.sortColumn_,this.sortMode_)}},{key:"setSortColumn",value:function(a,c){this.sortColumn_=a;this.sortMode_=c}},{key:"notifySelected_",value:function(){var a=this.getSelectedArray_();this.adapter_.notifySelected(a)}}]);return c}(c.MDCFoundation);d.default=a},function(c,d,a){function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function h(a,c){if("function"!==
typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function k(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(d,"__esModule",{value:!0});d.Fraction=d.Real=d.Complex=d.IntNumber=d.Ring=void 0;var m=function(){return function(a,
c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var d=[],e=!0,f=!1,h=void 0;try{for(var k=a[Symbol.iterator](),l;!(e=(l=k.next()).done)&&(d.push(l.value),!c||d.length!==c);e=!0);}catch(B){f=!0,h=B}finally{try{if(!e&&k["return"])k["return"]()}finally{if(f)throw h;}}return d}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&
a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q=function(){function a(a,c){for(var d=0;d<c.length;d++){var e=c[d];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);return c}}(),l=(c=a(145))&&c.__esModule?c:{default:c},f=(a=a(146))&&a.__esModule?a:{default:a},n=null,t=d.Ring=function(){function a(){k(this,a)}q(a,[{key:"getRing",value:function(c){switch("undefined"===typeof c?
"undefined":p(c)){case "string":c=a.integer(c);break;case "number":c=c==Math.round(c)?a.integer(c):a.real(c);break;default:void 0!==c.sign&&void 0!==c.value&&void 0!==c.isSmall&&(c=a.integer(c))}var d=[this,c];if(this.constructor===c.constructor)return d;this instanceof u?d[1]=a.complex(c):c instanceof u?d[0]=a.complex(this):this instanceof y?d[1]=a.real(c):c instanceof y?d[0]=a.real(this):this instanceof x?d[1]=a.rational(c):c instanceof x&&(d[0]=a.rational(this));return d}},{key:"sub",value:function(a){a=
this.getRing(a);a=m(a,2);return a[0]._add(a[1].mul(-1))}},{key:"add",value:function(a){a=this.getRing(a);a=m(a,2);return a[0]._add(a[1])}},{key:"mul",value:function(a){a=this.getRing(a);a=m(a,2);return a[0]._mul(a[1])}},{key:"div",value:function(a){a=this.getRing(a);var c=m(a,2);a=c[0];c=c[1];if(!c||c.isZero())throw Error("Cannot divide by zero");return a._div(c)}},{key:"compare",value:function(a){a=this.sub(a);return a.isZero()?0:"-"==a.toString().substr(0,1)?-1:1}},{key:"neg",value:function(){return this.mul(-1)}},
{key:"lte",value:function(a){return 0>=this.compare(a)}},{key:"gte",value:function(a){return 0<=this.compare(a)}},{key:"lt",value:function(a){return-1==this.compare(a)}},{key:"gt",value:function(a){return 1==this.compare(a)}},{key:"eq",value:function(a){return 0==this.compare(a)}}],[{key:"parse",value:function(c){function d(c){c=c.value;var d=c[0].value;var e=a.integer(d[0].getValue());if(1!=d.length){d=d[1].value[1].getValue();var f=a.integer("1e"+d.length);e=e.mul(f).add(a.integer(d)).div(f)}if(1==
c.length)return e;d=c[1].value[0].value;c=3==d.length&&"-"==d[1].getValue();d=a.integer("1e"+d[d.length-1].getValue());return c?e.div(d):e.mul(d)}function e(c){var e=c.value;c=2==e.length&&"-"==e[0].getValue()?-1:1;e=e[e.length-1].value;if("i"==e[e.length-1].getValue()&&(c=a.complex(0,c),1==e.length))return c;e=e[0].value;var f=d(e[0]);e=1==e.length?f:f.div(d(e[1].value[1]));return e.mul(c)}n||(n=new f.default.parser([{n:"complex",r:{41:[[2,11],[24,25],29]}},{n:"digit",s:[[2,11]]},"1","2","3","4",
"5","6","7","8","9","0",{n:"dot",s:[[13,14]]},".",",",{n:"real",r:{32:[[2,11]]}},{n:"float",r:{35:[[2,11]]}},{n:"mantissa",r:{34:[[2,11]]}},{n:"integer",r:{33:[[2,11]]}},{n:"digit x",r:{0:[[-1,0],[13,14],[21,22],[24,25],27,29],42:[[2,11]]}},{n:"order",r:{36:[[21,22]]}},"e","E",{n:"sign",s:[[24,25]]},"+","-",{n:"divisor",r:{0:[[-1,0],[24,25],29],37:[27]}},"/",{n:"part",s:[29],r:{38:[[2,11]]}},"i",{n:"second",r:{39:[[24,25]]}},{n:"first",r:{40:[[2,11],[24,25],29]}},{d:[16,26],n:"real32",r:{32:[[2,11]]}},
{d:[1,19],n:"integer33",r:{33:[[2,11]]}},{d:[18,43],n:"mantissa34",r:{34:[[2,11]]}},{d:[17,44],n:"float35",r:{35:[[2,11]]}},{d:[45,46,18],n:"order36",r:{36:[[21,22]]}},{d:[27,16],n:"divisor37",r:{37:[27]}},{d:[15,47],n:"part38",r:{38:[[2,11]]}},{d:[23,28],n:"second39",r:{39:[[24,25]]}},{d:[48,28],n:"first40",r:{40:[[2,11],[24,25],29]}},{d:[31,49],n:"complex41",r:{41:[[2,11],[24,25],29]}},{d:[1,19],n:"digit x42",r:{42:[[2,11]]}},{n:"mantissa3443",r:{0:[[-1,0],[21,22],[24,25],27,29],50:[[13,14]]}},
{n:"float3544",r:{0:[[-1,0],[24,25],27,29],20:[[21,22]]}},{n:"order3645",s:[[21,22]]},{n:"order3646",r:{0:[0,[2,11]],23:[[24,25]]}},{n:"part3847",s:[29],r:{0:[[-1,0],[24,25]]}},{n:"first4048",r:{0:[0,[2,11],29],23:[[24,25]]}},{n:"complex4149",r:{0:[[-1,0]],30:[[24,25]]}},{d:[12,18],n:"mantissa344350",r:{50:[[13,14]]}}]));c=n.parse(c).visit({first:e,second:e});return c.length?c[0].add(c[1]):c}},{key:"rational",value:function(c,d){if(c instanceof x&&void 0===d)return c;void 0===d&&(d=1);return c instanceof
u?c.div(d):d instanceof u?a.complex(c,0).div(d):c instanceof x?c.div(d):d instanceof x?new x(d.d.mul(c),d.n):new x(a.integer(c),a.integer(d))}},{key:"complex",value:function(c,d){if(c instanceof u)return c;void 0===d&&(d=0);if("number"==typeof c&&Math.round(c)!=c)return new u(a.real(c),a.real(d));c instanceof x||c instanceof y||(c=a.integer(c));d instanceof x||d instanceof y||(d=a.integer(d));return new u(c,d)}},{key:"integer",value:function(a){void 0===a&&(a=0);return a instanceof w?a:new w(a)}},
{key:"real",value:function(c){return c instanceof y?c:c instanceof x?(new y(c.n.n.valueOf())).div(c.d):c instanceof u?new u(a.real(c.re),a.real(c.im)):c instanceof w?new y(c.n.valueOf()):new y(c)}}]);return a}(),w=d.IntNumber=function(a){function c(a){k(this,c);var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));d.n=(0,l.default)(a);return d}h(c,a);q(c,[{key:"_add",value:function(a){return new c(this.n.add(a.n))}},{key:"_mul",value:function(a){return new c(this.n.multiply(a.n))}},{key:"_div",
value:function(a){return new x(this,a)}},{key:"idiv",value:function(a){a=t.integer(a);return new c(this.n.divide(a.n))}},{key:"mod",value:function(a){a=t.integer(a);return new c(this.n.mod(a.n))}},{key:"abs",value:function(){return new c(this.n.abs())}},{key:"isZero",value:function(){return this.n.equals(0)}},{key:"toString",value:function(){return this.n.toString()}},{key:"toFixed",value:function(){return this.toString()}}],[{key:"gcd",value:function(a,d){if(a.isZero()||d.isZero())return c.one;for(;;){a=
a.mod(d);if(a.isZero())return d;d=d.mod(a);if(d.isZero())return a}}},{key:"one",get:function(){return new c(1)}}]);return c}(t),u=d.Complex=function(a){function c(a,d){k(this,c);var f=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));f.re=a;f.im=d;return f}h(c,a);q(c,[{key:"_add",value:function(a){return new c(this.re.add(a.re),this.im.add(a.im))}},{key:"_mul",value:function(a){return new c(this.re.mul(a.re).sub(this.im.mul(a.im)),this.re.mul(a.im).add(this.im.mul(a.re)))}},{key:"_div",value:function(a){var d=
a.re.mul(a.re).add(a.im.mul(a.im));return new c(this.re.mul(a.re).add(this.im.mul(a.im)).div(d),this.im.mul(a.re).sub(this.re.mul(a.im)).div(d))}},{key:"abs",value:function(){if(this.re.isZero())return this.im.abs();if(this.im.isZero())return this.re.abs();var a=this.re.mul(this.re).add(this.im.mul(this.im));if(a instanceof y)return t.real(Math.sqrt(a.n));if(a instanceof x){var c=Math.sqrt(a.n.n.valueOf()),d=Math.sqrt(a.d.n.valueOf());if(Math.round(c)==c&&Math.round(d)==d)return t.rational(c,d)}a=
Math.sqrt(t.real(a).n);return a==Math.round(a)?t.integer(a):t.real(a)}},{key:"isZero",value:function(){return this.re.isZero()&&this.im.isZero()}},{key:"toString",value:function(){return c.toComplexString(this.re.toString(),this.im.toString())}},{key:"toFixed",value:function(a,d){return c.toComplexString(this.re.toFixed(a,d),this.im.toFixed(a,d))}},{key:"toTex",value:function(){return c.toComplexString(this.re.toTex?this.re.toTex():this.re.toString,this.im.toTex?this.im.toTex():this.im.toString())}}],
[{key:"toComplexString",value:function(a,c){if("0"==c)return a;var d="";"0"!=a&&(d=a,"-"!=c.substr(0,1)&&(d+="+"));return"1"==c?d+"i":"-1"==c?d+"-i":d+(c+"i")}}]);return c}(t),y=d.Real=function(a){function c(a){k(this,c);var d=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));d.n=a;return d}h(c,a);q(c,[{key:"_add",value:function(a){return new c(this.n+a.n)}},{key:"_mul",value:function(a){return new c(this.n*a.n)}},{key:"_div",value:function(a){return new c(this.n/a.n)}},{key:"abs",value:function(){return Math.abs(this.n)}},
{key:"isZero",value:function(){return Math.abs(this.n)<=c.EPSILON}},{key:"toString",value:function(){return this.n.toString()}},{key:"toFixed",value:function(a){var c=this.toString();if(Math.round(this.n)===this.n)return c;a=this.n.toFixed(a);return a.length<c?a:c}}],[{key:"EPSILON",get:function(){return 1E-16}}]);return c}(t),x=d.Fraction=function(a){function c(a,d){k(this,c);var f=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(!d||d.isZero())throw Error("Cannot divide by zero");var h=
w.gcd(a,d);f.n=a.idiv(h);f.d=d.idiv(h);return f}h(c,a);q(c,[{key:"_add",value:function(a){return new c(this.n.mul(a.d).add(this.d.mul(a.n)),this.d.mul(a.d))}},{key:"_mul",value:function(a){return new c(this.n.mul(a.n),this.d.mul(a.d))}},{key:"_div",value:function(a){return new c(this.n.mul(a.d),this.d.mul(a.n))}},{key:"abs",value:function(){return this.n.abs().div(this.d.abs())}},{key:"isZero",value:function(){return this.n.isZero()}},{key:"toString",value:function(){return c.toFractionString(this.n.toString(),
this.d.toString())}},{key:"toTeX",value:function(){var a=c.toFractionString(this.n.toString(),this.d.toString());if(-1==a.indexOf("/"))return a;var d="";"-"==a.substr(0,1)&&(d="-",a=a.substr(1));return d+"\\frac{"+a.replace("/","}{")+"}"}},{key:"toFixed",value:function(a,c){if("Q"===c)return this.toString();var d=this.n.n;c=this.d.n;var e=d.sign!=c.sign?"-":"";d.sign&&(d=d.negate());c.sign&&(c=c.negate());if(c.equals(1))return e+d.toString();d=d.divmod(c);for(var f=d.remainder,h=[d.quotient],k=a+
1;k--&&!f.equals(0);)f=f.multiply(10),d=f.divmod(c),h.push(d.quotient),f=d.remainder;h.length>a+1&&h[h.length-1].gt(5)&&(h[h.length-2]=h[h.length-2].add(1));for(k=h.length-1;0!=k;--k)if(h[k].equals(10))h[k-1].add(1),h[k]=0;else break;e+=h[0].toString();if(a)for(e+=".",k=1;k<a+1&&k<h.length;++k)e+=h[k].toString();return e}}],[{key:"toFractionString",value:function(a,c){return"0"==a?"0":"1"==c?a:"-1"==c?"-"==a.substr(0,1)?a.substr(1):"-"+a:"-"==c.substr(0,1)?"-"==a.substr(0,1)?a.substr(1)+"/"+c.substr(1):
"-"+a+"/"+c.substr(1):a+"/"+c}}]);return c}(t)}]);function UserDataHandler(c){function d(){var a=k.getProfile();return a?a.id:0}var a=c.calcid,e={id:a},h=[],k=c.handler;$("#"+c.id).find(".pc-btn-new").click(function(){k.save()});$("#"+c.tableid).find(".pc-btn-save").click(function(){k.save(c.getTableHandler().getSelected()[0].id)});k.addEventListener("save",function(c){var d=[];d.push({id:c.detail.data,calculator:a,data:PCF.patchDate([c.detail.values])[0]});BSMakePOSTRequest("/service/userdata/save/",{OnResponse:function(c){k.setProfile(c[a],!0)},
OnError:function(a){5==a.code&&(document.location.href=a.domain+"/"+window.location.pathname.match(/\d+/)+"/?loginrequirednow=1&_ud="+a.data)}},{data:JSON.stringify(d)})});k.addEventListener("profile",function(a){if(a.detail.created)c.getTableHandler().Refresh();else{if(a.detail.profile)for(var d=0;d<h.length;++d)if(h[d].id==a.detail.profile.id){var e=d;break}void 0!==e?c.getTableHandler().table.setRowSelected(e,!0,!0):c.getTableHandler().table.clearSelection()}});this.share=function(a){var d=window.location.pathname.match(/\d+/);
BSMakePOSTRequest("/service/userdata/share/",{OnResponse:function(a){c.shareDlg.link.SetValue(a.link);c.shareDlg.Show()}},{id:a,page:d[0]})};this.loadData=function(a){for(var c=0;c<h.length;++c){var d=h[c];if(d.id==a){a={};for(var e in d)a[e]="data"==e?JSON.parse(d[e]):d[e];k.setProfile(a,!1);break}}};this.delete=function(a,c,q){c=[];for(var l=!1,f=d(),m=0;m<a.length;++m){var p=h[a[m]-e.from].id;c.push(p);p==f&&(l=!0)}l&&k.setProfile(0,!1);BSMakePOSTRequest("/service/userdata/delete/",{OnResponse:function(a){q()}},
{data:c})};this.update=function(a,c,d){BSMakePOSTRequest("/service/userdata/rename/",{OnResponse:function(a){d()}},{name:c.name,id:c.id})};this.getRecords=function(a,k,q,l,f,n){$("#planetcalc_login").length||(e.from=a,e.items=k,0<=q&&q<f.length&&void 0!==l&&(e.sortcolumn=f[q].name,e.sortdirection=l?"ASC":"DESC"),BSMakePOSTRequest("/service/userdata/",{OnResponse:function(a){h=a.recordset;n(h,a.params.from,a.summary.total);for(var e=0;e<h.length;++e)if(h[e].id==d()){c.getTableHandler().table.setRowSelected(e,
!0,!0);break}var f=$("#"+c.tableid);a.recordset.length&&!f.is(":visible")&&$("#"+c.noteid).hide(300,function(){f.show(300)})}},e))}}
function TableBaseHandler(c){function d(){e.Refresh()}function a(a){var c=[];a=a.detail.rows;for(var d=0;d<a.length;++d)c.push(e.records[a[d]-e.table.startIndex]);return c}var e=this;e.accessor=c.accessor;e.records=[];e.formatters=c.formatters;this.table=PLANETCALC.tablegrid(c.table);this.table.listen("request_data",function(a){e.refresh(a.detail.start,a.detail.size,a.detail.sortColumn,a.detail.sortAsc)});this.table.listen("edit",function(a){c.dialog.Edit(e.records[a.detail.row-e.table.startIndex],
function(c){e.accessor.update(a.detail.row,c,d)})});$tbl=$(c.table);$tbl.find(".pc-btn-add").click(function(){c.dialog.New(function(a){e.accessor.insert(a,d)})});$tbl.find(".pc-btn-import").click(function(){c.import.Show(function(a){e.accessor.insertMany(a,d)})});e.table.listen("delete",function(c){e.accessor.delete(c.detail.rows,a(c),d)});e.accessor.select&&this.table.listen("selected",function(c){e.accessor.select(c.detail.rows,a(c))});e.Refresh()}
TableBaseHandler.prototype.getSelected=function(){for(var c=[],d=this.table.selected,a=0;a<d.length;++a)c.push(this.records[d[a]-this.table.startIndex]);return c};TableBaseHandler.prototype.Refresh=function(){this.refresh(this.table.startIndex,this.table.pageSize,this.table.sortColumn,this.table.sortAsc)};TableBaseHandler.prototype.updateRow=function(c,d){var a=PCF.formatRecords([d],this.formatters,0,1)[0];this.records[c]=d;this.table.setRowData(c,a)};
TableBaseHandler.prototype.refresh=function(c,d,a,e){var h=this;h.accessor.getRecords(c,d,a,e,h.formatters,function(a,c,d){h.records=a;h.table.setData(PCF.formatRecords(a,h.formatters,0,a.length),c,d)})};
function InputTableHandler(c){function d(){void 0!==e&&void 0!==h&&PCF.sortRecords(a.data,k,e,h)}this.data=c.init();var a=this,e,h,k;this.update=function(e,h,k){a.data[e]=h;d();k();c.onchange()};this.insert=function(c,d){a.update(a.data.length,c,d)};this.insertMany=function(e,h){for(var k=0;k<e.length;++k)a.data[a.data.length]=e[k];d();h();c.onchange()};this.delete=function(d,e,h){d.sort(function(a,c){return c-a});for(e=0;e<d.length;++e)a.data.splice(d[e],1);h();c.onchange()};this.getRecords=function(c,
d,q,l,f,n){k=f;c>=a.data.length&&(a.data.length<d?c=0:(c=a.data.length-d,c-=c%d));0<=q&&q<f.length&&void 0!==l&&(q!==e||l!==h)&&(PCF.sortRecords(a.data,f,q,l),e=q,h=l);n(a.data.slice(c,c+d),c,a.data.length)}};/*
 modernizr 3.5.0 (Custom Build) | MIT *
 https://modernizr.com/download/?-datauri-flexbox-ligatures-setclasses !*/
!function(c,d,a){function e(a,c){return typeof a===c}function h(a){var c=C.className,d=v._config.classPrefix||"";if(K&&(c=c.baseVal),v._config.enableJSClass)c=c.replace(new RegExp("(^|\\s)"+d+"no-js(\\s|$)"),"$1"+d+"js$2");v._config.enableClasses&&(c+=" "+d+a.join(" "+d),K?C.className.baseVal=c:C.className=c)}function k(a,c){if("object"==typeof a)for(var d in a)A(a,d)&&k(d,a[d]);else{a=a.toLowerCase();d=a.split(".");var e=v[d[0]];if(2==d.length&&(e=e[d[1]]),"undefined"!=typeof e)return v;c="function"==
typeof c?c():c;1==d.length?v[d[0]]=c:(!v[d[0]]||v[d[0]]instanceof Boolean||(v[d[0]]=new Boolean(v[d[0]])),v[d[0]][d[1]]=c);h([(c&&0!=c?"":"no-")+d.join("-")]);v._trigger(a,c)}return v}function m(){return"function"!=typeof d.createElement?d.createElement(arguments[0]):K?d.createElementNS.call(d,"http://www.w3.org/2000/svg",arguments[0]):d.createElement.apply(d,arguments)}function p(a){return a.replace(/([a-z])-([a-z])/g,function(a,c,d){return c+d.toUpperCase()}).replace(/^-/,"")}function q(a,c){return function(){return a.apply(c,
arguments)}}function l(a){return a.replace(/([A-Z])/g,function(a,c){return"-"+c.toLowerCase()}).replace(/^ms-/,"-ms-")}function f(a,c,e,f){var h,k,l,n=m("div");var p=d.body;var q=(p||(p=m(K?"svg":"body"),p.fake=!0),p);if(parseInt(e,10))for(;e--;)p=m("div"),p.id=f?f[e]:"modernizr"+(e+1),n.appendChild(p);return h=m("style"),h.type="text/css",h.id="smodernizr",(q.fake?q:n).appendChild(h),q.appendChild(n),h.styleSheet?h.styleSheet.cssText=a:h.appendChild(d.createTextNode(a)),n.id="modernizr",q.fake&&
(q.style.background="",q.style.overflow="hidden",l=C.style.overflow,C.style.overflow="hidden",C.appendChild(q)),k=c(n,a),q.fake?(q.parentNode.removeChild(q),C.style.overflow=l,C.offsetHeight):n.parentNode.removeChild(n),!!k}function n(d,e){var h=d.length;if("CSS"in c&&"supports"in c.CSS){for(;h--;)if(c.CSS.supports(l(d[h]),e))return!0;return!1}if("CSSSupportsRule"in c){for(var k=[];h--;)k.push("("+l(d[h])+":"+e+")");return k=k.join(" or "),f("@supports ("+k+") { #modernizr { position: absolute; } }",
function(a){if("getComputedStyle"in c){a=getComputedStyle.call(c,a,null);var d=c.console;null!==a?a=a.getPropertyValue("position"):d&&d[d.error?"error":"log"].call(d,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else a=a.currentStyle&&a.currentStyle.position;return"absolute"==a})}return a}function t(c,d,f,h){function k(){u&&(delete B.style,delete B.modElem)}if(h=e(h,"undefined")?!1:h,!e(f,"undefined")){var l=n(c,f);if(!e(l,"undefined"))return l}var q,t;for(l=
["modernizr","tspan","samp"];!B.style&&l.length;){var u=!0;B.modElem=m(l.shift());B.style=B.modElem.style}var v=c.length;for(l=0;v>l;l++)if(q=c[l],t=B.style[q],!!~(""+q).indexOf("-")&&(q=p(q)),B.style[q]!==a){if(h||e(f,"undefined"))return k(),"pfx"==d?q:!0;try{B.style[q]=f}catch(aa){}if(B.style[q]!=t)return k(),"pfx"==d?q:!0}return k(),!1}function w(a,c,d,f,h){var k=a.charAt(0).toUpperCase()+a.slice(1),l=(a+" "+O.join(k+" ")+k).split(" ");if(e(c,"string")||e(c,"undefined"))var m=t(l,c,f,h);else{l=
(a+" "+I.join(k+" ")+k).split(" ");a:{a=l;for(var n in a)if(a[n]in c){c=!1===d?a[n]:(m=c[a[n]],e(m,"function")?q(m,d||c):m);break a}c=!1}m=c}return m}function u(c,d,e){return w(c,a,a,d,e)}var y=[],x=[],z={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(a,c){var d=this;setTimeout(function(){c(d[a])},0)},addTest:function(a,c,d){x.push({name:a,fn:c,options:d})},addAsyncTest:function(a){x.push({name:null,fn:a})}},v=function(){};v.prototype=
z;v=new v;var A,C=d.documentElement,K="svg"===C.nodeName.toLowerCase();!function(){var a={}.hasOwnProperty;A=e(a,"undefined")||e(a.call,"undefined")?function(a,c){return c in a&&e(a.constructor.prototype[c],"undefined")}:function(c,d){return a.call(c,d)}}();z._l={};z.on=function(a,c){this._l[a]||(this._l[a]=[]);this._l[a].push(c);v.hasOwnProperty(a)&&setTimeout(function(){v._trigger(a,v[a])},0)};z._trigger=function(a,c){if(this._l[a]){var d=this._l[a];setTimeout(function(){var a;for(a=0;a<d.length;a++)(0,d[a])(c)},
0);delete this._l[a]}};v._q.push(function(){z.addTest=k});v.addAsyncTest(function(){function a(){var a=new Image;a.onerror=function(){k("datauri",!0);v.datauri=new Boolean(!0);v.datauri.over32kb=!1};a.onload=function(){k("datauri",!0);v.datauri=new Boolean(!0);v.datauri.over32kb=1==a.width&&1==a.height};for(var c="R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";33E3>c.length;)c="\r\n"+c;a.src="data:image/gif;base64,"+c}-1!==navigator.userAgent.indexOf("MSIE 7.")&&setTimeout(function(){k("datauri",
!1)},10);var c=new Image;c.onerror=function(){k("datauri",!1)};c.onload=function(){1==c.width&&1==c.height?a():k("datauri",!1)};c.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="});var O=z._config.usePrefixes?["Moz","O","ms","Webkit"]:[];z._cssomPrefixes=O;var I=z._config.usePrefixes?["moz","o","ms","webkit"]:[];z._domPrefixes=I;var J={elem:m("modernizr")};v._q.push(function(){delete J.elem});var B={style:J.elem.style};v._q.unshift(function(){delete B.style});z.testAllProps=
w;z.testAllProps=u;v.addTest("ligatures",u("fontFeatureSettings",'"liga" 1'));v.addTest("flexbox",u("flexBasis","1px",!0));(function(){var a,c,d,f,h;for(h in x)if(x.hasOwnProperty(h)){if(a=[],c=x[h],c.name&&(a.push(c.name.toLowerCase()),c.options&&c.options.aliases&&c.options.aliases.length))for(d=0;d<c.options.aliases.length;d++)a.push(c.options.aliases[d].toLowerCase());d=e(c.fn,"function")?c.fn():c.fn;for(f=0;f<a.length;f++){var k=a[f];k=k.split(".");1===k.length?v[k[0]]=d:(!v[k[0]]||v[k[0]]instanceof
Boolean||(v[k[0]]=new Boolean(v[k[0]])),v[k[0]][k[1]]=d);y.push((d?"":"no-")+k.join("-"))}}})();h(y);delete z.addTest;delete z.addAsyncTest;for(var L=0;L<v._q.length;L++)v._q[L]();c.Modernizr=v}(window,document);var MaterialIconIds={add:57669,apps:58819,account_circle:59475,art_track:57440,arrow_downward:58843,arrow_drop_down:58821,arrow_upward:58840,person_outline:59391,people_outline:59388,business:60223,check:58826,chevron_left:58827,chevron_right:58828,close:58829,"delete":59506,description:59507,schedule:59573,mode_edit:57940,extension:59515,home:59530,import_export:57539,language:59540,mail:57688,menu:58834,more_vert:58836,settings_applications:59577,code:59503,lightbulb_outline:59663,save:57697,favorite:59517,
search:59574,share:59405,check_circle:59500,show_chart:59105,local_offer:58702,block:57675,perm_data_settings:59556};
