Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: runtime/bin/vmservice/client/deployed/web/packages/web_components/platform.js

Issue 299823004: Upgrade Observatory to Polymer 0.10.x (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /** 1 /**
2 * @license 2 * @license
3 * Copyright (c) 2012-2014 The Polymer Authors. All rights reserved. 3 * Copyright (c) 2012-2014 The Polymer Authors. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 // @version: 0.2.2-ccb7c30 31 // @version: 0.2.2-ccb7c30
32 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e= {bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c .cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c ),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e 9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype ={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[ b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]: void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(g lobal){"use strict";function detectObjectObserve(){function a(a){b=a}if("functio n"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var b=[],c= {},d=[];return Object.observe(c,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id, d.push(1,2),d.length=0,Object.deliverChangeRecords(a),5!==b.length?!1:"add"!=b[0 ].type||"update"!=b[1].type||"delete"!=b[2].type||"splice"!=b[3].type||"splice"! =b[4].type?!1:(Object.unobserve(c,a),Array.unobserve(d,a),!0)}function detectEva l(){if(global.document&&"securityPolicy"in global.document&&!global.document.sec urityPolicy.allowsEval)return!1;try{var a=new Function("","return true;");return a()}catch(b){return!1}}function isIndex(a){return+a===a>>>0}function toNumber(a ){return+a}function isObject(a){return a===Object(a)}function areSameValue(a,b){ return a===b?0!==a||1/a===1/b:numberIsNaN(a)&&numberIsNaN(b)?!0:a!==a&&b!==b}fun ction isPathValid(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]? !1:pathRegExp.test(a))}function Path(a,b){if(b!==constructorIsPrivate)throw Erro r("Use Path.get to retrieve path objects");return""==a.trim()?this:isIndex(a)?(t his.push(a),this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach(fun ction(a){this.push(a)},this),void(hasEval&&this.length&&(this.getValueFrom=this. compiledGetValueFromFn())))}function getPath(a){if(a instanceof Path)return a;nu ll==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=pathCache[a];if(b)return b ;if(!isPathValid(a))return invalidPath;var b=new Path(a,constructorIsPrivate);re turn pathCache[a]=b,b}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLES> b&&a.check_();)b++;return global.testingExposeCycleCount&&(global.dirtyCheckCycl eCount=b),b>0}function objectIsEmpty(a){for(var b in a)return!1;return!0}functio n diffIsEmpty(a){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&object IsEmpty(a.changed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};for( var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=v oid 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b. length&&(e.length=a.length),{added:c,removed:d,changed:e}}function runEOMTasks() {if(!eomTasks.length)return!1;for(var a=0;a<eomTasks.length;a++)eomTasks[a]();re turn eomTasks.length=0,!0}function newObservedObject(){function a(a){b&&b.state_ ===OPENED&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},obser ve:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function( b){d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.uno bserve(c,a),observedObjectCache.push(this)}}}function getObservedObject(a,b,c){v ar d=observedObjectCache.pop()||newObservedObject();return d.open(a),d.observe(b ,c),d}function newObservedSet(){function a(b){if(b){var c=i.indexOf(b);c>=0?(i[c ]=void 0,h.push(b)):h.indexOf(b)<0&&(h.push(b),Object.observe(b,e)),a(Object.get PrototypeOf(b))}}function b(){var b=i===emptyArray?[]:i;i=h,h=b;var c;for(var d in f)c=f[d],c&&c.state_==OPENED&&c.iterateObjects_(a);for(var g=0;g<i.length;g++ ){var j=i[g];j&&Object.unobserve(j,e)}i.length=0}function c(){k=!1,j&&b()}functi on d(){k||(j=!0,k=!0,runEOM(c))}function e(){b();var a;for(var c in f)a=f[c],a&& a.state_==OPENED&&a.check_()}var f=[],g=0,h=[],i=emptyArray,j=!1,k=!1,l={object: void 0,objects:h,open:function(b){f[b.id_]=b,g++,b.iterateObjects_(a)},close:fun ction(a){if(f[a.id_]=void 0,g--,g)return void d();j=!1;for(var b=0;b<h.length;b+ +)Object.unobserve(h[b],e),Observer.unobservedCount++;f.length=0,h.length=0,obse rvedSetCache.push(this)},reset:d};return l}function getObservedSet(a,b){return l astObservedSet&&lastObservedSet.object===b||(lastObservedSet=observedSetCache.po p()||newObservedSet(),lastObservedSet.object=b),lastObservedSet.open(a),lastObse rvedSet}function Observer(){this.state_=UNOPENED,this.callback_=void 0,this.targ et_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=nextObserverI d++}function addToAll(a){Observer._allObserversCount++,collectObservers&&allObse rvers.push(a)}function removeFromAll(){Observer._allObserversCount--}function Ob jectObserver(a){Observer.call(this),this.value_=a,this.oldObject_=void 0}functio n ArrayObserver(a){if(!Array.isArray(a))throw Error("Provided object is not an A rray");ObjectObserver.call(this,a)}function PathObserver(a,b){Observer.call(this ),this.object_=a,this.path_=b instanceof Path?b:getPath(b),this.directObserver_= void 0}function CompoundObserver(){Observer.call(this),this.value_=[],this.direc tObserver_=void 0,this.observed_=[]}function identFn(a){return a}function Observ erTransform(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_=a,this.getValueFn_=b||identFn,this.setValueFn_=c||identFn,thi s.dontPassThroughSet_=d}function notifyFunction(a,b){if("function"==typeof Objec t.observe){var c=Object.getNotifier(a);return function(d,e){var f={object:a,type :d,name:b};2===arguments.length&&(f.oldValue=e),c.notify(f)}}}function diffObjec tFromChangeRecords(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];expec tedRecordTypes[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&(" add"!=g.type?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0 ;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}ret urn{added:d,removed:e,changed:i}}function newSplice(a,b,c){return{index:a,remove d:b,addedCount:c}}function ArraySplice(){}function calcSplices(a,b,c,d,e,f){retu rn arraySplice.calcSplices(a,b,c,d,e,f)}function intersect(a,b,c,d){return c>b|| a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function mergeSplice(a,b,c,d){fo r(var e=newSplice(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,! f){var j=intersect(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount );if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.ad dedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c=i .removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.prot otype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)} e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.index ){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n}} }f||a.push(e)}function createInitialSplices(a,b){for(var c=[],d=0;d<b.length;d++ ){var e=b[d];switch(e.type){case"splice":mergeSplice(c,e.index,e.removed.slice() ,e.addedCount);break;case"add":case"update":case"delete":if(!isIndex(e.name))con tinue;var f=toNumber(e.name);if(0>f)continue;mergeSplice(c,f,[e.oldValue],1);bre ak;default:console.error("Unexpected record type: "+JSON.stringify(e))}}return c }function projectArraySplices(a,b){var c=[];return createInitialSplices(a,b).for Each(function(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!= =a[b.index]&&c.push(b)):void(c=c.concat(calcSplices(a,b.index,b.index+b.addedCou nt,b.removed,0,b.removed.length)))}),c}var hasObserve=detectObjectObserve(),hasE val=detectEval(),numberIsNaN=global.Number.isNaN||function(a){return"number"==ty peof a&&global.isNaN(a)},createObject="__proto__"in{}?function(a){return a}:func tion(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object.ge tOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,Object.getOwn PropertyDescriptor(a,b))}),c},identStart="[$_a-zA-Z]",identPart="[$_a-zA-Z0-9]", ident=identStart+"+"+identPart+"*",elementIndex="(?:[0-9]|[1-9]+[0-9]+)",identOr ElementIndex="(?:"+ident+"|"+elementIndex+")",path="(?:"+identOrElementIndex+")( ?:\\s*\\.\\s*"+identOrElementIndex+")*",pathRegExp=new RegExp("^"+path+"$"),cons tructorIsPrivate={},pathCache={};Path.get=getPath,Path.prototype=createObject({_ _proto__:[],valid:!0,toString:function(){return this.join(".")},getValueFrom:fun ction(a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a} ,iterateObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1 ]]),!isObject(a))return;b(a)}},compiledGetValueFromFn:function(){var a=this.map( function(a){return isIndex(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != nu ll";for(var d=0;d<this.length-1;d++){{this[d]}c+=a[d],b+=" &&\n "+c+" != nul l"}return b+=")\n",c+=a[d],b+=" return "+c+";\nelse\n return undefined;",new F unction("obj",b)},setValueFrom:function(a,b){if(!this.length)return!1;for(var c= 0;c<this.length-1;c++){if(!isObject(a))return!1;a=a[this[c]]}return isObject(a)? (a[this[c]]=b,!0):!1}});var invalidPath=new Path("",constructorIsPrivate);invali dPath.valid=!1,invalidPath.getValueFrom=invalidPath.setValueFrom=function(){};va r MAX_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],runEOM=hasObserve?function(){var a={pin gPong:!0},b=!1;return Object.observe(a,function(){runEOMTasks(),b=!1}),function( c){eomTasks.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(){return funct ion(a){eomTasks.push(a)}}(),observedObjectCache=[],emptyArray=[],observedSetCach e=[],lastObservedSet,UNOPENED=0,OPENED=1,CLOSED=2,RESETTING=3,nextObserverId=1;O bserver.prototype={open:function(a,b){if(this.state_!=UNOPENED)throw Error("Obse rver has already been opened.");return addToAll(this),this.callback_=a,this.targ et_=b,this.state_=OPENED,this.connect_(),this.value_},close:function(){this.stat e_==OPENED&&(removeFromAll(this),this.state_=CLOSED,this.disconnect_(),this.valu e_=void 0,this.callback_=void 0,this.target_=void 0)},deliver:function(){this.st ate_==OPENED&&dirtyCheck(this)},report_:function(a){try{this.callback_.apply(thi s.target_,a)}catch(b){Observer._errorThrownDuringCallback=!0,console.error("Exce ption caught during observer callback: "+(b.stack||b))}},discardChanges:function (){return this.check_(void 0,!0),this.value_}};var collectObservers=!hasObserve, allObservers;Observer._allObserversCount=0,collectObservers&&(allObservers=[]);v ar runningMicrotaskCheckpoint=!1,hasDebugForceFullDelivery=hasObserve&&function( ){try{return eval("%RunMicrotasks()"),!0}catch(ex){return!1}}();global.Platform= global.Platform||{},global.Platform.performMicrotaskCheckpoint=function(){if(!ru nningMicrotaskCheckpoint){if(hasDebugForceFullDelivery)return void eval("%RunMic rotasks()");if(collectObservers){runningMicrotaskCheckpoint=!0;var cycles=0,anyC hanged,toCheck;do{cycles++,toCheck=allObservers,allObservers=[],anyChanged=!1;fo r(var i=0;i<toCheck.length;i++){var observer=toCheck[i];observer.state_==OPENED& &(observer.check_()&&(anyChanged=!0),allObservers.push(observer))}runEOMTasks()& &(anyChanged=!0)}while(MAX_DIRTY_CHECK_CYCLES>cycles&&anyChanged);global.testing ExposeCycleCount&&(global.dirtyCheckCycleCount=cycles),runningMicrotaskCheckpoin t=!1}}},collectObservers&&(global.Platform.clearObservers=function(){allObserver s=[]}),ObjectObserver.prototype=createObject({__proto__:Observer.prototype,array Observe:!1,connect_:function(){hasObserve?this.directObserver_=getObservedObject (this,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_ )},copyObject:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c]; return Array.isArray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(ha sObserve){if(!a)return!1;c={},b=diffObjectFromChangeRecords(this.value_,a,c)}els e c=this.oldObject_,b=diffObjectFromOldObject(this.value_,this.oldObject_);retur n diffIsEmpty(b)?!1:(hasObserve||(this.oldObject_=this.copyObject(this.value_)), this.report_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}]) ,!0)},disconnect_:function(){hasObserve?(this.directObserver_.close(),this.direc tObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==OPENE D&&(hasObserve?this.directObserver_.deliver(!1):dirtyCheck(this))},discardChange s:function(){return this.directObserver_?this.directObserver_.deliver(!0):this.o ldObject_=this.copyObject(this.value_),this.value_}}),ArrayObserver.prototype=cr eateObject({__proto__:ObjectObserver.prototype,arrayObserve:!0,copyObject:functi on(a){return a.slice()},check_:function(a){var b;if(hasObserve){if(!a)return!1;b =projectArraySplices(this.value_,a)}else b=calcSplices(this.value_,0,this.value_ .length,this.oldObject_,0,this.oldObject_.length);return b&&b.length?(hasObserve ||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]),!0):!1}}),Arr ayObserver.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.index ,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prot otype.splice.apply(a,d)})},PathObserver.prototype=createObject({__proto__:Observ er.prototype,connect_:function(){hasObserve&&(this.directObserver_=getObservedSe t(this,this.object_)),this.check_(void 0,!0)},disconnect_:function(){this.value_ =void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObser ver_=void 0)},iterateObjects_:function(a){this.path_.iterateObjects(this.object_ ,a)},check_:function(a,b){var c=this.value_;return this.value_=this.path_.getVal ueFrom(this.object_),b||areSameValue(this.value_,c)?!1:(this.report_([this.value _,c]),!0)},setValue:function(a){this.path_&&this.path_.setValueFrom(this.object_ ,a)}});var observerSentinel={};CompoundObserver.prototype=createObject({__proto_ _:Observer.prototype,connect_:function(){if(this.check_(void 0,!0),hasObserve){f or(var a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==observ erSentinel){b=!0;break}return this.directObserver_?b?void this.directObserver_.r eset():(this.directObserver_.close(),void(this.directObserver_=void 0)):void(b&& (this.directObserver_=getObservedSet(this,a)))}},closeObservers_:function(){for( var a=0;a<this.observed_.length;a+=2)this.observed_[a]===observerSentinel&&this. observed_[a+1].close();this.observed_.length=0},disconnect_:function(){this.valu e_=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObs erver_=void 0),this.closeObservers_()},addPath:function(a,b){if(this.state_!=UNO PENED&&this.state_!=RESETTING)throw Error("Cannot add paths once started.");this .observed_.push(a,b instanceof Path?b:getPath(b))},addObserver:function(a){if(th is.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("Cannot add observers on ce started.");a.open(this.deliver,this),this.observed_.push(observerSentinel,a)} ,startReset:function(){if(this.state_!=OPENED)throw Error("Can only reset while open");this.state_=RESETTING,this.closeObservers_()},finishReset:function(){if(t his.state_!=RESETTING)throw Error("Can only finishReset after startReset");retur n this.state_=OPENED,this.connect_(),this.value_},iterateObjects_:function(a){fo r(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==observerSentine l&&this.observed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d <this.observed_.length;d+=2){var e=this.observed_[d+1],f=this.observed_[d],g=f== =observerSentinel?e.discardChanges():e.getValueFrom(f);b?this.value_[d/2]=g:areS ameValue(g,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]= g)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),ObserverTran sform.prototype={open:function(a,b){return this.callback_=a,this.target_=b,this. value_=this.getValueFn_(this.observable_.open(this.observedCallback_,this)),this .value_},observedCallback_:function(a){if(a=this.getValueFn_(a),!areSameValue(a, this.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.target_,t his.value_,b)}},discardChanges:function(){return this.value_=this.getValueFn_(th is.observable_.discardChanges()),this.value_},deliver:function(){return this.obs ervable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!this.dont PassThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):void 0}, close:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn _=void 0,this.setValueFn_=void 0}};var expectedRecordTypes={add:!0,update:!0,"de lete":!0};Observer.defineComputedProperty=function(a,b,c){var d=notifyFunction(a ,b),e=c.open(function(a,b){e=a,d&&d("update",b)});return Object.defineProperty(a ,b,{get:function(){return c.deliver(),e},set:function(a){return c.setValue(a),a} ,configurable:!0}),{close:function(){c.close(),Object.defineProperty(a,b,{value: e,writable:!0,configurable:!0})}}};var EDIT_LEAVE=0,EDIT_UPDATE=1,EDIT_ADD=2,EDI T_DELETE=3;ArraySplice.prototype={calcEditDistances:function(a,b,c,d,e,f){for(va r g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(a[ b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k ]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b=a.le ngth-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][ c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(EDIT_LEAVE) :(e.push(EDIT_UPDATE),d=g),b--,c--):f==h?(e.push(EDIT_DELETE),b--,d=h):(e.push(E DIT_ADD),c--,d=i)}else e.push(EDIT_DELETE),b--;else e.push(EDIT_ADD),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e) ;if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.s haredSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(v ar j=newSplice(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[newS plice(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistances(this.calcEditD istances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){cas e EDIT_LEAVE:j&&(l.push(j),j=void 0),m++,n++;break;case EDIT_UPDATE:j||(j=newSpl ice(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case EDIT_ADD:j|| (j=newSplice(m,[],0)),j.addedCount++,m++;break;case EDIT_DELETE:j||(j=newSplice( m,[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a ,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSu ffix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b [--e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0 ,a.length,b,0,b.length)},equals:function(a,b){return a===b}};var arraySplice=new ArraySplice;global.Observer=Observer,global.Observer.runEOM_=runEOM,global.Obse rver.hasObjectObserve=hasObserve,global.ArrayObserver=ArrayObserver,global.Array Observer.calculateSplices=function(a,b){return arraySplice.calculateSplices(a,b) },global.ArraySplice=ArraySplice,global.ObjectObserver=ObjectObserver,global.Pat hObserver=PathObserver,global.CompoundObserver=CompoundObserver,global.Path=Path ,global.ObserverTransform=ObserverTransform}("undefined"!=typeof global&&global& &"undefined"!=typeof module&&module?global:this||window),window.Platform=window. Platform||{},window.logFlags=window.logFlags||{},function(a){var b=a.flags||{};l ocation.search.slice(1).split("&").forEach(function(a){a=a.split("="),a[0]&&(b[a [0]]=a[1]||!0)});var c=document.currentScript||document.querySelector('script[sr c*="platform.js"]');if(c)for(var d,e=c.attributes,f=0;f<e.length;f++)d=e[f],"src "!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split(",").forEach(function(a){ window.logFlags[a]=!0}),b.shadow=b.shadow||b.shadowdom||b.polyfill,b.shadow="nat ive"===b.shadow?!1:b.shadow||!HTMLElement.prototype.createShadowRoot,b.shadow&&d ocument.querySelectorAll("script").length>1&&console.warn("platform.js is not th e first script on the page. See http://www.polymer-project.org/docs/start/platfo rm.html#setup for details."),b.register&&(window.CustomElements=window.CustomEle ments||{flags:{}},window.CustomElements.flags.register=b.register),b.imports&&(w indow.HTMLImports=window.HTMLImports||{flags:{}},window.HTMLImports.flags.import s=b.imports),a.flags=b}(Platform),Platform.flags.shadow?(window.ShadowDOMPolyfil l={},function(a){"use strict";function b(a){if(!a)throw new Error("Assertion fai led")}function c(a,b){return L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){return L(b).forEach(function(c){switch(c){case"arguments":case"caller":c ase"length":case"name":case"prototype":case"toString":return}K(a,c,M(b,c))}),a}f unction e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){ var b=a.__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c)return c;var d=f(b), e=t(d);return q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}fun ction i(a){return/^on[a-z]+$/.test(a)}function j(a){return/^\w[a-zA-Z_0-9]*$/.te st(a)}function k(a){return H&&j(a)?new Function("return this.impl."+a):function( ){return this.impl[a]}}function l(a){return H&&j(a)?new Function("v","this.impl. "+a+" = v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Functio n("return this.impl."+a+".apply(this.impl, arguments)"):function(){return this.i mpl[a].apply(this.impl,arguments)}}function n(a,b){try{return Object.getOwnPrope rtyDescriptor(a,b)}catch(c){return O}}function o(b,c,d){for(var e=L(b),f=0;f<e.l ength;f++){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_& &b.polymerBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"funct ion"==typeof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k( g),(o.writable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j ,configurable:o.configurable,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prototype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prototype;b(void 0===E.g et(a)),E.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"constructor",{value:c,configu rable:!0,enumerable:!1,writable:!0}),c.prototype=e}function r(a,b){return E.get( b.prototype)===a}function s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c);retu rn q(b,d,a),d}function t(a){function b(b){a.call(this,b)}var c=Object.create(a.p rototype);return c.constructor=b,b.prototype=c,b}function u(a){return a instance of G.EventTarget||a instanceof G.Event||a instanceof G.Range||a instanceof G.DOM Implementation||a instanceof G.CanvasRenderingContext2D||G.WebGLRenderingContext &&a instanceof G.WebGLRenderingContext}function v(a){return Q&&a instanceof Q||a instanceof S||a instanceof R||a instanceof T||a instanceof U||a instanceof P||a instanceof V||W&&a instanceof W||X&&a instanceof X}function w(a){return null=== a?null:(b(v(a)),a.polymerWrapper_||(a.polymerWrapper_=new(f(a))(a)))}function x( a){return null===a?null:(b(u(a)),a.impl)}function y(a){return a&&u(a)?x(a):a}fun ction z(a){return a&&!u(a)?w(a):a}function A(a,c){null!==c&&(b(v(a)),b(void 0=== c||u(c)),a.polymerWrapper_=c)}function B(a,b,c){K(a.prototype,b,{get:c,configura ble:!0,enumerable:!0})}function C(a,b){B(a,b,function(){return w(this.impl[b])}) }function D(a,b){a.forEach(function(a){b.forEach(function(b){a.prototype[b]=func tion(){var a=z(this);return a[b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null),H=!("securityPolicy"in document)||document.securi tyPolicy.allowsEval;if(H)try{var I=new Function("","return true;");H=I()}catch(J ){H=!1}var K=Object.defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnP ropertyDescriptor;L(window);var N=/Firefox/.test(navigator.userAgent),O={get:fun ction(){},set:function(){},configurable:!0,enumerable:!0},P=window.DOMImplementa tion,Q=window.EventTarget,R=window.Event,S=window.Node,T=window.Window,U=window. Range,V=window.CanvasRenderingContext2D,W=window.WebGLRenderingContext,X=window. SVGElementInstance;a.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWrap Getter=C,a.forwardMethodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a. nativePrototypeTable=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewrap =A,a.unwrap=x,a.unwrapIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window. ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;var a=f.slice(0);f =[];for(var b=0;b<a.length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))}v ar d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.cre ateTextNode(h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}} else d=window.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.Shad owDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=!0)}function c() {p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecords ();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a,t his.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,thi s.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attrib uteNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addT ransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.n odes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observ er===a&&f.removeTransientObservers()}}}function g(a,c,e){for(var f=Object.create (null),g=Object.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j =0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"= ==c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1 ===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||"c hildList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l. attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.o ldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namespa ce"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes& &(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.p reviousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSibl ing=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&&b ()}function h(a){if(this.childList=!!a.childList,this.subtree=!!a.subtree,this.a ttributes="attributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!! a.attributes:!0,this.characterData="characterDataOldValue"in a&&!("characterData "in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue||"attributeFi lter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if( this.characterData=!!a.characterData,this.attributeOldValue=!!a.attributeOldValu e,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){if (null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError ;this.attributeFilter=q.call(a.attributeFilter)}else this.attributeFilter=null}f unction i(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.pu sh(this)}function j(a,b,c){this.observer=a,this.target=b,this.options=c,this.tra nsientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n =new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={observe:function (a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length ;f++)e[f].observer===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c|| (c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.no des_.forEach(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d. observer===this){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:func tion(){var a=this.records_;return this.records_=[],a}},j.prototype={addTransient Observer:function(a){if(a!==this.target){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObservers:function(){ var a=this.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a .length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splic e(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.Mu tationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a,b){this.root=a,this.parent=b}function c(a,b){if(a. treeScope_!==b){a.treeScope_=b;for(var d=a.shadowRoot;d;d=d.olderShadowRoot)d.tr eeScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}}function d(a) {if(a.treeScope_)return a.treeScope_;var c,e=a.parentNode;return c=e?d(e):new b( a,null),a.treeScope_=c}b.prototype={get renderer(){return this.root instanceof a .wrappers.ShadowRoot?a.getRendererForHost(this.root.host):null},contains:functio n(a){for(;a;a=a.parent)if(a===this)return!0;return!1}},a.TreeScope=b,a.getTreeSc ope=d,a.setTreeScope=c}(window.ShadowDOMPolyfill),function(a){"use strict";funct ion b(a){return a instanceof Q.ShadowRoot}function c(a){var b=a.localName;return "content"===b||"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){var b;return a.parentNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.len gth)return h.shift();if(b(f))return j(f)||f.host;var i=a.eventParentsTable.get(f );if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0]}if(g&&c(f)){var l=f.p arentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g),k=0;k<m.length;k++)if( m[k].contains(n))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[];e ;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.push(k)}else d.length||d. push(e);var l=d[d.length-1];g.push({target:l,currentTarget:e}),b(e)&&d.pop(),e=f (e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0;b--)if(!c(a[b]))return a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;){ var m=null;if(g.length){if(c(i)&&(m=h(g),k(j))){var n=g[g.length-1];g.push(n)}}e lse g.push(i);if(l(i,a))return g[g.length-1];b(i)&&g.pop(),j=i,i=f(i,m,e)}a=b(a) ?a.host:a.parentNode}}function j(b){return a.insertionParentTable.get(b)}functio n k(a){return j(a)}function l(a,b){return L(a)===L(b)}function m(a){S.get(a)||(S .set(a,!0),o(P(a),P(a.target)))}function n(a){switch(a.type){case"beforeunload": case"load":case"unload":return!0}return!1}function o(b,c){if(T.get(b))throw new Error("InvalidStateError");T.set(b,!0),a.renderAllPending();var d=g(c);return 2= ==d.length&&d[0].target instanceof Q.Document&&n(b)&&d.shift(),_.set(b,d),p(b,d) &&q(b,d)&&r(b,d),X.set(b,u.NONE),V.delete(b,null),T.delete(b),b.defaultPrevented }function p(a,b){for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].curren tTarget;if(e!==f&&(c=u.CAPTURING_PHASE,!s(b[d],a,c)))return!1}return!0}function q(a,b){var c=u.AT_TARGET;return s(b[0],a,c)}function r(a,b){for(var c,d=a.bubble s,e=1;e<b.length;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=u.AT_TAR GET;else{if(!d||Z.get(a))continue;c=u.BUBBLING_PHASE}if(!s(b[e],a,c))return}}fun ction s(a,b,c){var d=a.target,e=a.currentTarget,f=R.get(e);if(!f)return!0;if("re latedTarget"in b){var g=O(b),h=g.relatedTarget;if(h){if(h instanceof Object&&h.a ddEventListener){var j=P(h),k=i(e,j);if(k===d)return!0}else k=null;W.set(b,k)}}X .set(b,c);var l=b.type,m=!1;U.set(b,d),V.set(b,e);for(var n=0;n<f.length;n++){va r o=f[n];if(o.removed)m=!0;else if(!(o.type!==l||!o.capture&&c===u.CAPTURING_PHA SE||o.capture&&c===u.BUBBLING_PHASE))try{if("function"==typeof o.handler?o.handl er.call(e,b):o.handler.handleEvent(b),Z.get(b))return!1}catch(p){window.onerror? window.onerror(p.message):console.error(p,p.stack)}}if(m){var q=f.slice();f.leng th=0;for(var n=0;n<q.length;n++)q[n].removed||f.push(q[n])}return!Y.get(b)}funct ion t(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}function u(a,b){ if(!(a instanceof ab))return P(y(ab,"Event",a,b)); 32 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e= {bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c .cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c ),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e 9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype ={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[ b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]: void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(g lobal){"use strict";function detectObjectObserve(){function a(a){b=a}if("functio n"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var b=[],c= {},d=[];return Object.observe(c,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id, d.push(1,2),d.length=0,Object.deliverChangeRecords(a),5!==b.length?!1:"add"!=b[0 ].type||"update"!=b[1].type||"delete"!=b[2].type||"splice"!=b[3].type||"splice"! =b[4].type?!1:(Object.unobserve(c,a),Array.unobserve(d,a),!0)}function detectEva l(){if(global.document&&"securityPolicy"in global.document&&!global.document.sec urityPolicy.allowsEval)return!1;try{var a=new Function("","return true;");return a()}catch(b){return!1}}function isIndex(a){return+a===a>>>0}function toNumber(a ){return+a}function isObject(a){return a===Object(a)}function areSameValue(a,b){ return a===b?0!==a||1/a===1/b:numberIsNaN(a)&&numberIsNaN(b)?!0:a!==a&&b!==b}fun ction isPathValid(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]? !1:pathRegExp.test(a))}function Path(a,b){if(b!==constructorIsPrivate)throw Erro r("Use Path.get to retrieve path objects");return""==a.trim()?this:isIndex(a)?(t his.push(a),this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach(fun ction(a){this.push(a)},this),void(hasEval&&this.length&&(this.getValueFrom=this. compiledGetValueFromFn())))}function getPath(a){if(a instanceof Path)return a;nu ll==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=pathCache[a];if(b)return b ;if(!isPathValid(a))return invalidPath;var b=new Path(a,constructorIsPrivate);re turn pathCache[a]=b,b}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLES> b&&a.check_();)b++;return global.testingExposeCycleCount&&(global.dirtyCheckCycl eCount=b),b>0}function objectIsEmpty(a){for(var b in a)return!1;return!0}functio n diffIsEmpty(a){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&object IsEmpty(a.changed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};for( var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=v oid 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b. length&&(e.length=a.length),{added:c,removed:d,changed:e}}function runEOMTasks() {if(!eomTasks.length)return!1;for(var a=0;a<eomTasks.length;a++)eomTasks[a]();re turn eomTasks.length=0,!0}function newObservedObject(){function a(a){b&&b.state_ ===OPENED&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},obser ve:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function( b){d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.uno bserve(c,a),observedObjectCache.push(this)}}}function getObservedObject(a,b,c){v ar d=observedObjectCache.pop()||newObservedObject();return d.open(a),d.observe(b ,c),d}function newObservedSet(){function a(b){if(b){var c=i.indexOf(b);c>=0?(i[c ]=void 0,h.push(b)):h.indexOf(b)<0&&(h.push(b),Object.observe(b,e)),a(Object.get PrototypeOf(b))}}function b(){var b=i===emptyArray?[]:i;i=h,h=b;var c;for(var d in f)c=f[d],c&&c.state_==OPENED&&c.iterateObjects_(a);for(var g=0;g<i.length;g++ ){var j=i[g];j&&Object.unobserve(j,e)}i.length=0}function c(){k=!1,j&&b()}functi on d(){k||(j=!0,k=!0,runEOM(c))}function e(){b();var a;for(var c in f)a=f[c],a&& a.state_==OPENED&&a.check_()}var f=[],g=0,h=[],i=emptyArray,j=!1,k=!1,l={object: void 0,objects:h,open:function(b){f[b.id_]=b,g++,b.iterateObjects_(a)},close:fun ction(a){if(f[a.id_]=void 0,g--,g)return void d();j=!1;for(var b=0;b<h.length;b+ +)Object.unobserve(h[b],e),Observer.unobservedCount++;f.length=0,h.length=0,obse rvedSetCache.push(this)},reset:d};return l}function getObservedSet(a,b){return l astObservedSet&&lastObservedSet.object===b||(lastObservedSet=observedSetCache.po p()||newObservedSet(),lastObservedSet.object=b),lastObservedSet.open(a),lastObse rvedSet}function Observer(){this.state_=UNOPENED,this.callback_=void 0,this.targ et_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=nextObserverI d++}function addToAll(a){Observer._allObserversCount++,collectObservers&&allObse rvers.push(a)}function removeFromAll(){Observer._allObserversCount--}function Ob jectObserver(a){Observer.call(this),this.value_=a,this.oldObject_=void 0}functio n ArrayObserver(a){if(!Array.isArray(a))throw Error("Provided object is not an A rray");ObjectObserver.call(this,a)}function PathObserver(a,b){Observer.call(this ),this.object_=a,this.path_=b instanceof Path?b:getPath(b),this.directObserver_= void 0}function CompoundObserver(){Observer.call(this),this.value_=[],this.direc tObserver_=void 0,this.observed_=[]}function identFn(a){return a}function Observ erTransform(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_=a,this.getValueFn_=b||identFn,this.setValueFn_=c||identFn,thi s.dontPassThroughSet_=d}function notifyFunction(a,b){if("function"==typeof Objec t.observe){var c=Object.getNotifier(a);return function(d,e){var f={object:a,type :d,name:b};2===arguments.length&&(f.oldValue=e),c.notify(f)}}}function diffObjec tFromChangeRecords(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];expec tedRecordTypes[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&(" add"!=g.type?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0 ;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}ret urn{added:d,removed:e,changed:i}}function newSplice(a,b,c){return{index:a,remove d:b,addedCount:c}}function ArraySplice(){}function calcSplices(a,b,c,d,e,f){retu rn arraySplice.calcSplices(a,b,c,d,e,f)}function intersect(a,b,c,d){return c>b|| a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function mergeSplice(a,b,c,d){fo r(var e=newSplice(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,! f){var j=intersect(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount );if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.ad dedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c=i .removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.prot otype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)} e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.index ){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n}} }f||a.push(e)}function createInitialSplices(a,b){for(var c=[],d=0;d<b.length;d++ ){var e=b[d];switch(e.type){case"splice":mergeSplice(c,e.index,e.removed.slice() ,e.addedCount);break;case"add":case"update":case"delete":if(!isIndex(e.name))con tinue;var f=toNumber(e.name);if(0>f)continue;mergeSplice(c,f,[e.oldValue],1);bre ak;default:console.error("Unexpected record type: "+JSON.stringify(e))}}return c }function projectArraySplices(a,b){var c=[];return createInitialSplices(a,b).for Each(function(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!= =a[b.index]&&c.push(b)):void(c=c.concat(calcSplices(a,b.index,b.index+b.addedCou nt,b.removed,0,b.removed.length)))}),c}var hasObserve=detectObjectObserve(),hasE val=detectEval(),numberIsNaN=global.Number.isNaN||function(a){return"number"==ty peof a&&global.isNaN(a)},createObject="__proto__"in{}?function(a){return a}:func tion(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object.ge tOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,Object.getOwn PropertyDescriptor(a,b))}),c},identStart="[$_a-zA-Z]",identPart="[$_a-zA-Z0-9]", ident=identStart+"+"+identPart+"*",elementIndex="(?:[0-9]|[1-9]+[0-9]+)",identOr ElementIndex="(?:"+ident+"|"+elementIndex+")",path="(?:"+identOrElementIndex+")( ?:\\s*\\.\\s*"+identOrElementIndex+")*",pathRegExp=new RegExp("^"+path+"$"),cons tructorIsPrivate={},pathCache={};Path.get=getPath,Path.prototype=createObject({_ _proto__:[],valid:!0,toString:function(){return this.join(".")},getValueFrom:fun ction(a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a} ,iterateObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1 ]]),!isObject(a))return;b(a)}},compiledGetValueFromFn:function(){var a=this.map( function(a){return isIndex(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != nu ll";for(var d=0;d<this.length-1;d++){{this[d]}c+=a[d],b+=" &&\n "+c+" != nul l"}return b+=")\n",c+=a[d],b+=" return "+c+";\nelse\n return undefined;",new F unction("obj",b)},setValueFrom:function(a,b){if(!this.length)return!1;for(var c= 0;c<this.length-1;c++){if(!isObject(a))return!1;a=a[this[c]]}return isObject(a)? (a[this[c]]=b,!0):!1}});var invalidPath=new Path("",constructorIsPrivate);invali dPath.valid=!1,invalidPath.getValueFrom=invalidPath.setValueFrom=function(){};va r MAX_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],runEOM=hasObserve?function(){var a={pin gPong:!0},b=!1;return Object.observe(a,function(){runEOMTasks(),b=!1}),function( c){eomTasks.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(){return funct ion(a){eomTasks.push(a)}}(),observedObjectCache=[],emptyArray=[],observedSetCach e=[],lastObservedSet,UNOPENED=0,OPENED=1,CLOSED=2,RESETTING=3,nextObserverId=1;O bserver.prototype={open:function(a,b){if(this.state_!=UNOPENED)throw Error("Obse rver has already been opened.");return addToAll(this),this.callback_=a,this.targ et_=b,this.state_=OPENED,this.connect_(),this.value_},close:function(){this.stat e_==OPENED&&(removeFromAll(this),this.state_=CLOSED,this.disconnect_(),this.valu e_=void 0,this.callback_=void 0,this.target_=void 0)},deliver:function(){this.st ate_==OPENED&&dirtyCheck(this)},report_:function(a){try{this.callback_.apply(thi s.target_,a)}catch(b){Observer._errorThrownDuringCallback=!0,console.error("Exce ption caught during observer callback: "+(b.stack||b))}},discardChanges:function (){return this.check_(void 0,!0),this.value_}};var collectObservers=!hasObserve, allObservers;Observer._allObserversCount=0,collectObservers&&(allObservers=[]);v ar runningMicrotaskCheckpoint=!1,hasDebugForceFullDelivery=hasObserve&&function( ){try{return eval("%RunMicrotasks()"),!0}catch(ex){return!1}}();global.Platform= global.Platform||{},global.Platform.performMicrotaskCheckpoint=function(){if(!ru nningMicrotaskCheckpoint){if(hasDebugForceFullDelivery)return void eval("%RunMic rotasks()");if(collectObservers){runningMicrotaskCheckpoint=!0;var cycles=0,anyC hanged,toCheck;do{cycles++,toCheck=allObservers,allObservers=[],anyChanged=!1;fo r(var i=0;i<toCheck.length;i++){var observer=toCheck[i];observer.state_==OPENED& &(observer.check_()&&(anyChanged=!0),allObservers.push(observer))}runEOMTasks()& &(anyChanged=!0)}while(MAX_DIRTY_CHECK_CYCLES>cycles&&anyChanged);global.testing ExposeCycleCount&&(global.dirtyCheckCycleCount=cycles),runningMicrotaskCheckpoin t=!1}}},collectObservers&&(global.Platform.clearObservers=function(){allObserver s=[]}),ObjectObserver.prototype=createObject({__proto__:Observer.prototype,array Observe:!1,connect_:function(){hasObserve?this.directObserver_=getObservedObject (this,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_ )},copyObject:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c]; return Array.isArray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(ha sObserve){if(!a)return!1;c={},b=diffObjectFromChangeRecords(this.value_,a,c)}els e c=this.oldObject_,b=diffObjectFromOldObject(this.value_,this.oldObject_);retur n diffIsEmpty(b)?!1:(hasObserve||(this.oldObject_=this.copyObject(this.value_)), this.report_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}]) ,!0)},disconnect_:function(){hasObserve?(this.directObserver_.close(),this.direc tObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==OPENE D&&(hasObserve?this.directObserver_.deliver(!1):dirtyCheck(this))},discardChange s:function(){return this.directObserver_?this.directObserver_.deliver(!0):this.o ldObject_=this.copyObject(this.value_),this.value_}}),ArrayObserver.prototype=cr eateObject({__proto__:ObjectObserver.prototype,arrayObserve:!0,copyObject:functi on(a){return a.slice()},check_:function(a){var b;if(hasObserve){if(!a)return!1;b =projectArraySplices(this.value_,a)}else b=calcSplices(this.value_,0,this.value_ .length,this.oldObject_,0,this.oldObject_.length);return b&&b.length?(hasObserve ||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]),!0):!1}}),Arr ayObserver.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.index ,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prot otype.splice.apply(a,d)})},PathObserver.prototype=createObject({__proto__:Observ er.prototype,connect_:function(){hasObserve&&(this.directObserver_=getObservedSe t(this,this.object_)),this.check_(void 0,!0)},disconnect_:function(){this.value_ =void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObser ver_=void 0)},iterateObjects_:function(a){this.path_.iterateObjects(this.object_ ,a)},check_:function(a,b){var c=this.value_;return this.value_=this.path_.getVal ueFrom(this.object_),b||areSameValue(this.value_,c)?!1:(this.report_([this.value _,c]),!0)},setValue:function(a){this.path_&&this.path_.setValueFrom(this.object_ ,a)}});var observerSentinel={};CompoundObserver.prototype=createObject({__proto_ _:Observer.prototype,connect_:function(){if(this.check_(void 0,!0),hasObserve){f or(var a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==observ erSentinel){b=!0;break}return this.directObserver_?b?void this.directObserver_.r eset():(this.directObserver_.close(),void(this.directObserver_=void 0)):void(b&& (this.directObserver_=getObservedSet(this,a)))}},closeObservers_:function(){for( var a=0;a<this.observed_.length;a+=2)this.observed_[a]===observerSentinel&&this. observed_[a+1].close();this.observed_.length=0},disconnect_:function(){this.valu e_=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObs erver_=void 0),this.closeObservers_()},addPath:function(a,b){if(this.state_!=UNO PENED&&this.state_!=RESETTING)throw Error("Cannot add paths once started.");this .observed_.push(a,b instanceof Path?b:getPath(b))},addObserver:function(a){if(th is.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("Cannot add observers on ce started.");a.open(this.deliver,this),this.observed_.push(observerSentinel,a)} ,startReset:function(){if(this.state_!=OPENED)throw Error("Can only reset while open");this.state_=RESETTING,this.closeObservers_()},finishReset:function(){if(t his.state_!=RESETTING)throw Error("Can only finishReset after startReset");retur n this.state_=OPENED,this.connect_(),this.value_},iterateObjects_:function(a){fo r(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==observerSentine l&&this.observed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d <this.observed_.length;d+=2){var e=this.observed_[d+1],f=this.observed_[d],g=f== =observerSentinel?e.discardChanges():e.getValueFrom(f);b?this.value_[d/2]=g:areS ameValue(g,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]= g)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),ObserverTran sform.prototype={open:function(a,b){return this.callback_=a,this.target_=b,this. value_=this.getValueFn_(this.observable_.open(this.observedCallback_,this)),this .value_},observedCallback_:function(a){if(a=this.getValueFn_(a),!areSameValue(a, this.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.target_,t his.value_,b)}},discardChanges:function(){return this.value_=this.getValueFn_(th is.observable_.discardChanges()),this.value_},deliver:function(){return this.obs ervable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!this.dont PassThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):void 0}, close:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn _=void 0,this.setValueFn_=void 0}};var expectedRecordTypes={add:!0,update:!0,"de lete":!0};Observer.defineComputedProperty=function(a,b,c){var d=notifyFunction(a ,b),e=c.open(function(a,b){e=a,d&&d("update",b)});return Object.defineProperty(a ,b,{get:function(){return c.deliver(),e},set:function(a){return c.setValue(a),a} ,configurable:!0}),{close:function(){c.close(),Object.defineProperty(a,b,{value: e,writable:!0,configurable:!0})}}};var EDIT_LEAVE=0,EDIT_UPDATE=1,EDIT_ADD=2,EDI T_DELETE=3;ArraySplice.prototype={calcEditDistances:function(a,b,c,d,e,f){for(va r g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(a[ b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k ]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b=a.le ngth-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][ c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(EDIT_LEAVE) :(e.push(EDIT_UPDATE),d=g),b--,c--):f==h?(e.push(EDIT_DELETE),b--,d=h):(e.push(E DIT_ADD),c--,d=i)}else e.push(EDIT_DELETE),b--;else e.push(EDIT_ADD),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e) ;if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.s haredSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(v ar j=newSplice(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[newS plice(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistances(this.calcEditD istances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){cas e EDIT_LEAVE:j&&(l.push(j),j=void 0),m++,n++;break;case EDIT_UPDATE:j||(j=newSpl ice(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case EDIT_ADD:j|| (j=newSplice(m,[],0)),j.addedCount++,m++;break;case EDIT_DELETE:j||(j=newSplice( m,[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a ,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSu ffix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b [--e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0 ,a.length,b,0,b.length)},equals:function(a,b){return a===b}};var arraySplice=new ArraySplice;global.Observer=Observer,global.Observer.runEOM_=runEOM,global.Obse rver.hasObjectObserve=hasObserve,global.ArrayObserver=ArrayObserver,global.Array Observer.calculateSplices=function(a,b){return arraySplice.calculateSplices(a,b) },global.ArraySplice=ArraySplice,global.ObjectObserver=ObjectObserver,global.Pat hObserver=PathObserver,global.CompoundObserver=CompoundObserver,global.Path=Path ,global.ObserverTransform=ObserverTransform}("undefined"!=typeof global&&global& &"undefined"!=typeof module&&module?global:this||window),window.Platform=window. Platform||{},window.logFlags=window.logFlags||{},function(a){var b=a.flags||{};l ocation.search.slice(1).split("&").forEach(function(a){a=a.split("="),a[0]&&(b[a [0]]=a[1]||!0)});var c=document.currentScript||document.querySelector('script[sr c*="platform.js"]');if(c)for(var d,e=c.attributes,f=0;f<e.length;f++)d=e[f],"src "!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split(",").forEach(function(a){ window.logFlags[a]=!0}),b.shadow=b.shadow||b.shadowdom||b.polyfill,b.shadow="nat ive"===b.shadow?!1:b.shadow||!HTMLElement.prototype.createShadowRoot,b.shadow&&d ocument.querySelectorAll("script").length>1&&console.warn("platform.js is not th e first script on the page. See http://www.polymer-project.org/docs/start/platfo rm.html#setup for details."),b.register&&(window.CustomElements=window.CustomEle ments||{flags:{}},window.CustomElements.flags.register=b.register),b.imports&&(w indow.HTMLImports=window.HTMLImports||{flags:{}},window.HTMLImports.flags.import s=b.imports),a.flags=b}(Platform),Platform.flags.shadow?(window.ShadowDOMPolyfil l={},function(a){"use strict";function b(a){if(!a)throw new Error("Assertion fai led")}function c(a,b){return L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){return L(b).forEach(function(c){switch(c){case"arguments":case"caller":c ase"length":case"name":case"prototype":case"toString":return}K(a,c,M(b,c))}),a}f unction e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){ var b=a.__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c)return c;var d=f(b), e=t(d);return q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}fun ction i(a){return/^on[a-z]+$/.test(a)}function j(a){return/^\w[a-zA-Z_0-9]*$/.te st(a)}function k(a){return H&&j(a)?new Function("return this.impl."+a):function( ){return this.impl[a]}}function l(a){return H&&j(a)?new Function("v","this.impl. "+a+" = v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Functio n("return this.impl."+a+".apply(this.impl, arguments)"):function(){return this.i mpl[a].apply(this.impl,arguments)}}function n(a,b){try{return Object.getOwnPrope rtyDescriptor(a,b)}catch(c){return O}}function o(b,c,d){for(var e=L(b),f=0;f<e.l ength;f++){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_& &b.polymerBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"funct ion"==typeof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k( g),(o.writable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j ,configurable:o.configurable,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prototype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prototype;b(void 0===E.g et(a)),E.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"constructor",{value:c,configu rable:!0,enumerable:!1,writable:!0}),c.prototype=e}function r(a,b){return E.get( b.prototype)===a}function s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c);retu rn q(b,d,a),d}function t(a){function b(b){a.call(this,b)}var c=Object.create(a.p rototype);return c.constructor=b,b.prototype=c,b}function u(a){return a instance of G.EventTarget||a instanceof G.Event||a instanceof G.Range||a instanceof G.DOM Implementation||a instanceof G.CanvasRenderingContext2D||G.WebGLRenderingContext &&a instanceof G.WebGLRenderingContext}function v(a){return Q&&a instanceof Q||a instanceof S||a instanceof R||a instanceof T||a instanceof U||a instanceof P||a instanceof V||W&&a instanceof W||X&&a instanceof X}function w(a){return null=== a?null:(b(v(a)),a.polymerWrapper_||(a.polymerWrapper_=new(f(a))(a)))}function x( a){return null===a?null:(b(u(a)),a.impl)}function y(a){return a&&u(a)?x(a):a}fun ction z(a){return a&&!u(a)?w(a):a}function A(a,c){null!==c&&(b(v(a)),b(void 0=== c||u(c)),a.polymerWrapper_=c)}function B(a,b,c){K(a.prototype,b,{get:c,configura ble:!0,enumerable:!0})}function C(a,b){B(a,b,function(){return w(this.impl[b])}) }function D(a,b){a.forEach(function(a){b.forEach(function(b){a.prototype[b]=func tion(){var a=z(this);return a[b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null),H=!("securityPolicy"in document)||document.securi tyPolicy.allowsEval;if(H)try{var I=new Function("","return true;");H=I()}catch(J ){H=!1}var K=Object.defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnP ropertyDescriptor;L(window);var N=/Firefox/.test(navigator.userAgent),O={get:fun ction(){},set:function(){},configurable:!0,enumerable:!0},P=window.DOMImplementa tion,Q=window.EventTarget,R=window.Event,S=window.Node,T=window.Window,U=window. Range,V=window.CanvasRenderingContext2D,W=window.WebGLRenderingContext,X=window. SVGElementInstance;a.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWrap Getter=C,a.forwardMethodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a. nativePrototypeTable=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewrap =A,a.unwrap=x,a.unwrapIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window. ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;var a=f.slice(0);f =[];for(var b=0;b<a.length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))}v ar d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.cre ateTextNode(h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}} else d=window.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.Shad owDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=!0)}function c() {p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecords ();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a,t his.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,thi s.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attrib uteNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addT ransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.n odes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observ er===a&&f.removeTransientObservers()}}}function g(a,c,e){for(var f=Object.create (null),g=Object.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j =0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"= ==c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1 ===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||"c hildList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l. attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.o ldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namespa ce"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes& &(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.p reviousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSibl ing=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&&b ()}function h(a){if(this.childList=!!a.childList,this.subtree=!!a.subtree,this.a ttributes="attributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!! a.attributes:!0,this.characterData="characterDataOldValue"in a&&!("characterData "in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue||"attributeFi lter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if( this.characterData=!!a.characterData,this.attributeOldValue=!!a.attributeOldValu e,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){if (null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError ;this.attributeFilter=q.call(a.attributeFilter)}else this.attributeFilter=null}f unction i(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.pu sh(this)}function j(a,b,c){this.observer=a,this.target=b,this.options=c,this.tra nsientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n =new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={observe:function (a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length ;f++)e[f].observer===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c|| (c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.no des_.forEach(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d. observer===this){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:func tion(){var a=this.records_;return this.records_=[],a}},j.prototype={addTransient Observer:function(a){if(a!==this.target){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObservers:function(){ var a=this.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a .length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splic e(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.Mu tationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a,b){this.root=a,this.parent=b}function c(a,b){if(a. treeScope_!==b){a.treeScope_=b;for(var d=a.shadowRoot;d;d=d.olderShadowRoot)d.tr eeScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}}function d(a) {if(a.treeScope_)return a.treeScope_;var c,e=a.parentNode;return c=e?d(e):new b( a,null),a.treeScope_=c}b.prototype={get renderer(){return this.root instanceof a .wrappers.ShadowRoot?a.getRendererForHost(this.root.host):null},contains:functio n(a){for(;a;a=a.parent)if(a===this)return!0;return!1}},a.TreeScope=b,a.getTreeSc ope=d,a.setTreeScope=c}(window.ShadowDOMPolyfill),function(a){"use strict";funct ion b(a){return a instanceof Q.ShadowRoot}function c(a){var b=a.localName;return "content"===b||"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){var b;return a.parentNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.len gth)return h.shift();if(b(f))return j(f)||f.host;var i=a.eventParentsTable.get(f );if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0]}if(g&&c(f)){var l=f.p arentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g),k=0;k<m.length;k++)if( m[k].contains(n))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[];e ;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.push(k)}else d.length||d. push(e);var l=d[d.length-1];g.push({target:l,currentTarget:e}),b(e)&&d.pop(),e=f (e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0;b--)if(!c(a[b]))return a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;){ var m=null;if(g.length){if(c(i)&&(m=h(g),k(j))){var n=g[g.length-1];g.push(n)}}e lse g.push(i);if(l(i,a))return g[g.length-1];b(i)&&g.pop(),j=i,i=f(i,m,e)}a=b(a) ?a.host:a.parentNode}}function j(b){return a.insertionParentTable.get(b)}functio n k(a){return j(a)}function l(a,b){return L(a)===L(b)}function m(a){S.get(a)||(S .set(a,!0),o(P(a),P(a.target)))}function n(a){switch(a.type){case"beforeunload": case"load":case"unload":return!0}return!1}function o(b,c){if(T.get(b))throw new Error("InvalidStateError");T.set(b,!0),a.renderAllPending();var d=g(c);return 2= ==d.length&&d[0].target instanceof Q.Document&&n(b)&&d.shift(),_.set(b,d),p(b,d) &&q(b,d)&&r(b,d),X.set(b,u.NONE),V.delete(b,null),T.delete(b),b.defaultPrevented }function p(a,b){for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].curren tTarget;if(e!==f&&(c=u.CAPTURING_PHASE,!s(b[d],a,c)))return!1}return!0}function q(a,b){var c=u.AT_TARGET;return s(b[0],a,c)}function r(a,b){for(var c,d=a.bubble s,e=1;e<b.length;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=u.AT_TAR GET;else{if(!d||Z.get(a))continue;c=u.BUBBLING_PHASE}if(!s(b[e],a,c))return}}fun ction s(a,b,c){var d=a.target,e=a.currentTarget,f=R.get(e);if(!f)return!0;if("re latedTarget"in b){var g=O(b),h=g.relatedTarget;if(h){if(h instanceof Object&&h.a ddEventListener){var j=P(h),k=i(e,j);if(k===d)return!0}else k=null;W.set(b,k)}}X .set(b,c);var l=b.type,m=!1;U.set(b,d),V.set(b,e);for(var n=0;n<f.length;n++){va r o=f[n];if(o.removed)m=!0;else if(!(o.type!==l||!o.capture&&c===u.CAPTURING_PHA SE||o.capture&&c===u.BUBBLING_PHASE))try{if("function"==typeof o.handler?o.handl er.call(e,b):o.handler.handleEvent(b),Z.get(b))return!1}catch(p){window.onerror? window.onerror(p.message):console.error(p,p.stack)}}if(m){var q=f.slice();f.leng th=0;for(var n=0;n<q.length;n++)q[n].removed||f.push(q[n])}return!Y.get(b)}funct ion t(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}function u(a,b){ if(!(a instanceof ab))return P(y(ab,"Event",a,b));
33 var c=a;return lb||"beforeunload"!==c.type?void(this.impl=c):new z(c)}function v (a){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:O(a.relatedT arget)}}):a}function w(a,b,c){var d=window[a],e=function(b,c){return b instanceo f d?void(this.impl=b):P(y(d,a,b,c))};if(e.prototype=Object.create(b.prototype),c &&M(e.prototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.createEven t(a))}return e}function x(a,b){return function(){arguments[b]=O(arguments[b]);va r c=O(this);c[a].apply(c,arguments)}}function y(a,b,c,d){if(jb)return new a(c,v( d));var e=O(document.createEvent(b)),f=ib[b],g=[c];return Object.keys(f).forEach (function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=O(b)),g.pus h(b)}),e["init"+b].apply(e,g),e}function z(a){u.call(this,a)}function A(a){retur n"function"==typeof a?!0:a&&a.handleEvent}function B(a){switch(a){case"DOMAttrMo dified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMEle mentNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DO MNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0 }return!1}function C(a){this.impl=a}function D(a){return a instanceof Q.ShadowRo ot&&(a=a.host),O(a)}function E(a,b){var c=R.get(a);if(c)for(var d=0;d<c.length;d ++)if(!c[d].removed&&c[d].type===b)return!0;return!1}function F(a,b){for(var c=O (a);c;c=c.parentNode)if(E(P(c),b))return!0;return!1}function G(a){K(a,nb)}functi on H(b,c,d,e){a.renderAllPending();for(var f=P(ob.call(c.impl,d,e)),h=g(f,this), i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}return nul l}function I(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].value|| null}}function J(a){var b=a.slice(2);return function(c){var d=$.get(this);d||(d= Object.create(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e .wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1 ?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)} ;this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var K=a.forwardMethods ToWrapper,L=a.getTreeScope,M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a .wrappers,R=(new WeakMap,new WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap, V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new Weak Map,_=new WeakMap;t.prototype={equals:function(a){return this.handler===a.handle r&&this.type===a.type&&this.capture===a.capture},get removed(){return null===thi s.handler},remove:function(){this.handler=null}};var ab=window.Event;ab.prototyp e.polymerBlackList_={returnValue:!0,keyLocation:!0},u.prototype={get target(){re turn U.get(this)},get currentTarget(){return V.get(this)},get eventPhase(){retur n X.get(this)},get path(){var a=new Q.NodeList,b=_.get(this);if(b){for(var c=0,d =b.length-1,e=L(V.get(this)),f=0;d>=f;f++){var g=b[f].currentTarget,h=L(g);h.con tains(e)&&(f!==d||g instanceof Q.Node)&&(a[c++]=g)}a.length=c}return a},stopProp agation:function(){Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(thi s,!0),Z.set(this,!0)}},N(ab,u,document.createEvent("Event"));var bb=w("UIEvent", u),cb=w("CustomEvent",u),db={get relatedTarget(){var a=W.get(this);return void 0 !==a?a:P(O(this).relatedTarget)}},eb=M({initMouseEvent:x("initMouseEvent",14)},d b),fb=M({initFocusEvent:x("initFocusEvent",5)},db),gb=w("MouseEvent",bb,eb),hb=w ("FocusEvent",bb,fb),ib=Object.create(null),jb=function(){try{new window.FocusEv ent("focus")}catch(a){return!1}return!0}();if(!jb){var kb=function(a,b,c){if(c){ var d=ib[c];b=M(M({},d),b)}ib[a]=b};kb("Event",{bubbles:!1,cancelable:!1}),kb("C ustomEvent",{detail:null},"Event"),kb("UIEvent",{view:null,detail:0},"Event"),kb ("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shif tKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),kb("FocusEvent",{rela tedTarget:null},"UIEvent")}var lb=window.BeforeUnloadEvent;z.prototype=Object.cr eate(u.prototype),M(z.prototype,{get returnValue(){return this.impl.returnValue} ,set returnValue(a){this.impl.returnValue=a}}),lb&&N(lb,z);var mb=window.EventTa rget,nb=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window] .forEach(function(a){var b=a.prototype;nb.forEach(function(a){Object.definePrope rty(b,a+"_",{value:b[a]})})}),C.prototype={addEventListener:function(a,b,c){if(A (b)&&!B(a)){var d=new t(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if (d.equals(e[f]))return}else e=[],R.set(this,e);e.push(d);var g=D(this);g.addEven tListener_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.ge t(this);if(d){for(var e=0,f=!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture=== c&&(e++,d[g].handler===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=D(this);h.rem oveEventListener_(a,m,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set (c,!1),a.renderAllPending();var e;F(this,d)||(e=function(){},this.addEventListen er(d,e,!0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventList ener(d,e,!0)}}},mb&&N(mb,C);var ob=document.elementFromPoint;a.adjustRelatedTarg et=i,a.elementFromPoint=H,a.getEventHandlerGetter=I,a.getEventHandlerSetter=J,a. wrapEventTargetMethods=G,a.wrappers.BeforeUnloadEvent=z,a.wrappers.CustomEvent=c b,a.wrappers.Event=u,a.wrappers.EventTarget=C,a.wrappers.FocusEvent=hb,a.wrapper s.MouseEvent=gb,a.wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"us e strict";function b(a,b){Object.defineProperty(a,b,{enumerable:!1})}function c( ){this.length=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.pro totype[b]=function(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a. wrap;c.prototype={item:function(a){return this[a]}},b(c.prototype,"item"),a.wrap pers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPoly fill),function(a){"use strict";a.wrapHTMLCollection=a.wrapNodeList,a.wrappers.HT MLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill),function(a){"use str ict";function b(a){A(a instanceof w)}function c(a){var b=new y;return b[0]=a,b.l ength=1,b}function d(a,b,c){C(b,"childList",{removedNodes:c,previousSibling:a.pr eviousSibling,nextSibling:a.nextSibling})}function e(a,b){C(a,"childList",{remov edNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment){var f=h(a);O=! 0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentNode_=b;O=!1;for( var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d,f[g].nextSibling_=f[g+1]| |e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibling_=f[f.length-1]),f}var f =c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previousSiblin g_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parentNode;ret urn e&&d(a,e,b),b}function h(a){for(var b=new y,c=0,d=a.firstChild;d;d=d.nextSib ling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){return a}function j(a,b){ I(a,b),a.nodeIsInserted_()}function k(a,b){for(var c=D(b),d=0;d<a.length;d++)j(a [d],c)}function l(a){I(a,new z(a,null))}function m(a){for(var b=0;b<a.length;b++ )l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NODE?a:a.ownerDocument;c! ==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.length){var d=b.ownerDocu ment;if(d!==c[0].ownerDocument)for(var e=0;e<c.length;e++)a.adoptNodeNoRemove(c[ e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return J(b[0]);for(var d=J (a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChild(J(b[e]));re turn d}function q(a){if(void 0!==a.firstChild_)for(var b=a.firstChild_;b;){var c =b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibling_=void 0}a.fir stChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadowRenderer()){for( var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSibling,d=J(b),e=d.parent Node;e&&V.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode_=null,b=c}a.f irstChild_=a.lastChild_=null}else for(var c,f=J(a),g=f.firstChild;g;)c=g.nextSib ling,V.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.invalidateShad owRenderer()}function t(a){for(var b,c=0;c<a.length;c++)b=a[c],b.parentNode.remo veChild(b)}function u(a,b,c){var d;if(d=L(c?P.call(c,a.impl,!1):Q.call(a.impl,!1 )),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u(e,!0,c));if(a ins tanceof N.HTMLTemplateElement)for(var f=d.content,e=a.content.firstChild;e;e=e.n extSibling)f.appendChild(u(e,!0,c))}return d}function v(a,b){if(!b||D(a)!==D(b)) return!1;for(var c=b;c;c=c.parentNode)if(c===a)return!0;return!1}function w(a){A (a instanceof R),x.call(this,a),this.parentNode_=void 0,this.firstChild_=void 0, this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0,thi s.treeScope_=void 0}var x=a.wrappers.EventTarget,y=a.wrappers.NodeList,z=a.TreeS cope,A=a.assert,B=a.defineWrapGetter,C=a.enqueueMutation,D=a.getTreeScope,E=a.is Wrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerWrapper,I=a.setTree Scope,J=a.unwrap,K=a.unwrapIfNeeded,L=a.wrap,M=a.wrapIfNeeded,N=a.wrappers,O=!1, P=document.importNode,Q=window.Node.prototype.cloneNode,R=window.Node,S=window.D ocumentFragment,T=(R.prototype.appendChild,R.prototype.compareDocumentPosition), U=R.prototype.insertBefore,V=R.prototype.removeChild,W=R.prototype.replaceChild, X=/Trident/.test(navigator.userAgent),Y=X?function(a,b){try{V.call(a,b)}catch(c) {if(!(a instanceof S))throw c}}:function(a,b){V.call(a,b)};w.prototype=Object.cr eate(x.prototype),F(w.prototype,{appendChild:function(a){return this.insertBefor e(a,null)},insertBefore:function(a,c){b(a);var d;c?E(c)?d=J(c):(d=c,c=L(d)):(c=n ull,d=null),c&&A(c.parentNode===this);var e,h=c?c.previousSibling:this.lastChild ,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a) ,q(this),U.call(this.impl,J(a),d);else{h||(this.firstChild_=e[0]),c||(this.lastC hild_=e[e.length-1]);var j=d?d.parentNode:this.impl;j?U.call(j,p(this,e),d):o(th is,e)}return C(this,"childList",{addedNodes:e,nextSibling:c,previousSibling:h}), k(e,this),a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e =(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d) throw new Error("NotFoundError")}var f=J(a),g=a.nextSibling,h=a.previousSibling; if(this.invalidateShadowRenderer()){var i=this.firstChild,j=this.lastChild,k=f.p arentNode;k&&Y(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h .nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibling_=a.p arentNode_=void 0}else q(this),Y(this.impl,f);return O||C(this,"childList",{remo vedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a},replaceChild:functi on(a,d){b(a);var e;if(E(d)?e=J(d):(e=d,d=L(e)),d.parentNode!==this)throw new Err or("NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.invalidate ShadowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,this,j,i )),m?(n(this,a),q(this),W.call(this.impl,J(a),e)):(this.firstChild===d&&(this.fi rstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previousSi bling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&W.call(e.parentNode,p(t his,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,prev iousSibling:j}),l(d),k(h,this),d},nodeIsInserted_:function(){for(var a=this.firs tChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return nu ll!==this.firstChild},get parentNode(){return void 0!==this.parentNode_?this.par entNode_:L(this.impl.parentNode)},get firstChild(){return void 0!==this.firstChi ld_?this.firstChild_:L(this.impl.firstChild)},get lastChild(){return void 0!==th is.lastChild_?this.lastChild_:L(this.impl.lastChild)},get nextSibling(){return v oid 0!==this.nextSibling_?this.nextSibling_:L(this.impl.nextSibling)},get previo usSibling(){return void 0!==this.previousSibling_?this.previousSibling_:L(this.i mpl.previousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeTyp e!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=th is.firstChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);r eturn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRen derer()){if(r(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this .appendChild(c)}}else q(this),this.impl.textContent=a;var d=i(this.childNodes);C (this,"childList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes( ){for(var a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.leng th=b,a},cloneNode:function(a){return u(this,a)},contains:function(a){return v(th is,M(a))},compareDocumentPosition:function(a){return T.call(this.impl,K(a))},nor malize:function(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++) b=c[f],b.nodeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:thi s.removeNode(b):(a&&d.length&&(a.data+=e,cleanUpNodes(d)),d=[],e="",a=null,b.chi ldNodes.length&&b.normalize());a&&d.length&&(a.data+=e,t(d))}}),B(w,"ownerDocume nt"),H(R,w,document.createDocumentFragment()),delete w.prototype.querySelector,d elete w.prototype.querySelectorAll,w.prototype=F(Object.create(x.prototype),w.pr ototype),a.cloneNode=u,a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a. nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=w}(window.ShadowDOMPolyf ill),function(a){"use strict";function b(a,c){for(var d,e=a.firstElementChild;e; ){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.nextElementSibling}return nu ll}function c(a,b,d){for(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length+ +]=e),c(e,b,d),e=e.nextElementSibling;return d}var d={querySelector:function(a){ return b(this,a)},querySelectorAll:function(a){return c(this,a,new NodeList)}},e ={getElementsByTagName:function(a){return this.querySelectorAll(a)},getElementsB yClassName:function(a){return this.querySelectorAll("."+a)},getElementsByTagName NS:function(a,b){if("*"===a)return this.getElementsByTagName(b);for(var c=new No deList,d=this.getElementsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI== =a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsIn terface=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){for( ;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(; a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers .NodeList,e={get firstElementChild(){return b(this.firstChild)},get lastElementC hild(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.firs tElementChild;b;b=b.nextElementSibling)a++;return a},get children(){for(var a=ne w d,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.leng th=b,a},remove:function(){var a=this.parentNode;a&&a.removeChild(this)}},f={get nextElementSibling(){return b(this.nextSibling)},get previousElementSibling(){re turn c(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(w indow.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}v ar c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.re gisterWrapper,h=window.CharacterData;b.prototype=Object.create(d.prototype),f(b. prototype,{get textContent(){return this.data},set textContent(a){this.data=a},g et data(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"charac terData",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.creat eTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a) {"use strict";function b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wr appers.CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window. Text;c.prototype=Object.create(d.prototype),e(c.prototype,{splitText:function(a) {a=b(a);var c=this.data;if(a>c.length)throw new Error("IndexSizeError");var d=c. slice(0,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextNode(e);r eturn this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g ,c,document.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),fun ction(a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a ,b,c){k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a){h.call( this,a)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:function(){r eturn this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configurable:!0,en umerable:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers .Node,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod, a.enqueueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.wrappers,o=window .Element,p=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSel ector"].filter(function(a){return o.prototype[a]}),q=p[0],r=o.prototype[q];d.pro totype=Object.create(h.prototype),l(d.prototype,{createShadowRoot:function(){var b=new n.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForH ost(this);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShad owRoot_||null},setAttribute:function(a,d){var e=this.impl.getAttribute(a);this.i mpl.setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=t his.impl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},mat ches:function(a){return r.call(this.impl,a)}}),p.forEach(function(a){"matches"!= =a&&(d.prototype[a]=function(a){return this.matches(a)})}),o.prototype.webkitCre ateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot) ,e(d.prototype,"id"),e(d.prototype,"className","class"),l(d.prototype,f),l(d.pro totype,g),l(d.prototype,i),l(d.prototype,j),m(o,d,document.createElementNS(null, "x")),a.matchesNames=p,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt ;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function c(a){return a.replace(z,b)}function d(a){return a.replace(A,b)}function e(a){for (var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeTy pe){case Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attri butes,j=0;e=i[j];j++)h+=" "+e.name+'="'+c(e.value)+'"';return h+=">",B[f]?h:h+g( a)+"</"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&C[b.localName]?k:d(k);c ase Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.error(a),n ew Error("not implemented")}}function g(a){a instanceof y.HTMLTemplateElement&&( a=a.content);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}fu nction h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument.createEl ement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}function i (a){o.call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML=b;for(va r d,e=w(document.createDocumentFragment());d=c.firstChild;)e.appendChild(d);retu rn x(e)}function k(b){return function(){return a.renderAllPending(),this.impl[b] }}function l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{g et:k(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enu merable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:function() {return a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurab le:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutat ion,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.sn apshotNodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u00A0<>]/g ,B=e(["area","base","br","col","command","embed","hr","img","input","keygen","li nk","meta","param","source","track","wbr"]),C=e(["style","script","xmp","iframe" ,"noembed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.userAgent ),E=window.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.create(o. prototype),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(D& &C[this.localName])return void(this.textContent=a);var b=v(this.childNodes);this .invalidateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this.content ,a):h(this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(this.cont ent,a):this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedN odes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,this.paren tNode)},set outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer( );var c=j(b,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d ;switch(String(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;brea k;case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=t his,d=this.firstChild;break;case"beforeend":c=this,d=null;break;default:return}v ar e=j(c,b);c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientTop","cli entWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight"," scrollWidth"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClie ntRect","getClientRects","scrollIntoView"].forEach(n),u(E,i,document.createEleme nt("b")),a.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.Shad owDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wra ppers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElem ent;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:function(){ var a=this.impl.getContext.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,do cument.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers .HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototy pe=Object.create(c.prototype),d(b.prototype,{get select(){return this.getAttribu te("select")},set select(a){this.setAttribute("select",a)},setAttribute:function (a,b){c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase() &&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a )}function c(a,b){if(!(this instanceof c))throw new TypeError("DOM object constr uctor cannot be called as a function.");var e=f(document.createElement("img"));d .call(this,e),g(e,this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a .wrappers.HTMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLIma geElement;b.prototype=Object.create(d.prototype),e(h,b,document.createElement("i mg")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}( window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)} var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowEl ement;b.prototype=Object.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrapp ers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){if(!a.defaultView)return a;var b=k.get(a);if(!b){for(b=a.implementatio n.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}retu rn b}function c(a){for(var c,d=b(a.ownerDocument),e=h(d.createDocumentFragment() );c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!l){ var b=c(a);j.set(this,i(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.register Wrapper,h=a.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateEle ment;d.prototype=Object.create(e.prototype),f(d.prototype,{get content(){return l?i(this.impl.content):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a )}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;b.p rototype=Object.create(c.prototype),d(e,b,document.createElement("audio")),a.wra ppers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";fun ction b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeEr ror("DOM object constructor cannot be called as a function.");var b=f(document.c reateElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload","auto") ,void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.regis terWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.cr eate(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b.prototype ,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),fun ction(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeE rror("DOM object constructor cannot be called as a function.");var g=i(document. createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0! ==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected",""),g.selected= f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a .unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.prototyp e),f(c.prototype,{get text(){return b(this.textContent)},set text(a){this.textCo ntent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,document.createEl ement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappe rs.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c. call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwr ap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Object.create(c.prototype),d( b.prototype,{add:function(a,b){"object"==typeof b&&(b=f(b)),f(this).add(f(a),b)} ,remove:function(a){return void 0===a?void c.prototype.remove.call(this):("objec t"==typeof a&&(a=f(a)),void f(this).remove(a))},get form(){return g(f(this).form )}}),e(h,b,document.createElement("select")),a.wrappers.HTMLSelectElement=b}(win dow.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a. wrapHTMLCollection,i=window.HTMLTableElement;b.prototype=Object.create(c.prototy pe),d(b.prototype,{get caption(){return g(f(this).caption)},createCaption:functi on(){return g(f(this).createCaption())},get tHead(){return g(f(this).tHead)},cre ateTHead:function(){return g(f(this).createTHead())},createTFoot:function(){retu rn g(f(this).createTFoot())},get tFoot(){return g(f(this).tFoot)},get tBodies(){ return h(f(this).tBodies)},createTBody:function(){return g(f(this).createTBody() )},get rows(){return h(f(this).rows)},insertRow:function(a){return g(f(this).ins ertRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTMLTableElement =b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this ,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLColle ction,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype=Object.cr eate(c.prototype),d(b.prototype,{get rows(){return f(g(this).rows)},insertRow:fu nction(a){return h(g(this).insertRow(a))}}),e(i,b,document.createElement("thead" )),a.wrappers.HTMLTableSectionElement=b}(window.ShadowDOMPolyfill),function(a){" use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin, e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTabl eRowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get cells(){re turn f(g(this).cells)},insertCell:function(a){return h(g(this).insertCell(a))}}) ,e(i,b,document.createElement("tr")),a.wrappers.HTMLTableRowElement=b}(window.Sh adowDOMPolyfill),function(a){"use strict";function b(a){switch(a.localName){case "content":return new c(a);case"shadow":return new e(a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappers.HTMLElemen t,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.r egisterWrapper),h=window.HTMLUnknownElement;b.prototype=Object.create(d.prototyp e),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),function(a) {"use strict";var b=a.registerObject,c="http://www.w3.org/2000/svg",d=document.c reateElementNS(c,"title"),e=b(d),f=Object.getPrototypeOf(e.prototype).constructo r;a.wrappers.SVGElement=f}(window.ShadowDOMPolyfill),function(a){"use strict";fu nction b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap ,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(document.createElemen tNS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Object.getProt otypeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"instanceRoot" in j&&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot)},get anim atedInstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,b,j),a.wrappers .SVGUseElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b( a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a .wrap,g=window.SVGElementInstance;g&&(b.prototype=Object.create(c.prototype),d(b .prototype,{get correspondingElement(){return f(this.impl.correspondingElement)} ,get correspondingUseElement(){return f(this.impl.correspondingUseElement)},get parentNode(){return f(this.impl.parentNode)},get childNodes(){throw new Error("N ot implemented")},get firstChild(){return f(this.impl.firstChild)},get lastChild (){return f(this.impl.lastChild)},get previousSibling(){return f(this.impl.previ ousSibling)},get nextSibling(){return f(this.impl.nextSibling)}}),e(g,b),a.wrapp ers.SVGElementInstance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";fu nction b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.unwrapI fNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,{get canvas(){r eturn g(this.impl.canvas)},drawImage:function(){arguments[0]=f(arguments[0]),thi s.impl.drawImage.apply(this.impl,arguments)},createPattern:function(){return arg uments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl,arguments)}}), d(h,b,document.createElement("canvas").getContext("2d")),a.wrappers.CanvasRender ingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrapIfNeeded,f=a.wrap,g=win dow.WebGLRenderingContext;if(g){c(b.prototype,{get canvas(){return f(this.impl.c anvas)},texImage2D:function(){arguments[5]=e(arguments[5]),this.impl.texImage2D. apply(this.impl,arguments)},texSubImage2D:function(){arguments[6]=e(arguments[6] ),this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/WebKit/.test(navi gator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null}:{};d(g,b,h), a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unwrap,e=a.unwrapI fNeeded,f=a.wrap,g=window.Range;b.prototype={get startContainer(){return f(this. impl.startContainer)},get endContainer(){return f(this.impl.endContainer)},get c ommonAncestorContainer(){return f(this.impl.commonAncestorContainer)},setStart:f unction(a,b){this.impl.setStart(e(a),b)},setEnd:function(a,b){this.impl.setEnd(e (a),b)},setStartBefore:function(a){this.impl.setStartBefore(e(a))},setStartAfter :function(a){this.impl.setStartAfter(e(a))},setEndBefore:function(a){this.impl.s etEndBefore(e(a))},setEndAfter:function(a){this.impl.setEndAfter(e(a))},selectNo de:function(a){this.impl.selectNode(e(a))},selectNodeContents:function(a){this.i mpl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b){return this.im pl.compareBoundaryPoints(a,d(b))},extractContents:function(){return f(this.impl. extractContents())},cloneContents:function(){return f(this.impl.cloneContents()) },insertNode:function(a){this.impl.insertNode(e(a))},surroundContents:function(a ){this.impl.surroundContents(e(a))},cloneRange:function(){return f(this.impl.clo neRange())},isPointInRange:function(a,b){return this.impl.isPointInRange(e(a),b) },comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},intersectsNo de:function(a){return this.impl.intersectsNode(e(a))},toString:function(){return this.impl.toString()}},g.prototype.createContextualFragment&&(b.prototype.creat eContextualFragment=function(a){return f(this.impl.createContextualFragment(a)) 33 var c=a;return lb||"beforeunload"!==c.type?void(this.impl=c):new z(c)}function v (a){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:O(a.relatedT arget)}}):a}function w(a,b,c){var d=window[a],e=function(b,c){return b instanceo f d?void(this.impl=b):P(y(d,a,b,c))};if(e.prototype=Object.create(b.prototype),c &&M(e.prototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.createEven t(a))}return e}function x(a,b){return function(){arguments[b]=O(arguments[b]);va r c=O(this);c[a].apply(c,arguments)}}function y(a,b,c,d){if(jb)return new a(c,v( d));var e=O(document.createEvent(b)),f=ib[b],g=[c];return Object.keys(f).forEach (function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=O(b)),g.pus h(b)}),e["init"+b].apply(e,g),e}function z(a){u.call(this,a)}function A(a){retur n"function"==typeof a?!0:a&&a.handleEvent}function B(a){switch(a){case"DOMAttrMo dified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMEle mentNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DO MNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0 }return!1}function C(a){this.impl=a}function D(a){return a instanceof Q.ShadowRo ot&&(a=a.host),O(a)}function E(a,b){var c=R.get(a);if(c)for(var d=0;d<c.length;d ++)if(!c[d].removed&&c[d].type===b)return!0;return!1}function F(a,b){for(var c=O (a);c;c=c.parentNode)if(E(P(c),b))return!0;return!1}function G(a){K(a,nb)}functi on H(b,c,d,e){a.renderAllPending();for(var f=P(ob.call(c.impl,d,e)),h=g(f,this), i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}return nul l}function I(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].value|| null}}function J(a){var b=a.slice(2);return function(c){var d=$.get(this);d||(d= Object.create(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e .wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1 ?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)} ;this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var K=a.forwardMethods ToWrapper,L=a.getTreeScope,M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a .wrappers,R=(new WeakMap,new WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap, V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new Weak Map,_=new WeakMap;t.prototype={equals:function(a){return this.handler===a.handle r&&this.type===a.type&&this.capture===a.capture},get removed(){return null===thi s.handler},remove:function(){this.handler=null}};var ab=window.Event;ab.prototyp e.polymerBlackList_={returnValue:!0,keyLocation:!0},u.prototype={get target(){re turn U.get(this)},get currentTarget(){return V.get(this)},get eventPhase(){retur n X.get(this)},get path(){var a=new Q.NodeList,b=_.get(this);if(b){for(var c=0,d =b.length-1,e=L(V.get(this)),f=0;d>=f;f++){var g=b[f].currentTarget,h=L(g);h.con tains(e)&&(f!==d||g instanceof Q.Node)&&(a[c++]=g)}a.length=c}return a},stopProp agation:function(){Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(thi s,!0),Z.set(this,!0)}},N(ab,u,document.createEvent("Event"));var bb=w("UIEvent", u),cb=w("CustomEvent",u),db={get relatedTarget(){var a=W.get(this);return void 0 !==a?a:P(O(this).relatedTarget)}},eb=M({initMouseEvent:x("initMouseEvent",14)},d b),fb=M({initFocusEvent:x("initFocusEvent",5)},db),gb=w("MouseEvent",bb,eb),hb=w ("FocusEvent",bb,fb),ib=Object.create(null),jb=function(){try{new window.FocusEv ent("focus")}catch(a){return!1}return!0}();if(!jb){var kb=function(a,b,c){if(c){ var d=ib[c];b=M(M({},d),b)}ib[a]=b};kb("Event",{bubbles:!1,cancelable:!1}),kb("C ustomEvent",{detail:null},"Event"),kb("UIEvent",{view:null,detail:0},"Event"),kb ("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shif tKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),kb("FocusEvent",{rela tedTarget:null},"UIEvent")}var lb=window.BeforeUnloadEvent;z.prototype=Object.cr eate(u.prototype),M(z.prototype,{get returnValue(){return this.impl.returnValue} ,set returnValue(a){this.impl.returnValue=a}}),lb&&N(lb,z);var mb=window.EventTa rget,nb=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window] .forEach(function(a){var b=a.prototype;nb.forEach(function(a){Object.definePrope rty(b,a+"_",{value:b[a]})})}),C.prototype={addEventListener:function(a,b,c){if(A (b)&&!B(a)){var d=new t(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if (d.equals(e[f]))return}else e=[],R.set(this,e);e.push(d);var g=D(this);g.addEven tListener_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.ge t(this);if(d){for(var e=0,f=!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture=== c&&(e++,d[g].handler===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=D(this);h.rem oveEventListener_(a,m,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set (c,!1),a.renderAllPending();var e;F(this,d)||(e=function(){},this.addEventListen er(d,e,!0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventList ener(d,e,!0)}}},mb&&N(mb,C);var ob=document.elementFromPoint;a.adjustRelatedTarg et=i,a.elementFromPoint=H,a.getEventHandlerGetter=I,a.getEventHandlerSetter=J,a. wrapEventTargetMethods=G,a.wrappers.BeforeUnloadEvent=z,a.wrappers.CustomEvent=c b,a.wrappers.Event=u,a.wrappers.EventTarget=C,a.wrappers.FocusEvent=hb,a.wrapper s.MouseEvent=gb,a.wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"us e strict";function b(a,b){Object.defineProperty(a,b,{enumerable:!1})}function c( ){this.length=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.pro totype[b]=function(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a. wrap;c.prototype={item:function(a){return this[a]}},b(c.prototype,"item"),a.wrap pers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPoly fill),function(a){"use strict";a.wrapHTMLCollection=a.wrapNodeList,a.wrappers.HT MLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill),function(a){"use str ict";function b(a){A(a instanceof w)}function c(a){var b=new y;return b[0]=a,b.l ength=1,b}function d(a,b,c){C(b,"childList",{removedNodes:c,previousSibling:a.pr eviousSibling,nextSibling:a.nextSibling})}function e(a,b){C(a,"childList",{remov edNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment){var f=h(a);O=! 0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentNode_=b;O=!1;for( var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d,f[g].nextSibling_=f[g+1]| |e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibling_=f[f.length-1]),f}var f =c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previousSiblin g_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parentNode;ret urn e&&d(a,e,b),b}function h(a){for(var b=new y,c=0,d=a.firstChild;d;d=d.nextSib ling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){return a}function j(a,b){ I(a,b),a.nodeIsInserted_()}function k(a,b){for(var c=D(b),d=0;d<a.length;d++)j(a [d],c)}function l(a){I(a,new z(a,null))}function m(a){for(var b=0;b<a.length;b++ )l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NODE?a:a.ownerDocument;c! ==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.length){var d=b.ownerDocu ment;if(d!==c[0].ownerDocument)for(var e=0;e<c.length;e++)a.adoptNodeNoRemove(c[ e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return J(b[0]);for(var d=J (a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChild(J(b[e]));re turn d}function q(a){if(void 0!==a.firstChild_)for(var b=a.firstChild_;b;){var c =b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibling_=void 0}a.fir stChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadowRenderer()){for( var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSibling,d=J(b),e=d.parent Node;e&&V.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode_=null,b=c}a.f irstChild_=a.lastChild_=null}else for(var c,f=J(a),g=f.firstChild;g;)c=g.nextSib ling,V.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.invalidateShad owRenderer()}function t(a){for(var b,c=0;c<a.length;c++)b=a[c],b.parentNode.remo veChild(b)}function u(a,b,c){var d;if(d=L(c?P.call(c,a.impl,!1):Q.call(a.impl,!1 )),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u(e,!0,c));if(a ins tanceof N.HTMLTemplateElement)for(var f=d.content,e=a.content.firstChild;e;e=e.n extSibling)f.appendChild(u(e,!0,c))}return d}function v(a,b){if(!b||D(a)!==D(b)) return!1;for(var c=b;c;c=c.parentNode)if(c===a)return!0;return!1}function w(a){A (a instanceof R),x.call(this,a),this.parentNode_=void 0,this.firstChild_=void 0, this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0,thi s.treeScope_=void 0}var x=a.wrappers.EventTarget,y=a.wrappers.NodeList,z=a.TreeS cope,A=a.assert,B=a.defineWrapGetter,C=a.enqueueMutation,D=a.getTreeScope,E=a.is Wrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerWrapper,I=a.setTree Scope,J=a.unwrap,K=a.unwrapIfNeeded,L=a.wrap,M=a.wrapIfNeeded,N=a.wrappers,O=!1, P=document.importNode,Q=window.Node.prototype.cloneNode,R=window.Node,S=window.D ocumentFragment,T=(R.prototype.appendChild,R.prototype.compareDocumentPosition), U=R.prototype.insertBefore,V=R.prototype.removeChild,W=R.prototype.replaceChild, X=/Trident/.test(navigator.userAgent),Y=X?function(a,b){try{V.call(a,b)}catch(c) {if(!(a instanceof S))throw c}}:function(a,b){V.call(a,b)};w.prototype=Object.cr eate(x.prototype),F(w.prototype,{appendChild:function(a){return this.insertBefor e(a,null)},insertBefore:function(a,c){b(a);var d;c?E(c)?d=J(c):(d=c,c=L(d)):(c=n ull,d=null),c&&A(c.parentNode===this);var e,h=c?c.previousSibling:this.lastChild ,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a) ,q(this),U.call(this.impl,J(a),d);else{h||(this.firstChild_=e[0]),c||(this.lastC hild_=e[e.length-1]);var j=d?d.parentNode:this.impl;j?U.call(j,p(this,e),d):o(th is,e)}return C(this,"childList",{addedNodes:e,nextSibling:c,previousSibling:h}), k(e,this),a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e =(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d) throw new Error("NotFoundError")}var f=J(a),g=a.nextSibling,h=a.previousSibling; if(this.invalidateShadowRenderer()){var i=this.firstChild,j=this.lastChild,k=f.p arentNode;k&&Y(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h .nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibling_=a.p arentNode_=void 0}else q(this),Y(this.impl,f);return O||C(this,"childList",{remo vedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a},replaceChild:functi on(a,d){b(a);var e;if(E(d)?e=J(d):(e=d,d=L(e)),d.parentNode!==this)throw new Err or("NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.invalidate ShadowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,this,j,i )),m?(n(this,a),q(this),W.call(this.impl,J(a),e)):(this.firstChild===d&&(this.fi rstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previousSi bling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&W.call(e.parentNode,p(t his,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,prev iousSibling:j}),l(d),k(h,this),d},nodeIsInserted_:function(){for(var a=this.firs tChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return nu ll!==this.firstChild},get parentNode(){return void 0!==this.parentNode_?this.par entNode_:L(this.impl.parentNode)},get firstChild(){return void 0!==this.firstChi ld_?this.firstChild_:L(this.impl.firstChild)},get lastChild(){return void 0!==th is.lastChild_?this.lastChild_:L(this.impl.lastChild)},get nextSibling(){return v oid 0!==this.nextSibling_?this.nextSibling_:L(this.impl.nextSibling)},get previo usSibling(){return void 0!==this.previousSibling_?this.previousSibling_:L(this.i mpl.previousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeTyp e!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=th is.firstChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);r eturn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRen derer()){if(r(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this .appendChild(c)}}else q(this),this.impl.textContent=a;var d=i(this.childNodes);C (this,"childList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes( ){for(var a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.leng th=b,a},cloneNode:function(a){return u(this,a)},contains:function(a){return v(th is,M(a))},compareDocumentPosition:function(a){return T.call(this.impl,K(a))},nor malize:function(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++) b=c[f],b.nodeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:thi s.removeNode(b):(a&&d.length&&(a.data+=e,cleanUpNodes(d)),d=[],e="",a=null,b.chi ldNodes.length&&b.normalize());a&&d.length&&(a.data+=e,t(d))}}),B(w,"ownerDocume nt"),H(R,w,document.createDocumentFragment()),delete w.prototype.querySelector,d elete w.prototype.querySelectorAll,w.prototype=F(Object.create(x.prototype),w.pr ototype),a.cloneNode=u,a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a. nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=w}(window.ShadowDOMPolyf ill),function(a){"use strict";function b(a,c){for(var d,e=a.firstElementChild;e; ){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.nextElementSibling}return nu ll}function c(a,b,d){for(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length+ +]=e),c(e,b,d),e=e.nextElementSibling;return d}var d={querySelector:function(a){ return b(this,a)},querySelectorAll:function(a){return c(this,a,new NodeList)}},e ={getElementsByTagName:function(a){return this.querySelectorAll(a)},getElementsB yClassName:function(a){return this.querySelectorAll("."+a)},getElementsByTagName NS:function(a,b){if("*"===a)return this.getElementsByTagName(b);for(var c=new No deList,d=this.getElementsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI== =a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsIn terface=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){for( ;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(; a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers .NodeList,e={get firstElementChild(){return b(this.firstChild)},get lastElementC hild(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.firs tElementChild;b;b=b.nextElementSibling)a++;return a},get children(){for(var a=ne w d,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.leng th=b,a},remove:function(){var a=this.parentNode;a&&a.removeChild(this)}},f={get nextElementSibling(){return b(this.nextSibling)},get previousElementSibling(){re turn c(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(w indow.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}v ar c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.re gisterWrapper,h=window.CharacterData;b.prototype=Object.create(d.prototype),f(b. prototype,{get textContent(){return this.data},set textContent(a){this.data=a},g et data(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"charac terData",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.creat eTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a) {"use strict";function b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wr appers.CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window. Text;c.prototype=Object.create(d.prototype),e(c.prototype,{splitText:function(a) {a=b(a);var c=this.data;if(a>c.length)throw new Error("IndexSizeError");var d=c. slice(0,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextNode(e);r eturn this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g ,c,document.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),fun ction(a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a ,b,c){k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a){h.call( this,a)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:function(){r eturn this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configurable:!0,en umerable:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers .Node,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod, a.enqueueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.wrappers,o=window .Element,p=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSel ector"].filter(function(a){return o.prototype[a]}),q=p[0],r=o.prototype[q];d.pro totype=Object.create(h.prototype),l(d.prototype,{createShadowRoot:function(){var b=new n.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForH ost(this);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShad owRoot_||null},setAttribute:function(a,d){var e=this.impl.getAttribute(a);this.i mpl.setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=t his.impl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},mat ches:function(a){return r.call(this.impl,a)}}),p.forEach(function(a){"matches"!= =a&&(d.prototype[a]=function(a){return this.matches(a)})}),o.prototype.webkitCre ateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot) ,e(d.prototype,"id"),e(d.prototype,"className","class"),l(d.prototype,f),l(d.pro totype,g),l(d.prototype,i),l(d.prototype,j),m(o,d,document.createElementNS(null, "x")),a.matchesNames=p,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt ;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function c(a){return a.replace(z,b)}function d(a){return a.replace(A,b)}function e(a){for (var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeTy pe){case Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attri butes,j=0;e=i[j];j++)h+=" "+e.name+'="'+c(e.value)+'"';return h+=">",B[f]?h:h+g( a)+"</"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&C[b.localName]?k:d(k);c ase Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.error(a),n ew Error("not implemented")}}function g(a){a instanceof y.HTMLTemplateElement&&( a=a.content);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}fu nction h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument.createEl ement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}function i (a){o.call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML=b;for(va r d,e=w(document.createDocumentFragment());d=c.firstChild;)e.appendChild(d);retu rn x(e)}function k(b){return function(){return a.renderAllPending(),this.impl[b] }}function l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{g et:k(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enu merable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:function() {return a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurab le:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutat ion,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.sn apshotNodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u00A0<>]/g ,B=e(["area","base","br","col","command","embed","hr","img","input","keygen","li nk","meta","param","source","track","wbr"]),C=e(["style","script","xmp","iframe" ,"noembed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.userAgent ),E=window.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.create(o. prototype),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(D& &C[this.localName])return void(this.textContent=a);var b=v(this.childNodes);this .invalidateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this.content ,a):h(this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(this.cont ent,a):this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedN odes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,this.paren tNode)},set outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer( );var c=j(b,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d ;switch(String(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;brea k;case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=t his,d=this.firstChild;break;case"beforeend":c=this,d=null;break;default:return}v ar e=j(c,b);c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientTop","cli entWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight"," scrollWidth"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClie ntRect","getClientRects","scrollIntoView"].forEach(n),u(E,i,document.createEleme nt("b")),a.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.Shad owDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wra ppers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElem ent;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:function(){ var a=this.impl.getContext.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,do cument.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers .HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototy pe=Object.create(c.prototype),d(b.prototype,{get select(){return this.getAttribu te("select")},set select(a){this.setAttribute("select",a)},setAttribute:function (a,b){c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase() &&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a )}function c(a,b){if(!(this instanceof c))throw new TypeError("DOM object constr uctor cannot be called as a function.");var e=f(document.createElement("img"));d .call(this,e),g(e,this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a .wrappers.HTMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLIma geElement;b.prototype=Object.create(d.prototype),e(h,b,document.createElement("i mg")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}( window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)} var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowEl ement;b.prototype=Object.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrapp ers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){if(!a.defaultView)return a;var b=k.get(a);if(!b){for(b=a.implementatio n.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}retu rn b}function c(a){for(var c,d=b(a.ownerDocument),e=h(d.createDocumentFragment() );c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!l){ var b=c(a);j.set(this,i(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.register Wrapper,h=a.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateEle ment;d.prototype=Object.create(e.prototype),f(d.prototype,{get content(){return l?i(this.impl.content):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a )}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;b.p rototype=Object.create(c.prototype),d(e,b,document.createElement("audio")),a.wra ppers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";fun ction b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeEr ror("DOM object constructor cannot be called as a function.");var b=f(document.c reateElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload","auto") ,void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.regis terWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.cr eate(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b.prototype ,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),fun ction(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeE rror("DOM object constructor cannot be called as a function.");var g=i(document. createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0! ==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected",""),g.selected= f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a .unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.prototyp e),f(c.prototype,{get text(){return b(this.textContent)},set text(a){this.textCo ntent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,document.createEl ement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappe rs.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c. call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwr ap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Object.create(c.prototype),d( b.prototype,{add:function(a,b){"object"==typeof b&&(b=f(b)),f(this).add(f(a),b)} ,remove:function(a){return void 0===a?void c.prototype.remove.call(this):("objec t"==typeof a&&(a=f(a)),void f(this).remove(a))},get form(){return g(f(this).form )}}),e(h,b,document.createElement("select")),a.wrappers.HTMLSelectElement=b}(win dow.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a. wrapHTMLCollection,i=window.HTMLTableElement;b.prototype=Object.create(c.prototy pe),d(b.prototype,{get caption(){return g(f(this).caption)},createCaption:functi on(){return g(f(this).createCaption())},get tHead(){return g(f(this).tHead)},cre ateTHead:function(){return g(f(this).createTHead())},createTFoot:function(){retu rn g(f(this).createTFoot())},get tFoot(){return g(f(this).tFoot)},get tBodies(){ return h(f(this).tBodies)},createTBody:function(){return g(f(this).createTBody() )},get rows(){return h(f(this).rows)},insertRow:function(a){return g(f(this).ins ertRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTMLTableElement =b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this ,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLColle ction,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype=Object.cr eate(c.prototype),d(b.prototype,{get rows(){return f(g(this).rows)},insertRow:fu nction(a){return h(g(this).insertRow(a))}}),e(i,b,document.createElement("thead" )),a.wrappers.HTMLTableSectionElement=b}(window.ShadowDOMPolyfill),function(a){" use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin, e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTabl eRowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get cells(){re turn f(g(this).cells)},insertCell:function(a){return h(g(this).insertCell(a))}}) ,e(i,b,document.createElement("tr")),a.wrappers.HTMLTableRowElement=b}(window.Sh adowDOMPolyfill),function(a){"use strict";function b(a){switch(a.localName){case "content":return new c(a);case"shadow":return new e(a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappers.HTMLElemen t,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.r egisterWrapper),h=window.HTMLUnknownElement;b.prototype=Object.create(d.prototyp e),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),function(a) {"use strict";var b=a.registerObject,c="http://www.w3.org/2000/svg",d=document.c reateElementNS(c,"title"),e=b(d),f=Object.getPrototypeOf(e.prototype).constructo r;a.wrappers.SVGElement=f}(window.ShadowDOMPolyfill),function(a){"use strict";fu nction b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap ,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(document.createElemen tNS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Object.getProt otypeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"instanceRoot" in j&&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot)},get anim atedInstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,b,j),a.wrappers .SVGUseElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b( a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a .wrap,g=window.SVGElementInstance;g&&(b.prototype=Object.create(c.prototype),d(b .prototype,{get correspondingElement(){return f(this.impl.correspondingElement)} ,get correspondingUseElement(){return f(this.impl.correspondingUseElement)},get parentNode(){return f(this.impl.parentNode)},get childNodes(){throw new Error("N ot implemented")},get firstChild(){return f(this.impl.firstChild)},get lastChild (){return f(this.impl.lastChild)},get previousSibling(){return f(this.impl.previ ousSibling)},get nextSibling(){return f(this.impl.nextSibling)}}),e(g,b),a.wrapp ers.SVGElementInstance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";fu nction b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.unwrapI fNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,{get canvas(){r eturn g(this.impl.canvas)},drawImage:function(){arguments[0]=f(arguments[0]),thi s.impl.drawImage.apply(this.impl,arguments)},createPattern:function(){return arg uments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl,arguments)}}), d(h,b,document.createElement("canvas").getContext("2d")),a.wrappers.CanvasRender ingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrapIfNeeded,f=a.wrap,g=win dow.WebGLRenderingContext;if(g){c(b.prototype,{get canvas(){return f(this.impl.c anvas)},texImage2D:function(){arguments[5]=e(arguments[5]),this.impl.texImage2D. apply(this.impl,arguments)},texSubImage2D:function(){arguments[6]=e(arguments[6] ),this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/WebKit/.test(navi gator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null}:{};d(g,b,h), a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unwrap,e=a.unwrapI fNeeded,f=a.wrap,g=window.Range;b.prototype={get startContainer(){return f(this. impl.startContainer)},get endContainer(){return f(this.impl.endContainer)},get c ommonAncestorContainer(){return f(this.impl.commonAncestorContainer)},setStart:f unction(a,b){this.impl.setStart(e(a),b)},setEnd:function(a,b){this.impl.setEnd(e (a),b)},setStartBefore:function(a){this.impl.setStartBefore(e(a))},setStartAfter :function(a){this.impl.setStartAfter(e(a))},setEndBefore:function(a){this.impl.s etEndBefore(e(a))},setEndAfter:function(a){this.impl.setEndAfter(e(a))},selectNo de:function(a){this.impl.selectNode(e(a))},selectNodeContents:function(a){this.i mpl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b){return this.im pl.compareBoundaryPoints(a,d(b))},extractContents:function(){return f(this.impl. extractContents())},cloneContents:function(){return f(this.impl.cloneContents()) },insertNode:function(a){this.impl.insertNode(e(a))},surroundContents:function(a ){this.impl.surroundContents(e(a))},cloneRange:function(){return f(this.impl.clo neRange())},isPointInRange:function(a,b){return this.impl.isPointInRange(e(a),b) },comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},intersectsNo de:function(a){return this.impl.intersectsNode(e(a))},toString:function(){return this.impl.toString()}},g.prototype.createContextualFragment&&(b.prototype.creat eContextualFragment=function(a){return f(this.impl.createContextualFragment(a))
34 }),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(window.ShadowDOM Polyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNode Interface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.creat eDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f( document.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentFragment=g}( window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=k(a.impl. ownerDocument.createDocumentFragment());c.call(this,b),i(b,this),this.treeScope_ =new d(this,g(a));var e=a.shadowRoot;m.set(this,e),l.set(this,a)}var c=a.wrapper s.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInnerHTML,g=a.getTr eeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unwrap,l=new WeakMap,m=new Wea kMap,n=/[ \t\n\r\f]/;b.prototype=Object.create(c.prototype),h(b.prototype,{get i nnerHTML(){return f(this)},set innerHTML(a){j(this,a),this.invalidateShadowRende rer()},get olderShadowRoot(){return m.get(this)||null},get host(){return l.get(t his)||null},invalidateShadowRenderer:function(){return l.get(this).invalidateSha dowRenderer()},elementFromPoint:function(a,b){return e(this,this.ownerDocument,a ,b)},getElementById:function(a){return n.test(a)?null:this.querySelector('[id="' +a+'"]')}}),a.wrappers.ShadowRoot=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSibling_=a.previousSibling,a.nextSibling_=a.next Sibling,a.parentNode_=a.parentNode}function c(a,c,e){var f=G(a),g=G(c),h=e?G(e): null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChild_=e),e.previousSibling_=e.pre viousSibling;else{a.lastChild_=a.lastChild,a.lastChild===a.firstChild&&(a.firstC hild_=a.firstChild);var i=H(f.lastChild);i&&(i.nextSibling_=i.nextSibling)}f.ins ertBefore(g,h)}function d(a){var c=G(a),d=c.parentNode;if(d){var e=H(d);b(a),a.p reviousSibling&&(a.previousSibling.nextSibling_=a),a.nextSibling&&(a.nextSibling .previousSibling_=a),e.lastChild===a&&(e.lastChild_=a),e.firstChild===a&&(e.firs tChild_=a),d.removeChild(c)}}function e(a,b){g(b).push(a),x(a,b);var c=J.get(a); c||J.set(a,c=[]),c.push(b)}function f(a){I.set(a,[])}function g(a){var b=I.get(a );return b||I.set(a,b=[]),b}function h(a){for(var b=[],c=0,d=a.firstChild;d;d=d. nextSibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChild;d;d=d.nex tSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){var c=b.getA ttribute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z) )return!1;if("*"===c||c===a.localName)return!0;if(!M.test(c))return!1;if(":"===c [0]&&!N.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function k() {for(var a=0;a<P.length;a++){var b=P[a],c=b.parentRenderer;c&&c.dirty||b.render( )}P=[]}function l(){y=null,k()}function m(a){var b=L.get(a);return b||(b=new q(a ),L.set(a,b)),b}function n(a){var b=E(a).root;return b instanceof D?b:null}funct ion o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a,this.childNodes =[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),this.ass ociateNode(a)}function r(a){return a instanceof A}function s(a){return a instanc eof A}function t(a){return a instanceof B}function u(a){return a instanceof B}fu nction v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.shadowRoot;c;c=c. olderShadowRoot)b.push(c);return b}function x(a,b){K.set(a,b)}var y,z=a.wrappers .Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrap pers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.getTreeScope),F=(a.mixin,a.oneOf ),G=a.unwrap,H=a.wrap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=new WeakMap,M= /^[*.:#[a-zA-Z_|]/,N=new RegExp("^:("+["link","visited","target","enabled","disa bled","checked","indeterminate","nth-child","nth-last-child","nth-of-type","nth- last-of-type","first-child","last-child","first-of-type","last-of-type","only-of -type"].join("|")+")"),O=F(window,["requestAnimationFrame","mozRequestAnimationF rame","webkitRequestAnimationFrame","setTimeout"]),P=[],Q=new ArraySplice;Q.equa ls=function(a,b){return G(a.node)===b},p.prototype={append:function(a){var b=new p(a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=h(G(b)),g=a||new WeakMap,i=Q.calculateSplices(e, f),j=0,k=0,l=0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync( g);for(var o=n.removed.length,p=0;o>p;p++){var q=H(f[k++]);g.get(q)||d(q)}for(va r r=n.addedCount,s=f[k]&&H(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,u,s),g.s et(u,!0),t.sync(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={ render:function(a){if(this.dirty){this.invalidateAttributes(),this.treeCompositi on();var b=this.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b),f=c.firstChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this .dirty=!1}},get parentRenderer(){return E(this.host).renderer},invalidate:functi on(){if(!this.dirty){if(this.dirty=!0,P.push(this),y)return;y=window[O](l,0)}},r enderNode:function(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.dirty=!0,e.rende r(b)}else r(c)?this.renderInsertionPoint(a,b,c,d):t(c)?this.renderShadowInsertio nPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTree:function(a,b, c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty,e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f,d)},renderInsertionPoint: function(a,b,c,d){var e=g(c);if(e.length){this.associateNode(c);for(var f=0;f<e. length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoint(a,b,h,d):this.renderAsA nyDomTree(a,b,h,d)}}else this.renderFallbackContent(a,b,c);this.associateNode(c. parentNode)},renderShadowInsertionPoint:function(a,b,c){var d=a.olderShadowRoot; if(d){x(d,c),this.associateNode(c.parentNode);for(var e=d.firstChild;e;e=e.nextS ibling)this.renderNode(d,b,e,!0)}else this.renderFallbackContent(a,b,c)},renderF allbackContent:function(a,b,c){this.associateNode(c),this.associateNode(c.parent Node);for(var d=c.firstChild;d;d=d.nextSibling)this.renderAsAnyDomTree(a,b,d,!1) },invalidateAttributes:function(){this.attributes=Object.create(null)},updateDep endentAttributes:function(a){if(a){var b=this.attributes;/\.\w+/.test(a)&&(b["cl ass"]=!0),/#\w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^\s=\|~\]]+)/g,function(a, c){b[c]=!0})}},dependsOnAttribute:function(a){return this.attributes[a]},distrib ute:function(a,b){var c=this;i(a,s,function(a){f(a),c.updateDependentAttributes( a.getAttribute("select"));for(var d=0;d<b.length;d++){var g=b[d];void 0!==g&&j(g ,a)&&(e(g,a),b[d]=void 0)}})},treeComposition:function(){for(var a=this.host,b=a .shadowRoot,c=[],d=a.firstChild;d;d=d.nextSibling)if(r(d)){var e=g(d);e&&e.lengt h||(e=h(d)),c.push.apply(c,e)}else c.push(d);for(var f,j;b;){if(f=void 0,i(b,u,f unction(a){return f=a,!1}),j=f,this.distribute(b,c),j){var k=b.olderShadowRoot;i f(k){b=k,x(b,j);continue}break}break}},associateNode:function(a){a.impl.polymerS hadowRenderer_=this}},C.prototype.invalidateShadowRenderer=function(){var a=this .impl.polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototype.getDis tributedNodes=function(){return k(),g(this)},B.prototype.nodeIsInserted_=A.proto type.nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b=n(this); b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.eventParents Table=J,a.getRendererForHost=m,a.getShadowTrees=w,a.insertionParentTable=K,a.ren derAllPending=k,a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPolyfill),fu nction(a){"use strict";function b(b){if(window[b]){d(!a.wrappers[b]);var i=funct ion(a){c.call(this,a)};i.prototype=Object.create(c.prototype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,document.createElement(b.slice(4 ,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d=a.assert,e=a.mixin,f=a.re gisterWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetElement"," HTMLInputElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HT MLObjectElement","HTMLOutputElement","HTMLTextAreaElement"];i.forEach(b)}(window .ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}{var c=a. registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.protot ype={get anchorNode(){return f(this.impl.anchorNode)},get focusNode(){return f(t his.impl.focusNode)},addRange:function(a){this.impl.addRange(d(a))},collapse:fun ction(a,b){this.impl.collapse(e(a),b)},containsNode:function(a,b){return this.im pl.containsNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRange At:function(a){return f(this.impl.getRangeAt(a))},removeRange:function(a){this.i mpl.removeRange(d(a))},selectAllChildren:function(a){this.impl.selectAllChildren (e(a))},toString:function(){return this.impl.toString()}},c(window.Selection,b,w indow.getSelection()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a){k.call(this,a),this.treeScope_=new p(this,null)}f unction c(a){var c=document[a];b.prototype[a]=function(){return A(c.apply(this.i mpl,arguments))}}function d(a,b){D.call(b.impl,z(a)),e(a,b)}function e(a,b){a.sh adowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChil d;c;c=c.nextSibling)e(c,b)}function f(a,b){var c=a.olderShadowRoot;c&&b.adoptNod e(c)}function g(a){this.impl=a}function h(a,b){var c=document.implementation[b]; a.prototype[b]=function(){return A(c.apply(this.impl,arguments))}}function i(a,b ){var c=document.implementation[b];a.prototype[b]=function(){return c.apply(this .impl,arguments)}}var j=a.GetElementsByInterface,k=a.wrappers.Node,l=a.ParentNod eInterface,m=a.wrappers.Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot ,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapGetter,s=a.elementFromPoint,t=a.forwa rdMethodsToWrapper,u=a.matchesNames,v=a.mixin,w=a.registerWrapper,x=a.renderAllP ending,y=a.rewrap,z=a.unwrap,A=a.wrap,B=a.wrapEventTargetMethods,C=(a.wrapNodeLi st,new WeakMap);b.prototype=Object.create(k.prototype),r(b,"documentElement"),r( b,"body"),r(b,"head"),["createComment","createDocumentFragment","createElement", "createElementNS","createEvent","createEventNS","createRange","createTextNode"," getElementById"].forEach(c);var D=document.adoptNode,E=document.getSelection;if( v(b.prototype,{adoptNode:function(a){return a.parentNode&&a.parentNode.removeChi ld(a),d(a,this),a},elementFromPoint:function(a,b){return s(this,this,a,b)},impor tNode:function(a,b){return q(a,b,this.impl)},getSelection:function(){return x(), new m(E.call(z(this)))}}),document.registerElement){var F=document.registerEleme nt;b.prototype.registerElement=function(b,c){function d(a){return a?void(this.im pl=a):f?document.createElement(f,b):document.createElement(b)}var e,f;if(void 0! ==c&&(e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.prototype)),a.n ativePrototypeTable.get(e))throw new Error("NotSupportedError");for(var g,h=Obje ct.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.push(h),h=Obj ect.getPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(var j=Objec t.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback","attache dCallback","detachedCallback","attributeChangedCallback"].forEach(function(a){va r b=e[a];b&&(j[a]=function(){A(this)instanceof d||y(this),b.apply(A(this),argume nts)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototype.construc tor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);F.call(z(this) ,b,l);return d},t([window.HTMLDocument||window.Document],["registerElement"])}t( [window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElem ent,window.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains", "getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","insert Before","querySelector","querySelectorAll","removeChild","replaceChild"].concat( u)),t([window.HTMLDocument||window.Document],["adoptNode","importNode","contains ","createComment","createDocumentFragment","createElement","createElementNS","cr eateEvent","createEventNS","createRange","createTextNode","elementFromPoint","ge tElementById","getSelection"]),v(b.prototype,j),v(b.prototype,l),v(b.prototype,n ),v(b.prototype,{get implementation(){var a=C.get(this);return a?a:(a=new g(z(th is).implementation),C.set(this,a),a)}}),w(window.Document,b,document.implementat ion.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument,b),B([win dow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement] ),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g, "hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementation],["creat eDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeN oRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers .EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllP ending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComput edStyle,m=window.getSelection;b.prototype=Object.create(c.prototype),k.prototype .getComputedStyle=function(a,b){return j(this||window).getComputedStyle(i(a),b)} ,k.prototype.getSelection=function(){return j(this||window).getSelection()},dele te window.getComputedStyle,delete window.getSelection,["addEventListener","remov eEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=function(){v ar b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b.prot otype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a),b)},getSele ction:function(){return g(),new d(m.call(h(this)))}}),f(k,b),a.wrappers.Window=b }(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.Dat aTransfer||window.Clipboard,d=c.prototype.setDragImage;c.prototype.setDragImage= function(a,c,e){d.call(this,b(a),c,e)}}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.createEleme nt(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElement", area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body:"HTM LBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasEl ement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content:"HTML ContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:"HTMLM odElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement" ,embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement", form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h 1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlE lement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElemen t",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendElement ",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMa rqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMe taElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOListElem ent",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutpu tElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement" ,progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElement", select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceElement" ,span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",tbody: "HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaE lement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleE lement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElement", video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyNames( a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.ShadowDOMPolyf ill),function(){window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowD OMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"webkitShadowR oot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"));var a=Elem ent.prototype.createShadowRoot;Element.prototype.createShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(this),b},Element.prototype.web kitCreateShadowRoot=Element.prototype.createShadowRoot}(),function(a){function b (a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.textConten t+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.createElement(" style");return b.textContent=a,b}function d(a){var b=c(a);document.head.appendCh ild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else console.warn("s heet not found",b);return b.parentNode.removeChild(b),d}function e(){v.initializ ed=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.createElement("ba se");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.initialized|| e(),document.body.appendChild(v),a(v.contentDocument),document.body.removeChild( v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f(function(a ){a.head.appendChild(g.impl),e=g.sheet.cssRules,b(e)})}else e=d(a),b(e)}}functio n h(a){a&&j().appendChild(document.createTextNode(a))}function i(a,b){var d=c(a) ;d.setAttribute(b,""),d.setAttribute(z,""),document.head.appendChild(d)}function j(){return w||(w=document.createElement("style"),w.setAttribute(z,""),w[z]=!0), w}var k={strictStyling:!1,registry:{},shimStyling:function(a,c,d){var e=this.pre pareRoot(a,c,d),f=this.isTypeExtension(d),g=this.makeScopeSelector(c,f),h=b(e,!0 );h=this.scopeCssText(h,g),a&&(a.shimmedStyle=h),this.addCssToDocument(h,c)},shi mStyle:function(a,b){return this.shimCssText(a.textContent,b)},shimCssText:funct ion(a,b){return a=this.insertDirectives(a),this.scopeCssText(a,b)},makeScopeSele ctor:function(a,b){return a?b?"[is="+a+"]":a:""},isTypeExtension:function(a){ret urn a&&a.indexOf("-")<0},prepareRoot:function(a,b,c){var d=this.registerRoot(a,b ,c);return this.replaceTextInStyles(d.rootStyles,this.insertDirectives),this.rem oveStyles(a,d.rootStyles),this.strictStyling&&this.applyScopeToContent(a,b),d.sc opeStyles},removeStyles:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++ )c.parentNode.removeChild(c)},registerRoot:function(a,b,c){var d=this.registry[b ]={root:a,name:b,extendsName:c},e=this.findStyles(a);d.rootStyles=e,d.scopeStyle s=d.rootStyles;var f=this.registry[d.extendsName];return f&&(d.scopeStyles=f.sco peStyles.concat(d.scopeStyles)),d},findStyles:function(a){if(!a)return[];var b=a .querySelectorAll("style");return Array.prototype.filter.call(b,function(a){retu rn!a.hasAttribute(A)})},applyScopeToContent:function(a,b){a&&(Array.prototype.fo rEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.prot otype.forEach.call(a.querySelectorAll("template"),function(a){this.applyScopeToC ontent(a.content,b)},this))},insertDirectives:function(a){return a=this.insertPo lyfillDirectivesInCssText(a),this.insertPolyfillRulesInCssText(a)},insertPolyfil lDirectivesInCssText:function(a){return a=a.replace(m,function(a,b){return b.sli ce(0,-2)+"{"}),a.replace(n,function(a,b){return b+" {"})},insertPolyfillRulesInC ssText:function(a){return a=a.replace(o,function(a,b){return b.slice(0,-1)}),a.r eplace(p,function(a,b,c,d){var e=a.replace(b,"").replace(c,"");return d+e})},sco peCssText:function(a,b){var c=this.extractUnscopedRulesFromCssText(a);if(a=this. insertPolyfillHostInCssText(a),a=this.convertColonHost(a),a=this.convertColonHos tContext(a),a=this.convertCombinators(a),b){var a,d=this;g(a,function(c){a=d.sco peRules(c,b)})}return a=a+"\n"+c,a.trim()},extractUnscopedRulesFromCssText:funct ion(a){for(var b,c="";b=q.exec(a);)c+=b[1].slice(0,-1)+"\n\n";for(;b=r.exec(a);) c+=b[0].replace(b[2],"").replace(b[1],b[3])+"\n\n";return c},convertColonHost:fu nction(a){return this.convertColonRule(a,cssColonHostRe,this.colonHostPartReplac er)},convertColonHostContext:function(a){return this.convertColonRule(a,cssColon HostContextRe,this.colonHostContextPartReplacer)},convertColonRule:function(a,b, c){return a.replace(b,function(a,b,d,e){if(b=polyfillHostNoCombinator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length;j>i&&(f=g[i]);i++)f=f.trim(),h.push(c(b,f, e));return h.join(",")}return b+e})},colonHostContextPartReplacer:function(a,b,c ){return b.match(s)?this.colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},colo nHostPartReplacer:function(a,b,c){return a+b.replace(s,"")+c},convertCombinators :function(a){for(var b=0;b<combinatorsRe.length;b++)a=a.replace(combinatorsRe[b] ," ");return a},scopeRules:function(a,b){var c="";return a&&Array.prototype.forE ach.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(c+=this.scopeSe lector(a.selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFrom Rule(a)+"\n}\n\n"):a.type===CSSRule.MEDIA_RULE?(c+="@media "+a.media.mediaText+" {\n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n"):a.cssText&&(c+=a.cssText+"\ n\n")},this),c},scopeSelector:function(a,b,c){var d=[],e=a.split(",");return e.f orEach(function(a){a=a.trim(),this.selectorNeedsScoping(a,b)&&(a=c&&!a.match(pol yfillHostNoCombinator)?this.applyStrictSelectorScope(a,b):this.applySimpleSelect orScope(a,b)),d.push(a)},this),d.join(", ")},selectorNeedsScoping:function(a,b){ var c=this.makeScopeMatcher(b);return!a.match(c)},makeScopeMatcher:function(a){r eturn a=a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")"+select orReSuffix,"m")},applySimpleSelectorScope:function(a,b){return a.match(polyfillH ostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyfillHostRe,b+" ")) :b+" "+a},applyStrictSelectorScope:function(a,b){b=b.replace(/\[is=([^\]]*)\]/g, "$1");var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(function(a){var b =d.split(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3" )),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.replace(col onHostContextRe,t).replace(colonHostRe,s)},propertiesFromRule:function(a){var b= a.style.cssText;a.style.content&&!a.style.content.match(/['"]+|attr/)&&(b=b.repl ace(/content:[^;]*;/g,"content: '"+a.style.content+"';"));var c=a.style;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");return b},replaceTextInStyles:func tion(a,b){a&&b&&(a instanceof Array||(a=[a]),Array.prototype.forEach.call(a,func tion(a){a.textContent=b.call(this,a.textContent)},this))},addCssToDocument:funct ion(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n=/polyfill-next-s elector[^}]*content\:[\s]*'([^']*)'[^}]*}([^{]*?){/gim,o=/\/\*\s@polyfill-rule([ ^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)[^}]*(content\:[\s]*'([^']*)'[^ ;]*;)[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim ,r=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*'([^']*)'[^;]*;)[^}]*}/gim,s="-s hadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([ ^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColonHostContextRe=new RegEx p("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",colonHostRe=/\:ho st/gim,colonHostContextRe=/\:host-context/gim,polyfillHostNoCombinator=s+"-no-co mbinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHostContextRe=new RegExp(t, "gim"),combinatorsRe=[/\^\^/g,/\^/g,/\/shadow\//g,/\/shadow-deep\//g,/::shadow/g ,/\/deep\//g];var v=document.createElement("iframe");v.style.display="none";var w,x=navigator.userAgent.match("Chrome"),y="shim-shadowdom",z="shim-shadowdom-css ",A="no-shim";if(window.ShadowDOMPolyfill){h("style { display: none !important; }\n");var B=wrap(document),C=B.querySelector("head");C.insertBefore(j(),C.childN odes[0]),document.addEventListener("DOMContentLoaded",function(){var b=a.urlReso lver;if(window.HTMLImports&&!HTMLImports.useNative){var c="link[rel=stylesheet][ "+y+"]",d="style["+y+"]";HTMLImports.importer.documentPreloadSelectors+=","+c,HT MLImports.importer.importsPreloadSelectors+=","+c,HTMLImports.parser.documentSel ectors=[HTMLImports.parser.documentSelectors,c,d].join(",");var e=HTMLImports.pa rser.parseGeneric;HTMLImports.parser.parseGeneric=function(a){if(!a[z]){var c=a. __importElement||a;if(!c.hasAttribute(y))return void e.call(this,a);a.__resource ?(c=a.ownerDocument.createElement("style"),c.textContent=b.resolveCssText(a.__re source,a.href)):b.resolveStyle(c),c.textContent=k.shimStyle(c),c.removeAttribute (y,""),c.setAttribute(z,""),c[z]=!0,c.parentNode!==C&&(a.parentNode===C?C.replac eChild(c,a):C.appendChild(c)),c.__importParsed=!0,this.markParsingComplete(a)}}; var f=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(a){ return"link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource :f.call(this,a)}}})}a.ShadowCSS=k}(window.Platform)):!function(){window.template Content=window.templateContent||function(a){return a.content},window.wrap=window .unwrap=function(a){return a},addEventListener("DOMContentLoaded",function(){if( CustomElements.useNative===!1){var a=Element.prototype.createShadowRoot;Element. prototype.createShadowRoot=function(){var b=a.call(this);return CustomElements.w atchShadow(this),b}}}),window.templateContent=function(a){if(window.HTMLTemplate Element&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.cont ent&&!a._content){for(var b=document.createDocumentFragment();a.firstChild;)b.ap pendChild(a.firstChild);a._content=b}return a.content||a._content}}(),function(a ){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this),this ._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b )?a:encodeURIComponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&127>b &&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){func tion i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;(a[k- 1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(!u|| !p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}l+=u. toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();e lse{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "+u);b reak a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(this._ scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRelativ e&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"authorit y first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="query" ):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&& (this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative"; continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if( "/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\ \ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{ if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"! =v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this. _host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query ,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){ "file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path"; continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i ("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec ond slash";break;case"authority second slash":if(j="authority ignore slashes","/ "!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break ;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0; x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o== u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test (l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\ n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case" hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host= d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\ n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"= =u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+ ""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||" \r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\ "!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"# "!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"! =u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):". "!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"| "==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query" ):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++} }function h(){this._scheme="",this._schemeData="",this._username="",this._passwo rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment= "",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f ]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k= new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443 ;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e" ]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@" ),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query +this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port: this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host" )},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a," relative path start")) 34 }),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(window.ShadowDOM Polyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNode Interface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.creat eDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f( document.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentFragment=g}( window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=k(a.impl. ownerDocument.createDocumentFragment());c.call(this,b),i(b,this),this.treeScope_ =new d(this,g(a));var e=a.shadowRoot;m.set(this,e),l.set(this,a)}var c=a.wrapper s.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInnerHTML,g=a.getTr eeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unwrap,l=new WeakMap,m=new Wea kMap,n=/[ \t\n\r\f]/;b.prototype=Object.create(c.prototype),h(b.prototype,{get i nnerHTML(){return f(this)},set innerHTML(a){j(this,a),this.invalidateShadowRende rer()},get olderShadowRoot(){return m.get(this)||null},get host(){return l.get(t his)||null},invalidateShadowRenderer:function(){return l.get(this).invalidateSha dowRenderer()},elementFromPoint:function(a,b){return e(this,this.ownerDocument,a ,b)},getElementById:function(a){return n.test(a)?null:this.querySelector('[id="' +a+'"]')}}),a.wrappers.ShadowRoot=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSibling_=a.previousSibling,a.nextSibling_=a.next Sibling,a.parentNode_=a.parentNode}function c(a,c,e){var f=G(a),g=G(c),h=e?G(e): null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChild_=e),e.previousSibling_=e.pre viousSibling;else{a.lastChild_=a.lastChild,a.lastChild===a.firstChild&&(a.firstC hild_=a.firstChild);var i=H(f.lastChild);i&&(i.nextSibling_=i.nextSibling)}f.ins ertBefore(g,h)}function d(a){var c=G(a),d=c.parentNode;if(d){var e=H(d);b(a),a.p reviousSibling&&(a.previousSibling.nextSibling_=a),a.nextSibling&&(a.nextSibling .previousSibling_=a),e.lastChild===a&&(e.lastChild_=a),e.firstChild===a&&(e.firs tChild_=a),d.removeChild(c)}}function e(a,b){g(b).push(a),x(a,b);var c=J.get(a); c||J.set(a,c=[]),c.push(b)}function f(a){I.set(a,[])}function g(a){var b=I.get(a );return b||I.set(a,b=[]),b}function h(a){for(var b=[],c=0,d=a.firstChild;d;d=d. nextSibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChild;d;d=d.nex tSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){var c=b.getA ttribute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z) )return!1;if("*"===c||c===a.localName)return!0;if(!M.test(c))return!1;if(":"===c [0]&&!N.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function k() {for(var a=0;a<P.length;a++){var b=P[a],c=b.parentRenderer;c&&c.dirty||b.render( )}P=[]}function l(){y=null,k()}function m(a){var b=L.get(a);return b||(b=new q(a ),L.set(a,b)),b}function n(a){var b=E(a).root;return b instanceof D?b:null}funct ion o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a,this.childNodes =[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),this.ass ociateNode(a)}function r(a){return a instanceof A}function s(a){return a instanc eof A}function t(a){return a instanceof B}function u(a){return a instanceof B}fu nction v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.shadowRoot;c;c=c. olderShadowRoot)b.push(c);return b}function x(a,b){K.set(a,b)}var y,z=a.wrappers .Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrap pers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.getTreeScope),F=(a.mixin,a.oneOf ),G=a.unwrap,H=a.wrap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=new WeakMap,M= /^[*.:#[a-zA-Z_|]/,N=new RegExp("^:("+["link","visited","target","enabled","disa bled","checked","indeterminate","nth-child","nth-last-child","nth-of-type","nth- last-of-type","first-child","last-child","first-of-type","last-of-type","only-of -type"].join("|")+")"),O=F(window,["requestAnimationFrame","mozRequestAnimationF rame","webkitRequestAnimationFrame","setTimeout"]),P=[],Q=new ArraySplice;Q.equa ls=function(a,b){return G(a.node)===b},p.prototype={append:function(a){var b=new p(a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=h(G(b)),g=a||new WeakMap,i=Q.calculateSplices(e, f),j=0,k=0,l=0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync( g);for(var o=n.removed.length,p=0;o>p;p++){var q=H(f[k++]);g.get(q)||d(q)}for(va r r=n.addedCount,s=f[k]&&H(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,u,s),g.s et(u,!0),t.sync(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={ render:function(a){if(this.dirty){this.invalidateAttributes(),this.treeCompositi on();var b=this.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b),f=c.firstChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this .dirty=!1}},get parentRenderer(){return E(this.host).renderer},invalidate:functi on(){if(!this.dirty){if(this.dirty=!0,P.push(this),y)return;y=window[O](l,0)}},r enderNode:function(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.dirty=!0,e.rende r(b)}else r(c)?this.renderInsertionPoint(a,b,c,d):t(c)?this.renderShadowInsertio nPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTree:function(a,b, c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty,e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f,d)},renderInsertionPoint: function(a,b,c,d){var e=g(c);if(e.length){this.associateNode(c);for(var f=0;f<e. length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoint(a,b,h,d):this.renderAsA nyDomTree(a,b,h,d)}}else this.renderFallbackContent(a,b,c);this.associateNode(c. parentNode)},renderShadowInsertionPoint:function(a,b,c){var d=a.olderShadowRoot; if(d){x(d,c),this.associateNode(c.parentNode);for(var e=d.firstChild;e;e=e.nextS ibling)this.renderNode(d,b,e,!0)}else this.renderFallbackContent(a,b,c)},renderF allbackContent:function(a,b,c){this.associateNode(c),this.associateNode(c.parent Node);for(var d=c.firstChild;d;d=d.nextSibling)this.renderAsAnyDomTree(a,b,d,!1) },invalidateAttributes:function(){this.attributes=Object.create(null)},updateDep endentAttributes:function(a){if(a){var b=this.attributes;/\.\w+/.test(a)&&(b["cl ass"]=!0),/#\w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^\s=\|~\]]+)/g,function(a, c){b[c]=!0})}},dependsOnAttribute:function(a){return this.attributes[a]},distrib ute:function(a,b){var c=this;i(a,s,function(a){f(a),c.updateDependentAttributes( a.getAttribute("select"));for(var d=0;d<b.length;d++){var g=b[d];void 0!==g&&j(g ,a)&&(e(g,a),b[d]=void 0)}})},treeComposition:function(){for(var a=this.host,b=a .shadowRoot,c=[],d=a.firstChild;d;d=d.nextSibling)if(r(d)){var e=g(d);e&&e.lengt h||(e=h(d)),c.push.apply(c,e)}else c.push(d);for(var f,j;b;){if(f=void 0,i(b,u,f unction(a){return f=a,!1}),j=f,this.distribute(b,c),j){var k=b.olderShadowRoot;i f(k){b=k,x(b,j);continue}break}break}},associateNode:function(a){a.impl.polymerS hadowRenderer_=this}},C.prototype.invalidateShadowRenderer=function(){var a=this .impl.polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototype.getDis tributedNodes=function(){return k(),g(this)},B.prototype.nodeIsInserted_=A.proto type.nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b=n(this); b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.eventParents Table=J,a.getRendererForHost=m,a.getShadowTrees=w,a.insertionParentTable=K,a.ren derAllPending=k,a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPolyfill),fu nction(a){"use strict";function b(b){if(window[b]){d(!a.wrappers[b]);var i=funct ion(a){c.call(this,a)};i.prototype=Object.create(c.prototype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,document.createElement(b.slice(4 ,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d=a.assert,e=a.mixin,f=a.re gisterWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetElement"," HTMLInputElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HT MLObjectElement","HTMLOutputElement","HTMLTextAreaElement"];i.forEach(b)}(window .ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}{var c=a. registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.protot ype={get anchorNode(){return f(this.impl.anchorNode)},get focusNode(){return f(t his.impl.focusNode)},addRange:function(a){this.impl.addRange(d(a))},collapse:fun ction(a,b){this.impl.collapse(e(a),b)},containsNode:function(a,b){return this.im pl.containsNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRange At:function(a){return f(this.impl.getRangeAt(a))},removeRange:function(a){this.i mpl.removeRange(d(a))},selectAllChildren:function(a){this.impl.selectAllChildren (e(a))},toString:function(){return this.impl.toString()}},c(window.Selection,b,w indow.getSelection()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a){k.call(this,a),this.treeScope_=new p(this,null)}f unction c(a){var c=document[a];b.prototype[a]=function(){return A(c.apply(this.i mpl,arguments))}}function d(a,b){D.call(b.impl,z(a)),e(a,b)}function e(a,b){a.sh adowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChil d;c;c=c.nextSibling)e(c,b)}function f(a,b){var c=a.olderShadowRoot;c&&b.adoptNod e(c)}function g(a){this.impl=a}function h(a,b){var c=document.implementation[b]; a.prototype[b]=function(){return A(c.apply(this.impl,arguments))}}function i(a,b ){var c=document.implementation[b];a.prototype[b]=function(){return c.apply(this .impl,arguments)}}var j=a.GetElementsByInterface,k=a.wrappers.Node,l=a.ParentNod eInterface,m=a.wrappers.Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot ,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapGetter,s=a.elementFromPoint,t=a.forwa rdMethodsToWrapper,u=a.matchesNames,v=a.mixin,w=a.registerWrapper,x=a.renderAllP ending,y=a.rewrap,z=a.unwrap,A=a.wrap,B=a.wrapEventTargetMethods,C=(a.wrapNodeLi st,new WeakMap);b.prototype=Object.create(k.prototype),r(b,"documentElement"),r( b,"body"),r(b,"head"),["createComment","createDocumentFragment","createElement", "createElementNS","createEvent","createEventNS","createRange","createTextNode"," getElementById"].forEach(c);var D=document.adoptNode,E=document.getSelection;if( v(b.prototype,{adoptNode:function(a){return a.parentNode&&a.parentNode.removeChi ld(a),d(a,this),a},elementFromPoint:function(a,b){return s(this,this,a,b)},impor tNode:function(a,b){return q(a,b,this.impl)},getSelection:function(){return x(), new m(E.call(z(this)))}}),document.registerElement){var F=document.registerEleme nt;b.prototype.registerElement=function(b,c){function d(a){return a?void(this.im pl=a):f?document.createElement(f,b):document.createElement(b)}var e,f;if(void 0! ==c&&(e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.prototype)),a.n ativePrototypeTable.get(e))throw new Error("NotSupportedError");for(var g,h=Obje ct.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.push(h),h=Obj ect.getPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(var j=Objec t.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback","attache dCallback","detachedCallback","attributeChangedCallback"].forEach(function(a){va r b=e[a];b&&(j[a]=function(){A(this)instanceof d||y(this),b.apply(A(this),argume nts)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototype.construc tor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);F.call(z(this) ,b,l);return d},t([window.HTMLDocument||window.Document],["registerElement"])}t( [window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElem ent,window.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains", "getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","insert Before","querySelector","querySelectorAll","removeChild","replaceChild"].concat( u)),t([window.HTMLDocument||window.Document],["adoptNode","importNode","contains ","createComment","createDocumentFragment","createElement","createElementNS","cr eateEvent","createEventNS","createRange","createTextNode","elementFromPoint","ge tElementById","getSelection"]),v(b.prototype,j),v(b.prototype,l),v(b.prototype,n ),v(b.prototype,{get implementation(){var a=C.get(this);return a?a:(a=new g(z(th is).implementation),C.set(this,a),a)}}),w(window.Document,b,document.implementat ion.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument,b),B([win dow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement] ),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g, "hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementation],["creat eDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeN oRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers .EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllP ending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComput edStyle,m=window.getSelection;b.prototype=Object.create(c.prototype),k.prototype .getComputedStyle=function(a,b){return j(this||window).getComputedStyle(i(a),b)} ,k.prototype.getSelection=function(){return j(this||window).getSelection()},dele te window.getComputedStyle,delete window.getSelection,["addEventListener","remov eEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=function(){v ar b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b.prot otype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a),b)},getSele ction:function(){return g(),new d(m.call(h(this)))}}),f(k,b),a.wrappers.Window=b }(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.Dat aTransfer||window.Clipboard,d=c.prototype.setDragImage;c.prototype.setDragImage= function(a,c,e){d.call(this,b(a),c,e)}}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.createEleme nt(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElement", area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body:"HTM LBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasEl ement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content:"HTML ContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:"HTMLM odElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement" ,embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement", form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h 1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlE lement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElemen t",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendElement ",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMa rqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMe taElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOListElem ent",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutpu tElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement" ,progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElement", select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceElement" ,span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",tbody: "HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaE lement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleE lement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElement", video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyNames( a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.ShadowDOMPolyf ill),function(){window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowD OMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"webkitShadowR oot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"));var a=Elem ent.prototype.createShadowRoot;Element.prototype.createShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(this),b},Element.prototype.web kitCreateShadowRoot=Element.prototype.createShadowRoot}(),function(a){function b (a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.textConten t+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.createElement(" style");return b.textContent=a,b}function d(a){var b=c(a);document.head.appendCh ild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else console.warn("s heet not found",b);return b.parentNode.removeChild(b),d}function e(){v.initializ ed=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.createElement("ba se");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.initialized|| e(),document.body.appendChild(v),a(v.contentDocument),document.body.removeChild( v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f(function(a ){a.head.appendChild(g.impl),e=g.sheet.cssRules,b(e)})}else e=d(a),b(e)}}functio n h(a){a&&j().appendChild(document.createTextNode(a))}function i(a,b){var d=c(a) ;d.setAttribute(b,""),d.setAttribute(z,""),document.head.appendChild(d)}function j(){return w||(w=document.createElement("style"),w.setAttribute(z,""),w[z]=!0), w}var k={strictStyling:!1,registry:{},shimStyling:function(a,c,d){var e=this.pre pareRoot(a,c,d),f=this.isTypeExtension(d),g=this.makeScopeSelector(c,f),h=b(e,!0 );h=this.scopeCssText(h,g),a&&(a.shimmedStyle=h),this.addCssToDocument(h,c)},shi mStyle:function(a,b){return this.shimCssText(a.textContent,b)},shimCssText:funct ion(a,b){return a=this.insertDirectives(a),this.scopeCssText(a,b)},makeScopeSele ctor:function(a,b){return a?b?"[is="+a+"]":a:""},isTypeExtension:function(a){ret urn a&&a.indexOf("-")<0},prepareRoot:function(a,b,c){var d=this.registerRoot(a,b ,c);return this.replaceTextInStyles(d.rootStyles,this.insertDirectives),this.rem oveStyles(a,d.rootStyles),this.strictStyling&&this.applyScopeToContent(a,b),d.sc opeStyles},removeStyles:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++ )c.parentNode.removeChild(c)},registerRoot:function(a,b,c){var d=this.registry[b ]={root:a,name:b,extendsName:c},e=this.findStyles(a);d.rootStyles=e,d.scopeStyle s=d.rootStyles;var f=this.registry[d.extendsName];return f&&(d.scopeStyles=f.sco peStyles.concat(d.scopeStyles)),d},findStyles:function(a){if(!a)return[];var b=a .querySelectorAll("style");return Array.prototype.filter.call(b,function(a){retu rn!a.hasAttribute(A)})},applyScopeToContent:function(a,b){a&&(Array.prototype.fo rEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.prot otype.forEach.call(a.querySelectorAll("template"),function(a){this.applyScopeToC ontent(a.content,b)},this))},insertDirectives:function(a){return a=this.insertPo lyfillDirectivesInCssText(a),this.insertPolyfillRulesInCssText(a)},insertPolyfil lDirectivesInCssText:function(a){return a=a.replace(m,function(a,b){return b.sli ce(0,-2)+"{"}),a.replace(n,function(a,b){return b+" {"})},insertPolyfillRulesInC ssText:function(a){return a=a.replace(o,function(a,b){return b.slice(0,-1)}),a.r eplace(p,function(a,b,c,d){var e=a.replace(b,"").replace(c,"");return d+e})},sco peCssText:function(a,b){var c=this.extractUnscopedRulesFromCssText(a);if(a=this. insertPolyfillHostInCssText(a),a=this.convertColonHost(a),a=this.convertColonHos tContext(a),a=this.convertCombinators(a),b){var a,d=this;g(a,function(c){a=d.sco peRules(c,b)})}return a=a+"\n"+c,a.trim()},extractUnscopedRulesFromCssText:funct ion(a){for(var b,c="";b=q.exec(a);)c+=b[1].slice(0,-1)+"\n\n";for(;b=r.exec(a);) c+=b[0].replace(b[2],"").replace(b[1],b[3])+"\n\n";return c},convertColonHost:fu nction(a){return this.convertColonRule(a,cssColonHostRe,this.colonHostPartReplac er)},convertColonHostContext:function(a){return this.convertColonRule(a,cssColon HostContextRe,this.colonHostContextPartReplacer)},convertColonRule:function(a,b, c){return a.replace(b,function(a,b,d,e){if(b=polyfillHostNoCombinator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length;j>i&&(f=g[i]);i++)f=f.trim(),h.push(c(b,f, e));return h.join(",")}return b+e})},colonHostContextPartReplacer:function(a,b,c ){return b.match(s)?this.colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},colo nHostPartReplacer:function(a,b,c){return a+b.replace(s,"")+c},convertCombinators :function(a){for(var b=0;b<combinatorsRe.length;b++)a=a.replace(combinatorsRe[b] ," ");return a},scopeRules:function(a,b){var c="";return a&&Array.prototype.forE ach.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(c+=this.scopeSe lector(a.selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFrom Rule(a)+"\n}\n\n"):a.type===CSSRule.MEDIA_RULE?(c+="@media "+a.media.mediaText+" {\n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n"):a.cssText&&(c+=a.cssText+"\ n\n")},this),c},scopeSelector:function(a,b,c){var d=[],e=a.split(",");return e.f orEach(function(a){a=a.trim(),this.selectorNeedsScoping(a,b)&&(a=c&&!a.match(pol yfillHostNoCombinator)?this.applyStrictSelectorScope(a,b):this.applySimpleSelect orScope(a,b)),d.push(a)},this),d.join(", ")},selectorNeedsScoping:function(a,b){ var c=this.makeScopeMatcher(b);return!a.match(c)},makeScopeMatcher:function(a){r eturn a=a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")"+select orReSuffix,"m")},applySimpleSelectorScope:function(a,b){return a.match(polyfillH ostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyfillHostRe,b+" ")) :b+" "+a},applyStrictSelectorScope:function(a,b){b=b.replace(/\[is=([^\]]*)\]/g, "$1");var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(function(a){var b =d.split(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3" )),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.replace(col onHostContextRe,t).replace(colonHostRe,s)},propertiesFromRule:function(a){var b= a.style.cssText;a.style.content&&!a.style.content.match(/['"]+|attr/)&&(b=b.repl ace(/content:[^;]*;/g,"content: '"+a.style.content+"';"));var c=a.style;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");return b},replaceTextInStyles:func tion(a,b){a&&b&&(a instanceof Array||(a=[a]),Array.prototype.forEach.call(a,func tion(a){a.textContent=b.call(this,a.textContent)},this))},addCssToDocument:funct ion(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n=/polyfill-next-s elector[^}]*content\:[\s]*'([^']*)'[^}]*}([^{]*?){/gim,o=/\/\*\s@polyfill-rule([ ^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)[^}]*(content\:[\s]*'([^']*)'[^ ;]*;)[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim ,r=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*'([^']*)'[^;]*;)[^}]*}/gim,s="-s hadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([ ^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColonHostContextRe=new RegEx p("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",colonHostRe=/\:ho st/gim,colonHostContextRe=/\:host-context/gim,polyfillHostNoCombinator=s+"-no-co mbinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHostContextRe=new RegExp(t, "gim"),combinatorsRe=[/\^\^/g,/\^/g,/\/shadow\//g,/\/shadow-deep\//g,/::shadow/g ,/\/deep\//g];var v=document.createElement("iframe");v.style.display="none";var w,x=navigator.userAgent.match("Chrome"),y="shim-shadowdom",z="shim-shadowdom-css ",A="no-shim";if(window.ShadowDOMPolyfill){h("style { display: none !important; }\n");var B=wrap(document),C=B.querySelector("head");C.insertBefore(j(),C.childN odes[0]),document.addEventListener("DOMContentLoaded",function(){var b=a.urlReso lver;if(window.HTMLImports&&!HTMLImports.useNative){var c="link[rel=stylesheet][ "+y+"]",d="style["+y+"]";HTMLImports.importer.documentPreloadSelectors+=","+c,HT MLImports.importer.importsPreloadSelectors+=","+c,HTMLImports.parser.documentSel ectors=[HTMLImports.parser.documentSelectors,c,d].join(",");var e=HTMLImports.pa rser.parseGeneric;HTMLImports.parser.parseGeneric=function(a){if(!a[z]){var c=a. __importElement||a;if(!c.hasAttribute(y))return void e.call(this,a);a.__resource ?(c=a.ownerDocument.createElement("style"),c.textContent=b.resolveCssText(a.__re source,a.href)):b.resolveStyle(c),c.textContent=k.shimStyle(c),c.removeAttribute (y,""),c.setAttribute(z,""),c[z]=!0,c.parentNode!==C&&(a.parentNode===C?C.replac eChild(c,a):C.appendChild(c)),c.__importParsed=!0,this.markParsingComplete(a)}}; var f=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(a){ return"link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource :f.call(this,a)}}})}a.ShadowCSS=k}(window.Platform)):!function(){window.template Content=window.templateContent||function(a){return a.content},window.wrap=window .unwrap=function(a){return a},addEventListener("DOMContentLoaded",function(){if( CustomElements.useNative===!1){var a=Element.prototype.createShadowRoot;Element. prototype.createShadowRoot=function(){var b=a.call(this);return CustomElements.w atchShadow(this),b}}}),window.templateContent=function(a){if(window.HTMLTemplate Element&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.cont ent&&!a._content){for(var b=document.createDocumentFragment();a.firstChild;)b.ap pendChild(a.firstChild);a._content=b}return a.content||a._content}}(),function(a ){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this),this ._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b )?a:encodeURIComponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&127>b &&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){func tion i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;(a[k- 1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(!u|| !p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}l+=u. toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();e lse{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "+u);b reak a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(this._ scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRelativ e&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"authorit y first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="query" ):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&& (this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative"; continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if( "/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\ \ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{ if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"! =v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this. _host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query ,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){ "file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path"; continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i ("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec ond slash";break;case"authority second slash":if(j="authority ignore slashes","/ "!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break ;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0; x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o== u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test (l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\ n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case" hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host= d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\ n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"= =u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+ ""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||" \r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\ "!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"# "!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"! =u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):". "!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"| "==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query" ):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++} }function h(){this._scheme="",this._schemeData="",this._username="",this._passwo rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment= "",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f ]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k= new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443 ;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e" ]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@" ),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query +this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port: this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host" )},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a," relative path start"))
35 },get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._q uery},set search(a){!this._isInvalid&&this._isRelative&&(this._query="?","?"==a[ 0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){return this._isInvalid||! this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){this._isInval id||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fragment"))}},a .URL=i}}(window),function(a){function b(a){for(var b=a||{},d=1;d<arguments.lengt h;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}functi on c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b)}} Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Array .prototype.slice.call(arguments,1);return function(){var d=c.slice();return d.pu sh.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a){"u se strict";function b(a,b,c){var d="string"==typeof a?document.createElement(a): a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenList. prototype.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,argument s[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a<arguments.length;a ++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=function(a,b){1==arg uments.length&&(b=!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList. prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b)};var e=function( ){return Array.prototype.slice.call(this)},f=window.NamedNodeMap||window.MozName dAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e,HTMLCollection.pr ototype.array=e,!window.performance){var g=Date.now();window.performance={now:fu nction(){return Date.now()-g}}}window.requestAnimationFrame||(window.requestAnim ationFrame=function(){var a=window.webkitRequestAnimationFrame||window.mozReques tAnimationFrame;return a?function(b){return a(function(){b(performance.now())})} :function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimationFrame ||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimationFra me||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var h=[],i= function(){h.push(arguments)};window.Polymer=i,a.deliverDeclarations=function(){ return a.deliverDeclarations=function(){throw"Possible attempt to load Polymer t wice"},h},window.addEventListener("DOMContentLoaded",function(){window.Polymer== =i&&(window.Polymer=function(){console.error('You tried to use polymer without l oading it first. To load polymer, <link rel="import" href="components/polymer/po lymer.html">')})}),a.createDOM=b}(window.Platform),window.templateContent=window .templateContent||function(a){return a.content},function(a){a=a||(window.Inspect or={});var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Inspe ctor",null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(docume nt.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Inspector</title>"," <style>"," body {"," }"," pre {",' font: 9pt "Courier New", monospace;'," line-height: 1.5em;"," }"," tag {"," color: purple;"," }"," ul {"," margin: 0; "," padding: 0;"," list-style: none;"," }"," li {"," display: inline-block;"," background-color: #f1f1f1;"," p adding: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul> ",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=function( ){var a=b.document,c=a.querySelector("#crumbs");c.textContent="";for(var e,g=0;e =d[g];g++){var h=a.createElement("a");h.href="#",h.textContent=e.localName,h.idx =g,h.onclick=function(a){for(var b;d.length>this.idx;)b=d.pop();f(b.shadow||b,b) ,a.preventDefault()},c.appendChild(a.createElement("li")).appendChild(h)}},f=fun ction(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector(" #tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach. call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1}, i=function(a){return h[a.nodeName]},j=function(a,b,c){if(i(a))return"";var d=c|| "";if(a.localName||11==a.nodeType){var e=a.localName||"shadow-root",f=d+l(a);"co ntent"==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,fun ction(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag>&lt;/"+e+"&gt;</tag> ",f+="<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f}, k=[],l=function(a){var b="<tag>&lt;",c=a.localName||"shadow-root";return a.webki tShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.shadowiz e.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-root",a.attributes&&g(a.a ttributes,function(a){b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&gt;</ta g>"};shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.w ebkitShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),console.dir( this))},a.output=j}(window.Inspector),function(){var a=document.createElement("s tyle");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolve d] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.querySele ctor("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){function b(a, b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var e; switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.apply(this );break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){HTMLIm ports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal=d,a.module=c,a.usi ng=e}(window),function(a){function b(a){f.textContent=d++,e.push(a)}function c() {for(;e.length;)e.shift()()}var d=0,e=[],f=document.createTextNode("");new(windo w.MutationObserver||JsMutationObserver)(c).observe(f,{characterData:!0}),a.endOf Microtask=b}(Platform),function(a){function b(a,b,d){return a.replace(d,function (a,d,e,f){var g=e.replace(/["']/g,"");return g=c(b,g),d+"'"+g+"'"+f})}function c (a,b){var c=new URL(b,a);return d(c.href)}function d(a){var b=document.baseURI,c =new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.protocol?e (b.pathname,c.pathname):a}function e(a,b){for(var c=a.split("/"),d=b.split("/"); c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0,f=c.length-1;f>e;e++)d.un shift("..");return d.join("/")}var f={resolveDom:function(a,b){b=b||a.ownerDocum ent.baseURI,this.resolveAttributes(a,b),this.resolveStyles(a,b);var c=a.querySel ectorAll("template");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)d.content&& this.resolveDom(d.content,b)},resolveTemplate:function(a){this.resolveDom(a.cont ent,a.ownerDocument.baseURI)},resolveStyles:function(a,b){var c=a.querySelectorA ll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveStyle(d, b)},resolveStyle:function(a,b){b=b||a.ownerDocument.baseURI,a.textContent=this.r esolveCssText(a.textContent,b)},resolveCssText:function(a,c){return a=b(a,c,g),b (a,c,h)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAttributes()&&thi s.resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(j);if(c)for(var d,e= 0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)},resolveElemen tAttributes:function(a,b){b=b||a.ownerDocument.baseURI,i.forEach(function(d){var e=a.attributes[d];if(e&&e.value&&e.value.search(k)<0){var f=c(b,e.value);e.valu e=f}})}},g=/(url\()([^)]*)(\))/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href ","src","action"],j="["+i.join("],[")+"]",k="{{.*}}";a.urlResolver=f}(Platform), function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.S hadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1; var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1;a.forEach(func tion(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}fu nction e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(function(b) {b.observer===a&&b.removeTransientObservers()})})}function f(a,b){for(var c=a;c; c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.o ptions;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a){this.cal lback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){this.type =a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previousSibling=nu ll,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,th is.oldValue=null}function i(a){var b=new h(a.type,a.target);return b.addedNodes= a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSibling=a.p reviousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeName,b.att ributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j(a,b){ret urn w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}function l(){w =x=void 0}function m(a){return a===x||a===w}function n(a,b){return a===b?a:x&&m( a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.options=c,this.tr ansientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[ ],s=String(Math.random());window.addEventListener("message",function(a){if(a.dat a===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push(a),windo w.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:function(a,b){if(a= c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOldValue&&!b.attr ibutes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.characterD ataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a);d||p.set(a,d= []);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f],e.removeListene rs(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.ad dListeners()},disconnect:function(){this.nodes_.forEach(function(a){for(var b=p. get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){d.removeListeners(), b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a=this .records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:function(a){v ar c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1],f=n(e,a);if(f )return void(c[d-1]=f)}else b(this.observer);c[d]=a},addListeners:function(){thi s.addListeners_(this.target)},addListeners_:function(a){var b=this.options;b.att ributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterData&&a.addEve ntListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEventListener(" DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListener("DOMNodeR emoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)} ,removeListeners_:function(a){var b=this.options;b.attributes&&a.removeEventList ener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListener("DOMChara cterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNodeInserted", this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemoved",this,! 0)},addTransientObserver:function(a){if(a!==this.target){this.addListeners_(a),t his.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)} },removeTransientObservers:function(){var a=this.transientObservedNodes;this.tra nsientObservedNodes=[],a.forEach(function(a){this.removeListeners_(a);for(var b= p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.splice(c,1);break}},this)},handleE vent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DOMAttrModifie d":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes" ,d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===MutationEvent. ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.attributeFilter &&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeF ilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMCharacterData Modified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,function(a){re turn a.characterData?a.characterDataOldValue?k(g):e:void 0});break;case"DOMNodeR emoved":this.addTransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.re latedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n= m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e.removedNod es=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.childList?e:vo id 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.MutationObserver=g)}( this),window.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.pat h,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomplete=b ,this.inflight=0,this.pending={}};d.prototype={addNodes:function(a){this.infligh t+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);this.chec kDone()},addNode:function(a){this.inflight++,this.require(a),this.checkDone()},r equire:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetc h(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pending[a].push(b),! 0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(this.pen ding[a]=[b],!1)},fetch:function(a,d){if(c.load&&console.log("fetch",a,d),a.match (/^data:/)){var e=a.split(","),f=e[0],g=e[1];g=f.indexOf(";base64")>-1?atob(g):d ecodeURIComponent(g),setTimeout(function(){this.receive(a,d,null,g)}.bind(this), 0)}else{var h=function(b,c){this.receive(a,d,b,c)}.bind(this);b.load(a,h)}},rece ive:function(a,b,c,d){this.cache[a]=d;for(var e,f=this.pending[a],g=0,h=f.length ;h>g&&(e=f[g]);g++)this.onload(a,e,d),this.tail();this.pending[a]=null},tail:fun ction(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||th is.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<3 00||304===a.status||0===a.status},load:function(c,d,e){var f=new XMLHttpRequest; return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.asy nc),f.addEventListener("readystatechange",function(){4===f.readyState&&d.call(e, !b.ok(f)&&f,f.response||f.responseText,c)}),f.send(),f},loadDocument:function(a, b,c){this.load(a,b,c).responseType="document"}},a.xhr=b,a.Loader=d}(window.HTMLI mports),function(a){function b(a){return"link"===a.localName&&a.rel===g}function c(a){var b,c=d(a);try{b=btoa(c)}catch(e){b=btoa(unescape(encodeURIComponent(c)) ),console.warn("Script contained non-latin characters that were forced to latin. Some characters may be wrong.",a)}return"data:text/javascript;base64,"+b}functi on d(a){return a.textContent+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.own erDocument.baseURI;var c="["+Math.floor(1e3*(Math.random()+1))+"]",d=a.textConte nt.match(/Polymer\(['"]([^'"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourc eURL="+b+"\n"}function f(a){var b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,n.resolveUrlsInStyle(b),b}var g="import",h=a.flags,i =/Trident/.test(navigator.userAgent),j=window.ShadowDOMPolyfill?window.ShadowDOM Polyfill.wrapIfNeeded(document):document,k={documentSelectors:"link[rel="+g+"]", importsSelectors:["link[rel="+g+"]","link[rel=stylesheet]","style","script:not([ type])",'script[type="text/javascript"]'].join(","),map:{link:"parseLink",script :"parseScript",style:"parseStyle"},parseNext:function(){var a=this.nextToParse() ;a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return void(h.parse&&co nsole.log("[%s] is already parsed",a.localName));var b=this[this.map[a.localName ]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function(a){h.parse&&con sole.log("parsing",a),this.parsingElement=a},markParsingComplete:function(a){a._ _importParsed=!0,a.__importElement&&(a.__importElement.__importParsed=!0),this.p arsingElement=null,h.parse&&console.log("completed",a),this.parseNext()},parseIm port:function(a){if(a.import.__importParsed=!0,HTMLImports.__importsParsingHook& &HTMLImports.__importsParsingHook(a),a.dispatchEvent(a.__resource?new CustomEven t("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(va r b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.markParsingC omplete(a)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.p arseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this. parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document.head.app endChild(a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.markP arsingComplete(a)};if(a.addEventListener("load",d),a.addEventListener("error",d) ,i&&"style"===a.localName){var e=!1;if(-1==a.textContent.indexOf("@import"))e=!0 ;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRules,h=g?g.length:0,j=0;h>j&&(f=g [j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boolean(f.styleSheet))}e&&a.dispatc hEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var d=doc ument.createElement("script");d.__importElement=b,d.src=b.src?b.src:c(b),a.curre ntScript=b,this.trackElement(d,function(){d.parentNode.removeChild(d),a.currentS cript=null}),document.head.appendChild(d)},nextToParse:function(){return!this.pa rsingElement&&this.nextToParseInDoc(j)},nextToParseInDoc:function(a,c){for(var d ,e=a.querySelectorAll(this.parseSelectorsForNode(a)),f=0,g=e.length;g>f&&(d=e[f] );f++)if(!this.isParsed(d))return this.hasResource(d)?b(d)?this.nextToParseInDoc (d.import,d):d:void 0;return c},parseSelectorsForNode:function(a){var b=a.ownerD ocument||a;return b===j?this.documentSelectors:this.importsSelectors},isParsed:f unction(a){return a.__importParsed},hasResource:function(a){return b(a)&&!a.impo rt?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={res olveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInCssText :function(a,b){var c=this.replaceUrls(a,b,l);return c=this.replaceUrls(c,b,m)},r eplaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace( /["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=k,a.path=n,a.isI E=i}(HTMLImports),function(a){function b(a){return c(a,m)}function c(a,b){return "link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c instan ceof Document||(c=document.implementation.createHTMLDocument(m)),c._URL=b;var d= c.createElement("base");d.setAttribute("href",b),c.baseURI||(c.baseURI=b);var e= c.createElement("meta");return e.setAttribute("charset","utf-8"),c.head.appendCh ild(e),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window. HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstra p(c),c}function e(a,b){b=b||n,g(function(){h(a,b)},b)}function f(a){return"compl ete"===a.readyState||a.readyState===u}function g(a,b){if(f(b))a&&a();else{var c= function(){("complete"===b.readyState||b.readyState===u)&&(b.removeEventListener (v,c),g(a,b))};b.addEventListener(v,c)}}function h(a,b){function c(){f==g&&reque stAnimationFrame(a)}function d(){f++,c()}var e=b.querySelectorAll("link[rel=impo rt]"),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addE ventListener("load",d),h.addEventListener("error",d));else c()}function i(a){ret urn k?a.import&&"loading"!==a.import.readyState:a.__importParsed}var j="import"i n document.createElement("link"),k=j,l=a.flags,m="import",n=window.ShadowDOMPoly fill?ShadowDOMPolyfill.wrapIfNeeded(document):document;if(k)var o={};else var p= (a.xhr,a.Loader),q=a.parser,o={documents:{},documentPreloadSelectors:"link[rel=" +m+"]",importsPreloadSelectors:["link[rel="+m+"]"].join(","),loadNode:function(a ){r.addNode(a)},loadSubtree:function(a){var b=this.marshalNodes(a);r.addNodes(b) },marshalNodes:function(a){return a.querySelectorAll(this.loadSelectorsForNode(a ))},loadSelectorsForNode:function(a){var b=a.ownerDocument||a;return b===n?this. documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(a,c,e){if (l.load&&console.log("loaded",a,c),c.__resource=e,b(c)){var f=this.documents[a]; f||(f=d(e,a),f.__importLink=c,this.bootDocument(f),this.documents[a]=f),c.import =f}q.parseNext()},bootDocument:function(a){this.loadSubtree(a),this.observe(a),q .parseNext()},loadedAll:function(){q.parseNext()}},r=new p(o.loaded.bind(o),o.lo adedAll.bind(o));var s={get:function(){return HTMLImports.currentScript||documen t.currentScript},configurable:!0};if(Object.defineProperty(document,"_currentScr ipt",s),Object.defineProperty(n,"_currentScript",s),!document.baseURI){var t={ge t:function(){return window.location.href},configurable:!0};Object.defineProperty (document,"baseURI",t),Object.defineProperty(n,"baseURI",t)}var u=HTMLImports.is IE?"complete":"interactive",v="readystatechange";a.hasNative=j,a.useNative=k,a.i mporter=o,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=m,a.isImportLoaded=i,a.importL oader=r}(window.HTMLImports),function(a){function b(a){for(var b,d=0,e=a.length; e>d&&(b=a[d]);d++)"childList"===b.type&&b.addedNodes.length&&c(b.addedNodes)}fun ction c(a){for(var b,e=0,g=a.length;g>e&&(b=a[e]);e++)d(b)&&f.loadNode(b),b.chil dren&&b.children.length&&c(b.children)}function d(a){return 1===a.nodeType&&g.ca ll(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree: !0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=HTMLElement.prototype.matches||HTML Element.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector|| HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelecto r,h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function(){fun ction a(){HTMLImports.importer.bootDocument(b)}"function"!=typeof window.CustomE vent&&(window.CustomEvent=function(a,b){var c=document.createEvent("HTMLEvents") ;return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c}) ;var b=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document): document;HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImport s.readyTime=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoa ded",{bubbles:!0}))}),HTMLImports.useNative||("complete"===document.readyState|| "interactive"===document.readyState&&!window.attachEvent?a():document.addEventLi stener("DOMContentLoaded",a))}(),window.CustomElements=window.CustomElements||{f lags:{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.f irstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0 &&b(e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadow Root;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?! 0:void c(a,d)}),c(a,d)}function e(a){return h(a)?(i(a),!0):void l(a)}function f( a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}funct ion h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttribut e("is")||b.localName,d=a.registry[c];if(d)return A.dom&&console.group("upgrade:" ,b.localName),a.upgrade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a),r(a) &&d(a,function(a){l(a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.Platfo rm&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for(var a ,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(){m(a) }):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A .dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__i nserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.war n("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attachedCallbac k&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),A.dom&&co nsole.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){C?j(fu nction(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallback||a.__ upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)||(a.__ins erted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?A.dom& &console.warn("removed:",a.localName,"insert/remove count:",a.__inserted):a.deta chedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function q(a){ret urn window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function r(a){f or(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}function s (a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watching shado w-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}f unction t(a){a.__watched||(w(a),a.__watched=!0)}function u(a){if(A.dom){var b=a[ 0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.addedNode s[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._URL||c.host&&c .host.localName)||"";d=d.split("/?").shift().split("/").pop()}console.group("mut ations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList"===a.type&&(G (a.addedNodes,function(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.loc alName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()} function w(a){F.observe(a,{childList:!0,subtree:!0})}function x(a){w(a)}function y(a){A.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a), A.dom&&console.groupEnd()}function z(a){a=q(a);for(var b,c=a.querySelectorAll("l ink[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&z (b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImports.IMPOR T_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver===window. JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver (u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_T YPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f, a.insertedNode=i,a.observeDocument=x,a.upgradeDocument=y,a.takeRecords=v}(window .CustomElements),function(a){function b(b,g){var h=g||{};if(!b)throw new Error(" document.registerElement: first argument `name` must not be empty");if(b.indexOf ("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed f or type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new Error("Du plicateDefinitionError: a type with name '"+String(b)+"' is already registered") ;if(!h.prototype)throw new Error("Options missing required prototype property"); return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.ancestry=d(h.exten ds),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.prototype=h.protot ype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTree(document),h.ct or}function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}function d(a){v ar b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,c=a.exten ds,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a.__name)}fu nction f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){var c=doc ument.createElement(a.tag);b=Object.getPrototypeOf(c)}for(var d,e=a.prototype;e& &e!==b;){var d=Object.getPrototypeOf(e);e.__proto__=d,e=d}}a.native=b}function g (a){return h(B(a.tag),a)}function h(b,c){return c.is&&b.setAttribute("is",c.is), b.removeAttribute("unresolved"),i(b,c),b.__upgraded__=!0,k(b),a.insertedNode(b), a.upgradeSubtree(b),b}function i(a,b){Object.__proto__?a.__proto__=b.prototype:( j(a,b.prototype,b.native),a.__proto__=b.prototype)}function j(a,b,c){for(var d={ },e=b;e!==c&&e!==HTMLElement.prototype;){for(var f,g=Object.getOwnPropertyNames( e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescript or(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a. createdCallback()}function l(a){if(!a.setAttribute._polyfilled){var b=a.setAttri bute;a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.removeAttribute;a. removeAttribute=function(a){m.call(this,a,null,c)},a.setAttribute._polyfilled=!0 }}function m(a,b,c){var d=this.getAttribute(a);c.apply(this,arguments);var e=thi s.getAttribute(a);this.attributeChangedCallback&&e!==d&&this.attributeChangedCal lback(a,d,e)}function n(a){return a?z[a.toLowerCase()]:void 0}function o(a,b){z[ a]=b}function p(a){return function(){return g(a)}}function q(a,b,c){return a===A ?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==c.is)return n ew c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=r(a);return d.setAttribute( "is",b),d}var d=B(a);return a.indexOf("-")>=0&&i(d,HTMLElement),d}function s(a){ if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttribute("is"),c =n(b||a.localName);if(c){if(b&&c.tag==a.localName)return h(a,c);if(!b&&!c.extend s)return h(a,c)}}}function t(b){var c=D.call(this,b);return a.upgradeAll(c),c}a| |(a=window.CustomElements={flags:{}});var u=a.flags,v=Boolean(document.registerE lement),w=!u.register&&v&&!window.ShadowDOMPolyfill;if(w){var x=function(){};a.r egistry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgra deSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a.ta keRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","color-profile","f ont-face","font-face-src","font-face-uri","font-face-format","font-face-name","m issing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.createElement.bi nd(document),C=document.createElementNS.bind(document),D=Node.prototype.cloneNod e;document.registerElement=b,document.createElement=r,document.createElementNS=q ,Node.prototype.cloneNode=t,a.registry=z,a.upgrade=s}var E;E=Object.__proto__||w ?function(a,b){return a instanceof b}:function(a,b){for(var c=a;c;){if(c===b.pro totype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reservedTagList=y,docum ent.register=document.registerElement,a.hasNative=v,a.useNative=w}(window.Custom Elements),function(a){function b(a){return"link"===a.localName&&a.getAttribute(" rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],map:{link:"p arseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelector All(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),CustomElements.upgra deDocument(a),CustomElements.observeDocument(a)}},parseLink:function(a){b(a)&&th is.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.import)}},e=Array .prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK_T YPE=c}(window.CustomElements),function(a){function b(){CustomElements.parser.par se(document),CustomElements.upgradeDocument(document);var a=window.Platform&&Pla tform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(function(){CustomEleme nts.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLImports&&(CustomElem ents.elapsed=CustomElements.readyTime-HTMLImports.readyTime),document.dispatchEv ent(new CustomEvent("WebComponentsReady",{bubbles:!0})),window.HTMLImports&&(HTM LImports.__importsParsingHook=function(a){CustomElements.parser.parse(a.import)} )})}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=function(a){va r b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"complete "===document.readyState||a.flags.eager)b();else if("interactive"!==document.read yState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var c =window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";w indow.addEventListener(c,b)}else b()}(window.CustomElements),function(){if(windo w.ShadowDOMPolyfill){var a=["upgradeAll","upgradeSubtree","observeDocument","upg radeDocument"],b={};a.forEach(function(a){b[a]=CustomElements[a]}),a.forEach(fun ction(a){CustomElements[a]=function(c){return b[a](wrap(c))}})}}(),function(a){f unction b(a){this.regex=a}var c=a.endOfMicrotask;b.prototype={extractUrls:functi on(a,b){for(var c,d,e=[];c=this.regex.exec(a);)d=new URL(c[1],b),e.push({matched :c[0],url:d.href});return e},process:function(a,b,c){var d=this.extractUrls(a,b) ;this.fetch(d,{},c)},fetch:function(a,b,d){var e=a.length;if(!e)return d(b);for( var f,g,h,i=function(){0===--e&&d(b)},j=function(a,c){var d=c.match,e=d.url;if(a )return b[e]="",i(); 35 },get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._q uery},set search(a){!this._isInvalid&&this._isRelative&&(this._query="?","?"==a[ 0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){return this._isInvalid||! this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){this._isInval id||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fragment"))}},a .URL=i}}(window),function(a){function b(a){for(var b=a||{},d=1;d<arguments.lengt h;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}functi on c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b)}} Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Array .prototype.slice.call(arguments,1);return function(){var d=c.slice();return d.pu sh.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a){"u se strict";function b(a,b,c){var d="string"==typeof a?document.createElement(a): a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenList. prototype.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,argument s[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a<arguments.length;a ++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=function(a,b){1==arg uments.length&&(b=!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList. prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b)};var e=function( ){return Array.prototype.slice.call(this)},f=window.NamedNodeMap||window.MozName dAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e,HTMLCollection.pr ototype.array=e,!window.performance){var g=Date.now();window.performance={now:fu nction(){return Date.now()-g}}}window.requestAnimationFrame||(window.requestAnim ationFrame=function(){var a=window.webkitRequestAnimationFrame||window.mozReques tAnimationFrame;return a?function(b){return a(function(){b(performance.now())})} :function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimationFrame ||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimationFra me||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var h=[],i= function(){h.push(arguments)};window.Polymer=i,a.deliverDeclarations=function(){ return a.deliverDeclarations=function(){throw"Possible attempt to load Polymer t wice"},h},window.addEventListener("DOMContentLoaded",function(){window.Polymer== =i&&(window.Polymer=function(){console.error('You tried to use polymer without l oading it first. To load polymer, <link rel="import" href="components/polymer/po lymer.html">')})}),a.createDOM=b}(window.Platform),window.templateContent=window .templateContent||function(a){return a.content},function(a){a=a||(window.Inspect or={});var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Inspe ctor",null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(docume nt.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Inspector</title>"," <style>"," body {"," }"," pre {",' font: 9pt "Courier New", monospace;'," line-height: 1.5em;"," }"," tag {"," color: purple;"," }"," ul {"," margin: 0; "," padding: 0;"," list-style: none;"," }"," li {"," display: inline-block;"," background-color: #f1f1f1;"," p adding: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul> ",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=function( ){var a=b.document,c=a.querySelector("#crumbs");c.textContent="";for(var e,g=0;e =d[g];g++){var h=a.createElement("a");h.href="#",h.textContent=e.localName,h.idx =g,h.onclick=function(a){for(var b;d.length>this.idx;)b=d.pop();f(b.shadow||b,b) ,a.preventDefault()},c.appendChild(a.createElement("li")).appendChild(h)}},f=fun ction(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector(" #tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach. call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1}, i=function(a){return h[a.nodeName]},j=function(a,b,c){if(i(a))return"";var d=c|| "";if(a.localName||11==a.nodeType){var e=a.localName||"shadow-root",f=d+l(a);"co ntent"==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,fun ction(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag>&lt;/"+e+"&gt;</tag> ",f+="<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f}, k=[],l=function(a){var b="<tag>&lt;",c=a.localName||"shadow-root";return a.webki tShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.shadowiz e.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-root",a.attributes&&g(a.a ttributes,function(a){b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&gt;</ta g>"};shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.w ebkitShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),console.dir( this))},a.output=j}(window.Inspector),function(){var a=document.createElement("s tyle");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolve d] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.querySele ctor("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){function b(a, b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var e; switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.apply(this );break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){HTMLIm ports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal=d,a.module=c,a.usi ng=e}(window),function(a){function b(a){f.textContent=d++,e.push(a)}function c() {for(;e.length;)e.shift()()}var d=0,e=[],f=document.createTextNode("");new(windo w.MutationObserver||JsMutationObserver)(c).observe(f,{characterData:!0}),a.endOf Microtask=b}(Platform),function(a){function b(a,b,d){return a.replace(d,function (a,d,e,f){var g=e.replace(/["']/g,"");return g=c(b,g),d+"'"+g+"'"+f})}function c (a,b){var c=new URL(b,a);return d(c.href)}function d(a){var b=document.baseURI,c =new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.protocol?e (b.pathname,c.pathname):a}function e(a,b){for(var c=a.split("/"),d=b.split("/"); c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0,f=c.length-1;f>e;e++)d.un shift("..");return d.join("/")}var f={resolveDom:function(a,b){b=b||a.ownerDocum ent.baseURI,this.resolveAttributes(a,b),this.resolveStyles(a,b);var c=a.querySel ectorAll("template");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)d.content&& this.resolveDom(d.content,b)},resolveTemplate:function(a){this.resolveDom(a.cont ent,a.ownerDocument.baseURI)},resolveStyles:function(a,b){var c=a.querySelectorA ll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveStyle(d, b)},resolveStyle:function(a,b){b=b||a.ownerDocument.baseURI,a.textContent=this.r esolveCssText(a.textContent,b)},resolveCssText:function(a,c){return a=b(a,c,g),b (a,c,h)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAttributes()&&thi s.resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(j);if(c)for(var d,e= 0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)},resolveElemen tAttributes:function(a,b){b=b||a.ownerDocument.baseURI,i.forEach(function(d){var e=a.attributes[d];if(e&&e.value&&e.value.search(k)<0){var f=c(b,e.value);e.valu e=f}})}},g=/(url\()([^)]*)(\))/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href ","src","action"],j="["+i.join("],[")+"]",k="{{.*}}";a.urlResolver=f}(Platform), function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.S hadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1; var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1;a.forEach(func tion(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}fu nction e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(function(b) {b.observer===a&&b.removeTransientObservers()})})}function f(a,b){for(var c=a;c; c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.o ptions;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a){this.cal lback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){this.type =a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previousSibling=nu ll,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,th is.oldValue=null}function i(a){var b=new h(a.type,a.target);return b.addedNodes= a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSibling=a.p reviousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeName,b.att ributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j(a,b){ret urn w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}function l(){w =x=void 0}function m(a){return a===x||a===w}function n(a,b){return a===b?a:x&&m( a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.options=c,this.tr ansientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[ ],s=String(Math.random());window.addEventListener("message",function(a){if(a.dat a===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push(a),windo w.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:function(a,b){if(a= c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOldValue&&!b.attr ibutes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.characterD ataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a);d||p.set(a,d= []);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f],e.removeListene rs(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.ad dListeners()},disconnect:function(){this.nodes_.forEach(function(a){for(var b=p. get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){d.removeListeners(), b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a=this .records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:function(a){v ar c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1],f=n(e,a);if(f )return void(c[d-1]=f)}else b(this.observer);c[d]=a},addListeners:function(){thi s.addListeners_(this.target)},addListeners_:function(a){var b=this.options;b.att ributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterData&&a.addEve ntListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEventListener(" DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListener("DOMNodeR emoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)} ,removeListeners_:function(a){var b=this.options;b.attributes&&a.removeEventList ener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListener("DOMChara cterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNodeInserted", this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemoved",this,! 0)},addTransientObserver:function(a){if(a!==this.target){this.addListeners_(a),t his.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)} },removeTransientObservers:function(){var a=this.transientObservedNodes;this.tra nsientObservedNodes=[],a.forEach(function(a){this.removeListeners_(a);for(var b= p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.splice(c,1);break}},this)},handleE vent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DOMAttrModifie d":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes" ,d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===MutationEvent. ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.attributeFilter &&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeF ilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMCharacterData Modified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,function(a){re turn a.characterData?a.characterDataOldValue?k(g):e:void 0});break;case"DOMNodeR emoved":this.addTransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.re latedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n= m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e.removedNod es=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.childList?e:vo id 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.MutationObserver=g)}( this),window.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.pat h,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomplete=b ,this.inflight=0,this.pending={}};d.prototype={addNodes:function(a){this.infligh t+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);this.chec kDone()},addNode:function(a){this.inflight++,this.require(a),this.checkDone()},r equire:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetc h(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pending[a].push(b),! 0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(this.pen ding[a]=[b],!1)},fetch:function(a,d){if(c.load&&console.log("fetch",a,d),a.match (/^data:/)){var e=a.split(","),f=e[0],g=e[1];g=f.indexOf(";base64")>-1?atob(g):d ecodeURIComponent(g),setTimeout(function(){this.receive(a,d,null,g)}.bind(this), 0)}else{var h=function(b,c){this.receive(a,d,b,c)}.bind(this);b.load(a,h)}},rece ive:function(a,b,c,d){this.cache[a]=d;for(var e,f=this.pending[a],g=0,h=f.length ;h>g&&(e=f[g]);g++)this.onload(a,e,d),this.tail();this.pending[a]=null},tail:fun ction(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||th is.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<3 00||304===a.status||0===a.status},load:function(c,d,e){var f=new XMLHttpRequest; return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.asy nc),f.addEventListener("readystatechange",function(){4===f.readyState&&d.call(e, !b.ok(f)&&f,f.response||f.responseText,c)}),f.send(),f},loadDocument:function(a, b,c){this.load(a,b,c).responseType="document"}},a.xhr=b,a.Loader=d}(window.HTMLI mports),function(a){function b(a){return"link"===a.localName&&a.rel===g}function c(a){var b,c=d(a);try{b=btoa(c)}catch(e){b=btoa(unescape(encodeURIComponent(c)) ),console.warn("Script contained non-latin characters that were forced to latin. Some characters may be wrong.",a)}return"data:text/javascript;base64,"+b}functi on d(a){return a.textContent+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.own erDocument.baseURI;var c="["+Math.floor(1e3*(Math.random()+1))+"]",d=a.textConte nt.match(/Polymer\(['"]([^'"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourc eURL="+b+"\n"}function f(a){var b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,n.resolveUrlsInStyle(b),b}var g="import",h=a.flags,i =/Trident/.test(navigator.userAgent),j=window.ShadowDOMPolyfill?window.ShadowDOM Polyfill.wrapIfNeeded(document):document,k={documentSelectors:"link[rel="+g+"]", importsSelectors:["link[rel="+g+"]","link[rel=stylesheet]","style","script:not([ type])",'script[type="text/javascript"]'].join(","),map:{link:"parseLink",script :"parseScript",style:"parseStyle"},parseNext:function(){var a=this.nextToParse() ;a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return void(h.parse&&co nsole.log("[%s] is already parsed",a.localName));var b=this[this.map[a.localName ]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function(a){h.parse&&con sole.log("parsing",a),this.parsingElement=a},markParsingComplete:function(a){a._ _importParsed=!0,a.__importElement&&(a.__importElement.__importParsed=!0),this.p arsingElement=null,h.parse&&console.log("completed",a),this.parseNext()},parseIm port:function(a){if(a.import.__importParsed=!0,HTMLImports.__importsParsingHook& &HTMLImports.__importsParsingHook(a),a.dispatchEvent(a.__resource?new CustomEven t("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(va r b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.markParsingC omplete(a)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.p arseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this. parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document.head.app endChild(a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.markP arsingComplete(a)};if(a.addEventListener("load",d),a.addEventListener("error",d) ,i&&"style"===a.localName){var e=!1;if(-1==a.textContent.indexOf("@import"))e=!0 ;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRules,h=g?g.length:0,j=0;h>j&&(f=g [j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boolean(f.styleSheet))}e&&a.dispatc hEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var d=doc ument.createElement("script");d.__importElement=b,d.src=b.src?b.src:c(b),a.curre ntScript=b,this.trackElement(d,function(){d.parentNode.removeChild(d),a.currentS cript=null}),document.head.appendChild(d)},nextToParse:function(){return!this.pa rsingElement&&this.nextToParseInDoc(j)},nextToParseInDoc:function(a,c){for(var d ,e=a.querySelectorAll(this.parseSelectorsForNode(a)),f=0,g=e.length;g>f&&(d=e[f] );f++)if(!this.isParsed(d))return this.hasResource(d)?b(d)?this.nextToParseInDoc (d.import,d):d:void 0;return c},parseSelectorsForNode:function(a){var b=a.ownerD ocument||a;return b===j?this.documentSelectors:this.importsSelectors},isParsed:f unction(a){return a.__importParsed},hasResource:function(a){return b(a)&&!a.impo rt?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={res olveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInCssText :function(a,b){var c=this.replaceUrls(a,b,l);return c=this.replaceUrls(c,b,m)},r eplaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace( /["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=k,a.path=n,a.isI E=i}(HTMLImports),function(a){function b(a){return c(a,m)}function c(a,b){return "link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c instan ceof Document||(c=document.implementation.createHTMLDocument(m)),c._URL=b;var d= c.createElement("base");d.setAttribute("href",b),c.baseURI||(c.baseURI=b);var e= c.createElement("meta");return e.setAttribute("charset","utf-8"),c.head.appendCh ild(e),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window. HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstra p(c),c}function e(a,b){b=b||n,g(function(){h(a,b)},b)}function f(a){return"compl ete"===a.readyState||a.readyState===u}function g(a,b){if(f(b))a&&a();else{var c= function(){("complete"===b.readyState||b.readyState===u)&&(b.removeEventListener (v,c),g(a,b))};b.addEventListener(v,c)}}function h(a,b){function c(){f==g&&reque stAnimationFrame(a)}function d(){f++,c()}var e=b.querySelectorAll("link[rel=impo rt]"),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addE ventListener("load",d),h.addEventListener("error",d));else c()}function i(a){ret urn k?a.import&&"loading"!==a.import.readyState:a.__importParsed}var j="import"i n document.createElement("link"),k=j,l=a.flags,m="import",n=window.ShadowDOMPoly fill?ShadowDOMPolyfill.wrapIfNeeded(document):document;if(k)var o={};else var p= (a.xhr,a.Loader),q=a.parser,o={documents:{},documentPreloadSelectors:"link[rel=" +m+"]",importsPreloadSelectors:["link[rel="+m+"]"].join(","),loadNode:function(a ){r.addNode(a)},loadSubtree:function(a){var b=this.marshalNodes(a);r.addNodes(b) },marshalNodes:function(a){return a.querySelectorAll(this.loadSelectorsForNode(a ))},loadSelectorsForNode:function(a){var b=a.ownerDocument||a;return b===n?this. documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(a,c,e){if (l.load&&console.log("loaded",a,c),c.__resource=e,b(c)){var f=this.documents[a]; f||(f=d(e,a),f.__importLink=c,this.bootDocument(f),this.documents[a]=f),c.import =f}q.parseNext()},bootDocument:function(a){this.loadSubtree(a),this.observe(a),q .parseNext()},loadedAll:function(){q.parseNext()}},r=new p(o.loaded.bind(o),o.lo adedAll.bind(o));var s={get:function(){return HTMLImports.currentScript||documen t.currentScript},configurable:!0};if(Object.defineProperty(document,"_currentScr ipt",s),Object.defineProperty(n,"_currentScript",s),!document.baseURI){var t={ge t:function(){return window.location.href},configurable:!0};Object.defineProperty (document,"baseURI",t),Object.defineProperty(n,"baseURI",t)}var u=HTMLImports.is IE?"complete":"interactive",v="readystatechange";a.hasNative=j,a.useNative=k,a.i mporter=o,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=m,a.isImportLoaded=i,a.importL oader=r}(window.HTMLImports),function(a){function b(a){for(var b,d=0,e=a.length; e>d&&(b=a[d]);d++)"childList"===b.type&&b.addedNodes.length&&c(b.addedNodes)}fun ction c(a){for(var b,e=0,g=a.length;g>e&&(b=a[e]);e++)d(b)&&f.loadNode(b),b.chil dren&&b.children.length&&c(b.children)}function d(a){return 1===a.nodeType&&g.ca ll(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree: !0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=HTMLElement.prototype.matches||HTML Element.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector|| HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelecto r,h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function(){fun ction a(){HTMLImports.importer.bootDocument(b)}"function"!=typeof window.CustomE vent&&(window.CustomEvent=function(a,b){var c=document.createEvent("HTMLEvents") ;return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c}) ;var b=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document): document;HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImport s.readyTime=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoa ded",{bubbles:!0}))}),HTMLImports.useNative||("complete"===document.readyState|| "interactive"===document.readyState&&!window.attachEvent?a():document.addEventLi stener("DOMContentLoaded",a))}(),window.CustomElements=window.CustomElements||{f lags:{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.f irstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0 &&b(e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadow Root;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?! 0:void c(a,d)}),c(a,d)}function e(a){return h(a)?(i(a),!0):void l(a)}function f( a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}funct ion h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttribut e("is")||b.localName,d=a.registry[c];if(d)return A.dom&&console.group("upgrade:" ,b.localName),a.upgrade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a),r(a) &&d(a,function(a){l(a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.Platfo rm&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for(var a ,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(){m(a) }):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A .dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__i nserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.war n("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attachedCallbac k&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),A.dom&&co nsole.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){C?j(fu nction(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallback||a.__ upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)||(a.__ins erted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?A.dom& &console.warn("removed:",a.localName,"insert/remove count:",a.__inserted):a.deta chedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function q(a){ret urn window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function r(a){f or(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}function s (a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watching shado w-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}f unction t(a){a.__watched||(w(a),a.__watched=!0)}function u(a){if(A.dom){var b=a[ 0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.addedNode s[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._URL||c.host&&c .host.localName)||"";d=d.split("/?").shift().split("/").pop()}console.group("mut ations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList"===a.type&&(G (a.addedNodes,function(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.loc alName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()} function w(a){F.observe(a,{childList:!0,subtree:!0})}function x(a){w(a)}function y(a){A.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a), A.dom&&console.groupEnd()}function z(a){a=q(a);for(var b,c=a.querySelectorAll("l ink[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&z (b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImports.IMPOR T_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver===window. JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver (u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_T YPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f, a.insertedNode=i,a.observeDocument=x,a.upgradeDocument=y,a.takeRecords=v}(window .CustomElements),function(a){function b(b,g){var h=g||{};if(!b)throw new Error(" document.registerElement: first argument `name` must not be empty");if(b.indexOf ("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed f or type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new Error("Du plicateDefinitionError: a type with name '"+String(b)+"' is already registered") ;if(!h.prototype)throw new Error("Options missing required prototype property"); return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.ancestry=d(h.exten ds),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.prototype=h.protot ype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTree(document),h.ct or}function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}function d(a){v ar b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,c=a.exten ds,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a.__name)}fu nction f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){var c=doc ument.createElement(a.tag);b=Object.getPrototypeOf(c)}for(var d,e=a.prototype;e& &e!==b;){var d=Object.getPrototypeOf(e);e.__proto__=d,e=d}}a.native=b}function g (a){return h(B(a.tag),a)}function h(b,c){return c.is&&b.setAttribute("is",c.is), b.removeAttribute("unresolved"),i(b,c),b.__upgraded__=!0,k(b),a.insertedNode(b), a.upgradeSubtree(b),b}function i(a,b){Object.__proto__?a.__proto__=b.prototype:( j(a,b.prototype,b.native),a.__proto__=b.prototype)}function j(a,b,c){for(var d={ },e=b;e!==c&&e!==HTMLElement.prototype;){for(var f,g=Object.getOwnPropertyNames( e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescript or(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a. createdCallback()}function l(a){if(!a.setAttribute._polyfilled){var b=a.setAttri bute;a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.removeAttribute;a. removeAttribute=function(a){m.call(this,a,null,c)},a.setAttribute._polyfilled=!0 }}function m(a,b,c){var d=this.getAttribute(a);c.apply(this,arguments);var e=thi s.getAttribute(a);this.attributeChangedCallback&&e!==d&&this.attributeChangedCal lback(a,d,e)}function n(a){return a?z[a.toLowerCase()]:void 0}function o(a,b){z[ a]=b}function p(a){return function(){return g(a)}}function q(a,b,c){return a===A ?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==c.is)return n ew c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=r(a);return d.setAttribute( "is",b),d}var d=B(a);return a.indexOf("-")>=0&&i(d,HTMLElement),d}function s(a){ if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttribute("is"),c =n(b||a.localName);if(c){if(b&&c.tag==a.localName)return h(a,c);if(!b&&!c.extend s)return h(a,c)}}}function t(b){var c=D.call(this,b);return a.upgradeAll(c),c}a| |(a=window.CustomElements={flags:{}});var u=a.flags,v=Boolean(document.registerE lement),w=!u.register&&v&&!window.ShadowDOMPolyfill;if(w){var x=function(){};a.r egistry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgra deSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a.ta keRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","color-profile","f ont-face","font-face-src","font-face-uri","font-face-format","font-face-name","m issing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.createElement.bi nd(document),C=document.createElementNS.bind(document),D=Node.prototype.cloneNod e;document.registerElement=b,document.createElement=r,document.createElementNS=q ,Node.prototype.cloneNode=t,a.registry=z,a.upgrade=s}var E;E=Object.__proto__||w ?function(a,b){return a instanceof b}:function(a,b){for(var c=a;c;){if(c===b.pro totype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reservedTagList=y,docum ent.register=document.registerElement,a.hasNative=v,a.useNative=w}(window.Custom Elements),function(a){function b(a){return"link"===a.localName&&a.getAttribute(" rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],map:{link:"p arseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelector All(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),CustomElements.upgra deDocument(a),CustomElements.observeDocument(a)}},parseLink:function(a){b(a)&&th is.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.import)}},e=Array .prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK_T YPE=c}(window.CustomElements),function(a){function b(){CustomElements.parser.par se(document),CustomElements.upgradeDocument(document);var a=window.Platform&&Pla tform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(function(){CustomEleme nts.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLImports&&(CustomElem ents.elapsed=CustomElements.readyTime-HTMLImports.readyTime),document.dispatchEv ent(new CustomEvent("WebComponentsReady",{bubbles:!0})),window.HTMLImports&&(HTM LImports.__importsParsingHook=function(a){CustomElements.parser.parse(a.import)} )})}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=function(a){va r b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"complete "===document.readyState||a.flags.eager)b();else if("interactive"!==document.read yState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var c =window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";w indow.addEventListener(c,b)}else b()}(window.CustomElements),function(){if(windo w.ShadowDOMPolyfill){var a=["upgradeAll","upgradeSubtree","observeDocument","upg radeDocument"],b={};a.forEach(function(a){b[a]=CustomElements[a]}),a.forEach(fun ction(a){CustomElements[a]=function(c){return b[a](wrap(c))}})}}(),function(a){f unction b(a){this.regex=a}var c=a.endOfMicrotask;b.prototype={extractUrls:functi on(a,b){for(var c,d,e=[];c=this.regex.exec(a);)d=new URL(c[1],b),e.push({matched :c[0],url:d.href});return e},process:function(a,b,c){var d=this.extractUrls(a,b) ;this.fetch(d,{},c)},fetch:function(a,b,d){var e=a.length;if(!e)return d(b);for( var f,g,h,i=function(){0===--e&&d(b)},j=function(a,c){var d=c.match,e=d.url;if(a )return b[e]="",i();
36 var f=c.response||c.responseText;b[e]=f,this.fetch(this.extractUrls(f,e),b,i)},k =0;e>k;k++)f=a[k],h=f.url,b[h]?c(i):(g=this.xhr(h,j,this),g.match=f,b[h]=g)},xhr :function(a,b,c){var d=new XMLHttpRequest;return d.open("GET",a,!0),d.send(),d.o nload=function(){b.call(c,null,d)},d.onerror=function(){b.call(c,null,d)},d}},a. Loader=b}(window.Platform),function(a){function b(){this.loader=new d(this.regex )}var c=a.urlResolver,d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([ ^'"\)]*)['"\)]*;/g,resolve:function(a,b,c){var d=function(d){c(this.flatten(a,b, d))}.bind(this);this.loader.process(a,b,d)},resolveNode:function(a,b){var c=a.te xtContent,d=a.ownerDocument.baseURI,e=function(c){a.textContent=c,b(a)};this.res olve(c,d,e)},flatten:function(a,b,d){for(var e,f,g,h=this.loader.extractUrls(a,b ),i=0;i<h.length;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f),g=this.flatten(g, f,d),a=a.replace(e.matched,g);return a},loadStyles:function(a,b){function c(){e+ +,e===f&&b&&b()}for(var d,e=0,f=a.length,g=0;f>g&&(d=a[g]);g++)this.resolveNode( d,c)}};var e=new b;a.styleResolver=e}(window.Platform),function(a){a=a||{},a.ext ernal=a.external||{};var b={shadow:function(a){return a?a.shadowRoot||a.webkitSh adowRoot:void 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},ta rgetingShadow:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0 },olderShadow:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector(" shadow");c&&(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[], c=this.shadow(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:functio n(a,b,c){if(a){var d,e,f=a.elementFromPoint(b,c);for(e=this.targetingShadow(f);e ;){if(d=e.elementFromPoint(b,c)){var g=this.targetingShadow(d);return this.searc hRoot(g,b,c)||d}e=this.olderShadow(e)}return f}},owner:function(a){for(var b=a;b .parentNode;)b=b.parentNode;return b.nodeType!=Node.DOCUMENT_NODE&&b.nodeType!=N ode.DOCUMENT_FRAGMENT_NODE&&(b=document),b},findTarget:function(a){var b=a.clien tX,c=a.clientY,d=this.owner(a.target);return d.elementFromPoint(b,c)||(d=documen t),this.searchRoot(d,b,c)}};a.targetFinding=b,a.findTarget=b.findTarget.bind(b), window.PointerEventsPolyfill=a}(window.PointerEventsPolyfill),function(){functio n a(a){return"body /shadow-deep/ "+b(a)}function b(a){return'[touch-action="'+a+ '"]'}function c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+"; touch- action-delay: none; }"}var d=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y", selectors:["pan-x pan-y","pan-y pan-x"]}],e="",f=(document.head,window.PointerEv ent||window.MSPointerEvent),g=!window.ShadowDOMPolyfill&&document.head.createSha dowRoot;if(f){d.forEach(function(d){String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d) +c(d)+"\n")):(e+=d.selectors.map(b)+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d .rule)+"\n"))});var h=document.createElement("style");h.textContent=e,document.h ead.appendChild(h)}}(),function(a){function b(a,b){b=b||Object.create(null);var e=document.createEvent("Event");e.initEvent(a,b.bubbles||!1,b.cancelable||!1);fo r(var f,g=0;g<c.length;g++)f=c[g],e[f]=b[f]||d[g];e.buttons=b.buttons||0;var h=0 ;return h=b.pressure?b.pressure:e.buttons?.5:0,e.x=e.clientX,e.y=e.clientY,e.poi nterId=b.pointerId||0,e.width=b.width||0,e.height=b.height||0,e.pressure=h,e.til tX=b.tiltX||0,e.tiltY=b.tiltY||0,e.pointerType=b.pointerType||"",e.hwTimestamp=b .hwTimestamp||0,e.isPrimary=b.isPrimary||!1,e}var c=["bubbles","cancelable","vie w","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey ","metaKey","button","relatedTarget","pageX","pageY"],d=[!1,!1,null,null,0,0,0,0 ,!1,!1,!1,!1,0,null,0,0];a.PointerEvent||(a.PointerEvent=b)}(window),function(a) {function b(){if(c){var a=new Map;return a.pointers=d,a}this.keys=[],this.values =[]}var c=window.Map&&window.Map.prototype.forEach,d=function(){return this.size };b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]= b:(this.keys.push(a),this.values.push(b))},has:function(a){return this.keys.inde xOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.spli ce(b,1),this.values.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);ret urn this.values[b]},clear:function(){this.keys.length=0,this.values.length=0},fo rEach:function(a,b){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],th is)},this)},pointers:function(){return this.keys.length}},a.PointerMap=b}(window .PointerEventsPolyfill),function(a){var b=["bubbles","cancelable","view","detail ","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey ","button","relatedTarget","buttons","pointerId","width","height","pressure","ti ltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTar get","which","pageX","pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0, 0,0,0,0,0,"",0,!1,"",null,null,0,0,0],d="undefined"!=typeof SVGElementInstance,e ={pointermap:new a.PointerMap,eventMap:Object.create(null),captureInfo:Object.cr eate(null),eventSources:Object.create(null),eventSourceList:[],registerSource:fu nction(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(this.eventMap[a] =c[a].bind(c))},this),this.eventSources[a]=c,this.eventSourceList.push(c))},regi ster:function(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventS ourceList[d]);d++)b.register.call(b,a)},unregister:function(a){for(var b,c=this. eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.cal l(b,a)},contains:a.external.contains||function(a,b){return a.contains(b)},down:f unction(a){a.bubbles=!0,this.fireEvent("pointerdown",a)},move:function(a){a.bubb les=!0,this.fireEvent("pointermove",a)},up:function(a){a.bubbles=!0,this.fireEve nt("pointerup",a)},enter:function(a){a.bubbles=!1,this.fireEvent("pointerenter", a)},leave:function(a){a.bubbles=!1,this.fireEvent("pointerleave",a)},over:functi on(a){a.bubbles=!0,this.fireEvent("pointerover",a)},out:function(a){a.bubbles=!0 ,this.fireEvent("pointerout",a)},cancel:function(a){a.bubbles=!0,this.fireEvent( "pointercancel",a)},leaveOut:function(a){this.out(a),this.contains(a.target,a.re latedTarget)||this.leave(a)},enterOver:function(a){this.over(a),this.contains(a. target,a.relatedTarget)||this.enter(a)},eventHandler:function(a){if(!a._handledB yPE){var b=a.type,c=this.eventMap&&this.eventMap[b];c&&c(a),a._handledByPE=!0}}, listen:function(a,b){b.forEach(function(b){this.addEvent(a,b)},this)},unlisten:f unction(a,b){b.forEach(function(b){this.removeEvent(a,b)},this)},addEvent:a.exte rnal.addEvent||function(a,b){a.addEventListener(b,this.boundHandler)},removeEven t:a.external.removeEvent||function(a,b){a.removeEventListener(b,this.boundHandle r)},makeEvent:function(a,b){this.captureInfo[b.pointerId]&&(b.relatedTarget=null );var c=new PointerEvent(a,b);return b.preventDefault&&(c.preventDefault=b.preve ntDefault),c._target=c._target||b.target,c},fireEvent:function(a,b){var c=this.m akeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){for(var e,f=O bject.create(null),g=0;g<b.length;g++)e=b[g],f[e]=a[e]||c[g],!d||"target"!==e&&" relatedTarget"!==e||f[e]instanceof SVGElementInstance&&(f[e]=f[e].correspondingU seElement);return a.preventDefault&&(f.preventDefault=function(){a.preventDefaul t()}),f},getTarget:function(a){return this.captureInfo[a.pointerId]||a._target}, setCapture:function(a,b){this.captureInfo[a]&&this.releaseCapture(a),this.captur eInfo[a]=b;var c=document.createEvent("Event");c.initEvent("gotpointercapture",! 0,!1),c.pointerId=a,this.implicitRelease=this.releaseCapture.bind(this,a),docume nt.addEventListener("pointerup",this.implicitRelease),document.addEventListener( "pointercancel",this.implicitRelease),c._target=b,this.asyncDispatchEvent(c)},re leaseCapture:function(a){var b=this.captureInfo[a];if(b){var c=document.createEv ent("Event");c.initEvent("lostpointercapture",!0,!1),c.pointerId=a,this.captureI nfo[a]=void 0,document.removeEventListener("pointerup",this.implicitRelease),doc ument.removeEventListener("pointercancel",this.implicitRelease),c._target=b,this .asyncDispatchEvent(c)}},dispatchEvent:a.external.dispatchEvent||function(a){var b=this.getTarget(a);return b?b.dispatchEvent(a):void 0},asyncDispatchEvent:func tion(a){requestAnimationFrame(this.dispatchEvent.bind(this,a))}};e.boundHandler= e.eventHandler.bind(e),a.dispatcher=e,a.register=e.register.bind(e),a.unregister =e.unregister.bind(e)}(window.PointerEventsPolyfill),function(a){function b(a,b, c,d){this.addCallback=a.bind(d),this.removeCallback=b.bind(d),this.changedCallba ck=c.bind(d),g&&(this.observer=new g(this.mutationWatcher.bind(this)))}var c=Arr ay.prototype.forEach.call.bind(Array.prototype.forEach),d=Array.prototype.map.ca ll.bind(Array.prototype.map),e=Array.prototype.slice.call.bind(Array.prototype.s lice),f=Array.prototype.filter.call.bind(Array.prototype.filter),g=window.Mutati onObserver||window.WebKitMutationObserver,h="[touch-action]",i={subtree:!0,child List:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-action"]};b.p rototype={watchSubtree:function(b){a.targetFinding.canTarget(b)&&this.observer.o bserve(b,i)},enableOnSubtree:function(a){this.watchSubtree(a),a===document&&"com plete"!==document.readyState?this.installOnLoad():this.installNewSubtree(a)},ins tallNewSubtree:function(a){c(this.findElements(a),this.addElement,this)},findEle ments:function(a){return a.querySelectorAll?a.querySelectorAll(h):[]},removeElem ent:function(a){this.removeCallback(a)},addElement:function(a){this.addCallback( a)},elementChanged:function(a,b){this.changedCallback(a,b)},concatLists:function (a,b){return a.concat(e(b))},installOnLoad:function(){document.addEventListener( "readystatechange",function(){"complete"===document.readyState&&this.installNewS ubtree(document)}.bind(this))},isElement:function(a){return a.nodeType===Node.EL EMENT_NODE},flattenMutationTree:function(a){var b=d(a,this.findElements,this);re turn b.push(f(a,this.isElement)),b.reduce(this.concatLists,[])},mutationWatcher: function(a){a.forEach(this.mutationHandler,this)},mutationHandler:function(a){if ("childList"===a.type){var b=this.flattenMutationTree(a.addedNodes);b.forEach(th is.addElement,this);var c=this.flattenMutationTree(a.removedNodes);c.forEach(thi s.removeElement,this)}else"attributes"===a.type&&this.elementChanged(a.target,a. oldValue)}},g||(b.prototype.watchSubtree=function(){console.warn("PointerEventsP olyfill: MutationObservers not found, touch-action will not be dynamically detec ted")}),a.Installer=b}(window.PointerEventsPolyfill),function(a){var b=a.dispatc her,c=b.pointermap,d=25,e=[0,1,4,2],f=!1;try{f=1===new MouseEvent("test",{button s:1}).buttons}catch(g){}var h={POINTER_ID:1,POINTER_TYPE:"mouse",events:["moused own","mousemove","mouseup","mouseover","mouseout"],register:function(a){b.listen (a,this.events)},unregister:function(a){b.unlisten(a,this.events)},lastTouches:[ ],isEventSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX ,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs( f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a),d =c.preventDefault;return c.preventDefault=function(){a.preventDefault(),d()},c.p ointerId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,f||(c.bu ttons=e[c.which]||0),c},mousedown:function(a){if(!this.isEventSimulatedFromTouch (a)){var d=c.has(this.POINTER_ID);d&&this.cancel(a);var e=this.prepareEvent(a);c .set(this.POINTER_ID,a),b.down(e)}},mousemove:function(a){if(!this.isEventSimula tedFromTouch(a)){var c=this.prepareEvent(a);b.move(c)}},mouseup:function(a){if(! this.isEventSimulatedFromTouch(a)){var d=c.get(this.POINTER_ID);if(d&&d.button== =a.button){var e=this.prepareEvent(a);b.up(e),this.cleanupMouse()}}},mouseover:f unction(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a);b.e nterOver(c)}},mouseout:function(a){if(!this.isEventSimulatedFromTouch(a)){var c= this.prepareEvent(a);b.leaveOut(c)}},cancel:function(a){var c=this.prepareEvent( a);b.cancel(c),this.cleanupMouse()},cleanupMouse:function(){c["delete"](this.POI NTER_ID)}};a.mouseEvents=h}(window.PointerEventsPolyfill),function(a){var b,c=a. dispatcher,d=c.captureInfo,e=a.findTarget,f=a.targetFinding.allShadows.bind(a.ta rgetFinding),g=c.pointermap,h=(Array.prototype.map.call.bind(Array.prototype.map ),2500),i=200,j="touch-action",k=!1,l={events:["touchstart","touchmove","touchen d","touchcancel"],register:function(a){k?c.listen(a,this.events):b.enableOnSubtr ee(a)},unregister:function(a){k&&c.unlisten(a,this.events)},elementAdded:functio n(a){var b=a.getAttribute(j),d=this.touchActionToScrollType(b);d&&(a._scrollType =d,c.listen(a,this.events),f(a).forEach(function(a){a._scrollType=d,c.listen(a,t his.events)},this))},elementRemoved:function(a){a._scrollType=void 0,c.unlisten( a,this.events),f(a).forEach(function(a){a._scrollType=void 0,c.unlisten(a,this.e vents)},this)},elementChanged:function(a,b){var c=a.getAttribute(j),d=this.touch ActionToScrollType(c),e=this.touchActionToScrollType(b);d&&e?(a._scrollType=d,f( a).forEach(function(a){a._scrollType=d},this)):e?this.elementRemoved(a):d&&this. elementAdded(a)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y" ,SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/},touchActionToScrollType:func tion(a){var b=a,c=this.scrollTypes;return"none"===b?"none":b===c.XSCROLLER?"X":b ===c.YSCROLLER?"Y":c.SCROLLER.exec(b)?"XY":void 0},POINTER_TYPE:"touch",firstTou ch:null,isPrimaryTouch:function(a){return this.firstTouch===a.identifier},setPri maryTouch:function(a){(0===g.pointers()||1===g.pointers()&&g.has(1))&&(this.firs tTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.clientY},this.scrolling=!1,thi s.cancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimary&&(this. firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId: null,resetClickCount:function(){var a=function(){this.clickCount=0,this.resetId= null}.bind(this);this.resetId=setTimeout(a,i)},cancelResetClickCount:function(){ this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var b=0;retu rn("touchstart"===a||"touchmove"===a)&&(b=1),b},touchToPointer:function(a){var b =this.currentTouchEvent,f=c.cloneEvent(a),g=f.pointerId=a.identifier+2;f.target= d[g]||e(f),f.bubbles=!0,f.cancelable=!0,f.detail=this.clickCount,f.button=0,f.bu ttons=this.typeToButtons(b.type),f.width=a.webkitRadiusX||a.radiusX||0,f.height= a.webkitRadiusY||a.radiusY||0,f.pressure=a.webkitForce||a.force||.5,f.isPrimary= this.isPrimaryTouch(a),f.pointerType=this.POINTER_TYPE;var h=this;return f.preve ntDefault=function(){h.scrolling=!1,h.firstXY=null,b.preventDefault()},f},proces sTouches:function(a,b){var c=a.changedTouches;this.currentTouchEvent=a;for(var d ,e=0;e<c.length;e++)d=c[e],b.call(this,this.touchToPointer(d))},shouldScroll:fun ction(a){if(this.firstXY){var b,c=a.currentTarget._scrollType;if("none"===c)b=!1 ;else if("XY"===c)b=!0;else{var d=a.changedTouches[0],e=c,f="Y"===c?"X":"Y",g=Ma th.abs(d["client"+e]-this.firstXY[e]),h=Math.abs(d["client"+f]-this.firstXY[f]); b=g>=h}return this.firstXY=null,b}},findTouch:function(a,b){for(var c,d=0,e=a.le ngth;e>d&&(c=a[d]);d++)if(c.identifier===b)return!0},vacuumTouches:function(a){v ar b=a.touches;if(g.pointers()>=b.length){var c=[];g.forEach(function(a,d){if(1! ==d&&!this.findTouch(b,d-2)){var e=a.out;c.push(e)}},this),c.forEach(this.cancel Out,this)}},touchstart:function(a){this.vacuumTouches(a),this.setPrimaryTouch(a. changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCount++,th is.processTouches(a,this.overDown))},overDown:function(a){g.set(a.pointerId,{tar get:a.target,out:a,outTarget:a.target});c.over(a),c.enter(a),c.down(a)},touchmov e:function(a){this.scrolling||(this.shouldScroll(a)?(this.scrolling=!0,this.touc hcancel(a)):(a.preventDefault(),this.processTouches(a,this.moveOverOut)))},moveO verOut:function(a){var b=a,d=g.get(b.pointerId);if(d){var e=d.out,f=d.outTarget; c.move(b),e&&f!==b.target&&(e.relatedTarget=b.target,b.relatedTarget=f,e.target= f,b.target?(c.leaveOut(e),c.enterOver(b)):(b.target=f,b.relatedTarget=null,this. cancelOut(b))),d.out=b,d.outTarget=b.target}},touchend:function(a){this.dedupSyn thMouse(a),this.processTouches(a,this.upOut)},upOut:function(a){this.scrolling|| (c.up(a),c.out(a),c.leave(a)),this.cleanUpPointer(a)},touchcancel:function(a){th is.processTouches(a,this.cancelOut)},cancelOut:function(a){c.cancel(a),c.out(a), c.leave(a),this.cleanUpPointer(a)},cleanUpPointer:function(a){g["delete"](a.poin terId),this.removePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.mouseEv ents.lastTouches,d=b.changedTouches[0];if(this.isPrimaryTouch(d)){var e={x:d.cli entX,y:d.clientY};c.push(e);var f=function(a,b){var c=a.indexOf(b);c>-1&&a.splic e(c,1)}.bind(null,c,e);setTimeout(f,h)}}};k||(b=new a.Installer(l.elementAdded,l .elementRemoved,l.elementChanged,l)),a.touchEvents=l}(window.PointerEventsPolyfi ll),function(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"numb er"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown ","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel" ,"MSGotPointerCapture","MSLostPointerCapture"],register:function(a){b.listen(a,t his.events)},unregister:function(a){b.unlisten(a,this.events)},POINTER_TYPES:["" ,"unavailable","touch","pen","mouse"],prepareEvent:function(a){var c=a;return d& &(c=b.cloneEvent(a),c.pointerType=this.POINTER_TYPES[a.pointerType]),c},cleanup: function(a){c["delete"](a)},MSPointerDown:function(a){c.set(a.pointerId,a);var d =this.prepareEvent(a);b.down(d)},MSPointerMove:function(a){var c=this.prepareEve nt(a);b.move(c)},MSPointerUp:function(a){var c=this.prepareEvent(a);b.up(c),this .cleanup(a.pointerId)},MSPointerOut:function(a){var c=this.prepareEvent(a);b.lea veOut(c)},MSPointerOver:function(a){var c=this.prepareEvent(a);b.enterOver(c)},M SPointerCancel:function(a){var c=this.prepareEvent(a);b.cancel(c),this.cleanup(a .pointerId)},MSLostPointerCapture:function(a){var c=b.makeEvent("lostpointercapt ure",a);b.dispatchEvent(c)},MSGotPointerCapture:function(a){var c=b.makeEvent("g otpointercapture",a);b.dispatchEvent(c)}};a.msEvents=e}(window.PointerEventsPoly fill),function(a){var b=a.dispatcher;if(window.PointerEvent!==a.PointerEvent){if (window.navigator.msPointerEnabled){var c=window.navigator.msMaxTouchPoints;Obje ct.defineProperty(window.navigator,"maxTouchPoints",{value:c,enumerable:!0}),b.r egisterSource("ms",a.msEvents)}else b.registerSource("mouse",a.mouseEvents),void 0!==window.ontouchstart&&b.registerSource("touch",a.touchEvents);b.register(doc ument)}}(window.PointerEventsPolyfill),function(a){function b(a){if(!e.pointerma p.has(a))throw new Error("InvalidPointerId")}var c,d,e=a.dispatcher,f=window.nav igator;f.msPointerEnabled?(c=function(a){b(a),this.msSetPointerCapture(a)},d=fun ction(a){b(a),this.msReleasePointerCapture(a)}):(c=function(a){b(a),e.setCapture (a,this)},d=function(a){b(a),e.releaseCapture(a,this)}),window.Element&&!Element .prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPoin terCapture:{value:c},releasePointerCapture:{value:d}})}(window.PointerEventsPoly fill),PointerGestureEvent.prototype.preventTap=function(){this.tapPrevented=!0}, function(a){a=a||{},a.utils={LCA:{find:function(a,b){if(a===b)return a;if(a.cont ains){if(a.contains(b))return a;if(b.contains(a))return b}var c=this.depth(a),d= this.depth(b),e=c-d;for(e>0?a=this.walk(a,e):b=this.walk(b,-e);a&&b&&a!==b;)a=th is.walk(a,1),b=this.walk(b,1);return a},walk:function(a,b){for(var c=0;b>c;c++)a =a.parentNode;return a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode;retu rn b}}},a.findLCA=function(b,c){return a.utils.LCA.find(b,c)},window.PointerGest ures=a}(window.PointerGestures),function(a){function b(){if(c){var a=new Map;ret urn a.pointers=d,a}this.keys=[],this.values=[]}var c=window.Map&&window.Map.prot otype.forEach,d=function(){return this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(a),this.values.push (b))},has:function(a){return this.keys.indexOf(a)>-1},"delete":function(a){var b =this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.values.splice(b,1))},get :function(a){var b=this.keys.indexOf(a);return this.values[b]},clear:function(){ this.keys.length=0,this.values.length=0},forEach:function(a,b){this.values.forEa ch(function(c,d){a.call(b,c,this.keys[d],this)},this)},pointers:function(){retur n this.keys.length}},a.PointerMap=b}(window.PointerGestures),function(a){var b=[ "bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY"," ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","point erId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","i sPrimary","type","target","currentTarget","screenX","screenY","pageX","pageY","t apPrevented"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,! 1,"",null,null,0,0,0,0],d={handledEvents:new WeakMap,targets:new WeakMap,handler s:{},recognizers:{},events:{},registerRecognizer:function(a,b){var c=b;this.reco gnizers[a]=c,c.events.forEach(function(a){if(c[a]){this.events[a]=!0;var b=c[a]. bind(c);this.addHandler(a,b)}},this)},addHandler:function(a,b){var c=a;this.hand lers[c]||(this.handlers[c]=[]),this.handlers[c].push(b)},registerTarget:function (a){this.listen(Object.keys(this.events),a)},unregisterTarget:function(a){this.u nlisten(Object.keys(this.events),a)},eventHandler:function(a){if(!this.handledEv ents.get(a)){var b=a.type,c=this.handlers[b];c&&this.makeQueue(c,a),this.handled Events.set(a,!0)}},makeQueue:function(a,b){var c=this.cloneEvent(b);requestAnima tionFrame(this.runQueue.bind(this,a,c))},runQueue:function(a,b){this.currentPoin terId=b.pointerId;for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)c(b);this.currentPo interId=0},listen:function(a,b){a.forEach(function(a){this.addEvent(a,this.bound Handler,!1,b)},this)},unlisten:function(a){a.forEach(function(a){this.removeEven t(a,this.boundHandler,!1,inTarget)},this)},addEvent:function(a,b,c,d){d.addEvent Listener(a,b,c)},removeEvent:function(a,b,c,d){d.removeEventListener(a,b,c)},mak eEvent:function(a,b){return new PointerGestureEvent(a,b)},cloneEvent:function(a) {for(var d,e={},f=0;f<b.length;f++)d=b[f],e[d]=a[d]||c[f];return e},dispatchEven t:function(a,b){var c=b||this.targets.get(a);c&&(c.dispatchEvent(a),a.tapPrevent ed&&this.preventTap(this.currentPointerId))},asyncDispatchEvent:function(a,b){re questAnimationFrame(this.dispatchEvent.bind(this,a,b))},preventTap:function(a){v ar b=this.recognizers.tap;b&&b.preventTap(a)}};d.boundHandler=d.eventHandler.bin d(d),d.registerQueue=[],d.immediateRegister=!1,a.dispatcher=d,a.register=functio n(b){if(d.immediateRegister){var c=window.PointerEventsPolyfill;c&&c.register(b) ,a.dispatcher.registerTarget(b)}else d.registerQueue.push(b)},a.register(documen t)}(window.PointerGestures),function(a){var b=a.dispatcher,c={HOLD_DELAY:200,WIG GLE_THRESHOLD:16,events:["pointerdown","pointermove","pointerup","pointercancel" ],heldPointer:null,holdJob:null,pulse:function(){var a=Date.now()-this.heldPoint er.timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a),this.held=!0},can cel:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"),t his.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},pointerdow n:function(a){a.isPrimary&&!this.heldPointer&&(this.heldPointer=a,this.target=a. target,this.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},pointer up:function(a){this.heldPointer&&this.heldPointer.pointerId===a.pointerId&&this. cancel()},pointercancel:function(){this.cancel()},pointermove:function(a){if(thi s.heldPointer&&this.heldPointer.pointerId===a.pointerId){var b=a.clientX-this.he ldPointer.clientX,c=a.clientY-this.heldPointer.clientY;b*b+c*c>this.WIGGLE_THRES HOLD&&this.cancel()}},fireHold:function(a,c){var d={pointerType:this.heldPointer .pointerType,clientX:this.heldPointer.clientX,clientY:this.heldPointer.clientY}; c&&(d.holdTime=c);var e=b.makeEvent(a,d);b.dispatchEvent(e,this.target),e.tapPre vented&&b.preventTap(this.heldPointer.pointerId)}};b.registerRecognizer("hold",c )}(window.PointerGestures),function(a){var b=a.dispatcher,c=new a.PointerMap,d={ events:["pointerdown","pointermove","pointerup","pointercancel"],WIGGLE_THRESHOL D:4,clampDir:function(a){return a>0?1:-1},calcPositionDelta:function(a,b){var c= 0,d=0;return a&&b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{x:c,y:d}},fireTrack:fu nction(a,c,d){var e=d,f=this.calcPositionDelta(e.downEvent,c),g=this.calcPositio nDelta(e.lastMoveEvent,c);g.x&&(e.xDirection=this.clampDir(g.x)),g.y&&(e.yDirect ion=this.clampDir(g.y));var h={dx:f.x,dy:f.y,ddx:g.x,ddy:g.y,clientX:c.clientX,c lientY:c.clientY,pageX:c.pageX,pageY:c.pageY,screenX:c.screenX,screenY:c.screenY ,xDirection:e.xDirection,yDirection:e.yDirection,trackInfo:e.trackInfo,relatedTa rget:c.target,pointerType:c.pointerType},i=b.makeEvent(a,h);e.lastMoveEvent=c,b. dispatchEvent(i,e.downTarget)},pointerdown:function(a){if(a.isPrimary&&("mouse"= ==a.pointerType?1===a.buttons:!0)){var b={downEvent:a,downTarget:a.target,trackI nfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};c.set(a.pointer Id,b)}},pointermove:function(a){var b=c.get(a.pointerId);if(b)if(b.tracking)this .fireTrack("track",a,b);else{var d=this.calcPositionDelta(b.downEvent,a),e=d.x*d .x+d.y*d.y;e>this.WIGGLE_THRESHOLD&&(b.tracking=!0,this.fireTrack("trackstart",b .downEvent,b),this.fireTrack("track",a,b))}},pointerup:function(a){var b=c.get(a .pointerId);b&&(b.tracking&&this.fireTrack("trackend",a,b),c.delete(a.pointerId) )},pointercancel:function(a){this.pointerup(a)}};b.registerRecognizer("track",d) }(window.PointerGestures),function(a){var b=a.dispatcher,c={MIN_VELOCITY:.5,MAX_ QUEUE:4,moveQueue:[],target:null,pointerId:null,events:["pointerdown","pointermo ve","pointerup","pointercancel"],pointerdown:function(a){a.isPrimary&&!this.poin terId&&(this.pointerId=a.pointerId,this.target=a.target,this.addMove(a))},pointe rmove:function(a){a.pointerId===this.pointerId&&this.addMove(a)},pointerup:funct ion(a){a.pointerId===this.pointerId&&this.fireFlick(a),this.cleanup()},pointerca ncel:function(){this.cleanup()},cleanup:function(){this.moveQueue=[],this.target =null,this.pointerId=null},addMove:function(a){this.moveQueue.length>=this.MAX_Q UEUE&&this.moveQueue.shift(),this.moveQueue.push(a)},fireFlick:function(a){for(v ar c,d,e,f,g,h,i,j=a,k=this.moveQueue.length,l=0,m=0,n=0,o=0;k>o&&(i=this.moveQu eue[o]);o++)c=j.timeStamp-i.timeStamp,d=j.clientX-i.clientX,e=j.clientY-i.client Y,f=d/c,g=e/c,h=Math.sqrt(f*f+g*g),h>n&&(l=f,m=g,n=h);var p=Math.abs(l)>Math.abs (m)?"x":"y",q=this.calcAngle(l,m);if(Math.abs(n)>=this.MIN_VELOCITY){var r=b.mak eEvent("flick",{xVelocity:l,yVelocity:m,velocity:n,angle:q,majorAxis:p,pointerTy pe:a.pointerType});b.dispatchEvent(r,this.target)}},calcAngle:function(a,b){retu rn 180*Math.atan2(b,a)/Math.PI}};b.registerRecognizer("flick",c)}(window.Pointer Gestures),function(a){var b=a.dispatcher,c=new a.PointerMap,d=180/Math.PI,e={eve nts:["pointerdown","pointermove","pointerup","pointercancel"],reference:{},point erdown:function(b){if(c.set(b.pointerId,b),2==c.pointers()){var d=this.calcChord (),e=this.calcAngle(d);this.reference={angle:e,diameter:d.diameter,target:a.find LCA(d.a.target,d.b.target)}}},pointerup:function(a){c.delete(a.pointerId)},point ermove:function(a){c.has(a.pointerId)&&(c.set(a.pointerId,a),c.pointers()>1&&thi s.calcPinchRotate())},pointercancel:function(a){this.pointerup(a)},dispatchPinch :function(a,c){var d=a/this.reference.diameter,e=b.makeEvent("pinch",{scale:d,ce nterX:c.center.x,centerY:c.center.y});b.dispatchEvent(e,this.reference.target)}, dispatchRotate:function(a,c){var d=Math.round((a-this.reference.angle)%360),e=b. makeEvent("rotate",{angle:d,centerX:c.center.x,centerY:c.center.y});b.dispatchEv ent(e,this.reference.target)},calcPinchRotate:function(){var a=this.calcChord(), b=a.diameter,c=this.calcAngle(a);b!=this.reference.diameter&&this.dispatchPinch( b,a),c!=this.reference.angle&&this.dispatchRotate(c,a)},calcChord:function(){var a=[];c.forEach(function(b){a.push(b)});for(var b,d,e,f=0,g={a:a[0],b:a[1]},h=0; h<a.length;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.clie ntX-k.clientX),d=Math.abs(i.clientY-k.clientY),e=b+d,e>f&&(f=e,g={a:i,b:k})}retu rn b=Math.abs(g.a.clientX+g.b.clientX)/2,d=Math.abs(g.a.clientY+g.b.clientY)/2,g .center={x:b,y:d},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.b.cl ientX,c=a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*d)%360}};b.registerRe cognizer("pinch",e)}(window.PointerGestures),function(a){var b=a.dispatcher,c=ne w a.PointerMap,d={events:["pointerdown","pointermove","pointerup","pointercancel ","keyup"],pointerdown:function(a){a.isPrimary&&!a.tapPrevented&&c.set(a.pointer Id,{target:a.target,buttons:a.buttons,x:a.clientX,y:a.clientY})},pointermove:fun ction(a){if(a.isPrimary){var b=c.get(a.pointerId);b&&a.tapPrevented&&c.delete(a. pointerId)}},shouldTap:function(a,b){return a.tapPrevented?void 0:"mouse"===a.po interType?1===b.buttons:!0},pointerup:function(d){var e=c.get(d.pointerId);if(e& &this.shouldTap(d,e)){var f=a.findLCA(e.target,d.target);if(f){var g=b.makeEvent ("tap",{x:d.clientX,y:d.clientY,detail:d.detail,pointerType:d.pointerType});b.di spatchEvent(g,f)}}c.delete(d.pointerId)},pointercancel:function(a){c.delete(a.po interId)},keyup:function(a){var c=a.keyCode;if(32===c){var d=a.target;d instance of HTMLInputElement||d instanceof HTMLTextAreaElement||b.dispatchEvent(b.makeEve nt("tap",{x:0,y:0,detail:0,pointerType:"unavailable"}),d)}},preventTap:function( a){c.delete(a)}};b.registerRecognizer("tap",d)}(window.PointerGestures),function (a){function b(){c.immediateRegister=!0;var b=c.registerQueue;b.forEach(a.regist er),b.length=0}var c=a.dispatcher;"complete"===document.readyState?b():document. addEventListener("readystatechange",function(){"complete"===document.readyState& &b()})}(window.PointerGestures),function(){"use strict";function a(a){for(;a.par entNode;)a=a.parentNode;return"function"==typeof a.getElementById?a:null}functio n b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&c[b].close(),d[b ]=c}function c(a,b,c){return c}function d(a){return null==a?"":a}function e(a,b) {a.data=d(b)}function f(a){return function(b){return e(a,b)}}function g(a,b,c,e) {return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAttribute( b,d(e))}function h(a,b,c){return function(d){g(a,b,c,d)}}function i(a){switch(a. type){case"checkbox":return u;case"radio":case"select-multiple":case"select-one" :return"change";case"range":if(/Trident|MSIE/.test(navigator.userAgent))return"c hange";default:return"input"}}function j(a,b,c,e){a[b]=(e||d)(c)}function k(a,b, c){return function(d){return j(a,b,d,c)}}function l(){}function m(a,b,c,d){funct ion e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskC heckpoint()}var f=i(a);return a.addEventListener(f,e),{close:function(){a.remove EventListener(f,e),c.close()},observable_:c}}function n(a){return Boolean(a)}fun ction o(b){if(b.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"== a.tagName&&"radio"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.q uerySelectorAll('input[type="radio"][name="'+b.name+'"]');return s(d,function(a) {return a!=b&&!a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a ).forEach(function(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})} function q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindi ngs_&&g.bindings_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.v alue!=f&&(e.observable_.setValue(c.value),e.observable_.discardChanges(),Platfor m.performMicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var s=A rray.prototype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=func tion(a,b){console.error("Unhandled binding to Node: ",this,a,b)};var t=c;Object. defineProperty(Platform,"enableBindingsReflection",{get:function(){return t===b} ,set:function(a){return t=a?b:c,a},configurable:!0}),Text.prototype.bind=functio n(a,b,c){if("textContent"!==a)return Node.prototype.bind.call(this,a,b,c);if(c)r eturn e(this,b); 36 var f=c.response||c.responseText;b[e]=f,this.fetch(this.extractUrls(f,e),b,i)},k =0;e>k;k++)f=a[k],h=f.url,b[h]?c(i):(g=this.xhr(h,j,this),g.match=f,b[h]=g)},xhr :function(a,b,c){var d=new XMLHttpRequest;return d.open("GET",a,!0),d.send(),d.o nload=function(){b.call(c,null,d)},d.onerror=function(){b.call(c,null,d)},d}},a. Loader=b}(window.Platform),function(a){function b(){this.loader=new d(this.regex )}var c=a.urlResolver,d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([ ^'"\)]*)['"\)]*;/g,resolve:function(a,b,c){var d=function(d){c(this.flatten(a,b, d))}.bind(this);this.loader.process(a,b,d)},resolveNode:function(a,b){var c=a.te xtContent,d=a.ownerDocument.baseURI,e=function(c){a.textContent=c,b(a)};this.res olve(c,d,e)},flatten:function(a,b,d){for(var e,f,g,h=this.loader.extractUrls(a,b ),i=0;i<h.length;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f),g=this.flatten(g, f,d),a=a.replace(e.matched,g);return a},loadStyles:function(a,b){function c(){e+ +,e===f&&b&&b()}for(var d,e=0,f=a.length,g=0;f>g&&(d=a[g]);g++)this.resolveNode( d,c)}};var e=new b;a.styleResolver=e}(window.Platform),function(a){a=a||{},a.ext ernal=a.external||{};var b={shadow:function(a){return a?a.shadowRoot||a.webkitSh adowRoot:void 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},ta rgetingShadow:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0 },olderShadow:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector(" shadow");c&&(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[], c=this.shadow(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:functio n(a,b,c){if(a){var d,e,f=a.elementFromPoint(b,c);for(e=this.targetingShadow(f);e ;){if(d=e.elementFromPoint(b,c)){var g=this.targetingShadow(d);return this.searc hRoot(g,b,c)||d}e=this.olderShadow(e)}return f}},owner:function(a){for(var b=a;b .parentNode;)b=b.parentNode;return b.nodeType!=Node.DOCUMENT_NODE&&b.nodeType!=N ode.DOCUMENT_FRAGMENT_NODE&&(b=document),b},findTarget:function(a){var b=a.clien tX,c=a.clientY,d=this.owner(a.target);return d.elementFromPoint(b,c)||(d=documen t),this.searchRoot(d,b,c)}};a.targetFinding=b,a.findTarget=b.findTarget.bind(b), window.PointerEventsPolyfill=a}(window.PointerEventsPolyfill),function(){functio n a(a){return"body /shadow-deep/ "+b(a)}function b(a){return'[touch-action="'+a+ '"]'}function c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+"; touch- action-delay: none; }"}var d=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y", selectors:["pan-x pan-y","pan-y pan-x"]}],e="",f=(document.head,window.PointerEv ent||window.MSPointerEvent),g=!window.ShadowDOMPolyfill&&document.head.createSha dowRoot;if(f){d.forEach(function(d){String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d) +c(d)+"\n")):(e+=d.selectors.map(b)+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d .rule)+"\n"))});var h=document.createElement("style");h.textContent=e,document.h ead.appendChild(h)}}(),function(a){function b(a,b){b=b||Object.create(null);var e=document.createEvent("Event");e.initEvent(a,b.bubbles||!1,b.cancelable||!1);fo r(var f,g=0;g<c.length;g++)f=c[g],e[f]=b[f]||d[g];e.buttons=b.buttons||0;var h=0 ;return h=b.pressure?b.pressure:e.buttons?.5:0,e.x=e.clientX,e.y=e.clientY,e.poi nterId=b.pointerId||0,e.width=b.width||0,e.height=b.height||0,e.pressure=h,e.til tX=b.tiltX||0,e.tiltY=b.tiltY||0,e.pointerType=b.pointerType||"",e.hwTimestamp=b .hwTimestamp||0,e.isPrimary=b.isPrimary||!1,e}var c=["bubbles","cancelable","vie w","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey ","metaKey","button","relatedTarget","pageX","pageY"],d=[!1,!1,null,null,0,0,0,0 ,!1,!1,!1,!1,0,null,0,0];a.PointerEvent||(a.PointerEvent=b)}(window),function(a) {function b(){if(c){var a=new Map;return a.pointers=d,a}this.keys=[],this.values =[]}var c=window.Map&&window.Map.prototype.forEach,d=function(){return this.size };b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]= b:(this.keys.push(a),this.values.push(b))},has:function(a){return this.keys.inde xOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.spli ce(b,1),this.values.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);ret urn this.values[b]},clear:function(){this.keys.length=0,this.values.length=0},fo rEach:function(a,b){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],th is)},this)},pointers:function(){return this.keys.length}},a.PointerMap=b}(window .PointerEventsPolyfill),function(a){var b=["bubbles","cancelable","view","detail ","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey ","button","relatedTarget","buttons","pointerId","width","height","pressure","ti ltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTar get","which","pageX","pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0, 0,0,0,0,0,"",0,!1,"",null,null,0,0,0],d="undefined"!=typeof SVGElementInstance,e ={pointermap:new a.PointerMap,eventMap:Object.create(null),captureInfo:Object.cr eate(null),eventSources:Object.create(null),eventSourceList:[],registerSource:fu nction(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(this.eventMap[a] =c[a].bind(c))},this),this.eventSources[a]=c,this.eventSourceList.push(c))},regi ster:function(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventS ourceList[d]);d++)b.register.call(b,a)},unregister:function(a){for(var b,c=this. eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.cal l(b,a)},contains:a.external.contains||function(a,b){return a.contains(b)},down:f unction(a){a.bubbles=!0,this.fireEvent("pointerdown",a)},move:function(a){a.bubb les=!0,this.fireEvent("pointermove",a)},up:function(a){a.bubbles=!0,this.fireEve nt("pointerup",a)},enter:function(a){a.bubbles=!1,this.fireEvent("pointerenter", a)},leave:function(a){a.bubbles=!1,this.fireEvent("pointerleave",a)},over:functi on(a){a.bubbles=!0,this.fireEvent("pointerover",a)},out:function(a){a.bubbles=!0 ,this.fireEvent("pointerout",a)},cancel:function(a){a.bubbles=!0,this.fireEvent( "pointercancel",a)},leaveOut:function(a){this.out(a),this.contains(a.target,a.re latedTarget)||this.leave(a)},enterOver:function(a){this.over(a),this.contains(a. target,a.relatedTarget)||this.enter(a)},eventHandler:function(a){if(!a._handledB yPE){var b=a.type,c=this.eventMap&&this.eventMap[b];c&&c(a),a._handledByPE=!0}}, listen:function(a,b){b.forEach(function(b){this.addEvent(a,b)},this)},unlisten:f unction(a,b){b.forEach(function(b){this.removeEvent(a,b)},this)},addEvent:a.exte rnal.addEvent||function(a,b){a.addEventListener(b,this.boundHandler)},removeEven t:a.external.removeEvent||function(a,b){a.removeEventListener(b,this.boundHandle r)},makeEvent:function(a,b){this.captureInfo[b.pointerId]&&(b.relatedTarget=null );var c=new PointerEvent(a,b);return b.preventDefault&&(c.preventDefault=b.preve ntDefault),c._target=c._target||b.target,c},fireEvent:function(a,b){var c=this.m akeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){for(var e,f=O bject.create(null),g=0;g<b.length;g++)e=b[g],f[e]=a[e]||c[g],!d||"target"!==e&&" relatedTarget"!==e||f[e]instanceof SVGElementInstance&&(f[e]=f[e].correspondingU seElement);return a.preventDefault&&(f.preventDefault=function(){a.preventDefaul t()}),f},getTarget:function(a){return this.captureInfo[a.pointerId]||a._target}, setCapture:function(a,b){this.captureInfo[a]&&this.releaseCapture(a),this.captur eInfo[a]=b;var c=document.createEvent("Event");c.initEvent("gotpointercapture",! 0,!1),c.pointerId=a,this.implicitRelease=this.releaseCapture.bind(this,a),docume nt.addEventListener("pointerup",this.implicitRelease),document.addEventListener( "pointercancel",this.implicitRelease),c._target=b,this.asyncDispatchEvent(c)},re leaseCapture:function(a){var b=this.captureInfo[a];if(b){var c=document.createEv ent("Event");c.initEvent("lostpointercapture",!0,!1),c.pointerId=a,this.captureI nfo[a]=void 0,document.removeEventListener("pointerup",this.implicitRelease),doc ument.removeEventListener("pointercancel",this.implicitRelease),c._target=b,this .asyncDispatchEvent(c)}},dispatchEvent:a.external.dispatchEvent||function(a){var b=this.getTarget(a);return b?b.dispatchEvent(a):void 0},asyncDispatchEvent:func tion(a){requestAnimationFrame(this.dispatchEvent.bind(this,a))}};e.boundHandler= e.eventHandler.bind(e),a.dispatcher=e,a.register=e.register.bind(e),a.unregister =e.unregister.bind(e)}(window.PointerEventsPolyfill),function(a){function b(a,b, c,d){this.addCallback=a.bind(d),this.removeCallback=b.bind(d),this.changedCallba ck=c.bind(d),g&&(this.observer=new g(this.mutationWatcher.bind(this)))}var c=Arr ay.prototype.forEach.call.bind(Array.prototype.forEach),d=Array.prototype.map.ca ll.bind(Array.prototype.map),e=Array.prototype.slice.call.bind(Array.prototype.s lice),f=Array.prototype.filter.call.bind(Array.prototype.filter),g=window.Mutati onObserver||window.WebKitMutationObserver,h="[touch-action]",i={subtree:!0,child List:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-action"]};b.p rototype={watchSubtree:function(b){a.targetFinding.canTarget(b)&&this.observer.o bserve(b,i)},enableOnSubtree:function(a){this.watchSubtree(a),a===document&&"com plete"!==document.readyState?this.installOnLoad():this.installNewSubtree(a)},ins tallNewSubtree:function(a){c(this.findElements(a),this.addElement,this)},findEle ments:function(a){return a.querySelectorAll?a.querySelectorAll(h):[]},removeElem ent:function(a){this.removeCallback(a)},addElement:function(a){this.addCallback( a)},elementChanged:function(a,b){this.changedCallback(a,b)},concatLists:function (a,b){return a.concat(e(b))},installOnLoad:function(){document.addEventListener( "readystatechange",function(){"complete"===document.readyState&&this.installNewS ubtree(document)}.bind(this))},isElement:function(a){return a.nodeType===Node.EL EMENT_NODE},flattenMutationTree:function(a){var b=d(a,this.findElements,this);re turn b.push(f(a,this.isElement)),b.reduce(this.concatLists,[])},mutationWatcher: function(a){a.forEach(this.mutationHandler,this)},mutationHandler:function(a){if ("childList"===a.type){var b=this.flattenMutationTree(a.addedNodes);b.forEach(th is.addElement,this);var c=this.flattenMutationTree(a.removedNodes);c.forEach(thi s.removeElement,this)}else"attributes"===a.type&&this.elementChanged(a.target,a. oldValue)}},g||(b.prototype.watchSubtree=function(){console.warn("PointerEventsP olyfill: MutationObservers not found, touch-action will not be dynamically detec ted")}),a.Installer=b}(window.PointerEventsPolyfill),function(a){var b=a.dispatc her,c=b.pointermap,d=25,e=[0,1,4,2],f=!1;try{f=1===new MouseEvent("test",{button s:1}).buttons}catch(g){}var h={POINTER_ID:1,POINTER_TYPE:"mouse",events:["moused own","mousemove","mouseup","mouseover","mouseout"],register:function(a){b.listen (a,this.events)},unregister:function(a){b.unlisten(a,this.events)},lastTouches:[ ],isEventSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX ,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs( f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a),d =c.preventDefault;return c.preventDefault=function(){a.preventDefault(),d()},c.p ointerId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,f||(c.bu ttons=e[c.which]||0),c},mousedown:function(a){if(!this.isEventSimulatedFromTouch (a)){var d=c.has(this.POINTER_ID);d&&this.cancel(a);var e=this.prepareEvent(a);c .set(this.POINTER_ID,a),b.down(e)}},mousemove:function(a){if(!this.isEventSimula tedFromTouch(a)){var c=this.prepareEvent(a);b.move(c)}},mouseup:function(a){if(! this.isEventSimulatedFromTouch(a)){var d=c.get(this.POINTER_ID);if(d&&d.button== =a.button){var e=this.prepareEvent(a);b.up(e),this.cleanupMouse()}}},mouseover:f unction(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a);b.e nterOver(c)}},mouseout:function(a){if(!this.isEventSimulatedFromTouch(a)){var c= this.prepareEvent(a);b.leaveOut(c)}},cancel:function(a){var c=this.prepareEvent( a);b.cancel(c),this.cleanupMouse()},cleanupMouse:function(){c["delete"](this.POI NTER_ID)}};a.mouseEvents=h}(window.PointerEventsPolyfill),function(a){var b,c=a. dispatcher,d=c.captureInfo,e=a.findTarget,f=a.targetFinding.allShadows.bind(a.ta rgetFinding),g=c.pointermap,h=(Array.prototype.map.call.bind(Array.prototype.map ),2500),i=200,j="touch-action",k=!1,l={events:["touchstart","touchmove","touchen d","touchcancel"],register:function(a){k?c.listen(a,this.events):b.enableOnSubtr ee(a)},unregister:function(a){k&&c.unlisten(a,this.events)},elementAdded:functio n(a){var b=a.getAttribute(j),d=this.touchActionToScrollType(b);d&&(a._scrollType =d,c.listen(a,this.events),f(a).forEach(function(a){a._scrollType=d,c.listen(a,t his.events)},this))},elementRemoved:function(a){a._scrollType=void 0,c.unlisten( a,this.events),f(a).forEach(function(a){a._scrollType=void 0,c.unlisten(a,this.e vents)},this)},elementChanged:function(a,b){var c=a.getAttribute(j),d=this.touch ActionToScrollType(c),e=this.touchActionToScrollType(b);d&&e?(a._scrollType=d,f( a).forEach(function(a){a._scrollType=d},this)):e?this.elementRemoved(a):d&&this. elementAdded(a)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y" ,SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/},touchActionToScrollType:func tion(a){var b=a,c=this.scrollTypes;return"none"===b?"none":b===c.XSCROLLER?"X":b ===c.YSCROLLER?"Y":c.SCROLLER.exec(b)?"XY":void 0},POINTER_TYPE:"touch",firstTou ch:null,isPrimaryTouch:function(a){return this.firstTouch===a.identifier},setPri maryTouch:function(a){(0===g.pointers()||1===g.pointers()&&g.has(1))&&(this.firs tTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.clientY},this.scrolling=!1,thi s.cancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimary&&(this. firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId: null,resetClickCount:function(){var a=function(){this.clickCount=0,this.resetId= null}.bind(this);this.resetId=setTimeout(a,i)},cancelResetClickCount:function(){ this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var b=0;retu rn("touchstart"===a||"touchmove"===a)&&(b=1),b},touchToPointer:function(a){var b =this.currentTouchEvent,f=c.cloneEvent(a),g=f.pointerId=a.identifier+2;f.target= d[g]||e(f),f.bubbles=!0,f.cancelable=!0,f.detail=this.clickCount,f.button=0,f.bu ttons=this.typeToButtons(b.type),f.width=a.webkitRadiusX||a.radiusX||0,f.height= a.webkitRadiusY||a.radiusY||0,f.pressure=a.webkitForce||a.force||.5,f.isPrimary= this.isPrimaryTouch(a),f.pointerType=this.POINTER_TYPE;var h=this;return f.preve ntDefault=function(){h.scrolling=!1,h.firstXY=null,b.preventDefault()},f},proces sTouches:function(a,b){var c=a.changedTouches;this.currentTouchEvent=a;for(var d ,e=0;e<c.length;e++)d=c[e],b.call(this,this.touchToPointer(d))},shouldScroll:fun ction(a){if(this.firstXY){var b,c=a.currentTarget._scrollType;if("none"===c)b=!1 ;else if("XY"===c)b=!0;else{var d=a.changedTouches[0],e=c,f="Y"===c?"X":"Y",g=Ma th.abs(d["client"+e]-this.firstXY[e]),h=Math.abs(d["client"+f]-this.firstXY[f]); b=g>=h}return this.firstXY=null,b}},findTouch:function(a,b){for(var c,d=0,e=a.le ngth;e>d&&(c=a[d]);d++)if(c.identifier===b)return!0},vacuumTouches:function(a){v ar b=a.touches;if(g.pointers()>=b.length){var c=[];g.forEach(function(a,d){if(1! ==d&&!this.findTouch(b,d-2)){var e=a.out;c.push(e)}},this),c.forEach(this.cancel Out,this)}},touchstart:function(a){this.vacuumTouches(a),this.setPrimaryTouch(a. changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCount++,th is.processTouches(a,this.overDown))},overDown:function(a){g.set(a.pointerId,{tar get:a.target,out:a,outTarget:a.target});c.over(a),c.enter(a),c.down(a)},touchmov e:function(a){this.scrolling||(this.shouldScroll(a)?(this.scrolling=!0,this.touc hcancel(a)):(a.preventDefault(),this.processTouches(a,this.moveOverOut)))},moveO verOut:function(a){var b=a,d=g.get(b.pointerId);if(d){var e=d.out,f=d.outTarget; c.move(b),e&&f!==b.target&&(e.relatedTarget=b.target,b.relatedTarget=f,e.target= f,b.target?(c.leaveOut(e),c.enterOver(b)):(b.target=f,b.relatedTarget=null,this. cancelOut(b))),d.out=b,d.outTarget=b.target}},touchend:function(a){this.dedupSyn thMouse(a),this.processTouches(a,this.upOut)},upOut:function(a){this.scrolling|| (c.up(a),c.out(a),c.leave(a)),this.cleanUpPointer(a)},touchcancel:function(a){th is.processTouches(a,this.cancelOut)},cancelOut:function(a){c.cancel(a),c.out(a), c.leave(a),this.cleanUpPointer(a)},cleanUpPointer:function(a){g["delete"](a.poin terId),this.removePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.mouseEv ents.lastTouches,d=b.changedTouches[0];if(this.isPrimaryTouch(d)){var e={x:d.cli entX,y:d.clientY};c.push(e);var f=function(a,b){var c=a.indexOf(b);c>-1&&a.splic e(c,1)}.bind(null,c,e);setTimeout(f,h)}}};k||(b=new a.Installer(l.elementAdded,l .elementRemoved,l.elementChanged,l)),a.touchEvents=l}(window.PointerEventsPolyfi ll),function(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"numb er"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown ","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel" ,"MSGotPointerCapture","MSLostPointerCapture"],register:function(a){b.listen(a,t his.events)},unregister:function(a){b.unlisten(a,this.events)},POINTER_TYPES:["" ,"unavailable","touch","pen","mouse"],prepareEvent:function(a){var c=a;return d& &(c=b.cloneEvent(a),c.pointerType=this.POINTER_TYPES[a.pointerType]),c},cleanup: function(a){c["delete"](a)},MSPointerDown:function(a){c.set(a.pointerId,a);var d =this.prepareEvent(a);b.down(d)},MSPointerMove:function(a){var c=this.prepareEve nt(a);b.move(c)},MSPointerUp:function(a){var c=this.prepareEvent(a);b.up(c),this .cleanup(a.pointerId)},MSPointerOut:function(a){var c=this.prepareEvent(a);b.lea veOut(c)},MSPointerOver:function(a){var c=this.prepareEvent(a);b.enterOver(c)},M SPointerCancel:function(a){var c=this.prepareEvent(a);b.cancel(c),this.cleanup(a .pointerId)},MSLostPointerCapture:function(a){var c=b.makeEvent("lostpointercapt ure",a);b.dispatchEvent(c)},MSGotPointerCapture:function(a){var c=b.makeEvent("g otpointercapture",a);b.dispatchEvent(c)}};a.msEvents=e}(window.PointerEventsPoly fill),function(a){var b=a.dispatcher;if(window.PointerEvent!==a.PointerEvent){if (window.navigator.msPointerEnabled){var c=window.navigator.msMaxTouchPoints;Obje ct.defineProperty(window.navigator,"maxTouchPoints",{value:c,enumerable:!0}),b.r egisterSource("ms",a.msEvents)}else b.registerSource("mouse",a.mouseEvents),void 0!==window.ontouchstart&&b.registerSource("touch",a.touchEvents);b.register(doc ument)}}(window.PointerEventsPolyfill),function(a){function b(a){if(!e.pointerma p.has(a))throw new Error("InvalidPointerId")}var c,d,e=a.dispatcher,f=window.nav igator;f.msPointerEnabled?(c=function(a){b(a),this.msSetPointerCapture(a)},d=fun ction(a){b(a),this.msReleasePointerCapture(a)}):(c=function(a){b(a),e.setCapture (a,this)},d=function(a){b(a),e.releaseCapture(a,this)}),window.Element&&!Element .prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPoin terCapture:{value:c},releasePointerCapture:{value:d}})}(window.PointerEventsPoly fill),PointerGestureEvent.prototype.preventTap=function(){this.tapPrevented=!0}, function(a){a=a||{},a.utils={LCA:{find:function(a,b){if(a===b)return a;if(a.cont ains){if(a.contains(b))return a;if(b.contains(a))return b}var c=this.depth(a),d= this.depth(b),e=c-d;for(e>0?a=this.walk(a,e):b=this.walk(b,-e);a&&b&&a!==b;)a=th is.walk(a,1),b=this.walk(b,1);return a},walk:function(a,b){for(var c=0;b>c;c++)a =a.parentNode;return a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode;retu rn b}}},a.findLCA=function(b,c){return a.utils.LCA.find(b,c)},window.PointerGest ures=a}(window.PointerGestures),function(a){function b(){if(c){var a=new Map;ret urn a.pointers=d,a}this.keys=[],this.values=[]}var c=window.Map&&window.Map.prot otype.forEach,d=function(){return this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(this.keys.push(a),this.values.push (b))},has:function(a){return this.keys.indexOf(a)>-1},"delete":function(a){var b =this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1),this.values.splice(b,1))},get :function(a){var b=this.keys.indexOf(a);return this.values[b]},clear:function(){ this.keys.length=0,this.values.length=0},forEach:function(a,b){this.values.forEa ch(function(c,d){a.call(b,c,this.keys[d],this)},this)},pointers:function(){retur n this.keys.length}},a.PointerMap=b}(window.PointerGestures),function(a){var b=[ "bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY"," ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","point erId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","i sPrimary","type","target","currentTarget","screenX","screenY","pageX","pageY","t apPrevented"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,! 1,"",null,null,0,0,0,0],d={handledEvents:new WeakMap,targets:new WeakMap,handler s:{},recognizers:{},events:{},registerRecognizer:function(a,b){var c=b;this.reco gnizers[a]=c,c.events.forEach(function(a){if(c[a]){this.events[a]=!0;var b=c[a]. bind(c);this.addHandler(a,b)}},this)},addHandler:function(a,b){var c=a;this.hand lers[c]||(this.handlers[c]=[]),this.handlers[c].push(b)},registerTarget:function (a){this.listen(Object.keys(this.events),a)},unregisterTarget:function(a){this.u nlisten(Object.keys(this.events),a)},eventHandler:function(a){if(!this.handledEv ents.get(a)){var b=a.type,c=this.handlers[b];c&&this.makeQueue(c,a),this.handled Events.set(a,!0)}},makeQueue:function(a,b){var c=this.cloneEvent(b);requestAnima tionFrame(this.runQueue.bind(this,a,c))},runQueue:function(a,b){this.currentPoin terId=b.pointerId;for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)c(b);this.currentPo interId=0},listen:function(a,b){a.forEach(function(a){this.addEvent(a,this.bound Handler,!1,b)},this)},unlisten:function(a){a.forEach(function(a){this.removeEven t(a,this.boundHandler,!1,inTarget)},this)},addEvent:function(a,b,c,d){d.addEvent Listener(a,b,c)},removeEvent:function(a,b,c,d){d.removeEventListener(a,b,c)},mak eEvent:function(a,b){return new PointerGestureEvent(a,b)},cloneEvent:function(a) {for(var d,e={},f=0;f<b.length;f++)d=b[f],e[d]=a[d]||c[f];return e},dispatchEven t:function(a,b){var c=b||this.targets.get(a);c&&(c.dispatchEvent(a),a.tapPrevent ed&&this.preventTap(this.currentPointerId))},asyncDispatchEvent:function(a,b){re questAnimationFrame(this.dispatchEvent.bind(this,a,b))},preventTap:function(a){v ar b=this.recognizers.tap;b&&b.preventTap(a)}};d.boundHandler=d.eventHandler.bin d(d),d.registerQueue=[],d.immediateRegister=!1,a.dispatcher=d,a.register=functio n(b){if(d.immediateRegister){var c=window.PointerEventsPolyfill;c&&c.register(b) ,a.dispatcher.registerTarget(b)}else d.registerQueue.push(b)},a.register(documen t)}(window.PointerGestures),function(a){var b=a.dispatcher,c={HOLD_DELAY:200,WIG GLE_THRESHOLD:16,events:["pointerdown","pointermove","pointerup","pointercancel" ],heldPointer:null,holdJob:null,pulse:function(){var a=Date.now()-this.heldPoint er.timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a),this.held=!0},can cel:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"),t his.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},pointerdow n:function(a){a.isPrimary&&!this.heldPointer&&(this.heldPointer=a,this.target=a. target,this.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},pointer up:function(a){this.heldPointer&&this.heldPointer.pointerId===a.pointerId&&this. cancel()},pointercancel:function(){this.cancel()},pointermove:function(a){if(thi s.heldPointer&&this.heldPointer.pointerId===a.pointerId){var b=a.clientX-this.he ldPointer.clientX,c=a.clientY-this.heldPointer.clientY;b*b+c*c>this.WIGGLE_THRES HOLD&&this.cancel()}},fireHold:function(a,c){var d={pointerType:this.heldPointer .pointerType,clientX:this.heldPointer.clientX,clientY:this.heldPointer.clientY}; c&&(d.holdTime=c);var e=b.makeEvent(a,d);b.dispatchEvent(e,this.target),e.tapPre vented&&b.preventTap(this.heldPointer.pointerId)}};b.registerRecognizer("hold",c )}(window.PointerGestures),function(a){var b=a.dispatcher,c=new a.PointerMap,d={ events:["pointerdown","pointermove","pointerup","pointercancel"],WIGGLE_THRESHOL D:4,clampDir:function(a){return a>0?1:-1},calcPositionDelta:function(a,b){var c= 0,d=0;return a&&b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{x:c,y:d}},fireTrack:fu nction(a,c,d){var e=d,f=this.calcPositionDelta(e.downEvent,c),g=this.calcPositio nDelta(e.lastMoveEvent,c);g.x&&(e.xDirection=this.clampDir(g.x)),g.y&&(e.yDirect ion=this.clampDir(g.y));var h={dx:f.x,dy:f.y,ddx:g.x,ddy:g.y,clientX:c.clientX,c lientY:c.clientY,pageX:c.pageX,pageY:c.pageY,screenX:c.screenX,screenY:c.screenY ,xDirection:e.xDirection,yDirection:e.yDirection,trackInfo:e.trackInfo,relatedTa rget:c.target,pointerType:c.pointerType},i=b.makeEvent(a,h);e.lastMoveEvent=c,b. dispatchEvent(i,e.downTarget)},pointerdown:function(a){if(a.isPrimary&&("mouse"= ==a.pointerType?1===a.buttons:!0)){var b={downEvent:a,downTarget:a.target,trackI nfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};c.set(a.pointer Id,b)}},pointermove:function(a){var b=c.get(a.pointerId);if(b)if(b.tracking)this .fireTrack("track",a,b);else{var d=this.calcPositionDelta(b.downEvent,a),e=d.x*d .x+d.y*d.y;e>this.WIGGLE_THRESHOLD&&(b.tracking=!0,this.fireTrack("trackstart",b .downEvent,b),this.fireTrack("track",a,b))}},pointerup:function(a){var b=c.get(a .pointerId);b&&(b.tracking&&this.fireTrack("trackend",a,b),c.delete(a.pointerId) )},pointercancel:function(a){this.pointerup(a)}};b.registerRecognizer("track",d) }(window.PointerGestures),function(a){var b=a.dispatcher,c={MIN_VELOCITY:.5,MAX_ QUEUE:4,moveQueue:[],target:null,pointerId:null,events:["pointerdown","pointermo ve","pointerup","pointercancel"],pointerdown:function(a){a.isPrimary&&!this.poin terId&&(this.pointerId=a.pointerId,this.target=a.target,this.addMove(a))},pointe rmove:function(a){a.pointerId===this.pointerId&&this.addMove(a)},pointerup:funct ion(a){a.pointerId===this.pointerId&&this.fireFlick(a),this.cleanup()},pointerca ncel:function(){this.cleanup()},cleanup:function(){this.moveQueue=[],this.target =null,this.pointerId=null},addMove:function(a){this.moveQueue.length>=this.MAX_Q UEUE&&this.moveQueue.shift(),this.moveQueue.push(a)},fireFlick:function(a){for(v ar c,d,e,f,g,h,i,j=a,k=this.moveQueue.length,l=0,m=0,n=0,o=0;k>o&&(i=this.moveQu eue[o]);o++)c=j.timeStamp-i.timeStamp,d=j.clientX-i.clientX,e=j.clientY-i.client Y,f=d/c,g=e/c,h=Math.sqrt(f*f+g*g),h>n&&(l=f,m=g,n=h);var p=Math.abs(l)>Math.abs (m)?"x":"y",q=this.calcAngle(l,m);if(Math.abs(n)>=this.MIN_VELOCITY){var r=b.mak eEvent("flick",{xVelocity:l,yVelocity:m,velocity:n,angle:q,majorAxis:p,pointerTy pe:a.pointerType});b.dispatchEvent(r,this.target)}},calcAngle:function(a,b){retu rn 180*Math.atan2(b,a)/Math.PI}};b.registerRecognizer("flick",c)}(window.Pointer Gestures),function(a){var b=a.dispatcher,c=new a.PointerMap,d=180/Math.PI,e={eve nts:["pointerdown","pointermove","pointerup","pointercancel"],reference:{},point erdown:function(b){if(c.set(b.pointerId,b),2==c.pointers()){var d=this.calcChord (),e=this.calcAngle(d);this.reference={angle:e,diameter:d.diameter,target:a.find LCA(d.a.target,d.b.target)}}},pointerup:function(a){c.delete(a.pointerId)},point ermove:function(a){c.has(a.pointerId)&&(c.set(a.pointerId,a),c.pointers()>1&&thi s.calcPinchRotate())},pointercancel:function(a){this.pointerup(a)},dispatchPinch :function(a,c){var d=a/this.reference.diameter,e=b.makeEvent("pinch",{scale:d,ce nterX:c.center.x,centerY:c.center.y});b.dispatchEvent(e,this.reference.target)}, dispatchRotate:function(a,c){var d=Math.round((a-this.reference.angle)%360),e=b. makeEvent("rotate",{angle:d,centerX:c.center.x,centerY:c.center.y});b.dispatchEv ent(e,this.reference.target)},calcPinchRotate:function(){var a=this.calcChord(), b=a.diameter,c=this.calcAngle(a);b!=this.reference.diameter&&this.dispatchPinch( b,a),c!=this.reference.angle&&this.dispatchRotate(c,a)},calcChord:function(){var a=[];c.forEach(function(b){a.push(b)});for(var b,d,e,f=0,g={a:a[0],b:a[1]},h=0; h<a.length;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.clie ntX-k.clientX),d=Math.abs(i.clientY-k.clientY),e=b+d,e>f&&(f=e,g={a:i,b:k})}retu rn b=Math.abs(g.a.clientX+g.b.clientX)/2,d=Math.abs(g.a.clientY+g.b.clientY)/2,g .center={x:b,y:d},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.b.cl ientX,c=a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*d)%360}};b.registerRe cognizer("pinch",e)}(window.PointerGestures),function(a){var b=a.dispatcher,c=ne w a.PointerMap,d={events:["pointerdown","pointermove","pointerup","pointercancel ","keyup"],pointerdown:function(a){a.isPrimary&&!a.tapPrevented&&c.set(a.pointer Id,{target:a.target,buttons:a.buttons,x:a.clientX,y:a.clientY})},pointermove:fun ction(a){if(a.isPrimary){var b=c.get(a.pointerId);b&&a.tapPrevented&&c.delete(a. pointerId)}},shouldTap:function(a,b){return a.tapPrevented?void 0:"mouse"===a.po interType?1===b.buttons:!0},pointerup:function(d){var e=c.get(d.pointerId);if(e& &this.shouldTap(d,e)){var f=a.findLCA(e.target,d.target);if(f){var g=b.makeEvent ("tap",{x:d.clientX,y:d.clientY,detail:d.detail,pointerType:d.pointerType});b.di spatchEvent(g,f)}}c.delete(d.pointerId)},pointercancel:function(a){c.delete(a.po interId)},keyup:function(a){var c=a.keyCode;if(32===c){var d=a.target;d instance of HTMLInputElement||d instanceof HTMLTextAreaElement||b.dispatchEvent(b.makeEve nt("tap",{x:0,y:0,detail:0,pointerType:"unavailable"}),d)}},preventTap:function( a){c.delete(a)}};b.registerRecognizer("tap",d)}(window.PointerGestures),function (a){function b(){c.immediateRegister=!0;var b=c.registerQueue;b.forEach(a.regist er),b.length=0}var c=a.dispatcher;"complete"===document.readyState?b():document. addEventListener("readystatechange",function(){"complete"===document.readyState& &b()})}(window.PointerGestures),function(){"use strict";function a(a){for(;a.par entNode;)a=a.parentNode;return"function"==typeof a.getElementById?a:null}functio n b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&c[b].close(),d[b ]=c}function c(a,b,c){return c}function d(a){return null==a?"":a}function e(a,b) {a.data=d(b)}function f(a){return function(b){return e(a,b)}}function g(a,b,c,e) {return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAttribute( b,d(e))}function h(a,b,c){return function(d){g(a,b,c,d)}}function i(a){switch(a. type){case"checkbox":return u;case"radio":case"select-multiple":case"select-one" :return"change";case"range":if(/Trident|MSIE/.test(navigator.userAgent))return"c hange";default:return"input"}}function j(a,b,c,e){a[b]=(e||d)(c)}function k(a,b, c){return function(d){return j(a,b,d,c)}}function l(){}function m(a,b,c,d){funct ion e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskC heckpoint()}var f=i(a);return a.addEventListener(f,e),{close:function(){a.remove EventListener(f,e),c.close()},observable_:c}}function n(a){return Boolean(a)}fun ction o(b){if(b.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"== a.tagName&&"radio"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.q uerySelectorAll('input[type="radio"][name="'+b.name+'"]');return s(d,function(a) {return a!=b&&!a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a ).forEach(function(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})} function q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindi ngs_&&g.bindings_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.v alue!=f&&(e.observable_.setValue(c.value),e.observable_.discardChanges(),Platfor m.performMicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var s=A rray.prototype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=func tion(a,b){console.error("Unhandled binding to Node: ",this,a,b)};var t=c;Object. defineProperty(Platform,"enableBindingsReflection",{get:function(){return t===b} ,set:function(a){return t=a?b:c,a},configurable:!0}),Text.prototype.bind=functio n(a,b,c){if("textContent"!==a)return Node.prototype.bind.call(this,a,b,c);if(c)r eturn e(this,b);
37 var d=b;return e(this,d.open(f(this))),t(this,a,d)},Element.prototype.bind=funct ion(a,b,c){var d="?"==a[a.length-1];if(d&&(this.removeAttribute(a),a=a.slice(0,- 1)),c)return g(this,a,d,b);var e=b;return g(this,a,d,e.open(h(this,a,d))),t(this ,a,e)};var u;!function(){var a=document.createElement("div"),b=a.appendChild(doc ument.createElement("input"));b.setAttribute("type","checkbox");var c,d=0;b.addE ventListener("click",function(){d++,c=c||"click"}),b.addEventListener("change",f unction(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.initMou seEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u= 1==d?"change":c}(),HTMLInputElement.prototype.bind=function(a,c,e){if("value"!== a&&"checked"!==a)return HTMLElement.prototype.bind.call(this,a,c,e);this.removeA ttribute(a);var f="checked"==a?n:d,g="checked"==a?p:l;if(e)return j(this,a,c,f); var h=c,i=m(this,a,h,g);return j(this,a,h.open(k(this,a,f)),f),b(this,a,i)},HTML TextAreaElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement .prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return j(thi s,"value",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(this,"va lue",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if("valu e"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAttribut e("value"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.open(r (this))),t(this,a,e)},HTMLSelectElement.prototype.bind=function(a,c,d){if("selec tedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLE lement.prototype.bind.call(this,a,c,d);if(this.removeAttribute(a),d)return j(thi s,a,c);var e=c,f=m(this,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f)}}(th is),function(a){"use strict";function b(a){if(!a)throw new Error("Assertion fail ed")}function c(a){for(var b;b=a.parentNode;)a=b;return a}function d(a,b){if(b){ for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelector(e) :a.getElementById&&(d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.template Creator_;return d}}function e(a){return"template"==a.tagName&&"http://www.w3.org /2000/svg"==a.namespaceURI}function f(a){return"TEMPLATE"==a.tagName&&"http://ww w.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(J[a.tagName]&& a.hasAttribute("template"))}function h(a){return void 0===a.isTemplate_&&(a.isTe mplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.query SelectorAll(L);h(a)&&b(a),E(c,b)}function j(a){function b(a){HTMLTemplateElement .decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.getOwnPropertyNames(b). forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b, c))})}function l(a){var b=a.ownerDocument;if(!b.defaultView)return b;var c=b.tem plateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("");c.lastC hild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}function m( a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagi ngDocument_=b.implementation.createHTMLDocument("");var c=b.stagingDocument_.cre ateElement("base");c.href=document.baseURI,b.stagingDocument_.head.appendChild(c ),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.st agingDocument_}return a.stagingDocument_}function n(a){var b=a.ownerDocument.cre ateElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c .length;d-->0;){var e=c[d];I[e.name]&&("template"!==e.name&&b.setAttribute(e.nam e,e.value),a.removeAttribute(e.name))}return b}function o(a){var b=a.ownerDocume nt.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attribut es,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttribut e(e.name)}return a.parentNode.removeChild(a),b}function p(a,b,c){var d=a.content ;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}fu nction q(a){N?a.__proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement. prototype)}function r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFnSc heduled_=!1;var b=z(a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}) ,a.setModelFnScheduled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelF n_))}function s(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f >h;){var g=a.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k) &&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h ));break}e=e||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j& &l;var o=d&&d(n,b,c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h== =f&&e.push(""),e.hasOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&& ""==e[4],e.onlyOneTime=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length; c+=4){var d=e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}} function t(a,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom( d);return b.isSimplePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}func tion u(a,b,c,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSim plePath?f:new ObserverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOne Time)return t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundO bserver,f=1;f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPat h(i):e.addObserver(i)}else{var j=b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath (d,j)}}return new ObserverTransform(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime );i&&d&&d.push(i)}if(b.isTemplate){a.model_=c;var j=a.processBindingDirectives_( b);d&&j&&d.push(j)}}function x(a,b,c){var d=a.getAttribute(b);return s(""==d?"{{ }}":d,b,a,c)}function y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e++){fo r(var f=a.attributes[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a) ||g!==H&&g!==F&&g!==G){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isTempla te=!0,d.if=x(a,H,c),d.bind=x(a,F,c),d.repeat=x(a,G,c),!d.if||d.bind||d.repeat||( d.bind=s("{{}}",F,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NODE)ret urn y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b);if( c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.appendC hild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.children [i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.setDel egate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var d=0,e =a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(a){th is.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.ite ratedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var D,E=Array.p rototype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a. Map.prototype.forEach?D=a.Map:(D=function(){this.keys=[],this.values=[]},D.proto type={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.v alues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(! (0>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);ret urn 0>b?!1:(this.keys.splice(b,1),this.values.splice(b,1),!0)},forEach:function( a,b){for(var c=0;c<this.keys.length;c++)a.call(b||this,this.values[c],this.keys[ c],this)}});"function"!=typeof document.contains&&(Document.prototype.contains=f unction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains (a)});var F="bind",G="repeat",H="if",I={template:!0,repeat:!0,bind:!0,ref:!0},J= {THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTI ON:!0,OPTGROUP:!0},K="undefined"!=typeof HTMLTemplateElement;K&&!function(){var a=document.createElement("template"),b=a.content.ownerDocument,c=b.appendChild(b .createElement("html")),d=c.appendChild(b.createElement("head")),e=b.createEleme nt("base");e.href=document.baseURI,d.appendChild(e)}();var L="template, "+Object .keys(J).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");docume nt.addEventListener("DOMContentLoaded",function(){j(document),Platform.performMi crotaskCheckpoint()},!1),K||(a.HTMLTemplateElement=function(){throw TypeError("I llegal constructor")});var M,N="__proto__"in{};"function"==typeof MutationObserv er&&(M=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].target.r efChanged_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecora ted_)return!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&K,i=h,k=!h,m=!1;if(h ||(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=K,m=!0):e(d)&&(d=o(a),d.templa teIsDecorated_=!0,h=K)),!h){q(d);var r=l(d);d.content_=r.createDocumentFragment( )}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateElement.b ootstrap=j;var O=a.HTMLUnknownElement||HTMLElement,P={get:function(){return this .content_},enumerable:!0,configurable:!0};K||(HTMLTemplateElement.prototype=Obje ct.create(O.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"cont ent",P)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a)retur n Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d. setAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),this.r efChanged_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_={ref:b },b)},processBindingDirectives_:function(a){return this.iterator_&&this.iterator _.closeDeps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new C(this )),this.iterator_.updateDependencies(a,this.model_),M&&M.observe(this,{attribute s:!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterat or_.close(),this.iterator_=void 0))},createInstance:function(a,b,c){b&&(c=this.n ewDelegate_(b)),this.refContent_||(this.refContent_=this.ref_.content);var d=thi s.refContent_;if(null===d.firstChild)return Q;var e=this.bindingMap_;e&&e.conten t===d||(e=B(d,c&&c.prepareBinding)||[],e.content=d,this.bindingMap_=e);var f=m(t his),g=f.createDocumentFragment();g.templateCreator_=this,g.protoContent_=d,g.bi ndings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNode:null,last Node:null,model:a},i=0,j=!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibli ng&&(j=!0);var l=A(k,g,f,e.children[i++],a,c,g.bindings_);l.templateInstance_=h, j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.te mplateCreator_=void 0,g.protoContent_=void 0,g},get model(){return this.model_}, set model(a){this.model_=a,r(this)},get bindingDelegate(){return this.delegate_& &this.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==t his.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.it erator_.updateIteratedValue())},clear:function(){this.model_=void 0,this.delegat e_=void 0,this.bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.re fContent_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.c lose(),this.iterator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.bi ndingMap_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},newDelegate_:function(a){function b( b){var c=a&&a[b];if("function"==typeof c)return function(){return c.apply(a,argu ments)}}return a?{raw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel: b("prepareInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePosit ionChanged")}:{}},set bindingDelegate(a){if(this.delegate_)throw Error("Template must be cleared before a new bindingDelegate can be assigned");this.setDelegate _(this.newDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"));if(a| |(a=this.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}}),Object.define Property(Node.prototype,"templateInstance",{get:function(){var a=this.templateIn stance_;return a?a:this.parentNode?this.parentNode.templateInstance:void 0}});va r Q=document.createDocumentFragment();Q.bindings_=[],Q.terminator_=null,C.protot ype={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close( ),a.oneTime===!1&&a.value.close())},updateDependencies:function(a,b){this.closeD eps();var c=this.deps={},d=this.templateElement_;if(a.if){if(c.hasIf=!0,c.ifOneT ime=a.if.onlyOneTime,c.ifValue=v(H,a.if,d,b),c.ifOneTime&&!c.ifValue)return void this.updateIteratedValue();c.ifOneTime||c.ifValue.open(this.updateIteratedValue ,this)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(G,a.repeat ,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(F,a.bind,d,b)),c.oneT ime||c.value.open(this.updateIteratedValue,this),this.updateIteratedValue()},upd ateIteratedValue:function(){if(this.deps.hasIf){var a=this.deps.ifValue;if(this. deps.ifOneTime||(a=a.discardChanges()),!a)return void this.valueChanged()}var b= this.deps.value;this.deps.oneTime||(b=b.discardChanges()),this.deps.repeat||(b=[ b]);var c=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(b);this.valueChang ed(b,c)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedVa lue&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObser ver(this.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.ha ndleSplices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue) ))},getLastInstanceNode:function(a){if(-1==a)return this.templateElement_;var b= this.instances[a],c=b.terminator_;if(!c)return this.getLastInstanceNode(a-1);if( c.nodeType!==Node.ELEMENT_NODE||this.templateElement_===c)return c;var d=c.itera tor_;return d?d.getLastTemplateNode():c},getLastTemplateNode:function(){return t his.getLastInstanceNode(this.instances.length-1)},insertInstanceAt:function(a,b) {var c=this.getLastInstanceNode(a-1),d=this.templateElement_.parentNode;this.ins tances.splice(a,0,b),d.insertBefore(b,c.nextSibling)},extractInstanceAt:function (a){for(var b=this.getLastInstanceNode(a-1),c=this.getLastInstanceNode(a),d=this .templateElement_.parentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nex tSibling;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},getDelegateFn:fun ction(a){return a=a&&a(this.templateElement_),"function"==typeof a?a:null},handl eSplices:function(a){if(!this.closed&&a.length){var b=this.templateElement_;if(! b.parentNode)return void this.close();ArrayObserver.applySplices(this.iteratedVa lue,this.presentValue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this .instanceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.i nstancePositionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c &&c.prepareInstancePositionChanged));for(var d=new D,e=0,f=0;f<a.length;f++){for (var g=a[f],h=g.removed,i=0;i<h.length;i++){var j=h[i],k=this.extractInstanceAt( g.index+e);k!==Q&&d.set(j,k)}e-=g.addedCount}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<g.index+g.addedCount;l++){var j=this.iteratedValue[l],k=d.get (j);k?d.delete(j):(this.instanceModelFn_&&(j=this.instanceModelFn_(j)),k=void 0= ==j?Q:b.createInstance(j,void 0,c)),this.insertInstanceAt(l,k)}d.forEach(functio n(a){this.closeInstanceBindings(a)},this),this.instancePositionChangedFn_&&this. reportInstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.instances[a ];b!==Q&&this.instancePositionChangedFn_(b.templateInstance_,a)},reportInstances Moved:function(a){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b< e.index;)this.reportInstanceMoved(b),b++;else b=e.index;for(;b<e.index+e.addedCo unt;)this.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)fo r(var f=this.instances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanc eBindings:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},uno bserve:function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObse rver=void 0)},close:function(){if(!this.closed){this.unobserve();for(var a=0;a<t his.instances.length;a++)this.closeInstanceBindings(this.instances[a]);this.inst ances.length=0,this.closeDeps(),this.templateElement_.iterator_=void 0,this.clos ed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),function(a){"use stri ct";function b(a,b){if(!a)throw new Error("ASSERT: "+b)}function c(a){return a>= 48&&57>=a}function d(a){return 32===a||9===a||11===a||12===a||160===a||a>=5760&& " ᠎              ".indexOf(String.fromCharCode(a))>0}function e(a){return 10=== a||13===a||8232===a||8233===a}function f(a){return 36===a||95===a||a>=65&&90>=a| |a>=97&&122>=a}function g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a| |a>=48&&57>=a}function h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCode At(X));)++X}function j(){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;re turn W.slice(a,X)}function k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Ident ifier:h(b)?S.Keyword:"null"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanL iteral:S.Identifier,{type:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.ch arCodeAt(X),e=W[X];switch(d){case 46:case 40:case 41:case 59:case 44:case 123:ca se 125:case 91:case 93:case 58:case 63:return++X,{type:S.Punctuator,value:String .fromCharCode(d),range:[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){ca se 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return X+ =2,{type:S.Punctuator,value:String.fromCharCode(d)+String.fromCharCode(a),range: [c,X]};case 33:case 61:return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator, value:W.slice(c,X),range:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2 ,{type:S.Punctuator,value:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{t ype:S.Punctuator,value:e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}fu nction m(){var a,d,e;if(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal mu st start with a decimal digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++ ],e=W[X],"0"===a&&e&&c(e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.c harCodeAt(X));)a+=W[X++];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+ =W[X++];e=W[X]}if("e"===e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W [X++]),c(W.charCodeAt(X)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.Unexpec tedToken,"ILLEGAL");return f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL") ,{type:S.NumericLiteral,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d, f="",g=!1;for(a=W[X],b("'"===a||'"'===a,"String literal must starts with a quote "),c=X,++X;Y>X;){if(d=W[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.ch arCodeAt(0)))"\r"===d&&"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;cas e"r":f+="\r";break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";br eak;case"v":f+=" 37 var d=b;return e(this,d.open(f(this))),t(this,a,d)},Element.prototype.bind=funct ion(a,b,c){var d="?"==a[a.length-1];if(d&&(this.removeAttribute(a),a=a.slice(0,- 1)),c)return g(this,a,d,b);var e=b;return g(this,a,d,e.open(h(this,a,d))),t(this ,a,e)};var u;!function(){var a=document.createElement("div"),b=a.appendChild(doc ument.createElement("input"));b.setAttribute("type","checkbox");var c,d=0;b.addE ventListener("click",function(){d++,c=c||"click"}),b.addEventListener("change",f unction(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.initMou seEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u= 1==d?"change":c}(),HTMLInputElement.prototype.bind=function(a,c,e){if("value"!== a&&"checked"!==a)return HTMLElement.prototype.bind.call(this,a,c,e);this.removeA ttribute(a);var f="checked"==a?n:d,g="checked"==a?p:l;if(e)return j(this,a,c,f); var h=c,i=m(this,a,h,g);return j(this,a,h.open(k(this,a,f)),f),b(this,a,i)},HTML TextAreaElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement .prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return j(thi s,"value",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(this,"va lue",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if("valu e"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAttribut e("value"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.open(r (this))),t(this,a,e)},HTMLSelectElement.prototype.bind=function(a,c,d){if("selec tedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLE lement.prototype.bind.call(this,a,c,d);if(this.removeAttribute(a),d)return j(thi s,a,c);var e=c,f=m(this,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f)}}(th is),function(a){"use strict";function b(a){if(!a)throw new Error("Assertion fail ed")}function c(a){for(var b;b=a.parentNode;)a=b;return a}function d(a,b){if(b){ for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelector(e) :a.getElementById&&(d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.template Creator_;return d}}function e(a){return"template"==a.tagName&&"http://www.w3.org /2000/svg"==a.namespaceURI}function f(a){return"TEMPLATE"==a.tagName&&"http://ww w.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(J[a.tagName]&& a.hasAttribute("template"))}function h(a){return void 0===a.isTemplate_&&(a.isTe mplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.query SelectorAll(L);h(a)&&b(a),E(c,b)}function j(a){function b(a){HTMLTemplateElement .decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.getOwnPropertyNames(b). forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b, c))})}function l(a){var b=a.ownerDocument;if(!b.defaultView)return b;var c=b.tem plateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("");c.lastC hild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}function m( a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagi ngDocument_=b.implementation.createHTMLDocument("");var c=b.stagingDocument_.cre ateElement("base");c.href=document.baseURI,b.stagingDocument_.head.appendChild(c ),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.st agingDocument_}return a.stagingDocument_}function n(a){var b=a.ownerDocument.cre ateElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c .length;d-->0;){var e=c[d];I[e.name]&&("template"!==e.name&&b.setAttribute(e.nam e,e.value),a.removeAttribute(e.name))}return b}function o(a){var b=a.ownerDocume nt.createElement("template");a.parentNode.insertBefore(b,a);for(var c=a.attribut es,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttribut e(e.name)}return a.parentNode.removeChild(a),b}function p(a,b,c){var d=a.content ;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}fu nction q(a){N?a.__proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement. prototype)}function r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFnSc heduled_=!1;var b=z(a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}) ,a.setModelFnScheduled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelF n_))}function s(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f >h;){var g=a.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k) &&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h ));break}e=e||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j& &l;var o=d&&d(n,b,c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h== =f&&e.push(""),e.hasOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&& ""==e[4],e.onlyOneTime=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length; c+=4){var d=e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}} function t(a,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom( d);return b.isSimplePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}func tion u(a,b,c,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSim plePath?f:new ObserverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOne Time)return t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundO bserver,f=1;f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPat h(i):e.addObserver(i)}else{var j=b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath (d,j)}}return new ObserverTransform(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime );i&&d&&d.push(i)}if(b.isTemplate){a.model_=c;var j=a.processBindingDirectives_( b);d&&j&&d.push(j)}}function x(a,b,c){var d=a.getAttribute(b);return s(""==d?"{{ }}":d,b,a,c)}function y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e++){fo r(var f=a.attributes[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a) ||g!==H&&g!==F&&g!==G){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isTempla te=!0,d.if=x(a,H,c),d.bind=x(a,F,c),d.repeat=x(a,G,c),!d.if||d.bind||d.repeat||( d.bind=s("{{}}",F,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NODE)ret urn y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b);if( c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.appendC hild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.children [i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.setDel egate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var d=0,e =a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(a){th is.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.ite ratedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var D,E=Array.p rototype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a. Map.prototype.forEach?D=a.Map:(D=function(){this.keys=[],this.values=[]},D.proto type={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.v alues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(! (0>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);ret urn 0>b?!1:(this.keys.splice(b,1),this.values.splice(b,1),!0)},forEach:function( a,b){for(var c=0;c<this.keys.length;c++)a.call(b||this,this.values[c],this.keys[ c],this)}});"function"!=typeof document.contains&&(Document.prototype.contains=f unction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains (a)});var F="bind",G="repeat",H="if",I={template:!0,repeat:!0,bind:!0,ref:!0},J= {THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTI ON:!0,OPTGROUP:!0},K="undefined"!=typeof HTMLTemplateElement;K&&!function(){var a=document.createElement("template"),b=a.content.ownerDocument,c=b.appendChild(b .createElement("html")),d=c.appendChild(b.createElement("head")),e=b.createEleme nt("base");e.href=document.baseURI,d.appendChild(e)}();var L="template, "+Object .keys(J).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");docume nt.addEventListener("DOMContentLoaded",function(){j(document),Platform.performMi crotaskCheckpoint()},!1),K||(a.HTMLTemplateElement=function(){throw TypeError("I llegal constructor")});var M,N="__proto__"in{};"function"==typeof MutationObserv er&&(M=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].target.r efChanged_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecora ted_)return!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&K,i=h,k=!h,m=!1;if(h ||(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=K,m=!0):e(d)&&(d=o(a),d.templa teIsDecorated_=!0,h=K)),!h){q(d);var r=l(d);d.content_=r.createDocumentFragment( )}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateElement.b ootstrap=j;var O=a.HTMLUnknownElement||HTMLElement,P={get:function(){return this .content_},enumerable:!0,configurable:!0};K||(HTMLTemplateElement.prototype=Obje ct.create(O.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"cont ent",P)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a)retur n Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d. setAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),this.r efChanged_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_={ref:b },b)},processBindingDirectives_:function(a){return this.iterator_&&this.iterator _.closeDeps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new C(this )),this.iterator_.updateDependencies(a,this.model_),M&&M.observe(this,{attribute s:!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterat or_.close(),this.iterator_=void 0))},createInstance:function(a,b,c){b&&(c=this.n ewDelegate_(b)),this.refContent_||(this.refContent_=this.ref_.content);var d=thi s.refContent_;if(null===d.firstChild)return Q;var e=this.bindingMap_;e&&e.conten t===d||(e=B(d,c&&c.prepareBinding)||[],e.content=d,this.bindingMap_=e);var f=m(t his),g=f.createDocumentFragment();g.templateCreator_=this,g.protoContent_=d,g.bi ndings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNode:null,last Node:null,model:a},i=0,j=!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibli ng&&(j=!0);var l=A(k,g,f,e.children[i++],a,c,g.bindings_);l.templateInstance_=h, j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.te mplateCreator_=void 0,g.protoContent_=void 0,g},get model(){return this.model_}, set model(a){this.model_=a,r(this)},get bindingDelegate(){return this.delegate_& &this.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==t his.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.it erator_.updateIteratedValue())},clear:function(){this.model_=void 0,this.delegat e_=void 0,this.bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.re fContent_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.c lose(),this.iterator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.bi ndingMap_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},newDelegate_:function(a){function b( b){var c=a&&a[b];if("function"==typeof c)return function(){return c.apply(a,argu ments)}}return a?{raw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel: b("prepareInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePosit ionChanged")}:{}},set bindingDelegate(a){if(this.delegate_)throw Error("Template must be cleared before a new bindingDelegate can be assigned");this.setDelegate _(this.newDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"));if(a| |(a=this.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}}),Object.define Property(Node.prototype,"templateInstance",{get:function(){var a=this.templateIn stance_;return a?a:this.parentNode?this.parentNode.templateInstance:void 0}});va r Q=document.createDocumentFragment();Q.bindings_=[],Q.terminator_=null,C.protot ype={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close( ),a.oneTime===!1&&a.value.close())},updateDependencies:function(a,b){this.closeD eps();var c=this.deps={},d=this.templateElement_;if(a.if){if(c.hasIf=!0,c.ifOneT ime=a.if.onlyOneTime,c.ifValue=v(H,a.if,d,b),c.ifOneTime&&!c.ifValue)return void this.updateIteratedValue();c.ifOneTime||c.ifValue.open(this.updateIteratedValue ,this)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(G,a.repeat ,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(F,a.bind,d,b)),c.oneT ime||c.value.open(this.updateIteratedValue,this),this.updateIteratedValue()},upd ateIteratedValue:function(){if(this.deps.hasIf){var a=this.deps.ifValue;if(this. deps.ifOneTime||(a=a.discardChanges()),!a)return void this.valueChanged()}var b= this.deps.value;this.deps.oneTime||(b=b.discardChanges()),this.deps.repeat||(b=[ b]);var c=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(b);this.valueChang ed(b,c)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedVa lue&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObser ver(this.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.ha ndleSplices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue) ))},getLastInstanceNode:function(a){if(-1==a)return this.templateElement_;var b= this.instances[a],c=b.terminator_;if(!c)return this.getLastInstanceNode(a-1);if( c.nodeType!==Node.ELEMENT_NODE||this.templateElement_===c)return c;var d=c.itera tor_;return d?d.getLastTemplateNode():c},getLastTemplateNode:function(){return t his.getLastInstanceNode(this.instances.length-1)},insertInstanceAt:function(a,b) {var c=this.getLastInstanceNode(a-1),d=this.templateElement_.parentNode;this.ins tances.splice(a,0,b),d.insertBefore(b,c.nextSibling)},extractInstanceAt:function (a){for(var b=this.getLastInstanceNode(a-1),c=this.getLastInstanceNode(a),d=this .templateElement_.parentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nex tSibling;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},getDelegateFn:fun ction(a){return a=a&&a(this.templateElement_),"function"==typeof a?a:null},handl eSplices:function(a){if(!this.closed&&a.length){var b=this.templateElement_;if(! b.parentNode)return void this.close();ArrayObserver.applySplices(this.iteratedVa lue,this.presentValue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this .instanceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.i nstancePositionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c &&c.prepareInstancePositionChanged));for(var d=new D,e=0,f=0;f<a.length;f++){for (var g=a[f],h=g.removed,i=0;i<h.length;i++){var j=h[i],k=this.extractInstanceAt( g.index+e);k!==Q&&d.set(j,k)}e-=g.addedCount}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<g.index+g.addedCount;l++){var j=this.iteratedValue[l],k=d.get (j);k?d.delete(j):(this.instanceModelFn_&&(j=this.instanceModelFn_(j)),k=void 0= ==j?Q:b.createInstance(j,void 0,c)),this.insertInstanceAt(l,k)}d.forEach(functio n(a){this.closeInstanceBindings(a)},this),this.instancePositionChangedFn_&&this. reportInstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.instances[a ];b!==Q&&this.instancePositionChangedFn_(b.templateInstance_,a)},reportInstances Moved:function(a){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b< e.index;)this.reportInstanceMoved(b),b++;else b=e.index;for(;b<e.index+e.addedCo unt;)this.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)fo r(var f=this.instances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanc eBindings:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},uno bserve:function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObse rver=void 0)},close:function(){if(!this.closed){this.unobserve();for(var a=0;a<t his.instances.length;a++)this.closeInstanceBindings(this.instances[a]);this.inst ances.length=0,this.closeDeps(),this.templateElement_.iterator_=void 0,this.clos ed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),function(a){"use stri ct";function b(a,b){if(!a)throw new Error("ASSERT: "+b)}function c(a){return a>= 48&&57>=a}function d(a){return 32===a||9===a||11===a||12===a||160===a||a>=5760&& " ᠎              ".indexOf(String.fromCharCode(a))>0}function e(a){return 10=== a||13===a||8232===a||8233===a}function f(a){return 36===a||95===a||a>=65&&90>=a| |a>=97&&122>=a}function g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a| |a>=48&&57>=a}function h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCode At(X));)++X}function j(){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;re turn W.slice(a,X)}function k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Ident ifier:h(b)?S.Keyword:"null"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanL iteral:S.Identifier,{type:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.ch arCodeAt(X),e=W[X];switch(d){case 46:case 40:case 41:case 59:case 44:case 123:ca se 125:case 91:case 93:case 58:case 63:return++X,{type:S.Punctuator,value:String .fromCharCode(d),range:[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){ca se 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return X+ =2,{type:S.Punctuator,value:String.fromCharCode(d)+String.fromCharCode(a),range: [c,X]};case 33:case 61:return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator, value:W.slice(c,X),range:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2 ,{type:S.Punctuator,value:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{t ype:S.Punctuator,value:e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}fu nction m(){var a,d,e;if(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal mu st start with a decimal digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++ ],e=W[X],"0"===a&&e&&c(e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.c harCodeAt(X));)a+=W[X++];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+ =W[X++];e=W[X]}if("e"===e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W [X++]),c(W.charCodeAt(X)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.Unexpec tedToken,"ILLEGAL");return f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL") ,{type:S.NumericLiteral,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d, f="",g=!1;for(a=W[X],b("'"===a||'"'===a,"String literal must starts with a quote "),c=X,++X;Y>X;){if(d=W[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.ch arCodeAt(0)))"\r"===d&&"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;cas e"r":f+="\r";break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";br eak;case"v":f+="
38 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V .UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF, range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f( a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q( ),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S. NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a ,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z( )),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type, a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x(): v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y> X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q( ),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b;for(a=C();v(".")|| v("[");)v("[")?(b=G(),a=Z.createMemberExpression("[",a,b)):(b=F(),a=Z.createMemb erExpression(".",a,b));return a}function I(){var a,b;return $.type!==S.Punctuato r&&$.type!==S.Keyword?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnary Expression(a.value,b)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToke n):b=ab(),b}function J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)r eturn 0;switch(a.value){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=": case"===":case"!==":b=6;break;case"<":case">":case"<=":case">=":case"instanceof" :b=7;break;case"in":b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%": b=11}return b}function K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2 ].prec;)e=d.pop(),f=d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d. push(a);b=q(),b.prec=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a= Z.createBinaryExpression(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a ,b,c;return a=K(),v("?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpressio n(a,b,c)),a}function M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("( ")?D():[],Z.createFilter(a.value,b)}function N(){for(;v("|");)q(),M()}function O (){i(),r();var a=bb();a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q( a):(N(),"as"===$.value?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().value;Z.createAsExpression(a,b)}function Q(a){var b;","===$.v alue&&(q(),$.type!==S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createI nExpression(a.name,b,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={ labelSet:{}},O()}var S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3, Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S. BooleanLiteral]="Boolean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyw ord]="Keyword",T[S.NullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctua tor]="Punctuator",T[S.StringLiteral]="String",U={ArrayExpression:"ArrayExpressio n",BinaryExpression:"BinaryExpression",CallExpression:"CallExpression",Condition alExpression:"ConditionalExpression",EmptyStatement:"EmptyStatement",ExpressionS tatement:"ExpressionStatement",Identifier:"Identifier",Literal:"Literal",Labeled Statement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpress ion:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Pro perty:"Property",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpressio n"},V={UnexpectedToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'" ,Redeclaration:"%0 '%1' has already been declared"};var ab=H,bb=L;a.esprima={par se:R}}(this),function(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f. scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b& &"repeat"!==b))throw Error("as and in can only be used within <template bind/rep eat>")}catch(g){return void console.error("Invalid expression syntax: "+a,g)}ret urn function(a,b,c){var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymer ExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_ =f.indexIdent)),d}}function c(a){var b=t[a];if(!b){var c=new j;esprima.parse(a,c ),b=new l(c),t[a]=b}return b}function d(a){this.value=a,this.valueFn_=void 0}fun ction e(a){this.name=a,this.path=Path.get(a)}function f(a,b,c){"["==c&&b instanc eof d&&Path.get(b.value).valid&&(c=".",b=new e(b.value)),this.dynamicDeps="funct ion"==typeof a||a.dynamic,this.dynamic="function"==typeof b||b.dynamic||"["==c,t his.simplePath=!this.dynamic&&!this.dynamicDeps&&b instanceof e&&(a instanceof f ||a instanceof e),this.object=this.simplePath?a:i(a),this.property="."==c?b:i(b) }function g(a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c ]=i(b[c])}function h(){throw Error("Not Implemented")}function i(a){return"funct ion"==typeof a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],t his.deps={},this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIde nt=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expre ssion found.");this.expression=a.expression,i(this.expression),this.filters=a.fi lters,this.dynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A- Z]/g,function(a){return"-"+a.toLowerCase()})}function n(a){return"o"===a[0]&&"n" ===a[1]&&"-"===a[2]}function o(a,b){for(;a[x]&&!Object.prototype.hasOwnProperty. call(a,b);)a=a[x];return a}function p(a,b){if(0==b.length)return void 0;if(1==b. length)return o(a,b[0]);for(var c=0;null!=a&&c<b.length-1;c++)a=a[b[c]];return a }function q(a,b,c){var d=b.substring(3);return d=w[d]||d,function(b,e,f){functio n g(){return"{{ "+a+" }}"}var h,i,j;return j="function"==typeof c.resolveEventHa ndler?function(d){h=h||c.resolveEventHandler(b,a,e),h(d,d.detail,d.currentTarget ),Platform&&"function"==typeof Platform.flush&&Platform.flush()}:function(c){h=h ||a.getValueFrom(b),i=i||p(b,a,e),h.apply(i,[c,c.detail,c.currentTarget]),Platfo rm&&"function"==typeof Platform.flush&&Platform.flush()},e.addEventListener(d,j) ,f?void 0:{open:g,discardChanges:g,close:function(){e.removeEventListener(d,j)}} }}function r(a){switch(a){case"":return!1;case"false":case"null":case"true":retu rn!0}return isNaN(Number(a))?!1:!0}function s(){}var t=Object.create(null);d.pro totype={valueFn:function(){if(!this.valueFn_){var a=this.value;this.valueFn_=fun ction(){return a}}return this.valueFn_}},e.prototype={valueFn:function(){if(!thi s.valueFn_){var a=(this.name,this.path);this.valueFn_=function(b,c){return c&&c. addPath(b,a),a.getValueFrom(b)}}return this.valueFn_},setValue:function(a,b){ret urn 1==this.path.length,a=o(a,this.path[0]),this.path.setValueFrom(a,b)}},f.prot otype={get fullPath(){if(!this.fullPath_){var a=this.object instanceof e?this.ob ject.name:this.object.fullPath;this.fullPath_=Path.get(a+"."+this.property.name) }return this.fullPath_},valueFn:function(){if(!this.valueFn_){var a=this.object; if(this.simplePath){var b=this.fullPath;this.valueFn_=function(a,c){return c&&c. addPath(a,b),b.getValueFrom(a)}}else if(this.property instanceof e){var b=Path.g et(this.property.name);this.valueFn_=function(c,d){var e=a(c,d);return d&&d.addP ath(e,b),b.getValueFrom(e)}}else{var c=this.property;this.valueFn_=function(b,d) {var e=a(b,d),f=c(b,d);return d&&d.addPath(e,f),e?e[f]:void 0}}}return this.valu eFn_},setValue:function(a,b){if(this.simplePath)return this.fullPath.setValueFro m(a,b),b;var c=this.object(a),d=this.property instanceof e?this.property.name:th is.property(a);return c[d]=b}},g.prototype={transform:function(a,b,c,d,e){var f= c[this.name],g=d;if(f)g=void 0;else if(f=g[this.name],!f)return void console.err or("Cannot find filter: "+this.name);if(b?f=f.toModel:"function"==typeof f.toDOM &&(f=f.toDOM),"function"!=typeof f)return void console.error("No "+(b?"toModel": "toDOM")+" found on"+this.name);for(var h=[a],j=0;j<this.args.length;j++)h[j+1]= i(this.args[j])(d,e);return f.apply(g,h)}};var u={"+":function(a){return+a},"-": function(a){return-a},"!":function(a){return!a}},v={"+":function(a,b){return a+b },"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b){ return a/b},"%":function(a,b){return a%b},"<":function(a,b){return b>a},">":func tion(a,b){return a>b},"<=":function(a,b){return b>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":func tion(a,b){return a===b},"!==":function(a,b){return a!==b},"&&":function(a,b){ret urn a&&b},"||":function(a,b){return a||b}};j.prototype={createUnaryExpression:fu nction(a,b){if(!u[a])throw Error("Disallowed operator: "+a);return b=i(b),functi on(c,d){return u[a](b(c,d))}},createBinaryExpression:function(a,b,c){if(!v[a])th row Error("Disallowed operator: "+a);return b=i(b),c=i(c),function(d,e){return v [a](b(d,e),c(d,e))}},createConditionalExpression:function(a,b,c){return a=i(a),b =i(b),c=i(c),function(d,e){return a(d,e)?b(d,e):c(d,e)}},createIdentifier:functi on(a){var b=new e(a);return b.type="Identifier",b},createMemberExpression:functi on(a,b,c){var d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},crea teLiteral:function(a){return new d(a.value)},createArrayExpression:function(a){f or(var b=0;b<a.length;b++)a[b]=i(a[b]);return function(b,c){for(var d=[],e=0;e<a .length;e++)d.push(a[e](b,c));return d}},createProperty:function(a,b,c){return{k ey:b instanceof e?b.name:b.value,value:c}},createObjectExpression:function(a){fo r(var b=0;b<a.length;b++)a[b].value=i(a[b].value);return function(b,c){for(var d ={},e=0;e<a.length;e++)d[a[e].key]=a[e].value(b,c);return d}},createFilter:funct ion(a,b){this.filters.push(new g(a,b))},createAsExpression:function(a,b){this.ex pression=a,this.scopeIdent=b},createInExpression:function(a,b,c){this.expression =c,this.scopeIdent=a,this.indexIdent=b},createTopLevel:function(a){this.expressi on=a},createThisExpression:h},k.prototype={open:function(){return this.value_},d iscardChanges:function(){return this.value_},deliver:function(){},close:function (){}},l.prototype={getBinding:function(a,b,c){function d(){if(h)return h=!1,g;i. dynamicDeps&&f.startReset();var c=i.getValue(a,i.dynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}function e(c){return i.setValue(a,c,b),c}if(c)r eturn this.getValue(a,void 0,b);var f=new CompoundObserver,g=this.getValue(a,f,b ),h=!0,i=this;return new ObserverTransform(f,d,e,!0)},getValue:function(a,b,c){f or(var d=i(this.expression)(a,b),e=0;e<this.filters.length;e++)d=this.filters[e] .transform(d,!1,c,a,b);return d},setValue:function(a,b,c){for(var d=this.filters ?this.filters.length:0;d-->0;)b=this.filters[d].transform(b,!0,c,a);return this. expression.setValue?this.expression.setValue(a,b):void 0}};var w={};["webkitAnim ationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut","DOMFocusIn ","DOMMouseScroll"].forEach(function(a){w[a.toLowerCase()]=a});var x="@"+Math.ra ndom().toString(36).slice(2);s.prototype={styleObject:function(a){var b=[];for(v ar c in a)b.push(m(c)+": "+a[c]);return b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.push(c);return b.join(" ")},prepareInstancePositionC hanged:function(a){var b=a.polymerExpressionIndexIdent_;if(b)return function(a,c ){a.model[b]=c}},prepareBinding:function(a,c,d){var e=Path.get(a);if(n(c))return e.valid?q(e,c,this):void console.error("on-* bindings must be simple path expre ssions");{if(r(a)||!e.valid)return b(a,c,d,this);if(1==e.length)return function( a,b,c){if(c)return e.getValueFrom(a);var d=o(a,e[0]);return new PathObserver(d,e )}}},prepareInstanceModel:function(a){var b=a.polymerExpressionScopeIdent_;if(b) {var c=a.templateInstance?a.templateInstance.model:a.model,d=a.polymerExpression IndexIdent_;return function(a){var e=Object.create(c);return e[b]=a,e[d]=void 0, e[x]=c,e}}}},a.PolymerExpressions=s,a.exposeGetExpression&&(a.getExpression_=c), a.PolymerExpressions.prepareEventBinding=q}(this),function(a){function b(){e||(e =!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Platform.flus h()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd() 38 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V .UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF, range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f( a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q( ),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S. NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a ,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z( )),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type, a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x(): v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y> X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q( ),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b;for(a=C();v(".")|| v("[");)v("[")?(b=G(),a=Z.createMemberExpression("[",a,b)):(b=F(),a=Z.createMemb erExpression(".",a,b));return a}function I(){var a,b;return $.type!==S.Punctuato r&&$.type!==S.Keyword?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnary Expression(a.value,b)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToke n):b=ab(),b}function J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)r eturn 0;switch(a.value){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=": case"===":case"!==":b=6;break;case"<":case">":case"<=":case">=":case"instanceof" :b=7;break;case"in":b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%": b=11}return b}function K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2 ].prec;)e=d.pop(),f=d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d. push(a);b=q(),b.prec=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a= Z.createBinaryExpression(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a ,b,c;return a=K(),v("?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpressio n(a,b,c)),a}function M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("( ")?D():[],Z.createFilter(a.value,b)}function N(){for(;v("|");)q(),M()}function O (){i(),r();var a=bb();a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q( a):(N(),"as"===$.value?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().value;Z.createAsExpression(a,b)}function Q(a){var b;","===$.v alue&&(q(),$.type!==S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createI nExpression(a.name,b,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={ labelSet:{}},O()}var S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3, Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S. BooleanLiteral]="Boolean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyw ord]="Keyword",T[S.NullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctua tor]="Punctuator",T[S.StringLiteral]="String",U={ArrayExpression:"ArrayExpressio n",BinaryExpression:"BinaryExpression",CallExpression:"CallExpression",Condition alExpression:"ConditionalExpression",EmptyStatement:"EmptyStatement",ExpressionS tatement:"ExpressionStatement",Identifier:"Identifier",Literal:"Literal",Labeled Statement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpress ion:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Pro perty:"Property",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpressio n"},V={UnexpectedToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'" ,Redeclaration:"%0 '%1' has already been declared"};var ab=H,bb=L;a.esprima={par se:R}}(this),function(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f. scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b& &"repeat"!==b))throw Error("as and in can only be used within <template bind/rep eat>")}catch(g){return void console.error("Invalid expression syntax: "+a,g)}ret urn function(a,b,c){var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymer ExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_ =f.indexIdent)),d}}function c(a){var b=t[a];if(!b){var c=new j;esprima.parse(a,c ),b=new l(c),t[a]=b}return b}function d(a){this.value=a,this.valueFn_=void 0}fun ction e(a){this.name=a,this.path=Path.get(a)}function f(a,b,c){"["==c&&b instanc eof d&&Path.get(b.value).valid&&(c=".",b=new e(b.value)),this.dynamicDeps="funct ion"==typeof a||a.dynamic,this.dynamic="function"==typeof b||b.dynamic||"["==c,t his.simplePath=!this.dynamic&&!this.dynamicDeps&&b instanceof e&&(a instanceof f ||a instanceof e),this.object=this.simplePath?a:i(a),this.property="."==c?b:i(b) }function g(a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c ]=i(b[c])}function h(){throw Error("Not Implemented")}function i(a){return"funct ion"==typeof a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],t his.deps={},this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynamicDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIde nt=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expre ssion found.");this.expression=a.expression,i(this.expression),this.filters=a.fi lters,this.dynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A- Z]/g,function(a){return"-"+a.toLowerCase()})}function n(a){return"o"===a[0]&&"n" ===a[1]&&"-"===a[2]}function o(a,b){for(;a[x]&&!Object.prototype.hasOwnProperty. call(a,b);)a=a[x];return a}function p(a,b){if(0==b.length)return void 0;if(1==b. length)return o(a,b[0]);for(var c=0;null!=a&&c<b.length-1;c++)a=a[b[c]];return a }function q(a,b,c){var d=b.substring(3);return d=w[d]||d,function(b,e,f){functio n g(){return"{{ "+a+" }}"}var h,i,j;return j="function"==typeof c.resolveEventHa ndler?function(d){h=h||c.resolveEventHandler(b,a,e),h(d,d.detail,d.currentTarget ),Platform&&"function"==typeof Platform.flush&&Platform.flush()}:function(c){h=h ||a.getValueFrom(b),i=i||p(b,a,e),h.apply(i,[c,c.detail,c.currentTarget]),Platfo rm&&"function"==typeof Platform.flush&&Platform.flush()},e.addEventListener(d,j) ,f?void 0:{open:g,discardChanges:g,close:function(){e.removeEventListener(d,j)}} }}function r(a){switch(a){case"":return!1;case"false":case"null":case"true":retu rn!0}return isNaN(Number(a))?!1:!0}function s(){}var t=Object.create(null);d.pro totype={valueFn:function(){if(!this.valueFn_){var a=this.value;this.valueFn_=fun ction(){return a}}return this.valueFn_}},e.prototype={valueFn:function(){if(!thi s.valueFn_){var a=(this.name,this.path);this.valueFn_=function(b,c){return c&&c. addPath(b,a),a.getValueFrom(b)}}return this.valueFn_},setValue:function(a,b){ret urn 1==this.path.length,a=o(a,this.path[0]),this.path.setValueFrom(a,b)}},f.prot otype={get fullPath(){if(!this.fullPath_){var a=this.object instanceof e?this.ob ject.name:this.object.fullPath;this.fullPath_=Path.get(a+"."+this.property.name) }return this.fullPath_},valueFn:function(){if(!this.valueFn_){var a=this.object; if(this.simplePath){var b=this.fullPath;this.valueFn_=function(a,c){return c&&c. addPath(a,b),b.getValueFrom(a)}}else if(this.property instanceof e){var b=Path.g et(this.property.name);this.valueFn_=function(c,d){var e=a(c,d);return d&&d.addP ath(e,b),b.getValueFrom(e)}}else{var c=this.property;this.valueFn_=function(b,d) {var e=a(b,d),f=c(b,d);return d&&d.addPath(e,f),e?e[f]:void 0}}}return this.valu eFn_},setValue:function(a,b){if(this.simplePath)return this.fullPath.setValueFro m(a,b),b;var c=this.object(a),d=this.property instanceof e?this.property.name:th is.property(a);return c[d]=b}},g.prototype={transform:function(a,b,c,d,e){var f= c[this.name],g=d;if(f)g=void 0;else if(f=g[this.name],!f)return void console.err or("Cannot find filter: "+this.name);if(b?f=f.toModel:"function"==typeof f.toDOM &&(f=f.toDOM),"function"!=typeof f)return void console.error("No "+(b?"toModel": "toDOM")+" found on"+this.name);for(var h=[a],j=0;j<this.args.length;j++)h[j+1]= i(this.args[j])(d,e);return f.apply(g,h)}};var u={"+":function(a){return+a},"-": function(a){return-a},"!":function(a){return!a}},v={"+":function(a,b){return a+b },"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b){ return a/b},"%":function(a,b){return a%b},"<":function(a,b){return b>a},">":func tion(a,b){return a>b},"<=":function(a,b){return b>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":func tion(a,b){return a===b},"!==":function(a,b){return a!==b},"&&":function(a,b){ret urn a&&b},"||":function(a,b){return a||b}};j.prototype={createUnaryExpression:fu nction(a,b){if(!u[a])throw Error("Disallowed operator: "+a);return b=i(b),functi on(c,d){return u[a](b(c,d))}},createBinaryExpression:function(a,b,c){if(!v[a])th row Error("Disallowed operator: "+a);return b=i(b),c=i(c),function(d,e){return v [a](b(d,e),c(d,e))}},createConditionalExpression:function(a,b,c){return a=i(a),b =i(b),c=i(c),function(d,e){return a(d,e)?b(d,e):c(d,e)}},createIdentifier:functi on(a){var b=new e(a);return b.type="Identifier",b},createMemberExpression:functi on(a,b,c){var d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},crea teLiteral:function(a){return new d(a.value)},createArrayExpression:function(a){f or(var b=0;b<a.length;b++)a[b]=i(a[b]);return function(b,c){for(var d=[],e=0;e<a .length;e++)d.push(a[e](b,c));return d}},createProperty:function(a,b,c){return{k ey:b instanceof e?b.name:b.value,value:c}},createObjectExpression:function(a){fo r(var b=0;b<a.length;b++)a[b].value=i(a[b].value);return function(b,c){for(var d ={},e=0;e<a.length;e++)d[a[e].key]=a[e].value(b,c);return d}},createFilter:funct ion(a,b){this.filters.push(new g(a,b))},createAsExpression:function(a,b){this.ex pression=a,this.scopeIdent=b},createInExpression:function(a,b,c){this.expression =c,this.scopeIdent=a,this.indexIdent=b},createTopLevel:function(a){this.expressi on=a},createThisExpression:h},k.prototype={open:function(){return this.value_},d iscardChanges:function(){return this.value_},deliver:function(){},close:function (){}},l.prototype={getBinding:function(a,b,c){function d(){if(h)return h=!1,g;i. dynamicDeps&&f.startReset();var c=i.getValue(a,i.dynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}function e(c){return i.setValue(a,c,b),c}if(c)r eturn this.getValue(a,void 0,b);var f=new CompoundObserver,g=this.getValue(a,f,b ),h=!0,i=this;return new ObserverTransform(f,d,e,!0)},getValue:function(a,b,c){f or(var d=i(this.expression)(a,b),e=0;e<this.filters.length;e++)d=this.filters[e] .transform(d,!1,c,a,b);return d},setValue:function(a,b,c){for(var d=this.filters ?this.filters.length:0;d-->0;)b=this.filters[d].transform(b,!0,c,a);return this. expression.setValue?this.expression.setValue(a,b):void 0}};var w={};["webkitAnim ationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut","DOMFocusIn ","DOMMouseScroll"].forEach(function(a){w[a.toLowerCase()]=a});var x="@"+Math.ra ndom().toString(36).slice(2);s.prototype={styleObject:function(a){var b=[];for(v ar c in a)b.push(m(c)+": "+a[c]);return b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.push(c);return b.join(" ")},prepareInstancePositionC hanged:function(a){var b=a.polymerExpressionIndexIdent_;if(b)return function(a,c ){a.model[b]=c}},prepareBinding:function(a,c,d){var e=Path.get(a);if(n(c))return e.valid?q(e,c,this):void console.error("on-* bindings must be simple path expre ssions");{if(r(a)||!e.valid)return b(a,c,d,this);if(1==e.length)return function( a,b,c){if(c)return e.getValueFrom(a);var d=o(a,e[0]);return new PathObserver(d,e )}}},prepareInstanceModel:function(a){var b=a.polymerExpressionScopeIdent_;if(b) {var c=a.templateInstance?a.templateInstance.model:a.model,d=a.polymerExpression IndexIdent_;return function(a){var e=Object.create(c);return e[b]=a,e[d]=void 0, e[x]=c,e}}}},a.PolymerExpressions=s,a.exposeGetExpression&&(a.getExpression_=c), a.PolymerExpressions.prepareEventBinding=q}(this),function(a){function b(){e||(e =!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Platform.flus h()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()
39 }))}var c=document.createElement("style");c.textContent="template {display: none !important;} /* injected by platform.js */";var d=document.querySelector("head" );d.insertBefore(c,d.firstChild);var e;if(Observer.hasObjectObserve)b=function() {};else{var f=125;window.addEventListener("WebComponentsReady",function(){b(),a. flushPoll=setInterval(b,f)})}if(window.CustomElements&&!CustomElements.useNative ){var g=Document.prototype.importNode;Document.prototype.importNode=function(a,b ){var c=g.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b}(windo w.Platform); 39 }))}var c=document.createElement("style");c.textContent="template {display: none !important;} /* injected by platform.js */";var d=document.querySelector("head" );d.insertBefore(c,d.firstChild);var e;if(Observer.hasObjectObserve)b=function() {};else{var f=125;window.addEventListener("WebComponentsReady",function(){b(),a. flushPoll=setInterval(b,f)})}if(window.CustomElements&&!CustomElements.useNative ){var g=Document.prototype.importNode;Document.prototype.importNode=function(a,b ){var c=g.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b}(windo w.Platform);
40 //# sourceMappingURL=platform.js.map 40 //# sourceMappingURL=platform.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698