OLD | NEW |
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.4-02a0f66 | 10 // @version: 0.3.5-fe549bc |
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");for(var c=0;c<a.length;c+
+)this.push(String(a[c]));hasEval&&this.length&&(this.getValueFrom=this.compiled
GetValueFromFn())}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=parseP
ath(a);if(!c)return invalidPath;var b=new Path(c,constructorIsPrivate);return pa
thCache[a]=b,b}function formatAccessor(a){return isIndex(a)?"["+a+"]":'["'+a.rep
lace(/"/g,'\\"')+'"]'}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLES>
b&&a.check_();)b++;return global.testingExposeCycleCount&&(global.dirtyCheckCycl
eCount=b),b>0}function objectIsEmpty(a){for(var b in a)return!1;return!0}functio
n diffIsEmpty(a){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&object
IsEmpty(a.changed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};for(
var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=v
oid 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b.
length&&(e.length=a.length),{added:c,removed:d,changed:e}}function runEOMTasks()
{if(!eomTasks.length)return!1;for(var a=0;a<eomTasks.length;a++)eomTasks[a]();re
turn eomTasks.length=0,!0}function newObservedObject(){function a(a){b&&b.state_
===OPENED&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw
Error("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},obser
ve:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(
b){d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.uno
bserve(c,a),observedObjectCache.push(this)}}}function getObservedObject(a,b,c){v
ar d=observedObjectCache.pop()||newObservedObject();return d.open(a),d.observe(b
,c),d}function newObservedSet(){function a(b,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]||"setPrototy
pe"===c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;
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,objects
:h,open:function(b,c){d||(d=c,e={}),g.push(b),f++,b.iterateObjects_(a)},close:fu
nction(){if(f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobserve(h[a],c),Obse
rver.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,observedSetCache.
push(this)}}};return i}function getObservedSet(a,b){return lastObservedSet&&last
ObservedSet.object===b||(lastObservedSet=observedSetCache.pop()||newObservedSet(
),lastObservedSet.object=b),lastObservedSet.open(a,b),lastObservedSet}function O
bserver(){this.state_=UNOPENED,this.callback_=void 0,this.target_=void 0,this.di
rectObserver_=void 0,this.value_=void 0,this.id_=nextObserverId++}function addTo
All(a){Observer._allObserversCount++,collectObservers&&allObservers.push(a)}func
tion removeFromAll(){Observer._allObserversCount--}function ObjectObserver(a){Ob
server.call(this),this.value_=a,this.oldObject_=void 0}function ArrayObserver(a)
{if(!Array.isArray(a))throw Error("Provided object is not an Array");ObjectObser
ver.call(this,a)}function PathObserver(a,b){Observer.call(this),this.object_=a,t
his.path_=getPath(b),this.directObserver_=void 0}function CompoundObserver(a){Ob
server.call(this),this.reportChangesOnOpen_=a,this.value_=[],this.directObserver
_=void 0,this.observed_=[]}function identFn(a){return a}function ObserverTransfo
rm(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.ob
servable_=a,this.getValueFn_=b||identFn,this.setValueFn_=c||identFn,this.dontPas
sThroughSet_=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.name]
=g.oldValue),"update"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],dele
te c[g.name]):e[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.
error("Unknown changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h
]=a[h];for(var h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d||h in e)){
var j=a[h];c[h]!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}function newSp
lice(a,b,c){return{index:a,removed:b,addedCount:c}}function ArraySplice(){}funct
ion calcSplices(a,b,c,d,e,f){return arraySplice.calcSplices(a,b,c,d,e,f)}functio
n 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.lengt
h;h++){var i=a[h];if(i.index+=g,!f){var j=intersect(e.index,e.index+e.removed.le
ngth,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.len
gth-j;if(e.addedCount||k){var c=i.removed;if(e.index<i.index){var l=e.removed.sl
ice(0,i.index-e.index);Array.prototype.push.apply(l,c),c=l}if(e.index+e.removed.
length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index)
;Array.prototype.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}
else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e
.removed.length;i.index+=n,g+=n}}}f||a.push(e)}function createInitialSplices(a,b
){for(var c=[],d=0;d<b.length;d++){var e=b[d];switch(e.type){case"splice":mergeS
plice(c,e.index,e.removed.slice(),e.addedCount);break;case"add":case"update":cas
e"delete":if(!isIndex(e.name))continue;var f=toNumber(e.name);if(0>f)continue;me
rgeSplice(c,f,[e.oldValue],1);break;default:console.error("Unexpected record typ
e: "+JSON.stringify(e))}}return c}function projectArraySplices(a,b){var c=[];ret
urn createInitialSplices(a,b).forEach(function(b){return 1==b.addedCount&&1==b.r
emoved.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(calcSpl
ices(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var hasO
bserve=detectObjectObserve(),hasEval=detectEval(),numberIsNaN=global.Number.isNa
N||function(a){return"number"==typeof a&&global.isNaN(a)},createObject="__proto_
_"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){Object
.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c},identStart="[$_a-
zA-Z]",identPart="[$_a-zA-Z0-9]",identRegExp=new RegExp("^"+identStart+"+"+ident
Part+"*$"),pathStateMachine={beforePath:{ws:["beforePath"],ident:["inIdent","app
end"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["befor
eIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"
],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","
append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","pu
sh"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["
beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSin
gleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterE
lement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["
inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'"
:["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuote
:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterEle
ment:{ws:["afterElement"],"]":["inPath","push"]}},constructorIsPrivate={},pathCa
che={};Path.get=getPath,Path.prototype=createObject({__proto__:[],valid:!0,toStr
ing: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<this
.length;b++){if(null==a)return;a=a[this[b]]}return a},iterateObjects:function(a,
b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]),!isObject(a))return;b(a
,this[0])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if (obj != nu
ll";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=isIdent(c)?"."+c:formatAccess
or(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 Funct
ion("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[t
his[c]]=b,!0):!1}});var invalidPath=new Path("",constructorIsPrivate);invalidPat
h.valid=!1,invalidPath.getValueFrom=invalidPath.setValueFrom=function(){};var MA
X_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],runEOM=hasObserve?function(){var a={pingPon
g:!0},b=!1;return Object.observe(a,function(){runEOMTasks(),b=!1}),function(c){e
omTasks.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(){return function(
a){eomTasks.push(a)}}(),observedObjectCache=[],observedSetCache=[],lastObservedS
et,UNOPENED=0,OPENED=1,CLOSED=2,RESETTING=3,nextObserverId=1;Observer.prototype=
{open:function(a,b){if(this.state_!=UNOPENED)throw Error("Observer has already b
een opened.");return addToAll(this),this.callback_=a,this.target_=b,this.connect
_(),this.state_=OPENED,this.value_},close:function(){this.state_==OPENED&&(remov
eFromAll(this),this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.
target_=void 0,this.state_=CLOSED)},deliver:function(){this.state_==OPENED&&dirt
yCheck(this)},report_:function(a){try{this.callback_.apply(this.target_,a)}catch
(b){Observer._errorThrownDuringCallback=!0,console.error("Exception caught durin
g observer callback: "+(b.stack||b))}},discardChanges:function(){return this.che
ck_(void 0,!0),this.value_}};var collectObservers=!hasObserve,allObservers;Obser
ver._allObserversCount=0,collectObservers&&(allObservers=[]);var runningMicrotas
kCheckpoint=!1,hasDebugForceFullDelivery=hasObserve&&hasEval&&function(){try{ret
urn eval("%RunMicrotasks()"),!0}catch(ex){return!1}}();global.Platform=global.Pl
atform||{},global.Platform.performMicrotaskCheckpoint=function(){if(!runningMicr
otaskCheckpoint){if(hasDebugForceFullDelivery)return void eval("%RunMicrotasks()
");if(collectObservers){runningMicrotaskCheckpoint=!0;var cycles=0,anyChanged,to
Check;do{cycles++,toCheck=allObservers,allObservers=[],anyChanged=!1;for(var i=0
;i<toCheck.length;i++){var observer=toCheck[i];observer.state_==OPENED&&(observe
r.check_()&&(anyChanged=!0),allObservers.push(observer))}runEOMTasks()&&(anyChan
ged=!0)}while(MAX_DIRTY_CHECK_CYCLES>cycles&&anyChanged);global.testingExposeCyc
leCount&&(global.dirtyCheckCycleCount=cycles),runningMicrotaskCheckpoint=!1}}},c
ollectObservers&&(global.Platform.clearObservers=function(){allObservers=[]}),Ob
jectObserver.prototype=createObject({__proto__:Observer.prototype,arrayObserve:!
1,connect_:function(){hasObserve?this.directObserver_=getObservedObject(this,thi
s.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyOb
ject:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Ar
ray.isArray(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.
oldObject_,b=diffObjectFromOldObject(this.value_,this.oldObject_);return diffIsE
mpty(b)?!1:(hasObserve||(this.oldObject_=this.copyObject(this.value_)),this.repo
rt_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}]),!0)},dis
connect_:function(){hasObserve?(this.directObserver_.close(),this.directObserver
_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==OPENED&&(hasOb
serve?this.directObserver_.deliver(!1):dirtyCheck(this))},discardChanges:functio
n(){return this.directObserver_?this.directObserver_.deliver(!0):this.oldObject_
=this.copyObject(this.value_),this.value_}}),ArrayObserver.prototype=createObjec
t({__proto__:ObjectObserver.prototype,arrayObserve:!0,copyObject:function(a){ret
urn a.slice()},check_:function(a){var b;if(hasObserve){if(!a)return!1;b=projectA
rraySplices(this.value_,a)}else b=calcSplices(this.value_,0,this.value_.length,t
his.oldObject_,0,this.oldObject_.length);return b&&b.length?(hasObserve||(this.o
ldObject_=this.copyObject(this.value_)),this.report_([b]),!0):!1}}),ArrayObserve
r.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.index,c.remove
d.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prototype.spl
ice.apply(a,d)})},PathObserver.prototype=createObject({__proto__:Observer.protot
ype,get path(){return this.path_},connect_:function(){hasObserve&&(this.directOb
server_=getObservedSet(this,this.object_)),this.check_(void 0,!0)},disconnect_:f
unction(){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(t
his),this.directObserver_=void 0)},iterateObjects_:function(a){this.path_.iterat
eObjects(this.object_,a)},check_:function(a,b){var c=this.value_;return this.val
ue_=this.path_.getValueFrom(this.object_),b||areSameValue(this.value_,c)?!1:(thi
s.report_([this.value_,c,this]),!0)},setValue:function(a){this.path_&&this.path_
.setValueFrom(this.object_,a)}});var observerSentinel={};CompoundObserver.protot
ype=createObject({__proto__:Observer.prototype,connect_:function(){if(hasObserve
){for(var a,b=!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==obs
erverSentinel){b=!0;break}b&&(this.directObserver_=getObservedSet(this,a))}this.
check_(void 0,!this.reportChangesOnOpen_)},disconnect_:function(){for(var a=0;a<
this.observed_.length;a+=2)this.observed_[a]===observerSentinel&&this.observed_[
a+1].close();this.observed_.length=0,this.value_.length=0,this.directObserver_&&
(this.directObserver_.close(this),this.directObserver_=void 0)},addPath:function
(a,b){if(this.state_!=UNOPENED&&this.state_!=RESETTING)throw Error("Cannot add p
aths once started.");var b=getPath(b);if(this.observed_.push(a,b),this.reportCha
ngesOnOpen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},
addObserver:function(a){if(this.state_!=UNOPENED&&this.state_!=RESETTING)throw E
rror("Cannot add observers once started.");if(this.observed_.push(observerSentin
el,a),this.reportChangesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=
a.open(this.deliver,this)}},startReset:function(){if(this.state_!=OPENED)throw E
rror("Can only reset while open");this.state_=RESETTING,this.disconnect_()},fini
shReset:function(){if(this.state_!=RESETTING)throw Error("Can only finishReset a
fter startReset");return this.state_=OPENED,this.connect_(),this.value_},iterate
Objects_: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_:functi
on(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.observed_[d],g=
this.observed_[d+1];if(f===observerSentinel){var h=g;e=this.state_===UNOPENED?h.
open(this.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}})
,ObserverTransform.prototype={open:function(a,b){return this.callback_=a,this.ta
rget_=b,this.value_=this.getValueFn_(this.observable_.open(this.observedCallback
_,this)),this.value_},observedCallback_:function(a){if(a=this.getValueFn_(a),!ar
eSameValue(a,this.value_)){var b=this.value_;this.value_=a,this.callback_.call(t
his.target_,this.value_,b)}},discardChanges:function(){return this.value_=this.g
etValueFn_(this.observable_.discardChanges()),this.value_},deliver:function(){re
turn this.observable_.deliver()},setValue:function(a){return a=this.setValueFn_(
a),!this.dontPassThroughSet_&&this.observable_.setValue?this.observable_.setValu
e(a):void 0},close:function(){this.observable_&&this.observable_.close(),this.ca
llback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=void 0,th
is.getValueFn_=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;Array
Splice.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},spliceOperationsFromEditDistances:function(a){for(var b=a.length-1,c=a[0].le
ngth-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_UP
DATE),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},c
alcSplices: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(var 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.a
ddedCount++,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.remov
ed.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){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;retu
rn f},calculateSplices:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.
length)},equals:function(a,b){return a===b}};var arraySplice=new ArraySplice;glo
bal.Observer=Observer,global.Observer.runEOM_=runEOM,global.Observer.observerSen
tinel_=observerSentinel,global.Observer.hasObjectObserve=hasObserve,global.Array
Observer=ArrayObserver,global.ArrayObserver.calculateSplices=function(a,b){retur
n arraySplice.calculateSplices(a,b)},global.ArraySplice=ArraySplice,global.Objec
tObserver=ObjectObserver,global.PathObserver=PathObserver,global.CompoundObserve
r=CompoundObserver,global.Path=Path,global.ObserverTransform=ObserverTransform}(
"undefined"!=typeof global&&global&&"undefined"!=typeof module&&module?global:th
is||window),Platform.flags.shadow?(window.ShadowDOMPolyfill={},function(a){"use
strict";function b(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runti
me)return!1;try{var a=new Function("return true;");return a()}catch(b){return!1}
}function 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){fo
r(var c=L(b),d=0;d<c.length;d++){var e=c[d];switch(e){case"arguments":case"calle
r":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]}fun
ction g(a,b,c){N.value=c,K(a,b,N)}function h(a){var b=a.__proto__||Object.getPro
totypeOf(a),c=G.get(b);if(c)return c;var d=h(b),e=v(d);return s(b,e,a),e}functio
n i(a,b){q(a,b,!0)}function j(a,b){q(b,a,!1)}function k(a){return/^on[a-z]+$/.te
st(a)}function 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){return J&&l(a)?new Function("v","this.impl."+a+" = v"):function(b){this.imp
l[a]=b}}function o(a){return J&&l(a)?new Function("return this.impl."+a+".apply(
this.impl, arguments)"):function(){return this.impl[a].apply(this.impl,arguments
)}}function p(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){retu
rn P}}function q(b,c,d){for(var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polyme
rBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBlackList_[g])){O&&b._
_lookupGetter__(g);var h,i,j=p(b,g);if(d&&"function"==typeof j.value)c[g]=o(g);e
lse{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.writable||j.set)&&(i=l?a.g
etEventHandlerSetter(g):n(g)),K(c,g,{get:h,set:i,configurable:j.configurable,enu
merable:j.enumerable})}}}}function r(a,b,c){var d=a.prototype;s(d,b,c),e(b,a)}fu
nction 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.
prototype)===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.pro
totype);return c.constructor=b,b.prototype=c,b}function w(a){return a instanceof
I.EventTarget||a instanceof I.Event||a instanceof I.Range||a instanceof I.DOMIm
plementation||a instanceof I.CanvasRenderingContext2D||I.WebGLRenderingContext&&
a instanceof I.WebGLRenderingContext}function x(a){return R&&a instanceof R||a i
nstanceof T||a instanceof S||a instanceof U||a instanceof V||a instanceof Q||a i
nstanceof 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}funct
ion 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)}functio
n E(a,b){D(a,b,function(){return y(this.impl[b])})}function F(a,b){a.forEach(fun
ction(a){b.forEach(function(b){a.prototype[b]=function(){var a=B(this);return a[
b].apply(a,arguments)}})})}var G=new WeakMap,H=new WeakMap,I=Object.create(null)
,J=b(),K=Object.defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnPrope
rtyDescriptor,N={value:void 0,configurable:!0,enumerable:!1,writable:!0};L(windo
w);var O=/Firefox/.test(navigator.userAgent),P={get:function(){},set:function(){
},configurable:!0,enumerable:!0},Q=window.DOMImplementation,R=window.EventTarget
,S=window.Event,T=window.Node,U=window.Window,V=window.Range,W=window.CanvasRend
eringContext2D,X=window.WebGLRenderingContext,Y=window.SVGElementInstance,Z={get
:void 0,configurable:!0,enumerable:!0};a.assert=c,a.constructorTable=G,a.defineG
etter=D,a.defineWrapGetter=E,a.forwardMethodsToWrapper=F,a.isWrapper=w,a.isWrapp
erFor=t,a.mixin=d,a.nativePrototypeTable=H,a.oneOf=f,a.registerObject=u,a.regist
erWrapper=r,a.rewrap=C,a.unwrap=z,a.unwrapIfNeeded=A,a.wrap=y,a.wrapIfNeeded=B,a
.wrappers=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.setEndOfMicr
otask=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.removedNode
s=new m.NodeList,this.previousSibling=null,this.nextSibling=null,this.attributeN
ame=null,this.attributeNamespace=null,this.oldValue=null}function e(a,b){for(;a;
a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.opt
ions.subtree&&e.addTransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.l
ength;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.g
et(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtr
ee)&&!("attributes"===c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(nu
ll!==e.namespace||-1===l.attributeFilter.indexOf(e.name))||"characterData"===c&&
!l.characterData||"childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,(
"attributes"===c&&l.attributeOldValue||"characterData"===c&&l.characterDataOldVa
lue)&&(g[m.uid_]=e.oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);
"name"in e&&"namespace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.name
space),e.addedNodes&&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes
=e.removedNodes),e.previousSibling&&(q.previousSibling=e.previousSibling),e.next
Sibling&&(q.nextSibling=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.record
s_.push(q),o=!0}o&&b()}function h(a){if(this.childList=!!a.childList,this.subtre
e=!!a.subtree,this.attributes="attributes"in a||!("attributeOldValue"in a||"attr
ibuteFilter"in a)?!!a.attributes:!0,this.characterData="characterDataOldValue"in
a&&!("characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOl
dValue||"attributeFilter"in a)||!this.characterData&&a.characterDataOldValue)thr
ow new TypeError;if(this.characterData=!!a.characterData,this.attributeOldValue=
!!a.attributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue,"attr
ibuteFilter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeFilter
)throw new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else this.at
tributeFilter=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,thi
s.options=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfN
eeded,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototy
pe={observe:function(a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);fo
r(var f=0;f<e.length;f++)e[f].observer===this&&(c=e[f],c.removeTransientObserver
s(),c.options=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},disconnec
t:function(){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_=
[]},takeRecords:function(){var a=this.records_;return this.records_=[],a}},j.pro
totype={addTransientObserver:function(a){if(a!==this.target){this.transientObser
vedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTransientO
bservers:function(){var a=this.transientObservedNodes;this.transientObservedNode
s=[];for(var b=0;b<a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(
d[e]===this){d.splice(e,1);break}}},a.enqueueMutation=g,a.registerTransientObser
vers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowD
OMPolyfill),function(a){"use strict";function b(a,b){this.root=a,this.parent=b}f
unction c(a,b){if(a.treeScope_!==b){a.treeScope_=b;for(var d=a.shadowRoot;d;d=d.
olderShadowRoot)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.tre
eScope_;var e,f=c.parentNode;return e=f?d(f):new b(c,null),c.treeScope_=e}b.prot
otype={get renderer(){return this.root instanceof a.wrappers.ShadowRoot?a.getRen
dererForHost(this.root.host):null},contains:function(a){for(;a;a=a.parent)if(a==
=this)return!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScope=c}(windo
w.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a instanceof
Q.ShadowRoot}function c(a){return L(a).root}function d(a,d){var h=[],i=a;for(h.p
ush(i);i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){var m=j[k];i
f(f(m)){var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length-1]}el
se if(b(i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNode,i&&h.pu
sh(i)}return h}function e(a){if(!a)return!1;switch(a.type){case"abort":case"erro
r":case"select":case"change":case"load":case"reset":case"resize":case"scroll":ca
se"selectstart":return!0}return!1}function f(a){return a instanceof HTMLShadowEl
ement}function 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.length-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.p
op();if(f!==g)break;e=f}return e}function k(a,b,c){b instanceof Q.Window&&(b=b.d
ocument);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.p
arent)for(var k=0;k<h.length;k++){var l=h[k];if(L(l)===i)return l}return null}fu
nction l(a,b){return L(a)===L(b)}function m(a){if(!S.get(a)&&(S.set(a,!0),n(P(a)
,P(a.target)),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;i
f("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.typ
e){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.defaultPrevented | 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){var b=a[this.name];if(!b)return!1;var c=b[0]===a;return b[0]=b[1]=void
0,c},has:function(a){var b=a[this.name];return b?b[0]===a:!1}},window.WeakMap=c
}(),function(global){"use strict";function detectObjectObserve(){function a(a){b
=a}if("function"!=typeof Object.observe||"function"!=typeof Array.observe)return
!1;var b=[],c={},d=[];return Object.observe(c,a),Array.observe(d,a),c.id=1,c.id=
2,delete c.id,d.push(1,2),d.length=0,Object.deliverChangeRecords(a),5!==b.length
?!1:"add"!=b[0].type||"update"!=b[1].type||"delete"!=b[2].type||"splice"!=b[3].t
ype||"splice"!=b[4].type?!1:(Object.unobserve(c,a),Array.unobserve(d,a),!0)}func
tion detectEval(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)
return!1;if(navigator.getDeviceStorage)return!1;try{var a=new Function("","retur
n true;");return a()}catch(b){return!1}}function isIndex(a){return+a===a>>>0}fun
ction toNumber(a){return+a}function isObject(a){return a===Object(a)}function ar
eSameValue(a,b){return a===b?0!==a||1/a===1/b:numberIsNaN(a)&&numberIsNaN(b)?!0:
a!==a&&b!==b}function getPathCharType(a){if(void 0===a)return"eof";var b=a.charC
odeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;case
95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:cas
e 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="beforePa
th",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=path
StateMachine[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 isIdent(a){
return identRegExp.test(a)}function Path(a,b){if(b!==constructorIsPrivate)throw
Error("Use Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this.p
ush(String(a[c]));hasEval&&this.length&&(this.getValueFrom=this.compiledGetValue
FromFn())}function getPath(a){if(a instanceof Path)return a;if((null==a||0==a.le
ngth)&&(a=""),"string"!=typeof a){if(isIndex(a.length))return new Path(a,constru
ctorIsPrivate);a=String(a)}var b=pathCache[a];if(b)return b;var c=parsePath(a);i
f(!c)return invalidPath;var b=new Path(c,constructorIsPrivate);return pathCache[
a]=b,b}function formatAccessor(a){return isIndex(a)?"["+a+"]":'["'+a.replace(/"/
g,'\\"')+'"]'}function dirtyCheck(a){for(var b=0;MAX_DIRTY_CHECK_CYCLES>b&&a.che
ck_();)b++;return testingExposeCycleCount&&(global.dirtyCheckCycleCount=b),b>0}f
unction objectIsEmpty(a){for(var b in a)return!1;return!0}function diffIsEmpty(a
){return objectIsEmpty(a.added)&&objectIsEmpty(a.removed)&&objectIsEmpty(a.chang
ed)}function diffObjectFromOldObject(a,b){var c={},d={},e={};for(var f in b){var
g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=void 0)}for(var
f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b.length&&(e.leng
th=a.length),{added:c,removed:d,changed:e}}function runEOMTasks(){if(!eomTasks.l
ength)return!1;for(var a=0;a<eomTasks.length;a++)eomTasks[a]();return eomTasks.l
ength=0,!0}function newObservedObject(){function a(a){b&&b.state_===OPENED&&!d&&
b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Error("Observed
Object in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe:function(b,d
){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b){d=b,Object.d
eliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.unobserve(c,a),obs
ervedObjectCache.push(this)}}}function getObservedObject(a,b,c){var d=observedOb
jectCache.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]||"setPrototype"===c.type)re
turn!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)d=g[e],d.st
ate_==OPENED&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d.state_==O
PENED&&d.check_()}}var d,e,f=0,g=[],h=[],i={object:void 0,objects:h,open:functio
n(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),Observer.unobserved
Count++;g.length=0,h.length=0,d=void 0,e=void 0,observedSetCache.push(this)}}};r
eturn i}function getObservedSet(a,b){return lastObservedSet&&lastObservedSet.obj
ect===b||(lastObservedSet=observedSetCache.pop()||newObservedSet(),lastObservedS
et.object=b),lastObservedSet.open(a,b),lastObservedSet}function Observer(){this.
state_=UNOPENED,this.callback_=void 0,this.target_=void 0,this.directObserver_=v
oid 0,this.value_=void 0,this.id_=nextObserverId++}function addToAll(a){Observer
._allObserversCount++,collectObservers&&allObservers.push(a)}function removeFrom
All(){Observer._allObserversCount--}function ObjectObserver(a){Observer.call(thi
s),this.value_=a,this.oldObject_=void 0}function ArrayObserver(a){if(!Array.isAr
ray(a))throw Error("Provided object is not an Array");ObjectObserver.call(this,a
)}function PathObserver(a,b){Observer.call(this),this.object_=a,this.path_=getPa
th(b),this.directObserver_=void 0}function CompoundObserver(a){Observer.call(thi
s),this.reportChangesOnOpen_=a,this.value_=[],this.directObserver_=void 0,this.o
bserved_=[]}function identFn(a){return a}function ObserverTransform(a,b,c,d){thi
s.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_=a,thi
s.getValueFn_=b||identFn,this.setValueFn_=c||identFn,this.dontPassThroughSet_=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.name]=g.oldValue),"u
pdate"!=g.type&&("add"!=g.type?g.name in d?(delete d[g.name],delete c[g.name]):e
[g.name]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown
changeRecord type: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var
h in e)e[h]=void 0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]
!==j&&(i[h]=j)}return{added:d,removed:e,changed:i}}function newSplice(a,b,c){ret
urn{index:a,removed:b,addedCount:c}}function ArraySplice(){}function calcSplices
(a,b,c,d,e,f){return arraySplice.calcSplices(a,b,c,d,e,f)}function intersect(a,b
,c,d){return c>b||a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function merge
Splice(a,b,c,d){for(var e=newSplice(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[
h];if(i.index+=g,!f){var j=intersect(e.index,e.index+e.removed.length,i.index,i.
index+i.addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,
e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.adde
dCount||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.removed.length>i.index+
i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototyp
e.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else
if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length
;i.index+=n,g+=n}}}f||a.push(e)}function createInitialSplices(a,b){for(var c=[],
d=0;d<b.length;d++){var e=b[d];switch(e.type){case"splice":mergeSplice(c,e.index
,e.removed.slice(),e.addedCount);break;case"add":case"update":case"delete":if(!i
sIndex(e.name))continue;var f=toNumber(e.name);if(0>f)continue;mergeSplice(c,f,[
e.oldValue],1);break;default:console.error("Unexpected record type: "+JSON.strin
gify(e))}}return c}function projectArraySplices(a,b){var c=[];return createIniti
alSplices(a,b).forEach(function(b){return 1==b.addedCount&&1==b.removed.length?v
oid(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(calcSplices(a,b.index,
b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var testingExposeCycleC
ount=global.testingExposeCycleCount,hasObserve=detectObjectObserve(),hasEval=det
ectEval(),numberIsNaN=global.Number.isNaN||function(a){return"number"==typeof a&
&global.isNaN(a)},createObject="__proto__"in{}?function(a){return a}:function(a)
{var b=a.__proto__;if(!b)return a;var c=Object.create(b);return Object.getOwnPro
pertyNames(a).forEach(function(b){Object.defineProperty(c,b,Object.getOwnPropert
yDescriptor(a,b))}),c},identStart="[$_a-zA-Z]",identPart="[$_a-zA-Z0-9]",identRe
gExp=new RegExp("^"+identStart+"+"+identPart+"*$"),pathStateMachine={beforePath:
{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterP
ath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["aft
erPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{i
dent:["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"],"'":["inSingleQuote","append",""],'"':["inDoubleQuo
te","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},i
nIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"
]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:["error"],"else":[
"inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:["error"],"el
se":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath",
"push"]}},constructorIsPrivate={},pathCache={};Path.get=getPath,Path.prototype=c
reateObject({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<this.l
ength;b++){var c=this[b];a+=isIdent(c)?b?"."+c:c:formatAccessor(c)}return a},get
ValueFrom:function(a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[
b]]}return a},iterateObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&
(a=a[this[c-1]]),!isObject(a))return;b(a,this[0])}},compiledGetValueFromFn:funct
ion(){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:formatAccessor(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 Function("obj",a)},setValueFrom:function(a,b)
{if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!isObject(a))retur
n!1;a=a[this[c]]}return isObject(a)?(a[this[c]]=b,!0):!1}});var invalidPath=new
Path("",constructorIsPrivate);invalidPath.valid=!1,invalidPath.getValueFrom=inva
lidPath.setValueFrom=function(){};var MAX_DIRTY_CHECK_CYCLES=1e3,eomTasks=[],run
EOM=hasObserve?function(){var a={pingPong:!0},b=!1;return Object.observe(a,funct
ion(){runEOMTasks(),b=!1}),function(c){eomTasks.push(c),b||(b=!0,a.pingPong=!a.p
ingPong)}}():function(){return function(a){eomTasks.push(a)}}(),observedObjectCa
che=[],observedSetCache=[],lastObservedSet,UNOPENED=0,OPENED=1,CLOSED=2,RESETTIN
G=3,nextObserverId=1;Observer.prototype={open:function(a,b){if(this.state_!=UNOP
ENED)throw Error("Observer has already been opened.");return addToAll(this),this
.callback_=a,this.target_=b,this.connect_(),this.state_=OPENED,this.value_},clos
e:function(){this.state_==OPENED&&(removeFromAll(this),this.disconnect_(),this.v
alue_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=CLOSED)},deli
ver:function(){this.state_==OPENED&&dirtyCheck(this)},report_:function(a){try{th
is.callback_.apply(this.target_,a)}catch(b){Observer._errorThrownDuringCallback=
!0,console.error("Exception caught during observer callback: "+(b.stack||b))}},d
iscardChanges:function(){return this.check_(void 0,!0),this.value_}};var collect
Observers=!hasObserve,allObservers;Observer._allObserversCount=0,collectObserver
s&&(allObservers=[]);var runningMicrotaskCheckpoint=!1,hasDebugForceFullDelivery
=hasObserve&&hasEval&&function(){try{return eval("%RunMicrotasks()"),!0}catch(ex
){return!1}}();global.Platform=global.Platform||{},global.Platform.performMicrot
askCheckpoint=function(){if(!runningMicrotaskCheckpoint){if(hasDebugForceFullDel
ivery)return void eval("%RunMicrotasks()");if(collectObservers){runningMicrotask
Checkpoint=!0;var cycles=0,anyChanged,toCheck;do{cycles++,toCheck=allObservers,a
llObservers=[],anyChanged=!1;for(var i=0;i<toCheck.length;i++){var observer=toCh
eck[i];observer.state_==OPENED&&(observer.check_()&&(anyChanged=!0),allObservers
.push(observer))}runEOMTasks()&&(anyChanged=!0)}while(MAX_DIRTY_CHECK_CYCLES>cyc
les&&anyChanged);testingExposeCycleCount&&(global.dirtyCheckCycleCount=cycles),r
unningMicrotaskCheckpoint=!1}}},collectObservers&&(global.Platform.clearObserver
s=function(){allObservers=[]}),ObjectObserver.prototype=createObject({__proto__:
Observer.prototype,arrayObserve:!1,connect_:function(){hasObserve?this.directObs
erver_=getObservedObject(this,this.value_,this.arrayObserve):this.oldObject_=thi
s.copyObject(this.value_)},copyObject:function(a){var b=Array.isArray(a)?[]:{};f
or(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.length),b},check_:f
unction(a){var b,c;if(hasObserve){if(!a)return!1;c={},b=diffObjectFromChangeReco
rds(this.value_,a,c)}else c=this.oldObject_,b=diffObjectFromOldObject(this.value
_,this.oldObject_);return diffIsEmpty(b)?!1:(hasObserve||(this.oldObject_=this.c
opyObject(this.value_)),this.report_([b.added||{},b.removed||{},b.changed||{},fu
nction(a){return c[a]}]),!0)},disconnect_:function(){hasObserve?(this.directObse
rver_.close(),this.directObserver_=void 0):this.oldObject_=void 0},deliver:funct
ion(){this.state_==OPENED&&(hasObserve?this.directObserver_.deliver(!1):dirtyChe
ck(this))},discardChanges:function(){return this.directObserver_?this.directObse
rver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),Ar
rayObserver.prototype=createObject({__proto__:ObjectObserver.prototype,arrayObse
rve:!0,copyObject:function(a){return a.slice()},check_:function(a){var b;if(hasO
bserve){if(!a)return!1;b=projectArraySplices(this.value_,a)}else b=calcSplices(t
his.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return
b&&b.length?(hasObserve||(this.oldObject_=this.copyObject(this.value_)),this.re
port_([b]),!0):!1}}),ArrayObserver.applySplices=function(a,b,c){c.forEach(functi
on(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.p
ush(b[e]),e++;Array.prototype.splice.apply(a,d)})},PathObserver.prototype=create
Object({__proto__:Observer.prototype,get path(){return this.path_},connect_:func
tion(){hasObserve&&(this.directObserver_=getObservedSet(this,this.object_)),this
.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directObserve
r_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterateObjec
ts_:function(a){this.path_.iterateObjects(this.object_,a)},check_:function(a,b){
var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_),b||ar
eSameValue(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},setValue:f
unction(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var observerSe
ntinel={};CompoundObserver.prototype=createObject({__proto__:Observer.prototype,
connect_:function(){if(hasObserve){for(var a,b=!1,c=0;c<this.observed_.length;c+
=2)if(a=this.observed_[c],a!==observerSentinel){b=!0;break}b&&(this.directObserv
er_=getObservedSet(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)},disc
onnect_:function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===
observerSentinel&&this.observed_[a+1].close();this.observed_.length=0,this.value
_.length=0,this.directObserver_&&(this.directObserver_.close(this),this.directOb
server_=void 0)},addPath:function(a,b){if(this.state_!=UNOPENED&&this.state_!=RE
SETTING)throw Error("Cannot add paths once started.");var b=getPath(b);if(this.o
bserved_.push(a,b),this.reportChangesOnOpen_){var c=this.observed_.length/2-1;th
is.value_[c]=b.getValueFrom(a)}},addObserver:function(a){if(this.state_!=UNOPENE
D&&this.state_!=RESETTING)throw Error("Cannot add observers once started.");if(t
his.observed_.push(observerSentinel,a),this.reportChangesOnOpen_){var b=this.obs
erved_.length/2-1;this.value_[b]=a.open(this.deliver,this)}},startReset:function
(){if(this.state_!=OPENED)throw Error("Can only reset while open");this.state_=R
ESETTING,this.disconnect_()},finishReset:function(){if(this.state_!=RESETTING)th
row Error("Can only finishReset after startReset");return this.state_=OPENED,thi
s.connect_(),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.obser
ved_.length;c+=2)b=this.observed_[c],b!==observerSentinel&&this.observed_[c+1].i
terateObjects(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.observed_[d+1];if(f===observerSentinel){va
r h=g;e=this.state_===UNOPENED?h.open(this.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.va
lue_,c,this.observed_]),!0):!1}}),ObserverTransform.prototype={open:function(a,b
){return this.callback_=a,this.target_=b,this.value_=this.getValueFn_(this.obser
vable_.open(this.observedCallback_,this)),this.value_},observedCallback_:functio
n(a){if(a=this.getValueFn_(a),!areSameValue(a,this.value_)){var b=this.value_;th
is.value_=a,this.callback_.call(this.target_,this.value_,b)}},discardChanges:fun
ction(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),t
his.value_},deliver:function(){return this.observable_.deliver()},setValue:funct
ion(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observable_.
setValue?this.observable_.setValue(a):void 0},close:function(){this.observable_&
&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observa
ble_=void 0,this.value_=void 0,this.getValueFn_=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},spliceOperationsFromEditDistances: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},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=
Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.
length&&(h=this.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(var k=this.spliceOperationsFromEditDistanc
es(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_UP
DATE:j||(j=newSplice(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;
case EDIT_ADD:j||(j=newSplice(m,[],0)),j.addedCount++,m++;break;case EDIT_DELETE
:j||(j=newSplice(m,[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},shared
Prefix:function(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;r
eturn c},sharedSuffix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&thi
s.equals(a[--d],b[--e]);)f++;return f},calculateSplices:function(a,b){return thi
s.calcSplices(a,0,a.length,b,0,b.length)},equals:function(a,b){return a===b}};va
r arraySplice=new ArraySplice;global.Observer=Observer,global.Observer.runEOM_=r
unEOM,global.Observer.observerSentinel_=observerSentinel,global.Observer.hasObje
ctObserve=hasObserve,global.ArrayObserver=ArrayObserver,global.ArrayObserver.cal
culateSplices=function(a,b){return arraySplice.calculateSplices(a,b)},global.Arr
aySplice=ArraySplice,global.ObjectObserver=ObjectObserver,global.PathObserver=Pa
thObserver,global.CompoundObserver=CompoundObserver,global.Path=Path,global.Obse
rverTransform=ObserverTransform}("undefined"!=typeof global&&global&&"undefined"
!=typeof module&&module?global:this||window),Platform.flags.shadow?(window.Shado
wDOMPolyfill={},function(a){"use strict";function b(){if("undefined"!=typeof chr
ome&&chrome.app&&chrome.app.runtime)return!1;if(navigator.getDeviceStorage)retur
n!1;try{var a=new Function("return true;");return a()}catch(b){return!1}}functio
n 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.getPrototypeOf
(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)}fu
nction l(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}function m(a){return J&&l(a)?new F
unction("return this.impl."+a):function(){return this.impl[a]}}function n(a){ret
urn 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.imp
l, arguments)"):function(){return this.impl[a].apply(this.impl,arguments)}}funct
ion p(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){return P}}fu
nction q(b,c,d){for(var e=L(b),f=0;f<e.length;f++){var g=e[f];if("polymerBlackLi
st_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBlackList_[g])){O&&b.__lookupG
etter__(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.getEventH
andlerSetter(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.prototyp
e)===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.Event
Target||a instanceof I.Event||a instanceof I.Range||a instanceof I.DOMImplementa
tion||a instanceof I.CanvasRenderingContext2D||a instanceof I.FormData||I.WebGLR
enderingContext&&a instanceof I.WebGLRenderingContext}function x(a){return R&&a
instanceof R||a instanceof T||a instanceof S||a instanceof U||a instanceof V||a
instanceof Q||a instanceof W||a instanceof Z||X&&a instanceof X||Y&&a instanceof
Y}function y(a){return null===a?null:(c(x(a)),a.polymerWrapper_||(a.polymerWrap
per_=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){$
.get=c,K(a.prototype,b,$)}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]=f
unction(){var a=B(this);return a[b].apply(a,arguments)}})})}var G=new WeakMap,H=
new WeakMap,I=Object.create(null),J=b(),K=Object.defineProperty,L=Object.getOwnP
ropertyNames,M=Object.getOwnPropertyDescriptor,N={value:void 0,configurable:!0,e
numerable:!1,writable:!0};L(window);var O=/Firefox/.test(navigator.userAgent),P=
{get:function(){},set:function(){},configurable:!0,enumerable:!0},Q=window.DOMIm
plementation,R=window.EventTarget,S=window.Event,T=window.Node,U=window.Window,V
=window.Range,W=window.CanvasRenderingContext2D,X=window.WebGLRenderingContext,Y
=window.SVGElementInstance,Z=window.FormData,$={get:void 0,configurable:!0,enume
rable:!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.nativePro
totypeTable=H,a.oneOf=f,a.registerObject=u,a.registerWrapper=r,a.rewrap=C,a.unwr
ap=z,a.unwrapIfNeeded=A,a.wrap=y,a.wrapIfNeeded=B,a.wrappers=I}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(){g=!1;var a=f.slice(0);f=[];for(v
ar b=0;b<a.length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))}var d,e=wi
ndow.MutationObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.createTextNo
de(h);i.observe(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=wi
ndow.setImmediate||window.setTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPoly
fill),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.targe
t=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,this.previou
sSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamesp
ace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a
);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransientO
bserver(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);if(i)for(var j=0;j<i.le
ngth;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&!l.a
ttributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.attr
ibuteFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||"childList"
===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attribute
OldValue||"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"in e&&"namespace"in e&&
(q.attributeName=e.name,q.attributeNamespace=e.namespace),e.addedNodes&&(q.added
Nodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.previousSi
bling&&(q.previousSibling=e.previousSibling),e.nextSibling&&(q.nextSibling=e.nex
tSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&&b()}functi
on h(a){if(this.childList=!!a.childList,this.subtree=!!a.subtree,this.attributes
="attributes"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!!a.attribu
tes:!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.char
acterData=!!a.characterData,this.attributeOldValue=!!a.attributeOldValue,this.ch
aracterDataOldValue=!!a.characterDataOldValue,"attributeFilter"in a){if(null==a.
attributeFilter||"object"!=typeof a.attributeFilter)throw new TypeError;this.att
ributeFilter=q.call(a.attributeFilter)}else this.attributeFilter=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.options=c,this.transientObs
ervedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new Weak
Map,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={observe:function(a,b){a=l
(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length;f++)e[f]
.observer===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c||(c=new j(
this,a,d),e.push(c),this.nodes_.push(a))},disconnect:function(){this.nodes_.forE
ach(function(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer=
==this){b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){va
r a=this.records_;return this.records_=[],a}},j.prototype={addTransientObserver:
function(a){if(a!==this.target){this.transientObservedNodes.push(a);var b=n.get(
a);b||n.set(a,b=[]),b.push(this)}},removeTransientObservers:function(){var a=thi
s.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a.length;b
++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splice(e,1);br
eak}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.MutationObs
erver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a,b){this.root=a,this.parent=b}function c(a,b){if(a.treeScope
_!==b){a.treeScope_=b;for(var d=a.shadowRoot;d;d=d.olderShadowRoot)d.treeScope_.
parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}}function d(c){if(c ins
tanceof 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.getRendererForHost(this.root.host):
null},contains:function(a){for(;a;a=a.parent)if(a===this)return!0;return!1}},a.T
reeScope=b,a.getTreeScope=d,a.setTreeScope=c}(window.ShadowDOMPolyfill),function
(a){"use strict";function b(a){return a instanceof Q.ShadowRoot}function c(a){re
turn 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.olderS
hadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length-1]}else if(b(i)){if(l(a,i)&&e(d))b
reak;i=i.host,h.push(i)}else i=i.parentNode,i&&h.push(i)}return 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"selectstart":return!0}retu
rn!1}function f(a){return a instanceof HTMLShadowElement}function g(b){return a.
getDestinationInsertionPoints(b)}function h(a,b){if(0===a.length)return b;b inst
anceof Q.Window&&(b=b.document);for(var c=L(b),d=a[0],e=L(d),f=j(c,e),g=0;g<a.le
ngth;g++){var h=a[g];if(L(h)===f)return h}return a[a.length-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}retur
n 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)for(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.target)),J)){var b=J;thr
ow J=null,b}}function n(b,c){if(T.get(b))throw new Error("InvalidStateError");T.
set(b,!0),a.renderAllPending(); |
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"&";case"<":retur
n"<";case">":return">";case'"':return""";case"\xa0":return" "}}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=window.HTMLFormElement;b.prototype=Object.create(c.prot
otype),d(b.prototype,{get elements(){return f(g(this).elements)}}),e(h,b,documen
t.createElement("form")),a.wrappers.HTMLFormElement=b}(window.ShadowDOMPolyfill)
,function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){if(!(this
instanceof c))throw new TypeError("DOM object constructor cannot be called as a
function.");var e=f(document.createElement("img"));d.call(this,e),g(e,this),voi
d 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElement,e=a.r
egisterWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.prototype=Objec
t.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=b.prototy
pe,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill),f
unction(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElemen
t,d=(a.mixin,a.wrappers.NodeList,a.registerWrapper),e=window.HTMLShadowElement;b
.prototype=Object.create(c.prototype),e&&d(e,b),a.wrappers.HTMLShadowElement=b}(
window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a.defaultVi
ew)return a;var b=k.get(a);if(!b){for(b=a.implementation.createHTMLDocument("");
b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}return b}function c(a){for(va
r c,d=b(a.ownerDocument),e=h(d.createDocumentFragment());c=a.firstChild;)e.appen
dChild(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.unwrap,i=a.wr
ap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateElement;d.prototype=Object.c
reate(e.prototype),f(d.prototype,{get content(){return l?i(this.impl.content):j.
get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d}(window.ShadowDOMPolyfil
l),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLEl
ement,d=a.registerWrapper,e=window.HTMLMediaElement;b.prototype=Object.create(c.
prototype),d(e,b,document.createElement("audio")),a.wrappers.HTMLMediaElement=b}
(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)
}function c(a){if(!(this instanceof c))throw new TypeError("DOM object construct
or cannot be called as a function.");var b=f(document.createElement("audio"));d.
call(this,b),g(b,this),b.setAttribute("preload","auto"),void 0!==a&&b.setAttribu
te("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,d
ocument.createElement("audio")),c.prototype=b.prototype,a.wrappers.HTMLAudioElem
ent=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}func
tion d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object construc
tor 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("valu
e",b),c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var e=a.wrappers.H
TMLElement,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 tex
t(){return b(this.textContent)},set text(a){this.textContent=b(String(a))},get f
orm(){return j(i(this).form)}}),g(k,c,document.createElement("option")),d.protot
ype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d}(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.unwrap,g=a.wrap,h=window.HTML
SelectElement;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){retur
n void 0===a?void c.prototype.remove.call(this):("object"==typeof a&&(a=f(a)),vo
id f(this).remove(a))},get form(){return g(f(this).form)}}),e(h,b,document.creat
eElement("select")),a.wrappers.HTMLSelectElement=b}(window.ShadowDOMPolyfill),fu
nction(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement
,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a.wrapHTMLCollection,i=wind
ow.HTMLTableElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get ca
ption(){return g(f(this).caption)},createCaption:function(){return g(f(this).cre
ateCaption())},get tHead(){return g(f(this).tHead)},createTHead:function(){retur
n g(f(this).createTHead())},createTFoot:function(){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).createTBody())},get rows(){return h(f(
this).rows)},insertRow:function(a){return g(f(this).insertRow(a))}}),e(i,b,docum
ent.createElement("table")),a.wrappers.HTMLTableElement=b}(window.ShadowDOMPolyf
ill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTML
Element,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.pro
totype,{get rows(){return f(g(this).rows)},insertRow:function(a){return h(g(this
).insertRow(a))}}),e(i,b,document.createElement("thead")),a.wrappers.HTMLTableSe
ctionElement=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.w
rapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableRowElement;b.prototype=O
bject.create(c.prototype),d(b.prototype,{get cells(){return f(g(this).cells)},in
sertCell:function(a){return h(g(this).insertCell(a))}}),e(i,b,document.createEle
ment("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(this,a)}var
c=a.wrappers.HTMLContentElement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadow
Element,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.registerWrapper),h=window.
HTMLUnknownElement;b.prototype=Object.create(d.prototype),g(h,b),a.wrappers.HTML
UnknownElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.wra
ppers.Element,c=a.wrappers.HTMLElement,d=a.registerObject,e="http://www.w3.org/2
000/svg",f=document.createElementNS(e,"title"),g=d(f),h=Object.getPrototypeOf(g.
prototype).constructor;if(!("classList"in f)){var i=Object.getOwnPropertyDescrip
tor(b.prototype,"classList");Object.defineProperty(c.prototype,"classList",i),de
lete b.prototype.classList | 13 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.default
View)}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.defaultPrevented}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;retur
n!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.relatedTarget;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.set(b,g),V.set(b,a),f.depth++;for(var p=0,q=
f.length;q>p;p++){var r=f[p];if(r.removed)o=!0;else if(!(r.type!==n||!r.capture&
&c===bb||r.capture&&c===db))try{if("function"==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.length=0;for(var p=0;p<t.length;p++)t[p].remove
d||f.push(t[p])}return!Y.get(b)}function s(a,b,c){this.type=a,this.handler=b,thi
s.capture=Boolean(c)}function t(a,b){if(!(a instanceof eb))return P(x(eb,"Event"
,a,b));var c=a;return pb||"beforeunload"!==c.type?void(this.impl=c):new y(c)}fun
ction u(a){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:O(a.r
elatedTarget)}}):a}function v(a,b,c){var d=window[a],e=function(b,c){return b in
stanceof d?void(this.impl=b):P(x(d,a,b,c))};if(e.prototype=Object.create(b.proto
type),c&&M(e.prototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.cre
ateEvent(a))}return e}function w(a,b){return function(){arguments[b]=O(arguments
[b]);var c=O(this);c[a].apply(c,arguments)}}function x(a,b,c,d){if(nb)return new
a(c,u(d));var e=O(document.createEvent(b)),f=mb[b],g=[c];return Object.keys(f).
forEach(function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=O(b)
),g.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.handleEvent}function A(a){switch(a){case"DO
MAttrModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case
"DOMElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":
case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":r
eturn!0}return!1}function B(a){this.impl=a}function C(a){return a instanceof Q.S
hadowRoot&&(a=a.host),O(a)}function D(a,b){var c=R.get(a);if(c)for(var d=0;d<c.l
ength;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.renderAllPending();var g=P(sb.call(c.impl,e,f));if(!g)ret
urn null;var i=d(g,null),j=i.lastIndexOf(b);return-1==j?null:(i=i.slice(0,j),h(i
,b))}function H(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].valu
e||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.forwardMe
thodsToWrapper,L=a.getTreeScope,M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wra
p,Q=a.wrappers,R=(new WeakMap,new WeakMap),S=new WeakMap,T=new WeakMap,U=new Wea
kMap,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){retur
n this.handler===a.handler&&this.type===a.type&&this.capture===a.capture},get re
moved(){return null===this.handler},remove:function(){this.handler=null}};var eb
=window.Event;eb.prototype.polymerBlackList_={returnValue:!0,keyLocation:!0},t.p
rototype={get target(){return U.get(this)},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("CustomEvent",t),hb={get relatedTarget(){var a=W.get
(this);return void 0!==a?a:P(O(this).relatedTarget)}},ib=M({initMouseEvent:w("in
itMouseEvent",14)},hb),jb=M({initFocusEvent:w("initFocusEvent",5)},hb),kb=v("Mou
seEvent",fb,ib),lb=v("FocusEvent",fb,jb),mb=Object.create(null),nb=function(){tr
y{new window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!nb){var ob=fu
nction(a,b,c){if(c){var d=mb[c];b=M(M({},d),b)}mb[a]=b};ob("Event",{bubbles:!1,c
ancelable:!1}),ob("CustomEvent",{detail:null},"Event"),ob("UIEvent",{view:null,d
etail:0},"Event"),ob("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlK
ey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),o
b("FocusEvent",{relatedTarget:null},"UIEvent")}var pb=window.BeforeUnloadEvent;y
.prototype=Object.create(t.prototype),M(y.prototype,{get returnValue(){return th
is.impl.returnValue},set returnValue(a){this.impl.returnValue=a}}),pb&&N(pb,y);v
ar qb=window.EventTarget,rb=["addEventListener","removeEventListener","dispatchE
vent"];[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]))return}else e=[],e.depth=0,R.set(this,e);e.p
ush(d);var g=C(this);g.addEventListener_(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.removeEventListener_(a,m,!0)}}},dispatchEvent:functio
n(b){var c=O(b),d=c.type;S.set(c,!1),a.renderAllPending();var e;E(this,d)||(e=fu
nction(){},this.addEventListener(d,e,!0));try{return O(this).dispatchEvent_(c)}f
inally{e&&this.removeEventListener(d,e,!0)}}},qb&&N(qb,B);var sb=document.elemen
tFromPoint;a.elementFromPoint=G,a.getEventHandlerGetter=H,a.getEventHandlerSette
r=I,a.wrapEventTargetMethods=F,a.wrappers.BeforeUnloadEvent=y,a.wrappers.CustomE
vent=gb,a.wrappers.Event=t,a.wrappers.EventTarget=B,a.wrappers.FocusEvent=lb,a.w
rappers.MouseEvent=kb,a.wrappers.UIEvent=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(this,"length")}function e(a){for(var b=new d
,e=0;e<a.length;e++)b[e]=new c(a[e]);return b.length=e,b}function f(a){g.call(th
is,a)}var g=a.wrappers.UIEvent,h=a.mixin,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.prototype={get target(){return k(this.impl.tar
get)}};var p={configurable:!0,enumerable:!0,get:null};["clientX","clientY","scre
enX","screenY","pageX","pageY","identifier","webkitRadiusX","webkitRadiusY","web
kitRotationAngle","webkitForce"].forEach(function(a){p.get=function(){return thi
s.impl[a]},Object.defineProperty(c.prototype,a,p)}),d.prototype={item:function(a
){return this[a]}},f.prototype=Object.create(g.prototype),h(f.prototype,{get tou
ches(){return e(j(this).touches)},get targetTouches(){return e(j(this).targetTou
ches)},get changedTouches(){return e(j(this).changedTouches)},initTouchEvent:fun
ction(){throw new Error("Not implemented")}}),i(l,f,m),a.wrappers.Touch=c,a.wrap
pers.TouchEvent=f,a.wrappers.TouchList=d}}(window.ShadowDOMPolyfill),function(a)
{"use strict";function b(a,b){Object.defineProperty(a,b,g)}function c(){this.len
gth=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a
.length;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]=
function(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a.wrap,g={en
umerable:!1};c.prototype={item:function(a){return this[a]}},b(c.prototype,"item"
),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.Shado
wDOMPolyfill),function(a){"use strict";a.wrapHTMLCollection=a.wrapNodeList,a.wra
ppers.HTMLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill),function(a){
"use strict";function b(a){A(a instanceof 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,previousSibl
ing:a.previousSibling,nextSibling:a.nextSibling})}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].previousSibling_=f[g-1]||d,f[g].nextSibling_
=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibling_=f[f.length-1])
,f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previo
usSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}
function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parent
Node;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_()}function k(a,b){for(var c=D(b),d=0;d<a.length
;d++)j(a[d],c)}function l(a){I(a,new z(a,null))}function m(a){for(var b=0;b<a.le
ngth;b++)l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NODE?a:a.ownerDoc
ument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.length){var d=b.o
wnerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.length;e++)a.adoptNodeNoR
emove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return J(b[0]);for
(var d=J(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChild(J(b
[e]));return d}function q(a){if(void 0!==a.firstChild_)for(var b=a.firstChild_;b
;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibling_=void
0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadowRenderer
()){for(var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSibling,d=J(b),e=
d.parentNode;e&&V.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode_=null
,b=c}a.firstChild_=a.lastChild_=null}else 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.invali
dateShadowRenderer()}function t(a){for(var b,c=0;c<a.length;c++)b=a[c],b.parentN
ode.removeChild(b)}function u(a,b,c){var d;if(d=L(c?P.call(c,a.impl,!1):Q.call(a
.impl,!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u(e,!0,c));
if(a 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.parentNode)if(c===a)return!0;return!1}functio
n w(a){A(a instanceof R),x.call(this,a),this.parentNode_=void 0,this.firstChild_
=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=vo
id 0,this.treeScope_=void 0}var x=a.wrappers.EventTarget,y=a.wrappers.NodeList,z
=a.TreeScope,A=a.assert,B=a.defineWrapGetter,C=a.enqueueMutation,D=a.getTreeScop
e,E=a.isWrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerWrapper,I=a
.setTreeScope,J=a.unwrap,K=a.unwrapIfNeeded,L=a.wrap,M=a.wrapIfNeeded,N=a.wrappe
rs,O=!1,P=document.importNode,Q=window.Node.prototype.cloneNode,R=window.Node,S=
window.DocumentFragment,T=(R.prototype.appendChild,R.prototype.compareDocumentPo
sition),U=R.prototype.insertBefore,V=R.prototype.removeChild,W=R.prototype.repla
ceChild,X=/Trident/.test(navigator.userAgent),Y=X?function(a,b){try{V.call(a,b)}
catch(c){if(!(a instanceof S))throw c}}:function(a,b){V.call(a,b)};w.prototype=O
bject.create(x.prototype),F(w.prototype,{appendChild:function(a){return this.ins
ertBefore(a,null)},insertBefore:function(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.l
astChild,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g(a):f(a,this,h,c),i)n
(this,a),q(this),U.call(this.impl,J(a),d);else{h||(this.firstChild_=e[0]),c||(th
is.lastChild_=e[e.length-1],void 0===this.firstChild_&&(this.firstChild_=this.fi
rstChild));var j=d?d.parentNode:this.impl;j?U.call(j,p(this,e),d):o(this,e)}retu
rn C(this,"childList",{addedNodes:e,nextSibling:c,previousSibling:h}),k(e,this),
a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(this.chi
ldNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)throw new
Error("NotFoundError")}var f=J(a),g=a.nextSibling,h=a.previousSibling;if(this.in
validateShadowRenderer()){var i=this.firstChild,j=this.lastChild,k=f.parentNode;
k&&Y(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.nextSibli
ng_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibling_=a.parentNode_
=void 0}else q(this),Y(this.impl,f);return 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("NotFou
ndError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.invalidateShadowRend
erer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,this,j,i)),m?(n(th
is,a),q(this),W.call(this.impl,J(a),e)):(this.firstChild===d&&(this.firstChild_=
h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previousSibling_=d.n
extSibling_=d.parentNode_=void 0,e.parentNode&&W.call(e.parentNode,p(this,h),e))
,C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,previousSiblin
g:j}),l(d),k(h,this),d},nodeIsInserted_:function(){for(var a=this.firstChild;a;a
=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return null!==this.
firstChild},get parentNode(){return void 0!==this.parentNode_?this.parentNode_:L
(this.impl.parentNode)},get firstChild(){return void 0!==this.firstChild_?this.f
irstChild_:L(this.impl.firstChild)},get lastChild(){return void 0!==this.lastChi
ld_?this.lastChild_:L(this.impl.lastChild)},get nextSibling(){return void 0!==th
is.nextSibling_?this.nextSibling_:L(this.impl.nextSibling)},get previousSibling(
){return void 0!==this.previousSibling_?this.previousSibling_:L(this.impl.previo
usSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType!==w.ELEM
ENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.firstCh
ild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);return a},s
et textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRenderer()){i
f(r(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.appendChi
ld(c)}}else q(this),this.impl.textContent=a;var d=i(this.childNodes);C(this,"chi
ldList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes(){for(var
a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},cl
oneNode:function(a){return u(this,a)},contains:function(a){return v(this,M(a))},
compareDocumentPosition:function(a){return T.call(this.impl,K(a))},normalize:fun
ction(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],b.n
odeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.removeNo
de(b):(a&&d.length&&(a.data+=e,t(d)),d=[],e="",a=null,b.childNodes.length&&b.nor
malize());a&&d.length&&(a.data+=e,t(d))}}),B(w,"ownerDocument"),H(R,w,document.c
reateDocumentFragment()),delete w.prototype.querySelector,delete w.prototype.que
rySelectorAll,w.prototype=F(Object.create(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(b,c,d){for(var e=null,f=null,g=0,h=b.length;h>g;g++)e=q(b[g]
),(f=p(e).root)&&f instanceof a.wrappers.ShadowRoot||(d[c++]=e);return c}functio
n c(a,b){for(var d,e=a.firstElementChild;e;){if(e.matches(b))return e;if(d=c(e,b
))return d;e=e.nextElementSibling}return null}function d(a,b){return a.matches(b
)}function e(a,b,c){var d=a.localName;return d===b||d===c&&a.namespaceURI===B}fu
nction f(){return!0}function g(a,b,c){return a.localName===c}function h(a,b){ret
urn a.namespaceURI===b}function i(a,b,c){return a.namespaceURI===b&&a.localName=
==c}function j(a,b,c,d,e,f){for(var g=a.firstElementChild;g;)d(g,e,f)&&(c[b++]=g
),b=j(g,b,c,d,e,f),g=g.nextElementSibling;return b}function k(c,d,e,f){var g,h=t
his.impl,i=p(this).root;if(i instanceof a.wrappers.ShadowRoot)return j(this,d,e,
c,f,null);if(h instanceof z)g=u.call(h,f);else{if(!(h instanceof A))return j(thi
s,d,e,c,f,null);g=t.call(h,f)}return b(g,d,e)}function l(c,d,e,f,g){var h,i=this
.impl,k=p(this).root;if(k instanceof a.wrappers.ShadowRoot)return j(this,d,e,c,f
,g);if(i instanceof z)h=w.call(i,f,g);else{if(!(i instanceof A))return j(this,d,
e,c,f,g);h=v.call(i,f,g)}return b(h,d,e)}function m(c,d,e,f,g){var h,i=this.impl
,k=p(this).root;if(k instanceof a.wrappers.ShadowRoot)return j(this,d,e,c,f,g);i
f(i instanceof z)h=y.call(i,f,g);else{if(!(i instanceof A))return j(this,d,e,c,f
,g);h=x.call(i,f,g)}return b(h,d,e)}var n=a.wrappers.HTMLCollection,o=a.wrappers
.NodeList,p=a.getTreeScope,q=a.wrap,r=document.querySelector,s=document.document
Element.querySelector,t=document.querySelectorAll,u=document.documentElement.que
rySelectorAll,v=document.getElementsByTagName,w=document.documentElement.getElem
entsByTagName,x=document.getElementsByTagNameNS,y=document.documentElement.getEl
ementsByTagNameNS,z=window.Element,A=window.HTMLDocument,B="http://www.w3.org/19
99/xhtml",C={querySelector:function(b){var d,e=this.impl,f=p(this).root;if(f ins
tanceof a.wrappers.ShadowRoot)return c(this,b);if(e instanceof z)d=q(s.call(e,b)
);else{if(!(e instanceof A))return c(this,b);d=q(r.call(e,b))}return d&&(f=p(d).
root)&&f instanceof a.wrappers.ShadowRoot?c(this,b):d},querySelectorAll:function
(a){var b=new o;return b.length=k.call(this,d,0,b,a),b}},D={getElementsByTagName
:function(a){var b=new n,c="*"===a?f:e;return b.length=l.call(this,c,0,b,a,a.toL
owerCase()),b},getElementsByClassName:function(a){return this.querySelectorAll("
."+a)},getElementsByTagNameNS:function(a,b){var c=new n,d=null;return d="*"===a?
"*"===b?f:g:"*"===b?h:i,c.length=m.call(this,d,0,c,a||null,b),c}};a.GetElementsB
yInterface=D,a.SelectorsInterface=C}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){for(;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;re
turn 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.fir
stChild)},get lastElementChild(){return c(this.lastChild)},get childElementCount
(){for(var a=0,b=this.firstElementChild;b;b=b.nextElementSibling)a++;return a},g
et children(){for(var a=new d,b=0,c=this.firstElementChild;c;c=c.nextElementSibl
ing)a[b++]=c;return a.length=b,a},remove:function(){var a=this.parentNode;a&&a.r
emoveChild(this)}},f={get nextElementSibling(){return b(this.nextSibling)},get p
reviousElementSibling(){return c(this.previousSibling)}};a.ChildNodeInterface=f,
a.ParentNodeInterface=e}(window.ShadowDOMPolyfill),function(a){"use strict";func
tion b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueu
eMutation,f=a.mixin,g=a.registerWrapper,h=window.CharacterData;b.prototype=Objec
t.create(d.prototype),f(b.prototype,{get textContent(){return this.data},set tex
tContent(a){this.data=a},get data(){return this.impl.data},set data(a){var b=thi
s.impl.data;e(this,"characterData",{oldValue:b}),this.impl.data=a}}),f(b.prototy
pe,c),g(h,b,document.createTextNode("")),a.wrappers.CharacterData=b}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){return a>>>0}function c(a)
{d.call(this,a)}var d=a.wrappers.CharacterData,e=(a.enqueueMutation,a.mixin),f=a
.registerWrapper,g=window.Text;c.prototype=Object.create(d.prototype),e(c.protot
ype,{splitText:function(a){a=b(a);var c=this.data;if(a>c.length)throw new Error(
"IndexSizeError");var d=c.slice(0,a),e=c.slice(a);this.data=d;var f=this.ownerDo
cument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(f,
this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wrappers.Text=c}(win
dow.ShadowDOMPolyfill),function(a){"use strict";function b(b){a.invalidateRender
erBasedOnAttribute(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.i
mpl.item(a)},contains:function(a){return this.impl.contains(a)},add:function(){t
his.impl.add.apply(this.impl,arguments),b(this.ownerElement_)},remove:function()
{this.impl.remove.apply(this.impl,arguments),b(this.ownerElement_)},toggle:funct
ion(){var a=this.impl.toggle.apply(this.impl,arguments);return b(this.ownerEleme
nt_),a},toString:function(){return this.impl.toString()}},a.wrappers.DOMTokenLis
t=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b,c){var d=b.
parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.dependsOnAttribut
e(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.ChildNodeInterface,f=a.GetElem
entsByInterface,g=a.wrappers.Node,h=a.wrappers.DOMTokenList,i=a.ParentNodeInterf
ace,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueueMutation),l=a.mix
in,m=(a.oneOf,a.registerWrapper),n=a.unwrap,o=a.wrappers,p=window.Element,q=["ma
tches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter(
function(a){return p.prototype[a]}),r=q[0],s=p.prototype[r],t=new WeakMap;d.prot
otype=Object.create(g.prototype),l(d.prototype,{createShadowRoot:function(){var
b=new o.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForHo
st(this);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShado
wRoot_||null},setAttribute:function(a,d){var e=this.impl.getAttribute(a);this.im
pl.setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=th
is.impl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},matc
hes:function(a){return s.call(this.impl,a)},get classList(){var a=t.get(this);re
turn a||t.set(this,a=new h(n(this).classList,this)),a},get className(){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(function(a){"matche
s"!==a&&(d.prototype[a]=function(a){return this.matches(a)})}),p.prototype.webki
tCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowR
oot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),l(d.prototype,j),m(p,d,d
ocument.createElementNS(null,"x")),a.invalidateRendererBasedOnAttribute=b,a.matc
hesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use stri
ct";function b(a){switch(a){case"&":return"&";case"<":return"<";case">":r
eturn">";case'"':return""";case"\xa0":return" "}}function c(a){retu
rn 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.error(a),new Error(
"not implemented")}}function g(a){a instanceof y.HTMLTemplateElement&&(a=a.conte
nt);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return 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))}function i(a){o.cal
l(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML=b;for(var d,e=w(d
ocument.createDocumentFragment());d=c.firstChild;)e.appendChild(d);return x(e)}f
unction k(b){return function(){return a.renderAllPending(),this.impl[b]}}functio
n l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{get:k(b),s
et:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enumerable:!
0})}function n(b){Object.defineProperty(i.prototype,b,{value:function(){return a
.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurable:!0,enu
merable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutation,r=a.m
ixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.snapshotNod
eList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u00A0<>]/g,B=e(["ar
ea","base","br","col","command","embed","hr","img","input","keygen","link","meta
","param","source","track","wbr"]),C=e(["style","script","xmp","iframe","noembed
","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.userAgent),E=windo
w.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.create(o.prototype
),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(D&&C[this.l
ocalName])return void(this.textContent=a);var b=v(this.childNodes);this.invalida
teShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this.content,a):h(thi
s,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(this.content,a):th
is.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedNodes:c,re
movedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,this.parentNode)},s
et outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=j
(b,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(S
tring(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;case"af
terend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=thi
s.firstChild;break;case"beforeend":c=this,d=null;break;default:return}var e=j(c,
b);c.insertBefore(e,d)},get hidden(){return this.hasAttribute("hidden")},set hid
den(a){a?this.setAttribute("hidden",""):this.removeAttribute("hidden")}}),["clie
ntHeight","clientLeft","clientTop","clientWidth","offsetHeight","offsetLeft","of
fsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(l),["scrollLeft","s
crollTop"].forEach(m),["getBoundingClientRect","getClientRects","scrollIntoView"
].forEach(n),u(E,i,document.createElement("b")),a.wrappers.HTMLElement=i,a.getIn
nerHTML=g,a.setInnerHTML=h}(window.ShadowDOMPolyfill),function(a){"use strict";f
unction b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerW
rapper,f=a.wrap,g=window.HTMLCanvasElement;b.prototype=Object.create(c.prototype
),d(b.prototype,{getContext:function(){var a=this.impl.getContext.apply(this.imp
l,arguments);return a&&f(a)}}),e(g,b,document.createElement("canvas")),a.wrapper
s.HTMLCanvasElement=b}(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=window.HTMLContentElement;b.prototype=Object.create(c.prototype),d(b.prototy
pe,{get select(){return this.getAttribute("select")},set select(a){this.setAttri
bute("select",a)},setAttribute:function(a,b){c.prototype.setAttribute.call(this,
a,b),"select"===String(a).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),f&
&e(f,b),a.wrappers.HTMLContentElement=b}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,
e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=window.HTMLFormElement;b
.prototype=Object.create(c.prototype),d(b.prototype,{get elements(){return f(g(t
his).elements)}}),e(h,b,document.createElement("form")),a.wrappers.HTMLFormEleme
nt=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(th
is,a)}function c(a,b){if(!(this instanceof c))throw new TypeError("DOM object co
nstructor 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.HTM
LImageElement;b.prototype=Object.create(d.prototype),e(h,b,document.createElemen
t("img")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image
=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this
,a)}var c=a.wrappers.HTMLElement,d=(a.mixin,a.wrappers.NodeList,a.registerWrappe
r),e=window.HTMLShadowElement;b.prototype=Object.create(c.prototype),e&&d(e,b),a
.wrappers.HTMLShadowElement=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.impleme
ntation.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.createDocumentFrag
ment());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.re
gisterWrapper,h=a.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTempl
ateElement;d.prototype=Object.create(e.prototype),f(d.prototype,{get content(){r
eturn l?i(this.impl.content):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateEle
ment=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(
this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaEleme
nt;b.prototype=Object.create(c.prototype),d(e,b,document.createElement("audio"))
,a.wrappers.HTMLMediaElement=b}(window.ShadowDOMPolyfill),function(a){"use stric
t";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(docu
ment.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload","
auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a
.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Obj
ect.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype=b.pro
totype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfil
l),function(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim()}fu
nction 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(doc
ument.createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),v
oid 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected",""),g.sel
ected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewr
ap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.pr
ototype),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.cr
eateElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.
wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b
(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=
a.unwrap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Object.create(c.prototy
pe),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,document.createElement("select")),a.wrappers.HTMLSelectElement=
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.unwrap,g=a.wra
p,h=a.wrapHTMLCollection,i=window.HTMLTableElement;b.prototype=Object.create(c.p
rototype),d(b.prototype,{get caption(){return g(f(this).caption)},createCaption:
function(){return g(f(this).createCaption())},get tHead(){return g(f(this).tHead
)},createTHead:function(){return g(f(this).createTHead())},createTFoot:function(
){return g(f(this).createTFoot())},get tFoot(){return g(f(this).tFoot)},get tBod
ies(){return h(f(this).tBodies) |
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){this.dirty=!0;var a=t
his.parentRenderer;if(a&&a.invalidate(),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;d
&&(c.prototype.setDragImage=function(a,c,e){d.call(this,b(a),c,e)})}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){this.impl=new e(a&&d(a))}v
ar c=a.registerWrapper,d=a.unwrap,e=window.FormData;c(e,b,new e),a.wrappers.Form
Data=b}(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.constructor;window[b]=
f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElement",audio:"HT
MLAudioElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement"
,button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaption
Element",col:"HTMLTableColElement",content:"HTMLContentElement",data:"HTMLDataEl
ement",datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTMLDirectoryEle
ment",div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedElement",fields
et:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",frame:"HT
MLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HTM
LHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameElemen
t",img:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeygenElement",la
bel:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLL
inkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElem
ent",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterEleme
nt",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupEleme
nt",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElemen
t",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",
q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectElement",shado
w:"HTMLShadowElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"H
TMLStyleElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",templa
te:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLTableSectionE
lement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement"
,track:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Objec
t.keys(c).forEach(b),Object.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.firstElementChild;for(e=[],f=a.shadowRoot;f;)e.push(f),f=f.olde
rShadowRoot;for(g=e.length-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.firstElementChild;for(g=[],f=a.shadowRoot;f;)g.push(f),f=f.olderS
hadowRoot;for(h=g.length-1;h>=0;h--)for(e=g[h].querySelectorAll(b),i=0;i<e.lengt
h;i++)d.push(e[i]);for(;j;)c(j,b,d),j=j.nextElementSibling;return d}window.wrap=
ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded,Ob
ject.defineProperty(Element.prototype,"webkitShadowRoot",Object.getOwnPropertyDe
scriptor(Element.prototype,"shadowRoot"));var d=Element.prototype.createShadowRo
ot;Element.prototype.createShadowRoot=function(){var a=d.call(this);return Custo
mElements.watchShadow(this),a},Element.prototype.webkitCreateShadowRoot=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="";return Array.prot
otype.forEach.call(a,function(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.pare
ntNode.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.h
ead.appendChild(b)}function f(a){v.initialized||e(),document.body.appendChild(v)
,a(v.contentDocument),document.body.removeChild(v)}function g(a,b){if(b){var e;i
f(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().appendChild(docume
nt.createTextNode(a))}function i(a,b){var d=c(a);d.setAttribute(b,""),d.setAttri
bute(z,""),document.head.appendChild(d)}function j(){return w||(w=document.creat
eElement("style"),w.setAttribute(z,""),w[z]=!0),w}var k={strictStyling:!1,regist
ry:{},shimStyling:function(a,c,d){var e=this.prepareRoot(a,c,d),f=this.isTypeExt
ension(d),g=this.makeScopeSelector(c,f),h=b(e,!0);h=this.scopeCssText(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=this.insertDir
ectives(a),this.scopeCssText(a,b)},makeScopeSelector:function(a,b){return a?b?"[
is="+a+"]":a:""},isTypeExtension:function(a){return a&&a.indexOf("-")<0},prepare
Root:function(a,b,c){var d=this.registerRoot(a,b,c);return this.replaceTextInSty
les(d.rootStyles,this.insertDirectives),this.removeStyles(a,d.rootStyles),this.s
trictStyling&&this.applyScopeToContent(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)},re
gisterRoot:function(a,b,c){var d=this.registry[b]={root:a,name:b,extendsName:c},
e=this.findStyles(a);d.rootStyles=e,d.scopeStyles=d.rootStyles;var f=this.regist
ry[d.extendsName];return f&&(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),
d},findStyles:function(a){if(!a)return[];var b=a.querySelectorAll("style");retur
n Array.prototype.filter.call(b,function(a){return!a.hasAttribute(A)})},applySco
peToContent:function(a,b){a&&(Array.prototype.forEach.call(a.querySelectorAll("*
"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.call(a.querySelect
orAll("template"),function(a){this.applyScopeToContent(a.content,b)},this))},ins
ertDirectives:function(a){return a=this.insertPolyfillDirectivesInCssText(a),thi
s.insertPolyfillRulesInCssText(a)},insertPolyfillDirectivesInCssText:function(a)
{return a=a.replace(m,function(a,b){return b.slice(0,-2)+"{"}),a.replace(n,funct
ion(a,b){return b+" {"})},insertPolyfillRulesInCssText:function(a){return a=a.re
place(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=th
is.extractUnscopedRulesFromCssText(a);if(a=this.insertPolyfillHostInCssText(a),a
=this.convertColonHost(a),a=this.convertColonHostContext(a),a=this.convertShadow
DOMSelectors(a),b){var a,d=this;g(a,function(c){a=d.scopeRules(c,b)})}return 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 this.con
vertColonRule(a,cssColonHostRe,this.colonHostPartReplacer)},convertColonHostCont
ext:function(a){return this.convertColonRule(a,cssColonHostContextRe,this.colonH
ostContextPartReplacer)},convertColonRule:function(a,b,c){return a.replace(b,fun
ction(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(",")}re
turn b+e})},colonHostContextPartReplacer:function(a,b,c){return b.match(s)?this.
colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplacer:functio
n(a,b,c){return a+b.replace(s,"")+c},convertShadowDOMSelectors:function(a){for(v
ar b=0;b<shadowDOMSelectorsRe.length;b++)a=a.replace(shadowDOMSelectorsRe[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.proper
tiesFromRule(a)+"\n}\n\n";else if(a.type===CSSRule.MEDIA_RULE)c+="@media "+a.med
ia.mediaText+" {\n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n";else try{a.css
Text&&(c+=a.cssText+"\n\n")}catch(d){}},this),c},scopeSelector:function(a,b,c){v
ar d=[],e=a.split(",");return e.forEach(function(a){a=a.trim(),this.selectorNeed
sScoping(a,b)&&(a=c&&!a.match(polyfillHostNoCombinator)?this.applyStrictSelector
Scope(a,b):this.applySelectorScope(a,b)),d.push(a)},this),d.join(", ")},selector
NeedsScoping:function(a,b){if(Array.isArray(b))return!0;var c=this.makeScopeMatc
her(b);return!a.match(c)},makeScopeMatcher:function(a){return a=a.replace(/\[/g,
"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")"+selectorReSuffix,"m")},applySe
lectorScope:function(a,b){return Array.isArray(b)?this.applySelectorScopeList(a,
b):this.applySimpleSelectorScope(a,b)},applySelectorScopeList:function(a,b){for(
var c,d=[],e=0;c=b[e];e++)d.push(this.applySimpleSelectorScope(a,c));return d.jo
in(", ")},applySimpleSelectorScope:function(a,b){return a.match(polyfillHostRe)?
(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyfillHostRe,b+" ")):b+" "+
a},applyStrictSelectorScope:function(a,b){b=b.replace(/\[is=([^\]]*)\]/g,"$1");v
ar c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(function(a){var b=d.spli
t(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.i
ndexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).
join(a)}),d},insertPolyfillHostInCssText:function(a){return a.replace(colonHostC
ontextRe,t).replace(colonHostRe,s)},propertiesFromRule:function(a){var b=a.style
.cssText;a.style.content&&!a.style.content.match(/['"]+|attr/)&&(b=b.replace(/co
ntent:[^;]*;/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 instanceof Array||(a=[a]),Array.prototype.forEach.call(a,function(a)
{a.textContent=b.call(this,a.textContent)},this))},addCssToDocument: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"),cssColonHos
tContextRe=new RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?
$",colonHostRe=/\:host/gim,colonHostContextRe=/\:host-context/gim,polyfillHostNo
Combinator=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHostCon
textRe=new RegExp(t,"gim"),shadowDOMSelectorsRe=[/\^\^/g,/\^/g,/\/shadow\//g,/\/
shadow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g];var v=document.createEleme
nt("iframe");v.style.display="none";var w,x=navigator.userAgent.match("Chrome"),
y="shim-shadowdom",z="shim-shadowdom-css",A="no-shim";if(window.ShadowDOMPolyfil
l){h("style { display: none !important; }\n");var B=wrap(document),C=B.querySele
ctor("head");C.insertBefore(j(),C.childNodes[0]),document.addEventListener("DOMC
ontentLoaded",function(){var b=a.urlResolver;if(window.HTMLImports&&!HTMLImports
.useNative){var c="link[rel=stylesheet]["+y+"]",d="style["+y+"]";HTMLImports.imp
orter.documentPreloadSelectors+=","+c,HTMLImports.importer.importsPreloadSelecto
rs+=","+c,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSelec
tors,c,d].join(",");var e=HTMLImports.parser.parseGeneric;HTMLImports.parser.par
seGeneric=function(a){if(!a[z]){var c=a.__importElement||a;if(!c.hasAttribute(y)
)return void e.call(this,a);a.__resource?(c=a.ownerDocument.createElement("style
"),c.textContent=b.resolveCssText(a.__resource,a.href)):b.resolveStyle(c),c.text
Content=k.shimStyle(c),c.removeAttribute(y,""),c.setAttribute(z,""),c[z]=!0,c.pa
rentNode!==C&&(a.parentNode===C?C.replaceChild(c,a):C.appendChild(c)),c.__import
Parsed=!0,this.markParsingComplete(a),this.parseNext()}};var f=HTMLImports.parse
r.hasResource;HTMLImports.parser.hasResource=function(a){return"link"===a.localN
ame&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource:f.call(this,a)}}})}a.S
hadowCSS=k}(window.Platform)):!function(){window.wrap=window.unwrap=function(a){
return a},addEventListener("DOMContentLoaded",function(){if(CustomElements.useNa
tive===!1){var a=Element.prototype.createShadowRoot;Element.prototype.createShad
owRoot=function(){var b=a.call(this);return CustomElements.watchShadow(this),b}}
}),Platform.templateContent=function(a){if(window.HTMLTemplateElement&&HTMLTempl
ateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._content){
for(var b=document.createDocumentFragment();a.firstChild;)b.appendChild(a.firstC
hild);a._content=b}return a.content||a._content}}(window.Platform),function(a){"
use strict";function b(a){return void 0!==m[a]}function c(){h.call(this),this._i
sInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}function e(a
){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b)?a
:encodeURIComponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&127>b&&-
1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){functio
n 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.toL
owerCase(),j="scheme";break;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);brea
k a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(this._sch
eme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRelative&&
h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"authority f
irst slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="query"):"
#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._s
chemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";continue
}i("Missing scheme."),c.call(this);break;case"relative or authority":if("/"!=u||
"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore
slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this
._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._path=h._pa
th.slice(),this._query=h._query; | 14 },createTBody:function(){return g(f(this).createTBody())},get rows(){return h(f(
this).rows)},insertRow:function(a){return g(f(this).insertRow(a))}}),e(i,b,docum
ent.createElement("table")),a.wrappers.HTMLTableElement=b}(window.ShadowDOMPolyf
ill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTML
Element,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.pro
totype,{get rows(){return f(g(this).rows)},insertRow:function(a){return h(g(this
).insertRow(a))}}),e(i,b,document.createElement("thead")),a.wrappers.HTMLTableSe
ctionElement=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.w
rapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableRowElement;b.prototype=O
bject.create(c.prototype),d(b.prototype,{get cells(){return f(g(this).cells)},in
sertCell:function(a){return h(g(this).insertCell(a))}}),e(i,b,document.createEle
ment("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(this,a)}var
c=a.wrappers.HTMLContentElement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadow
Element,f=a.wrappers.HTMLTemplateElement,g=(a.mixin,a.registerWrapper),h=window.
HTMLUnknownElement;b.prototype=Object.create(d.prototype),g(h,b),a.wrappers.HTML
UnknownElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.wra
ppers.Element,c=a.wrappers.HTMLElement,d=a.registerObject,e="http://www.w3.org/2
000/svg",f=document.createElementNS(e,"title"),g=d(f),h=Object.getPrototypeOf(g.
prototype).constructor;if(!("classList"in f)){var i=Object.getOwnPropertyDescrip
tor(b.prototype,"classList");Object.defineProperty(c.prototype,"classList",i),de
lete b.prototype.classList}a.wrappers.SVGElement=h}(window.ShadowDOMPolyfill),fu
nction(a){"use strict";function b(a){m.call(this,a)}var c=a.mixin,d=a.registerWr
apper,e=a.unwrap,f=a.wrap,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",
i=f(document.createElementNS(h,"g")),j=document.createElementNS(h,"use"),k=i.con
structor,l=Object.getPrototypeOf(k.prototype),m=l.constructor;b.prototype=Object
.create(l),"instanceRoot"in j&&c(b.prototype,{get instanceRoot(){return f(e(this
).instanceRoot)},get animatedInstanceRoot(){return f(e(this).animatedInstanceRoo
t)}}),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.mixi
n,e=a.registerWrapper,f=a.wrap,g=window.SVGElementInstance;g&&(b.prototype=Objec
t.create(c.prototype),d(b.prototype,{get correspondingElement(){return f(this.im
pl.correspondingElement)},get correspondingUseElement(){return f(this.impl.corre
spondingUseElement)},get parentNode(){return f(this.impl.parentNode)},get childN
odes(){throw new Error("Not implemented")},get firstChild(){return f(this.impl.f
irstChild)},get lastChild(){return f(this.impl.lastChild)},get previousSibling()
{return f(this.impl.previousSibling)},get nextSibling(){return f(this.impl.nextS
ibling)}}),e(g,b),a.wrappers.SVGElementInstance=b)}(window.ShadowDOMPolyfill),fu
nction(a){"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapp
er,e=a.unwrap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.
prototype,{get canvas(){return g(this.impl.canvas)},drawImage:function(){argumen
ts[0]=f(arguments[0]),this.impl.drawImage.apply(this.impl,arguments)},createPatt
ern:function(){return arguments[0]=e(arguments[0]),this.impl.createPattern.apply
(this.impl,arguments)}}),d(h,b,document.createElement("canvas").getContext("2d")
),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwr
apIfNeeded,f=a.wrap,g=window.WebGLRenderingContext;if(g){c(b.prototype,{get canv
as(){return f(this.impl.canvas)},texImage2D:function(){arguments[5]=e(arguments[
5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubImage2D:function(){ar
guments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this.impl,arguments)}})
;var h=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBuffe
rWidth:null}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapp
er,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.prototype={get startC
ontainer(){return f(this.impl.startContainer)},get endContainer(){return f(this.
impl.endContainer)},get commonAncestorContainer(){return f(this.impl.commonAnces
torContainer)},setStart:function(a,b){this.impl.setStart(e(a),b)},setEnd:functio
n(a,b){this.impl.setEnd(e(a),b)},setStartBefore:function(a){this.impl.setStartBe
fore(e(a))},setStartAfter:function(a){this.impl.setStartAfter(e(a))},setEndBefor
e:function(a){this.impl.setEndBefore(e(a))},setEndAfter:function(a){this.impl.se
tEndAfter(e(a))},selectNode:function(a){this.impl.selectNode(e(a))},selectNodeCo
ntents:function(a){this.impl.selectNodeContents(e(a))},compareBoundaryPoints:fun
ction(a,b){return this.impl.compareBoundaryPoints(a,d(b))},extractContents:funct
ion(){return f(this.impl.extractContents())},cloneContents:function(){return f(t
his.impl.cloneContents())},insertNode:function(a){this.impl.insertNode(e(a))},su
rroundContents:function(a){this.impl.surroundContents(e(a))},cloneRange:function
(){return f(this.impl.cloneRange())},isPointInRange:function(a,b){return this.im
pl.isPointInRange(e(a),b)},comparePoint:function(a,b){return this.impl.comparePo
int(e(a),b)},intersectsNode:function(a){return this.impl.intersectsNode(e(a))},t
oString:function(){return this.impl.toString()}},g.prototype.createContextualFra
gment&&(b.prototype.createContextualFragment=function(a){return f(this.impl.crea
teContextualFragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.R
ange=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsBy
Interface,c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerO
bject,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.wrapp
ers.DocumentFragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";funct
ion 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.setInnerHTML,k=a.unw
rap,l=new WeakMap,m=new WeakMap,n=/[ \t\n\r\f]/;b.prototype=Object.create(c.prot
otype),h(b.prototype,{get innerHTML(){return f(this)},set innerHTML(a){j(this,a)
,this.invalidateShadowRenderer()},get olderShadowRoot(){return m.get(this)||null
},get host(){return l.get(this)||null},invalidateShadowRenderer:function(){retur
n l.get(this).invalidateShadowRenderer()},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.ShadowDOM
Polyfill),function(a){"use strict";function b(a){a.previousSibling_=a.previousSi
bling,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.lastChild,a.lastChil
d===a.firstChild&&(a.firstChild_=a.firstChild);var i=H(f.lastChild);i&&(i.nextSi
bling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=G(a),d=c.parentNod
e;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)}}function e(a){I.set(a,[]
)}function f(a){var b=I.get(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=[]}fu
nction 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:null}function l(a){
return j(a.host)}function m(a){this.skip=!1,this.node=a,this.childNodes=[]}funct
ion n(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),this.associateNod
e(a)}function o(a){for(var b=[],c=a.firstChild;c;c=c.nextSibling)v(c)?b.push.app
ly(b,f(c)):b.push(c);return b}function p(a){if(a instanceof B)return a;if(a inst
anceof A)return null;for(var b=a.firstChild;b;b=b.nextSibling){var c=p(b);if(c)r
eturn c}return null}function q(a,b){f(b).push(a);var c=J.get(a);c?c.push(b):J.se
t(a,[b])}function r(a){return 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}functi
on x(a){for(var b=[],c=a.shadowRoot;c;c=c.olderShadowRoot)b.push(c);return b}var
y,z=a.wrappers.Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowE
lement,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 WeakMap,K=new WeakMap,L
=F(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnim
ationFrame","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.childN
odes.push(b),b},sync:function(a){if(!this.skip){for(var b=this.node,e=this.child
Nodes,f=g(G(b)),h=a||new WeakMap,i=N.calculateSplices(e,f),j=0,k=0,l=0,m=0;m<i.l
ength;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync(h);for(var o=n.removed.l
ength,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(th
is.dirty){this.invalidateAttributes();var b=this.host;this.distribution(b);var c
=a||new m(b);this.buildRenderTree(c,b);var d=!a;d&&c.sync(),this.dirty=!1}},get
parentRenderer(){return E(this.host).renderer},invalidate:function(){if(!this.di
rty){this.dirty=!0;var a=this.parentRenderer;if(a&&a.invalidate(),M.push(this),y
)return;y=window[L](i,0)}},distribution:function(a){this.resetAll(a),this.distri
butionResolution(a)},resetAll:function(a){v(a)?e(a):s(a);for(var b=a.firstChild;
b;b=b.nextSibling)this.resetAll(b);a.shadowRoot&&this.resetAll(a.shadowRoot),a.o
lderShadowRoot&&this.resetAll(a.olderShadowRoot)},distributionResolution:functio
n(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.length-1;e>=0;e--){var f=d[e],g=p(f);if(g){var h=f.olderSha
dowRoot;h&&(c=o(h));for(var i=0;i<c.length;i++)q(c[i],g)}this.distributionResolu
tion(f)}}for(var j=a.firstChild;j;j=j.nextSibling)this.distributionResolution(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.l
ength;e++){var a=b[e];a&&t(a,c)&&(q(a,c),b[e]=void 0,d=!0)}if(!d)for(var f=c.fir
stChild;f;f=f.nextSibling)q(f,c)}else for(var f=a.firstChild;f;f=f.nextSibling)t
his.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.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},invalida
teAttributes:function(){this.attributes=Object.create(null)},updateDependentAttr
ibutes:function(a){if(a){var 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:function(a){return this.attributes[a]},associateNode:fun
ction(a){a.impl.polymerShadowRenderer_=this}};var O=/^[*.#[a-zA-Z_|]/;C.prototyp
e.invalidateShadowRenderer=function(){var a=this.impl.polymerShadowRenderer_;ret
urn a?(a.invalidate(),!0):!1},A.prototype.getDistributedNodes=B.prototype.getDis
tributedNodes=function(){return h(),f(this)},z.prototype.getDestinationInsertion
Points=function(){return h(),r(this)||[]},A.prototype.nodeIsInserted_=B.prototyp
e.nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b=k(this);b&&
(a=l(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.getRendererForH
ost=j,a.getShadowTrees=x,a.renderAllPending=h,a.getDestinationInsertionPoints=r,
a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPolyfill),function(a){"use s
trict";function b(b){if(window[b]){d(!a.wrappers[b]);var i=function(a){c.call(th
is,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.wrapper
s[b]=i}}var c=a.wrappers.HTMLElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=
a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetElement","HTMLInputElement
","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HTMLObjectElement"
,"HTMLOutputElement","HTMLTextAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfi
ll),function(a){"use strict";function b(a){this.impl=a}{var c=a.registerWrapper,
d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.prototype={get anchorN
ode(){return f(this.impl.anchorNode)},get focusNode(){return f(this.impl.focusNo
de)},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.containsNode(
e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRangeAt:function(a){r
eturn f(this.impl.getRangeAt(a))},removeRange:function(a){this.impl.removeRange(
d(a))},selectAllChildren:function(a){this.impl.selectAllChildren(e(a))},toString
:function(){return this.impl.toString()}},c(window.Selection,b,window.getSelecti
on()),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.adop
tNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibl
ing)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]=f
unction(){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.ParentNodeInterface,m=a.w
rappers.Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot,p=a.TreeScope,q
=a.cloneNode,r=a.defineWrapGetter,s=a.elementFromPoint,t=a.forwardMethodsToWrapp
er,u=a.matchesNames,v=a.mixin,w=a.registerWrapper,x=a.renderAllPending,y=a.rewra
p,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,"h
ead"),["createComment","createDocumentFragment","createElement","createElementNS
","createEvent","createEventNS","createRange","createTextNode","getElementById"]
.forEach(c);var D=document.adoptNode,E=document.getSelection;if(v(b.prototype,{a
doptNode: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(t
his)))},getElementsByName:function(a){return n.querySelectorAll.call(this,"[name
="+JSON.stringify(String(a))+"]")}}),document.registerElement){var F=document.re
gisterElement;b.prototype.registerElement=function(b,c){function d(a){return a?v
oid(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(HTMLElement.prot
otype)),a.nativePrototypeTable.get(e))throw new Error("NotSupportedError");for(v
ar g,h=Object.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.pu
sh(h),h=Object.getPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(
var j=Object.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallbac
k","attachedCallback","detachedCallback","attributeChangedCallback"].forEach(fun
ction(a){var b=e[a];b&&(j[a]=function(){A(this)instanceof d||y(this),b.apply(A(t
his),arguments)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototy
pe.constructor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);F.c
all(z(this),b,l);return d},t([window.HTMLDocument||window.Document],["registerEl
ement"])}t([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.H
TMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocumentPosition",
"contains","getElementsByClassName","getElementsByTagName","getElementsByTagName
NS","insertBefore","querySelector","querySelectorAll","removeChild","replaceChil
d"].concat(u)),t([window.HTMLDocument||window.Document],["adoptNode","importNode
","contains","createComment","createDocumentFragment","createElement","createEle
mentNS","createEvent","createEventNS","createRange","createTextNode","elementFro
mPoint","getElementById","getElementsByName","getSelection"]),v(b.prototype,j),v
(b.prototype,l),v(b.prototype,n),v(b.prototype,{get implementation(){var a=C.get
(this);return a?a:(a=new g(z(this).implementation),C.set(this,a),a)},get default
View(){return A(z(this).defaultView)}}),w(window.Document,b,document.implementat
ion.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument,b),B([win
dow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]
),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,
"hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementation],["creat
eDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeN
oRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers
.EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllP
ending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComput
edStyle,m=window.getDefaultComputedStyle,n=window.getSelection;b.prototype=Objec
t.create(c.prototype),k.prototype.getComputedStyle=function(a,b){return j(this||
window).getComputedStyle(i(a),b)},m&&(k.prototype.getDefaultComputedStyle=functi
on(a,b){return j(this||window).getDefaultComputedStyle(i(a),b)}),k.prototype.get
Selection=function(){return j(this||window).getSelection()},delete window.getCom
putedStyle,delete window.getSelection,["addEventListener","removeEventListener",
"dispatchEvent"].forEach(function(a){k.prototype[a]=function(){var b=j(this||win
dow);return b[a].apply(b,arguments)},delete window[a]}),e(b.prototype,{getComput
edStyle:function(a,b){return g(),l.call(h(this),i(a),b)},getSelection:function()
{return g(),new d(n.call(h(this)))},get document(){return j(h(this).document)}})
,m&&(b.prototype.getDefaultComputedStyle=function(a,b){return g(),m.call(h(this)
,i(a),b)}),f(k,b,window),a.wrappers.Window=b}(window.ShadowDOMPolyfill),function
(a){"use strict";var b=a.unwrap,c=window.DataTransfer||window.Clipboard,d=c.prot
otype.setDragImage;d&&(c.prototype.setDragImage=function(a,c,e){d.call(this,b(a)
,c,e)})}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.i
mpl=a instanceof e?a:new e(a&&d(a))}var c=a.registerWrapper,d=a.unwrap,e=window.
FormData;c(e,b,new e),a.wrappers.FormData=b}(window.ShadowDOMPolyfill),function(
a){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.create
Element(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElem
ent",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body
:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCan
vasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content:
"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:"
HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListEle
ment",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElem
ent",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetEleme
nt",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTML
HtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputE
lement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendEl
ement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"H
TMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"H
TMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOLis
tElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTML
OutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreEle
ment",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElem
ent",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceEle
ment",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",t
body:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLText
AreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLT
itleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElem
ent",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyN
ames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.ShadowDOM
Polyfill),function(a){function 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))return d;for(;h;){if(d=b(h,c))return d;h=h.nextElementSibl
ing}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.nex
tElementSibling;return d}window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwra
p=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"webk
itShadowRoot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"));v
ar d=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot=funct
ion(){var a=d.call(this);return CustomElements.watchShadow(this),a},Element.prot
otype.webkitCreateShadowRoot=Element.prototype.createShadowRoot,a.queryAllShadow
s=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform),function(a){funct
ion b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.textC
ontent+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.createElem
ent("style");return b.textContent=a,b}function d(a){var b=c(a);document.head.app
endChild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else console.wa
rn("sheet not found",b);return b.parentNode.removeChild(b),d}function e(){v.init
ialized=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.createElemen
t("base");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.initiali
zed||e(),document.body.appendChild(v),a(v.contentDocument),document.body.removeC
hild(v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f(funct
ion(a){a.head.appendChild(g.impl),e=g.sheet.cssRules,b(e)})}else e=d(a),b(e)}}fu
nction h(a){a&&j().appendChild(document.createTextNode(a))}function i(a,b){var d
=c(a);d.setAttribute(b,""),d.setAttribute(z,""),document.head.appendChild(d)}fun
ction j(){return w||(w=document.createElement("style"),w.setAttribute(z,""),w[z]
=!0),w}var k={strictStyling:!1,registry:{},shimStyling:function(a,c,d){var e=thi
s.prepareRoot(a,c,d),f=this.isTypeExtension(d),g=this.makeScopeSelector(c,f),h=b
(e,!0);h=this.scopeCssText(h,g),a&&(a.shimmedStyle=h),this.addCssToDocument(h,c)
},shimStyle:function(a,b){return this.shimCssText(a.textContent,b)},shimCssText:
function(a,b){return a=this.insertDirectives(a),this.scopeCssText(a,b)},makeScop
eSelector:function(a,b){return a?b?"[is="+a+"]":a:""},isTypeExtension:function(a
){return a&&a.indexOf("-")<0},prepareRoot:function(a,b,c){var d=this.registerRoo
t(a,b,c);return this.replaceTextInStyles(d.rootStyles,this.insertDirectives),thi
s.removeStyles(a,d.rootStyles),this.strictStyling&&this.applyScopeToContent(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.regis
try[b]={root:a,name:b,extendsName:c},e=this.findStyles(a);d.rootStyles=e,d.scope
Styles=d.rootStyles;var f=this.registry[d.extendsName];return f&&(d.scopeStyles=
f.scopeStyles.concat(d.scopeStyles)),d},findStyles:function(a){if(!a)return[];va
r b=a.querySelectorAll("style");return Array.prototype.filter.call(b,function(a)
{return!a.hasAttribute(A)})},applyScopeToContent:function(a,b){a&&(Array.prototy
pe.forEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array
.prototype.forEach.call(a.querySelectorAll("template"),function(a){this.applySco
peToContent(a.content,b)},this))},insertDirectives:function(a){return a=this.ins
ertPolyfillDirectivesInCssText(a),this.insertPolyfillRulesInCssText(a)},insertPo
lyfillDirectivesInCssText:function(a){return a=a.replace(m,function(a,b){return
b.slice(0,-2)+"{"}),a.replace(n,function(a,b){return b+" {"})},insertPolyfillRul
esInCssText:function(a){return 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.insertPolyfillHostInCssText(a),a=this.convertColonHost(a),a=this.convertCol
onHostContext(a),a=this.convertShadowDOMSelectors(a),b){var a,d=this;g(a,functio
n(c){a=d.scopeRules(c,b)})}return a=a+"\n"+c,a.trim()},extractUnscopedRulesFromC
ssText: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},convert
ColonHost:function(a){return this.convertColonRule(a,cssColonHostRe,this.colonHo
stPartReplacer)},convertColonHostContext:function(a){return this.convertColonRul
e(a,cssColonHostContextRe,this.colonHostContextPartReplacer)},convertColonRule:f
unction(a,b,c){return a.replace(b,function(a,b,d,e){if(b=polyfillHostNoCombinato
r,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:fu
nction(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},conver
tShadowDOMSelectors:function(a){for(var b=0;b<shadowDOMSelectorsRe.length;b++)a=
a.replace(shadowDOMSelectorsRe[b]," ");return a},scopeRules:function(a,b){var c=
"";return a&&Array.prototype.forEach.call(a,function(a){if(a.selectorText&&a.sty
le&&void 0!==a.style.cssText)c+=this.scopeSelector(a.selectorText,b,this.strictS
tyling)+" {\n ",c+=this.propertiesFromRule(a)+"\n}\n\n";else if(a.type===CSSRu
le.MEDIA_RULE)c+="@media "+a.media.mediaText+" {\n",c+=this.scopeRules(a.cssRule
s,b),c+="\n}\n\n";else try{a.cssText&&(c+=a.cssText+"\n\n")}catch(d){}},this),c}
,scopeSelector: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(polyfillHostNoComb
inator)?this.applyStrictSelectorScope(a,b):this.applySelectorScope(a,b)),d.push(
a)},this),d.join(", ")},selectorNeedsScoping:function(a,b){if(Array.isArray(b))r
eturn!0;var c=this.makeScopeMatcher(b);return!a.match(c)},makeScopeMatcher:funct
ion(a){return a=a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")
"+selectorReSuffix,"m")},applySelectorScope:function(a,b){return Array.isArray(b
)?this.applySelectorScopeList(a,b):this.applySimpleSelectorScope(a,b)},applySele
ctorScopeList:function(a,b){for(var c,d=[],e=0;c=b[e];e++)d.push(this.applySimpl
eSelectorScope(a,c));return d.join(", ")},applySimpleSelectorScope:function(a,b)
{return a.match(polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.repla
ce(polyfillHostRe,b+" ")):b+" "+a},applyStrictSelectorScope:function(a,b){b=b.re
place(/\[is=([^\]]*)\]/g,"$1");var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.
forEach(function(a){var b=d.split(a);d=b.map(function(a){var b=a.trim().replace(
polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]
*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:functio
n(a){return a.replace(colonHostContextRe,t).replace(colonHostRe,s)},propertiesFr
omRule: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 instanceof Array||(a=[a]),Array.prot
otype.forEach.call(a,function(a){a.textContent=b.call(this,a.textContent)},this)
)},addCssToDocument:function(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\
*+([^/*][^*]*\*+)*\//gim,m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?
){/gim,n=/polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?)
{/gim,o=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)
[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-r
ule([^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/(polyfill-unscoped-rule)[^}]*(content\:[\
s]*['"](.*?)['"])[;\s]*[^}]*}/gim,s="-shadowcsshost",t="-shadowcsscontext",u=")(
?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new RegExp("("+s+u
,"gim"),cssColonHostContextRe=new RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s
~+[.,{:][\\s\\S]*)?$",colonHostRe=/\:host/gim,colonHostContextRe=/\:host-context
/gim,polyfillHostNoCombinator=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gi
m"),polyfillHostContextRe=new RegExp(t,"gim"),shadowDOMSelectorsRe=[/\^\^/g,/\^/
g,/\/shadow\//g,/\/shadow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g];var v=d
ocument.createElement("iframe");v.style.display="none";var w,x=navigator.userAge
nt.match("Chrome"),y="shim-shadowdom",z="shim-shadowdom-css",A="no-shim";if(wind
ow.ShadowDOMPolyfill){h("style { display: none !important; }\n");var B=wrap(docu
ment),C=B.querySelector("head");C.insertBefore(j(),C.childNodes[0]),document.add
EventListener("DOMContentLoaded",function(){var b=a.urlResolver;if(window.HTMLIm
ports&&!HTMLImports.useNative){var c="link[rel=stylesheet]["+y+"]",d="style["+y+
"]";HTMLImports.importer.documentPreloadSelectors+=","+c,HTMLImports.importer.im
portsPreloadSelectors+=","+c,HTMLImports.parser.documentSelectors=[HTMLImports.p
arser.documentSelectors,c,d].join(",");var e=HTMLImports.parser.parseGeneric;HTM
LImports.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.c
reateElement("style"),c.textContent=b.resolveCssText(a.__resource,a.href)):b.res
olveStyle(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):this.addE
lementToDocument(c)),c.__importParsed=!0,this.markParsingComplete(a),this.parseN
ext()}};var f=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=func
tion(a){return"link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__
resource:f.call(this,a)}}})}a.ShadowCSS=k}(window.Platform)):!function(){window.
wrap=window.unwrap=function(a){return a |
15 break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code point."),j="relativ
e 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";continue}this._host=h._host,this._port=h._port,this._p
ath=h._path.slice(),this._query=h._query,this._fragment="#",j="fragment"}break;c
ase"relative slash":if("/"!=u&&"\\"!=u){"file"!=this._scheme&&(this._host=h._hos
t,this._port=h._port),j="relative path";continue}"\\"==u&&i("\\ is an invalid co
de point."),j="file"==this._scheme?"file host":"authority ignore slashes";break;
case"authority first slash":if("/"!=u){i("Expected '/', got: "+u),j="authority i
gnore slashes";continue}j="authority second slash";break;case"authority second s
lash":if(j="authority ignore slashes","/"!=u){i("Expected '/', got: "+u);continu
e}break;case"authority ignore slashes":if("/"!=u&&"\\"!=u){j="authority";continu
e}i("Expected authority, got: "+u);break;case"authority":if("@"==u){r&&(i("@ alr
eady 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._passwor
d?this._password+=z:this._username+=z}else this._password="";else i("Invalid whi
tespace in authority.")}l=""}else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l
.length,l="",j="host";continue}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";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 sta
rt",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","hostname"==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 s
tart";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 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._pa
th.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="fragmen
t")}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._fragment+=u)}k++}}function h(){this._scheme="",this._sche
meData="",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.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(this,c,nul
l,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.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-z
A-Z0-9\+\-\.]/;i.prototype={get href(){if(this._isInvalid)return this._url;var a
="";return(""!=this._username||null!=this._password)&&(a=this._username+(null!=t
his._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 start")},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._isRelative&&g.call(this,a,"hostname")},get
port(){return this._port},set port(a){!this._isInvalid&&this._isRelative&&g.call
(this,a,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+t
his._path.join("/"):this._schemeData},set pathname(a){!this._isInvalid&&this._is
Relative&&(this._path=[],g.call(this,a,"relative path start"))},get search(){ret
urn this._isInvalid||!this._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?"":this._fragment},set hash(a){this._isInvalid||(this._fragmen
t="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fragment"))}},a.URL=i}}(window),f
unction(a){function b(a){for(var b=a||{},d=1;d<arguments.length;d++){var e=argum
ents[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.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPro
pertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b)}}Function.prototype
.bind||(Function.prototype.bind=function(a){var b=this,c=Array.prototype.slice.c
all(arguments,1);return function(){var d=c.slice();return d.push.apply(d,argumen
ts),b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a){"use strict";functio
n 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=DOMTokenLi
st.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=func
tion(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a])},DOMTokenLis
t.prototype.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arg
uments[a])},DOMTokenList.prototype.toggle=function(a,b){1==arguments.length&&(b=
!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList.prototype.switch=f
unction(a,b){a&&this.remove(a),b&&this.add(b)};var e=function(){return Array.pro
totype.slice.call(this)},f=window.NamedNodeMap||window.MozNamedAttrMap||{};if(No
deList.prototype.array=e,f.prototype.array=e,HTMLCollection.prototype.array=e,!w
indow.performance){var g=Date.now();window.performance={now:function(){return Da
te.now()-g}}}window.requestAnimationFrame||(window.requestAnimationFrame=functio
n(){var a=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;re
turn a?function(b){return a(function(){b(performance.now())})}:function(a){retur
n window.setTimeout(a,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAn
imationFrame=function(){return window.webkitCancelAnimationFrame||window.mozCanc
elAnimationFrame||function(a){clearTimeout(a)}}());var h=[],i=function(){h.push(
arguments)};window.Polymer=i,a.deliverDeclarations=function(){return a.deliverDe
clarations=function(){throw"Possible attempt to load Polymer twice"},h},window.a
ddEventListener("DOMContentLoaded",function(){window.Polymer===i&&(window.Polyme
r=function(){console.error('You tried to use polymer without loading it first. T
o load polymer, <link rel="import" href="components/polymer/polymer.html">')})})
,a.createDOM=b}(window.Platform),function(a){a.templateContent=a.templateContent
||function(a){return a.content}}(window.Platform),function(a){a=a||(window.Inspe
ctor={});var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Ins
pector",null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(docu
ment.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>ShadowDO
M Inspector</title>"," <style>"," body {"," }"," pre {",'
font: 9pt "Courier New", monospace;'," line-height: 1.5em;"," }",
" tag {"," color: purple;"," }"," ul {"," margin:
0;"," padding: 0;"," list-style: none;"," }"," li {","
display: inline-block;"," background-color: #f1f1f1;","
padding: 4px 6px;"," border-radius: 4px;"," margin-right: 4px;"
," }"," </style>"," </head>"," <body>",' <ul id="crumbs">'," </u
l>",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=functio
n(){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.i
dx=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=f
unction(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector
("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEac
h.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+" ";g(b,f
unction(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag></"+e+"></ta
g>",f+="<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f
},k=[],l=function(a){var b="<tag><",c=a.localName||"shadow-root";return a.web
kitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.shadow
ize.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+="></
tag>"};shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b
.webkitShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),console.di
r(this))},a.output=j}(window.Inspector),function(){var a=document.createElement(
"style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresol
ved] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.querySe
lector("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){function b(
a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var
e;switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.apply(th
is);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){HTML
Imports.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)}functi
on 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}(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])return b;var e=new URL(b,a);return c?e.href:d
(e.href)}function d(a){var b=new URL(document.baseURI),c=new URL(a,b);return c.h
ost===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("..");retu
rn f.join("/")+b.search+b.hash}var f={resolveDom:function(a,b){b=b||a.ownerDocum
ent.baseURI,this.resolveAttributes(a,b),this.resolveStyles(a,b);var c=a.querySel
ectorAll("template");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)d.content&&
this.resolveDom(d.content,b)},resolveTemplate:function(a){this.resolveDom(a.cont
ent,a.ownerDocument.baseURI)},resolveStyles:function(a,b){var c=a.querySelectorA
ll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveStyle(d,
b)},resolveStyle:function(a,b){b=b||a.ownerDocument.baseURI,a.textContent=this.r
esolveCssText(a.textContent,b)},resolveCssText:function(a,c,d){return a=b(a,c,d,
g),b(a,c,d,h)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAttributes(
)&&this.resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(j);if(c)for(va
r d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)},resolve
ElementAttributes:function(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}(Platform),function(a){function b(a){u.push(a),t||(t=!0,q(d
))}function c(a){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapI
fNeeded(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.observer===a&&b.removeTransientObservers()})}
)}function f(a,b){for(var c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;
e<d.length;e++){var f=d[e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f.enqu
eue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],this.records_=[],this.ui
d_=++v}function h(a,b){this.type=a,this.target=b,this.addedNodes=[],this.removed
Nodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null
,this.attributeNamespace=null,this.oldValue=null}function i(a){var b=new h(a.typ
e,a.target);return b.addedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNod
es.slice(),b.previousSibling=a.previousSibling,b.nextSibling=a.nextSibling,b.att
ributeName=a.attributeName,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)}function l(){w=x=void 0}function m(a){return a===x||a===w}func
tion 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=wind
ow.msSetImmediate;if(!q){var r=[],s=String(Math.random());window.addEventListene
r("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.protot
ype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterDa
ta||b.attributeOldValue&&!b.attributes||b.attributeFilter&&b.attributeFilter.len
gth&&!b.attributes||b.characterDataOldValue&&!b.characterData)throw new SyntaxEr
ror;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].observe
r===this){e=d[f],e.removeListeners(),e.options=b;break}e||(e=new o(this,a,b),d.p
ush(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.obser
ver===this){d.removeListeners(),b.splice(c,1);break}}},this),this.records_=[]},t
akeRecords:function(){var a=this.records_;return this.records_=[],a}};var w,x;o.
prototype={enqueue:function(a){var c=this.observer.records_,d=c.length;if(c.leng
th>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.addListeners_(this.target)},addListeners_:func
tion(a){var b=this.options;b.attributes&&a.addEventListener("DOMAttrModified",th
is,!0),b.characterData&&a.addEventListener("DOMCharacterDataModified",this,!0),b
.childList&&a.addEventListener("DOMNodeInserted",this,!0),(b.childList||b.subtre
e)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){thi
s.removeListeners_(this.target)},removeListeners_:function(a){var b=this.options
;b.attributes&&a.removeEventListener("DOMAttrModified",this,!0),b.characterData&
&a.removeEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.remove
EventListener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.removeEvent
Listener("DOMNodeRemoved",this,!0)},addTransientObserver:function(a){if(a!==this
.target){this.addListeners_(a),this.transientObservedNodes.push(a);var b=p.get(a
);b||p.set(a,b=[]),b.push(this)}},removeTransientObservers:function(){var a=this
.transientObservedNodes;this.transientObservedNodes=[],a.forEach(function(a){thi
s.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++)if(b[c]===this){b.sp
lice(c,1);break}},this)},handleEvent:function(a){switch(a.stopImmediatePropagati
on(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI
,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attributeNamespace=c;var
g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f(d,function(a){return
!a.attributes||a.attributeFilter&&a.attributeFilter.length&&-1===a.attributeFilt
er.indexOf(b)&&-1===a.attributeFilter.indexOf(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.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.removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,fun
ction(a){return a.childList?e:void 0})}l()}},a.JsMutationObserver=g,a.MutationOb
server||(a.MutationObserver=g)}(this),window.HTMLImports=window.HTMLImports||{fl
ags:{}},function(a){var b=(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={}
,this.onload=a,this.oncomplete=b,this.inflight=0,this.pending={}};d.prototype={a
ddNodes:function(a){this.inflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c
]);c++)this.require(b);this.checkDone()},addNode:function(a){this.inflight++,thi
s.require(a),this.checkDone()},require:function(a){var b=a.src||a.href;a.__nodeU
rl=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.cac
he[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):decodeURIComponent(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(va
r g,h=0,i=f.length;i>h&&(g=f[h]);h++)this.onload(e||a,g,d),this.tail();this.pend
ing[a]=null,e&&e!==a&&(this.pending[e]=null)},tail:function(){--this.inflight,th
is.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},b=b||{as
ync:!0,ok:function(a){return 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.fl
ags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.async),f.addEventListener("re
adystatechange",function(){if(4===f.readyState){var a=f.getResponseHeader("Locat
ion"),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){t
his.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=d(a),c="data:text/javascript";try{c+=";base64,"+btoa(b)}catch(e){c+=";char
set=utf-8,"+encodeURIComponent(b)}return c}function d(a){return a.textContent+e(
a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c="["+Ma
th.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){var
b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,n.r
esolveUrlsInStyle(b),b}var g="import",h=a.flags,i=/Trident/.test(navigator.userA
gent),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/java
script"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyl
e"},parseNext:function(){var a=this.nextToParse();a&&this.parse(a)},parse:functi
on(a){if(this.isParsed(a))return void(h.parse&&console.log("[%s] is already pars
ed",a.localName));var b=this[this.map[a.localName]];b&&(this.markParsing(a),b.ca
ll(this,a))},markParsing:function(a){h.parse&&console.log("parsing",a),this.pars
ingElement=a},markParsingComplete:function(a){a.__importParsed=!0,a.__importElem
ent&&(a.__importElement.__importParsed=!0),this.parsingElement=null,h.parse&&con
sole.log("completed",a)},invalidateParse:function(a){a&&a.__importLink&&(a.__imp
ortParsed=a.__importLink.__importParsed=!1,this.parseSoon())},parseSoon:function
(){this._parseSoon&&cancelAnimationFrame(this._parseDelay);var a=this;this._pars
eSoon=requestAnimationFrame(function(){a.parseNext()})},parseImport:function(a){
if(HTMLImports.__importsParsingHook&&HTMLImports.__importsParsingHook(a),a.impor
t.__importParsed=!0,this.markParsingComplete(a),a.dispatchEvent(a.__resource?new
CustomEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pen
ding)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.p
arseNext()},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.p
arseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.
parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document.head.app
endChild(a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.markP
arsingComplete(a),c.parseNext()};if(a.addEventListener("load",d),a.addEventListe
ner("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:functio
n(b){var d=document.createElement("script");d.__importElement=b,d.src=b.src?b.sr
c:c(b),a.currentScript=b,this.trackElement(d,function(){d.parentNode.removeChild
(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.lengt
h;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.hasResource(d)?b(d)?this.ne
xtToParseInDoc(d.import,d):d:void 0;return c},parseSelectorsForNode:function(a){
var b=a.ownerDocument||a;return b===j?this.documentSelectors:this.importsSelecto
rs},isParsed:function(a){return a.__importParsed},hasResource:function(a){return
b(a)&&!a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]
*)(;)/g,n={resolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElemen
t("a");return a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolv
eUrlsInCssText:function(a,b){var c=this.replaceUrls(a,b,l);return c=this.replace
Urls(c,b,m)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){va
r 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){va
r 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.bas
eURI=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.innerH
TML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateEl
ement.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.remov
eEventListener(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.addEvent
Listener("load",d),h.addEventListener("error",d));else c()}function i(a){return
o?a.import&&"loading"!==a.import.readyState||a.__loaded:a.__importParsed}functio
n j(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)k(b)&&l(b)}function k(a){retur
n"link"===a.localName&&"import"===a.rel}function l(a){var b=a.import;b?m({target
: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.fla
gs,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:{},
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.querySel
ectorAll(this.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a
.ownerDocument||a;return b===r?this.documentPreloadSelectors:this.importsPreload
Selectors},loaded:function(a,c,e){if(p.load&&console.log("loaded",a,c),c.__resou
rce=e,b(c)){var f=this.documents[a];f||(f=d(e,a),f.__importLink=c,this.bootDocum
ent(f),this.documents[a]=f),c.import=f}u.parseNext()},bootDocument:function(a){t
his.loadSubtree(a),this.observe(a),u.parseNext()},loadedAll:function(){u.parseNe
xt()}},v=new t(s.loaded.bind(s),s.loadedAll.bind(s));var w={get:function(){retur
n HTMLImports.currentScript||document.currentScript},configurable:!0};if(Object.
defineProperty(document,"_currentScript",w),Object.defineProperty(r,"_currentScr
ipt",w),!document.baseURI){var x={get:function(){return window.location.href},co
nfigurable:!0};Object.defineProperty(document,"baseURI",x),Object.defineProperty
(r,"baseURI",x)}var y=HTMLImports.isIE?"complete":"interactive",z="readystatecha
nge";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.hasN
ative=n,a.useNative=o,a.importer=s,a.IMPORT_LINK_TYPE=q,a.isImportLoaded=i,a.imp
ortLoader=v,a.whenReady=e,a.whenImportsReady=e}(window.HTMLImports),function(a){
function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"childList"===b.type&&b
.addedNodes.length&&c(b.addedNodes)}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.l
ength&&c(e.children)}function d(a){return 1===a.nodeType&&g.call(a,f.loadSelecto
rsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:!0})}var f=(a.IMPO
RT_LINK_TYPE,a.importer),g=(a.parser,HTMLElement.prototype.matches||HTMLElement.
prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElem
ent.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector),h=new
MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function(){function a
(){HTMLImports.importer.bootDocument(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?window.ShadowDOMPolyfill.wrapIfNeeded(document):documen
t;HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImports.ready
Time=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{b
ubbles:!0}))}),HTMLImports.useNative||("complete"===document.readyState||"intera
ctive"===document.readyState&&!window.attachEvent?a():document.addEventListener(
"DOMContentLoaded",a))}(),window.CustomElements=window.CustomElements||{flags:{}
},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.firstChi
ld;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c
,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadowRoot;c;
)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?!0:void
c(a,d)}),c(a,d)}function e(a){return h(a)?(i(a),!0):void l(a)}function f(a){d(a,
function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}function h(b
){if(!b.__upgraded__&&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.loca
lName),a.upgrade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,f
unction(a){l(a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.Platform&&win
dow.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for(var a,b=E,c=
0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(){m(a)}):m(a)
}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A.dom)&&
(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__inserted
||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.warn("inse
rted:",a.localName,"insert/remove count:",a.__inserted):a.attachedCallback&&(A.d
om&&console.log("inserted:",a.localName),a.attachedCallback())),A.dom&&console.g
roupEnd())}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.__upgrade
d__&&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&&consol
e.warn("removed:",a.localName,"insert/remove count:",a.__inserted):a.detachedCal
lback&&a.detachedCallback()),A.dom&&console.groupEnd())}function q(a){return win
dow.ShadowDOMPolyfill?ShadowDOMPolyfill.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.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.l
ocalName)||"";d=d.split("/?").shift().split("/").pop()}console.group("mutations
(%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList"===a.type&&(G(a.adde
dNodes,function(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.localName&
&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()}functio
n w(a){F.observe(a,{childList:!0,subtree:!0})}function x(a){w(a)}function y(a){A
.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a),A.dom&&
console.groupEnd()}function z(a){a=q(a);for(var b,c=a.querySelectorAll("link[rel
="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&z(b.impo
rt);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImports.IMPORT_LINK_
TYPE:"none",C=!window.MutationObserver||window.MutationObserver===window.JsMutat
ionObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver(u),G=A
rray.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_TYPE=B,a
.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f,a.inser
tedNode=i,a.observeDocument=x,a.upgradeDocument=y,a.takeRecords=v}(window.Custom
Elements),function(a){function b(b,g){var h=g||{};if(!b)throw new Error("documen
t.registerElement: first argument `name` must not be empty");if(b.indexOf("-")<0
)throw new Error("document.registerElement: first argument ('name') must contain
a dash ('-'). Argument provided was '"+String(b)+"'."); | 15 },addEventListener("DOMContentLoaded",function(){if(CustomElements.useNative===!
1){var a=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot=f
unction(){var b=a.call(this);return CustomElements.watchShadow(this),b}}}),Platf
orm.templateContent=function(a){if(window.HTMLTemplateElement&&HTMLTemplateEleme
nt.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._content){for(var
b=document.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);a.
_content=b}return a.content||a._content}}(window.Platform),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.define
Property(c,a,e)}function d(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b)
;return c||d(Object.getPrototypeOf(a),b)}}Function.prototype.bind||(Function.pro
totype.bind=function(a){var b=this,c=Array.prototype.slice.call(arguments,1);ret
urn function(){var d=c.slice();return d.push.apply(d,arguments),b.apply(a,d)}}),
a.mixin=b}(window.Platform),function(a){"use strict";function b(a,b,c){var d="st
ring"==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=D
OMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var a=0;a
<arguments.length;a++)c.call(this,arguments[a])},DOMTokenList.prototype.remove=f
unction(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a])},DOMToken
List.prototype.toggle=function(a,b){1==arguments.length&&(b=!this.contains(a)),b
?this.add(a):this.remove(a)},DOMTokenList.prototype.switch=function(a,b){a&&this
.remove(a),b&&this.add(b)};var e=function(){return Array.prototype.slice.call(th
is)},f=window.NamedNodeMap||window.MozNamedAttrMap||{};if(NodeList.prototype.arr
ay=e,f.prototype.array=e,HTMLCollection.prototype.array=e,!window.performance){v
ar g=Date.now();window.performance={now:function(){return Date.now()-g}}}window.
requestAnimationFrame||(window.requestAnimationFrame=function(){var a=window.web
kitRequestAnimationFrame||window.mozRequestAnimationFrame;return a?function(b){r
eturn a(function(){b(performance.now())})}:function(a){return window.setTimeout(
a,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=functio
n(){return window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||fu
nction(a){clearTimeout(a)}}());var h=[],i=function(){h.push(arguments)};window.P
olymer=i,a.deliverDeclarations=function(){return a.deliverDeclarations=function(
){throw"Possible attempt to load Polymer twice"},h},window.addEventListener("DOM
ContentLoaded",function(){window.Polymer===i&&(window.Polymer=function(){console
.error('You tried to use polymer without loading it first. To load polymer, <lin
k rel="import" href="components/polymer/polymer.html">')})}),a.createDOM=b}(wind
ow.Platform),function(a){a.templateContent=a.templateContent||function(a){return
a.content}}(window.Platform),function(a){a=a||(window.Inspector={});var b;windo
w.sinspect=function(a,d){b||(b=window.open("","ShadowDOM Inspector",null,!0),b.d
ocument.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 "Courie
r New", monospace;'," line-height: 1.5em;"," }"," tag {","
color: purple;"," }"," ul {"," margin: 0;"," paddin
g: 0;"," list-style: none;"," }"," li {"," display: in
line-block;"," background-color: #f1f1f1;"," padding: 4px 6px;",
" border-radius: 4px;"," margin-right: 4px;"," }"," </st
yle>"," </head>"," <body>",' <ul id="crumbs">'," </ul>",' <div id="tr
ee"></div>'," </body>","</html>"].join("\n"),d=[],e=function(){var a=b.document
,c=a.querySelector("#crumbs");c.textContent="";for(var e,g=0;e=d[g];g++){var h=a
.createElement("a");h.href="#",h.textContent=e.localName,h.idx=g,h.onclick=funct
ion(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
.document;k=[];var g=c||a;d.push(g),e(),f.body.querySelector("#tree").innerHTML=
"<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.forEach.call.bind(Array.pr
ototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLATE:1},i=function(a){retu
rn 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.ge
tDistributedNodes()),f+="<br/>";var h=d+" ";g(b,function(a){f+=j(a,a.
childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag></"+e+"></tag>",f+="<br/>")}else
{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}return f},k=[],l=function(a)
{var b="<tag><",c=a.localName||"shadow-root";return a.webkitShadowRoot||a.sha
dowRoot?(b+=' <button 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+="></tag>"};shadowize=fun
ction(){var a=Number(this.attributes.idx.value),b=k[a];b?f(b.webkitShadowRoot||b
.shadowRoot,b):(console.log("bad shadowize node"),console.dir(this))},a.output=j
}(window.Inspector),function(){var a=document.createElement("style");a.textConte
nt="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; di
splay: block; overflow: hidden; } \n";var b=document.querySelector("head");b.ins
ertBefore(a,b.firstChild)}(Platform),function(a){function b(a,b){return b=b||[],
b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var e;switch(arguments.l
ength){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.whenImportsR
eady(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.MutationObse
rver||JsMutationObserver)(c).observe(f,{characterData:!0}),a.endOfMicrotask=b}(P
latform),function(a){function b(a,b,d,e){return a.replace(e,function(a,e,f,g){va
r 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){var 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.s
hift();for(var g=0,h=e.length-1;h>g;g++)f.unshift("..");return f.join("/")+b.sea
rch+b.hash}var f={resolveDom:function(a,b){b=b||a.ownerDocument.baseURI,this.res
olveAttributes(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.co
ntent,b)},resolveTemplate:function(a){this.resolveDom(a.content,a.ownerDocument.
baseURI)},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:fun
ction(a,b){b=b||a.ownerDocument.baseURI,a.textContent=this.resolveCssText(a.text
Content,b)},resolveCssText:function(a,c,d){return a=b(a,c,d,g),b(a,c,d,h)},resol
veAttributes:function(a,b){a.hasAttributes&&a.hasAttributes()&&this.resolveEleme
ntAttributes(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:fu
nction(a,d){d=d||a.ownerDocument.baseURI,i.forEach(function(e){var f,h=a.attribu
tes[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
}(Platform),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){ret
urn window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}functi
on 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.observer===a&&b.removeTransientObservers()})})}function f(a,b){fo
r(var c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){var
f=d[e],g=f.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){this.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.previo
usSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNames
pace=null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);return b
.addedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.previou
sSibling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attribu
teName,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}functio
n j(a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x)}fu
nction 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.optio
ns=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.p
ush(a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:functio
n(a,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOldVa
lue&&!b.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attributes||
b.characterDataOldValue&&!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.r
emoveListeners(),e.options=b;break}e||(e=new o(this,a,b),d.push(e),this.nodes_.p
ush(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.remove
Listeners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:function(
){var a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueue:f
unction(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:fu
nction(){this.addListeners_(this.target)},addListeners_:function(a){var b=this.o
ptions;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characterDa
ta&&a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.addEve
ntListener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventListen
er("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(t
his.target)},removeListeners_:function(a){var b=this.options;b.attributes&&a.rem
oveEventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventListen
er("DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DOMNo
deInserted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNodeRem
oved",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.addLis
teners_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b
.push(this)}},removeTransientObservers:function(){var a=this.transientObservedNo
des;this.transientObservedNodes=[],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}},th
is)},handleEvent:function(a){switch(a.stopImmediatePropagation(),a.type){case"DO
MAttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j(
"attributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange===Mu
tationEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a.att
ributeFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1===
a.attributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"DOMC
haracterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d,fu
nction(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});break;c
ase"DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted":va
r 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.removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a.ch
ildList?e:void 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.MutationO
bserver=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.
oncomplete=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);this.checkDone()},addNode:function(a){this.inflight++,this.require(a),this.ch
eckDone()},require:function(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):decodeURIComponent(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++)this.onload(e||a,g,d),this.tail();this.pending[a]=null,e&&e!==a
&&(this.pending[e]=null)},tail:function(){--this.inflight,this.checkDone()},chec
kDone:function(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a
){return a.status>=200&&a.status<300||304===a.status||0===a.status},load:functio
n(c,d,e){var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+M
ath.random()),f.open("GET",c,b.async),f.addEventListener("readystatechange",func
tion(){if(4===f.readyState){var a=f.getResponseHeader("Location"),c=null;if(a)va
r c="/"===a.substr(0,1)?location.origin+a:c;d.call(e,!b.ok(f)&&f,f.response||f.r
esponseText,c)}}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).resp
onseType="document"}},a.xhr=b,a.Loader=d}(window.HTMLImports),function(a){functi
on b(a){return"link"===a.localName&&a.rel===g}function c(a){var b=d(a),c="data:t
ext/javascript";try{c+=";base64,"+btoa(b)}catch(e){c+=";charset=utf-8,"+encodeUR
IComponent(b)}return c}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*(Math.r
andom()+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.ownerDocument.c
reateElement("style");return b.textContent=a.textContent,n.resolveUrlsInStyle(b)
,b}var g="import",h=a.flags,i=/Trident/.test(navigator.userAgent),j=window.Shado
wDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={documen
tSelectors:"link[rel="+g+"]",importsSelectors:["link[rel="+g+"]","link[rel=style
sheet]","style","script:not([type])",'script[type="text/javascript"]'].join(",")
,map:{link:"parseLink",script:"parseScript",style:"parseStyle"},parseNext:functi
on(){var a=this.nextToParse();a&&this.parse(a)},parse:function(a){if(this.isPars
ed(a))return void(h.parse&&console.log("[%s] is already parsed",a.localName));va
r b=this[this.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},markPar
sing:function(a){h.parse&&console.log("parsing",a),this.parsingElement=a},markPa
rsingComplete:function(a){a.__importParsed=!0,a.__importElement&&(a.__importElem
ent.__importParsed=!0),this.parsingElement=null,h.parse&&console.log("completed"
,a)},invalidateParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__import
Link.__importParsed=!1,this.parseSoon())},parseSoon:function(){this._parseSoon&&
cancelAnimationFrame(this._parseDelay);var a=this;this._parseSoon=requestAnimati
onFrame(function(){a.parseNext()})},parseImport:function(a){if(HTMLImports.__imp
ortsParsingHook&&HTMLImports.__importsParsingHook(a),a.import.__importParsed=!0,
this.markParsingComplete(a),a.dispatchEvent(a.__resource?new CustomEvent("load",
{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(var b;a.__p
ending.length;)b=a.__pending.shift(),b&&b({target:a});this.parseNext()},parseLin
k:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.parseGeneric(a))},par
seStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.parseGeneric(a)},par
seGeneric:function(a){this.trackElement(a),this.addElementToDocument(a)},rootImp
ortForElement:function(a){for(var b=a;b.ownerDocument.__importLink;)b=b.ownerDoc
ument.__importLink;return b},addElementToDocument:function(a){for(var b=this.roo
tImportForElement(a.__importElement||a),c=b.__insertedElements=b.__insertedEleme
nts||0,d=b.nextElementSibling,e=0;c>e;e++)d=d&&d.nextElementSibling;b.parentNode
.insertBefore(a,d)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),
c.markParsingComplete(a),c.parseNext()};if(a.addEventListener("load",d),a.addEve
ntListener("error",d),i&&"style"===a.localName){var e=!1;if(-1==a.textContent.in
dexOf("@import"))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRules,h=g?g.l
ength:0,j=0;h>j&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boolean(f.styl
eSheet))}e&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:
function(b){var d=document.createElement("script");d.__importElement=b,d.src=b.s
rc?b.src:c(b),a.currentScript=b,this.trackElement(d,function(){d.parentNode.remo
veChild(d),a.currentScript=null}),this.addElementToDocument(d)},nextToParse:func
tion(){return!this.parsingElement&&this.nextToParseInDoc(j)},nextToParseInDoc:fu
nction(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:funct
ion(a){var b=a.ownerDocument||a;return b===j?this.documentSelectors:this.imports
Selectors},isParsed:function(a){return a.__importParsed},hasResource:function(a)
{return b(a)&&!a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\(
))([^;]*)(;)/g,n={resolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.creat
eElement("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)},replaceUrls: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.pa
rser=k,a.path=n,a.isIE=i}(HTMLImports),function(a){function b(a){return c(a,q)}f
unction c(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function d(
a,b){var c=a;c instanceof Document||(c=document.implementation.createHTMLDocumen
t(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","ut
f-8"),c.head.appendChild(e),c.head.appendChild(d),a instanceof Document||(c.body
.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTem
plateElement.bootstrap(c),c}function e(a,b){b=b||r,g(function(){h(a,b)},b)}funct
ion 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.removeEventListener(z,c),g(a,b))};b.addEventListener(z,c)}}function h(a,b){fun
ction c(){f==g&&a&&a()}function d(){f++,c()}var e=b.querySelectorAll("link[rel=i
mport]"),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.a
ddEventListener("load",d),h.addEventListener("error",d));else c()}function i(a){
return o?a.import&&"loading"!==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.localName&&"import"===a.rel}function l(a){var b=a.import;b?m(
{target:a}):(a.addEventListener("load",m),a.addEventListener("error",m))}functio
n m(a){a.target.__loaded=!0}var n="import"in document.createElement("link"),o=n,
p=a.flags,q="import",r=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(d
ocument):document;if(o)var s={};else var t=(a.xhr,a.Loader),u=a.parser,s={docume
nts:{},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.q
uerySelectorAll(this.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){
var b=a.ownerDocument||a;return b===r?this.documentPreloadSelectors:this.imports
PreloadSelectors},loaded: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.bo
otDocument(f),this.documents[a]=f),c.import=f}u.parseNext()},bootDocument:functi
on(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.currentScript||document.currentScript},configurable:!0};if(
Object.defineProperty(document,"_currentScript",w),Object.defineProperty(r,"_cur
rentScript",w),!document.baseURI){var x={get:function(){return window.location.h
ref},configurable:!0};Object.defineProperty(document,"baseURI",x),Object.defineP
roperty(r,"baseURI",x)}var y=HTMLImports.isIE?"complete":"interactive",z="readys
tatechange";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.hasNative=n,a.useNative=o,a.importer=s,a.IMPORT_LINK_TYPE=q,a.isImportLoaded=
i,a.importLoader=v,a.whenReady=e,a.whenImportsReady=e}(window.HTMLImports),funct
ion(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"childList"===b.
type&&b.addedNodes.length&&c(b.addedNodes)}function c(a){for(var b,e,g=0,h=a.len
gth;h>g&&(e=a[g]);g++)b=b||e.ownerDocument,d(e)&&f.loadNode(e),e.children&&e.chi
ldren.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.call(a,f.load
SelectorsForNode(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||HTMLE
lement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||H
TMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector
),h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function(){fun
ction a(){HTMLImports.importer.bootDocument(b)}"function"!=typeof window.CustomE
vent&&(window.CustomEvent=function(a,b){var c=document.createEvent("HTMLEvents")
;return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c})
;var b=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):
document;HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImport
s.readyTime=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoa
ded",{bubbles:!0}))}),HTMLImports.useNative||("complete"===document.readyState||
"interactive"===document.readyState&&!window.attachEvent?a():document.addEventLi
stener("DOMContentLoaded",a))}(),window.CustomElements=window.CustomElements||{f
lags:{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for(e=a.f
irstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0
&&b(e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.shadow
Root;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return d(a)?!
0:void c(a,d)}),c(a,d)}function e(a){return h(a)?(i(a),!0):void l(a)}function f(
a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)}funct
ion h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAttribut
e("is")||b.localName,d=a.registry[c];if(d)return A.dom&&console.group("upgrade:"
,b.localName),a.upgrade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a),r(a)
&&d(a,function(a){l(a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.Platfo
rm&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for(var a
,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(){m(a)
}):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgraded__&&A
.dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__inserted=(a.__i
nserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&console.war
n("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attachedCallbac
k&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),A.dom&&co
nsole.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){C?j(fu
nction(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallback||a.__
upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)||(a.__ins
erted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?A.dom&
&console.warn("removed:",a.localName,"insert/remove count:",a.__inserted):a.deta
chedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function q(a){ret
urn window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function r(a){f
or(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}function s
(a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watching shado
w-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}f
unction t(a){a.__watched||(w(a),a.__watched=!0)}function u(a){if(A.dom){var b=a[
0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.addedNode
s[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._URL||c.host&&c
.host.localName)||"";d=d.split("/?").shift().split("/").pop()}console.group("mut
ations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList"===a.type&&(G
(a.addedNodes,function(a){a.localName&&g(a)}),G(a.removedNodes,function(a){a.loc
alName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecords()),k()}
function w(a){F.observe(a,{childList:!0,subtree:!0})}function x(a){w(a)}function
y(a){A.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a),
A.dom&&console.groupEnd()}function z(a){a=q(a);for(var b,c=a.querySelectorAll("l
ink[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&z
(b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImports.IMPOR
T_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver===window.
JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationObserver
(u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPORT_LINK_T
YPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubtree=f,
a.insertedNode=i,a.observeDocument=x,a.upgradeDocument=y,a.takeRecords=v}(window
.CustomElements),function(a){function b(b,g){var h=g||{};if(!b)throw new Error("
document.registerElement: first argument `name` must not be empty");if(b.indexOf
("-")<0)throw new Error("document.registerElement: first argument ('name') must
contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))throw new
Error("Failed to execute 'registerElement' on 'Document': Registration failed f
or type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new Error("Du
plicateDefinitionError: a type with name '"+String(b)+"' is already registered")
;if(!h.prototype)throw new Error("Options missing required prototype property");
return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.ancestry=d(h.exten
ds),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.prototype=h.protot
ype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTree(document),h.ct
or}function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}function d(a){v
ar b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,c=a.exten
ds,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a.__name)}fu
nction f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){var c=doc
ument.createElement(a.tag),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),i(b,c),b.__upgraded__=!0,k(b),a.insertedNode(b),a.upgradeSubtr
ee(b),b}function i(a,b){Object.__proto__?a.__proto__=b.prototype:(j(a,b.prototyp
e,b.native),a.__proto__=b.prototype)}function j(a,b,c){for(var d={},e=b;e!==c&&e
!==HTMLElement.prototype;){for(var f,g=Object.getOwnPropertyNames(e),h=0;f=g[h];
h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(e,f)),d[f]=
1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a.createdCallbac
k()}function l(a){if(!a.setAttribute._polyfilled){var b=a.setAttribute;a.setAttr
ibute=function(a,c){m.call(this,a,c,b)};var c=a.removeAttribute;a.removeAttribut
e=function(a){m.call(this,a,null,c)},a.setAttribute._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.attributeChangedCallback&&e!==d&&this.attributeChange
dCallback(a,d,e)}function n(a){return a?z[a.toLowerCase()]:void 0}function o(a,b
){z[a]=b}function p(a){return function(){return g(a)}}function q(a,b,c){return a
===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==c.is)retu
rn new c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=r(a);return d.setAttrib
ute("is",b),d}var d=B(a);return a.indexOf("-")>=0&&i(d,HTMLElement),d}function s
(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttribute("is
"),c=n(b||a.localName);if(c){if(b&&c.tag==a.localName)return h(a,c);if(!b&&!c.ex
tends)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.regis
terElement),w=!u.register&&v&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||H
TMLImports.useNative);if(w){var x=function(){};a.registry={},a.upgradeElement=x,
a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgradeSubtree=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","fon
t-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.create
ElementNS.bind(document),D=Node.prototype.cloneNode;document.registerElement=b,d
ocument.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 instan
ceof b}:function(a,b){for(var c=a;c;){if(c===b.prototype)return!0;c=c.__proto__}
return!1},a.instanceof=E,a.reservedTagList=y,document.register=document.register
Element,a.hasNative=v,a.useNative=w}(window.CustomElements),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){i
f(!a.__parsed){a.__parsed=!0;var b=a.querySelectorAll(d.selectors);e(b,function(
a){d[d.map[a.localName]](a)}),CustomElements.upgradeDocument(a),CustomElements.o
bserveDocument(a)}},parseLink:function(a){b(a)&&this.parseImport(a)},parseImport
:function(a){a.import&&d.parse(a.import)}},e=Array.prototype.forEach.call.bind(A
rray.prototype.forEach);a.parser=d,a.IMPORT_LINK_TYPE=c}(window.CustomElements),
function(a){function b(){CustomElements.parser.parse(document),CustomElements.up
gradeDocument(document);var a=window.Platform&&Platform.endOfMicrotask?Platform.
endOfMicrotask:setTimeout; |
16 if(c(b))throw new Error("Failed to execute 'registerElement' on 'Document': Regi
stration failed for type '"+String(b)+"'. The type name is invalid.");if(n(b))th
row new Error("DuplicateDefinitionError: a type with name '"+String(b)+"' is alr
eady registered");if(!h.prototype)throw new Error("Options missing required prot
otype property");return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.a
ncestry=d(h.extends),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.p
rototype=h.prototype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTr
ee(document),h.ctor}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){fo
r(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)}function f(a){if(!Object.__proto__){var b=HTMLElement.prototype;i
f(a.is){var c=document.createElement(a.tag),d=Object.getPrototypeOf(c);d===a.pro
totype&&(b=d)}for(var e,f=a.prototype;f&&f!==b;)e=Object.getPrototypeOf(f),f.__p
roto__=e,f=e;a.native=b}}function g(a){return h(B(a.tag),a)}function h(b,c){retu
rn c.is&&b.setAttribute("is",c.is),b.removeAttribute("unresolved"),i(b,c),b.__up
graded__=!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.proto
type)}function j(a,b,c){for(var d={},e=b;e!==c&&e!==HTMLElement.prototype;){for(
var f,g=Object.getOwnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.definePropert
y(a,f,Object.getOwnPropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}
function k(a){a.createdCallback&&a.createdCallback()}function l(a){if(!a.setAttr
ibute._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,nul
l,c)},a.setAttribute._polyfilled=!0}}function m(a,b,c){a=a.toLowerCase();var d=t
his.getAttribute(a);c.apply(this,arguments);var e=this.getAttribute(a);this.attr
ibuteChangedCallback&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){
return a?z[a.toLowerCase()]:void 0}function o(a,b){z[a]=b}function p(a){return f
unction(){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)retu
rn 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.nodeT
ype===Node.ELEMENT_NODE){var b=a.getAttribute("is"),c=n(b||a.localName);if(c){if
(b&&c.tag==a.localName)return h(a,c);if(!b&&!c.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.ShadowDOMPolyfill&&(!window.HTMLImports||HTMLImports.useNative);if(w){var
x=function(){};a.registry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.u
pgradeAll=x,a.upgradeSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgrade
DocumentTree=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=docume
nt.createElement.bind(document),C=document.createElementNS.bind(document),D=Node
.prototype.cloneNode;document.registerElement=b,document.createElement=r,documen
t.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.prototype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.rese
rvedTagList=y,document.register=document.registerElement,a.hasNative=v,a.useNati
ve=w}(window.CustomElements),function(a){function b(a){return"link"===a.localNam
e&&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;va
r b=a.querySelectorAll(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),C
ustomElements.upgradeDocument(a),CustomElements.observeDocument(a)}},parseLink:f
unction(a){b(a)&&this.parseImport(a)},parseImport:function(a){a.import&&d.parse(
a.import)}},e=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.parse
r=d,a.IMPORT_LINK_TYPE=c}(window.CustomElements),function(a){function b(){Custom
Elements.parser.parse(document),CustomElements.upgradeDocument(document);var a=w
indow.Platform&&Platform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(fun
ction(){CustomElements.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLI
mports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),
document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})),windo
w.HTMLImports&&(HTMLImports.__importsParsingHook=function(a){CustomElements.pars
er.parse(a.import)})})}if("function"!=typeof window.CustomEvent&&(window.CustomE
vent=function(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,!
0,!0),b}),"complete"===document.readyState||a.flags.eager)b();else if("interacti
ve"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLI
mports.ready){var c=window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"
DOMContentLoaded";window.addEventListener(c,b)}else b()}(window.CustomElements),
function(){if(window.ShadowDOMPolyfill){var a=["upgradeAll","upgradeSubtree","ob
serveDocument","upgradeDocument"],b={};a.forEach(function(a){b[a]=CustomElements
[a]}),a.forEach(function(a){CustomElements[a]=function(c){return b[a](wrap(c))}}
)}}(),function(a){function b(a){this.cache=Object.create(null),this.map=Object.c
reate(null),this.requests=0,this.regex=a}var c=a.endOfMicrotask;b.prototype={ext
ractUrls: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.e
xtractUrls(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)},handleXhr:function(a){var b=a.match,c=b.url,d=a.response||a.responseTex
t||"";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.o
nerror=b.onload=this.handleXhr.bind(this,b),b.pending=[],b.resolve=function(){fo
r(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){fu
nction b(){this.loader=new d(this.regex)}var c=a.urlResolver,d=a.Loader;b.protot
ype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\)]*;/g,resolve:function(a,b,c
){var d=function(d){c(this.flatten(a,b,d))}.bind(this);this.loader.process(a,b,d
)},resolveNode:function(a,b,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),fun
ction(){"use strict";function a(a){for(;a.parentNode;)a=a.parentNode;return"func
tion"==typeof a.getElementById?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}func
tion d(a){return null==a?"":a}function e(a,b){a.data=d(b)}function f(a){return f
unction(b){return e(a,b)}}function g(a,b,c,e){return c?void(e?a.setAttribute(b,"
"):a.removeAttribute(b)):void a.setAttribute(b,d(e))}function h(a,b,c){return fu
nction(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(/Tri
dent|MSIE/.test(navigator.userAgent))return"change";default:return"input"}}funct
ion 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.discardC
hanges(),(d||l)(a),Platform.performMicrotaskCheckpoint()}var f=i(a);return a.add
EventListener(f,e),{close:function(){a.removeEventListener(f,e),c.close()},obser
vable_:c}}function n(a){return Boolean(a)}function o(b){if(b.form)return s(b.for
m.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.tagName&&"radio"===a.type&&o(a).forEach(function(a){var b=a.bindi
ngs_.checked;b&&b.observable_.setValue(!1)})}function q(a,b){var c,e,f,g=a.paren
tNode;g instanceof HTMLSelectElement&&g.bindings_&&g.bindings_.value&&(c=g,e=c.b
indings_.value,f=c.value),a.value=d(b),c&&c.value!=f&&(e.observable_.setValue(c.
value),e.observable_.discardChanges(),Platform.performMicrotaskCheckpoint())}fun
ction r(a){return function(b){q(a,b)}}var s=Array.prototype.filter.call.bind(Arr
ay.prototype.filter);Node.prototype.bind=function(a,b){console.error("Unhandled
binding to Node: ",this,a,b)},Node.prototype.bindFinished=function(){};var t=c;O
bject.defineProperty(Platform,"enableBindingsReflection",{get:function(){return
t===b},set:function(a){return t=a?b:c,a},configurable:!0}),Text.prototype.bind=f
unction(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)},Elemen
t.prototype.bind=function(a,b,c){var d="?"==a[a.length-1];if(d&&(this.removeAttr
ibute(a),a=a.slice(0,-1)),c)return g(this,a,d,b);var e=b;return g(this,a,d,e.ope
n(h(this,a,d))),t(this,a,e)};var u;!function(){var a=document.createElement("div
"),b=a.appendChild(document.createElement("input"));b.setAttribute("type","check
box");var c,d=0;b.addEventListener("click",function(){d++,c=c||"click"}),b.addEv
entListener("change",function(){d++,c=c||"change"});var e=document.createEvent("
MouseEvent");e.initMouseEvent("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=functio
n(a,c,e){if("value"!==a&&"checked"!==a)return HTMLElement.prototype.bind.call(th
is,a,c,e);this.removeAttribute(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 HTMLElement.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,"va
lue",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptionElement.prototype.bind=fu
nction(a,b,c){if("value"!==a)return HTMLElement.prototype.bind.call(this,a,b,c);
if(this.removeAttribute("value"),c)return q(this,b);var d=b,e=m(this,"value",d);
return q(this,d.open(r(this))),t(this,a,e)},HTMLSelectElement.prototype.bind=fun
ction(a,c,d){if("selectedindex"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"v
alue"!==a)return HTMLElement.prototype.bind.call(this,a,c,d);if(this.removeAttri
bute(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){if(b){for(var d,e="#"+b;!d&&(a=c(a),a.protoContent_?d=a.protoCon
tent_.querySelector(e):a.getElementById&&(d=a.getElementById(b)),!d&&a.templateC
reator_);)a=a.templateCreator_;return d}}function e(a){return"template"==a.tagNa
me&&"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.isTemplate_="TEMPLATE"==a.tagName||g(a)),a.isTemplate_}functio
n i(a,b){var c=a.querySelectorAll(N);h(a)&&b(a),G(c,b)}function j(a){function b(
a){HTMLTemplateElement.decorate(a)||j(a.content)}i(a,b)}function k(a,b){Object.g
etOwnPropertyNames(b).forEach(function(c){Object.defineProperty(a,c,Object.getOw
nPropertyDescriptor(b,c))})}function l(a){var b=a.ownerDocument;if(!b.defaultVie
w)return b;var c=b.templateContentsOwner_;if(!c){for(c=b.implementation.createHT
MLDocument("");c.lastChild;)c.removeChild(c.lastChild);b.templateContentsOwner_=
c}return c}function m(a){if(!a.stagingDocument_){var b=a.ownerDocument;if(!b.sta
gingDocument_){b.stagingDocument_=b.implementation.createHTMLDocument(""),b.stag
ingDocument_.isStagingDocument=!0;var c=b.stagingDocument_.createElement("base")
;c.href=document.baseURI,b.stagingDocument_.head.appendChild(c),b.stagingDocumen
t_.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.stagingDocument_}ret
urn a.stagingDocument_}function n(a){var b=a.ownerDocument.createElement("templa
te");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){va
r e=c[d];K[e.name]&&("template"!==e.name&&b.setAttribute(e.name,e.value),a.remov
eAttribute(e.name))}return b}function o(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];b.setAttribute(e.name,e.value),a.removeAttribute(e.name)}return a
.parentNode.removeChild(a),b}function p(a,b,c){var d=a.content;if(c)return void
d.appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}function q(a){P?a.__
proto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement.prototype)}functio
n 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.setModelFnSched
uled_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,
b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.index
Of("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"
),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e||[],e
.push(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l;var o=d&&d(n,b,
c);e.push(null==o?Path.get(n):null),e.push(o),h=i+2}return h===f&&e.push(""),e.h
asOnePath=5===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.onlyOne
Time=j,e.combinator=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=e.hasO
nePath?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.isSimp
lePath?f:b.combinator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/
4]=e?e(d,c):b[h+1].getValueFrom(d)}return b.combinator(g)}function u(a,b,c,d){va
r e=b[3],f=e?e(d,c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:new Obse
rverTransform(f,b.combinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,
c,d);if(b.hasOnePath)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;f<b.le
ngth;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)}function 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.isTemplat
e=!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)retu
rn y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b);if(c
)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.appendCh
ild(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.setDele
gate_(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.bind
ingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var d=a.bi
ndingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this.close
d=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.iteratedVal
ue=[],this.presentValue=void 0,this.arrayObserver=void 0}var F,G=Array.prototype
.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a.Map.prot
otype.forEach?F=a.Map:(F=function(){this.keys=[],this.values=[]},F.prototype={se
t:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.values.pu
sh(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(!(0>b))re
turn this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);return 0>b?
!1:(this.keys.splice(b,1),this.values.splice(b,1),!0)},forEach:function(a,b){for
(var c=0;c<this.keys.length;c++)a.call(b||this,this.values[c],this.keys[c],this)
}});"function"!=typeof document.contains&&(Document.prototype.contains=function(
a){return a===this||a.parentNode===this?!0:this.documentElement.contains(a)});va
r H="bind",I="repeat",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,OP
TGROUP:!0},M="undefined"!=typeof HTMLTemplateElement;M&&!function(){var a=docume
nt.createElement("template"),b=a.content.ownerDocument,c=b.appendChild(b.createE
lement("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){return a.toLowerCase()+"[template]"}).join(", ");document.addEv
entListener("DOMContentLoaded",function(){j(document),Platform.performMicrotaskC
heckpoint()},!1),M||(a.HTMLTemplateElement=function(){throw TypeError("Illegal c
onstructor")});var O,P="__proto__"in{};"function"==typeof MutationObserver&&(O=n
ew MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].target.refChange
d_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIsDecorated_)ret
urn!1;var d=a;d.templateIsDecorated_=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||(g(d)?
(b(!c),d=n(a),d.templateIsDecorated_=!0,h=M,m=!0):e(d)&&(d=o(a),d.templateIsDeco
rated_=!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.HTMLUnknownElement||HTMLElement,R={get:function(){return this.content
_},enumerable:!0,configurable:!0};M||(HTMLTemplateElement.prototype=Object.creat
e(Q.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"content",R))
,k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a)return Elemen
t.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function(a){d.setAttri
bute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),this.refChange
d_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_={ref:b},b)},pr
ocessBindingDirectives_:function(a){return this.iterator_&&this.iterator_.closeD
eps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new E(this)),this.
iterator_.updateDependencies(a,this.model_),O&&O.observe(this,{attributes:!0,att
ributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterator_.clos
e(),this.iterator_=void 0))},createInstance:function(a,b,c){b?c=this.newDelegate
_(b):c||(c=this.delegate_),this.refContent_||(this.refContent_=this.ref_.content
);var d=this.refContent_;if(null===d.firstChild)return T;var e=D(d,c),f=m(this),
g=f.createDocumentFragment();g.templateCreator_=this,g.protoContent_=d,g.binding
s_=[],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)}return h.firstNode=g.firstChild,h.lastNode=g.lastChild,g.templat
eCreator_=void 0,g.protoContent_=void 0,g},get model(){return this.model_},set m
odel(a){this.model_=a,r(this)},get bindingDelegate(){return this.delegate_&&this
.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==this.r
ef_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.iterato
r_.updateIteratedValue())},clear:function(){this.model_=void 0,this.delegate_=vo
id 0,this.bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.refCont
ent_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.close(
),this.iterator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.binding
Map_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,th
is.iterator_.instanceModelFn_=void 0)},newDelegate_:function(a){function b(b){va
r c=a&&a[b];if("function"==typeof c)return function(){return c.apply(a,arguments
)}}if(a)return{bindingMaps:{},raw:a,prepareBinding:b("prepareBinding"),prepareIn
stanceModel:b("prepareInstanceModel"),prepareInstancePositionChanged:b("prepareI
nstancePositionChanged")}},set bindingDelegate(a){if(this.delegate_)throw Error(
"Template must be cleared before a new bindingDelegate can be assigned");this.se
tDelegate_(this.newDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref
"));if(a||(a=this.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}});var
S=1;Object.defineProperty(Node.prototype,"templateInstance",{get:function(){var
a=this.templateInstance_;return a?a:this.parentNode?this.parentNode.templateInst
ance:void 0}});var T=document.createDocumentFragment();T.bindings_=[],T.terminat
or_=null,E.prototype={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&
&a.ifValue.close(),a.oneTime===!1&&a.value.close())},updateDependencies:function
(a,b){this.closeDeps();var c=this.deps={},d=this.templateElement_;if(a.if){if(c.
hasIf=!0,c.ifOneTime=a.if.onlyOneTime,c.ifValue=v(J,a.if,d,b),c.ifOneTime&&!c.if
Value)return void this.updateIteratedValue();c.ifOneTime||c.ifValue.open(this.up
dateIteratedValue,this)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.v
alue=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,a.
bind,d,b)),c.oneTime||c.value.open(this.updateIteratedValue,this),this.updateIte
ratedValue()},updateIteratedValue:function(){if(this.deps.hasIf){var a=this.deps
.ifValue;if(this.deps.ifOneTime||(a=a.discardChanges()),!a)return void this.valu
eChanged()}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.valueChanged(b,c)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!
==this.iteratedValue&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserv
er=new ArrayObserver(this.presentValue),this.arrayObserver.open(this.handleSplic
es,this)),this.handleSplices(ArrayObserver.calculateSplices(this.presentValue,th
is.iteratedValue)))},getLastInstanceNode:function(a){if(-1==a)return this.templa
teElement_;var b=this.instances[a],c=b.terminator_;if(!c)return this.getLastInst
anceNode(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.templateElement_===c)retur
n c;var d=c.iterator_;return d?d.getLastTemplateNode():c},getLastTemplateNode:fu
nction(){return this.getLastInstanceNode(this.instances.length-1)},insertInstanc
eAt:function(a,b){var c=this.getLastInstanceNode(a-1),d=this.templateElement_.pa
rentNode;this.instances.splice(a,0,b),d.insertBefore(b,c.nextSibling)},extractIn
stanceAt:function(a){for(var b=this.getLastInstanceNode(a-1),c=this.getLastInsta
nceNode(a),d=this.templateElement_.parentNode,e=this.instances.splice(a,1)[0];c!
==b;){var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},
getDelegateFn:function(a){return a=a&&a(this.templateElement_),"function"==typeo
f a?a:null},handleSplices:function(a){if(!this.closed&&a.length){var b=this.temp
lateElement_;if(!b.parentNode)return void this.close();ArrayObserver.applySplice
s(this.iteratedValue,this.presentValue,a);var c=b.delegate_;void 0===this.instan
ceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)
),void 0===this.instancePositionChangedFn_&&(this.instancePositionChangedFn_=thi
s.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.e
xtractInstanceAt(g.index+e);k!==T&&d.set(j,k)}e-=g.addedCount}for(var f=0;f<a.le
ngth;f++)for(var g=a[f],l=g.index;l<g.index+g.addedCount;l++){var j=this.iterate
dValue[l],k=d.get(j);k?d.delete(j):(this.instanceModelFn_&&(j=this.instanceModel
Fn_(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.instancePosition
ChangedFn_&&this.reportInstancesMoved(a)}},reportInstanceMoved:function(a){var b
=this.instances[a];b!==T&&this.instancePositionChangedFn_(b.templateInstance_,a)
},reportInstancesMoved: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.addedCount;)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++},closeInstanceBindings:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)
b[c].close()},unobserve:function(){this.arrayObserver&&(this.arrayObserver.close
(),this.arrayObserver=void 0)},close:function(){if(!this.closed){this.unobserve(
);for(var a=0;a<this.instances.length;a++)this.closeInstanceBindings(this.instan
ces[a]);this.instances.length=0,this.closeDeps(),this.templateElement_.iterator_
=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),func
tion(a){function b(){e||(e=!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&co
nsole.group("Platform.flush()"),a.performMicrotaskCheckpoint(),logFlags.data&&co
nsole.groupEnd()}))}var c=document.createElement("style");c.textContent="templat
e {display: none !important;} /* injected by platform.js */";var d=document.quer
ySelector("head");d.insertBefore(c,d.firstChild);var e;if(Observer.hasObjectObse
rve)b=function(){};else{var f=125;window.addEventListener("WebComponentsReady",f
unction(){b(),a.flushPoll=setInterval(b,f)})}if(window.CustomElements&&!CustomEl
ements.useNative){var g=Document.prototype.importNode;Document.prototype.importN
ode=function(a,b){var c=g.call(this,a,b);return CustomElements.upgradeAll(c),c}}
a.flush=b}(window.Platform); | 16 a(function(){CustomElements.ready=!0,CustomElements.readyTime=Date.now(),window.
HTMLImports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyT
ime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})),
window.HTMLImports&&(HTMLImports.__importsParsingHook=function(a){CustomElements
.parser.parse(a.import)})})}if("function"!=typeof window.CustomEvent&&(window.Cu
stomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");return
c.initCustomEvent(a,Boolean(b.bubbles),Boolean(b.cancelable),b.detail),c},windo
w.CustomEvent.prototype=window.Event.prototype),"complete"===document.readyState
||a.flags.eager)b();else if("interactive"!==document.readyState||window.attachEv
ent||window.HTMLImports&&!window.HTMLImports.ready){var c=window.HTMLImports&&!H
TMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(
c,b)}else b()}(window.CustomElements),function(){if(window.ShadowDOMPolyfill){va
r a=["upgradeAll","upgradeSubtree","observeDocument","upgradeDocument"],b={};a.f
orEach(function(a){b[a]=CustomElements[a]}),a.forEach(function(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}v
ar 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);th
is.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=thi
s.xhr(f),e.match=d,this.cache[f]=e),e.wait(g)},handleXhr:function(a){var b=a.mat
ch,c=b.url,d=a.response||a.responseText||"";this.map[c]=d,this.fetch(this.extrac
tUrls(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=this.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.Loa
der=b}(window.Platform),function(a){function b(){this.loader=new d(this.regex)}v
ar c=a.urlResolver,d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([^'"
\)]*)['"\)]*;/g,resolve:function(a,b,c){var d=function(d){c(this.flatten(a,b,d))
}.bind(this);this.loader.process(a,b,d)},resolveNode:function(a,b,c){var d=a.tex
tContent,e=function(b){a.textContent=b,c(a)};this.resolve(d,b,e)},flatten:functi
on(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.match
ed,g);return a},loadStyles:function(a,b,c){function d(){f++,f===g&&c&&c()}for(va
r 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.getElementById?a:null}func
tion b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&c[b].close(),
d[b]=c}function c(a,b,c){return c}function d(a){return null==a?"":a}function e(a
,b){a.data=d(b)}function f(a){return function(b){return e(a,b)}}function g(a,b,c
,e){return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAttribu
te(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-o
ne":return"change";case"range":if(/Trident|MSIE/.test(navigator.userAgent))retur
n"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){fu
nction e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrota
skCheckpoint()}var f=i(a);return a.addEventListener(f,e),{close:function(){a.rem
oveEventListener(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.tagName&&"radio"===a.type&&
o(a).forEach(function(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)
})}function q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bi
ndings_&&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(),Plat
form.performMicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var
s=Array.prototype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=f
unction(a,b){console.error("Unhandled binding to Node: ",this,a,b)},Node.prototy
pe.bindFinished=function(){};var t=c;Object.defineProperty(Platform,"enableBindi
ngsReflection",{get:function(){return t===b},set:function(a){return t=a?b:c,a},c
onfigurable:!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(thi
s,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.slice(0,-1)),c)return g(this,
a,d,b);var e=b;return g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};var u;!functi
on(){var a=document.createElement("div"),b=a.appendChild(document.createElement(
"input"));b.setAttribute("type","checkbox");var c,d=0;b.addEventListener("click"
,function(){d++,c=c||"click"}),b.addEventListener("change",function(){d++,c=c||"
change"});var e=document.createEvent("MouseEvent");e.initMouseEvent("click",!0,!
0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u=1==d?"change":c}(),H
TMLInputElement.prototype.bind=function(a,c,e){if("value"!==a&&"checked"!==a)ret
urn HTMLElement.prototype.bind.call(this,a,c,e);this.removeAttribute(a);var f="c
hecked"==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.prot
otype.bind=function(a,b,c){if("value"!==a)return HTMLElement.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("value"!==a)return HTMLEl
ement.prototype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return
q(this,b);var d=b,e=m(this,"value",d);return q(this,d.open(r(this))),t(this,a,e)
},HTMLSelectElement.prototype.bind=function(a,c,d){if("selectedindex"===a&&(a="s
electedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bin
d.call(this,a,c,d);if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(t
his,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){f
or(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.templateCreator_;return d}}f
unction e(a){return"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namesp
aceURI}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("temp
late"))}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){HTMLTemplateElement.decorate(a)||j(a.co
ntent)}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.lastChild;)c.removeChild(
c.lastChild);b.templateContentsOwner_=c}return c}function m(a){if(!a.stagingDocu
ment_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implem
entation.createHTMLDocument(""),b.stagingDocument_.isStagingDocument=!0;var c=b.
stagingDocument_.createElement("base");c.href=document.baseURI,b.stagingDocument
_.head.appendChild(c),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.s
tagingDocument_=b.stagingDocument_}return a.stagingDocument_}function n(a){var b
=a.ownerDocument.createElement("template");a.parentNode.insertBefore(b,a);for(va
r 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.parentNode.insertBefore(b,a);
for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.val
ue),a.removeAttribute(e.name)}return a.parentNode.removeChild(a),b}function p(a,
b,c){var d=a.content;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;
)d.appendChild(e)}function q(a){P?a.__proto__=HTMLTemplateElement.prototype:k(a,
HTMLTemplateElement.prototype)}function r(a){a.setModelFn_||(a.setModelFn_=funct
ion(){a.setModelFnScheduled_=!1;var b=z(a,a.delegate_&&a.delegate_.prepareBindin
g);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelFnScheduled_=!0,Observer
.runEOM_(a.setModelFn_))}function s(a,b,c,d){if(a&&a.length){for(var e,f=a.lengt
h,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}"
;if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)ret
urn;e.push(a.slice(h));break}e=e||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).t
rim();e.push(l),j=j&&l;var o=d&&d(n,b,c);e.push(null==o?Path.get(n):null),e.push
(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e.length,e.isSimplePath=e.ha
sOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combinator=function(a){for(var b=
e[0],c=1;c<e.length;c+=4){var d=e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=
e[c+3]}return b},e}}function t(a,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0
):b[2].getValueFrom(d);return b.isSimplePath?f:b.combinator(f)}for(var g=[],h=1;
h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return
b.combinator(g)}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.hasOnePath)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.getVal
ueFrom(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.bi
nd(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)}function 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.repea
t=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.nodeType===Node.TEXT_NODE){
var c=s(a.data,"textContent",a,b);if(c)return["textContent",c]}return[]}function
A(a,b,c,d,e,f,g){for(var h=b.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&&(HTMLTemp
lateElement.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}functio
n 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,v
oid 0)||[]),d}function E(a){this.closed=!1,this.templateElement_=a,this.instance
s=[],this.deps=void 0,this.iteratedValue=[],this.presentValue=void 0,this.arrayO
bserver=void 0}var F,G=Array.prototype.forEach.call.bind(Array.prototype.forEach
);a.Map&&"function"==typeof a.Map.prototype.forEach?F=a.Map:(F=function(){this.k
eys=[],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){v
ar 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.splice(b,1),this.values.spli
ce(b,1),!0)},forEach:function(a,b){for(var c=0;c<this.keys.length;c++)a.call(b||
this,this.values[c],this.keys[c],this)}});"function"!=typeof document.contains&&
(Document.prototype.contains=function(a){return a===this||a.parentNode===this?!0
:this.documentElement.contains(a)});var H="bind",I="repeat",J="if",K={template:!
0,repeat:!0,bind:!0,ref:!0},L={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLG
ROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},M="undefined"!=typeof HTMLTempl
ateElement;M&&!function(){var a=document.createElement("template"),b=a.content.o
wnerDocument,c=b.appendChild(b.createElement("html")),d=c.appendChild(b.createEl
ement("head")),e=b.createElement("base");e.href=document.baseURI,d.appendChild(e
)}();var N="template, "+Object.keys(L).map(function(a){return a.toLowerCase()+"[
template]"}).join(", ");document.addEventListener("DOMContentLoaded",function(){
j(document),Platform.performMicrotaskCheckpoint()},!1),M||(a.HTMLTemplateElement
=function(){throw TypeError("Illegal constructor")});var O,P="__proto__"in{};"fu
nction"==typeof MutationObserver&&(O=new MutationObserver(function(a){for(var b=
0;b<a.length;b++)a[b].target.refChanged_()})),HTMLTemplateElement.decorate=funct
ion(a,c){if(a.templateIsDecorated_)return!1;var d=a;d.templateIsDecorated_=!0;va
r h=f(d)&&M,i=h,k=!h,m=!1;if(h||(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=
M,m=!0):e(d)&&(d=o(a),d.templateIsDecorated_=!0,h=M)),!h){q(d);var r=l(d);d.cont
ent_=r.createDocumentFragment()}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.cont
ent),!0},HTMLTemplateElement.bootstrap=j;var Q=a.HTMLUnknownElement||HTMLElement
,R={get:function(){return this.content_},enumerable:!0,configurable:!0};M||(HTML
TemplateElement.prototype=Object.create(Q.prototype),Object.defineProperty(HTMLT
emplateElement.prototype,"content",R)),k(HTMLTemplateElement.prototype,{bind:fun
ction(a,b,c){if("ref"!=a)return Element.prototype.bind.call(this,a,b,c);var d=th
is,e=c?b:b.open(function(a){d.setAttribute("ref",a),d.refChanged_()});return thi
s.setAttribute("ref",e),this.refChanged_(),c?void 0:(this.bindings_?this.binding
s_.ref=b:this.bindings_={ref:b},b)},processBindingDirectives_:function(a){return
this.iterator_&&this.iterator_.closeDeps(),a.if||a.bind||a.repeat?(this.iterato
r_||(this.iterator_=new E(this)),this.iterator_.updateDependencies(a,this.model_
),O&&O.observe(this,{attributes:!0,attributeFilter:["ref"]}),this.iterator_):voi
d(this.iterator_&&(this.iterator_.close(),this.iterator_=void 0))},createInstanc
e:function(a,b,c){b?c=this.newDelegate_(b):c||(c=this.delegate_),this.refContent
_||(this.refContent_=this.ref_.content);var d=this.refContent_;if(null===d.first
Child)return T;var e=D(d,c),f=m(this),g=f.createDocumentFragment();g.templateCre
ator_=this,g.protoContent_=d,g.bindings_=[],g.terminator_=null;for(var h=g.templ
ateInstance_={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)}return h.firstNode=g.first
Child,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 binding
Delegate(){return this.delegate_&&this.delegate_.raw},refChanged_:function(){thi
s.iterator_&&this.refContent_!==this.ref_.content&&(this.refContent_=void 0,this
.iterator_.valueChanged(),this.iterator_.updateIteratedValue(this.iterator_.getU
pdatedValue()))},clear:function(){this.model_=void 0,this.delegate_=void 0,this.
bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.refContent_=void
0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.close(),this.ite
rator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.bindingMap_=void
0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterato
r_.instanceModelFn_=void 0)},newDelegate_:function(a){function b(b){var c=a&&a[b
];if("function"==typeof c)return function(){return c.apply(a,arguments)}}if(a)re
turn{bindingMaps:{},raw:a,prepareBinding:b("prepareBinding"),prepareInstanceMode
l:b("prepareInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePos
itionChanged")}},set bindingDelegate(a){if(this.delegate_)throw Error("Template
must be cleared before a new bindingDelegate can be assigned");this.setDelegate_
(this.newDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"));if(a||
(a=this.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}});var S=1;Object
.defineProperty(Node.prototype,"templateInstance",{get:function(){var a=this.tem
plateInstance_;return a?a:this.parentNode?this.parentNode.templateInstance:void
0}});var T=document.createDocumentFragment();T.bindings_=[],T.terminator_=null,E
.prototype={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue
.close(),a.oneTime===!1&&a.value.close())},updateDependencies:function(a,b){this
.closeDeps();var c=this.deps={},d=this.templateElement_,e=!0;if(a.if){if(c.hasIf
=!0,c.ifOneTime=a.if.onlyOneTime,c.ifValue=v(J,a.if,d,b),e=c.ifValue,c.ifOneTime
&&!e)return void this.valueChanged();c.ifOneTime||(e=e.open(this.updateIfValue,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));var f=c
.value;return c.oneTime||(f=f.open(this.updateIteratedValue,this)),e?void this.u
pdateValue(f):void this.valueChanged()},getUpdatedValue:function(){var a=this.de
ps.value;return this.deps.oneTime||(a=a.discardChanges()),a},updateIfValue:funct
ion(a){return a?void this.updateValue(this.getUpdatedValue()):void this.valueCha
nged()},updateIteratedValue:function(a){if(this.deps.hasIf){var b=this.deps.ifVa
lue;if(this.deps.ifOneTime||(b=b.discardChanges()),!b)return void this.valueChan
ged()}this.updateValue(a)},updateValue:function(a){this.deps.repeat||(a=[a]);var
b=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(a);this.valueChanged(a,b)
},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedValue&&(t
his.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObserver(thi
s.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.handleSpl
ices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue)))},get
LastInstanceNode:function(a){if(-1==a)return this.templateElement_;var b=this.in
stances[a],c=b.terminator_;if(!c)return this.getLastInstanceNode(a-1);if(c.nodeT
ype!==Node.ELEMENT_NODE||this.templateElement_===c)return c;var d=c.iterator_;re
turn d?d.getLastTemplateNode():c},getLastTemplateNode:function(){return this.get
LastInstanceNode(this.instances.length-1)},insertInstanceAt:function(a,b){var c=
this.getLastInstanceNode(a-1),d=this.templateElement_.parentNode;this.instances.
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.templa
teElement_.parentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nextSiblin
g;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},getDelegateFn:function(a
){return a=a&&a(this.templateElement_),"function"==typeof a?a:null},handleSplice
s:function(a){if(!this.closed&&a.length){var b=this.templateElement_;if(!b.paren
tNode)return void this.close();ArrayObserver.applySplices(this.iteratedValue,thi
s.presentValue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this.instan
ceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.instance
PositionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c&&c.pre
pareInstancePositionChanged));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(function(a){th
is.closeInstanceBindings(a)},this),this.instancePositionChangedFn_&&this.reportI
nstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.instances[a];b!==T
&&this.instancePositionChangedFn_(b.templateInstance_,a)},reportInstancesMoved:f
unction(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.addedCount;)th
is.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for(var f
=this.instances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanceBindin
gs:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},unobserve:
function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=vo
id 0)},close:function(){if(!this.closed){this.unobserve();for(var a=0;a<this.ins
tances.length;a++)this.closeInstanceBindings(this.instances[a]);this.instances.l
ength=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("Platform.fl
ush()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()}))}var
c=document.createElement("style");c.textContent="template {display: none !import
ant;} /* injected by platform.js */";var d=document.querySelector("head");d.inse
rtBefore(c,d.firstChild);var e;if(Observer.hasObjectObserve)b=function(){};else{
var f=125;window.addEventListener("WebComponentsReady",function(){b(),a.flushPol
l=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.Platfo
rm); |
17 //# sourceMappingURL=platform.js.map | 17 //# sourceMappingURL=platform.js.map |
OLD | NEW |