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

Side by Side Diff: pkg/web_components/lib/platform.js

Issue 355133002: switch Node.bind to interop (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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) 2014 The Polymer Project Authors. All rights reserved. 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt 4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt 6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also 7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */ 9 */
10 // @version: 0.3.3-29065bc 10 // @version: 0.3.3-29065bc
11 11
12 window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},function (a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a){a= a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||document.q uerySelector('script[src*="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="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.creat eShadowRoot,b.shadow&&document.querySelectorAll("script").length>1&&console.warn ("platform.js is not the first script on the page. See http://www.polymer-projec t.org/docs/start/platform.html#setup for details."),b.register&&(window.CustomEl ements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=b. register),b.imports&&(window.HTMLImports=window.HTMLImports||{flags:{}},window.H TMLImports.flags.imports=b.imports),a.flags=b}(Platform),"undefined"==typeof Wea kMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e9,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":fu nction(a){this.set(a,void 0)}},window.WeakMap=c}(),function(global){"use strict" ;function detectObjectObserve(){function a(a){b=a}if("function"!=typeof Object.o bserve||"function"!=typeof Array.observe)return!1;var b=[],c={},d=[];return Obje ct.observe(c,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id,d.push(1,2),d.lengt h=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:(Obje ct.unobserve(c,a),Array.unobserve(d,a),!0)}function detectEval(){if("undefined"! =typeof chrome&&chrome.app&&chrome.app.runtime)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)}fun ction areSameValue(a,b){return a===b?0!==a||1/a===1/b:numberIsNaN(a)&&numberIsNa N(b)?!0:a!==a&&b!==b}function getPathCharType(a){if(void 0===a)return"eof";var b =a.charCodeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:retur n a;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 6 5279:case 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b >=49&&57>=b?"number":"else"}function noop(){}function parsePath(a){function b(){ if(!(k>=a.length)){var b=a[k+1];return"inSingleQuote"==l&&"'"==b||"inDoubleQuote "==l&&'"'==b?(k++,d=b,m.append(),!0):void 0}}for(var c,d,e,f,g,h,i,j=[],k=-1,l=" beforePath",m={push:function(){void 0!==e&&(j.push(e),e=void 0)},append:function (){void 0===e?e=d:e+=d}};l;)if(k++,c=a[k],"\\"!=c||!b(l)){if(f=getPathCharType(c ),i=pathStateMachine[l],g=i[f]||i["else"]||"error","error"==g)return;if(l=g[0],h =m[g[1]]||noop,d=void 0===g[2]?c:g[2],h(),"afterPath"===l)return j}}function isI dent(a){return identRegExp.test(a)}function Path(a,b){if(b!==constructorIsPrivat e)throw Error("Use Path.get to retrieve path objects");a.length&&Array.prototype .push.apply(this,a.slice()),hasEval&&this.length&&(this.getValueFrom=this.compil edGetValueFromFn())}function getPath(a){if(a instanceof Path)return a;if((null== a||0==a.length)&&(a=""),"string"!=typeof a){if(isIndex(a.length))return new Path (a,constructorIsPrivate);a=String(a)}var b=pathCache[a];if(b)return b;var c=pars ePath(a);if(!c)return invalidPath;var b=new Path(c,constructorIsPrivate);return pathCache[a]=b,b}function formatAccessor(a){return isIndex(a)?"["+a+"]":'["'+a.r eplace(/"/g,'\\"')+'"]'}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLE S>b&&a.check_();)b++;return global.testingExposeCycleCount&&(global.dirtyCheckCy cleCount=b),b>0}function objectIsEmpty(a){for(var b in a)return!1;return!0}funct ion diffIsEmpty(a){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&obje ctIsEmpty(a.changed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};fo r(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] =void 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](); return eomTasks.length=0,!0}function newObservedObject(){function a(a){b&&b.stat e_===OPENED&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)thro w Error("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},obs erve:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:functio n(b){d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.u nobserve(c,a),observedObjectCache.push(this)}}}function getObservedObject(a,b,c) {var d=observedObjectCache.pop()||newObservedObject();return d.open(a),d.observe (b,c),d}function newObservedSet(){function a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf (b)<0&&(h.push(b),Object.observe(b,c)),a(Object.getPrototypeOf(b),f))}function b (a){for(var b=0;b<a.length;b++){var c=a[b];if(c.object!==d||e[c.name]||"setProto type"===c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.lengt h;e++)d=g[e],d.state_==OPENED&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d =g[e],d.state_==OPENED&&d.check_()}}var d,e,f=0,g=[],h=[],i={object:void 0,objec ts:h,open:function(b,c){d||(d=c,e={}),g.push(b),f++,b.iterateObjects_(a)},close: function(){if(f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobserve(h[a],c),Ob server.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,observedSetCach e.push(this)}}};return i}function getObservedSet(a,b){return lastObservedSet&&la stObservedSet.object===b||(lastObservedSet=observedSetCache.pop()||newObservedSe t(),lastObservedSet.object=b),lastObservedSet.open(a,b),lastObservedSet}function Observer(){this.state_=UNOPENED,this.callback_=void 0,this.target_=void 0,this. directObserver_=void 0,this.value_=void 0,this.id_=nextObserverId++}function add ToAll(a){Observer._allObserversCount++,collectObservers&&allObservers.push(a)}fu nction removeFromAll(){Observer._allObserversCount--}function ObjectObserver(a){ Observer.call(this),this.value_=a,this.oldObject_=void 0}function ArrayObserver( a){if(!Array.isArray(a))throw Error("Provided object is not an Array");ObjectObs erver.call(this,a)}function PathObserver(a,b){Observer.call(this),this.object_=a ,this.path_=getPath(b),this.directObserver_=void 0}function CompoundObserver(a){ Observer.call(this),this.reportChangesOnOpen_=a,this.value_=[],this.directObserv er_=void 0,this.observed_=[]}function identFn(a){return a}function ObserverTrans form(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,this.dontP assThroughSet_=d}function diffObjectFromChangeRecords(a,b,c){for(var d={},e={},f =0;f<b.length;f++){var g=b[f];expectedRecordTypes[g.type]?(g.name in c||(c[g.nam e]=g.oldValue),"update"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],de lete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(consol e.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)}return{added:d,removed:e,changed:i}}function new Splice(a,b,c){return{index:a,removed:b,addedCount:c}}function ArraySplice(){}fun ction calcSplices(a,b,c,d,e,f){return arraySplice.calcSplices(a,b,c,d,e,f)}funct ion 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){for(var e=newSplice(b,c,d),f=!1,g=0,h=0;h<a.len gth;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.addedCount-j;var k=e.removed.length+i.removed.l ength-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.prototype.push.apply(l,c),c=l}if(e.index+e.remove d.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.inde x);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":merg eSplice(c,e.index,e.removed.slice(),e.addedCount);break;case"add":case"update":c ase"delete":if(!isIndex(e.name))continue;var f=toNumber(e.name);if(0>f)continue; mergeSplice(c,f,[e.oldValue],1);break;default:console.error("Unexpected record t ype: "+JSON.stringify(e))}}return c}function projectArraySplices(a,b){var c=[];r eturn createInitialSplices(a,b).forEach(function(b){return 1==b.addedCount&&1==b .removed.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(calcS plices(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var ha sObserve=detectObjectObserve(),hasEval=detectEval(),numberIsNaN=global.Number.is NaN||function(a){return"number"==typeof a&&global.isNaN(a)},createObject="__prot o__"in{}?function(a){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(function(b){Obje ct.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c},identStart="[$_ a-zA-Z]",identPart="[$_a-zA-Z0-9]",identRegExp=new RegExp("^"+identStart+"+"+ide ntPart+"*$"),pathStateMachine={beforePath:{ws:["beforePath"],ident:["inIdent","a ppend"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["bef oreIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIden t"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent" ,"append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent"," push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws: ["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inS ingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afte rElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number: ["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{" '":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuo te:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterE lement:{ws:["afterElement"],"]":["inPath","push"]}},constructorIsPrivate={},path Cache={};Path.get=getPath,Path.prototype=createObject({__proto__:[],valid:!0,toS tring:function(){for(var a="",b=0;b<this.length;b++){var c=this[b];a+=isIdent(c) ?b?"."+c:c:formatAccessor(c)}return a},getValueFrom:function(a){for(var b=0;b<th is.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,this[0])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if (obj != null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=isIdent(c)?"."+c:formatAcce ssor(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d];return b+=isIdent(c) ?"."+c:formatAccessor(c),a+=" return "+b+";\nelse\n return undefined;",new Fun ction("obj",a)},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);invalidP ath.valid=!1,invalidPath.getValueFrom=invalidPath.setValueFrom=function(){};var MAX_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],runEOM=hasObserve?function(){var a={pingP ong:!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 functio n(a){eomTasks.push(a)}}(),observedObjectCache=[],observedSetCache=[],lastObserve dSet,UNOPENED=0,OPENED=1,CLOSED=2,RESETTING=3,nextObserverId=1;Observer.prototyp e={open:function(a,b){if(this.state_!=UNOPENED)throw Error("Observer has already been opened.");return addToAll(this),this.callback_=a,this.target_=b,this.conne ct_(),this.state_=OPENED,this.value_},close:function(){this.state_==OPENED&&(rem oveFromAll(this),this.disconnect_(),this.value_=void 0,this.callback_=void 0,thi s.target_=void 0,this.state_=CLOSED)},deliver:function(){this.state_==OPENED&&di rtyCheck(this)},report_:function(a){try{this.callback_.apply(this.target_,a)}cat ch(b){Observer._errorThrownDuringCallback=!0,console.error("Exception caught dur ing observer callback: "+(b.stack||b))}},discardChanges:function(){return this.c heck_(void 0,!0),this.value_}};var collectObservers=!hasObserve,allObservers;Obs erver._allObserversCount=0,collectObservers&&(allObservers=[]);var runningMicrot askCheckpoint=!1,hasDebugForceFullDelivery=hasObserve&&function(){try{return eva l("%RunMicrotasks()"),!0}catch(ex){return!1}}();global.Platform=global.Platform| |{},global.Platform.performMicrotaskCheckpoint=function(){if(!runningMicrotaskCh eckpoint){if(hasDebugForceFullDelivery)return void eval("%RunMicrotasks()");if(c ollectObservers){runningMicrotaskCheckpoint=!0;var cycles=0,anyChanged,toCheck;d o{cycles++,toCheck=allObservers,allObservers=[],anyChanged=!1;for(var i=0;i<toCh eck.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.testingExposeCycleCount &&(global.dirtyCheckCycleCount=cycles),runningMicrotaskCheckpoint=!1}}},collectO bservers&&(global.Platform.clearObservers=function(){allObservers=[]}),ObjectObs erver.prototype=createObject({__proto__:Observer.prototype,arrayObserve:!1,conne ct_:function(){hasObserve?this.directObserver_=getObservedObject(this,this.value _,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject:fu nction(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isA rray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(hasObserve){if(!a) return!1;c={},b=diffObjectFromChangeRecords(this.value_,a,c)}else c=this.oldObje ct_,b=diffObjectFromOldObject(this.value_,this.oldObject_);return 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.directObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==OPENED&&(hasObserve?t his.directObserver_.deliver(!1):dirtyCheck(this))},discardChanges:function(){ret urn this.directObserver_?this.directObserver_.deliver(!0):this.oldObject_=this.c opyObject(this.value_),this.value_}}),ArrayObserver.prototype=createObject({__pr oto__:ObjectObserver.prototype,arrayObserve:!0,copyObject:function(a){return a.s lice()},check_:function(a){var b;if(hasObserve){if(!a)return!1;b=projectArraySpl ices(this.value_,a)}else b=calcSplices(this.value_,0,this.value_.length,this.old Object_,0,this.oldObject_.length);return b&&b.length?(hasObserve||(this.oldObjec t_=this.copyObject(this.value_)),this.report_([b]),!0):!1}}),ArrayObserver.apply Splices=function(a,b,c){c.forEach(function(c){for(var d=[c.index,c.removed.lengt h],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prototype.splice.app ly(a,d)})},PathObserver.prototype=createObject({__proto__:Observer.prototype,get path(){return this.path_},connect_:function(){hasObserve&&(this.directObserver_ =getObservedSet(this,this.object_)),this.check_(void 0,!0)},disconnect_:function (){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),th is.directObserver_=void 0)},iterateObjects_:function(a){this.path_.iterateObject s(this.object_,a)},check_:function(a,b){var c=this.value_;return this.value_=thi s.path_.getValueFrom(this.object_),b||areSameValue(this.value_,c)?!1:(this.repor t_([this.value_,c,this]),!0)},setValue:function(a){this.path_&&this.path_.setVal ueFrom(this.object_,a)}});var observerSentinel={};CompoundObserver.prototype=cre ateObject({__proto__:Observer.prototype,connect_:function(){if(hasObserve){for(v ar a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==observerSe ntinel){b=!0;break}b&&(this.directObserver_=getObservedSet(this,a))}this.check_( void 0,!this.reportChangesOnOpen_)},disconnect_:function(){for(var a=0;a<this.ob served_.length;a+=2)this.observed_[a]===observerSentinel&&this.observed_[a+1].cl ose();this.observed_.length=0,this.value_.length=0,this.directObserver_&&(this.d irectObserver_.close(this),this.directObserver_=void 0)},addPath:function(a,b){i f(this.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("Cannot add paths on ce started.");var b=getPath(b);if(this.observed_.push(a,b),this.reportChangesOnO pen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObse rver:function(a){if(this.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("C annot add observers once started.");if(this.observed_.push(observerSentinel,a),t his.reportChangesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=a.open( this.deliver,this)}},startReset:function(){if(this.state_!=OPENED)throw Error("C an only reset while open");this.state_=RESETTING,this.disconnect_()},finishReset :function(){if(this.state_!=RESETTING)throw Error("Can only finishReset after st artReset");return this.state_=OPENED,this.connect_(),this.value_},iterateObjects _:function(a){for(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!= =observerSentinel&&this.observed_[c+1].iterateObjects(b,a)},check_:function(a,b) {for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.observed_[d],g=this.ob served_[d+1];if(f===observerSentinel){var h=g;e=this.state_===UNOPENED?h.open(th is.deliver,this):h.discardChanges()}else e=g.getValueFrom(f);b?this.value_[d/2]= e:areSameValue(e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_ [d/2]=e)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),Observ erTransform.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),!areSameVa lue(a,this.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.tar get_,this.value_,b)}},discardChanges:function(){return this.value_=this.getValue Fn_(this.observable_.discardChanges()),this.value_},deliver:function(){return th is.observable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!thi s.dontPassThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):vo id 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.getV alueFn_=void 0,this.setValueFn_=void 0}};var expectedRecordTypes={add:!0,update: !0,"delete":!0},EDIT_LEAVE=0,EDIT_UPDATE=1,EDIT_ADD=2,EDIT_DELETE=3;ArraySplice. prototype={calcEditDistances:function(a,b,c,d,e,f){for(var 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},spl iceOperationsFromEditDistances:function(a){for(var b=a.length-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(EDIT_ADD),c--,d=i)}else e.push(EDIT_DELETE),b--;else e.push(EDIT_ADD),c--;return e.reverse(),e},calcSpli ces: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.sharedSuffix(a,d,i-g)),b +=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(var j=newSplice(b,[],0); f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[newSplice(b,[],c-b)];for(va r k=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)), j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case EDIT_LEAVE:j&&(l.push (j),j=void 0),m++,n++;break;case EDIT_UPDATE:j||(j=newSplice(m,[],0)),j.addedCou nt++,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},sharedSuffix:function(a,b,c){fo r(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},c alculateSplices: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.Obs erver=Observer,global.Observer.runEOM_=runEOM,global.Observer.observerSentinel_= observerSentinel,global.Observer.hasObjectObserve=hasObserve,global.ArrayObserve r=ArrayObserver,global.ArrayObserver.calculateSplices=function(a,b){return array Splice.calculateSplices(a,b)},global.ArraySplice=ArraySplice,global.ObjectObserv er=ObjectObserver,global.PathObserver=PathObserver,global.CompoundObserver=Compo undObserver,global.Path=Path,global.ObserverTransform=ObserverTransform}("undefi ned"!=typeof global&&global&&"undefined"!=typeof module&&module?global:this||win dow),Platform.flags.shadow?(window.ShadowDOMPolyfill={},function(a){"use strict" ;function b(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)retu rn!1;try{var a=new Function("return true;");return a()}catch(b){return!1}}functi on c(a){if(!a)throw new Error("Assertion failed")}function d(a,b){for(var c=L(b) ,d=0;d<c.length;d++){var e=c[d];K(a,e,M(b,e))}return a}function e(a,b){for(var c =L(b),d=0;d<c.length;d++){var e=c[d];switch(e){case"arguments":case"caller":case "length":case"name":case"prototype":case"toString":continue}K(a,e,M(b,e))}return a}function f(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function g (a,b,c){N.value=c,K(a,b,N)}function h(a){var b=a.__proto__||Object.getPrototypeO f(a),c=G.get(b);if(c)return c;var d=h(b),e=v(d);return s(b,e,a),e}function i(a,b ){q(a,b,!0)}function j(a,b){q(b,a,!1)}function k(a){return/^on[a-z]+$/.test(a)}f unction l(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}function m(a){return J&&l(a)?new Function("return this.impl."+a):function(){return this.impl[a]}}function n(a){re turn J&&l(a)?new Function("v","this.impl."+a+" = v"):function(b){this.impl[a]=b} }function o(a){return J&&l(a)?new Function("return this.impl."+a+".apply(this.im pl, arguments)"):function(){return this.impl[a].apply(this.impl,arguments)}}func tion p(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){return P}}f unction q(b,c,d){for(var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polymerBlackL ist_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBlackList_[g])){O&&b.__lookup Getter__(g);var h,i,j=p(b,g);if(d&&"function"==typeof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.writable||j.set)&&(i=l?a.getEvent HandlerSetter(g):n(g)),K(c,g,{get:h,set:i,configurable:j.configurable,enumerable :j.enumerable})}}}}function r(a,b,c){var d=a.prototype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===G.get(a)),G.set(a,b),H.set(e,a),i(a,e),d&& j(e,d),g(e,"constructor",b),b.prototype=e}function t(a,b){return G.get(b.prototy pe)===a}function u(a){var b=Object.getPrototypeOf(a),c=h(b),d=v(c);return s(b,d, a),d}function v(a){function b(b){a.call(this,b)}var c=Object.create(a.prototype) ;return c.constructor=b,b.prototype=c,b}function w(a){return a instanceof I.Even tTarget||a instanceof I.Event||a instanceof I.Range||a instanceof I.DOMImplement ation||a instanceof I.CanvasRenderingContext2D||I.WebGLRenderingContext&&a insta nceof I.WebGLRenderingContext}function x(a){return R&&a instanceof R||a instance of T||a instanceof S||a instanceof U||a instanceof V||a instanceof Q||a instance of W||X&&a instanceof X||Y&&a instanceof Y}function y(a){return null===a?null:(c (x(a)),a.polymerWrapper_||(a.polymerWrapper_=new(h(a))(a)))}function z(a){return null===a?null:(c(w(a)),a.impl)}function A(a){return a&&w(a)?z(a):a}function B(a ){return a&&!w(a)?y(a):a}function C(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)), a.polymerWrapper_=b)}function D(a,b,c){Z.get=c,K(a.prototype,b,Z)}function E(a,b ){D(a,b,function(){return y(this.impl[b])})}function F(a,b){a.forEach(function(a ){b.forEach(function(b){a.prototype[b]=function(){var a=B(this);return a[b].appl y(a,arguments)}})})}var G=new WeakMap,H=new WeakMap,I=Object.create(null),J=b(), K=Object.defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDesc riptor,N={value:void 0,configurable:!0,enumerable:!1,writable:!0};L(window);var O=/Firefox/.test(navigator.userAgent),P={get:function(){},set:function(){},confi gurable:!0,enumerable:!0},Q=window.DOMImplementation,R=window.EventTarget,S=wind ow.Event,T=window.Node,U=window.Window,V=window.Range,W=window.CanvasRenderingCo ntext2D,X=window.WebGLRenderingContext,Y=window.SVGElementInstance,Z={get:void 0 ,configurable:!0,enumerable:!0};a.assert=c,a.constructorTable=G,a.defineGetter=D ,a.defineWrapGetter=E,a.forwardMethodsToWrapper=F,a.isWrapper=w,a.isWrapperFor=t ,a.mixin=d,a.nativePrototypeTable=H,a.oneOf=f,a.registerObject=u,a.registerWrapp er=r,a.rewrap=C,a.unwrap=z,a.unwrapIfNeeded=A,a.wrap=y,a.wrapIfNeeded=B,a.wrappe rs=I}(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))}var d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j =document.createTextNode(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.ShadowDOMPolyfill),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,this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m .NodeList,this.previousSibling=null,this.nextSibling=null,this.attributeName=nul l,this.attributeNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.par entNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.su btree&&e.addTransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b ++){var c=a.nodes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f= d[e];f.observer===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);i f(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.char acterData||"childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attrib utes"===c&&l.attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&( g[m.uid_]=e.oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"i n e&&"namespace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace), e.addedNodes&&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.remo vedNodes),e.previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling &&(q.nextSibling=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.s ubtree,this.attributes="attributes"in a||!("attributeOldValue"in a||"attributeFi lter"in a)?!!a.attributes:!0,this.characterData="characterDataOldValue"in a&&!(" characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue| |"attributeFilter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if(this.characterData=!!a.characterData,this.attributeOldValue=!!a.att ributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFi lter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else this.attribute Filter=null}function i(a){this.callback_=a,this.nodes_=[],this.records_=[],this. uid_=++r,o.push(this)}function j(a,b,c){this.observer=a,this.target=b,this.optio ns=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m =a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={obs erve: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.o ptions=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:funct ion(){this.nodes_.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_=[]},tak eRecords:function(){var a=this.records_;return this.records_=[],a}},j.prototype= {addTransientObserver:function(a){if(a!==this.target){this.transientObservedNode s.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObserver s:function(){var a=this.transientObservedNodes;this.transientObservedNodes=[];fo r(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.splice(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e, a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyf ill),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.olderSh adowRoot)d.treeScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}} function d(c){if(c instanceof a.wrappers.Window,c.treeScope_)return c.treeScope_ ;var e,f=c.parentNode;return e=f?d(f):new b(c,null),c.treeScope_=e}b.prototype={ get renderer(){return this.root instanceof a.wrappers.ShadowRoot?a.getRendererFo rHost(this.root.host):null},contains:function(a){for(;a;a=a.parent)if(a===this)r eturn!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScope=c}(window.Shado wDOMPolyfill),function(a){"use strict";function b(a){return a instanceof Q.Shado wRoot}function c(a){return L(a).root}function d(a,d){var h=[],i=a;for(h.push(i); i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){var m=j[k];if(f(m)) {var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length-1]}else if(b (i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNode,i&&h.push(i)}r eturn h}function e(a){if(!a)return!1;switch(a.type){case"abort":case"error":case "select":case"change":case"load":case"reset":case"resize":case"scroll":case"sele ctstart":return!0}return!1}function f(a){return a instanceof HTMLShadowElement}f unction g(b){return a.getDestinationInsertionPoints(b)}function h(a,b){if(0===a. length)return b;b instanceof Q.Window&&(b=b.document);for(var c=L(b),d=a[0],e=L( d),f=j(c,e),g=0;g<a.length;g++){var h=a[g];if(L(h)===f)return h}return a[a.lengt h-1]}function i(a){for(var b=[];a;a=a.parent)b.push(a);return b}function j(a,b){ for(var c=i(a),d=i(b),e=null;c.length>0&&d.length>0;){var f=c.pop(),g=d.pop();if (f!==g)break;e=f}return e}function k(a,b,c){b instanceof Q.Window&&(b=b.document );var e,f=L(b),g=L(c),h=d(c,a),e=j(f,g);e||(e=g.root);for(var i=e;i;i=i.parent)f or(var k=0;k<h.length;k++){var l=h[k];if(L(l)===i)return l}return null}function l(a,b){return L(a)===L(b)}function m(a){if(!S.get(a)&&(S.set(a,!0),n(P(a),P(a.ta rget)),J)){var b=J;throw J=null,b}}function n(b,c){if(T.get(b))throw new Error(" InvalidStateError");T.set(b,!0),a.renderAllPending();var e,f,g,h=b.type;if("load "===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(g=i.defaultView)&&(f=i,e=[] )}if(!e)if(c instanceof Q.Window)g=c,e=[];else if(e=d(c,b),"load"!==b.type){var i=e[e.length-1];i instanceof Q.Document&&(g=i.defaultView)}return _.set(b,e),o(b ,e,g,f)&&p(b,e,g,f)&&q(b,e,g,f),X.set(b,ab),V.delete(b,null),T.delete(b),b.defau ltPrevented 12 window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},function (a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a){a= a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||document.q uerySelector('script[src*="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="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.creat eShadowRoot,b.shadow&&document.querySelectorAll("script").length>1&&console.warn ("platform.js is not the first script on the page. See http://www.polymer-projec t.org/docs/start/platform.html#setup for details."),b.register&&(window.CustomEl ements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=b. register),b.imports&&(window.HTMLImports=window.HTMLImports||{flags:{}},window.H TMLImports.flags.imports=b.imports),a.flags=b}(Platform),"undefined"==typeof Wea kMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e9,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":fu nction(a){this.set(a,void 0)}},window.WeakMap=c}(),function(global){"use strict" ;function detectObjectObserve(){function a(a){b=a}if("function"!=typeof Object.o bserve||"function"!=typeof Array.observe)return!1;var b=[],c={},d=[];return Obje ct.observe(c,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id,d.push(1,2),d.lengt h=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:(Obje ct.unobserve(c,a),Array.unobserve(d,a),!0)}function detectEval(){if("undefined"! =typeof chrome&&chrome.app&&chrome.app.runtime)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)}fun ction areSameValue(a,b){return a===b?0!==a||1/a===1/b:numberIsNaN(a)&&numberIsNa N(b)?!0:a!==a&&b!==b}function getPathCharType(a){if(void 0===a)return"eof";var b =a.charCodeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:retur n a;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 6 5279:case 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b >=49&&57>=b?"number":"else"}function noop(){}function parsePath(a){function b(){ if(!(k>=a.length)){var b=a[k+1];return"inSingleQuote"==l&&"'"==b||"inDoubleQuote "==l&&'"'==b?(k++,d=b,m.append(),!0):void 0}}for(var c,d,e,f,g,h,i,j=[],k=-1,l=" beforePath",m={push:function(){void 0!==e&&(j.push(e),e=void 0)},append:function (){void 0===e?e=d:e+=d}};l;)if(k++,c=a[k],"\\"!=c||!b(l)){if(f=getPathCharType(c ),i=pathStateMachine[l],g=i[f]||i["else"]||"error","error"==g)return;if(l=g[0],h =m[g[1]]||noop,d=void 0===g[2]?c:g[2],h(),"afterPath"===l)return j}}function isI dent(a){return identRegExp.test(a)}function Path(a,b){if(b!==constructorIsPrivat e)throw Error("Use Path.get to retrieve path objects");a.length&&Array.prototype .push.apply(this,a.slice()),hasEval&&this.length&&(this.getValueFrom=this.compil edGetValueFromFn())}function getPath(a){if(a instanceof Path)return a;if((null== a||0==a.length)&&(a=""),"string"!=typeof a){if(isIndex(a.length))return new Path (a,constructorIsPrivate);a=String(a)}var b=pathCache[a];if(b)return b;var c=pars ePath(a);if(!c)return invalidPath;var b=new Path(c,constructorIsPrivate);return pathCache[a]=b,b}function formatAccessor(a){return isIndex(a)?"["+a+"]":'["'+a.r eplace(/"/g,'\\"')+'"]'}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLE S>b&&a.check_();)b++;return global.testingExposeCycleCount&&(global.dirtyCheckCy cleCount=b),b>0}function objectIsEmpty(a){for(var b in a)return!1;return!0}funct ion diffIsEmpty(a){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&obje ctIsEmpty(a.changed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};fo r(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] =void 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](); return eomTasks.length=0,!0}function newObservedObject(){function a(a){b&&b.stat e_===OPENED&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)thro w Error("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},obs erve:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:functio n(b){d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.u nobserve(c,a),observedObjectCache.push(this)}}}function getObservedObject(a,b,c) {var d=observedObjectCache.pop()||newObservedObject();return d.open(a),d.observe (b,c),d}function newObservedSet(){function a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf (b)<0&&(h.push(b),Object.observe(b,c)),a(Object.getPrototypeOf(b),f))}function b (a){for(var b=0;b<a.length;b++){var c=a[b];if(c.object!==d||e[c.name]||"setProto type"===c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.lengt h;e++)d=g[e],d.state_==OPENED&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d =g[e],d.state_==OPENED&&d.check_()}}var d,e,f=0,g=[],h=[],i={object:void 0,objec ts:h,open:function(b,c){d||(d=c,e={}),g.push(b),f++,b.iterateObjects_(a)},close: function(){if(f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobserve(h[a],c),Ob server.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,observedSetCach e.push(this)}}};return i}function getObservedSet(a,b){return lastObservedSet&&la stObservedSet.object===b||(lastObservedSet=observedSetCache.pop()||newObservedSe t(),lastObservedSet.object=b),lastObservedSet.open(a,b),lastObservedSet}function Observer(){this.state_=UNOPENED,this.callback_=void 0,this.target_=void 0,this. directObserver_=void 0,this.value_=void 0,this.id_=nextObserverId++}function add ToAll(a){Observer._allObserversCount++,collectObservers&&allObservers.push(a)}fu nction removeFromAll(){Observer._allObserversCount--}function ObjectObserver(a){ Observer.call(this),this.value_=a,this.oldObject_=void 0}function ArrayObserver( a){if(!Array.isArray(a))throw Error("Provided object is not an Array");ObjectObs erver.call(this,a)}function PathObserver(a,b){Observer.call(this),this.object_=a ,this.path_=getPath(b),this.directObserver_=void 0}function CompoundObserver(a){ Observer.call(this),this.reportChangesOnOpen_=a,this.value_=[],this.directObserv er_=void 0,this.observed_=[]}function identFn(a){return a}function ObserverTrans form(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,this.dontP assThroughSet_=d}function diffObjectFromChangeRecords(a,b,c){for(var d={},e={},f =0;f<b.length;f++){var g=b[f];expectedRecordTypes[g.type]?(g.name in c||(c[g.nam e]=g.oldValue),"update"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],de lete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(consol e.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)}return{added:d,removed:e,changed:i}}function new Splice(a,b,c){return{index:a,removed:b,addedCount:c}}function ArraySplice(){}fun ction calcSplices(a,b,c,d,e,f){return arraySplice.calcSplices(a,b,c,d,e,f)}funct ion 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){for(var e=newSplice(b,c,d),f=!1,g=0,h=0;h<a.len gth;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.addedCount-j;var k=e.removed.length+i.removed.l ength-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.prototype.push.apply(l,c),c=l}if(e.index+e.remove d.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.inde x);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":merg eSplice(c,e.index,e.removed.slice(),e.addedCount);break;case"add":case"update":c ase"delete":if(!isIndex(e.name))continue;var f=toNumber(e.name);if(0>f)continue; mergeSplice(c,f,[e.oldValue],1);break;default:console.error("Unexpected record t ype: "+JSON.stringify(e))}}return c}function projectArraySplices(a,b){var c=[];r eturn createInitialSplices(a,b).forEach(function(b){return 1==b.addedCount&&1==b .removed.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(calcS plices(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var ha sObserve=detectObjectObserve(),hasEval=detectEval(),numberIsNaN=global.Number.is NaN||function(a){return"number"==typeof a&&global.isNaN(a)},createObject="__prot o__"in{}?function(a){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(function(b){Obje ct.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c},identStart="[$_ a-zA-Z]",identPart="[$_a-zA-Z0-9]",identRegExp=new RegExp("^"+identStart+"+"+ide ntPart+"*$"),pathStateMachine={beforePath:{ws:["beforePath"],ident:["inIdent","a ppend"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["bef oreIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIden t"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent" ,"append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent"," push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws: ["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inS ingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afte rElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number: ["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{" '":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuo te:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterE lement:{ws:["afterElement"],"]":["inPath","push"]}},constructorIsPrivate={},path Cache={};Path.get=getPath,Path.prototype=createObject({__proto__:[],valid:!0,toS tring:function(){for(var a="",b=0;b<this.length;b++){var c=this[b];a+=isIdent(c) ?b?"."+c:c:formatAccessor(c)}return a},getValueFrom:function(a){for(var b=0;b<th is.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,this[0])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if (obj != null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=isIdent(c)?"."+c:formatAcce ssor(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d];return b+=isIdent(c) ?"."+c:formatAccessor(c),a+=" return "+b+";\nelse\n return undefined;",new Fun ction("obj",a)},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);invalidP ath.valid=!1,invalidPath.getValueFrom=invalidPath.setValueFrom=function(){};var MAX_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],runEOM=hasObserve?function(){var a={pingP ong:!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 functio n(a){eomTasks.push(a)}}(),observedObjectCache=[],observedSetCache=[],lastObserve dSet,UNOPENED=0,OPENED=1,CLOSED=2,RESETTING=3,nextObserverId=1;Observer.prototyp e={open:function(a,b){if(this.state_!=UNOPENED)throw Error("Observer has already been opened.");return addToAll(this),this.callback_=a,this.target_=b,this.conne ct_(),this.state_=OPENED,this.value_},close:function(){this.state_==OPENED&&(rem oveFromAll(this),this.disconnect_(),this.value_=void 0,this.callback_=void 0,thi s.target_=void 0,this.state_=CLOSED)},deliver:function(){this.state_==OPENED&&di rtyCheck(this)},report_:function(a){try{this.callback_.apply(this.target_,a)}cat ch(b){Observer._errorThrownDuringCallback=!0,console.error("Exception caught dur ing observer callback: "+(b.stack||b))}},discardChanges:function(){return this.c heck_(void 0,!0),this.value_}};var collectObservers=!hasObserve,allObservers;Obs erver._allObserversCount=0,collectObservers&&(allObservers=[]);var runningMicrot askCheckpoint=!1,hasDebugForceFullDelivery=hasObserve&&function(){try{return eva l("%RunMicrotasks()"),!0}catch(ex){return!1}}();global.Platform=global.Platform| |{},global.Platform.performMicrotaskCheckpoint=function(){if(!runningMicrotaskCh eckpoint){if(hasDebugForceFullDelivery)return void eval("%RunMicrotasks()");if(c ollectObservers){runningMicrotaskCheckpoint=!0;var cycles=0,anyChanged,toCheck;d o{cycles++,toCheck=allObservers,allObservers=[],anyChanged=!1;for(var i=0;i<toCh eck.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.testingExposeCycleCount &&(global.dirtyCheckCycleCount=cycles),runningMicrotaskCheckpoint=!1}}},collectO bservers&&(global.Platform.clearObservers=function(){allObservers=[]}),ObjectObs erver.prototype=createObject({__proto__:Observer.prototype,arrayObserve:!1,conne ct_:function(){hasObserve?this.directObserver_=getObservedObject(this,this.value _,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject:fu nction(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isA rray(a)&&(b.length=a.length),b},check_:function(a){var b,c;if(hasObserve){if(!a) return!1;c={},b=diffObjectFromChangeRecords(this.value_,a,c)}else c=this.oldObje ct_,b=diffObjectFromOldObject(this.value_,this.oldObject_);return 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.directObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==OPENED&&(hasObserve?t his.directObserver_.deliver(!1):dirtyCheck(this))},discardChanges:function(){ret urn this.directObserver_?this.directObserver_.deliver(!0):this.oldObject_=this.c opyObject(this.value_),this.value_}}),ArrayObserver.prototype=createObject({__pr oto__:ObjectObserver.prototype,arrayObserve:!0,copyObject:function(a){return a.s lice()},check_:function(a){var b;if(hasObserve){if(!a)return!1;b=projectArraySpl ices(this.value_,a)}else b=calcSplices(this.value_,0,this.value_.length,this.old Object_,0,this.oldObject_.length);return b&&b.length?(hasObserve||(this.oldObjec t_=this.copyObject(this.value_)),this.report_([b]),!0):!1}}),ArrayObserver.apply Splices=function(a,b,c){c.forEach(function(c){for(var d=[c.index,c.removed.lengt h],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prototype.splice.app ly(a,d)})},PathObserver.prototype=createObject({__proto__:Observer.prototype,get path(){return this.path_},connect_:function(){hasObserve&&(this.directObserver_ =getObservedSet(this,this.object_)),this.check_(void 0,!0)},disconnect_:function (){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),th is.directObserver_=void 0)},iterateObjects_:function(a){this.path_.iterateObject s(this.object_,a)},check_:function(a,b){var c=this.value_;return this.value_=thi s.path_.getValueFrom(this.object_),b||areSameValue(this.value_,c)?!1:(this.repor t_([this.value_,c,this]),!0)},setValue:function(a){this.path_&&this.path_.setVal ueFrom(this.object_,a)}});var observerSentinel={};CompoundObserver.prototype=cre ateObject({__proto__:Observer.prototype,connect_:function(){if(hasObserve){for(v ar a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==observerSe ntinel){b=!0;break}b&&(this.directObserver_=getObservedSet(this,a))}this.check_( void 0,!this.reportChangesOnOpen_)},disconnect_:function(){for(var a=0;a<this.ob served_.length;a+=2)this.observed_[a]===observerSentinel&&this.observed_[a+1].cl ose();this.observed_.length=0,this.value_.length=0,this.directObserver_&&(this.d irectObserver_.close(this),this.directObserver_=void 0)},addPath:function(a,b){i f(this.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("Cannot add paths on ce started.");var b=getPath(b);if(this.observed_.push(a,b),this.reportChangesOnO pen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObse rver:function(a){if(this.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("C annot add observers once started.");if(this.observed_.push(observerSentinel,a),t his.reportChangesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=a.open( this.deliver,this)}},startReset:function(){if(this.state_!=OPENED)throw Error("C an only reset while open");this.state_=RESETTING,this.disconnect_()},finishReset :function(){if(this.state_!=RESETTING)throw Error("Can only finishReset after st artReset");return this.state_=OPENED,this.connect_(),this.value_},iterateObjects _:function(a){for(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!= =observerSentinel&&this.observed_[c+1].iterateObjects(b,a)},check_:function(a,b) {for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.observed_[d],g=this.ob served_[d+1];if(f===observerSentinel){var h=g;e=this.state_===UNOPENED?h.open(th is.deliver,this):h.discardChanges()}else e=g.getValueFrom(f);b?this.value_[d/2]= e:areSameValue(e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_ [d/2]=e)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),Observ erTransform.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),!areSameVa lue(a,this.value_)){var b=this.value_;this.value_=a,this.callback_.call(this.tar get_,this.value_,b)}},discardChanges:function(){return this.value_=this.getValue Fn_(this.observable_.discardChanges()),this.value_},deliver:function(){return th is.observable_.deliver()},setValue:function(a){return a=this.setValueFn_(a),!thi s.dontPassThroughSet_&&this.observable_.setValue?this.observable_.setValue(a):vo id 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.getV alueFn_=void 0,this.setValueFn_=void 0}};var expectedRecordTypes={add:!0,update: !0,"delete":!0},EDIT_LEAVE=0,EDIT_UPDATE=1,EDIT_ADD=2,EDIT_DELETE=3;ArraySplice. prototype={calcEditDistances:function(a,b,c,d,e,f){for(var 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},spl iceOperationsFromEditDistances:function(a){for(var b=a.length-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(EDIT_ADD),c--,d=i)}else e.push(EDIT_DELETE),b--;else e.push(EDIT_ADD),c--;return e.reverse(),e},calcSpli ces: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.sharedSuffix(a,d,i-g)),b +=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(var j=newSplice(b,[],0); f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[newSplice(b,[],c-b)];for(va r k=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)), j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case EDIT_LEAVE:j&&(l.push (j),j=void 0),m++,n++;break;case EDIT_UPDATE:j||(j=newSplice(m,[],0)),j.addedCou nt++,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},sharedSuffix:function(a,b,c){fo r(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},c alculateSplices: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.Obs erver=Observer,global.Observer.runEOM_=runEOM,global.Observer.observerSentinel_= observerSentinel,global.Observer.hasObjectObserve=hasObserve,global.ArrayObserve r=ArrayObserver,global.ArrayObserver.calculateSplices=function(a,b){return array Splice.calculateSplices(a,b)},global.ArraySplice=ArraySplice,global.ObjectObserv er=ObjectObserver,global.PathObserver=PathObserver,global.CompoundObserver=Compo undObserver,global.Path=Path,global.ObserverTransform=ObserverTransform}("undefi ned"!=typeof global&&global&&"undefined"!=typeof module&&module?global:this||win dow),Platform.flags.shadow?(window.ShadowDOMPolyfill={},function(a){"use strict" ;function b(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)retu rn!1;try{var a=new Function("return true;");return a()}catch(b){return!1}}functi on c(a){if(!a)throw new Error("Assertion failed")}function d(a,b){for(var c=L(b) ,d=0;d<c.length;d++){var e=c[d];K(a,e,M(b,e))}return a}function e(a,b){for(var c =L(b),d=0;d<c.length;d++){var e=c[d];switch(e){case"arguments":case"caller":case "length":case"name":case"prototype":case"toString":continue}K(a,e,M(b,e))}return a}function f(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function g (a,b,c){N.value=c,K(a,b,N)}function h(a){var b=a.__proto__||Object.getPrototypeO f(a),c=G.get(b);if(c)return c;var d=h(b),e=v(d);return s(b,e,a),e}function i(a,b ){q(a,b,!0)}function j(a,b){q(b,a,!1)}function k(a){return/^on[a-z]+$/.test(a)}f unction l(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}function m(a){return J&&l(a)?new Function("return this.impl."+a):function(){return this.impl[a]}}function n(a){re turn J&&l(a)?new Function("v","this.impl."+a+" = v"):function(b){this.impl[a]=b} }function o(a){return J&&l(a)?new Function("return this.impl."+a+".apply(this.im pl, arguments)"):function(){return this.impl[a].apply(this.impl,arguments)}}func tion p(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){return P}}f unction q(b,c,d){for(var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polymerBlackL ist_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBlackList_[g])){O&&b.__lookup Getter__(g);var h,i,j=p(b,g);if(d&&"function"==typeof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.writable||j.set)&&(i=l?a.getEvent HandlerSetter(g):n(g)),K(c,g,{get:h,set:i,configurable:j.configurable,enumerable :j.enumerable})}}}}function r(a,b,c){var d=a.prototype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===G.get(a)),G.set(a,b),H.set(e,a),i(a,e),d&& j(e,d),g(e,"constructor",b),b.prototype=e}function t(a,b){return G.get(b.prototy pe)===a}function u(a){var b=Object.getPrototypeOf(a),c=h(b),d=v(c);return s(b,d, a),d}function v(a){function b(b){a.call(this,b)}var c=Object.create(a.prototype) ;return c.constructor=b,b.prototype=c,b}function w(a){return a instanceof I.Even tTarget||a instanceof I.Event||a instanceof I.Range||a instanceof I.DOMImplement ation||a instanceof I.CanvasRenderingContext2D||I.WebGLRenderingContext&&a insta nceof I.WebGLRenderingContext}function x(a){return R&&a instanceof R||a instance of T||a instanceof S||a instanceof U||a instanceof V||a instanceof Q||a instance of W||X&&a instanceof X||Y&&a instanceof Y}function y(a){return null===a?null:(c (x(a)),a.polymerWrapper_||(a.polymerWrapper_=new(h(a))(a)))}function z(a){return null===a?null:(c(w(a)),a.impl)}function A(a){return a&&w(a)?z(a):a}function B(a ){return a&&!w(a)?y(a):a}function C(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)), a.polymerWrapper_=b)}function D(a,b,c){Z.get=c,K(a.prototype,b,Z)}function E(a,b ){D(a,b,function(){return y(this.impl[b])})}function F(a,b){a.forEach(function(a ){b.forEach(function(b){a.prototype[b]=function(){var a=B(this);return a[b].appl y(a,arguments)}})})}var G=new WeakMap,H=new WeakMap,I=Object.create(null),J=b(), K=Object.defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDesc riptor,N={value:void 0,configurable:!0,enumerable:!1,writable:!0};L(window);var O=/Firefox/.test(navigator.userAgent),P={get:function(){},set:function(){},confi gurable:!0,enumerable:!0},Q=window.DOMImplementation,R=window.EventTarget,S=wind ow.Event,T=window.Node,U=window.Window,V=window.Range,W=window.CanvasRenderingCo ntext2D,X=window.WebGLRenderingContext,Y=window.SVGElementInstance,Z={get:void 0 ,configurable:!0,enumerable:!0};a.assert=c,a.constructorTable=G,a.defineGetter=D ,a.defineWrapGetter=E,a.forwardMethodsToWrapper=F,a.isWrapper=w,a.isWrapperFor=t ,a.mixin=d,a.nativePrototypeTable=H,a.oneOf=f,a.registerObject=u,a.registerWrapp er=r,a.rewrap=C,a.unwrap=z,a.unwrapIfNeeded=A,a.wrap=y,a.wrapIfNeeded=B,a.wrappe rs=I}(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))}var d,e=window.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j =document.createTextNode(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.ShadowDOMPolyfill),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,this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=new m .NodeList,this.previousSibling=null,this.nextSibling=null,this.attributeName=nul l,this.attributeNamespace=null,this.oldValue=null}function e(a,b){for(;a;a=a.par entNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.su btree&&e.addTransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b ++){var c=a.nodes_[b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f= d[e];f.observer===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);i f(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.char acterData||"childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attrib utes"===c&&l.attributeOldValue||"characterData"===c&&l.characterDataOldValue)&&( g[m.uid_]=e.oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"name"i n e&&"namespace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespace), e.addedNodes&&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.remo vedNodes),e.previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibling &&(q.nextSibling=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.s ubtree,this.attributes="attributes"in a||!("attributeOldValue"in a||"attributeFi lter"in a)?!!a.attributes:!0,this.characterData="characterDataOldValue"in a&&!(" characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldValue| |"attributeFilter"in a)||!this.characterData&&a.characterDataOldValue)throw new TypeError;if(this.characterData=!!a.characterData,this.attributeOldValue=!!a.att ributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue,"attributeFi lter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else this.attribute Filter=null}function i(a){this.callback_=a,this.nodes_=[],this.records_=[],this. uid_=++r,o.push(this)}function j(a,b,c){this.observer=a,this.target=b,this.optio ns=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m =a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={obs erve: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.o ptions=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnect:funct ion(){this.nodes_.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_=[]},tak eRecords:function(){var a=this.records_;return this.records_=[],a}},j.prototype= {addTransientObserver:function(a){if(a!==this.target){this.transientObservedNode s.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientObserver s:function(){var a=this.transientObservedNodes;this.transientObservedNodes=[];fo r(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.splice(e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e, a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyf ill),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.olderSh adowRoot)d.treeScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}} function d(c){if(c instanceof a.wrappers.Window,c.treeScope_)return c.treeScope_ ;var e,f=c.parentNode;return e=f?d(f):new b(c,null),c.treeScope_=e}b.prototype={ get renderer(){return this.root instanceof a.wrappers.ShadowRoot?a.getRendererFo rHost(this.root.host):null},contains:function(a){for(;a;a=a.parent)if(a===this)r eturn!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScope=c}(window.Shado wDOMPolyfill),function(a){"use strict";function b(a){return a instanceof Q.Shado wRoot}function c(a){return L(a).root}function d(a,d){var h=[],i=a;for(h.push(i); i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){var m=j[k];if(f(m)) {var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length-1]}else if(b (i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNode,i&&h.push(i)}r eturn h}function e(a){if(!a)return!1;switch(a.type){case"abort":case"error":case "select":case"change":case"load":case"reset":case"resize":case"scroll":case"sele ctstart":return!0}return!1}function f(a){return a instanceof HTMLShadowElement}f unction g(b){return a.getDestinationInsertionPoints(b)}function h(a,b){if(0===a. length)return b;b instanceof Q.Window&&(b=b.document);for(var c=L(b),d=a[0],e=L( d),f=j(c,e),g=0;g<a.length;g++){var h=a[g];if(L(h)===f)return h}return a[a.lengt h-1]}function i(a){for(var b=[];a;a=a.parent)b.push(a);return b}function j(a,b){ for(var c=i(a),d=i(b),e=null;c.length>0&&d.length>0;){var f=c.pop(),g=d.pop();if (f!==g)break;e=f}return e}function k(a,b,c){b instanceof Q.Window&&(b=b.document );var e,f=L(b),g=L(c),h=d(c,a),e=j(f,g);e||(e=g.root);for(var i=e;i;i=i.parent)f or(var k=0;k<h.length;k++){var l=h[k];if(L(l)===i)return l}return null}function l(a,b){return L(a)===L(b)}function m(a){if(!S.get(a)&&(S.set(a,!0),n(P(a),P(a.ta rget)),J)){var b=J;throw J=null,b}}function n(b,c){if(T.get(b))throw new Error(" InvalidStateError");T.set(b,!0),a.renderAllPending();var e,f,g,h=b.type;if("load "===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(g=i.defaultView)&&(f=i,e=[] )}if(!e)if(c instanceof Q.Window)g=c,e=[];else if(e=d(c,b),"load"!==b.type){var i=e[e.length-1];i instanceof Q.Document&&(g=i.defaultView)}return _.set(b,e),o(b ,e,g,f)&&p(b,e,g,f)&&q(b,e,g,f),X.set(b,ab),V.delete(b,null),T.delete(b),b.defau ltPrevented
13 }function o(a,b,c,d){var e=bb;if(c&&!r(c,a,e,b,d))return!1;for(var f=b.length-1; f>0;f--)if(!r(b[f],a,e,b,d))return!1;return!0}function p(a,b,c,d){var e=cb,f=b[0 ]||c;return r(f,a,e,b,d)}function q(a,b,c,d){for(var e=db,f=1;f<b.length;f++)if( !r(b[f],a,e,b,d))return;c&&b.length>0&&r(c,a,e,b,d)}function r(a,b,c,d,e){var f= R.get(a);if(!f)return!0;var g=e||h(d,a);if(g===a){if(c===bb)return!0;c===db&&(c= cb)}else if(c===db&&!b.bubbles)return!0;if("relatedTarget"in b){var i=O(b),j=i.r elatedTarget;if(j){if(j instanceof Object&&j.addEventListener){var l=P(j),m=k(b, a,l);if(m===g)return!0}else m=null;W.set(b,m)}}X.set(b,c);var n=b.type,o=!1;U.se t(b,g),V.set(b,a),f.depth++;for(var p=0,q=f.length;q>p;p++){var r=f[p];if(r.remo ved)o=!0;else if(!(r.type!==n||!r.capture&&c===bb||r.capture&&c===db))try{if("fu nction"==typeof r.handler?r.handler.call(a,b):r.handler.handleEvent(b),Z.get(b)) return!1}catch(s){J||(J=s)}}if(f.depth--,o&&0===f.depth){var t=f.slice();f.lengt h=0;for(var p=0;p<t.length;p++)t[p].removed||f.push(t[p])}return!Y.get(b)}functi on s(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}function t(a,b){i f(!(a instanceof eb))return P(x(eb,"Event",a,b));var c=a;return pb||"beforeunloa d"!==c.type?void(this.impl=c):new y(c)}function u(a){return a&&a.relatedTarget?O bject.create(a,{relatedTarget:{value:O(a.relatedTarget)}}):a}function v(a,b,c){v ar d=window[a],e=function(b,c){return b instanceof d?void(this.impl=b):P(x(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.createEvent(a))}return e}function w(a,b){ return function(){arguments[b]=O(arguments[b]);var c=O(this);c[a].apply(c,argume nts)}}function x(a,b,c,d){if(nb)return new a(c,u(d));var e=O(document.createEven t(b)),f=mb[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a i n d?d[a]:f[a];"relatedTarget"===a&&(b=O(b)),g.push(b)}),e["init"+b].apply(e,g),e }function y(a){t.call(this,a)}function z(a){return"function"==typeof a?!0:a&&a.h andleEvent}function A(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameCh anged":case"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeIn serted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemov edFromDocument":case"DOMSubtreeModified":return!0}return!1}function B(a){this.im pl=a}function C(a){return a instanceof Q.ShadowRoot&&(a=a.host),O(a)}function D( 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 E(a,b){for(var c=O(a);c;c=c.parentNode)if(D(P(c), b))return!0;return!1}function F(a){K(a,rb)}function G(b,c,e,f){a.renderAllPendin g();var g=P(sb.call(c.impl,e,f));if(!g)return null;var i=d(g,null),j=i.lastIndex Of(b);return-1==j?null:(i=i.slice(0,j),h(i,b))}function H(a){return function(){v ar b=$.get(this);return b&&b[a]&&b[a].value||null}}function I(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 J,K=a.forwardMethodsToWrapper,L=a.getTreeScope,M=a.mi xin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,R=(new WeakMap,new Weak Map),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 WeakMap,_=new WeakMap,ab=0,bb=1,cb=2, db=3;s.prototype={equals:function(a){return this.handler===a.handler&&this.type= ==a.type&&this.capture===a.capture},get removed(){return null===this.handler},re move:function(){this.handler=null}};var eb=window.Event;eb.prototype.polymerBlac kList_={returnValue:!0,keyLocation:!0},t.prototype={get target(){return U.get(th is)},get currentTarget(){return V.get(this)},get eventPhase(){return X.get(this) },get path(){var a=_.get(this);return a?a.slice():[]},stopPropagation:function() {Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(this,!0),Z.set(this,! 0)}},N(eb,t,document.createEvent("Event"));var fb=v("UIEvent",t),gb=v("CustomEve nt",t),hb={get relatedTarget(){var a=W.get(this);return void 0!==a?a:P(O(this).r elatedTarget)}},ib=M({initMouseEvent:w("initMouseEvent",14)},hb),jb=M({initFocus Event:w("initFocusEvent",5)},hb),kb=v("MouseEvent",fb,ib),lb=v("FocusEvent",fb,j b),mb=Object.create(null),nb=function(){try{new window.FocusEvent("focus")}catch (a){return!1}return!0}();if(!nb){var ob=function(a,b,c){if(c){var d=mb[c];b=M(M( {},d),b)}mb[a]=b};ob("Event",{bubbles:!1,cancelable:!1}),ob("CustomEvent",{detai l:null},"Event"),ob("UIEvent",{view:null,detail:0},"Event"),ob("MouseEvent",{scr eenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1 ,button:0,relatedTarget:null},"UIEvent"),ob("FocusEvent",{relatedTarget:null},"U IEvent")}var pb=window.BeforeUnloadEvent;y.prototype=Object.create(t.prototype), M(y.prototype,{get returnValue(){return this.impl.returnValue},set returnValue(a ){this.impl.returnValue=a}}),pb&&N(pb,y);var qb=window.EventTarget,rb=["addEvent Listener","removeEventListener","dispatchEvent"];[Node,Window].forEach(function( a){var b=a.prototype;rb.forEach(function(a){Object.defineProperty(b,a+"_",{value :b[a]})})}),B.prototype={addEventListener:function(a,b,c){if(z(b)&&!A(a)){var d= new s(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e[f]))re turn}else e=[],e.depth=0,R.set(this,e);e.push(d);var g=C(this);g.addEventListene r_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.get(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=C(this);h.removeEvent Listener_(a,m,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set(c,!1),a .renderAllPending();var e;E(this,d)||(e=function(){},this.addEventListener(d,e,! 0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventListener(d,e ,!0)}}},qb&&N(qb,B);var sb=document.elementFromPoint;a.elementFromPoint=G,a.getE ventHandlerGetter=H,a.getEventHandlerSetter=I,a.wrapEventTargetMethods=F,a.wrapp ers.BeforeUnloadEvent=y,a.wrappers.CustomEvent=gb,a.wrappers.Event=t,a.wrappers. EventTarget=B,a.wrappers.FocusEvent=lb,a.wrappers.MouseEvent=kb,a.wrappers.UIEve nt=fb}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){Object .defineProperty(a,b,o)}function c(a){this.impl=a}function d(){this.length=0,b(th is,"length")}function e(a){for(var b=new d,e=0;e<a.length;e++)b[e]=new c(a[e]);r eturn b.length=e,b}function f(a){g.call(this,a)}var g=a.wrappers.UIEvent,h=a.mix in,i=a.registerWrapper,j=a.unwrap,k=a.wrap,l=window.TouchEvent;if(l){var m;try{m =document.createEvent("TouchEvent")}catch(n){return}var o={enumerable:!1};c.prot otype={get target(){return k(this.impl.target)}};var p={configurable:!0,enumerab le:!0,get:null};["clientX","clientY","screenX","screenY","pageX","pageY","identi fier","webkitRadiusX","webkitRadiusY","webkitRotationAngle","webkitForce"].forEa ch(function(a){p.get=function(){return this.impl[a]},Object.defineProperty(c.pro totype,a,p)}),d.prototype={item:function(a){return this[a]}},f.prototype=Object. create(g.prototype),h(f.prototype,{get touches(){return e(j(this).touches)},get targetTouches(){return e(j(this).targetTouches)},get changedTouches(){return e(j (this).changedTouches)},initTouchEvent:function(){throw new Error("Not implement ed")}}),i(l,f,m),a.wrappers.Touch=c,a.wrappers.TouchEvent=f,a.wrappers.TouchList =d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){Object.d efineProperty(a,b,g)}function c(){this.length=0,b(this,"length")}function d(a){i f(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.prototype[b]=function(){return d(this.impl[b].apply (this.impl,arguments))}}var f=a.wrap,g={enumerable:!1};c.prototype={item:functio n(a){return this[a]}},b(c.prototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeL istMethod=e,a.wrapNodeList=d}(window.ShadowDOMPolyfill),function(a){"use strict" ;a.wrapHTMLCollection=a.wrapNodeList,a.wrappers.HTMLCollection=a.wrappers.NodeLi st}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){A(a instanc eof w)}function c(a){var b=new y;return b[0]=a,b.length=1,b}function d(a,b,c){C( b,"childList",{removedNodes:c,previousSibling:a.previousSibling,nextSibling:a.ne xtSibling})}function e(a,b){C(a,"childList",{removedNodes: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].pr eviousSibling_=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.previousSibling_=d,a.nextSibling_=e,d&&(d.ne xtSibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof Document Fragment)return h(a);var b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a ){for(var b=new y,c=0,d=a.firstChild;d;d=d.nextSibling)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_()}fun ction 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.ownerDocument;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.createDocumen tFragment()),e=0;c>e;e++)d.appendChild(J(b[e]));return d}function q(a){if(void 0 !==a.firstChild_)for(var b=a.firstChild_;b;){var c=b;b=b.nextSibling_,c.parentNo de_=c.previousSibling_=c.nextSibling_=void 0}a.firstChild_=a.lastChild_=void 0}f unction r(a){if(a.invalidateShadowRenderer()){for(var b=a.firstChild;b;){A(b.par entNode===a);var c=b.nextSibling,d=J(b),e=d.parentNode;e&&V.call(e,d),b.previous Sibling_=b.nextSibling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}e lse for(var c,f=J(a),g=f.firstChild;g;)c=g.nextSibling,V.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.invalidateShadowRenderer()}function t(a){for (var b,c=0;c<a.length;c++)b=a[c],b.parentNode.removeChild(b)}function u(a,b,c){v ar 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 instanceof N.HTMLTemplateElement) for(var f=d.content,e=a.content.firstChild;e;e=e.nextSibling)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.par entNode)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.ne xtSibling_=void 0,this.previousSibling_=void 0,this.treeScope_=void 0}var x=a.wr appers.EventTarget,y=a.wrappers.NodeList,z=a.TreeScope,A=a.assert,B=a.defineWrap Getter,C=a.enqueueMutation,D=a.getTreeScope,E=a.isWrapper,F=a.mixin,G=a.register TransientObservers,H=a.registerWrapper,I=a.setTreeScope,J=a.unwrap,K=a.unwrapIfN eeded,L=a.wrap,M=a.wrapIfNeeded,N=a.wrappers,O=!1,P=document.importNode,Q=window .Node.prototype.cloneNode,R=window.Node,S=window.DocumentFragment,T=(R.prototype .appendChild,R.prototype.compareDocumentPosition),U=R.prototype.insertBefore,V=R .prototype.removeChild,W=R.prototype.replaceChild,X=/Trident/.test(navigator.use rAgent),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.create(x.prototype),F(w.prototyp e,{appendChild:function(a){return this.insertBefore(a,null)},insertBefore:functi on(a,c){b(a);var d;c?E(c)?d=J(c):(d=c,c=L(d)):(c=null,d=null),c&&A(c.parentNode= ==this);var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRende rer()&&!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.lastChild_=e[e.length-1],void 0===t his.firstChild_&&(this.firstChild_=this.firstChild));var j=d?d.parentNode:this.i mpl;j?U.call(j,p(this,e),d):o(this,e)}return C(this,"childList",{addedNodes:e,ne xtSibling:c,previousSibling:h}),k(e,this),a},removeChild:function(a){if(b(a),a.p arentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSib ling)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.f irstChild,j=this.lastChild,k=f.parentNode;k&&Y(k,f),i===a&&(this.firstChild_=g), j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.pre viousSibling_=a.nextSibling_=a.parentNode_=void 0}else q(this),Y(this.impl,f);re turn O||C(this,"childList",{removedNodes:c(a),nextSibling:g,previousSibling:h}), G(this,a),a},replaceChild:function(a,d){b(a);var e;if(E(d)?e=J(d):(e=d,d=L(e)),d .parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSibling,j=d.pr eviousSibling,m=!this.invalidateShadowRenderer()&&!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.firstChild_=h[0]),this.lastChild===d&&(this.lastCh ild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e.par entNode&&W.call(e.parentNode,p(this,h),e)),C(this,"childList",{addedNodes:h,remo vedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h,this),d},nodeIsInserted _:function(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},ha sChildNodes:function(){return null!==this.firstChild},get parentNode(){return vo id 0!==this.parentNode_?this.parentNode_:L(this.impl.parentNode)},get firstChild (){return void 0!==this.firstChild_?this.firstChild_:L(this.impl.firstChild)},ge t lastChild(){return void 0!==this.lastChild_?this.lastChild_:L(this.impl.lastCh ild)},get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:L(th is.impl.nextSibling)},get previousSibling(){return void 0!==this.previousSibling _?this.previousSibling_:L(this.impl.previousSibling)},get parentElement(){for(va r a=this.parentNode;a&&a.nodeType!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.firstChild;b;b=b.nextSibling)b.nodeType!=w.CO MMENT_NODE&&(a+=b.textContent);return a},set textContent(a){var b=i(this.childNo des);if(this.invalidateShadowRenderer()){if(r(this),""!==a){var c=this.impl.owne rDocument.createTextNode(a);this.appendChild(c)}}else q(this),this.impl.textCont ent=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.ne xtSibling)a[b++]=c;return a.length=b,a},cloneNode:function(a){return u(this,a)}, contains:function(a){return v(this,M(a))},compareDocumentPosition:function(a){re turn T.call(this.impl,K(a))},normalize:function(){for(var a,b,c=i(this.childNode s),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:this.removeNode(b):(a&&d.length&&(a.data+=e,t(d)),d =[],e="",a=null,b.childNodes.length&&b.normalize());a&&d.length&&(a.data+=e,t(d) )}}),B(w,"ownerDocument"),H(R,w,document.createDocumentFragment()),delete w.prot otype.querySelector,delete w.prototype.querySelectorAll,w.prototype=F(Object.cre ate(x.prototype),w.prototype),a.cloneNode=u,a.nodeWasAdded=j,a.nodeWasRemoved=l, a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=w}( window.ShadowDOMPolyfill),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.nextEle mentSibling}return null}function c(a,b){return a.matches(b)}function d(a,b,c){va r d=a.localName;return d===b||d===c&&a.namespaceURI===l}function e(){return!0}fu nction f(a,b){return a.localName===b}function g(a,b){return a.namespaceURI===b}f unction h(a,b,c){return a.namespaceURI===b&&a.localName===c}function i(a,b,c,d,e ){for(var f=a.firstElementChild;f;)c(f,d,e)&&(b[b.length++]=f),i(f,b,c,d,e),f=f. nextElementSibling;return b}var j=a.wrappers.HTMLCollection,k=a.wrappers.NodeLis t,l="http://www.w3.org/1999/xhtml",m={querySelector:function(a){return b(this,a) },querySelectorAll:function(a){return i(this,new k,c,a)}},n={getElementsByTagNam e:function(a){var b=new j;return"*"===a?i(this,b,e):i(this,b,d,a,a.toLowerCase() )},getElementsByClassName:function(a){return this.querySelectorAll("."+a)},getEl ementsByTagNameNS:function(a,b){var c=new j;if(""===a)a=null;else if("*"===a)ret urn"*"===b?i(this,c,e):i(this,c,f,b);return"*"===b?i(this,c,g,a):i(this,c,h,a,b) }};a.GetElementsByInterface=n,a.SelectorsInterface=m}(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 lastElementChild(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b;b=b.nextElementSiblin g)a++;return a},get children(){for(var a=new d,b=0,c=this.firstElementChild;c;c= c.nextElementSibling)a[b++]=c;return a.length=b,a},remove:function(){var a=this. parentNode;a&&a.removeChild(this)}},f={get nextElementSibling(){return b(this.ne xtSibling)},get previousElementSibling(){return c(this.previousSibling)}};a.Chil dNodeInterface=f,a.ParentNodeInterface=e}(window.ShadowDOMPolyfill),function(a){ "use strict";function b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrapper s.Node,e=a.enqueueMutation,f=a.mixin,g=a.registerWrapper,h=window.CharacterData; b.prototype=Object.create(d.prototype),f(b.prototype,{get textContent(){return t his.data},set textContent(a){this.data=a},get data(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"characterData",{oldValue:b}),this.impl.data =a}}),f(b.prototype,c),g(h,b,document.createTextNode("")),a.wrappers.CharacterDa ta=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a> >>0}function c(a){d.call(this,a)}var d=a.wrappers.CharacterData,e=(a.enqueueMuta tion,a.mixin),f=a.registerWrapper,g=window.Text;c.prototype=Object.create(d.prot otype),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;v ar f=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNod e.insertBefore(f,this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wra ppers.Text=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){a .invalidateRendererBasedOnAttribute(b,"class")}function c(a,b){this.impl=a,this. ownerElement_=b}c.prototype={get length(){return this.impl.length},item:function (a){return this.impl.item(a)},contains:function(a){return this.impl.contains(a)} ,add:function(){this.impl.add.apply(this.impl,arguments),b(this.ownerElement_)}, remove:function(){this.impl.remove.apply(this.impl,arguments),b(this.ownerElemen t_)},toggle:function(){var a=this.impl.toggle.apply(this.impl,arguments);return b(this.ownerElement_),a},toString:function(){return this.impl.toString()}},a.wra ppers.DOMTokenList=c}(window.ShadowDOMPolyfill),function(a){"use strict";functio n 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){g.call(this,a)}var e=a.ChildNodeInte rface,f=a.GetElementsByInterface,g=a.wrappers.Node,h=a.wrappers.DOMTokenList,i=a .ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueue Mutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.unwrap,o=a.wrappers,p=wind ow.Element,q=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesS elector"].filter(function(a){return p.prototype[a]}),r=q[0],s=p.prototype[r],t=n ew WeakMap;d.prototype=Object.create(g.prototype),l(d.prototype,{createShadowRoo t:function(){var b=new o.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a .getRendererForHost(this);return c.invalidate(),b},get shadowRoot(){return this. impl.polymerShadowRoot_||null},setAttribute:function(a,d){var e=this.impl.getAtt ribute(a);this.impl.setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:fun ction(a){var d=this.impl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d ),b(this,a)},matches:function(a){return s.call(this.impl,a)},get classList(){var a=t.get(this);return a||t.set(this,a=new h(n(this).classList,this)),a},get clas sName(){return n(this).className},set className(a){this.setAttribute("class",a)} ,get id(){return n(this).id},set id(a){this.setAttribute("id",a)}}),q.forEach(fu nction(a){"matches"!==a&&(d.prototype[a]=function(a){return this.matches(a)})}), p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.protot ype.createShadowRoot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),l(d.pro totype,j),m(p,d,document.createElementNS(null,"x")),a.invalidateRendererBasedOnA ttribute=b,a.matchesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),func tion(a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":retur n"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}}f unction 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.nodeType){case Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i =a.attributes,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);case Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.er ror(a),new Error("not implemented")}}function g(a){a instanceof y.HTMLTemplateEl ement&&(a=a.content);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);ret urn b}function h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument. createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}fu nction i(a){o.call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML= b;for(var d,e=w(document.createDocumentFragment());d=c.firstChild;)e.appendChild (d);return 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.protot ype,b,{get:k(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configurabl e:!0,enumerable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:fu nction(){return a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},co nfigurable:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqu eueMutation,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrappe r,v=a.snapshotNodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u0 0A0<>]/g,B=e(["area","base","br","col","command","embed","hr","img","input","key gen","link","meta","param","source","track","wbr"]),C=e(["style","script","xmp", "iframe","noembed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.u serAgent),E=window.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.c reate(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.childNod es);this.invalidateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this .content,a):h(this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(t his.content,a):this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList" ,{addedNodes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,th is.parentNode)},set outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowR enderer();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=t his;break;case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbe gin":c=this,d=this.firstChild;break;case"beforeend":c=this,d=null;break;default: return}var e=j(c,b);c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientT op","clientWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollH eight","scrollWidth"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoun dingClientRect","getClientRects","scrollIntoView"].forEach(n),u(E,i,document.cre ateElement("b")),a.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(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.wrap,g=window.HTMLCa nvasElement;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:fun ction(){var a=this.impl.getContext.apply(this.impl,arguments);return a&&f(a)}}), e(g,b,document.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.S hadowDOMPolyfill),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 .prototype=Object.create(c.prototype),d(b.prototype,{get select(){return this.ge tAttribute("select")},set select(a){this.setAttribute("select",a)},setAttribute: function(a,b){c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLow erCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentE lement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.cal l(this,a)}function c(a,b){if(!(this instanceof c))throw new TypeError("DOM objec t constructor 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 .HTMLImageElement;b.prototype=Object.create(d.prototype),e(h,b,document.createEl ement("img")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.I mage=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call( this,a)}var c=a.wrappers.HTMLElement,d=(a.mixin,a.wrappers.NodeList,a.registerWr apper),e=window.HTMLShadowElement;b.prototype=Object.create(c.prototype),e&&d(e, b),a.wrappers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use st rict";function b(a){if(!a.defaultView)return a;var b=k.get(a);if(!b){for(b=a.imp lementation.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);k.set (a,b)}return b}function c(a){for(var c,d=b(a.ownerDocument),e=h(d.createDocument Fragment());c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(th is,a),!l){var b=c(a);j.set(this,i(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g= a.registerWrapper,h=a.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLT emplateElement;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.HTMLTemplat eElement=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.c all(this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaE lement;b.prototype=Object.create(c.prototype),d(e,b,document.createElement("audi o")),a.wrappers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use s trict";function b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be called as a function.");var b=f( document.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preloa d","auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement ,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype =Object.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b .prototype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPol yfill),function(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 TypeError("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.prototype),f(c.prototype,{get text(){return b(this.textContent)},set text(a){t his.textContent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,documen t.createElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement= c,a.wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";functi on b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrappe r,f=a.unwrap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Object.create(c.pro totype),d(b.prototype,{add:function(a,b){"object"==typeof b&&(b=f(b)),f(this).ad d(f(a),b)},remove:function(a){return void 0===a?void c.prototype.remove.call(thi s):("object"==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.HTMLSelectElem ent=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(t his,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.prototype),d(b.prototype,{get caption(){return g(f(this).caption)},createCapt ion:function(){return g(f(this).createCaption())},get tHead(){return g(f(this).t Head)},createTHead:function(){return g(f(this).createTHead())},createTFoot:funct ion(){return g(f(this).createTFoot())},get tFoot(){return g(f(this).tFoot)},get tBodies(){return h(f(this).tBodies)},createTBody:function(){return g(f(this).cre ateTBody())},get rows(){return h(f(this).rows)},insertRow:function(a){return g(f (this).insertRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTMLTa bleElement=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.wra pHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype =Object.create(c.prototype),d(b.prototype,{get rows(){return f(g(this).rows)},in sertRow:function(a){return h(g(this).insertRow(a))}}),e(i,b,document.createEleme nt("thead")),a.wrappers.HTMLTableSectionElement=b}(window.ShadowDOMPolyfill),fun ction(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=windo w.HTMLTableRowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get cells(){return f(g(this).cells)},insertCell:function(a){return h(g(this).insertC ell(a))}}),e(i,b,document.createElement("tr")),a.wrappers.HTMLTableRowElement=b} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a.local Name){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. HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g=(a .mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototype=Object.create( d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),f unction(a){"use strict";var b=a.wrappers.Element,c=a.wrappers.HTMLElement,d=a.re gisterObject,e="http://www.w3.org/2000/svg",f=document.createElementNS(e,"title" ),g=d(f),h=Object.getPrototypeOf(g.prototype).constructor;if(!("classList"in f)) {var i=Object.getOwnPropertyDescriptor(b.prototype,"classList");Object.definePro perty(c.prototype,"classList",i),delete b.prototype.classList}a.wrappers.SVGElem ent=h}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){m.call(t his,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.SVGUseElem ent,h="http://www.w3.org/2000/svg",i=f(document.createElementNS(h,"g")),j=docume nt.createElementNS(h,"use"),k=i.constructor,l=Object.getPrototypeOf(k.prototype) ,m=l.constructor; 13 }function o(a,b,c,d){var e=bb;if(c&&!r(c,a,e,b,d))return!1;for(var f=b.length-1; f>0;f--)if(!r(b[f],a,e,b,d))return!1;return!0}function p(a,b,c,d){var e=cb,f=b[0 ]||c;return r(f,a,e,b,d)}function q(a,b,c,d){for(var e=db,f=1;f<b.length;f++)if( !r(b[f],a,e,b,d))return;c&&b.length>0&&r(c,a,e,b,d)}function r(a,b,c,d,e){var f= R.get(a);if(!f)return!0;var g=e||h(d,a);if(g===a){if(c===bb)return!0;c===db&&(c= cb)}else if(c===db&&!b.bubbles)return!0;if("relatedTarget"in b){var i=O(b),j=i.r elatedTarget;if(j){if(j instanceof Object&&j.addEventListener){var l=P(j),m=k(b, a,l);if(m===g)return!0}else m=null;W.set(b,m)}}X.set(b,c);var n=b.type,o=!1;U.se t(b,g),V.set(b,a),f.depth++;for(var p=0,q=f.length;q>p;p++){var r=f[p];if(r.remo ved)o=!0;else if(!(r.type!==n||!r.capture&&c===bb||r.capture&&c===db))try{if("fu nction"==typeof r.handler?r.handler.call(a,b):r.handler.handleEvent(b),Z.get(b)) return!1}catch(s){J||(J=s)}}if(f.depth--,o&&0===f.depth){var t=f.slice();f.lengt h=0;for(var p=0;p<t.length;p++)t[p].removed||f.push(t[p])}return!Y.get(b)}functi on s(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}function t(a,b){i f(!(a instanceof eb))return P(x(eb,"Event",a,b));var c=a;return pb||"beforeunloa d"!==c.type?void(this.impl=c):new y(c)}function u(a){return a&&a.relatedTarget?O bject.create(a,{relatedTarget:{value:O(a.relatedTarget)}}):a}function v(a,b,c){v ar d=window[a],e=function(b,c){return b instanceof d?void(this.impl=b):P(x(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.createEvent(a))}return e}function w(a,b){ return function(){arguments[b]=O(arguments[b]);var c=O(this);c[a].apply(c,argume nts)}}function x(a,b,c,d){if(nb)return new a(c,u(d));var e=O(document.createEven t(b)),f=mb[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a i n d?d[a]:f[a];"relatedTarget"===a&&(b=O(b)),g.push(b)}),e["init"+b].apply(e,g),e }function y(a){t.call(this,a)}function z(a){return"function"==typeof a?!0:a&&a.h andleEvent}function A(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameCh anged":case"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeIn serted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemov edFromDocument":case"DOMSubtreeModified":return!0}return!1}function B(a){this.im pl=a}function C(a){return a instanceof Q.ShadowRoot&&(a=a.host),O(a)}function D( 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 E(a,b){for(var c=O(a);c;c=c.parentNode)if(D(P(c), b))return!0;return!1}function F(a){K(a,rb)}function G(b,c,e,f){a.renderAllPendin g();var g=P(sb.call(c.impl,e,f));if(!g)return null;var i=d(g,null),j=i.lastIndex Of(b);return-1==j?null:(i=i.slice(0,j),h(i,b))}function H(a){return function(){v ar b=$.get(this);return b&&b[a]&&b[a].value||null}}function I(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 J,K=a.forwardMethodsToWrapper,L=a.getTreeScope,M=a.mi xin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,R=(new WeakMap,new Weak Map),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 WeakMap,_=new WeakMap,ab=0,bb=1,cb=2, db=3;s.prototype={equals:function(a){return this.handler===a.handler&&this.type= ==a.type&&this.capture===a.capture},get removed(){return null===this.handler},re move:function(){this.handler=null}};var eb=window.Event;eb.prototype.polymerBlac kList_={returnValue:!0,keyLocation:!0},t.prototype={get target(){return U.get(th is)},get currentTarget(){return V.get(this)},get eventPhase(){return X.get(this) },get path(){var a=_.get(this);return a?a.slice():[]},stopPropagation:function() {Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(this,!0),Z.set(this,! 0)}},N(eb,t,document.createEvent("Event"));var fb=v("UIEvent",t),gb=v("CustomEve nt",t),hb={get relatedTarget(){var a=W.get(this);return void 0!==a?a:P(O(this).r elatedTarget)}},ib=M({initMouseEvent:w("initMouseEvent",14)},hb),jb=M({initFocus Event:w("initFocusEvent",5)},hb),kb=v("MouseEvent",fb,ib),lb=v("FocusEvent",fb,j b),mb=Object.create(null),nb=function(){try{new window.FocusEvent("focus")}catch (a){return!1}return!0}();if(!nb){var ob=function(a,b,c){if(c){var d=mb[c];b=M(M( {},d),b)}mb[a]=b};ob("Event",{bubbles:!1,cancelable:!1}),ob("CustomEvent",{detai l:null},"Event"),ob("UIEvent",{view:null,detail:0},"Event"),ob("MouseEvent",{scr eenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1 ,button:0,relatedTarget:null},"UIEvent"),ob("FocusEvent",{relatedTarget:null},"U IEvent")}var pb=window.BeforeUnloadEvent;y.prototype=Object.create(t.prototype), M(y.prototype,{get returnValue(){return this.impl.returnValue},set returnValue(a ){this.impl.returnValue=a}}),pb&&N(pb,y);var qb=window.EventTarget,rb=["addEvent Listener","removeEventListener","dispatchEvent"];[Node,Window].forEach(function( a){var b=a.prototype;rb.forEach(function(a){Object.defineProperty(b,a+"_",{value :b[a]})})}),B.prototype={addEventListener:function(a,b,c){if(z(b)&&!A(a)){var d= new s(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e[f]))re turn}else e=[],e.depth=0,R.set(this,e);e.push(d);var g=C(this);g.addEventListene r_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.get(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=C(this);h.removeEvent Listener_(a,m,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set(c,!1),a .renderAllPending();var e;E(this,d)||(e=function(){},this.addEventListener(d,e,! 0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventListener(d,e ,!0)}}},qb&&N(qb,B);var sb=document.elementFromPoint;a.elementFromPoint=G,a.getE ventHandlerGetter=H,a.getEventHandlerSetter=I,a.wrapEventTargetMethods=F,a.wrapp ers.BeforeUnloadEvent=y,a.wrappers.CustomEvent=gb,a.wrappers.Event=t,a.wrappers. EventTarget=B,a.wrappers.FocusEvent=lb,a.wrappers.MouseEvent=kb,a.wrappers.UIEve nt=fb}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){Object .defineProperty(a,b,o)}function c(a){this.impl=a}function d(){this.length=0,b(th is,"length")}function e(a){for(var b=new d,e=0;e<a.length;e++)b[e]=new c(a[e]);r eturn b.length=e,b}function f(a){g.call(this,a)}var g=a.wrappers.UIEvent,h=a.mix in,i=a.registerWrapper,j=a.unwrap,k=a.wrap,l=window.TouchEvent;if(l){var m;try{m =document.createEvent("TouchEvent")}catch(n){return}var o={enumerable:!1};c.prot otype={get target(){return k(this.impl.target)}};var p={configurable:!0,enumerab le:!0,get:null};["clientX","clientY","screenX","screenY","pageX","pageY","identi fier","webkitRadiusX","webkitRadiusY","webkitRotationAngle","webkitForce"].forEa ch(function(a){p.get=function(){return this.impl[a]},Object.defineProperty(c.pro totype,a,p)}),d.prototype={item:function(a){return this[a]}},f.prototype=Object. create(g.prototype),h(f.prototype,{get touches(){return e(j(this).touches)},get targetTouches(){return e(j(this).targetTouches)},get changedTouches(){return e(j (this).changedTouches)},initTouchEvent:function(){throw new Error("Not implement ed")}}),i(l,f,m),a.wrappers.Touch=c,a.wrappers.TouchEvent=f,a.wrappers.TouchList =d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){Object.d efineProperty(a,b,g)}function c(){this.length=0,b(this,"length")}function d(a){i f(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.prototype[b]=function(){return d(this.impl[b].apply (this.impl,arguments))}}var f=a.wrap,g={enumerable:!1};c.prototype={item:functio n(a){return this[a]}},b(c.prototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeL istMethod=e,a.wrapNodeList=d}(window.ShadowDOMPolyfill),function(a){"use strict" ;a.wrapHTMLCollection=a.wrapNodeList,a.wrappers.HTMLCollection=a.wrappers.NodeLi st}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){A(a instanc eof w)}function c(a){var b=new y;return b[0]=a,b.length=1,b}function d(a,b,c){C( b,"childList",{removedNodes:c,previousSibling:a.previousSibling,nextSibling:a.ne xtSibling})}function e(a,b){C(a,"childList",{removedNodes: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].pr eviousSibling_=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.previousSibling_=d,a.nextSibling_=e,d&&(d.ne xtSibling_=a),e&&(e.previousSibling_=a),f}function g(a){if(a instanceof Document Fragment)return h(a);var b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a ){for(var b=new y,c=0,d=a.firstChild;d;d=d.nextSibling)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_()}fun ction 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.ownerDocument;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.createDocumen tFragment()),e=0;c>e;e++)d.appendChild(J(b[e]));return d}function q(a){if(void 0 !==a.firstChild_)for(var b=a.firstChild_;b;){var c=b;b=b.nextSibling_,c.parentNo de_=c.previousSibling_=c.nextSibling_=void 0}a.firstChild_=a.lastChild_=void 0}f unction r(a){if(a.invalidateShadowRenderer()){for(var b=a.firstChild;b;){A(b.par entNode===a);var c=b.nextSibling,d=J(b),e=d.parentNode;e&&V.call(e,d),b.previous Sibling_=b.nextSibling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}e lse for(var c,f=J(a),g=f.firstChild;g;)c=g.nextSibling,V.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.invalidateShadowRenderer()}function t(a){for (var b,c=0;c<a.length;c++)b=a[c],b.parentNode.removeChild(b)}function u(a,b,c){v ar 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 instanceof N.HTMLTemplateElement) for(var f=d.content,e=a.content.firstChild;e;e=e.nextSibling)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.par entNode)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.ne xtSibling_=void 0,this.previousSibling_=void 0,this.treeScope_=void 0}var x=a.wr appers.EventTarget,y=a.wrappers.NodeList,z=a.TreeScope,A=a.assert,B=a.defineWrap Getter,C=a.enqueueMutation,D=a.getTreeScope,E=a.isWrapper,F=a.mixin,G=a.register TransientObservers,H=a.registerWrapper,I=a.setTreeScope,J=a.unwrap,K=a.unwrapIfN eeded,L=a.wrap,M=a.wrapIfNeeded,N=a.wrappers,O=!1,P=document.importNode,Q=window .Node.prototype.cloneNode,R=window.Node,S=window.DocumentFragment,T=(R.prototype .appendChild,R.prototype.compareDocumentPosition),U=R.prototype.insertBefore,V=R .prototype.removeChild,W=R.prototype.replaceChild,X=/Trident/.test(navigator.use rAgent),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.create(x.prototype),F(w.prototyp e,{appendChild:function(a){return this.insertBefore(a,null)},insertBefore:functi on(a,c){b(a);var d;c?E(c)?d=J(c):(d=c,c=L(d)):(c=null,d=null),c&&A(c.parentNode= ==this);var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRende rer()&&!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.lastChild_=e[e.length-1],void 0===t his.firstChild_&&(this.firstChild_=this.firstChild));var j=d?d.parentNode:this.i mpl;j?U.call(j,p(this,e),d):o(this,e)}return C(this,"childList",{addedNodes:e,ne xtSibling:c,previousSibling:h}),k(e,this),a},removeChild:function(a){if(b(a),a.p arentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSib ling)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.f irstChild,j=this.lastChild,k=f.parentNode;k&&Y(k,f),i===a&&(this.firstChild_=g), j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.pre viousSibling_=a.nextSibling_=a.parentNode_=void 0}else q(this),Y(this.impl,f);re turn O||C(this,"childList",{removedNodes:c(a),nextSibling:g,previousSibling:h}), G(this,a),a},replaceChild:function(a,d){b(a);var e;if(E(d)?e=J(d):(e=d,d=L(e)),d .parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSibling,j=d.pr eviousSibling,m=!this.invalidateShadowRenderer()&&!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.firstChild_=h[0]),this.lastChild===d&&(this.lastCh ild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e.par entNode&&W.call(e.parentNode,p(this,h),e)),C(this,"childList",{addedNodes:h,remo vedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h,this),d},nodeIsInserted _:function(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},ha sChildNodes:function(){return null!==this.firstChild},get parentNode(){return vo id 0!==this.parentNode_?this.parentNode_:L(this.impl.parentNode)},get firstChild (){return void 0!==this.firstChild_?this.firstChild_:L(this.impl.firstChild)},ge t lastChild(){return void 0!==this.lastChild_?this.lastChild_:L(this.impl.lastCh ild)},get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:L(th is.impl.nextSibling)},get previousSibling(){return void 0!==this.previousSibling _?this.previousSibling_:L(this.impl.previousSibling)},get parentElement(){for(va r a=this.parentNode;a&&a.nodeType!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.firstChild;b;b=b.nextSibling)b.nodeType!=w.CO MMENT_NODE&&(a+=b.textContent);return a},set textContent(a){var b=i(this.childNo des);if(this.invalidateShadowRenderer()){if(r(this),""!==a){var c=this.impl.owne rDocument.createTextNode(a);this.appendChild(c)}}else q(this),this.impl.textCont ent=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.ne xtSibling)a[b++]=c;return a.length=b,a},cloneNode:function(a){return u(this,a)}, contains:function(a){return v(this,M(a))},compareDocumentPosition:function(a){re turn T.call(this.impl,K(a))},normalize:function(){for(var a,b,c=i(this.childNode s),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:this.removeNode(b):(a&&d.length&&(a.data+=e,t(d)),d =[],e="",a=null,b.childNodes.length&&b.normalize());a&&d.length&&(a.data+=e,t(d) )}}),B(w,"ownerDocument"),H(R,w,document.createDocumentFragment()),delete w.prot otype.querySelector,delete w.prototype.querySelectorAll,w.prototype=F(Object.cre ate(x.prototype),w.prototype),a.cloneNode=u,a.nodeWasAdded=j,a.nodeWasRemoved=l, a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.Node=w}( window.ShadowDOMPolyfill),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.nextEle mentSibling}return null}function c(a,b){return a.matches(b)}function d(a,b,c){va r d=a.localName;return d===b||d===c&&a.namespaceURI===l}function e(){return!0}fu nction f(a,b){return a.localName===b}function g(a,b){return a.namespaceURI===b}f unction h(a,b,c){return a.namespaceURI===b&&a.localName===c}function i(a,b,c,d,e ){for(var f=a.firstElementChild;f;)c(f,d,e)&&(b[b.length++]=f),i(f,b,c,d,e),f=f. nextElementSibling;return b}var j=a.wrappers.HTMLCollection,k=a.wrappers.NodeLis t,l="http://www.w3.org/1999/xhtml",m={querySelector:function(a){return b(this,a) },querySelectorAll:function(a){return i(this,new k,c,a)}},n={getElementsByTagNam e:function(a){var b=new j;return"*"===a?i(this,b,e):i(this,b,d,a,a.toLowerCase() )},getElementsByClassName:function(a){return this.querySelectorAll("."+a)},getEl ementsByTagNameNS:function(a,b){var c=new j;if(""===a)a=null;else if("*"===a)ret urn"*"===b?i(this,c,e):i(this,c,f,b);return"*"===b?i(this,c,g,a):i(this,c,h,a,b) }};a.GetElementsByInterface=n,a.SelectorsInterface=m}(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 lastElementChild(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b;b=b.nextElementSiblin g)a++;return a},get children(){for(var a=new d,b=0,c=this.firstElementChild;c;c= c.nextElementSibling)a[b++]=c;return a.length=b,a},remove:function(){var a=this. parentNode;a&&a.removeChild(this)}},f={get nextElementSibling(){return b(this.ne xtSibling)},get previousElementSibling(){return c(this.previousSibling)}};a.Chil dNodeInterface=f,a.ParentNodeInterface=e}(window.ShadowDOMPolyfill),function(a){ "use strict";function b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrapper s.Node,e=a.enqueueMutation,f=a.mixin,g=a.registerWrapper,h=window.CharacterData; b.prototype=Object.create(d.prototype),f(b.prototype,{get textContent(){return t his.data},set textContent(a){this.data=a},get data(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"characterData",{oldValue:b}),this.impl.data =a}}),f(b.prototype,c),g(h,b,document.createTextNode("")),a.wrappers.CharacterDa ta=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a> >>0}function c(a){d.call(this,a)}var d=a.wrappers.CharacterData,e=(a.enqueueMuta tion,a.mixin),f=a.registerWrapper,g=window.Text;c.prototype=Object.create(d.prot otype),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;v ar f=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNod e.insertBefore(f,this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wra ppers.Text=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){a .invalidateRendererBasedOnAttribute(b,"class")}function c(a,b){this.impl=a,this. ownerElement_=b}c.prototype={get length(){return this.impl.length},item:function (a){return this.impl.item(a)},contains:function(a){return this.impl.contains(a)} ,add:function(){this.impl.add.apply(this.impl,arguments),b(this.ownerElement_)}, remove:function(){this.impl.remove.apply(this.impl,arguments),b(this.ownerElemen t_)},toggle:function(){var a=this.impl.toggle.apply(this.impl,arguments);return b(this.ownerElement_),a},toString:function(){return this.impl.toString()}},a.wra ppers.DOMTokenList=c}(window.ShadowDOMPolyfill),function(a){"use strict";functio n 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){g.call(this,a)}var e=a.ChildNodeInte rface,f=a.GetElementsByInterface,g=a.wrappers.Node,h=a.wrappers.DOMTokenList,i=a .ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueue Mutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.unwrap,o=a.wrappers,p=wind ow.Element,q=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesS elector"].filter(function(a){return p.prototype[a]}),r=q[0],s=p.prototype[r],t=n ew WeakMap;d.prototype=Object.create(g.prototype),l(d.prototype,{createShadowRoo t:function(){var b=new o.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a .getRendererForHost(this);return c.invalidate(),b},get shadowRoot(){return this. impl.polymerShadowRoot_||null},setAttribute:function(a,d){var e=this.impl.getAtt ribute(a);this.impl.setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:fun ction(a){var d=this.impl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d ),b(this,a)},matches:function(a){return s.call(this.impl,a)},get classList(){var a=t.get(this);return a||t.set(this,a=new h(n(this).classList,this)),a},get clas sName(){return n(this).className},set className(a){this.setAttribute("class",a)} ,get id(){return n(this).id},set id(a){this.setAttribute("id",a)}}),q.forEach(fu nction(a){"matches"!==a&&(d.prototype[a]=function(a){return this.matches(a)})}), p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.protot ype.createShadowRoot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),l(d.pro totype,j),m(p,d,document.createElementNS(null,"x")),a.invalidateRendererBasedOnA ttribute=b,a.matchesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),func tion(a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":retur n"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}}f unction 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.nodeType){case Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i =a.attributes,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);case Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.er ror(a),new Error("not implemented")}}function g(a){a instanceof y.HTMLTemplateEl ement&&(a=a.content);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);ret urn b}function h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument. createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}fu nction i(a){o.call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML= b;for(var d,e=w(document.createDocumentFragment());d=c.firstChild;)e.appendChild (d);return 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.protot ype,b,{get:k(b),set:function(c){a.renderAllPending(),this.impl[b]=c},configurabl e:!0,enumerable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:fu nction(){return a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},co nfigurable:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqu eueMutation,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrappe r,v=a.snapshotNodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u0 0A0<>]/g,B=e(["area","base","br","col","command","embed","hr","img","input","key gen","link","meta","param","source","track","wbr"]),C=e(["style","script","xmp", "iframe","noembed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.u serAgent),E=window.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.c reate(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.childNod es);this.invalidateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this .content,a):h(this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(t his.content,a):this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList" ,{addedNodes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,th is.parentNode)},set outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowR enderer();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=t his;break;case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbe gin":c=this,d=this.firstChild;break;case"beforeend":c=this,d=null;break;default: return}var e=j(c,b);c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientT op","clientWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollH eight","scrollWidth"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoun dingClientRect","getClientRects","scrollIntoView"].forEach(n),u(E,i,document.cre ateElement("b")),a.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(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.wrap,g=window.HTMLCa nvasElement;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:fun ction(){var a=this.impl.getContext.apply(this.impl,arguments);return a&&f(a)}}), e(g,b,document.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.S hadowDOMPolyfill),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 .prototype=Object.create(c.prototype),d(b.prototype,{get select(){return this.ge tAttribute("select")},set select(a){this.setAttribute("select",a)},setAttribute: function(a,b){c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLow erCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentE lement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.cal l(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTM LCollection,g=a.unwrap,h=(a.wrap,window.HTMLFormElement);b.prototype=Object.crea te(c.prototype),d(b.prototype,{get elements(){return f(g(this).elements)}}),e(h, b,document.createElement("form")),a.wrappers.HTMLFormElement=b}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){ if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be ca lled 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.HTMLElem ent,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.protot ype=Object.create(d.prototype),e(h,b,document.createElement("img")),c.prototype= b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPo lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H TMLElement,d=(a.mixin,a.wrappers.NodeList,a.registerWrapper),e=window.HTMLShadow Element;b.prototype=Object.create(c.prototype),e&&d(e,b),a.wrappers.HTMLShadowEl ement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a. defaultView)return a;var b=k.get(a);if(!b){for(b=a.implementation.createHTMLDocu ment("");b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}return 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.registerWrapper,h=a.unwr ap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateElement;d.prototype =Object.create(e.prototype),f(d.prototype,{get content(){return l?i(this.impl.co ntent):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d}(window.ShadowD OMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappe rs.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;b.prototype=Object. create(c.prototype),d(e,b,document.createElement("audio")),a.wrappers.HTMLMediaE lement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.cal l(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be called as a function.");var b=f(document.createElement("au dio"));d.call(this,b),g(b,this),b.setAttribute("preload","auto"),void 0!==a&&b.s etAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,f=a.u nwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.create(d.prototype ),e(h,b,document.createElement("audio")),c.prototype=b.prototype,a.wrappers.HTML AudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),function(a){"use st rict";function b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(thi s,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constructor cannot be called as a function.");var g=i(document.createElement("o ption"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setAttrib ute("value",b),c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var e=a.w rappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a.unwrap,j=a.wrap ,k=window.HTMLOptionElement;c.prototype=Object.create(e.prototype),f(c.prototype ,{get text(){return b(this.textContent)},set text(a){this.textContent=b(String(a ))},get form(){return j(i(this).form)}}),g(k,c,document.createElement("option")) ,d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d}(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=wi ndow.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):("object"==typeof a&&(a =f(a)),void f(this).remove(a))},get form(){return g(f(this).form)}}),e(h,b,docum ent.createElement("select")),a.wrappers.HTMLSelectElement=b}(window.ShadowDOMPol yfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HT MLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a.wrapHTMLCollecti on,i=window.HTMLTableElement;b.prototype=Object.create(c.prototype),d(b.prototyp e,{get caption(){return g(f(this).caption)},createCaption:function(){return g(f( this).createCaption())},get tHead(){return g(f(this).tHead)},createTHead:functio n(){return g(f(this).createTHead())},createTFoot:function(){return g(f(this).cre ateTFoot())},get tFoot(){return g(f(this).tFoot)},get tBodies(){return h(f(this) .tBodies)},createTBody:function(){return g(f(this).createTBody())},get rows(){re turn h(f(this).rows)},insertRow:function(a){return g(f(this).insertRow(a))}}),e( i,b,document.createElement("table")),a.wrappers.HTMLTableElement=b}(window.Shado wDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrap pers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap ,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype=Object.create(c.prototype ),d(b.prototype,{get rows(){return f(g(this).rows)},insertRow:function(a){return h(g(this).insertRow(a))}}),e(i,b,document.createElement("thead")),a.wrappers.HT MLTableSectionElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrap per,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableRowElement;b.pr ototype=Object.create(c.prototype),d(b.prototype,{get cells(){return f(g(this).c ells)},insertCell:function(a){return h(g(this).insertCell(a))}}),e(i,b,document. createElement("tr")),a.wrappers.HTMLTableRowElement=b}(window.ShadowDOMPolyfill) ,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(thi s,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappers.HTMLElement,e=a.wrappers.H TMLShadowElement,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.registerWrapper), h=window.HTMLUnknownElement;b.prototype=Object.create(d.prototype),g(h,b),a.wrap pers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";va r b=a.wrappers.Element,c=a.wrappers.HTMLElement,d=a.registerObject,e="http://www .w3.org/2000/svg",f=document.createElementNS(e,"title"),g=d(f),h=Object.getProto typeOf(g.prototype).constructor;if(!("classList"in f)){var i=Object.getOwnProper tyDescriptor(b.prototype,"classList");Object.defineProperty(c.prototype,"classLi st",i),delete b.prototype.classList
14 b.prototype=Object.create(l),"instanceRoot"in j&&c(b.prototype,{get instanceRoot (){return f(e(this).instanceRoot)},get animatedInstanceRoot(){return f(e(this).a nimatedInstanceRoot)}}),d(g,b,j),a.wrappers.SVGUseElement=b}(window.ShadowDOMPol yfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.Ev entTarget,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.paren tNode)},get childNodes(){throw new Error("Not implemented")},get firstChild(){re turn f(this.impl.firstChild)},get lastChild(){return f(this.impl.lastChild)},get previousSibling(){return f(this.impl.previousSibling)},get nextSibling(){return f(this.impl.nextSibling)}}),e(g,b),a.wrappers.SVGElementInstance=b)}(window.Sha dowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin ,d=a.registerWrapper,e=a.unwrap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRende ringContext2D;c(b.prototype,{get canvas(){return g(this.impl.canvas)},drawImage: function(){arguments[0]=f(arguments[0]),this.impl.drawImage.apply(this.impl,argu ments)},createPattern:function(){return arguments[0]=e(arguments[0]),this.impl.c reatePattern.apply(this.impl,arguments)}}),d(h,b,document.createElement("canvas" ).getContext("2d")),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowDOMPolyf ill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.regist erWrapper,e=a.unwrapIfNeeded,f=a.wrap,g=window.WebGLRenderingContext;if(g){c(b.p rototype,{get canvas(){return f(this.impl.canvas)},texImage2D:function(){argumen ts[5]=e(arguments[5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubIma ge2D:function(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this. impl,arguments)}});var h=/WebKit/.test(navigator.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.unwrapIfNeeded,f=a.wrap,g=window.Range;b.pro totype={get startContainer(){return f(this.impl.startContainer)},get endContaine r(){return f(this.impl.endContainer)},get commonAncestorContainer(){return f(thi s.impl.commonAncestorContainer)},setStart:function(a,b){this.impl.setStart(e(a), b)},setEnd:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:function(a){th is.impl.setStartBefore(e(a))},setStartAfter:function(a){this.impl.setStartAfter( e(a))},setEndBefore:function(a){this.impl.setEndBefore(e(a))},setEndAfter:functi on(a){this.impl.setEndAfter(e(a))},selectNode:function(a){this.impl.selectNode(e (a))},selectNodeContents:function(a){this.impl.selectNodeContents(e(a))},compare BoundaryPoints:function(a,b){return this.impl.compareBoundaryPoints(a,d(b))},ext ractContents:function(){return f(this.impl.extractContents())},cloneContents:fun ction(){return f(this.impl.cloneContents())},insertNode:function(a){this.impl.in sertNode(e(a))},surroundContents:function(a){this.impl.surroundContents(e(a))},c loneRange:function(){return f(this.impl.cloneRange())},isPointInRange:function(a ,b){return this.impl.isPointInRange(e(a),b)},comparePoint:function(a,b){return t his.impl.comparePoint(e(a),b)},intersectsNode:function(a){return this.impl.inter sectsNode(e(a))},toString:function(){return this.impl.toString()}},g.prototype.c reateContextualFragment&&(b.prototype.createContextualFragment=function(a){retur n f(this.impl.createContextualFragment(a))}),c(window.Range,b,document.createRan ge()),a.wrappers.Range=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.m ixin,f=a.registerObject,g=f(document.createDocumentFragment());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);var e=a.shadowRoot;m.set(this,e),this.treeScope_=new d(this,g(e||a)),l.set(this,a)}var c=a.wrappers.DocumentFragment,d=a.TreeScope,e= a.elementFromPoint,f=a.getInnerHTML,g=a.getTreeScope,h=a.mixin,i=a.rewrap,j=a.se tInnerHTML,k=a.unwrap,l=new WeakMap,m=new WeakMap,n=/[ \t\n\r\f]/;b.prototype=Ob ject.create(c.prototype),h(b.prototype,{get innerHTML(){return f(this)},set inne rHTML(a){j(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return m.get(this)||null},get host(){return l.get(this)||null},invalidateShadowRendere r:function(){return l.get(this).invalidateShadowRenderer()},elementFromPoint:fun ction(a,b){return e(this,this.ownerDocument,a,b)},getElementById:function(a){ret urn n.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot=b }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSib ling_=a.previousSibling,a.nextSibling_=a.nextSibling,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.previousSibling;else{a.lastChild_=a.la stChild,a.lastChild===a.firstChild&&(a.firstChild_=a.firstChild);var i=H(f.lastC hild);i&&(i.nextSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c= G(a),d=c.parentNode;if(d){var e=H(d);b(a),a.previousSibling&&(a.previousSibling. nextSibling_=a),a.nextSibling&&(a.nextSibling.previousSibling_=a),e.lastChild=== a&&(e.lastChild_=a),e.firstChild===a&&(e.firstChild_=a),d.removeChild(c)}}functi on e(a){I.set(a,[])}function f(a){var b=I.get(a);return b||I.set(a,b=[]),b}funct ion g(a){for(var b=[],c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b}fun ction h(){for(var a=0;a<M.length;a++){var b=M[a],c=b.parentRenderer;c&&c.dirty|| b.render()}M=[]}function i(){y=null,h()}function j(a){var b=K.get(a);return b||( b=new n(a),K.set(a,b)),b}function k(a){var b=E(a).root;return b instanceof D?b:n ull}function l(a){return j(a.host)}function m(a){this.skip=!1,this.node=a,this.c hildNodes=[]}function n(a){this.host=a,this.dirty=!1,this.invalidateAttributes() ,this.associateNode(a)}function o(a){for(var b=[],c=a.firstChild;c;c=c.nextSibli ng)v(c)?b.push.apply(b,f(c)):b.push(c);return b}function p(a){if(a instanceof B) return a;if(a instanceof A)return null;for(var b=a.firstChild;b;b=b.nextSibling) {var c=p(b);if(c)return c}return null}function q(a,b){f(b).push(a);var c=J.get(a );c?c.push(b):J.set(a,[b])}function r(a){return J.get(a)}function s(a){J.set(a,v oid 0)}function t(a,b){var c=b.getAttribute("select");if(!c)return!0;if(c=c.trim (),!c)return!0;if(!(a instanceof z))return!1;if(!O.test(c))return!1;try{return a .matches(c)}catch(d){return!1}}function u(a,b){var c=r(b);return c&&c[c.length-1 ]===a}function v(a){return a instanceof A||a instanceof B}function w(a){return a .shadowRoot}function x(a){for(var b=[],c=a.shadowRoot;c;c=c.olderShadowRoot)b.pu sh(c);return b}var y,z=a.wrappers.Element,A=a.wrappers.HTMLContentElement,B=a.wr appers.HTMLShadowElement,C=a.wrappers.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 WeakM ap,K=new WeakMap,L=F(window,["requestAnimationFrame","mozRequestAnimationFrame", "webkitRequestAnimationFrame","setTimeout"]),M=[],N=new ArraySplice;N.equals=fun ction(a,b){return G(a.node)===b},m.prototype={append:function(a){var b=new m(a); return this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=this .node,e=this.childNodes,f=g(G(b)),h=a||new WeakMap,i=N.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(h);for (var o=n.removed.length,p=0;o>p;p++){var q=H(f[k++]);h.get(q)||d(q)}for(var 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),h.set(u,! 0),t.sync(h)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(h)}}},n.prototype={render :function(a){if(this.dirty){this.invalidateAttributes();var b=this.host;this.dis tribution(b);var c=a||new m(b);this.buildRenderTree(c,b);var d=!a;d&&c.sync(),th is.dirty=!1}},get parentRenderer(){return E(this.host).renderer},invalidate:func tion(){if(!this.dirty){if(this.dirty=!0,M.push(this),y)return;y=window[L](i,0)}} ,distribution:function(a){this.resetAll(a),this.distributionResolution(a)},reset All:function(a){v(a)?e(a):s(a);for(var b=a.firstChild;b;b=b.nextSibling)this.res etAll(b);a.shadowRoot&&this.resetAll(a.shadowRoot),a.olderShadowRoot&&this.reset All(a.olderShadowRoot)},distributionResolution:function(a){if(w(a)){for(var b=a, c=o(b),d=x(b),e=0;e<d.length;e++)this.poolDistribution(d[e],c);for(var e=d.lengt h-1;e>=0;e--){var f=d[e],g=p(f);if(g){var h=f.olderShadowRoot;h&&(c=o(h));for(va r i=0;i<c.length;i++)q(c[i],g)}this.distributionResolution(f)}}for(var j=a.first Child;j;j=j.nextSibling)this.distributionResolution(j)},poolDistribution:functio n(a,b){if(!(a instanceof B))if(a instanceof A){var c=a;this.updateDependentAttri butes(c.getAttribute("select"));for(var d=!1,e=0;e<b.length;e++){var a=b[e];a&&t (a,c)&&(q(a,c),b[e]=void 0,d=!0)}if(!d)for(var f=c.firstChild;f;f=f.nextSibling) q(f,c)}else for(var f=a.firstChild;f;f=f.nextSibling)this.poolDistribution(f,b)} ,buildRenderTree:function(a,b){for(var c=this.compose(b),d=0;d<c.length;d++){var e=c[d],f=a.append(e);this.buildRenderTree(f,e)}if(w(b)){var g=j(b);g.dirty=!1}} ,compose:function(a){for(var b=[],c=a.shadowRoot||a,d=c.firstChild;d;d=d.nextSib ling)if(v(d)){this.associateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g ];u(d,h)&&b.push(h)}}else b.push(d);return b},invalidateAttributes:function(){th is.attributes=Object.create(null)},updateDependentAttributes:function(a){if(a){v ar b=this.attributes;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0), a.replace(/\[\s*([^\s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:fu nction(a){return this.attributes[a]},associateNode:function(a){a.impl.polymerSha dowRenderer_=this}};var O=/^[*.#[a-zA-Z_|]/;C.prototype.invalidateShadowRenderer =function(){var a=this.impl.polymerShadowRenderer_;return a?(a.invalidate(),!0): !1},A.prototype.getDistributedNodes=B.prototype.getDistributedNodes=function(){r eturn h(),f(this)},z.prototype.getDestinationInsertionPoints=function(){return h (),r(this)||[]},A.prototype.nodeIsInserted_=B.prototype.nodeIsInserted_=function (){this.invalidateShadowRenderer();var a,b=k(this);b&&(a=l(b)),this.impl.polymer ShadowRenderer_=a,a&&a.invalidate()},a.getRendererForHost=j,a.getShadowTrees=x,a .renderAllPending=h,a.getDestinationInsertionPoints=r,a.visual={insertBefore:c,r emove:d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(wi ndow[b]){d(!a.wrappers[b]);var i=function(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.H TMLElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTML ButtonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTM LLabelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTML TextAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use stric t";function b(a){this.impl=a}{var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNee ded,f=a.wrap;window.Selection}b.prototype={get anchorNode(){return f(this.impl.a nchorNode)},get focusNode(){return f(this.impl.focusNode)},addRange:function(a){ this.impl.addRange(d(a))},collapse:function(a,b){this.impl.collapse(e(a),b)},con tainsNode:function(a,b){return this.impl.containsNode(e(a),b)},extend:function(a ,b){this.impl.extend(e(a),b)},getRangeAt:function(a){return f(this.impl.getRange At(a))},removeRange:function(a){this.impl.removeRange(d(a))},selectAllChildren:f unction(a){this.impl.selectAllChildren(e(a))},toString:function(){return this.im pl.toString()}},c(window.Selection,b,window.getSelection()),a.wrappers.Selection =b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){k.call(this ,a),this.treeScope_=new p(this,null)}function c(a){var c=document[a];b.prototype [a]=function(){return A(c.apply(this.impl,arguments))}}function d(a,b){D.call(b. impl,z(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a inst anceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a,b) {var c=a.olderShadowRoot;c&&b.adoptNode(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.proto type[b]=function(){return c.apply(this.impl,arguments)}}var j=a.GetElementsByInt erface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.Sele ctorsInterface,o=a.wrappers.ShadowRoot,p=a.TreeScope,q=a.cloneNode,r=a.defineWra pGetter,s=a.elementFromPoint,t=a.forwardMethodsToWrapper,u=a.matchesNames,v=a.mi xin,w=a.registerWrapper,x=a.renderAllPending,y=a.rewrap,z=a.unwrap,A=a.wrap,B=a. wrapEventTargetMethods,C=(a.wrapNodeList,new WeakMap);b.prototype=Object.create( k.prototype),r(b,"documentElement"),r(b,"body"),r(b,"head"),["createComment","cr eateDocumentFragment","createElement","createElementNS","createEvent","createEve ntNS","createRange","createTextNode","getElementById"].forEach(c);var D=document .adoptNode,E=document.getSelection;if(v(b.prototype,{adoptNode:function(a){retur n a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint:functi on(a,b){return s(this,this,a,b)},importNode:function(a,b){return q(a,b,this.impl )},getSelection:function(){return x(),new m(E.call(z(this)))},getElementsByName: function(a){return n.querySelectorAll.call(this,"[name="+JSON.stringify(String(a ))+"]")}}),document.registerElement){var F=document.registerElement;b.prototype. registerElement=function(b,c){function d(a){return a?void(this.impl=a):f?documen t.createElement(f,b):document.createElement(b)}var e,f;if(void 0!==c&&(e=c.proto type,f=c.extends),e||(e=Object.create(HTMLElement.prototype)),a.nativePrototypeT able.get(e))throw new Error("NotSupportedError");for(var g,h=Object.getPrototype Of(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.push(h),h=Object.getPrototyp eOf(h);if(!g)throw new Error("NotSupportedError");for(var j=Object.create(g),k=i .length-1;k>=0;k--)j=Object.create(j);["createdCallback","attachedCallback","det achedCallback","attributeChangedCallback"].forEach(function(a){var b=e[a];b&&(j[ a]=function(){A(this)instanceof d||y(this),b.apply(A(this),arguments)})});var l= {prototype:j};f&&(l.extends=f),d.prototype=e,d.prototype.constructor=d,a.constru ctorTable.set(j,d),a.nativePrototypeTable.set(e,j);F.call(z(this),b,l);return d} ,t([window.HTMLDocument||window.Document],["registerElement"])}t([window.HTMLBod yElement,window.HTMLDocument||window.Document,window.HTMLHeadElement,window.HTML HtmlElement],["appendChild","compareDocumentPosition","contains","getElementsByC lassName","getElementsByTagName","getElementsByTagNameNS","insertBefore","queryS elector","querySelectorAll","removeChild","replaceChild"].concat(u)),t([window.H TMLDocument||window.Document],["adoptNode","importNode","contains","createCommen t","createDocumentFragment","createElement","createElementNS","createEvent","cre ateEventNS","createRange","createTextNode","elementFromPoint","getElementById"," getElementsByName","getSelection"]),v(b.prototype,j),v(b.prototype,l),v(b.protot ype,n),v(b.prototype,{get implementation(){var a=C.get(this);return a?a:(a=new g (z(this).implementation),C.set(this,a),a)},get defaultView(){return A(z(this).de faultView)}}),w(window.Document,b,document.implementation.createHTMLDocument("") ),window.HTMLDocument&&w(window.HTMLDocument,b),B([window.HTMLBodyElement,window .HTMLDocument||window.Document,window.HTMLHeadElement]),h(g,"createDocumentType" ),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,"hasFeature"),w(window.DOM Implementation,g),t([window.DOMImplementation],["createDocumentType","createDocu ment","createHTMLDocument","hasFeature"]),a.adoptNodeNoRemove=d,a.wrappers.DOMIm plementation=g,a.wrappers.Document=b}(window.ShadowDOMPolyfill),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.renderAllPending,h=a.unwrap,i=a.unwr apIfNeeded,j=a.wrap,k=window.Window,l=window.getComputedStyle,m=window.getSelect ion;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()},delete window.getComputedStyle ,delete window.getSelection,["addEventListener","removeEventListener","dispatchE vent"].forEach(function(a){k.prototype[a]=function(){var b=j(this||window);retur n b[a].apply(b,arguments)},delete window[a]}),e(b.prototype,{getComputedStyle:fu nction(a,b){return g(),l.call(h(this),i(a),b)},getSelection:function(){return g( ),new d(m.call(h(this)))},get document(){return j(h(this).document)}}),f(k,b,win dow),a.wrappers.Window=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.DataTransfer||window.Clipboard,d=c.prototype.setDragImage;c .prototype.setDragImage=function(a,c,e){d.call(this,b(a),c,e)}}(window.ShadowDOM Polyfill),function(a){"use strict";function b(a){var b=c[a],d=window[b];if(d){va r e=document.createElement(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor ,{a:"HTMLAnchorElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HT MLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonEleme nt",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableC olElement",content:"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDat aListElement",del:"HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElemen t",dl:"HTMLDListElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement" ,font:"HTMLFontElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset :"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHR Element",html:"HTMLHtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement ",input:"HTMLInputElement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",l egend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMap Element",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuI temElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectEl ement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionEl ement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamEleme nt",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",scr ipt:"HTMLScriptElement",select:"HTMLSelectElement",shadow:"HTMLShadowElement",so urce:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTMLStyleElement",table:" HTMLTableElement",tbody:"HTMLTableSectionElement",template:"HTMLTemplateElement" ,textarea:"HTMLTextAreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeEl ement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement ",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Obj ect.getOwnPropertyNames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]} )}(window.ShadowDOMPolyfill),function(a){function b(a,c){var d,e,f,g,h=a.firstEl ementChild;for(e=[],f=a.shadowRoot;f;)e.push(f),f=f.olderShadowRoot;for(g=e.leng th-1;g>=0;g--)if(d=e[g].querySelector(c))return d;for(;h;){if(d=b(h,c))return d; h=h.nextElementSibling}return null}function c(a,b,d){var e,f,g,h,i,j=a.firstElem entChild;for(g=[],f=a.shadowRoot;f;)g.push(f),f=f.olderShadowRoot;for(h=g.length -1;h>=0;h--)for(e=g[h].querySelectorAll(b),i=0;i<e.length;i++)d.push(e[i]);for(; j;)c(j,b,d),j=j.nextElementSibling;return d}window.wrap=ShadowDOMPolyfill.wrapIf Needed,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Elem ent.prototype,"webkitShadowRoot",Object.getOwnPropertyDescriptor(Element.prototy pe,"shadowRoot"));var d=Element.prototype.createShadowRoot;Element.prototype.cre ateShadowRoot=function(){var a=d.call(this);return CustomElements.watchShadow(th is),a},Element.prototype.webkitCreateShadowRoot=Element.prototype.createShadowRo ot,a.queryAllShadows=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform ),function(a){function b(a,b){var c="";return Array.prototype.forEach.call(a,fun ction(a){c+=a.textContent+"\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.appendChild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch( e){}else console.warn("sheet not found",b);return b.parentNode.removeChild(b),d} function e(){v.initialized=!0,document.body.appendChild(v);var a=v.contentDocume nt,b=a.createElement("base");b.href=document.baseURI,a.head.appendChild(b)}funct ion f(a){v.initialized||e(),document.body.appendChild(v),a(v.contentDocument),do cument.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)})}e lse e=d(a),b(e)}}function h(a){a&&j().appendChild(document.createTextNode(a))}fu nction 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.setA ttribute(z,""),w[z]=!0),w}var k={strictStyling:!1,registry:{},shimStyling:functi on(a,c,d){var e=this.prepareRoot(a,c,d),f=this.isTypeExtension(d),g=this.makeSco peSelector(c,f),h=b(e,!0);h=this.scopeCssText(h,g),a&&(a.shimmedStyle=h),this.ad dCssToDocument(h,c)},shimStyle:function(a,b){return this.shimCssText(a.textConte nt,b)},shimCssText:function(a,b){return a=this.insertDirectives(a),this.scopeCss Text(a,b)},makeScopeSelector:function(a,b){return a?b?"[is="+a+"]":a:""},isTypeE xtension:function(a){return a&&a.indexOf("-")<0},prepareRoot:function(a,b,c){var d=this.registerRoot(a,b,c);return this.replaceTextInStyles(d.rootStyles,this.in sertDirectives),this.removeStyles(a,d.rootStyles),this.strictStyling&&this.apply ScopeToContent(a,b),d.scopeStyles},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.r ootStyles=e,d.scopeStyles=d.rootStyles;var f=this.registry[d.extendsName];return f&&(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),d},findStyles:function(a ){if(!a)return[];var b=a.querySelectorAll("style");return Array.prototype.filter .call(b,function(a){return!a.hasAttribute(A)})},applyScopeToContent:function(a,b ){a&&(Array.prototype.forEach.call(a.querySelectorAll("*"),function(a){a.setAttr ibute(b,"")}),Array.prototype.forEach.call(a.querySelectorAll("template"),functi on(a){this.applyScopeToContent(a.content,b)},this))},insertDirectives:function(a ){return a=this.insertPolyfillDirectivesInCssText(a),this.insertPolyfillRulesInC ssText(a)},insertPolyfillDirectivesInCssText:function(a){return a=a.replace(m,fu nction(a,b){return b.slice(0,-2)+"{"}),a.replace(n,function(a,b){return b+" {"}) },insertPolyfillRulesInCssText:function(a){return a=a.replace(o,function(a,b){re turn b.slice(0,-1)}),a.replace(p,function(a,b,c,d){var e=a.replace(b,"").replace (c,"");return d+e})},scopeCssText:function(a,b){var c=this.extractUnscopedRulesF romCssText(a);if(a=this.insertPolyfillHostInCssText(a),a=this.convertColonHost(a ),a=this.convertColonHostContext(a),a=this.convertCombinators(a),b){var a,d=this ;g(a,function(c){a=d.scopeRules(c,b)})}return a=a+"\n"+c,a.trim()},extractUnscop edRulesFromCssText:function(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";retur n c},convertColonHost:function(a){return this.convertColonRule(a,cssColonHostRe, this.colonHostPartReplacer)},convertColonHostContext:function(a){return this.con vertColonRule(a,cssColonHostContextRe,this.colonHostContextPartReplacer)},conver tColonRule:function(a,b,c){return a.replace(b,function(a,b,d,e){if(b=polyfillHos tNoCombinator,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})},colonHostContextPar tReplacer:function(a,b,c){return b.match(s)?this.colonHostPartReplacer(a,b,c):a+ b+c+", "+b+" "+a+c},colonHostPartReplacer: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.forEach.call(a,function(a){if(a.selectorText&&a.style&&void 0!==a.style.cssText)c+=this.scopeSelector(a.selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFromRule(a)+"\n}\n\n";else if(a.type===CSSRule.MEDIA _RULE)c+="@media "+a.media.mediaText+" {\n",c+=this.scopeRules(a.cssRules,b),c+= "\n}\n\n";else try{a.cssText&&(c+=a.cssText+"\n\n")}catch(d){}},this),c},scopeSe lector:function(a,b,c){var d=[],e=a.split(",");return e.forEach(function(a){a=a. trim(),this.selectorNeedsScoping(a,b)&&(a=c&&!a.match(polyfillHostNoCombinator)? this.applyStrictSelectorScope(a,b):this.applySelectorScope(a,b)),d.push(a)},this ),d.join(", ")},selectorNeedsScoping:function(a,b){if(Array.isArray(b))return!0; 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")},applySelectorScope:function(a,b){return Array.isArray(b)?this.a pplySelectorScopeList(a,b):this.applySimpleSelectorScope(a,b)},applySelectorScop eList:function(a,b){for(var c,d=[],e=0;c=b[e];e++)d.push(this.applySimpleSelecto rScope(a,c));return d.join(", ")},applySimpleSelectorScope:function(a,b){return a.match(polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyf illHostRe,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(polyfill HostRe,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(. *)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){ret urn a.replace(colonHostContextRe,t).replace(colonHostRe,s)},propertiesFromRule:f unction(a){var b=a.style.cssText;a.style.content&&!a.style.content.match(/['"]+| attr/)&&(b=b.replace(/content:[^;]*;/g,"content: '"+a.style.content+"';"));var c =a.style;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");return b},replace TextInStyles:function(a,b){a&&b&&(a instanceof Array||(a=[a]),Array.prototype.fo rEach.call(a,function(a){a.textContent=b.call(this,a.textContent)},this))},addCs sToDocument:function(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*] [^*]*\*+)*\//gim,m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n =/polyfill-next-selector[^}]*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="-shadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^)(]*\\)| [^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColonHostCo ntextRe=new RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$", colonHostRe=/\:host/gim,colonHostContextRe=/\:host-context/gim,polyfillHostNoCom binator=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHostContex tRe=new RegExp(t,"gim"),combinatorsRe=[/\^\^/g,/\^/g,/\/shadow\//g,/\/shadow-dee p\//g,/::shadow/g,/\/deep\//g];var v=document.createElement("iframe");v.style.di splay="none";var w,x=navigator.userAgent.match("Chrome"),y="shim-shadowdom",z="s him-shadowdom-css",A="no-shim";if(window.ShadowDOMPolyfill){h("style { display: none !important; }\n");var B=wrap(document),C=B.querySelector("head");C.insertBe fore(j(),C.childNodes[0]),document.addEventListener("DOMContentLoaded",function( ){var b=a.urlResolver;if(window.HTMLImports&&!HTMLImports.useNative){var c="link [rel=stylesheet]["+y+"]",d="style["+y+"]";HTMLImports.importer.documentPreloadSe lectors+=","+c,HTMLImports.importer.importsPreloadSelectors+=","+c,HTMLImports.p arser.documentSelectors=[HTMLImports.parser.documentSelectors,c,d].join(",");var e=HTMLImports.parser.parseGeneric;HTMLImports.parser.parseGeneric=function(a){i f(!a[z]){var c=a.__importElement||a;if(!c.hasAttribute(y))return void e.call(thi s,a);a.__resource?(c=a.ownerDocument.createElement("style"),c.textContent=b.reso lveCssText(a.__resource,a.href)):b.resolveStyle(c),c.textContent=k.shimStyle(c), c.removeAttribute(y,""),c.setAttribute(z,""),c[z]=!0,c.parentNode!==C&&(a.parent Node===C?C.replaceChild(c,a):C.appendChild(c)),c.__importParsed=!0,this.markPars ingComplete(a),this.parseNext()}};var f=HTMLImports.parser.hasResource;HTMLImpor ts.parser.hasResource=function(a){return"link"===a.localName&&"stylesheet"===a.r el&&a.hasAttribute(y)?a.__resource:f.call(this,a)}}})}a.ShadowCSS=k}(window.Plat form)):!function(){window.wrap=window.unwrap=function(a){return a},addEventListe ner("DOMContentLoaded",function(){if(CustomElements.useNative===!1){var a=Elemen t.prototype.createShadowRoot;Element.prototype.createShadowRoot=function(){var b =a.call(this);return CustomElements.watchShadow(this),b}}}),Platform.templateCon tent=function(a){if(window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&H TMLTemplateElement.bootstrap(a),!a.content&&!a._content){for(var b=document.crea teDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);a._content=b}retu rn a.content||a._content}}(window.Platform),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].ind exOf(b)?a:encodeURIComponent(a)}function g(a,g,h){function 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._isInv alid;){var u=a[k];switch(j){case"scheme start":if(!u||!p.test(u)){if(g){i("Inval id scheme.");break a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";b reak;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u){if(g){if(o= =u)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=0,j="no sche me";continue}if(this._scheme=l,l="",g)break a;b(this._scheme)&&(this._isRelative =!0),j="file"==this._scheme?"relative":this._isRelative&&h&&h._scheme==this._sch eme?"relative or authority":this._isRelative?"authority first slash":"scheme dat a"}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 sche me."),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;c ase"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=h._sche me),o==u){this._host=h._host,this._port=h._port,this._path=h._path.slice(),this. _query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code poi nt."),j="relative slash";else if("?"==u)this._host=h._host,this._port=h._port,th is._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._port,this._path=h._path.sl ice(),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="f ragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){"file"!=this._scheme&&(t his._host=h._host,this._port=h._port),j="relative path"; 14 }a.wrappers.SVGElement=h}(window.ShadowDOMPolyfill),function(a){"use strict";fun ction 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.createElement NS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Object.getProto typeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"instanceRoot"i n j&&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot)},get anima tedInstanceRoot(){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 p arentNode(){return f(this.impl.parentNode)},get childNodes(){throw new Error("No t implemented")},get firstChild(){return f(this.impl.firstChild)},get lastChild( ){return f(this.impl.lastChild)},get previousSibling(){return f(this.impl.previo usSibling)},get nextSibling(){return f(this.impl.nextSibling)}}),e(g,b),a.wrappe rs.SVGElementInstance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";fun ction b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.unwrapIf Needed,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,{get canvas(){re turn g(this.impl.canvas)},drawImage:function(){arguments[0]=f(arguments[0]),this .impl.drawImage.apply(this.impl,arguments)},createPattern:function(){return argu ments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl,arguments)}}),d (h,b,document.createElement("canvas").getContext("2d")),a.wrappers.CanvasRenderi ngContext2D=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=wind ow.WebGLRenderingContext;if(g){c(b.prototype,{get canvas(){return f(this.impl.ca nvas)},texImage2D:function(){arguments[5]=e(arguments[5]),this.impl.texImage2D.a pply(this.impl,arguments)},texSubImage2D:function(){arguments[6]=e(arguments[6]) ,this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/WebKit/.test(navig ator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null}:{};d(g,b,h),a .wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),function(a){"use s trict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIf Needed,f=a.wrap,g=window.Range;b.prototype={get startContainer(){return f(this.i mpl.startContainer)},get endContainer(){return f(this.impl.endContainer)},get co mmonAncestorContainer(){return f(this.impl.commonAncestorContainer)},setStart:fu nction(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.se tEndBefore(e(a))},setEndAfter:function(a){this.impl.setEndAfter(e(a))},selectNod e:function(a){this.impl.selectNode(e(a))},selectNodeContents:function(a){this.im pl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b){return this.imp l.compareBoundaryPoints(a,d(b))},extractContents:function(){return f(this.impl.e xtractContents())},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.clon eRange())},isPointInRange:function(a,b){return this.impl.isPointInRange(e(a),b)} ,comparePoint:function(a,b){return this.impl.comparePoint(e(a),b)},intersectsNod e:function(a){return this.impl.intersectsNode(e(a))},toString:function(){return this.impl.toString()}},g.prototype.createContextualFragment&&(b.prototype.create ContextualFragment=function(a){return f(this.impl.createContextualFragment(a))}) ,c(window.Range,b,document.createRange()),a.wrappers.Range=b}(window.ShadowDOMPo lyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNodeIn terface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.createD ocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f(do cument.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentFragment=g}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=k(a.impl.ow nerDocument.createDocumentFragment());c.call(this,b),i(b,this);var e=a.shadowRoo t;m.set(this,e),this.treeScope_=new d(this,g(e||a)),l.set(this,a)}var c=a.wrappe rs.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInnerHTML,g=a.getT reeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unwrap,l=new WeakMap,m=new We akMap,n=/[ \t\n\r\f]/;b.prototype=Object.create(c.prototype),h(b.prototype,{get innerHTML(){return f(this)},set innerHTML(a){j(this,a),this.invalidateShadowRend erer()},get olderShadowRoot(){return m.get(this)||null},get host(){return l.get( this)||null},invalidateShadowRenderer:function(){return l.get(this).invalidateSh adowRenderer()},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.nex tSibling,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.pr eviousSibling;else{a.lastChild_=a.lastChild,a.lastChild===a.firstChild&&(a.first Child_=a.firstChild);var i=H(f.lastChild);i&&(i.nextSibling_=i.nextSibling)}f.in sertBefore(g,h)}function d(a){var c=G(a),d=c.parentNode;if(d){var e=H(d);b(a),a. previousSibling&&(a.previousSibling.nextSibling_=a),a.nextSibling&&(a.nextSiblin g.previousSibling_=a),e.lastChild===a&&(e.lastChild_=a),e.firstChild===a&&(e.fir stChild_=a),d.removeChild(c)}}function e(a){I.set(a,[])}function f(a){var b=I.ge t(a);return b||I.set(a,b=[]),b}function g(a){for(var b=[],c=0,d=a.firstChild;d;d =d.nextSibling)b[c++]=d;return b}function h(){for(var a=0;a<M.length;a++){var b= M[a],c=b.parentRenderer;c&&c.dirty||b.render()}M=[]}function i(){y=null,h()}func tion j(a){var b=K.get(a);return b||(b=new n(a),K.set(a,b)),b}function k(a){var b =E(a).root;return b instanceof D?b:null}function l(a){return j(a.host)}function m(a){this.skip=!1,this.node=a,this.childNodes=[]}function n(a){this.host=a,this. dirty=!1,this.invalidateAttributes(),this.associateNode(a)}function o(a){for(var b=[],c=a.firstChild;c;c=c.nextSibling)v(c)?b.push.apply(b,f(c)):b.push(c);retur n b}function p(a){if(a instanceof B)return a;if(a instanceof A)return null;for(v ar b=a.firstChild;b;b=b.nextSibling){var c=p(b);if(c)return c}return null}functi on q(a,b){f(b).push(a);var c=J.get(a);c?c.push(b):J.set(a,[b])}function r(a){ret urn J.get(a)}function s(a){J.set(a,void 0)}function t(a,b){var c=b.getAttribute( "select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z))return!1 ;if(!O.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function u(a, b){var c=r(b);return c&&c[c.length-1]===a}function v(a){return a instanceof A||a instanceof B}function w(a){return a.shadowRoot}function x(a){for(var b=[],c=a.s hadowRoot;c;c=c.olderShadowRoot)b.push(c);return b}var y,z=a.wrappers.Element,A= a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrappers.Node,D =a.wrappers.ShadowRoot,E=(a.assert,a.getTreeScope),F=(a.mixin,a.oneOf),G=a.unwra p,H=a.wrap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=F(window,["requestAnimati onFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","setTimeout"]) ,M=[],N=new ArraySplice;N.equals=function(a,b){return G(a.node)===b},m.prototype ={append:function(a){var b=new m(a);return this.childNodes.push(b),b},sync:funct ion(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=g(G(b)),h=a||new W eakMap,i=N.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(h);for(var o=n.removed.length,p=0;o>p;p++){var q=H (f[k++]);h.get(q)||d(q)}for(var 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),h.set(u,!0),t.sync(h)}l+=r}for(var m=l;m<e.length;m++ )e[m].sync(h)}}},n.prototype={render:function(a){if(this.dirty){this.invalidateA ttributes();var b=this.host;this.distribution(b);var c=a||new m(b);this.buildRen derTree(c,b);var d=!a;d&&c.sync(),this.dirty=!1}},get parentRenderer(){return E( this.host).renderer},invalidate:function(){if(!this.dirty){if(this.dirty=!0,M.pu sh(this),y)return;y=window[L](i,0)}},distribution:function(a){this.resetAll(a),t his.distributionResolution(a)},resetAll:function(a){v(a)?e(a):s(a);for(var b=a.f irstChild;b;b=b.nextSibling)this.resetAll(b);a.shadowRoot&&this.resetAll(a.shado wRoot),a.olderShadowRoot&&this.resetAll(a.olderShadowRoot)},distributionResoluti on:function(a){if(w(a)){for(var b=a,c=o(b),d=x(b),e=0;e<d.length;e++)this.poolDi stribution(d[e],c);for(var e=d.length-1;e>=0;e--){var f=d[e],g=p(f);if(g){var h= f.olderShadowRoot;h&&(c=o(h));for(var i=0;i<c.length;i++)q(c[i],g)}this.distribu tionResolution(f)}}for(var j=a.firstChild;j;j=j.nextSibling)this.distributionRes olution(j)},poolDistribution:function(a,b){if(!(a instanceof B))if(a instanceof A){var c=a;this.updateDependentAttributes(c.getAttribute("select"));for(var d=!1 ,e=0;e<b.length;e++){var a=b[e];a&&t(a,c)&&(q(a,c),b[e]=void 0,d=!0)}if(!d)for(v ar f=c.firstChild;f;f=f.nextSibling)q(f,c)}else for(var f=a.firstChild;f;f=f.nex tSibling)this.poolDistribution(f,b)},buildRenderTree:function(a,b){for(var c=thi s.compose(b),d=0;d<c.length;d++){var e=c[d],f=a.append(e);this.buildRenderTree(f ,e)}if(w(b)){var g=j(b);g.dirty=!1}},compose:function(a){for(var b=[],c=a.shadow Root||a,d=c.firstChild;d;d=d.nextSibling)if(v(d)){this.associateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g];u(d,h)&&b.push(h)}}else b.push(d);return b },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]},associa teNode:function(a){a.impl.polymerShadowRenderer_=this}};var O=/^[*.#[a-zA-Z_|]/; C.prototype.invalidateShadowRenderer=function(){var a=this.impl.polymerShadowRen derer_;return a?(a.invalidate(),!0):!1},A.prototype.getDistributedNodes=B.protot ype.getDistributedNodes=function(){return h(),f(this)},z.prototype.getDestinatio nInsertionPoints=function(){return h(),r(this)||[]},A.prototype.nodeIsInserted_= B.prototype.nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b=k (this);b&&(a=l(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.getRe ndererForHost=j,a.getShadowTrees=x,a.renderAllPending=h,a.getDestinationInsertio nPoints=r,a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPolyfill),function (a){"use strict";function b(b){if(window[b]){d(!a.wrappers[b]);var i=function(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.register Wrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetElement","HTMLIn putElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HTMLObje ctElement","HTMLOutputElement","HTMLTextAreaElement"];i.forEach(b)}(window.Shado wDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}{var c=a.regist erWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.prototype={g et anchorNode(){return f(this.impl.anchorNode)},get focusNode(){return f(this.im pl.focusNode)},addRange:function(a){this.impl.addRange(d(a))},collapse:function( a,b){this.impl.collapse(e(a),b)},containsNode:function(a,b){return this.impl.con tainsNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRangeAt:fun ction(a){return f(this.impl.getRangeAt(a))},removeRange:function(a){this.impl.re moveRange(d(a))},selectAllChildren:function(a){this.impl.selectAllChildren(e(a)) },toString:function(){return this.impl.toString()}},c(window.Selection,b,window. getSelection()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){k.call(this,a),this.treeScope_=new p(this,null)}functio n c(a){var c=document[a];b.prototype[a]=function(){return A(c.apply(this.impl,ar guments))}}function d(a,b){D.call(b.impl,z(a)),e(a,b)}function e(a,b){a.shadowRo ot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c= c.nextSibling)e(c,b)}function f(a,b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}f unction g(a){this.impl=a}function h(a,b){var c=document.implementation[b];a.prot otype[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.ParentNodeInter face,m=a.wrappers.Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot,p=a.T reeScope,q=a.cloneNode,r=a.defineWrapGetter,s=a.elementFromPoint,t=a.forwardMeth odsToWrapper,u=a.matchesNames,v=a.mixin,w=a.registerWrapper,x=a.renderAllPending ,y=a.rewrap,z=a.unwrap,A=a.wrap,B=a.wrapEventTargetMethods,C=(a.wrapNodeList,new WeakMap);b.prototype=Object.create(k.prototype),r(b,"documentElement"),r(b,"bod y"),r(b,"head"),["createComment","createDocumentFragment","createElement","creat eElementNS","createEvent","createEventNS","createRange","createTextNode","getEle mentById"].forEach(c);var D=document.adoptNode,E=document.getSelection;if(v(b.pr ototype,{adoptNode:function(a){return a.parentNode&&a.parentNode.removeChild(a), d(a,this),a},elementFromPoint:function(a,b){return s(this,this,a,b)},importNode: function(a,b){return q(a,b,this.impl)},getSelection:function(){return x(),new m( E.call(z(this)))},getElementsByName:function(a){return n.querySelectorAll.call(t his,"[name="+JSON.stringify(String(a))+"]")}}),document.registerElement){var F=d ocument.registerElement;b.prototype.registerElement=function(b,c){function d(a){ return a?void(this.impl=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(HTMLEl ement.prototype)),a.nativePrototypeTable.get(e))throw new Error("NotSupportedErr or");for(var g,h=Object.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get (h));)i.push(h),h=Object.getPrototypeOf(h);if(!g)throw new Error("NotSupportedEr ror");for(var j=Object.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["crea tedCallback","attachedCallback","detachedCallback","attributeChangedCallback"].f orEach(function(a){var b=e[a];b&&(j[a]=function(){A(this)instanceof d||y(this),b .apply(A(this),arguments)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e ,d.prototype.constructor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.se t(e,j);F.call(z(this),b,l);return d},t([window.HTMLDocument||window.Document],[" registerElement"])}t([window.HTMLBodyElement,window.HTMLDocument||window.Documen t,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocument Position","contains","getElementsByClassName","getElementsByTagName","getElement sByTagNameNS","insertBefore","querySelector","querySelectorAll","removeChild","r eplaceChild"].concat(u)),t([window.HTMLDocument||window.Document],["adoptNode"," importNode","contains","createComment","createDocumentFragment","createElement", "createElementNS","createEvent","createEventNS","createRange","createTextNode"," elementFromPoint","getElementById","getElementsByName","getSelection"]),v(b.prot otype,j),v(b.prototype,l),v(b.prototype,n),v(b.prototype,{get implementation(){v ar a=C.get(this);return a?a:(a=new g(z(this).implementation),C.set(this,a),a)},g et defaultView(){return A(z(this).defaultView)}}),w(window.Document,b,document.i mplementation.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument ,b),B([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHe adElement]),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocum ent"),i(g,"hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementatio n],["createDocumentType","createDocument","createHTMLDocument","hasFeature"]),a. adoptNodeNoRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window .ShadowDOMPolyfill),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. renderAllPending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window .getComputedStyle,m=window.getSelection;b.prototype=Object.create(c.prototype),k .prototype.getComputedStyle=function(a,b){return j(this||window).getComputedStyl e(i(a),b)},k.prototype.getSelection=function(){return j(this||window).getSelecti on()},delete window.getComputedStyle,delete window.getSelection,["addEventListen er","removeEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=fu nction(){var b=j(this||window);return b[a].apply(b,arguments)},delete window[a]} ),e(b.prototype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a),b )},getSelection:function(){return g(),new d(m.call(h(this)))},get document(){ret urn j(h(this).document)}}),f(k,b,window),a.wrappers.Window=b}(window.ShadowDOMPo lyfill),function(a){"use strict";var b=a.unwrap,c=window.DataTransfer||window.Cl ipboard,d=c.prototype.setDragImage;c.prototype.setDragImage=function(a,c,e){d.ca ll(this,b(a),c,e)}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.createElement(a),f=e.constructo r;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElemen t",audio:"HTMLAudioElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HT MLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTML TableCaptionElement",col:"HTMLTableColElement",content:"HTMLContentElement",data :"HTMLDataElement",datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTML DirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedEle ment",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElemen t",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElemen t",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTML IFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeyge nElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement" ,link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:" HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HT MLMeterElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLO ptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLPar agraphElement",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgr essElement",q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectEl ement",shadow:"HTMLShadowElement",source:"HTMLSourceElement",span:"HTMLSpanEleme nt",style:"HTMLStyleElement",table:"HTMLTableElement",tbody:"HTMLTableSectionEle ment",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLT ableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTabl eRowElement",track:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoElem ent"});Object.keys(c).forEach(b),Object.getOwnPropertyNames(a.wrappers).forEach( function(b){window[b]=a.wrappers[b]})}(window.ShadowDOMPolyfill),function(a){fun ction b(a,c){var d,e,f,g,h=a.firstElementChild;for(e=[],f=a.shadowRoot;f;)e.push (f),f=f.olderShadowRoot;for(g=e.length-1;g>=0;g--)if(d=e[g].querySelector(c))ret urn d;for(;h;){if(d=b(h,c))return d;h=h.nextElementSibling}return null}function c(a,b,d){var e,f,g,h,i,j=a.firstElementChild;for(g=[],f=a.shadowRoot;f;)g.push(f ),f=f.olderShadowRoot;for(h=g.length-1;h>=0;h--)for(e=g[h].querySelectorAll(b),i =0;i<e.length;i++)d.push(e[i]);for(;j;)c(j,b,d),j=j.nextElementSibling;return d} window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwra pIfNeeded,Object.defineProperty(Element.prototype,"webkitShadowRoot",Object.getO wnPropertyDescriptor(Element.prototype,"shadowRoot"));var d=Element.prototype.cr eateShadowRoot;Element.prototype.createShadowRoot=function(){var a=d.call(this); return CustomElements.watchShadow(this),a},Element.prototype.webkitCreateShadowR oot=Element.prototype.createShadowRoot,a.queryAllShadows=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform),function(a){function b(a,b){var c="";retur n Array.prototype.forEach.call(a,function(a){c+=a.textContent+"\n\n"}),b||(c=c.r eplace(l,"")),c}function c(a){var b=document.createElement("style");return b.tex tContent=a,b}function d(a){var b=c(a);document.head.appendChild(b);var d=[];if(b .sheet)try{d=b.sheet.cssRules}catch(e){}else console.warn("sheet not found",b);r eturn b.parentNode.removeChild(b),d}function e(){v.initialized=!0,document.body. appendChild(v);var a=v.contentDocument,b=a.createElement("base");b.href=document .baseURI,a.head.appendChild(b)}function f(a){v.initialized||e(),document.body.ap pendChild(v),a(v.contentDocument),document.body.removeChild(v)}function g(a,b){i f(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)}}function h(a){a&&j().append Child(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=do cument.createElement("style"),w.setAttribute(z,""),w[z]=!0),w}var k={strictStyli ng:!1,registry:{},shimStyling:function(a,c,d){var e=this.prepareRoot(a,c,d),f=th is.isTypeExtension(d),g=this.makeScopeSelector(c,f),h=b(e,!0);h=this.scopeCssTex t(h,g),a&&(a.shimmedStyle=h),this.addCssToDocument(h,c)},shimStyle:function(a,b) {return this.shimCssText(a.textContent,b)},shimCssText:function(a,b){return a=th is.insertDirectives(a),this.scopeCssText(a,b)},makeScopeSelector:function(a,b){r eturn a?b?"[is="+a+"]":a:""},isTypeExtension:function(a){return a&&a.indexOf("-" )<0},prepareRoot:function(a,b,c){var d=this.registerRoot(a,b,c);return this.repl aceTextInStyles(d.rootStyles,this.insertDirectives),this.removeStyles(a,d.rootSt yles),this.strictStyling&&this.applyScopeToContent(a,b),d.scopeStyles},removeSty les:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)c.parentNode.remove Child(c)},registerRoot:function(a,b,c){var d=this.registry[b]={root:a,name:b,ext endsName:c},e=this.findStyles(a);d.rootStyles=e,d.scopeStyles=d.rootStyles;var f =this.registry[d.extendsName];return f&&(d.scopeStyles=f.scopeStyles.concat(d.sc opeStyles)),d},findStyles:function(a){if(!a)return[];var b=a.querySelectorAll("s tyle");return Array.prototype.filter.call(b,function(a){return!a.hasAttribute(A) })},applyScopeToContent:function(a,b){a&&(Array.prototype.forEach.call(a.querySe lectorAll("*"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.call(a .querySelectorAll("template"),function(a){this.applyScopeToContent(a.content,b)} ,this))},insertDirectives:function(a){return a=this.insertPolyfillDirectivesInCs sText(a),this.insertPolyfillRulesInCssText(a)},insertPolyfillDirectivesInCssText :function(a){return a=a.replace(m,function(a,b){return b.slice(0,-2)+"{"}),a.rep lace(n,function(a,b){return b+" {"})},insertPolyfillRulesInCssText:function(a){r eturn a=a.replace(o,function(a,b){return b.slice(0,-1)}),a.replace(p,function(a, b,c,d){var e=a.replace(b,"").replace(c,"");return d+e})},scopeCssText:function(a ,b){var c=this.extractUnscopedRulesFromCssText(a);if(a=this.insertPolyfillHostIn CssText(a),a=this.convertColonHost(a),a=this.convertColonHostContext(a),a=this.c onvertCombinators(a),b){var a,d=this;g(a,function(c){a=d.scopeRules(c,b)})}retur n a=a+"\n"+c,a.trim()},extractUnscopedRulesFromCssText:function(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:function(a){return thi s.convertColonRule(a,cssColonHostRe,this.colonHostPartReplacer)},convertColonHos tContext:function(a){return this.convertColonRule(a,cssColonHostContextRe,this.c olonHostContextPartReplacer)},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},colonHostPartReplacer:fu nction(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},scop eRules:function(a,b){var c="";return a&&Array.prototype.forEach.call(a,function( a){if(a.selectorText&&a.style&&void 0!==a.style.cssText)c+=this.scopeSelector(a. selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFromRule(a)+ "\n}\n\n";else if(a.type===CSSRule.MEDIA_RULE)c+="@media "+a.media.mediaText+" { \n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n";else try{a.cssText&&(c+=a.cssT ext+"\n\n")}catch(d){}},this),c},scopeSelector:function(a,b,c){var d=[],e=a.spli t(",");return e.forEach(function(a){a=a.trim(),this.selectorNeedsScoping(a,b)&&( a=c&&!a.match(polyfillHostNoCombinator)?this.applyStrictSelectorScope(a,b):this. applySelectorScope(a,b)),d.push(a)},this),d.join(", ")},selectorNeedsScoping:fun ction(a,b){if(Array.isArray(b))return!0;var c=this.makeScopeMatcher(b);return!a. match(c)},makeScopeMatcher:function(a){return a=a.replace(/\[/g,"\\[").replace(/ \[/g,"\\]"),new RegExp("^("+a+")"+selectorReSuffix,"m")},applySelectorScope:func tion(a,b){return Array.isArray(b)?this.applySelectorScopeList(a,b):this.applySim pleSelectorScope(a,b)},applySelectorScopeList:function(a,b){for(var c,d=[],e=0;c =b[e];e++)d.push(this.applySimpleSelectorScope(a,c));return d.join(", ")},applyS impleSelectorScope:function(a,b){return a.match(polyfillHostRe)?(a=a.replace(pol yfillHostNoCombinator,b),a.replace(polyfillHostRe,b+" ")):b+" "+a},applyStrictSe lectorScope: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(fun ction(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.i ndexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},ins ertPolyfillHostInCssText:function(a){return a.replace(colonHostContextRe,t).repl ace(colonHostRe,s)},propertiesFromRule:function(a){var b=a.style.cssText;a.style .content&&!a.style.content.match(/['"]+|attr/)&&(b=b.replace(/content:[^;]*;/g," content: '"+a.style.content+"';"));var c=a.style;for(var d in c)"initial"===c[d] &&(b+=d+": initial; ");return b},replaceTextInStyles:function(a,b){a&&b&&(a inst anceof Array||(a=[a]),Array.prototype.forEach.call(a,function(a){a.textContent=b .call(this,a.textContent)},this))},addCssToDocument:function(a,b){a.match("@impo rt")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,m=/\/\*\s*@polyfill ([^ *]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n=/polyfill-next-selector[^}]*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="-shadowcsshost",t="-shado wcsscontext",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe= new RegExp("("+s+u,"gim"),cssColonHostContextRe=new RegExp("("+t+u,"gim"),select orReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",colonHostRe=/\:host/gim,colonHostContext Re=/\:host-context/gim,polyfillHostNoCombinator=s+"-no-combinator",polyfillHostR e=new RegExp(s,"gim"),polyfillHostContextRe=new RegExp(t,"gim"),combinatorsRe=[/ \^\^/g,/\^/g,/\/shadow\//g,/\/shadow-deep\//g,/::shadow/g,/\/deep\//g];var v=doc ument.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(docume nt),C=B.querySelector("head");C.insertBefore(j(),C.childNodes[0]),document.addEv entListener("DOMContentLoaded",function(){var b=a.urlResolver;if(window.HTMLImpo rts&&!HTMLImports.useNative){var c="link[rel=stylesheet]["+y+"]",d="style["+y+"] ";HTMLImports.importer.documentPreloadSelectors+=","+c,HTMLImports.importer.impo rtsPreloadSelectors+=","+c,HTMLImports.parser.documentSelectors=[HTMLImports.par ser.documentSelectors,c,d].join(",");var e=HTMLImports.parser.parseGeneric;HTMLI mports.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.cre ateElement("style"),c.textContent=b.resolveCssText(a.__resource,a.href)):b.resol veStyle(c),c.textContent=k.shimStyle(c),c.removeAttribute(y,""),c.setAttribute(z ,""),c[z]=!0,c.parentNode!==C&&(a.parentNode===C?C.replaceChild(c,a):C.appendChi ld(c)),c.__importParsed=!0,this.markParsingComplete(a),this.parseNext()}};var f= HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(a){return "link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource:f.cal l(this,a)}}})}a.ShadowCSS=k}(window.Platform)):!function(){window.wrap=window.un wrap=function(a){return a},addEventListener("DOMContentLoaded",function(){if(Cus tomElements.useNative===!1){var a=Element.prototype.createShadowRoot;Element.pro totype.createShadowRoot=function(){var b=a.call(this);return CustomElements.watc hShadow(this),b}}}),Platform.templateContent=function(a){if(window.HTMLTemplateE lement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.conte nt&&!a._content){for(var b=document.createDocumentFragment();a.firstChild;)b.app endChild(a.firstChild);a._content=b}return a.content||a._content}}(window.Platfo rm),function(a){"use strict";function b(a){return void 0!==m[a]}function c(){h.c all(this),this._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCa se()}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);retu rn b>32&&127>b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){function 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.t oLowerCase();else{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)br eak a;b(this._scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":t his._isRelative&&h&&h._scheme==this._scheme?"relative or authority":this._isRela tive?"authority 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 o r authority":if("/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";conti nue}j="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"fi le"!=this._scheme&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port= h._port,this._path=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._host,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._port,this._path=h._path.slice(),this._path.pop()),j="relative path ";
15 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"))},get search(){return this._isInvalid||!this._query||"?"== this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(t his._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){ret urn this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(t his,a,"fragment"))}},a.URL=i}}(window),function(a){function b(a){for(var b=a||{} ,d=1;d<arguments.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catc h(g){}}return b}function c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}func tion 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.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Pl atform),function(a){"use strict";function b(a,b,c){var d="string"==typeof a?docu ment.createElement(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAtt ribute(e,c[e]);return d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototyp e.remove;DOMTokenList.prototype.add=function(){for(var a=0;a<arguments.length;a+ +)c.call(this,arguments[a])},DOMTokenList.prototype.remove=function(){for(var a= 0;a<arguments.length;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggl e=function(a,b){1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.re move(a)},DOMTokenList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.a dd(b)};var e=function(){return Array.prototype.slice.call(this)},f=window.NamedN odeMap||window.MozNamedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.arr ay=e,HTMLCollection.prototype.array=e,!window.performance){var g=Date.now();wind ow.performance={now:function(){return Date.now()-g}}}window.requestAnimationFram e||(window.requestAnimationFrame=function(){var a=window.webkitRequestAnimationF rame||window.mozRequestAnimationFrame;return a?function(b){return a(function(){b (performance.now())})}:function(a){return window.setTimeout(a,1e3/60)}}()),windo w.cancelAnimationFrame||(window.cancelAnimationFrame=function(){return window.we bkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeo ut(a)}}());var h=[],i=function(){h.push(arguments)};window.Polymer=i,a.deliverDe clarations=function(){return a.deliverDeclarations=function(){throw"Possible att empt to load Polymer twice"},h},window.addEventListener("DOMContentLoaded",funct ion(){window.Polymer===i&&(window.Polymer=function(){console.error('You tried to use polymer without loading it first. To load polymer, <link rel="import" href= "components/polymer/polymer.html">')})}),a.createDOM=b}(window.Platform),functio n(a){a.templateContent=a.templateContent||function(a){return a.content}}(window. Platform),function(a){a=a||(window.Inspector={});var b;window.sinspect=function( a,d){b||(b=window.open("","ShadowDOM Inspector",null,!0),b.document.write(c),b.a pi={shadowize:shadowize}),f(a||wrap(document.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;"," lis t-style: none;"," }"," li {"," display: inline-block;"," background-color: #f1f1f1;"," padding: 4px 6px;"," border-rad ius: 4px;"," margin-right: 4px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </ul>",' <div id="tree"></div>'," </bod y>","</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.l ength>this.idx;)b=d.pop();f(b.shadow||b,b),a.preventDefault()},c.appendChild(a.c reateElement("li")).appendChild(h)}},f=function(a,c){var f=b.document;k=[];var g =c||a;d.push(g),e(),f.body.querySelector("#tree").innerHTML="<pre>"+j(a,a.childN odes)+"</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);"content"==e&&(b=a.getDistributedNodes()) ,f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,function(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.webkitShadowRoot||a.shadowRoot?(b+=' <butto n idx="'+k.length+'" onclick="api.shadowize.call(this)">'+c+"</button>",k.push(a )):b+=c||"shadow-root",a.attributes&&g(a.attributes,function(a){b+=" "+a.name+(a .value?'="'+a.value+'"':"")}),b+="&gt;</tag>"};shadowize=function(){var a=Number (this.attributes.idx.value),b=k[a];b?f(b.webkitShadowRoot||b.shadowRoot,b):(cons ole.log("bad shadowize node"),console.dir(this))},a.output=j}(window.Inspector), function(){var a=document.createElement("style");a.textContent="body {transition : opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overfl ow: hidden; } \n";var b=document.querySelector("head");b.insertBefore(a,b.firstC hild)}(Platform),function(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.app ly(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}functi on d(a){return f[a]}function e(a,c){HTMLImports.whenImportsReady(function(){b(c, a)})}var f={};a.marshal=d,a.modularize=c,a.using=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(window.MutationObserver||JsMutationObse rver)(c).observe(f,{characterData:!0}),a.endOfMicrotask=b}(Platform),function(a) {function b(a,b,d,e){return a.replace(e,function(a,e,f,g){var h=f.replace(/["']/ g,"");return h=c(b,h,d),e+"'"+h+"'"+g})}function c(a,b,c){if(b&&"/"===b[0])retur n b;var e=new URL(b,a);return c?e.href:d(e.href)}function d(a){var b=new URL(doc ument.baseURI),c=new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protoco l===b.protocol?e(b,c):a}function e(a,b){for(var c=a.pathname,d=b.pathname,e=c.sp lit("/"),f=d.split("/");e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h =e.length-1;h>g;g++)f.unshift("..");return f.join("/")+b.search+b.hash}var f={re solveDom:function(a,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b), this.resolveStyles(a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0, f=c.length;f>e&&(d=c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTem plate:function(a){this.resolveDom(a.content,a.ownerDocument.baseURI)},resolveSty les:function(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.lengt h;f>e&&(d=c[e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,b){b=b||a.ow nerDocument.baseURI,a.textContent=this.resolveCssText(a.textContent,b)},resolveC ssText:function(a,c,d){return a=b(a,c,d,g),b(a,c,d,h)},resolveAttributes:functio n(a,b){a.hasAttributes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);va r c=a&&a.querySelectorAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)thi s.resolveElementAttributes(d,b)},resolveElementAttributes:function(a,d){d=d||a.o wnerDocument.baseURI,i.forEach(function(e){var f,h=a.attributes[e],i=h&&h.value; i&&i.search(k)<0&&(f="style"===e?b(i,d,!1,g):c(d,i),h.value=f)})}},g=/(url\()([^ )]*)(\))/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action","styl e","url"],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.ShadowDOM Polyfill&&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(function(a){ var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}function e (a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(function(b){b.obser ver===a&&b.removeTransientObservers()})})}function f(a,b){for(var c=a;c;c=c.pare ntNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.options;i f(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a){this.callback_=a ,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){this.type=a,this. target=b,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this. nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldVa lue=null}function i(a){var b=new h(a.type,a.target);return b.addedNodes=a.addedN odes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSibling=a.previousS ibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeName,b.attributeNa mespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j(a,b){return w=ne w 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:nul l}function o(a,b,c){this.observer=a,this.target=b,this.options=c,this.transientO bservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=Stri ng(Math.random());window.addEventListener("message",function(a){if(a.data===s){v ar b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push(a),window.postMe ssage(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.attributes|| b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.characterDataOldVa lue&&!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.removeListeners(),e.o ptions=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListene rs()},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){var c=thi s.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(){this.addLis teners_(this.target)},addListeners_:function(a){var b=this.options;b.attributes& &a.addEventListener("DOMAttrModified",this,!0),b.characterData&&a.addEventListen er("DOMCharacterDataModified",this,!0),b.childList&&a.addEventListener("DOMNodeI nserted",this,!0),(b.childList||b.subtree)&&a.addEventListener("DOMNodeRemoved", this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeL isteners_:function(a){var b=this.options;b.attributes&&a.removeEventListener("DO MAttrModified",this,!0),b.characterData&&a.removeEventListener("DOMCharacterData Modified",this,!0),b.childList&&a.removeEventListener("DOMNodeInserted",this,!0) ,(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addT ransientObserver:function(a){if(a!==this.target){this.addListeners_(a),this.tran sientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)}},remove TransientObservers:function(){var a=this.transientObservedNodes;this.transientOb servedNodes=[],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)},handleEvent:fun ction(a){switch(a.stopImmediatePropagation(),a.type){case"DOMAttrModified":var b =a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.at tributeName=b,e.attributeNamespace=c;var g=a.attrChange===MutationEvent.ADDITION ?null:a.prevValue;f(d,function(a){return!a.attributes||a.attributeFilter&&a.attr ibuteFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.in dexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMCharacterDataModified ":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,function(a){return a.c haracterData?a.characterDataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved": this.addTransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNod e,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previo usSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.p reviousSibling=n,e.nextSibling=o,f(d,function(a){return a.childList?e:void 0})}l ()}},a.JsMutationObserver=g,a.MutationObserver||(a.MutationObserver=g)}(this),wi ndow.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr) ,c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomplete=b,this.in flight=0,this.pending={}};d.prototype={addNodes:function(a){this.inflight+=a.len gth;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);this.checkDone()} ,addNode:function(a){this.inflight++,this.require(a),this.checkDone()},require:f unction(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(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.pending[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):decodeURI Component(g),setTimeout(function(){this.receive(a,d,null,g)}.bind(this),0)}else{ var h=function(b,c,e){this.receive(a,d,b,c,e)}.bind(this);b.load(a,h)}},receive: function(a,b,c,d,e){this.cache[a]=d;var f=this.pending[a];e&&e!==a&&(this.cache[ e]=d,f=f.concat(this.pending[e]));for(var g,h=0,i=f.length;i>h&&(g=f[h]);h++)thi s.onload(e||a,g,d),this.tail();this.pending[a]=null,e&&e!==a&&(this.pending[e]=n ull)},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){thi s.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=2 00&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){var f=new X MLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open ("GET",c,b.async),f.addEventListener("readystatechange",function(){if(4===f.read yState){var a=f.getResponseHeader("Location"),c=null;if(a)var c="/"===a.substr(0 ,1)?location.origin+a:c;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.HTMLImports),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=bt oa(unescape(encodeURIComponent(c))),console.warn("Script contained non-latin cha racters that were forced to latin. Some characters may be wrong.",a)}return"data :text/javascript;base64,"+b}function d(a){return a.textContent+e(a)}function e(a ){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c="["+Math.floor(1e3*(M ath.random()+1))+"]",d=a.textContent.match(/Polymer\(['"]([^'"]*)/);c=d&&d[1]||c ,b+="/"+c+".js"}return"\n//# sourceURL="+b+"\n"}function f(a){var b=a.ownerDocum ent.createElement("style");return b.textContent=a.textContent,n.resolveUrlsInSty le(b),b}var g="import",h=a.flags,i=/Trident/.test(navigator.userAgent),j=window. ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={do cumentSelectors:"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:f unction(){var a=this.nextToParse();a&&this.parse(a)},parse:function(a){if(this.i sParsed(a))return void(h.parse&&console.log("[%s] is already parsed",a.localName ));var b=this[this.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},ma rkParsing:function(a){h.parse&&console.log("parsing",a),this.parsingElement=a},m arkParsingComplete:function(a){a.__importParsed=!0,a.__importElement&&(a.__impor tElement.__importParsed=!0),this.parsingElement=null,h.parse&&console.log("compl eted",a)},invalidateParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__i mportLink.__importParsed=!1,this.parseSoon())},parseSoon:function(){this._parseS oon&&cancelAnimationFrame(this._parseDelay);var a=this;this._parseSoon=requestAn imationFrame(function(){a.parseNext()})},parseImport:function(a){if(HTMLImports. __importsParsingHook&&HTMLImports.__importsParsingHook(a),a.import.__importParse d=!0,this.markParsingComplete(a),a.dispatchEvent(a.__resource?new CustomEvent("l oad",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(var b; a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.parseNext()},par seLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.parseGeneric(a)) },parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.parseGeneric(a) },parseGeneric:function(a){this.trackElement(a),document.head.appendChild(a)},tr ackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.markParsingComplete( a),c.parseNext()};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.dispatch Event(new CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var d=docu ment.createElement("script");d.__importElement=b,d.src=b.src?b.src:c(b),a.curren tScript=b,this.trackElement(d,function(){d.parentNode.removeChild(d),a.currentSc ript=null}),document.head.appendChild(d)},nextToParse:function(){return!this.par singElement&&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.ownerDo cument||a;return b===j?this.documentSelectors:this.importsSelectors},isParsed:fu nction(a){return a.__importParsed},hasResource:function(a){return b(a)&&!a.impor t?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={reso lveUrlsInStyle: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)},re placeUrls: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.isIE =i}(HTMLImports),function(a){function b(a){return c(a,q)}function c(a,b){return" link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c instanc eof Document||(c=document.implementation.createHTMLDocument(q)),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.appendChi ld(e),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.H TMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap (c),c}function e(a,b){b=b||r,g(function(){h(a,b)},b)}function f(a){return"comple te"===a.readyState||a.readyState===y}function g(a,b){if(f(b))a&&a();else{var c=f unction(){("complete"===b.readyState||b.readyState===y)&&(b.removeEventListener( z,c),g(a,b))};b.addEventListener(z,c)}}function h(a,b){function c(){f==g&&a&&a() }function d(){f++,c()}var e=b.querySelectorAll("link[rel=import]"),f=0,g=e.lengt h;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addEventListener("load" ,d),h.addEventListener("error",d));else c()}function i(a){return o?a.import&&"lo ading"!==a.import.readyState||a.__loaded:a.__importParsed}function j(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)k(b)&&l(b)}function k(a){return"link"===a.loc alName&&"import"===a.rel}function l(a){var b=a.import;b?m({target:a}):(a.addEven tListener("load",m),a.addEventListener("error",m))}function m(a){a.target.__load ed=!0}var n="import"in document.createElement("link"),o=n,p=a.flags,q="import",r =window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document;if(o )var s={};else var t=(a.xhr,a.Loader),u=a.parser,s={documents:{},documentPreload Selectors:"link[rel="+q+"]",importsPreloadSelectors:["link[rel="+q+"]"].join("," ),loadNode:function(a){v.addNode(a)},loadSubtree:function(a){var b=this.marshalN odes(a);v.addNodes(b)},marshalNodes:function(a){return a.querySelectorAll(this.l oadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a.ownerDocument| |a;return b===r?this.documentPreloadSelectors:this.importsPreloadSelectors},load ed:function(a,c,e){if(p.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.doc uments[a]=f),c.import=f}u.parseNext()},bootDocument:function(a){this.loadSubtree (a),this.observe(a),u.parseNext()},loadedAll:function(){u.parseNext()}},v=new t( s.loaded.bind(s),s.loadedAll.bind(s));var w={get:function(){return HTMLImports.c urrentScript||document.currentScript},configurable:!0};if(Object.defineProperty( document,"_currentScript",w),Object.defineProperty(r,"_currentScript",w),!docume nt.baseURI){var x={get:function(){return window.location.href},configurable:!0}; Object.defineProperty(document,"baseURI",x),Object.defineProperty(r,"baseURI",x) }var y=HTMLImports.isIE?"complete":"interactive",z="readystatechange";o&&new Mut ationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.addedNode s&&j(b.addedNodes)}).observe(document.head,{childList:!0}),a.hasNative=n,a.useNa tive=o,a.importer=s,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=q,a.isImportLoaded=i ,a.importLoader=v}(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.added Nodes)}function c(a){for(var b,e,g=0,h=a.length;h>g&&(e=a[g]);g++)b=b||e.ownerDo cument,d(e)&&f.loadNode(e),e.children&&e.children.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.call(a,f.loadSelectorsForNode(a))}function e(a){h .observe(a,{childList:!0,subtree:!0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=(a .parser,HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HT MLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelec tor||HTMLElement.prototype.msMatchesSelector),h=new MutationObserver(b);a.observ e=e,f.observe=e}(HTMLImports),function(){function a(){HTMLImports.importer.bootD ocument(b)}"function"!=typeof window.CustomEvent&&(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?wind ow.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.whenImportsRead y(function(){HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),b.d ispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}),HTMLImports.us eNative||("complete"===document.readyState||"interactive"===document.readyState& &!window.attachEvent?a():document.addEventListener("DOMContentLoaded",a))}(),win dow.CustomElements=window.CustomElements||{flags:{}},function(a){function b(a,c, d){var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEME NT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;re turn null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}f unction 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:vo id 0})}function g(a){return e(a)||f(a)}function h(b){if(!b.__upgraded__&&b.nodeT ype===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c] ;if(d)return A.dom&&console.group("upgrade:",b.localName),a.upgrade(b),A.dom&&co nsole.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.Platform&&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.attachedCal lback||a.detachedCallback||a.__upgraded__&&A.dom)&&(A.dom&&console.group("insert ed:",a.localName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__inserted<1&&(a.__i nserted=1),a.__inserted>1?A.dom&&console.warn("inserted:",a.localName,"insert/re move count:",a.__inserted):a.attachedCallback&&(A.dom&&console.log("inserted:",a .localName),a.attachedCallback())),A.dom&&console.groupEnd())}function n(a){o(a) ,d(a,function(a){o(a)})}function o(a){C?j(function(){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.__inserted=(a.__inserted||0)-1,a.__insert ed>0&&(a.__inserted=0),a.__inserted<0?A.dom&&console.warn("removed:",a.localName ,"insert/remove count:",a.__inserted):a.detachedCallback&&a.detachedCallback()), A.dom&&console.groupEnd())}function q(a){return window.ShadowDOMPolyfill?ShadowD OMPolyfill.wrapIfNeeded(a):a}function r(a){for(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 shadow-root for: ",a.localName);for(var b =a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}function 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.add edNodes&&b.addedNodes){for(var c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.p arentNode;var d=c&&(c.URL||c._URL||c.host&&c.host.localName)||"";d=d.split("/?") .shift().split("/").pop()}console.group("mutations (%d) [%s]",a.length,d||"")}a. forEach(function(a){"childList"===a.type&&(G(a.addedNodes,function(a){a.localNam e&&g(a)}),G(a.removedNodes,function(a){a.localName&&n(a)}))}),A.dom&&console.gro upEnd()}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("upgradeD ocument: ",a.baseURI.split("/").pop()),g(a),A.dom&&console.groupEnd()}function z (a){a=q(a);for(var b,c=a.querySelectorAll("link[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.logFlag s||{},B=window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE:"none",C=!window.Mutatio nObserver||window.MutationObserver===window.JsMutationObserver;a.hasPolyfillMuta tions=C;var D=!1,E=[],F=new MutationObserver(u),G=Array.prototype.forEach.call.b ind(Array.prototype.forEach);a.IMPORT_LINK_TYPE=B,a.watchShadow=s,a.upgradeDocum entTree=z,a.upgradeAll=g,a.upgradeSubtree=f,a.insertedNode=i,a.observeDocument=x ,a.upgradeDocument=y,a.takeRecords=v}(window.CustomElements),function(a){functio n b(b,g){var h=g||{};if(!b)throw new Error("document.registerElement: first argu ment `name` must not be empty");if(b.indexOf("-")<0)throw new Error("document.re gisterElement: first argument ('name') must contain a dash ('-'). Argument provi ded was '"+String(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerE lement' on 'Document': Registration failed for type '"+String(b)+"'. The type na me is invalid.");if(n(b))throw new Error("DuplicateDefinitionError: a type with name '"+String(b)+"' is already registered");if(!h.prototype)throw new Error("Op tions missing required prototype property");return h.__name=b.toLowerCase(),h.li fecycle=h.lifecycle||{},h.ancestry=d(h.extends),e(h),f(h),l(h.prototype),o(h.__n ame,h),h.ctor=p(h),h.ctor.prototype=h.prototype,h.prototype.constructor=h.ctor,a .ready&&a.upgradeDocumentTree(document),h.ctor 15 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="r elative path";continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this ._scheme?"file host":"authority ignore slashes";break;case"authority first slash ":if("/"!=u){i("Expected '/', got: "+u),j="authority ignore slashes";continue}j= "authority second slash";break;case"authority second slash":if(j="authority igno re slashes","/"!=u){i("Expected '/', got: "+u);continue}break;case"authority ign ore slashes":if("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, g ot: "+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._password){var z=e(y);null!==this._password?this._password+=z:this ._username+=z}else this._password="";else i("Invalid whitespace in authority.")} l=""}else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";co ntinue}l+=u}break;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.call(this,l),l="",j="relative path start"):j="relative path";cont inue}" "==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/hostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","h ostname"==g)break 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;ca se"relative path start":if("\\"==u&&i("'\\' not allowed in path."),j="relative p ath","/"!=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("\\ no t allowed in relative 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._que ry="?",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");break;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._f ragment+=u)}k++}}function h(){this._scheme="",this._schemeData="",this._username ="",this._password=null,this._host="",this._port="",this._path=[],this._query="" ,this._fragment="",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0 ===b||b instanceof i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.repl ace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forc eJURL)try{var k=new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j) {var m=Object.create(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.prototy pe={get href(){if(this._isInvalid)return this._url;var a="";return(""!=this._use rname||null!=this._password)&&(a=this._username+(null!=this._password?":"+this._ password:"")+"@"),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.path name+this._query+this._fragment},set href(a){h.call(this),g.call(this,a)},get pr otocol(){return this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a +":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host +":"+this._port:this._host},set host(a){!this._isInvalid&&this._isRelative&&g.ca ll(this,a,"host")},get hostname(){return this._host},set hostname(a){!this._isIn valid&&this._isRelative&&g.call(this,a,"hostname")},get port(){return this._port },set port(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pat hname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this ._schemeData},set pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[] ,g.call(this,a,"relative path start"))},get search(){return this._isInvalid||!th is._query||"?"==this._query?"":this._query},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?"":thi s._fragment},set hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.sl ice(1)),g.call(this,a,"fragment"))}},a.URL=i}}(window),function(a){function b(a) {for(var b=a||{},d=1;d<arguments.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}function c(a,b,c){var e=d(b,a);Object.defineProp erty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);ret urn c||d(Object.getPrototypeOf(a),b)}}Function.prototype.bind||(Function.prototy pe.bind=function(a){var b=this,c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();return d.push.apply(d,arguments),b.apply(a,d)}}),a.mi xin=b}(window.Platform),function(a){"use 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=DOMTo kenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var a=0;a<arg uments.length;a++)c.call(this,arguments[a])},DOMTokenList.prototype.remove=funct ion(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a])},DOMTokenList .prototype.toggle=function(a,b){1==arguments.length&&(b=!this.contains(a)),b?thi s.add(a):this.remove(a)},DOMTokenList.prototype.switch=function(a,b){a&&this.rem ove(a),b&&this.add(b)};var e=function(){return Array.prototype.slice.call(this)} ,f=window.NamedNodeMap||window.MozNamedAttrMap||{};if(NodeList.prototype.array=e ,f.prototype.array=e,HTMLCollection.prototype.array=e,!window.performance){var g =Date.now();window.performance={now:function(){return Date.now()-g}}}window.requ estAnimationFrame||(window.requestAnimationFrame=function(){var a=window.webkitR equestAnimationFrame||window.mozRequestAnimationFrame;return a?function(b){retur n a(function(){b(performance.now())})}:function(a){return window.setTimeout(a,1e 3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(){ return window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||functi on(a){clearTimeout(a)}}());var h=[],i=function(){h.push(arguments)};window.Polym er=i,a.deliverDeclarations=function(){return a.deliverDeclarations=function(){th row"Possible attempt to load Polymer twice"},h},window.addEventListener("DOMCont entLoaded",function(){window.Polymer===i&&(window.Polymer=function(){console.err or('You tried to use polymer without loading it first. To load polymer, <link re l="import" href="components/polymer/polymer.html">')})}),a.createDOM=b}(window.P latform),function(a){a.templateContent=a.templateContent||function(a){return a.c ontent}}(window.Platform),function(a){a=a||(window.Inspector={});var b;window.si nspect=function(a,d){b||(b=window.open("","ShadowDOM Inspector",null,!0),b.docum ent.write(c),b.api={shadowize:shadowize}),f(a||wrap(document.body),d)};var c=["< !DOCTYPE html>","<html>"," <head>"," <title>ShadowDOM Inspector</title>"," <style>"," body {"," }"," pre {",' font: 9pt "Courier Ne w", monospace;'," line-height: 1.5em;"," }"," tag {"," c olor: purple;"," }"," ul {"," margin: 0;"," padding: 0 ;"," list-style: none;"," }"," li {"," display: inline -block;"," background-color: #f1f1f1;"," padding: 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.cre ateElement("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=function(a,c){var f=b.doc ument;k=[];var g=c||a;d.push(g),e(),f.body.querySelector("#tree").innerHTML="<pr e>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach.call.bind(Array.protot ype.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);"content"==e&&(b=a.getDis tributedNodes()),f+="<br/>";var h=d+"&nbsp;&nbsp;";g(b,function(a){f+=j(a,a.chil dNodes,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.webkitShadowRoot||a.shadowR oot?(b+=' <button idx="'+k.length+'" onclick="api.shadowize.call(this)">'+c+"</b utton>",k.push(a)):b+=c||"shadow-root",a.attributes&&g(a.attributes,function(a){ b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&gt;</tag>"};shadowize=functio n(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.webkitShadowRoot||b.sha dowRoot,b):(console.log("bad shadowize node"),console.dir(this))},a.output=j}(wi ndow.Inspector),function(){var a=document.createElement("style");a.textContent=" body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; displa y: block; overflow: hidden; } \n";var b=document.querySelector("head");b.insertB efore(a,b.firstChild)}(Platform),function(a){function b(a,b){return b=b||[],b.ma p||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var e;switch(arguments.lengt h){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){HTMLImports.whenImportsReady (function(){b(c,a)})}var f={};a.marshal=d,a.modularize=c,a.using=e}(window),func tion(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(window.MutationObserver ||JsMutationObserver)(c).observe(f,{characterData:!0}),a.endOfMicrotask=b}(Platf orm),function(a){function b(a,b,d,e){return a.replace(e,function(a,e,f,g){var h= f.replace(/["']/g,"");return h=c(b,h,d),e+"'"+h+"'"+g})}function c(a,b,c){if(b&& "/"===b[0])return b;var e=new URL(b,a);return c?e.href:d(e.href)}function d(a){v ar b=new URL(document.baseURI),c=new URL(a,b);return c.host===b.host&&c.port===b .port&&c.protocol===b.protocol?e(b,c):a}function e(a,b){for(var c=a.pathname,d=b .pathname,e=c.split("/"),f=d.split("/");e.length&&e[0]===f[0];)e.shift(),f.shift ();for(var g=0,h=e.length-1;h>g;g++)f.unshift("..");return f.join("/")+b.search+ b.hash}var f={resolveDom:function(a,b){b=b||a.ownerDocument.baseURI,this.resolve Attributes(a,b),this.resolveStyles(a,b);var c=a.querySelectorAll("template");if( c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)d.content&&this.resolveDom(d.conten t,b)},resolveTemplate:function(a){this.resolveDom(a.content,a.ownerDocument.base URI)},resolveStyles:function(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveStyle(d,b)},resolveStyle:functio n(a,b){b=b||a.ownerDocument.baseURI,a.textContent=this.resolveCssText(a.textCont ent,b)},resolveCssText:function(a,c,d){return a=b(a,c,d,g),b(a,c,d,h)},resolveAt tributes:function(a,b){a.hasAttributes&&a.hasAttributes()&&this.resolveElementAt tributes(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)},resolveElementAttributes:functi on(a,d){d=d||a.ownerDocument.baseURI,i.forEach(function(e){var f,h=a.attributes[ e],i=h&&h.value;i&&i.search(k)<0&&(f="style"===e?b(i,d,!1,g):c(d,i),h.value=f)}) }},g=/(url\()([^)]*)(\))/g,h=/(@import[\s]+(?!url\())([^;]*)(;)/g,i=["href","src ","action","style","url"],j="["+i.join("],[")+"]",k="{{.*}}";a.urlResolver=f}(Pl atform),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.ShadowDOMPolyfill&&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.forE ach(function(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}),b &&d()}function e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forEach(fun ction(b){b.observer===a&&b.removeTransientObservers()})})}function f(a,b){for(va r 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.options;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a){ this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h(a,b){t his.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previousSi bling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace =null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);return b.add edNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previousSib ling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attributeNa me,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}function j( a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}functi on 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.transientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q) {var r=[],s=String(Math.random());window.addEventListener("message",function(a){ if(a.data===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){r.push( a),window.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.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||b.ch aracterDataOldValue&&!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.remov eListeners(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push( a)),e.addListeners()},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.removeList eners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){va r a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:funct ion(a){var 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:functi on(){this.addListeners_(this.target)},addListeners_:function(a){var b=this.optio ns;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterData&& a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEventLi stener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListener(" DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this. target)},removeListeners_:function(a){var b=this.options;b.attributes&&a.removeE ventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListener(" DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNodeIn serted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRemoved ",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.addListene rs_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.pus h(this)}},removeTransientObservers:function(){var a=this.transientObservedNodes; this.transientObservedNodes=[],a.forEach(function(a){this.removeListeners_(a);fo r(var b=p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.splice(c,1);break}},this)} ,handleEvent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DOMAtt rModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("att ributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===Mutati onEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.attribu teFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===a.at tributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMChara cterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,functi on(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});break;case" DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted":var h, i,d=a.relatedNode,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.re movedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.childL ist?e:void 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.MutationObser ver=g)}(this),window.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.onco mplete=b,this.inflight=0,this.pending={}};d.prototype={addNodes:function(a){this .inflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);t his.checkDone()},addNode:function(a){this.inflight++,this.require(a),this.checkD one()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||t his.fetch(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pending[a].p ush(b),!0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):( this.pending[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?a tob(g):decodeURIComponent(g),setTimeout(function(){this.receive(a,d,null,g)}.bin d(this),0)}else{var h=function(b,c,e){this.receive(a,d,b,c,e)}.bind(this);b.load (a,h)}},receive:function(a,b,c,d,e){this.cache[a]=d;var f=this.pending[a];e&&e!= =a&&(this.cache[e]=d,f=f.concat(this.pending[e]));for(var g,h=0,i=f.length;i>h&& (g=f[h]);h++)this.onload(e||a,g,d),this.tail();this.pending[a]=null,e&&e!==a&&(t his.pending[e]=null)},tail:function(){--this.inflight,this.checkDone()},checkDon e:function(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){re turn a.status>=200&&a.status<300||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.async),f.addEventListener("readystatechange",function (){if(4===f.readyState){var a=f.getResponseHeader("Location"),c=null;if(a)var c= "/"===a.substr(0,1)?location.origin+a:c;d.call(e,!b.ok(f)&&f,f.response||f.respo nseText,c)}}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).response Type="document"}},a.xhr=b,a.Loader=d}(window.HTMLImports),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 contain ed non-latin characters that were forced to latin. Some characters may be wrong. ",a)}return"data:text/javascript;base64,"+b}function d(a){return a.textContent+e (a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c="["+M ath.floor(1e3*(Math.random()+1))+"]",d=a.textContent.match(/Polymer\(['"]([^'"]* )/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourceURL="+b+"\n"}function f(a){va r b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,n. resolveUrlsInStyle(b),b}var g="import",h=a.flags,i=/Trident/.test(navigator.user Agent),j=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document ):document,k={documentSelectors:"link[rel="+g+"]",importsSelectors:["link[rel="+ g+"]","link[rel=stylesheet]","style","script:not([type])",'script[type="text/jav ascript"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseSty le"},parseNext:function(){var a=this.nextToParse();a&&this.parse(a)},parse:funct ion(a){if(this.isParsed(a))return void(h.parse&&console.log("[%s] is already par sed",a.localName));var b=this[this.map[a.localName]];b&&(this.markParsing(a),b.c all(this,a))},markParsing:function(a){h.parse&&console.log("parsing",a),this.par singElement=a},markParsingComplete:function(a){a.__importParsed=!0,a.__importEle ment&&(a.__importElement.__importParsed=!0),this.parsingElement=null,h.parse&&co nsole.log("completed",a)},invalidateParse:function(a){a&&a.__importLink&&(a.__im portParsed=a.__importLink.__importParsed=!1,this.parseSoon())},parseSoon:functio n(){this._parseSoon&&cancelAnimationFrame(this._parseDelay);var a=this;this._par seSoon=requestAnimationFrame(function(){a.parseNext()})},parseImport:function(a) {if(HTMLImports.__importsParsingHook&&HTMLImports.__importsParsingHook(a),a.impo rt.__importParsed=!0,this.markParsingComplete(a),a.dispatchEvent(a.__resource?ne w CustomEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pe nding)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this. parseNext()},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this. parseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this .parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document.head.ap pendChild(a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.mark ParsingComplete(a),c.parseNext()};if(a.addEventListener("load",d),a.addEventList ener("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.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:functi on(b){var d=document.createElement("script");d.__importElement=b,d.src=b.src?b.s rc:c(b),a.currentScript=b,this.trackElement(d,function(){d.parentNode.removeChil d(d),a.currentScript=null}),document.head.appendChild(d)},nextToParse:function() {return!this.parsingElement&&this.nextToParseInDoc(j)},nextToParseInDoc:function (a,c){for(var d,e=a.querySelectorAll(this.parseSelectorsForNode(a)),f=0,g=e.leng th;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.hasResource(d)?b(d)?this.n extToParseInDoc(d.import,d):d:void 0;return c},parseSelectorsForNode:function(a) {var b=a.ownerDocument||a;return b===j?this.documentSelectors:this.importsSelect ors},isParsed:function(a){return a.__importParsed},hasResource:function(a){retur n b(a)&&!a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^; ]*)(;)/g,n={resolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createEleme nt("a");return a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resol veUrlsInCssText:function(a,b){var c=this.replaceUrls(a,b,l);return c=this.replac eUrls(c,b,m)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){v ar f=d.replace(/["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=k ,a.path=n,a.isIE=i}(HTMLImports),function(a){function b(a){return c(a,q)}functio n c(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){v ar c=a;c instanceof Document||(c=document.implementation.createHTMLDocument(q)), c._URL=b;var d=c.createElement("base");d.setAttribute("href",b),c.baseURI||(c.ba seURI=b);var e=c.createElement("meta");return e.setAttribute("charset","utf-8"), c.head.appendChild(e),c.head.appendChild(d),a instanceof Document||(c.body.inner HTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateE lement.bootstrap(c),c}function e(a,b){b=b||r,g(function(){h(a,b)},b)}function f( a){return"complete"===a.readyState||a.readyState===y}function g(a,b){if(f(b))a&& a();else{var c=function(){("complete"===b.readyState||b.readyState===y)&&(b.remo veEventListener(z,c),g(a,b))};b.addEventListener(z,c)}}function h(a,b){function c(){f==g&&a&&a()}function d(){f++,c()}var e=b.querySelectorAll("link[rel=import] "),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addEven tListener("load",d),h.addEventListener("error",d));else c()}function i(a){return o?a.import&&"loading"!==a.import.readyState||a.__loaded:a.__importParsed}functi on j(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)k(b)&&l(b)}function k(a){retu rn"link"===a.localName&&"import"===a.rel}function l(a){var b=a.import;b?m({targe t:a}):(a.addEventListener("load",m),a.addEventListener("error",m))}function m(a) {a.target.__loaded=!0}var n="import"in document.createElement("link"),o=n,p=a.fl ags,q="import",r=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(documen t):document;if(o)var s={};else var t=(a.xhr,a.Loader),u=a.parser,s={documents:{} ,documentPreloadSelectors:"link[rel="+q+"]",importsPreloadSelectors:["link[rel=" +q+"]"].join(","),loadNode:function(a){v.addNode(a)},loadSubtree:function(a){var b=this.marshalNodes(a);v.addNodes(b)},marshalNodes:function(a){return a.querySe lectorAll(this.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b= a.ownerDocument||a;return b===r?this.documentPreloadSelectors:this.importsPreloa dSelectors},loaded:function(a,c,e){if(p.load&&console.log("loaded",a,c),c.__reso urce=e,b(c)){var f=this.documents[a];f||(f=d(e,a),f.__importLink=c,this.bootDocu ment(f),this.documents[a]=f),c.import=f}u.parseNext()},bootDocument:function(a){ this.loadSubtree(a),this.observe(a),u.parseNext()},loadedAll:function(){u.parseN ext()}},v=new t(s.loaded.bind(s),s.loadedAll.bind(s));var w={get:function(){retu rn HTMLImports.currentScript||document.currentScript},configurable:!0};if(Object .defineProperty(document,"_currentScript",w),Object.defineProperty(r,"_currentSc ript",w),!document.baseURI){var x={get:function(){return window.location.href},c onfigurable:!0};Object.defineProperty(document,"baseURI",x),Object.definePropert y(r,"baseURI",x)}var y=HTMLImports.isIE?"complete":"interactive",z="readystatech ange";o&&new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]) ;c++)b.addedNodes&&j(b.addedNodes)}).observe(document.head,{childList:!0}),a.has Native=n,a.useNative=o,a.importer=s,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=q,a. isImportLoaded=i,a.importLoader=v}(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.l ength&&c(b.addedNodes)}function c(a){for(var b,e,g=0,h=a.length;h>g&&(e=a[g]);g+ +)b=b||e.ownerDocument,d(e)&&f.loadNode(e),e.children&&e.children.length&&c(e.ch ildren)}function d(a){return 1===a.nodeType&&g.call(a,f.loadSelectorsForNode(a)) }function e(a){h.observe(a,{childList:!0,subtree:!0})}var f=(a.IMPORT_LINK_TYPE, a.importer),g=(a.parser,HTMLElement.prototype.matches||HTMLElement.prototype.mat chesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype .mozMatchesSelector||HTMLElement.prototype.msMatchesSelector),h=new MutationObse rver(b);a.observe=e,f.observe=e}(HTMLImports),function(){function a(){HTMLImport s.importer.bootDocument(b)}"function"!=typeof window.CustomEvent&&(window.Custom Event=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.Shadow DOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports .whenImportsReady(function(){HTMLImports.ready=!0,HTMLImports.readyTime=(new Dat e).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))} ),HTMLImports.useNative||("complete"===document.readyState||"interactive"===docu ment.readyState&&!window.attachEvent?a():document.addEventListener("DOMContentLo aded",a))}(),window.CustomElements=window.CustomElements||{flags:{}},function(a) {function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeT ype!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextE lementSibling;return null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.o lderShadowRoot}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){r eturn e(a)?!0:void 0})}function g(a){return e(a)||f(a)}function h(b){if(!b.__upg raded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName ,d=a.registry[c];if(d)return A.dom&&console.group("upgrade:",b.localName),a.upgr ade(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.Platform&&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&&conso le.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__in serted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.warn("inserted:",a.loca lName,"insert/remove count:",a.__inserted):a.attachedCallback&&(A.dom&&console.l og("inserted:",a.localName),a.attachedCallback())),A.dom&&console.groupEnd())}fu nction n(a){o(a),d(a,function(a){o(a)})}function o(a){C?j(function(){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.__inserted=(a.__inserted| |0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?A.dom&&console.warn("remov ed:",a.localName,"insert/remove count:",a.__inserted):a.detachedCallback&&a.deta chedCallback()),A.dom&&console.groupEnd())}function q(a){return window.ShadowDOM Polyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function r(a){for(var b=a,c=q(docum ent);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 shadow-root for: ",a.loca lName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}function t(a){a.__wat ched||(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.addedNodes[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("mutations (%d) [%s]",a. length,d||"")}a.forEach(function(a){"childList"===a.type&&(G(a.addedNodes,functi on(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.localName&&n(a)}))}),A. dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()}function w(a){F.obse rve(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.group End()}function z(a){a=q(a);for(var b,c=a.querySelectorAll("link[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.IMPORT_LINK_TYPE:"none",C =!window.MutationObserver||window.MutationObserver===window.JsMutationObserver;a .hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver(u),G=Array.prototyp e.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_TYPE=B,a.watchShadow= s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f,a.insertedNode=i,a.o bserveDocument=x,a.upgradeDocument=y,a.takeRecords=v}(window.CustomElements),fun ction(a){function b(b,g){var h=g||{};if(!b)throw new Error("document.registerEle ment: first argument `name` must not be empty");if(b.indexOf("-")<0)throw new Er ror("document.registerElement: first argument ('name') must contain a dash ('-') . Argument provided was '"+String(b)+"'.");if(c(b))throw new Error("Failed to ex ecute 'registerElement' on 'Document': Registration failed for type '"+String(b) +"'. The type name is invalid.");if(n(b))throw new Error("DuplicateDefinitionErr or: a type with name '"+String(b)+"' is already registered");if(!h.prototype)thr ow new Error("Options missing required prototype property");
16 }function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}function d(a){var b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,c=a.extends ,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a.__name)}func tion f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){var c=docum ent.createElement(a.tag),d=Object.getPrototypeOf(c);d===a.prototype&&(b=d)}for(v ar e,f=a.prototype;f&&f!==b;)e=Object.getPrototypeOf(f),f.__proto__=e,f=e;a.nati ve=b}}function g(a){return h(B(a.tag),a)}function h(b,c){return c.is&&b.setAttri bute("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.getO wnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwn PropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.cre atedCallback&&a.createdCallback()}function l(a){if(!a.setAttribute._polyfilled){ var b=a.setAttribute;a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.re moveAttribute;a.removeAttribute=function(a){m.call(this,a,null,c)},a.setAttribut e._polyfilled=!0}}function m(a,b,c){a=a.toLowerCase();var d=this.getAttribute(a) ;c.apply(this,arguments);var e=this.getAttribute(a);this.attributeChangedCallbac k&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){return a?z[a.toLowe rCase()]: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);i f(c){if(a==c.tag&&b==c.is)return new 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.localN ame)return h(a,c);if(!b&&!c.extends)return h(a,c)}}}function t(b){var c=D.call(t his,b);return a.upgradeAll(c),c}a||(a=window.CustomElements={flags:{}});var u=a. flags,v=Boolean(document.registerElement),w=!u.register&&v&&!window.ShadowDOMPol yfill&&(!window.HTMLImports||HTMLImports.useNative);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.cache=Object.create(null),this.map=Object.create(null),this.re quests=0,this.regex=a}var c=a.endOfMicrotask;b.prototype={extractUrls:function(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),e=c .bind(null,this.map);this.fetch(d,e)},fetch:function(a,b){var c=a.length;if(!c)r eturn b();for(var d,e,f,g=function(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url,e= this.cache[f],e||(e=this.xhr(f),e.match=d,this.cache[f]=e),e.wait(g)},handleXhr: function(a){var b=a.match,c=b.url,d=a.response||a.responseText||"";this.map[c]=d ,this.fetch(this.extractUrls(d,c),a.resolve)},xhr:function(a){this.requests++;va r b=new XMLHttpRequest;return b.open("GET",a,!0),b.send(),b.onerror=b.onload=thi s.handleXhr.bind(this,b),b.pending=[],b.resolve=function(){for(var a=b.pending,c =0;c<a.length;c++)a[c]();b.pending=null},b.wait=function(a){b.pending?b.pending. push(a):c(a)},b}},a.Loader=b}(window.Platform),function(a){function b(){this.loa der=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:func tion(a,b,c){var d=a.textContent,e=function(b){a.textContent=b,c(a)};this.resolve (d,b,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,!0),g=this.flatten(g,b ,d),a=a.replace(e.matched,g);return a},loadStyles:function(a,b,c){function d(){f ++,f===g&&c&&c()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h]);h++)this.resolveNode (e,b,d)}};var e=new b;a.styleResolver=e}(window.Platform),function(){"use strict ";function a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.get ElementById?a:null}function 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 nu ll==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.removeAttribut e(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(nav igator.userAgent))return"change";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){function e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a), Platform.performMicrotaskCheckpoint()}var f=i(a);return a.addEventListener(f,e), {close:function(){a.removeEventListener(f,e),c.close()},observable_:c}}function n(a){return Boolean(a)}function 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.querySelectorAll('input[type="radio"][name="'+b.name+'" ]');return s(d,function(a){return a!=b&&!a.form})}function p(a){"INPUT"===a.tagN ame&&"radio"===a.type&&o(a).forEach(function(a){var b=a.bindings_.checked;b&&b.o bservable_.setValue(!1)})}function q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindings_&&g.bindings_.value&&(c=g,e=c.bindings_.value,f=c. value),a.value=d(b),c&&c.value!=f&&(e.observable_.setValue(c.value),e.observable _.discardChanges(),Platform.performMicrotaskCheckpoint())}function r(a){return f unction(b){q(a,b)}}var s=Array.prototype.filter.call.bind(Array.prototype.filter );Node.prototype.bind=function(a,b){console.error("Unhandled binding to Node: ", this,a,b)},Node.prototype.bindFinished=function(){};var t=c;Object.definePropert y(Platform,"enableBindingsReflection",{get:function(){return t===b},set:function (a){return t=a?b:c,a},configurable:!0}),Text.prototype.bind=function(a,b,c){if(" textContent"!==a)return Node.prototype.bind.call(this,a,b,c);if(c)return e(this, b);var d=b;return e(this,d.open(f(this))),t(this,a,d)},Element.prototype.bind=fu nction(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(t his,a,e)};var u;!function(){var a=document.createElement("div"),b=a.appendChild( document.createElement("input"));b.setAttribute("type","checkbox");var c,d=0;b.a ddEventListener("click",function(){d++,c=c||"click"}),b.addEventListener("change ",function(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.init MouseEvent("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.remo veAttribute(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)},H TMLTextAreaElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElem ent.prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return j( this,"value",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(this, "value",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if("v alue"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAttri bute("value"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.ope n(r(this))),t(this,a,e)},HTMLSelectElement.prototype.bind=function(a,c,d){if("se lectedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a)return HT MLElement.prototype.bind.call(this,a,c,d);if(this.removeAttribute(a),d)return j( this,a,c);var e=c,f=m(this,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f)}} (this),function(a){"use strict";function b(a){if(!a)throw new Error("Assertion f ailed")}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.templ ateCreator_;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:/ /www.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(L[a.tagName ]&&a.hasAttribute("template"))}function h(a){return void 0===a.isTemplate_&&(a.i sTemplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.qu erySelectorAll(N);h(a)&&b(a),G(c,b)}function j(a){function b(a){HTMLTemplateElem ent.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. templateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("");c.la stChild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}function m(a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.stagingDocument_){b.st agingDocument_=b.implementation.createHTMLDocument(""),b.stagingDocument_.isStag ingDocument=!0;var c=b.stagingDocument_.createElement("base");c.href=document.ba seURI,b.stagingDocument_.head.appendChild(c),b.stagingDocument_.stagingDocument_ =b.stagingDocument_}a.stagingDocument_=b.stagingDocument_}return a.stagingDocume nt_}function n(a){var b=a.ownerDocument.createElement("template");a.parentNode.i nsertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];K[e.name]& &("template"!==e.name&&b.setAttribute(e.name,e.value),a.removeAttribute(e.name)) }return b}function o(a){var b=a.ownerDocument.createElement("template");a.parent Node.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];b.se tAttribute(e.name,e.value),a.removeAttribute(e.name)}return a.parentNode.removeC hild(a),b}function p(a,b,c){var d=a.content;if(c)return void d.appendChild(b);fo r(var e;e=b.firstChild;)d.appendChild(e)}function q(a){P?a.__proto__=HTMLTemplat eElement.prototype:k(a,HTMLTemplateElement.prototype)}function r(a){a.setModelFn _||(a.setModelFn_=function(){a.setModelFnScheduled_=!1;var b=z(a,a.delegate_&&a. delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelF nScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,b,c,d){if(a&&a.leng th){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{",h),k=a.inde xOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexO f(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?P ath.get(n):null),e.push(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e.len gth,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.combinat or(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)}function u(a,b,c,d){var e=b[3],f=e?e(d,c, !1):new PathObserver(d,b[2]);return b.isSimplePath?f:new ObserverTransform(f,b.c ombinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOnePat h)return u(a,b,c,d);for(var e=new CompoundObserver,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.addPath(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(a.bindFinished() ,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)}functio n y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e++){for(var f=a.attributes [e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a)||g!==J&&g!==H&&g!== I){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isTemplate=!0,d.if=x(a,J,c), d.bind=x(a,H,c),d.repeat=x(a,I,c),!d.if||d.bind||d.repeat||(d.bind=s("{{}}",H,a, c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NODE)return y(a,b);if(a.node Type===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b);if(c)return["textConten t",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.appendChild(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.setDelegate_(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){var b=a.id_;return b|| (b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=b.bindingMaps[c];return d ||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var d=a.bindingMap_;return d| |(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this.closed=!1,this.templateE lement_=a,this.instances=[],this.deps=void 0,this.iteratedValue=[],this.presentV alue=void 0,this.arrayObserver=void 0}var F,G=Array.prototype.forEach.call.bind( Array.prototype.forEach);a.Map&&"function"==typeof a.Map.prototype.forEach?F=a.M ap:(F=function(){this.keys=[],this.values=[]},F.prototype={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.values.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);return 0>b?!1:(this.keys.splic e(b,1),this.values.splice(b,1),!0)},forEach:function(a,b){for(var c=0;c<this.key s.length;c++)a.call(b||this,this.values[c],this.keys[c],this)}});"function"!=typ eof document.contains&&(Document.prototype.contains=function(a){return a===this| |a.parentNode===this?!0:this.documentElement.contains(a)});var H="bind",I="repea t",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0},L={THEAD:!0,TBODY:!0,TFOOT:!0 ,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},M="undef ined"!=typeof HTMLTemplateElement;M&&!function(){var a=document.createElement("t emplate"),b=a.content.ownerDocument,c=b.appendChild(b.createElement("html")),d=c .appendChild(b.createElement("head")),e=b.createElement("base");e.href=document. baseURI,d.appendChild(e)}();var N="template, "+Object.keys(L).map(function(a){re turn a.toLowerCase()+"[template]"}).join(", ");document.addEventListener("DOMCon tentLoaded",function(){j(document),Platform.performMicrotaskCheckpoint()},!1),M| |(a.HTMLTemplateElement=function(){throw TypeError("Illegal constructor")});var O,P="__proto__"in{};"function"==typeof MutationObserver&&(O=new MutationObserver (function(a){for(var b=0;b<a.length;b++)a[b].target.refChanged_()})),HTMLTemplat eElement.decorate=function(a,c){if(a.templateIsDecorated_)return!1;var d=a;d.tem plateIsDecorated_=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||(g(d)?(b(!c),d=n(a),d.tem plateIsDecorated_=!0,h=M,m=!0):e(d)&&(d=o(a),d.templateIsDecorated_=!0,h=M)),!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.bootstrap=j;var Q=a.HTMLUnkn ownElement||HTMLElement,R={get:function(){return this.content_},enumerable:!0,co nfigurable:!0};M||(HTMLTemplateElement.prototype=Object.create(Q.prototype),Obje ct.defineProperty(HTMLTemplateElement.prototype,"content",R)),k(HTMLTemplateElem ent.prototype,{bind:function(a,b,c){if("ref"!=a)return Element.prototype.bind.ca ll(this,a,b,c);var d=this,e=c?b:b.open(function(a){d.setAttribute("ref",a),d.ref Changed_()});return this.setAttribute("ref",e),this.refChanged_(),c?void 0:(this .bindings_?this.bindings_.ref=b:this.bindings_={ref:b},b)},processBindingDirecti ves_:function(a){return this.iterator_&&this.iterator_.closeDeps(),a.if||a.bind| |a.repeat?(this.iterator_||(this.iterator_=new E(this)),this.iterator_.updateDep endencies(a,this.model_),O&&O.observe(this,{attributes:!0,attributeFilter:["ref" ]}),this.iterator_):void(this.iterator_&&(this.iterator_.close(),this.iterator_= void 0))},createInstance:function(a,b,c){b?c=this.newDelegate_(b):c||(c=this.del egate_),this.refContent_||(this.refContent_=this.ref_.content);var d=this.refCon tent_;if(null===d.firstChild)return T;var e=D(d,c),f=m(this),g=f.createDocumentF ragment();g.templateCreator_=this,g.protoContent_=d,g.bindings_=[],g.terminator_ =null;for(var h=g.templateInstance_={firstNode:null,lastNode:null,model:a},i=0,j =!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibling&&(j=!0);var l=A(k,g,f ,e.children[i++],a,c,g.bindings_);l.templateInstance_=h,j&&(g.terminator_=l)}ret urn h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.templateCreator_=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},ref Changed_:function(){this.iterator_&&this.refContent_!==this.ref_.content&&(this. refContent_=void 0,this.iterator_.valueChanged(),this.iterator_.updateIteratedVa lue())},clear:function(){this.model_=void 0,this.delegate_=void 0,this.bindings_ &&this.bindings_.ref&&this.bindings_.ref.close(),this.refContent_=void 0,this.it erator_&&(this.iterator_.valueChanged(),this.iterator_.close(),this.iterator_=vo id 0)},setDelegate_:function(a){this.delegate_=a,this.bindingMap_=void 0,this.it erator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instan ceModelFn_=void 0)},newDelegate_:function(a){function b(b){var c=a&&a[b];if("fun ction"==typeof c)return function(){return c.apply(a,arguments)}}if(a)return{bind ingMaps:{},raw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel:b("prep areInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePositionChan ged")}},set bindingDelegate(a){if(this.delegate_)throw Error("Template must be c leared before a new bindingDelegate can be assigned");this.setDelegate_(this.new Delegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"));if(a||(a=this.i nstanceRef_),!a)return this;var b=a.ref_;return b?b:a}});var S=1;Object.definePr operty(Node.prototype,"templateInstance",{get:function(){var a=this.templateInst ance_;return a?a:this.parentNode?this.parentNode.templateInstance:void 0}});var T=document.createDocumentFragment();T.bindings_=[],T.terminator_=null,E.prototyp e={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close(), a.oneTime===!1&&a.value.close())},updateDependencies:function(a,b){this.closeDep s();var c=this.deps={},d=this.templateElement_;if(a.if){if(c.hasIf=!0,c.ifOneTim e=a.if.onlyOneTime,c.ifValue=v(J,a.if,d,b),c.ifOneTime&&!c.ifValue)return void t his.updateIteratedValue();c.ifOneTime||c.ifValue.open(this.updateIteratedValue,t his)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(I,a.repeat,d ,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,a.bind,d,b)),c.oneTim e||c.value.open(this.updateIteratedValue,this),this.updateIteratedValue()},updat eIteratedValue:function(){if(this.deps.hasIf){var a=this.deps.ifValue;if(this.de ps.ifOneTime||(a=a.discardChanges()),!a)return void this.valueChanged()}var b=th is.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.valueChanged (b,c)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedValu e&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObserve r(this.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.hand leSplices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue))) },getLastInstanceNode:function(a){if(-1==a)return this.templateElement_;var b=th is.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.iterato r_;return d?d.getLastTemplateNode():c},getLastTemplateNode:function(){return thi s.getLastInstanceNode(this.instances.length-1)},insertInstanceAt:function(a,b){v ar c=this.getLastInstanceNode(a-1),d=this.templateElement_.parentNode;this.insta nces.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.t emplateElement_.parentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nextS ibling;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},getDelegateFn:funct ion(a){return a=a&&a(this.templateElement_),"function"==typeof a?a:null},handleS plices:function(a){if(!this.closed&&a.length){var b=this.templateElement_;if(!b. parentNode)return void this.close();ArrayObserver.applySplices(this.iteratedValu e,this.presentValue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this.i nstanceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.ins tancePositionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c&& c.prepareInstancePositionChanged));for(var d=new F,e=0,f=0;f<a.length;f++){for(v ar g=a[f],h=g.removed,i=0;i<h.length;i++){var j=h[i],k=this.extractInstanceAt(g. index+e);k!==T&&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?T:b.createInstance(j,void 0,c)),this.insertInstanceAt(l,k)}d.forEach(function( a){this.closeInstanceBindings(a)},this),this.instancePositionChangedFn_&&this.re portInstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.instances[a]; b!==T&&this.instancePositionChangedFn_(b.templateInstance_,a)},reportInstancesMo ved: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.addedCoun t;)this.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for( var f=this.instances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanceB indings:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},unobs erve:function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserv er=void 0)},close:function(){if(!this.closed){this.unobserve();for(var a=0;a<thi s.instances.length;a++)this.closeInstanceBindings(this.instances[a]);this.instan ces.length=0,this.closeDeps(),this.templateElement_.iterator_=void 0,this.closed =!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),function(a){function b( ){e||(e=!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Platfo rm.flush()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()})) }var c=document.createElement("style");c.textContent="template {display: none !i mportant;} /* 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.flu shPoll=setInterval(b,f)})}if(window.CustomElements&&!CustomElements.useNative){v ar g=Document.prototype.importNode;Document.prototype.importNode=function(a,b){v ar c=g.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b}(window.P latform); 16 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),d=Object.getPrototypeOf(c);d===a.prototype&&(b=d)}for (var e,f=a.prototype;f&&f!==b;)e=Object.getPrototypeOf(f),f.__proto__=e,f=e;a.na tive=b}}function g(a){return h(B(a.tag),a)}function h(b,c){return c.is&&b.setAtt ribute("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.__pro to__=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.ge tOwnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getO wnPropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.c reatedCallback&&a.createdCallback()}function l(a){if(!a.setAttribute._polyfilled ){var b=a.setAttribute;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.setAttrib ute._polyfilled=!0}}function m(a,b,c){a=a.toLowerCase();var d=this.getAttribute( a);c.apply(this,arguments);var e=this.getAttribute(a);this.attributeChangedCallb ack&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){return a?z[a.toLo werCase()]: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 new 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.ELEMEN T_NODE){var b=a.getAttribute("is"),c=n(b||a.localName);if(c){if(b&&c.tag==a.loca lName)return h(a,c);if(!b&&!c.extends)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.registerElement),w=!u.register&&v&&!window.ShadowDOMP olyfill&&(!window.HTMLImports||HTMLImports.useNative);if(w){var x=function(){};a .registry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upg radeSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a. takeRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","color-profile", "font-face","font-face-src","font-face-uri","font-face-format","font-face-name", "missing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.createElement. bind(document),C=document.createElementNS.bind(document),D=Node.prototype.cloneN ode;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.p rototype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reservedTagList=y,doc ument.register=document.registerElement,a.hasNative=v,a.useNative=w}(window.Cust omElements),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: "parseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelect orAll(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),CustomElements.upg radeDocument(a),CustomElements.observeDocument(a)}},parseLink:function(a){b(a)&& this.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.import)}},e=Arr ay.prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK _TYPE=c}(window.CustomElements),function(a){function b(){CustomElements.parser.p arse(document),CustomElements.upgradeDocument(document);var a=window.Platform&&P latform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(function(){CustomEle ments.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLImports&&(CustomEl ements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),document.dispatch Event(new CustomEvent("WebComponentsReady",{bubbles:!0})),window.HTMLImports&&(H TMLImports.__importsParsingHook=function(a){CustomElements.parser.parse(a.import )})})}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=function(a){ var b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"comple te"===document.readyState||a.flags.eager)b();else if("interactive"!==document.re adyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var c=window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded" ;window.addEventListener(c,b)}else b()}(window.CustomElements),function(){if(win dow.ShadowDOMPolyfill){var a=["upgradeAll","upgradeSubtree","observeDocument","u pgradeDocument"],b={};a.forEach(function(a){b[a]=CustomElements[a]}),a.forEach(f unction(a){CustomElements[a]=function(c){return b[a](wrap(c))}})}}(),function(a) {function b(a){this.cache=Object.create(null),this.map=Object.create(null),this. requests=0,this.regex=a}var c=a.endOfMicrotask;b.prototype={extractUrls:function (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),e =c.bind(null,this.map);this.fetch(d,e)},fetch:function(a,b){var c=a.length;if(!c )return b();for(var d,e,f,g=function(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url, e=this.cache[f],e||(e=this.xhr(f),e.match=d,this.cache[f]=e),e.wait(g)},handleXh r:function(a){var b=a.match,c=b.url,d=a.response||a.responseText||"";this.map[c] =d,this.fetch(this.extractUrls(d,c),a.resolve)},xhr:function(a){this.requests++; var b=new XMLHttpRequest;return b.open("GET",a,!0),b.send(),b.onerror=b.onload=t his.handleXhr.bind(this,b),b.pending=[],b.resolve=function(){for(var a=b.pending ,c=0;c<a.length;c++)a[c]();b.pending=null},b.wait=function(a){b.pending?b.pendin g.push(a):c(a)},b}},a.Loader=b}(window.Platform),function(a){function b(){this.l oader=new d(this.regex)}var c=a.urlResolver,d=a.Loader;b.prototype={regex:/@impo rt\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:fu nction(a,b,c){var d=a.textContent,e=function(b){a.textContent=b,c(a)};this.resol ve(d,b,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,!0),g=this.flatten(g ,b,d),a=a.replace(e.matched,g);return a},loadStyles:function(a,b,c){function d() {f++,f===g&&c&&c()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h]);h++)this.resolveNo de(e,b,d)}};var e=new b;a.styleResolver=e}(window.Platform),function(){"use stri ct";function a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.g etElementById?a:null}function 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.removeAttrib ute(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"selec t-multiple":case"select-one":return"change";case"range":if(/Trident|MSIE/.test(n avigator.userAgent))return"change";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){function e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a ),Platform.performMicrotaskCheckpoint()}var f=i(a);return a.addEventListener(f,e ),{close:function(){a.removeEventListener(f,e),c.close()},observable_:c}}functio n n(a){return Boolean(a)}function o(b){if(b.form)return s(b.form.elements,functi on(a){return a!=b&&"INPUT"==a.tagName&&"radio"==a.type&&a.name==b.name});var c=a (b);if(!c)return[];var d=c.querySelectorAll('input[type="radio"][name="'+b.name+ '"]');return s(d,function(a){return a!=b&&!a.form})}function p(a){"INPUT"===a.ta gName&&"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 instanceo f HTMLSelectElement&&g.bindings_&&g.bindings_.value&&(c=g,e=c.bindings_.value,f= c.value),a.value=d(b),c&&c.value!=f&&(e.observable_.setValue(c.value),e.observab le_.discardChanges(),Platform.performMicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var s=Array.prototype.filter.call.bind(Array.prototype.filt er);Node.prototype.bind=function(a,b){console.error("Unhandled binding to Node: ",this,a,b)},Node.prototype.bindFinished=function(){};var t=c;Object.definePrope rty(Platform,"enableBindingsReflection",{get:function(){return t===b},set:functi on(a){return t=a?b:c,a},configurable:!0}),Text.prototype.bind=function(a,b,c){if ("textContent"!==a)return Node.prototype.bind.call(this,a,b,c);if(c)return e(thi s,b);var d=b;return e(this,d.open(f(this))),t(this,a,d)},Element.prototype.bind= function(a,b,c){var d="?"==a[a.length-1];if(d&&(this.removeAttribute(a),a=a.slic e(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.appendChil d(document.createElement("input"));b.setAttribute("type","checkbox");var c,d=0;b .addEventListener("click",function(){d++,c=c||"click"}),b.addEventListener("chan ge",function(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.in itMouseEvent("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("valu e"!==a&&"checked"!==a)return HTMLElement.prototype.bind.call(this,a,c,e);this.re moveAttribute(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)} ,HTMLTextAreaElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLEl ement.prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return j(this,"value",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(thi s,"value",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if( "value"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAtt ribute("value"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.o pen(r(this))),t(this,a,e)},HTMLSelectElement.prototype.bind=function(a,c,d){if(" selectedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bind.call(this,a,c,d);if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(this,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f) }}(this),function(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a){for(var b;b=a.parentNode;)a=b;return a}function d(a,b){i f(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelect or(e):a.getElementById&&(d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.tem plateCreator_;return d}}function e(a){return"template"==a.tagName&&"http://www.w 3.org/2000/svg"==a.namespaceURI}function f(a){return"TEMPLATE"==a.tagName&&"http ://www.w3.org/1999/xhtml"==a.namespaceURI}function g(a){return Boolean(L[a.tagNa me]&&a.hasAttribute("template"))}function h(a){return void 0===a.isTemplate_&&(a .isTemplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a. querySelectorAll(N);h(a)&&b(a),G(c,b)}function j(a){function b(a){HTMLTemplateEl ement.decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.getOwnPropertyName s(b).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescript or(b,c))})}function l(a){var b=a.ownerDocument;if(!b.defaultView)return b;var c= b.templateContentsOwner_;if(!c){for(c=b.implementation.createHTMLDocument("");c. lastChild;)c.removeChild(c.lastChild);b.templateContentsOwner_=c}return c}functi on m(a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.stagingDocument_){b. stagingDocument_=b.implementation.createHTMLDocument(""),b.stagingDocument_.isSt agingDocument=!0;var c=b.stagingDocument_.createElement("base");c.href=document. baseURI,b.stagingDocument_.head.appendChild(c),b.stagingDocument_.stagingDocumen t_=b.stagingDocument_}a.stagingDocument_=b.stagingDocument_}return a.stagingDocu ment_}function n(a){var b=a.ownerDocument.createElement("template");a.parentNode .insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];K[e.name ]&&("template"!==e.name&&b.setAttribute(e.name,e.value),a.removeAttribute(e.name ))}return b}function o(a){var b=a.ownerDocument.createElement("template");a.pare ntNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];b. setAttribute(e.name,e.value),a.removeAttribute(e.name)}return a.parentNode.remov eChild(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)}function q(a){P?a.__proto__=HTMLTempl ateElement.prototype:k(a,HTMLTemplateElement.prototype)}function r(a){a.setModel Fn_||(a.setModelFn_=function(){a.setModelFnScheduled_=!1;var b=z(a,a.delegate_&& a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setMode lFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,b,c,d){if(a&&a.le ngth){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{",h),k=a.in dexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>g?-1:a.inde xOf(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.l ength,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combinat or=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.combin ator(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)}function u(a,b,c,d){var e=b[3],f=e?e(d, c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:new ObserverTransform(f,b .combinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOneP ath)return u(a,b,c,d);for(var e=new CompoundObserver,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.addPath(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(a.bindFinished (),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)}funct ion y(a,c){b(a);for(var d=[],e=0;e<a.attributes.length;e++){for(var f=a.attribut es[e],g=f.name,i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a)||g!==J&&g!==H&&g! ==I){var j=s(i,g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isTemplate=!0,d.if=x(a,J,c ),d.bind=x(a,H,c),d.repeat=x(a,I,c),!d.if||d.bind||d.repeat||(d.bind=s("{{}}",H, a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NODE)return y(a,b);if(a.no deType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b);if(c)return["textCont ent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.appendChild(c.importNode( a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.children[i++],e,f,g);retur n d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.setDelegate_(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){var b=a.id_;return b ||(b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=b.bindingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var d=a.bindingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this.closed=!1,this.templat eElement_=a,this.instances=[],this.deps=void 0,this.iteratedValue=[],this.presen tValue=void 0,this.arrayObserver=void 0}var F,G=Array.prototype.forEach.call.bin d(Array.prototype.forEach);a.Map&&"function"==typeof a.Map.prototype.forEach?F=a .Map:(F=function(){this.keys=[],this.values=[]},F.prototype={set:function(a,b){v ar c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.values.push(b)):this.value s[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);return 0>b?!1:(this.keys.spl ice(b,1),this.values.splice(b,1),!0)},forEach:function(a,b){for(var c=0;c<this.k eys.length;c++)a.call(b||this,this.values[c],this.keys[c],this)}});"function"!=t ypeof document.contains&&(Document.prototype.contains=function(a){return a===thi s||a.parentNode===this?!0:this.documentElement.contains(a)});var H="bind",I="rep eat",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0},L={THEAD:!0,TBODY:!0,TFOOT: !0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},M="und efined"!=typeof HTMLTemplateElement;M&&!function(){var a=document.createElement( "template"),b=a.content.ownerDocument,c=b.appendChild(b.createElement("html")),d =c.appendChild(b.createElement("head")),e=b.createElement("base");e.href=documen t.baseURI,d.appendChild(e)}();var N="template, "+Object.keys(L).map(function(a){ return a.toLowerCase()+"[template]"}).join(", ");document.addEventListener("DOMC ontentLoaded",function(){j(document),Platform.performMicrotaskCheckpoint()},!1), M||(a.HTMLTemplateElement=function(){throw TypeError("Illegal constructor")});va r O,P="__proto__"in{};"function"==typeof MutationObserver&&(O=new MutationObserv er(function(a){for(var b=0;b<a.length;b++)a[b].target.refChanged_()})),HTMLTempl ateElement.decorate=function(a,c){if(a.templateIsDecorated_)return!1;var d=a;d.t emplateIsDecorated_=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||(g(d)?(b(!c),d=n(a),d.t emplateIsDecorated_=!0,h=M,m=!0):e(d)&&(d=o(a),d.templateIsDecorated_=!0,h=M)),! 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.bootstrap=j;var Q=a.HTMLUn knownElement||HTMLElement,R={get:function(){return this.content_},enumerable:!0, configurable:!0};M||(HTMLTemplateElement.prototype=Object.create(Q.prototype),Ob ject.defineProperty(HTMLTemplateElement.prototype,"content",R)),k(HTMLTemplateEl ement.prototype,{bind:function(a,b,c){if("ref"!=a)return Element.prototype.bind. call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d.setAttribute("ref",a),d.r efChanged_()});return this.setAttribute("ref",e),this.refChanged_(),c?void 0:(th is.bindings_?this.bindings_.ref=b:this.bindings_={ref:b},b)},processBindingDirec tives_:function(a){return this.iterator_&&this.iterator_.closeDeps(),a.if||a.bin d||a.repeat?(this.iterator_||(this.iterator_=new E(this)),this.iterator_.updateD ependencies(a,this.model_),O&&O.observe(this,{attributes:!0,attributeFilter:["re f"]}),this.iterator_):void(this.iterator_&&(this.iterator_.close(),this.iterator _=void 0))},createInstance:function(a,b,c){b?c=this.newDelegate_(b):c||(c=this.d elegate_),this.refContent_||(this.refContent_=this.ref_.content);var d=this.refC ontent_;if(null===d.firstChild)return T;var e=D(d,c),f=m(this),g=f.createDocumen tFragment();g.templateCreator_=this,g.protoContent_=d,g.bindings_=[],g.terminato r_=null;for(var h=g.templateInstance_={firstNode:null,lastNode:null,model:a},i=0 ,j=!1,k=d.firstChild;k;k=k.nextSibling){null===k.nextSibling&&(j=!0);var l=A(k,g ,f,e.children[i++],a,c,g.bindings_);l.templateInstance_=h,j&&(g.terminator_=l)}r eturn h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.templateCreator_=void 0, g.protoContent_=void 0,g},get model(){return this.model_},set model(a){this.mode l_=a,r(this)},get bindingDelegate(){return this.delegate_&&this.delegate_.raw},r efChanged_:function(){this.iterator_&&this.refContent_!==this.ref_.content&&(thi s.refContent_=void 0,this.iterator_.valueChanged(),this.iterator_.updateIterated Value())},clear:function(){this.model_=void 0,this.delegate_=void 0,this.binding s_&&this.bindings_.ref&&this.bindings_.ref.close(),this.refContent_=void 0,this. iterator_&&(this.iterator_.valueChanged(),this.iterator_.close(),this.iterator_= void 0)},setDelegate_:function(a){this.delegate_=a,this.bindingMap_=void 0,this. iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.inst anceModelFn_=void 0)},newDelegate_:function(a){function b(b){var c=a&&a[b];if("f unction"==typeof c)return function(){return c.apply(a,arguments)}}if(a)return{bi ndingMaps:{},raw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel:b("pr epareInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePositionCh anged")}},set bindingDelegate(a){if(this.delegate_)throw Error("Template must be cleared before a new bindingDelegate can be assigned");this.setDelegate_(this.n ewDelegate_(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}});var S=1;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 T=document.createDocumentFragment();T.bindings_=[],T.terminator_=null,E.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(J,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(I,a.repeat ,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,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 F,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!==T&&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?T: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!==T&&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){function b(){e||(e=!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Plat form.flush()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()} ))}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.f lushPoll=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}(window .Platform);
17 //# sourceMappingURL=platform.js.map 17 //# sourceMappingURL=platform.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698