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.5-fe549bc | 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){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=N(b),
d=0;d<c.length;d++){var e=c[d];M(a,e,O(b,e))}return a}function e(a,b){for(var c=
N(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}M(a,e,O(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){P.value=c,M(a,b,P)}function h(a){var b=a.__proto__||Object.getPrototypeOf
(a),c=I.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 L&&l(a)?new F
unction("return this.__impl4cf1e782hg__."+a):function(){return this.__impl4cf1e7
82hg__[a]}}function n(a){return L&&l(a)?new Function("v","this.__impl4cf1e782hg_
_."+a+" = v"):function(b){this.__impl4cf1e782hg__[a]=b}}function o(a){return L&&
l(a)?new Function("return this.__impl4cf1e782hg__."+a+".apply(this.__impl4cf1e78
2hg__, arguments)"):function(){return this.__impl4cf1e782hg__[a].apply(this.__im
pl4cf1e782hg__,arguments)}}function p(a,b){try{return Object.getOwnPropertyDescr
iptor(a,b)}catch(c){return R}}function q(b,c,d){for(var e=N(b),f=0;f<e.length;f+
+){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polym
erBlackList_[g])){Q&&b.__lookupGetter__(g);var h,i,j=p(b,g);if(d&&"function"==ty
peof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.wr
itable||j.set)&&(i=l?a.getEventHandlerSetter(g):n(g)),M(c,g,{get:h,set:i,configu
rable:j.configurable,enumerable:j.enumerable})}}}}function r(a,b,c){var d=a.prot
otype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===I.get(a)),I
.set(a,b),J.set(e,a),i(a,e),d&&j(e,d),g(e,"constructor",b),b.prototype=e}functio
n t(a,b){return I.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)}v
ar c=Object.create(a.prototype);return c.constructor=b,b.prototype=c,b}function
w(a){return a&&a.__impl4cf1e782hg__}function x(a){return!w(a)}function y(a){retu
rn null===a?null:(c(x(a)),a.__wrapper8e3dd93a60__||(a.__wrapper8e3dd93a60__=new(
h(a))(a)))}function z(a){return null===a?null:(c(w(a)),a.__impl4cf1e782hg__)}fun
ction A(a){return a.__impl4cf1e782hg__}function B(a,b){b.__impl4cf1e782hg__=a,a.
__wrapper8e3dd93a60__=b}function C(a){return a&&w(a)?z(a):a}function D(a){return
a&&!w(a)?y(a):a}function E(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)),a.__wrap
per8e3dd93a60__=b)}function F(a,b,c){S.get=c,M(a.prototype,b,S)}function G(a,b){
F(a,b,function(){return y(this.__impl4cf1e782hg__[b])})}function H(a,b){a.forEac
h(function(a){b.forEach(function(b){a.prototype[b]=function(){var a=D(this);retu
rn a[b].apply(a,arguments)}})})}var I=new WeakMap,J=new WeakMap,K=Object.create(
null),L=b(),M=Object.defineProperty,N=Object.getOwnPropertyNames,O=Object.getOwn
PropertyDescriptor,P={value:void 0,configurable:!0,enumerable:!1,writable:!0};N(
window);var Q=/Firefox/.test(navigator.userAgent),R={get:function(){},set:functi
on(){},configurable:!0,enumerable:!0},S={get:void 0,configurable:!0,enumerable:!
0};a.assert=c,a.constructorTable=I,a.defineGetter=F,a.defineWrapGetter=G,a.forwa
rdMethodsToWrapper=H,a.isWrapper=w,a.isWrapperFor=t,a.mixin=d,a.nativePrototypeT
able=J,a.oneOf=f,a.registerObject=u,a.registerWrapper=r,a.rewrap=E,a.setWrapper=
B,a.unsafeUnwrap=A,a.unwrap=z,a.unwrapIfNeeded=C,a.wrap=y,a.wrapIfNeeded=D,a.wra
ppers=K}(window.ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;va
r 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.setEndOfMicrotas
k=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=
!0)}function c(){p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c]
,e=d.takeRecords();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,
b){this.type=a,this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=ne
w m.NodeList,this.previousSibling=null,this.nextSibling=null,this.attributeName=
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.options
.subtree&&e.addTransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.lengt
h;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.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&
&!("attributes"===c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!=
=e.namespace||-1===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.c
haracterData||"childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("att
ributes"===c&&l.attributeOldValue||"characterData"===c&&l.characterDataOldValue)
&&(g[m.uid_]=e.oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"nam
e"in e&&"namespace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespac
e),e.addedNodes&&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.r
emovedNodes),e.previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibl
ing&&(q.nextSibling=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.p
ush(q),o=!0}o&&b()}function h(a){if(this.childList=!!a.childList,this.subtree=!!
a.subtree,this.attributes="attributes"in a||!("attributeOldValue"in a||"attribut
eFilter"in a)?!!a.attributes:!0,this.characterData="characterDataOldValue"in a&&
!("characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldVal
ue||"attributeFilter"in a)||!this.characterData&&a.characterDataOldValue)throw n
ew TypeError;if(this.characterData=!!a.characterData,this.attributeOldValue=!!a.
attributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue,"attribut
eFilter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeFilter)thr
ow new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else this.attrib
uteFilter=null}function i(a){this.callback_=a,this.nodes_=[],this.records_=[],th
is.uid_=++r,o.push(this)}function j(a,b,c){this.observer=a,this.target=b,this.op
tions=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeede
d,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={
constructor:i,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.removeTransie
ntObservers(),c.options=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))}
,disconnect: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.prototype={addTransientObserver:function(a){if(a!==this.target){this.tran
sientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},remove
TransientObservers:function(){var a=this.transientObservedNodes;this.transientOb
servedNodes=[];for(var b=0;b<a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.leng
th;e++)if(d[e]===this){d.splice(e,1);break}}},a.enqueueMutation=g,a.registerTran
sientObservers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(wind
ow.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.shadowR
oot;d;d=d.olderShadowRoot)d.treeScope_.parent=b;for(var e=a.firstChild;e;e=e.nex
tSibling)c(e,b)}}function d(c){if(c instanceof a.wrappers.Window,c.treeScope_)re
turn 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.ShadowRoo
t?a.getRendererForHost(this.root.host):null},contains:function(a){for(;a;a=a.par
ent)if(a===this)return!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScop
e=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a i
nstanceof S.ShadowRoot}function c(a){return L(a).root}function d(a,d){var h=[],i
=a;for(h.push(i);i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){va
r m=j[k];if(f(m)){var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.le
ngth-1]}else if(b(i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNo
de,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}return!1}function f(a){return a instanceof HT
MLShadowElement}function g(b){return a.getDestinationInsertionPoints(b)}function
h(a,b){if(0===a.length)return b;b instanceof S.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.p
op(),g=d.pop();if(f!==g)break;e=f}return e}function k(a,b,c){b instanceof S.Wind
ow&&(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}retu
rn null}function l(a,b){return L(a)===L(b)}function m(a){if(!U.get(a)&&(U.set(a,
!0),n(R(a),R(a.target)),J)){var b=J;throw J=null,b}}function n(b,c){if(V.get(b))
throw new Error("InvalidStateError");V.set(b,!0),a.renderAllPending();var e,f,g,
h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof S.Document&&(g=i.defaul
tView)&&(f=i,e=[])}if(!e)if(c instanceof S.Window)g=c,e=[];else if(e=d(c,b),"loa
d"!==b.type){var i=e[e.length-1];i instanceof S.Document&&(g=i.defaultView)}retu
rn bb.set(b,e),o(b,e,g,f)&&p(b,e,g,f)&&q(b,e,g,f),Z.set(b,cb),X.delete(b,null),V
.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=N(b),
d=0;d<c.length;d++){var e=c[d];M(a,e,O(b,e))}return a}function e(a,b){for(var c=
N(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}M(a,e,O(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){P.value=c,M(a,b,P)}function h(a){var b=a.__proto__||Object.getPrototypeOf
(a),c=I.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 L&&l(a)?new F
unction("return this.__impl4cf1e782hg__."+a):function(){return this.__impl4cf1e7
82hg__[a]}}function n(a){return L&&l(a)?new Function("v","this.__impl4cf1e782hg_
_."+a+" = v"):function(b){this.__impl4cf1e782hg__[a]=b}}function o(a){return L&&
l(a)?new Function("return this.__impl4cf1e782hg__."+a+".apply(this.__impl4cf1e78
2hg__, arguments)"):function(){return this.__impl4cf1e782hg__[a].apply(this.__im
pl4cf1e782hg__,arguments)}}function p(a,b){try{return Object.getOwnPropertyDescr
iptor(a,b)}catch(c){return R}}function q(b,c,d){for(var e=N(b),f=0;f<e.length;f+
+){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polym
erBlackList_[g])){Q&&b.__lookupGetter__(g);var h,i,j=p(b,g);if(d&&"function"==ty
peof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.wr
itable||j.set)&&(i=l?a.getEventHandlerSetter(g):n(g)),M(c,g,{get:h,set:i,configu
rable:j.configurable,enumerable:j.enumerable})}}}}function r(a,b,c){var d=a.prot
otype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===I.get(a)),I
.set(a,b),J.set(e,a),i(a,e),d&&j(e,d),g(e,"constructor",b),b.prototype=e}functio
n t(a,b){return I.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)}v
ar c=Object.create(a.prototype);return c.constructor=b,b.prototype=c,b}function
w(a){return a&&a.__impl4cf1e782hg__}function x(a){return!w(a)}function y(a){retu
rn null===a?null:(c(x(a)),a.__wrapper8e3dd93a60__||(a.__wrapper8e3dd93a60__=new(
h(a))(a)))}function z(a){return null===a?null:(c(w(a)),a.__impl4cf1e782hg__)}fun
ction A(a){return a.__impl4cf1e782hg__}function B(a,b){b.__impl4cf1e782hg__=a,a.
__wrapper8e3dd93a60__=b}function C(a){return a&&w(a)?z(a):a}function D(a){return
a&&!w(a)?y(a):a}function E(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)),a.__wrap
per8e3dd93a60__=b)}function F(a,b,c){S.get=c,M(a.prototype,b,S)}function G(a,b){
F(a,b,function(){return y(this.__impl4cf1e782hg__[b])})}function H(a,b){a.forEac
h(function(a){b.forEach(function(b){a.prototype[b]=function(){var a=D(this);retu
rn a[b].apply(a,arguments)}})})}var I=new WeakMap,J=new WeakMap,K=Object.create(
null),L=b(),M=Object.defineProperty,N=Object.getOwnPropertyNames,O=Object.getOwn
PropertyDescriptor,P={value:void 0,configurable:!0,enumerable:!1,writable:!0};N(
window);var Q=/Firefox/.test(navigator.userAgent),R={get:function(){},set:functi
on(){},configurable:!0,enumerable:!0},S={get:void 0,configurable:!0,enumerable:!
0};a.assert=c,a.constructorTable=I,a.defineGetter=F,a.defineWrapGetter=G,a.forwa
rdMethodsToWrapper=H,a.isWrapper=w,a.isWrapperFor=t,a.mixin=d,a.nativePrototypeT
able=J,a.oneOf=f,a.registerObject=u,a.registerWrapper=r,a.rewrap=E,a.setWrapper=
B,a.unsafeUnwrap=A,a.unwrap=z,a.unwrapIfNeeded=C,a.wrap=y,a.wrapIfNeeded=D,a.wra
ppers=K}(window.ShadowDOMPolyfill),function(a){"use strict";function b(){g=!1;va
r 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.setEndOfMicrotas
k=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(){p||(k(c),p=
!0)}function c(){p=!1;do for(var a=o.slice(),b=!1,c=0;c<a.length;c++){var d=a[c]
,e=d.takeRecords();f(d),e.length&&(d.callback_(e,d),b=!0)}while(b)}function d(a,
b){this.type=a,this.target=b,this.addedNodes=new m.NodeList,this.removedNodes=ne
w m.NodeList,this.previousSibling=null,this.nextSibling=null,this.attributeName=
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.options
.subtree&&e.addTransientObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.lengt
h;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.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&
&!("attributes"===c&&!l.attributes||"attributes"===c&&l.attributeFilter&&(null!=
=e.namespace||-1===l.attributeFilter.indexOf(e.name))||"characterData"===c&&!l.c
haracterData||"childList"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("att
ributes"===c&&l.attributeOldValue||"characterData"===c&&l.characterDataOldValue)
&&(g[m.uid_]=e.oldValue)}}}var o=!1;for(var p in f){var m=f[p],q=new d(c,a);"nam
e"in e&&"namespace"in e&&(q.attributeName=e.name,q.attributeNamespace=e.namespac
e),e.addedNodes&&(q.addedNodes=e.addedNodes),e.removedNodes&&(q.removedNodes=e.r
emovedNodes),e.previousSibling&&(q.previousSibling=e.previousSibling),e.nextSibl
ing&&(q.nextSibling=e.nextSibling),void 0!==g[p]&&(q.oldValue=g[p]),m.records_.p
ush(q),o=!0}o&&b()}function h(a){if(this.childList=!!a.childList,this.subtree=!!
a.subtree,this.attributes="attributes"in a||!("attributeOldValue"in a||"attribut
eFilter"in a)?!!a.attributes:!0,this.characterData="characterDataOldValue"in a&&
!("characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attributeOldVal
ue||"attributeFilter"in a)||!this.characterData&&a.characterDataOldValue)throw n
ew TypeError;if(this.characterData=!!a.characterData,this.attributeOldValue=!!a.
attributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue,"attribut
eFilter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeFilter)thr
ow new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else this.attrib
uteFilter=null}function i(a){this.callback_=a,this.nodes_=[],this.records_=[],th
is.uid_=++r,o.push(this)}function j(a,b,c){this.observer=a,this.target=b,this.op
tions=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeede
d,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={
constructor:i,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.removeTransie
ntObservers(),c.options=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))}
,disconnect: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.prototype={addTransientObserver:function(a){if(a!==this.target){this.tran
sientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},remove
TransientObservers:function(){var a=this.transientObservedNodes;this.transientOb
servedNodes=[];for(var b=0;b<a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.leng
th;e++)if(d[e]===this){d.splice(e,1);break}}},a.enqueueMutation=g,a.registerTran
sientObservers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(wind
ow.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.shadowR
oot;d;d=d.olderShadowRoot)d.treeScope_.parent=b;for(var e=a.firstChild;e;e=e.nex
tSibling)c(e,b)}}function d(c){if(c instanceof a.wrappers.Window,c.treeScope_)re
turn 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.ShadowRoo
t?a.getRendererForHost(this.root.host):null},contains:function(a){for(;a;a=a.par
ent)if(a===this)return!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScop
e=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a i
nstanceof S.ShadowRoot}function c(a){return L(a).root}function d(a,d){var h=[],i
=a;for(h.push(i);i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){va
r m=j[k];if(f(m)){var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.le
ngth-1]}else if(b(i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNo
de,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}return!1}function f(a){return a instanceof HT
MLShadowElement}function g(b){return a.getDestinationInsertionPoints(b)}function
h(a,b){if(0===a.length)return b;b instanceof S.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.p
op(),g=d.pop();if(f!==g)break;e=f}return e}function k(a,b,c){b instanceof S.Wind
ow&&(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}retu
rn null}function l(a,b){return L(a)===L(b)}function m(a){if(!U.get(a)&&(U.set(a,
!0),n(R(a),R(a.target)),J)){var b=J;throw J=null,b}}function n(b,c){if(V.get(b))
throw new Error("InvalidStateError");V.set(b,!0),a.renderAllPending();var e,f,g,
h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof S.Document&&(g=i.defaul
tView)&&(f=i,e=[])}if(!e)if(c instanceof S.Window)g=c,e=[];else if(e=d(c,b),"loa
d"!==b.type){var i=e[e.length-1];i instanceof S.Document&&(g=i.defaultView)}retu
rn bb.set(b,e),o(b,e,g,f)&&p(b,e,g,f)&&q(b,e,g,f),Z.set(b,cb),X.delete(b,null),V
.delete(b),b.defaultPrevented |
13 }function o(a,b,c,d){var e=db;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=eb,f=b[0
]||c;return r(f,a,e,b,d)}function q(a,b,c,d){for(var e=fb,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=
T.get(a);if(!f)return!0;var g=e||h(d,a);if(g===a){if(c===db)return!0;c===fb&&(c=
eb)}else if(c===fb&&!b.bubbles)return!0;if("relatedTarget"in b){var i=Q(b),j=i.r
elatedTarget;if(j){if(j instanceof Object&&j.addEventListener){var l=R(j),m=k(b,
a,l);if(m===g)return!0}else m=null;Y.set(b,m)}}Z.set(b,c);var n=b.type,o=!1;W.se
t(b,g),X.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===db||r.capture&&c===fb))try{if("fu
nction"==typeof r.handler?r.handler.call(a,b):r.handler.handleEvent(b),_.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!$.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 gb))return R(x(gb,"Event",a,b));var c=a;return rb||"beforeunloa
d"!==c.type?void O(c,this):new y(c)}function u(a){return a&&a.relatedTarget?Obje
ct.create(a,{relatedTarget:{value:Q(a.relatedTarget)}}):a}function v(a,b,c){var
d=window[a],e=function(b,c){return b instanceof d?void O(b,this):R(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]=Q(arguments[b]);var c=Q(this);c[a].apply(c,arguments)}}
function x(a,b,c,d){if(pb)return new a(c,u(d));var e=Q(document.createEvent(b)),
f=ob[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d?d[
a]:f[a];"relatedTarget"===a&&(b=Q(b)),g.push(b)}),e["init"+b].apply(e,g),e}funct
ion y(a){t.call(this,a)}function z(a){return"function"==typeof a?!0:a&&a.handleE
vent}function A(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChanged"
:case"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeInserted
":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedFrom
Document":case"DOMSubtreeModified":return!0}return!1}function B(a){O(a,this)}fun
ction C(a){return a instanceof S.ShadowRoot&&(a=a.host),Q(a)}function D(a,b){var
c=T.get(a);if(c)for(var d=0;d<c.length;d++)if(!c[d].removed&&c[d].type===b)retu
rn!0;return!1}function E(a,b){for(var c=Q(a);c;c=c.parentNode)if(D(R(c),b))retur
n!0;return!1}function F(a){K(a,tb)}function G(b,c,e,f){a.renderAllPending();var
g=R(ub.call(P(c),e,f));if(!g)return null;var i=d(g,null),j=i.lastIndexOf(b);retu
rn-1==j?null:(i=i.slice(0,j),h(i,b))}function H(a){return function(){var b=ab.ge
t(this);return b&&b[a]&&b[a].value||null}}function I(a){var b=a.slice(2);return
function(c){var d=ab.get(this);d||(d=Object.create(null),ab.set(this,d));var e=d
[a];if(e&&this.removeEventListener(b,e.wrapped,!1),"function"==typeof c){var f=f
unction(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.mixin,N=a
.registerWrapper,O=a.setWrapper,P=a.unsafeUnwrap,Q=a.unwrap,R=a.wrap,S=a.wrapper
s,T=(new WeakMap,new WeakMap),U=new WeakMap,V=new WeakMap,W=new WeakMap,X=new We
akMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new WeakMap,ab=new WeakMap,bb=
new WeakMap,cb=0,db=1,eb=2,fb=3;s.prototype={equals:function(a){return this.hand
ler===a.handler&&this.type===a.type&&this.capture===a.capture},get removed(){ret
urn null===this.handler},remove:function(){this.handler=null}};var gb=window.Eve
nt;gb.prototype.polymerBlackList_={returnValue:!0,keyLocation:!0},t.prototype={g
et target(){return W.get(this)},get currentTarget(){return X.get(this)},get even
tPhase(){return Z.get(this)},get path(){var a=bb.get(this);return a?a.slice():[]
},stopPropagation:function(){$.set(this,!0)},stopImmediatePropagation:function()
{$.set(this,!0),_.set(this,!0)}},N(gb,t,document.createEvent("Event"));var hb=v(
"UIEvent",t),ib=v("CustomEvent",t),jb={get relatedTarget(){var a=Y.get(this);ret
urn void 0!==a?a:R(Q(this).relatedTarget)}},kb=M({initMouseEvent:w("initMouseEve
nt",14)},jb),lb=M({initFocusEvent:w("initFocusEvent",5)},jb),mb=v("MouseEvent",h
b,kb),nb=v("FocusEvent",hb,lb),ob=Object.create(null),pb=function(){try{new wind
ow.FocusEvent("focus")}catch(a){return!1}return!0}();if(!pb){var qb=function(a,b
,c){if(c){var d=ob[c];b=M(M({},d),b)}ob[a]=b};qb("Event",{bubbles:!1,cancelable:
!1}),qb("CustomEvent",{detail:null},"Event"),qb("UIEvent",{view:null,detail:0},"
Event"),qb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altK
ey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),qb("FocusEv
ent",{relatedTarget:null},"UIEvent")}var rb=window.BeforeUnloadEvent;y.prototype
=Object.create(t.prototype),M(y.prototype,{get returnValue(){return P(this).retu
rnValue},set returnValue(a){P(this).returnValue=a}}),rb&&N(rb,y);var sb=window.E
ventTarget,tb=["addEventListener","removeEventListener","dispatchEvent"];[Node,W
indow].forEach(function(a){var b=a.prototype;tb.forEach(function(a){Object.defin
eProperty(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=T.get(this);if(e){for(var f=0;f<e.length;
f++)if(d.equals(e[f]))return}else e=[],e.depth=0,T.set(this,e);e.push(d);var g=C
(this);g.addEventListener_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boole
an(c);var d=T.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:function(b){var c=Q(b
),d=c.type;U.set(c,!1),a.renderAllPending();var e;E(this,d)||(e=function(){},thi
s.addEventListener(d,e,!0));try{return Q(this).dispatchEvent_(c)}finally{e&&this
.removeEventListener(d,e,!0)}}},sb&&N(sb,B);var ub=document.elementFromPoint;a.e
lementFromPoint=G,a.getEventHandlerGetter=H,a.getEventHandlerSetter=I,a.wrapEven
tTargetMethods=F,a.wrappers.BeforeUnloadEvent=y,a.wrappers.CustomEvent=ib,a.wrap
pers.Event=t,a.wrappers.EventTarget=B,a.wrappers.FocusEvent=nb,a.wrappers.MouseE
vent=mb,a.wrappers.UIEvent=hb}(window.ShadowDOMPolyfill),function(a){"use strict
";function b(a,b){Object.defineProperty(a,b,p)}function c(a){j(a,this)}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(this,a)}var g=a.wr
appers.UIEvent,h=a.mixin,i=a.registerWrapper,j=a.setWrapper,k=a.unsafeUnwrap,l=a
.wrap,m=window.TouchEvent;if(m){var n;try{n=document.createEvent("TouchEvent")}c
atch(o){return}var p={enumerable:!1};c.prototype={get target(){return l(k(this).
target)}};var q={configurable:!0,enumerable:!0,get:null};["clientX","clientY","s
creenX","screenY","pageX","pageY","identifier","webkitRadiusX","webkitRadiusY","
webkitRotationAngle","webkitForce"].forEach(function(a){q.get=function(){return
k(this)[a]},Object.defineProperty(c.prototype,a,q)}),d.prototype={item:function(
a){return this[a]}},f.prototype=Object.create(g.prototype),h(f.prototype,{get to
uches(){return e(k(this).touches)},get targetTouches(){return e(k(this).targetTo
uches)},get changedTouches(){return e(k(this).changedTouches)},initTouchEvent:fu
nction(){throw new Error("Not implemented")}}),i(m,f,n),a.wrappers.Touch=c,a.wra
ppers.TouchEvent=f,a.wrappers.TouchList=d}}(window.ShadowDOMPolyfill),function(a
){"use strict";function b(a,b){Object.defineProperty(a,b,h)}function c(){this.le
ngth=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]=g(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]
=function(){return d(f(this)[b].apply(f(this),arguments))}}var f=a.unsafeUnwrap,
g=a.wrap,h={enumerable:!1};c.prototype={item:function(a){return this[a]}},b(c.pr
ototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d
}(window.ShadowDOMPolyfill),function(a){"use strict";a.wrapHTMLCollection=a.wrap
NodeList,a.wrappers.HTMLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill
),function(a){"use strict";function b(a){A(a instanceof w)}function c(a){var b=n
ew y;return b[0]=a,b.length=1,b}function d(a,b,c){C(b,"childList",{removedNodes:
c,previousSibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){
C(a,"childList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFr
agment){var f=h(a);P=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].p
arentNode_=b;P=!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.parentNo
de_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previous
Sibling_=a),f}function g(a){if(a instanceof DocumentFragment)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.fi
rstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){ret
urn a}function j(a,b){I(a,b),a.nodeIsInserted_()}function k(a,b){for(var c=D(b),
d=0;d<a.length;d++)j(a[d],c)}function l(a){I(a,new z(a,null))}function m(a){for(
var b=0;b<a.length;b++)l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NOD
E?a:a.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.len
gth){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)retu
rn K(b[0]);for(var d=K(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.a
ppendChild(K(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.nex
tSibling_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidate
ShadowRenderer()){for(var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSib
ling,d=K(b),e=d.parentNode;e&&W.call(e,d),b.previousSibling_=b.nextSibling_=b.pa
rentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=K(a),g=f.fir
stChild;g;)c=g.nextSibling,W.call(f,g),g=c}function s(a){var b=a.parentNode;retu
rn 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){var d;if(d=M(c?Q.call(c,J(a),
!1):R.call(J(a),!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u
(e,!0,c));if(a instanceof O.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){i
f(!b||D(a)!==D(b))return!1;for(var c=b;c;c=c.parentNode)if(c===a)return!0;return
!1}function w(a){A(a instanceof S),x.call(this,a),this.parentNode_=void 0,this.f
irstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousS
ibling_=void 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.g
etTreeScope,E=a.isWrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerW
rapper,I=a.setTreeScope,J=a.unsafeUnwrap,K=a.unwrap,L=a.unwrapIfNeeded,M=a.wrap,
N=a.wrapIfNeeded,O=a.wrappers,P=!1,Q=document.importNode,R=window.Node.prototype
.cloneNode,S=window.Node,T=window.DocumentFragment,U=(S.prototype.appendChild,S.
prototype.compareDocumentPosition),V=S.prototype.insertBefore,W=S.prototype.remo
veChild,X=S.prototype.replaceChild,Y=/Trident/.test(navigator.userAgent),Z=Y?fun
ction(a,b){try{W.call(a,b)}catch(c){if(!(a instanceof T))throw c}}:function(a,b)
{W.call(a,b)};w.prototype=Object.create(x.prototype),F(w.prototype,{appendChild:
function(a){return this.insertBefore(a,null)},insertBefore:function(a,c){b(a);va
r d;c?E(c)?d=K(c):(d=c,c=M(d)):(c=null,d=null),c&&A(c.parentNode===this);var e,h
=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRenderer()&&!s(a);if
(e=i?g(a):f(a,this,h,c),i)n(this,a),q(this),V.call(J(this),K(a),d);else{h||(this
.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1],void 0===this.firstChild_&&
(this.firstChild_=this.firstChild));var j=d?d.parentNode:J(this);j?V.call(j,p(th
is,e),d):o(this,e)}return C(this,"childList",{addedNodes:e,nextSibling:c,previou
sSibling:h}),k(e,this),a},removeChild:function(a){if(b(a),a.parentNode!==this){f
or(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0
;break}if(!d)throw new Error("NotFoundError")}var f=K(a),g=a.nextSibling,h=a.pre
viousSibling;if(this.invalidateShadowRenderer()){var i=this.firstChild,j=this.la
stChild,k=f.parentNode;k&&Z(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastCh
ild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nex
tSibling_=a.parentNode_=void 0}else q(this),Z(J(this),f);return P||C(this,"child
List",{removedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a},replaceC
hild:function(a,d){b(a);var e;if(E(d)?e=K(d):(e=d,d=M(e)),d.parentNode!==this)th
row new Error("NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,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),X.call(J(this),K(a),e)):(this.firstChild===d&
&(this.firstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.p
reviousSibling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&X.call(e.paren
tNode,p(this,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibli
ng:i,previousSibling: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_:M(J(this).parentNode)},get firstChild(){return void 0!==this.f
irstChild_?this.firstChild_:M(J(this).firstChild)},get lastChild(){return void 0
!==this.lastChild_?this.lastChild_:M(J(this).lastChild)},get nextSibling(){retur
n void 0!==this.nextSibling_?this.nextSibling_:M(J(this).nextSibling)},get previ
ousSibling(){return void 0!==this.previousSibling_?this.previousSibling_:M(J(thi
s).previousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType
!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=thi
s.firstChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);re
turn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRend
erer()){if(r(this),""!==a){var c=J(this).ownerDocument.createTextNode(a);this.ap
pendChild(c)}}else q(this),J(this).textContent=a;var d=i(this.childNodes);C(this
,"childList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes(){for
(var a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,
a},cloneNode:function(a){return u(this,a)},contains:function(a){return v(this,N(
a))},compareDocumentPosition:function(a){return U.call(J(this),L(a))},normalize:
function(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],
b.nodeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.remov
eNode(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(S,w,documen
t.createDocumentFragment()),delete w.prototype.querySelector,delete w.prototype.
querySelectorAll,w.prototype=F(Object.create(x.prototype),w.prototype),a.cloneNo
de=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,e){for(var f=null,g=null,h=0,i=b.length;i>h;h++)f=s
(b[h]),!e&&(g=q(f).root)&&g instanceof a.wrappers.ShadowRoot||(d[c++]=f);return
c}function c(a){return String(a).replace(/\/deep\//g," ")}function d(a,b){for(va
r c,e=a.firstElementChild;e;){if(e.matches(b))return e;if(c=d(e,b))return c;e=e.
nextElementSibling}return null}function e(a,b){return a.matches(b)}function f(a,
b,c){var d=a.localName;return d===b||d===c&&a.namespaceURI===D}function g(){retu
rn!0}function h(a,b,c){return a.localName===c}function i(a,b){return a.namespace
URI===b}function j(a,b,c){return a.namespaceURI===b&&a.localName===c}function k(
a,b,c,d,e,f){for(var g=a.firstElementChild;g;)d(g,e,f)&&(c[b++]=g),b=k(g,b,c,d,e
,f),g=g.nextElementSibling;return b}function l(c,d,e,f,g){var h,i=r(this),j=q(th
is).root;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,null);if(i
instanceof B)h=w.call(i,f);else{if(!(i instanceof C))return k(this,d,e,c,f,null)
;h=v.call(i,f)}return b(h,d,e,g)}function m(c,d,e,f,g){var h,i=r(this),j=q(this)
.root;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,g);if(i instan
ceof B)h=y.call(i,f,g);else{if(!(i instanceof C))return k(this,d,e,c,f,g);h=x.ca
ll(i,f,g)}return b(h,d,e,!1)}function n(c,d,e,f,g){var h,i=r(this),j=q(this).roo
t;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,g);if(i instanceof
B)h=A.call(i,f,g);else{if(!(i instanceof C))return k(this,d,e,c,f,g);h=z.call(i
,f,g)}return b(h,d,e,!1)}var o=a.wrappers.HTMLCollection,p=a.wrappers.NodeList,q
=a.getTreeScope,r=a.unsafeUnwrap,s=a.wrap,t=document.querySelector,u=document.do
cumentElement.querySelector,v=document.querySelectorAll,w=document.documentEleme
nt.querySelectorAll,x=document.getElementsByTagName,y=document.documentElement.g
etElementsByTagName,z=document.getElementsByTagNameNS,A=document.documentElement
.getElementsByTagNameNS,B=window.Element,C=window.HTMLDocument||window.Document,
D="http://www.w3.org/1999/xhtml",E={querySelector:function(b){var e=c(b),f=e!==b
;b=e;var g,h=r(this),i=q(this).root;if(i instanceof a.wrappers.ShadowRoot)return
d(this,b);if(h instanceof B)g=s(u.call(h,b));else{if(!(h instanceof C))return d
(this,b);g=s(t.call(h,b))}return g&&!f&&(i=q(g).root)&&i instanceof a.wrappers.S
hadowRoot?d(this,b):g},querySelectorAll:function(a){var b=c(a),d=b!==a;a=b;var f
=new p;return f.length=l.call(this,e,0,f,a,d),f}},F={getElementsByTagName:functi
on(a){var b=new o,c="*"===a?g:f;return b.length=m.call(this,c,0,b,a,a.toLowerCas
e()),b},getElementsByClassName:function(a){return this.querySelectorAll("."+a)},
getElementsByTagNameNS:function(a,b){var c=new o,d=null;return d="*"===a?"*"===b
?g:h:"*"===b?i:j,c.length=n.call(this,d,0,c,a||null,b),c}};a.GetElementsByInterf
ace=F,a.SelectorsInterface=E}(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.nextElementSibling)a++;return a},get chil
dren(){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.removeCh
ild(this)}},f={get nextElementSibling(){return b(this.nextSibling)},get previous
ElementSibling(){return c(this.previousSibling)}};a.ChildNodeInterface=f,a.Paren
tNodeInterface=e}(window.ShadowDOMPolyfill),function(a){"use strict";function b(
a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutati
on,f=a.mixin,g=a.registerWrapper,h=a.unsafeUnwrap,i=window.CharacterData;b.proto
type=Object.create(d.prototype),f(b.prototype,{get textContent(){return this.dat
a},set textContent(a){this.data=a},get data(){return h(this).data},set data(a){v
ar b=h(this).data;e(this,"characterData",{oldValue:b}),h(this).data=a}}),f(b.pro
totype,c),g(i,b,document.createTextNode("")),a.wrappers.CharacterData=b}(window.
ShadowDOMPolyfill),function(a){"use strict";function b(a){return a>>>0}function
c(a){d.call(this,a)}var d=a.wrappers.CharacterData,e=(a.enqueueMutation,a.mixin)
,f=a.registerWrapper,g=window.Text;c.prototype=Object.create(d.prototype),e(c.pr
ototype,{splitText:function(a){a=b(a);var c=this.data;if(a>c.length)throw new Er
ror("IndexSizeError");var d=c.slice(0,a),e=c.slice(a);this.data=d;var f=this.own
erDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefor
e(f,this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wrappers.Text=c}
(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){a.invalidateRe
ndererBasedOnAttribute(b,"class")}function c(a,b){d(a,this),this.ownerElement_=b
}var d=a.setWrapper,e=a.unsafeUnwrap;c.prototype={constructor:c,get length(){ret
urn e(this).length},item:function(a){return e(this).item(a)},contains:function(a
){return e(this).contains(a)},add:function(){e(this).add.apply(e(this),arguments
),b(this.ownerElement_)},remove:function(){e(this).remove.apply(e(this),argument
s),b(this.ownerElement_)},toggle:function(){var a=e(this).toggle.apply(e(this),a
rguments);return b(this.ownerElement_),a},toString:function(){return e(this).toS
tring()}},a.wrappers.DOMTokenList=c}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRender
erForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a,b,c){k(a,"att
ributes",{name:b,namespace:null,oldValue:c})}function d(a){g.call(this,a)}var e=
a.ChildNodeInterface,f=a.GetElementsByInterface,g=a.wrappers.Node,h=a.wrappers.D
OMTokenList,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListM
ethod,a.enqueueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.unsafeUnwra
p,o=a.wrappers,p=window.Element,q=["matches","mozMatchesSelector","msMatchesSele
ctor","webkitMatchesSelector"].filter(function(a){return p.prototype[a]}),r=q[0]
,s=p.prototype[r],t=new WeakMap;d.prototype=Object.create(g.prototype),l(d.proto
type,{createShadowRoot:function(){var b=new o.ShadowRoot(this);n(this).polymerSh
adowRoot_=b;var c=a.getRendererForHost(this);return c.invalidate(),b},get shadow
Root(){return n(this).polymerShadowRoot_||null},setAttribute:function(a,d){var e
=n(this).getAttribute(a);n(this).setAttribute(a,d),c(this,a,e),b(this,a)},remove
Attribute:function(a){var d=n(this).getAttribute(a);n(this).removeAttribute(a),c
(this,a,d),b(this,a)},matches:function(a){return s.call(n(this),a)},get classLis
t(){var a=t.get(this);return a||t.set(this,a=new h(n(this).classList,this)),a},g
et className(){return n(this).className},set className(a){this.setAttribute("cla
ss",a)},get id(){return n(this).id},set id(a){this.setAttribute("id",a)}}),q.for
Each(function(a){"matches"!==a&&(d.prototype[a]=function(a){return this.matches(
a)})}),p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d
.prototype.createShadowRoot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),
l(d.prototype,j),m(p,d,document.createElementNS(null,"x")),a.invalidateRendererB
asedOnAttribute=b,a.matchesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfil
l),function(a){"use strict";function b(a){switch(a){case"&":return"&";case"<
":return"<";case">":return">";case'"':return""";case"\xa0":return"&nb
sp;"}}function c(a){return a.replace(A,b)}function d(a){return a.replace(B,b)}fu
nction 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+=
">",C[f]?h:h+g(a)+"</"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&D[b.loca
lName]?k:d(k);case Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw con
sole.error(a),new Error("not implemented")}}function g(a){a instanceof z.HTMLTem
plateElement&&(a=a.content);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=x(a.ownerDo
cument.createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(y
(f))}function i(a){o.call(this,a)}function j(a,b){var c=x(a.cloneNode(!1));c.inn
erHTML=b;for(var d,e=x(document.createDocumentFragment());d=c.firstChild;)e.appe
ndChild(d);return y(e)}function k(b){return function(){return a.renderAllPending
(),w(this)[b]}}function l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.p
rototype,b,{get:k(b),set:function(c){a.renderAllPending(),w(this)[b]=c},configur
able:!0,enumerable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value
:function(){return a.renderAllPending(),w(this)[b].apply(w(this),arguments)},con
figurable:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enque
ueMutation,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper
,v=a.snapshotNodeList,w=a.unsafeUnwrap,x=a.unwrap,y=a.wrap,z=a.wrappers,A=/[&\u0
0A0"]/g,B=/[&\u00A0<>]/g,C=e(["area","base","br","col","command","embed","hr","i
mg","input","keygen","link","meta","param","source","track","wbr"]),D=e(["style"
,"script","xmp","iframe","noembed","noframes","plaintext","noscript"]),E=/MSIE/.
test(navigator.userAgent),F=window.HTMLElement,G=window.HTMLTemplateElement;i.pr
ototype=Object.create(o.prototype),r(i.prototype,{get innerHTML(){return g(this)
},set innerHTML(a){if(E&&D[this.localName])return void(this.textContent=a);var b
=v(this.childNodes);this.invalidateShadowRenderer()?this instanceof z.HTMLTempla
teElement?h(this.content,a):h(this,a,this.tagName):!G&&this instanceof z.HTMLTem
plateElement?h(this.content,a):w(this).innerHTML=a;var c=v(this.childNodes);q(th
is,"childList",{addedNodes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){re
turn f(this,this.parentNode)},set outerHTML(a){var b=this.parentNode;if(b){b.inv
alidateShadowRenderer();var c=j(b,a);b.replaceChild(c,this)}},insertAdjacentHTML
:function(a,b){var c,d;switch(String(a).toLowerCase()){case"beforebegin":c=this.
parentNode,d=this;break;case"afterend":c=this.parentNode,d=this.nextSibling;brea
k;case"afterbegin":c=this,d=this.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 hidden(a){a?this.setAttribute("hidden",""):this.remo
veAttribute("hidden")}}),["clientHeight","clientLeft","clientTop","clientWidth",
"offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidt
h"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClientRect","g
etClientRects","scrollIntoView"].forEach(n),u(F,i,document.createElement("b")),a
.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(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.unsafeUnwrap,g=a.wrap,h=window.HTMLCan
vasElement;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:func
tion(){var a=f(this).getContext.apply(f(this),arguments);return a&&g(a)}}),e(h,b
,document.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.Shadow
DOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrapp
ers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prot
otype=Object.create(c.prototype),d(b.prototype,{constructor:b,get select(){retur
n this.getAttribute("select")},set select(a){this.setAttribute("select",a)},setA
ttribute:function(a,b){c.prototype.setAttribute.call(this,a,b),"select"===String
(a).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTM
LContentElement=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.crea
te(c.prototype),d(b.prototype,{get elements(){return f(g(this).elements)}}),e(h,
b,document.createElement("form")),a.wrappers.HTMLFormElement=b}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){
if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be ca
lled as a function.");var e=f(document.createElement("img"));d.call(this,e),g(e,
this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElem
ent,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.protot
ype=Object.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=
b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H
TMLElement,d=(a.mixin,a.wrappers.NodeList,a.registerWrapper),e=window.HTMLShadow
Element;b.prototype=Object.create(c.prototype),b.prototype.constructor=b,e&&d(e,
b),a.wrappers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use st
rict";function b(a){if(!a.defaultView)return a;var b=l.get(a);if(!b){for(b=a.imp
lementation.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);l.set
(a,b)}return b}function c(a){for(var c,d=b(a.ownerDocument),e=i(d.createDocument
Fragment());c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(th
is,a),!m){var b=c(a);k.set(this,j(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=
a.registerWrapper,h=a.unsafeUnwrap,i=a.unwrap,j=a.wrap,k=new WeakMap,l=new WeakM
ap,m=window.HTMLTemplateElement;d.prototype=Object.create(e.prototype),f(d.proto
type,{constructor:d,get content(){return m?j(h(this).content):k.get(this)}}),m&&
g(m,d),a.wrappers.HTMLTemplateElement=d}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.regist
erWrapper,e=window.HTMLMediaElement;e&&(b.prototype=Object.create(c.prototype),d
(e,b,document.createElement("audio")),a.wrappers.HTMLMediaElement=b)}(window.Sha
dowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}function c
(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot b
e 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.setAttribute("src",a)
}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=w
indow.HTMLAudioElement;h&&(b.prototype=Object.create(d.prototype),e(h,b,document
.createElement("audio")),c.prototype=b.prototype,a.wrappers.HTMLAudioElement=b,a
.wrappers.Audio=c)}(window.ShadowDOMPolyfill),function(a){"use strict";function
b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}function d
(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constructor ca
nnot be called as a function.");var g=i(document.createElement("option"));e.call
(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setAttribute("value",b),
c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var e=a.wrappers.HTMLEle
ment,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a.unwrap,j=a.wrap,k=window.HTMLO
ptionElement;c.prototype=Object.create(e.prototype),f(c.prototype,{get text(){re
turn b(this.textContent)},set text(a){this.textContent=b(String(a))},get form(){
return j(i(this).form)}}),g(k,c,document.createElement("option")),d.prototype=c.
prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H
TMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=window.HTMLSelect
Element;b.prototype=Object.create(c.prototype),d(b.prototype,{add:function(a,b){
"object"==typeof b&&(b=f(b)),f(this).add(f(a),b)},remove:function(a){return void
0===a?void c.prototype.remove.call(this):("object"==typeof a&&(a=f(a)),void f(t
his).remove(a))},get form(){return g(f(this).form)}}),e(h,b,document.createEleme
nt("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.m
ixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a.wrapHTMLCollection,i=window.HTM
LTableElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get caption(
){return g(f(this).caption)},createCaption:function(){return g(f(this).createCap
tion())},get tHead(){return g(f(this).tHead)},createTHead:function(){return g(f(
this).createTHead())},createTFoot:function(){return g(f(this).createTFoot())},ge
t tFoot(){return g(f(this).tFoot)},get tBodies(){return h(f(this).tBodies)},crea
teTBody:function(){return g(f(this).createTBody()) | 13 }function o(a,b,c,d){var e=db;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=eb,f=b[0
]||c;return r(f,a,e,b,d)}function q(a,b,c,d){for(var e=fb,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=
T.get(a);if(!f)return!0;var g=e||h(d,a);if(g===a){if(c===db)return!0;c===fb&&(c=
eb)}else if(c===fb&&!b.bubbles)return!0;if("relatedTarget"in b){var i=Q(b),j=i.r
elatedTarget;if(j){if(j instanceof Object&&j.addEventListener){var l=R(j),m=k(b,
a,l);if(m===g)return!0}else m=null;Y.set(b,m)}}Z.set(b,c);var n=b.type,o=!1;W.se
t(b,g),X.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===db||r.capture&&c===fb))try{if("fu
nction"==typeof r.handler?r.handler.call(a,b):r.handler.handleEvent(b),_.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!$.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 gb))return R(x(gb,"Event",a,b));var c=a;return rb||"beforeunloa
d"!==c.type?void O(c,this):new y(c)}function u(a){return a&&a.relatedTarget?Obje
ct.create(a,{relatedTarget:{value:Q(a.relatedTarget)}}):a}function v(a,b,c){var
d=window[a],e=function(b,c){return b instanceof d?void O(b,this):R(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]=Q(arguments[b]);var c=Q(this);c[a].apply(c,arguments)}}
function x(a,b,c,d){if(pb)return new a(c,u(d));var e=Q(document.createEvent(b)),
f=ob[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d?d[
a]:f[a];"relatedTarget"===a&&(b=Q(b)),g.push(b)}),e["init"+b].apply(e,g),e}funct
ion y(a){t.call(this,a)}function z(a){return"function"==typeof a?!0:a&&a.handleE
vent}function A(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChanged"
:case"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeInserted
":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedFrom
Document":case"DOMSubtreeModified":return!0}return!1}function B(a){O(a,this)}fun
ction C(a){return a instanceof S.ShadowRoot&&(a=a.host),Q(a)}function D(a,b){var
c=T.get(a);if(c)for(var d=0;d<c.length;d++)if(!c[d].removed&&c[d].type===b)retu
rn!0;return!1}function E(a,b){for(var c=Q(a);c;c=c.parentNode)if(D(R(c),b))retur
n!0;return!1}function F(a){K(a,tb)}function G(b,c,e,f){a.renderAllPending();var
g=R(ub.call(P(c),e,f));if(!g)return null;var i=d(g,null),j=i.lastIndexOf(b);retu
rn-1==j?null:(i=i.slice(0,j),h(i,b))}function H(a){return function(){var b=ab.ge
t(this);return b&&b[a]&&b[a].value||null}}function I(a){var b=a.slice(2);return
function(c){var d=ab.get(this);d||(d=Object.create(null),ab.set(this,d));var e=d
[a];if(e&&this.removeEventListener(b,e.wrapped,!1),"function"==typeof c){var f=f
unction(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.mixin,N=a
.registerWrapper,O=a.setWrapper,P=a.unsafeUnwrap,Q=a.unwrap,R=a.wrap,S=a.wrapper
s,T=(new WeakMap,new WeakMap),U=new WeakMap,V=new WeakMap,W=new WeakMap,X=new We
akMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new WeakMap,ab=new WeakMap,bb=
new WeakMap,cb=0,db=1,eb=2,fb=3;s.prototype={equals:function(a){return this.hand
ler===a.handler&&this.type===a.type&&this.capture===a.capture},get removed(){ret
urn null===this.handler},remove:function(){this.handler=null}};var gb=window.Eve
nt;gb.prototype.polymerBlackList_={returnValue:!0,keyLocation:!0},t.prototype={g
et target(){return W.get(this)},get currentTarget(){return X.get(this)},get even
tPhase(){return Z.get(this)},get path(){var a=bb.get(this);return a?a.slice():[]
},stopPropagation:function(){$.set(this,!0)},stopImmediatePropagation:function()
{$.set(this,!0),_.set(this,!0)}},N(gb,t,document.createEvent("Event"));var hb=v(
"UIEvent",t),ib=v("CustomEvent",t),jb={get relatedTarget(){var a=Y.get(this);ret
urn void 0!==a?a:R(Q(this).relatedTarget)}},kb=M({initMouseEvent:w("initMouseEve
nt",14)},jb),lb=M({initFocusEvent:w("initFocusEvent",5)},jb),mb=v("MouseEvent",h
b,kb),nb=v("FocusEvent",hb,lb),ob=Object.create(null),pb=function(){try{new wind
ow.FocusEvent("focus")}catch(a){return!1}return!0}();if(!pb){var qb=function(a,b
,c){if(c){var d=ob[c];b=M(M({},d),b)}ob[a]=b};qb("Event",{bubbles:!1,cancelable:
!1}),qb("CustomEvent",{detail:null},"Event"),qb("UIEvent",{view:null,detail:0},"
Event"),qb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altK
ey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),qb("FocusEv
ent",{relatedTarget:null},"UIEvent")}var rb=window.BeforeUnloadEvent;y.prototype
=Object.create(t.prototype),M(y.prototype,{get returnValue(){return P(this).retu
rnValue},set returnValue(a){P(this).returnValue=a}}),rb&&N(rb,y);var sb=window.E
ventTarget,tb=["addEventListener","removeEventListener","dispatchEvent"];[Node,W
indow].forEach(function(a){var b=a.prototype;tb.forEach(function(a){Object.defin
eProperty(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=T.get(this);if(e){for(var f=0;f<e.length;
f++)if(d.equals(e[f]))return}else e=[],e.depth=0,T.set(this,e);e.push(d);var g=C
(this);g.addEventListener_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boole
an(c);var d=T.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:function(b){var c=Q(b
),d=c.type;U.set(c,!1),a.renderAllPending();var e;E(this,d)||(e=function(){},thi
s.addEventListener(d,e,!0));try{return Q(this).dispatchEvent_(c)}finally{e&&this
.removeEventListener(d,e,!0)}}},sb&&N(sb,B);var ub=document.elementFromPoint;a.e
lementFromPoint=G,a.getEventHandlerGetter=H,a.getEventHandlerSetter=I,a.wrapEven
tTargetMethods=F,a.wrappers.BeforeUnloadEvent=y,a.wrappers.CustomEvent=ib,a.wrap
pers.Event=t,a.wrappers.EventTarget=B,a.wrappers.FocusEvent=nb,a.wrappers.MouseE
vent=mb,a.wrappers.UIEvent=hb}(window.ShadowDOMPolyfill),function(a){"use strict
";function b(a,b){Object.defineProperty(a,b,p)}function c(a){j(a,this)}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(this,a)}var g=a.wr
appers.UIEvent,h=a.mixin,i=a.registerWrapper,j=a.setWrapper,k=a.unsafeUnwrap,l=a
.wrap,m=window.TouchEvent;if(m){var n;try{n=document.createEvent("TouchEvent")}c
atch(o){return}var p={enumerable:!1};c.prototype={get target(){return l(k(this).
target)}};var q={configurable:!0,enumerable:!0,get:null};["clientX","clientY","s
creenX","screenY","pageX","pageY","identifier","webkitRadiusX","webkitRadiusY","
webkitRotationAngle","webkitForce"].forEach(function(a){q.get=function(){return
k(this)[a]},Object.defineProperty(c.prototype,a,q)}),d.prototype={item:function(
a){return this[a]}},f.prototype=Object.create(g.prototype),h(f.prototype,{get to
uches(){return e(k(this).touches)},get targetTouches(){return e(k(this).targetTo
uches)},get changedTouches(){return e(k(this).changedTouches)},initTouchEvent:fu
nction(){throw new Error("Not implemented")}}),i(m,f,n),a.wrappers.Touch=c,a.wra
ppers.TouchEvent=f,a.wrappers.TouchList=d}}(window.ShadowDOMPolyfill),function(a
){"use strict";function b(a,b){Object.defineProperty(a,b,h)}function c(){this.le
ngth=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]=g(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]
=function(){return d(f(this)[b].apply(f(this),arguments))}}var f=a.unsafeUnwrap,
g=a.wrap,h={enumerable:!1};c.prototype={item:function(a){return this[a]}},b(c.pr
ototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d
}(window.ShadowDOMPolyfill),function(a){"use strict";a.wrapHTMLCollection=a.wrap
NodeList,a.wrappers.HTMLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill
),function(a){"use strict";function b(a){A(a instanceof w)}function c(a){var b=n
ew y;return b[0]=a,b.length=1,b}function d(a,b,c){C(b,"childList",{removedNodes:
c,previousSibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){
C(a,"childList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFr
agment){var f=h(a);P=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].p
arentNode_=b;P=!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.parentNo
de_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previous
Sibling_=a),f}function g(a){if(a instanceof DocumentFragment)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.fi
rstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){ret
urn a}function j(a,b){I(a,b),a.nodeIsInserted_()}function k(a,b){for(var c=D(b),
d=0;d<a.length;d++)j(a[d],c)}function l(a){I(a,new z(a,null))}function m(a){for(
var b=0;b<a.length;b++)l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NOD
E?a:a.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.len
gth){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)retu
rn K(b[0]);for(var d=K(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.a
ppendChild(K(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.nex
tSibling_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidate
ShadowRenderer()){for(var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSib
ling,d=K(b),e=d.parentNode;e&&W.call(e,d),b.previousSibling_=b.nextSibling_=b.pa
rentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=K(a),g=f.fir
stChild;g;)c=g.nextSibling,W.call(f,g),g=c}function s(a){var b=a.parentNode;retu
rn 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){var d;if(d=M(c?Q.call(c,J(a),
!1):R.call(J(a),!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u
(e,!0,c));if(a instanceof O.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){i
f(!b||D(a)!==D(b))return!1;for(var c=b;c;c=c.parentNode)if(c===a)return!0;return
!1}function w(a){A(a instanceof S),x.call(this,a),this.parentNode_=void 0,this.f
irstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousS
ibling_=void 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.g
etTreeScope,E=a.isWrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerW
rapper,I=a.setTreeScope,J=a.unsafeUnwrap,K=a.unwrap,L=a.unwrapIfNeeded,M=a.wrap,
N=a.wrapIfNeeded,O=a.wrappers,P=!1,Q=document.importNode,R=window.Node.prototype
.cloneNode,S=window.Node,T=window.DocumentFragment,U=(S.prototype.appendChild,S.
prototype.compareDocumentPosition),V=S.prototype.insertBefore,W=S.prototype.remo
veChild,X=S.prototype.replaceChild,Y=/Trident/.test(navigator.userAgent),Z=Y?fun
ction(a,b){try{W.call(a,b)}catch(c){if(!(a instanceof T))throw c}}:function(a,b)
{W.call(a,b)};w.prototype=Object.create(x.prototype),F(w.prototype,{appendChild:
function(a){return this.insertBefore(a,null)},insertBefore:function(a,c){b(a);va
r d;c?E(c)?d=K(c):(d=c,c=M(d)):(c=null,d=null),c&&A(c.parentNode===this);var e,h
=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRenderer()&&!s(a);if
(e=i?g(a):f(a,this,h,c),i)n(this,a),q(this),V.call(J(this),K(a),d);else{h||(this
.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1],void 0===this.firstChild_&&
(this.firstChild_=this.firstChild));var j=d?d.parentNode:J(this);j?V.call(j,p(th
is,e),d):o(this,e)}return C(this,"childList",{addedNodes:e,nextSibling:c,previou
sSibling:h}),k(e,this),a},removeChild:function(a){if(b(a),a.parentNode!==this){f
or(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0
;break}if(!d)throw new Error("NotFoundError")}var f=K(a),g=a.nextSibling,h=a.pre
viousSibling;if(this.invalidateShadowRenderer()){var i=this.firstChild,j=this.la
stChild,k=f.parentNode;k&&Z(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastCh
ild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nex
tSibling_=a.parentNode_=void 0}else q(this),Z(J(this),f);return P||C(this,"child
List",{removedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a},replaceC
hild:function(a,d){b(a);var e;if(E(d)?e=K(d):(e=d,d=M(e)),d.parentNode!==this)th
row new Error("NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,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),X.call(J(this),K(a),e)):(this.firstChild===d&
&(this.firstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.p
reviousSibling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&X.call(e.paren
tNode,p(this,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibli
ng:i,previousSibling: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_:M(J(this).parentNode)},get firstChild(){return void 0!==this.f
irstChild_?this.firstChild_:M(J(this).firstChild)},get lastChild(){return void 0
!==this.lastChild_?this.lastChild_:M(J(this).lastChild)},get nextSibling(){retur
n void 0!==this.nextSibling_?this.nextSibling_:M(J(this).nextSibling)},get previ
ousSibling(){return void 0!==this.previousSibling_?this.previousSibling_:M(J(thi
s).previousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType
!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=thi
s.firstChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);re
turn a},set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRend
erer()){if(r(this),""!==a){var c=J(this).ownerDocument.createTextNode(a);this.ap
pendChild(c)}}else q(this),J(this).textContent=a;var d=i(this.childNodes);C(this
,"childList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes(){for
(var a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,
a},cloneNode:function(a){return u(this,a)},contains:function(a){return v(this,N(
a))},compareDocumentPosition:function(a){return U.call(J(this),L(a))},normalize:
function(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],
b.nodeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.remov
eNode(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(S,w,documen
t.createDocumentFragment()),delete w.prototype.querySelector,delete w.prototype.
querySelectorAll,w.prototype=F(Object.create(x.prototype),w.prototype),a.cloneNo
de=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,e){for(var f=null,g=null,h=0,i=b.length;i>h;h++)f=s
(b[h]),!e&&(g=q(f).root)&&g instanceof a.wrappers.ShadowRoot||(d[c++]=f);return
c}function c(a){return String(a).replace(/\/deep\//g," ")}function d(a,b){for(va
r c,e=a.firstElementChild;e;){if(e.matches(b))return e;if(c=d(e,b))return c;e=e.
nextElementSibling}return null}function e(a,b){return a.matches(b)}function f(a,
b,c){var d=a.localName;return d===b||d===c&&a.namespaceURI===D}function g(){retu
rn!0}function h(a,b,c){return a.localName===c}function i(a,b){return a.namespace
URI===b}function j(a,b,c){return a.namespaceURI===b&&a.localName===c}function k(
a,b,c,d,e,f){for(var g=a.firstElementChild;g;)d(g,e,f)&&(c[b++]=g),b=k(g,b,c,d,e
,f),g=g.nextElementSibling;return b}function l(c,d,e,f,g){var h,i=r(this),j=q(th
is).root;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,null);if(i
instanceof B)h=w.call(i,f);else{if(!(i instanceof C))return k(this,d,e,c,f,null)
;h=v.call(i,f)}return b(h,d,e,g)}function m(c,d,e,f,g){var h,i=r(this),j=q(this)
.root;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,g);if(i instan
ceof B)h=y.call(i,f,g);else{if(!(i instanceof C))return k(this,d,e,c,f,g);h=x.ca
ll(i,f,g)}return b(h,d,e,!1)}function n(c,d,e,f,g){var h,i=r(this),j=q(this).roo
t;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,g);if(i instanceof
B)h=A.call(i,f,g);else{if(!(i instanceof C))return k(this,d,e,c,f,g);h=z.call(i
,f,g)}return b(h,d,e,!1)}var o=a.wrappers.HTMLCollection,p=a.wrappers.NodeList,q
=a.getTreeScope,r=a.unsafeUnwrap,s=a.wrap,t=document.querySelector,u=document.do
cumentElement.querySelector,v=document.querySelectorAll,w=document.documentEleme
nt.querySelectorAll,x=document.getElementsByTagName,y=document.documentElement.g
etElementsByTagName,z=document.getElementsByTagNameNS,A=document.documentElement
.getElementsByTagNameNS,B=window.Element,C=window.HTMLDocument||window.Document,
D="http://www.w3.org/1999/xhtml",E={querySelector:function(b){var e=c(b),f=e!==b
;b=e;var g,h=r(this),i=q(this).root;if(i instanceof a.wrappers.ShadowRoot)return
d(this,b);if(h instanceof B)g=s(u.call(h,b));else{if(!(h instanceof C))return d
(this,b);g=s(t.call(h,b))}return g&&!f&&(i=q(g).root)&&i instanceof a.wrappers.S
hadowRoot?d(this,b):g},querySelectorAll:function(a){var b=c(a),d=b!==a;a=b;var f
=new p;return f.length=l.call(this,e,0,f,a,d),f}},F={getElementsByTagName:functi
on(a){var b=new o,c="*"===a?g:f;return b.length=m.call(this,c,0,b,a,a.toLowerCas
e()),b},getElementsByClassName:function(a){return this.querySelectorAll("."+a)},
getElementsByTagNameNS:function(a,b){var c=new o,d=null;return d="*"===a?"*"===b
?g:h:"*"===b?i:j,c.length=n.call(this,d,0,c,a||null,b),c}};a.GetElementsByInterf
ace=F,a.SelectorsInterface=E}(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.nextElementSibling)a++;return a},get chil
dren(){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.removeCh
ild(this)}},f={get nextElementSibling(){return b(this.nextSibling)},get previous
ElementSibling(){return c(this.previousSibling)}};a.ChildNodeInterface=f,a.Paren
tNodeInterface=e}(window.ShadowDOMPolyfill),function(a){"use strict";function b(
a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutati
on,f=a.mixin,g=a.registerWrapper,h=a.unsafeUnwrap,i=window.CharacterData;b.proto
type=Object.create(d.prototype),f(b.prototype,{get textContent(){return this.dat
a},set textContent(a){this.data=a},get data(){return h(this).data},set data(a){v
ar b=h(this).data;e(this,"characterData",{oldValue:b}),h(this).data=a}}),f(b.pro
totype,c),g(i,b,document.createTextNode("")),a.wrappers.CharacterData=b}(window.
ShadowDOMPolyfill),function(a){"use strict";function b(a){return a>>>0}function
c(a){d.call(this,a)}var d=a.wrappers.CharacterData,e=(a.enqueueMutation,a.mixin)
,f=a.registerWrapper,g=window.Text;c.prototype=Object.create(d.prototype),e(c.pr
ototype,{splitText:function(a){a=b(a);var c=this.data;if(a>c.length)throw new Er
ror("IndexSizeError");var d=c.slice(0,a),e=c.slice(a);this.data=d;var f=this.own
erDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefor
e(f,this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wrappers.Text=c}
(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){a.invalidateRe
ndererBasedOnAttribute(b,"class")}function c(a,b){d(a,this),this.ownerElement_=b
}var d=a.setWrapper,e=a.unsafeUnwrap;c.prototype={constructor:c,get length(){ret
urn e(this).length},item:function(a){return e(this).item(a)},contains:function(a
){return e(this).contains(a)},add:function(){e(this).add.apply(e(this),arguments
),b(this.ownerElement_)},remove:function(){e(this).remove.apply(e(this),argument
s),b(this.ownerElement_)},toggle:function(){var a=e(this).toggle.apply(e(this),a
rguments);return b(this.ownerElement_),a},toString:function(){return e(this).toS
tring()}},a.wrappers.DOMTokenList=c}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRender
erForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a,b,c){k(a,"att
ributes",{name:b,namespace:null,oldValue:c})}function d(a){g.call(this,a)}var e=
a.ChildNodeInterface,f=a.GetElementsByInterface,g=a.wrappers.Node,h=a.wrappers.D
OMTokenList,i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListM
ethod,a.enqueueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.unsafeUnwra
p,o=a.wrappers,p=window.Element,q=["matches","mozMatchesSelector","msMatchesSele
ctor","webkitMatchesSelector"].filter(function(a){return p.prototype[a]}),r=q[0]
,s=p.prototype[r],t=new WeakMap;d.prototype=Object.create(g.prototype),l(d.proto
type,{createShadowRoot:function(){var b=new o.ShadowRoot(this);n(this).polymerSh
adowRoot_=b;var c=a.getRendererForHost(this);return c.invalidate(),b},get shadow
Root(){return n(this).polymerShadowRoot_||null},setAttribute:function(a,d){var e
=n(this).getAttribute(a);n(this).setAttribute(a,d),c(this,a,e),b(this,a)},remove
Attribute:function(a){var d=n(this).getAttribute(a);n(this).removeAttribute(a),c
(this,a,d),b(this,a)},matches:function(a){return s.call(n(this),a)},get classLis
t(){var a=t.get(this);return a||t.set(this,a=new h(n(this).classList,this)),a},g
et className(){return n(this).className},set className(a){this.setAttribute("cla
ss",a)},get id(){return n(this).id},set id(a){this.setAttribute("id",a)}}),q.for
Each(function(a){"matches"!==a&&(d.prototype[a]=function(a){return this.matches(
a)})}),p.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d
.prototype.createShadowRoot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),
l(d.prototype,j),m(p,d,document.createElementNS(null,"x")),a.invalidateRendererB
asedOnAttribute=b,a.matchesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfil
l),function(a){"use strict";function b(a){switch(a){case"&":return"&";case"<
":return"<";case">":return">";case'"':return""";case"\xa0":return"&nb
sp;"}}function c(a){return a.replace(A,b)}function d(a){return a.replace(B,b)}fu
nction 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+=
">",C[f]?h:h+g(a)+"</"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&D[b.loca
lName]?k:d(k);case Node.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw con
sole.error(a),new Error("not implemented")}}function g(a){a instanceof z.HTMLTem
plateElement&&(a=a.content);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=x(a.ownerDo
cument.createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(y
(f))}function i(a){o.call(this,a)}function j(a,b){var c=x(a.cloneNode(!1));c.inn
erHTML=b;for(var d,e=x(document.createDocumentFragment());d=c.firstChild;)e.appe
ndChild(d);return y(e)}function k(b){return function(){return a.renderAllPending
(),w(this)[b]}}function l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.p
rototype,b,{get:k(b),set:function(c){a.renderAllPending(),w(this)[b]=c},configur
able:!0,enumerable:!0})}function n(b){Object.defineProperty(i.prototype,b,{value
:function(){return a.renderAllPending(),w(this)[b].apply(w(this),arguments)},con
figurable:!0,enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enque
ueMutation,r=a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper
,v=a.snapshotNodeList,w=a.unsafeUnwrap,x=a.unwrap,y=a.wrap,z=a.wrappers,A=/[&\u0
0A0"]/g,B=/[&\u00A0<>]/g,C=e(["area","base","br","col","command","embed","hr","i
mg","input","keygen","link","meta","param","source","track","wbr"]),D=e(["style"
,"script","xmp","iframe","noembed","noframes","plaintext","noscript"]),E=/MSIE/.
test(navigator.userAgent),F=window.HTMLElement,G=window.HTMLTemplateElement;i.pr
ototype=Object.create(o.prototype),r(i.prototype,{get innerHTML(){return g(this)
},set innerHTML(a){if(E&&D[this.localName])return void(this.textContent=a);var b
=v(this.childNodes);this.invalidateShadowRenderer()?this instanceof z.HTMLTempla
teElement?h(this.content,a):h(this,a,this.tagName):!G&&this instanceof z.HTMLTem
plateElement?h(this.content,a):w(this).innerHTML=a;var c=v(this.childNodes);q(th
is,"childList",{addedNodes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){re
turn f(this,this.parentNode)},set outerHTML(a){var b=this.parentNode;if(b){b.inv
alidateShadowRenderer();var c=j(b,a);b.replaceChild(c,this)}},insertAdjacentHTML
:function(a,b){var c,d;switch(String(a).toLowerCase()){case"beforebegin":c=this.
parentNode,d=this;break;case"afterend":c=this.parentNode,d=this.nextSibling;brea
k;case"afterbegin":c=this,d=this.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 hidden(a){a?this.setAttribute("hidden",""):this.remo
veAttribute("hidden")}}),["clientHeight","clientLeft","clientTop","clientWidth",
"offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidt
h"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClientRect","g
etClientRects","scrollIntoView"].forEach(n),u(F,i,document.createElement("b")),a
.wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(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.unsafeUnwrap,g=a.wrap,h=window.HTMLCan
vasElement;b.prototype=Object.create(c.prototype),d(b.prototype,{getContext:func
tion(){var a=f(this).getContext.apply(f(this),arguments);return a&&g(a)}}),e(h,b
,document.createElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.Shadow
DOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrapp
ers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prot
otype=Object.create(c.prototype),d(b.prototype,{constructor:b,get select(){retur
n this.getAttribute("select")},set select(a){this.setAttribute("select",a)},setA
ttribute:function(a,b){c.prototype.setAttribute.call(this,a,b),"select"===String
(a).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTM
LContentElement=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.crea
te(c.prototype),d(b.prototype,{get elements(){return f(g(this).elements)}}),e(h,
b,document.createElement("form")),a.wrappers.HTMLFormElement=b}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){
if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be ca
lled as a function.");var e=f(document.createElement("img"));d.call(this,e),g(e,
this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElem
ent,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.protot
ype=Object.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=
b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H
TMLElement,d=(a.mixin,a.wrappers.NodeList,a.registerWrapper),e=window.HTMLShadow
Element;b.prototype=Object.create(c.prototype),b.prototype.constructor=b,e&&d(e,
b),a.wrappers.HTMLShadowElement=b}(window.ShadowDOMPolyfill),function(a){"use st
rict";function b(a){if(!a.defaultView)return a;var b=l.get(a);if(!b){for(b=a.imp
lementation.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);l.set
(a,b)}return b}function c(a){for(var c,d=b(a.ownerDocument),e=i(d.createDocument
Fragment());c=a.firstChild;)e.appendChild(c);return e}function d(a){if(e.call(th
is,a),!m){var b=c(a);k.set(this,j(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=
a.registerWrapper,h=a.unsafeUnwrap,i=a.unwrap,j=a.wrap,k=new WeakMap,l=new WeakM
ap,m=window.HTMLTemplateElement;d.prototype=Object.create(e.prototype),f(d.proto
type,{constructor:d,get content(){return m?j(h(this).content):k.get(this)}}),m&&
g(m,d),a.wrappers.HTMLTemplateElement=d}(window.ShadowDOMPolyfill),function(a){"
use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.regist
erWrapper,e=window.HTMLMediaElement;e&&(b.prototype=Object.create(c.prototype),d
(e,b,document.createElement("audio")),a.wrappers.HTMLMediaElement=b)}(window.Sha
dowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}function c
(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot b
e 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.setAttribute("src",a)
}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=w
indow.HTMLAudioElement;h&&(b.prototype=Object.create(d.prototype),e(h,b,document
.createElement("audio")),c.prototype=b.prototype,a.wrappers.HTMLAudioElement=b,a
.wrappers.Audio=c)}(window.ShadowDOMPolyfill),function(a){"use strict";function
b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.call(this,a)}function d
(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM object constructor ca
nnot be called as a function.");var g=i(document.createElement("option"));e.call
(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setAttribute("value",b),
c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var e=a.wrappers.HTMLEle
ment,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a.unwrap,j=a.wrap,k=window.HTMLO
ptionElement;c.prototype=Object.create(e.prototype),f(c.prototype,{get text(){re
turn b(this.textContent)},set text(a){this.textContent=b(String(a))},get form(){
return j(i(this).form)}}),g(k,c,document.createElement("option")),d.prototype=c.
prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H
TMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=window.HTMLSelect
Element;b.prototype=Object.create(c.prototype),d(b.prototype,{add:function(a,b){
"object"==typeof b&&(b=f(b)),f(this).add(f(a),b)},remove:function(a){return void
0===a?void c.prototype.remove.call(this):("object"==typeof a&&(a=f(a)),void f(t
his).remove(a))},get form(){return g(f(this).form)}}),e(h,b,document.createEleme
nt("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.m
ixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap,h=a.wrapHTMLCollection,i=window.HTM
LTableElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get caption(
){return g(f(this).caption)},createCaption:function(){return g(f(this).createCap
tion())},get tHead(){return g(f(this).tHead)},createTHead:function(){return g(f(
this).createTHead())},createTFoot:function(){return g(f(this).createTFoot())},ge
t tFoot(){return g(f(this).tFoot)},get tBodies(){return h(f(this).tBodies)},crea
teTBody:function(){return g(f(this).createTBody()) |
14 },get rows(){return h(f(this).rows)},insertRow:function(a){return g(f(this).inse
rtRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTMLTableElement=
b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,
a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollec
tion,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype=Object.cre
ate(c.prototype),d(b.prototype,{constructor:b,get rows(){return f(g(this).rows)}
,insertRow:function(a){return h(g(this).insertRow(a))}}),e(i,b,document.createEl
ement("thead")),a.wrappers.HTMLTableSectionElement=b}(window.ShadowDOMPolyfill),
function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLEleme
nt,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=wi
ndow.HTMLTableRowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{g
et cells(){return f(g(this).cells)},insertCell:function(a){return h(g(this).inse
rtCell(a))}}),e(i,b,document.createElement("tr")),a.wrappers.HTMLTableRowElement
=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a.lo
calName){case"content":return new c(a);case"shadow":return new e(a);case"templat
e":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappe
rs.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g
=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototype=Object.crea
te(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill
),function(a){"use strict";var b=a.wrappers.Element,c=a.wrappers.HTMLElement,d=a
.registerObject,e="http://www.w3.org/2000/svg",f=document.createElementNS(e,"tit
le"),g=d(f),h=Object.getPrototypeOf(g.prototype).constructor;if(!("classList"in
f)){var i=Object.getOwnPropertyDescriptor(b.prototype,"classList");Object.define
Property(c.prototype,"classList",i),delete b.prototype.classList}a.wrappers.SVGE
lement=h}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){m.cal
l(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.SVGUseE
lement,h="http://www.w3.org/2000/svg",i=f(document.createElementNS(h,"g")),j=doc
ument.createElementNS(h,"use"),k=i.constructor,l=Object.getPrototypeOf(k.prototy
pe),m=l.constructor;b.prototype=Object.create(l),"instanceRoot"in j&&c(b.prototy
pe,{get instanceRoot(){return f(e(this).instanceRoot)},get animatedInstanceRoot(
){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.unsafeUnwrap,g=a
.wrap,h=window.SVGElementInstance;h&&(b.prototype=Object.create(c.prototype),d(b
.prototype,{get correspondingElement(){return g(f(this).correspondingElement)},g
et correspondingUseElement(){return g(f(this).correspondingUseElement)},get pare
ntNode(){return g(f(this).parentNode)},get childNodes(){throw new Error("Not imp
lemented")},get firstChild(){return g(f(this).firstChild)},get lastChild(){retur
n g(f(this).lastChild)},get previousSibling(){return g(f(this).previousSibling)}
,get nextSibling(){return g(f(this).nextSibling)}}),e(h,b),a.wrappers.SVGElement
Instance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){e(
a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwrap,g=a.un
wrap,h=a.unwrapIfNeeded,i=a.wrap,j=window.CanvasRenderingContext2D;c(b.prototype
,{get canvas(){return i(f(this).canvas)},drawImage:function(){arguments[0]=h(arg
uments[0]),f(this).drawImage.apply(f(this),arguments)},createPattern:function(){
return arguments[0]=g(arguments[0]),f(this).createPattern.apply(f(this),argument
s)}}),d(j,b,document.createElement("canvas").getContext("2d")),a.wrappers.Canvas
RenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";functio
n b(a){e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwr
ap,g=a.unwrapIfNeeded,h=a.wrap,i=window.WebGLRenderingContext;if(i){c(b.prototyp
e,{get canvas(){return h(f(this).canvas)},texImage2D:function(){arguments[5]=g(a
rguments[5]),f(this).texImage2D.apply(f(this),arguments)},texSubImage2D:function
(){arguments[6]=g(arguments[6]),f(this).texSubImage2D.apply(f(this),arguments)}}
);var j=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBuff
erWidth:null}:{};d(i,b,j),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMP
olyfill),function(a){"use strict";function b(a){d(a,this)}var c=a.registerWrappe
r,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap,i=windo
w.Range;b.prototype={get startContainer(){return h(e(this).startContainer)},get
endContainer(){return h(e(this).endContainer)},get commonAncestorContainer(){ret
urn h(e(this).commonAncestorContainer)},setStart:function(a,b){e(this).setStart(
g(a),b)},setEnd:function(a,b){e(this).setEnd(g(a),b)},setStartBefore:function(a)
{e(this).setStartBefore(g(a))},setStartAfter:function(a){e(this).setStartAfter(g
(a))},setEndBefore:function(a){e(this).setEndBefore(g(a))},setEndAfter:function(
a){e(this).setEndAfter(g(a))},selectNode:function(a){e(this).selectNode(g(a))},s
electNodeContents:function(a){e(this).selectNodeContents(g(a))},compareBoundaryP
oints:function(a,b){return e(this).compareBoundaryPoints(a,f(b))},extractContent
s:function(){return h(e(this).extractContents())},cloneContents:function(){retur
n h(e(this).cloneContents())},insertNode:function(a){e(this).insertNode(g(a))},s
urroundContents:function(a){e(this).surroundContents(g(a))},cloneRange:function(
){return h(e(this).cloneRange())},isPointInRange:function(a,b){return e(this).is
PointInRange(g(a),b)},comparePoint:function(a,b){return e(this).comparePoint(g(a
),b)},intersectsNode:function(a){return e(this).intersectsNode(g(a))},toString:f
unction(){return e(this).toString()}},i.prototype.createContextualFragment&&(b.p
rototype.createContextualFragment=function(a){return h(e(this).createContextualF
ragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(windo
w.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a
.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(doc
ument.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,
b);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentF
ragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var
b=l(k(a).ownerDocument.createDocumentFragment());c.call(this,b),i(b,this);var e=
a.shadowRoot;n.set(this,e),this.treeScope_=new d(this,g(e||a)),m.set(this,a)}var
c=a.wrappers.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInnerHT
ML,g=a.getTreeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unsafeUnwrap,l=a.u
nwrap,m=new WeakMap,n=new WeakMap,o=/[ \t\n\r\f]/;b.prototype=Object.create(c.pr
ototype),h(b.prototype,{constructor:b,get innerHTML(){return f(this)},set innerH
TML(a){j(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return n
.get(this)||null},get host(){return m.get(this)||null},invalidateShadowRenderer:
function(){return m.get(this).invalidateShadowRenderer()},elementFromPoint:funct
ion(a,b){return e(this,this.ownerDocument,a,b)},getElementById:function(a){retur
n o.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot=b}(
window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSibli
ng_=a.previousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}fu
nction c(a,c,e){var f=H(a),g=H(c),h=e?H(e):null;if(d(c),b(c),e)a.firstChild===e&
&(a.firstChild_=e),e.previousSibling_=e.previousSibling;else{a.lastChild_=a.last
Child,a.lastChild===a.firstChild&&(a.firstChild_=a.firstChild);var i=I(f.lastChi
ld);i&&(i.nextSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=H(
a),d=c.parentNode;if(d){var e=I(d);b(a),a.previousSibling&&(a.previousSibling.ne
xtSibling_=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){J.set(a,[])}function f(a){var b=J.get(a);return b||J.set(a,b=[]),b}functio
n g(a){for(var b=[],c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b}funct
ion h(){for(var a=0;a<N.length;a++){var b=N[a],c=b.parentRenderer;c&&c.dirty||b.
render()}N=[]}function i(){y=null,h()}function j(a){var b=L.get(a);return b||(b=
new n(a),L.set(a,b)),b}function k(a){var b=E(a).root;return b instanceof D?b:nul
l}function l(a){return j(a.host)}function m(a){this.skip=!1,this.node=a,this.chi
ldNodes=[]}function n(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),t
his.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);return b}function p(a){if(a instanceof B)re
turn a;if(a instanceof A)return null;for(var b=a.firstChild;b;b=b.nextSibling){v
ar c=p(b);if(c)return c}return null}function q(a,b){f(b).push(a);var c=K.get(a);
c?c.push(b):K.set(a,[b])}function r(a){return K.get(a)}function s(a){K.set(a,voi
d 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(!P.test(c))return!1;try{return a.m
atches(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.s
hadowRoot}function 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.wrap
pers.HTMLShadowElement,C=a.wrappers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.g
etTreeScope),F=(a.mixin,a.oneOf),G=a.unsafeUnwrap,H=a.unwrap,I=a.wrap,J=new Weak
Map,K=new WeakMap,L=new WeakMap,M=F(window,["requestAnimationFrame","mozRequestA
nimationFrame","webkitRequestAnimationFrame","setTimeout"]),N=[],O=new ArraySpli
ce;O.equals=function(a,b){return H(a.node)===b},m.prototype={append:function(a){
var b=new m(a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip)
{for(var b=this.node,e=this.childNodes,f=g(H(b)),h=a||new WeakMap,i=O.calculateS
plices(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=I(f[k++]);h.get(q)||d(
q)}for(var r=n.addedCount,s=f[k]&&I(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.pr
ototype={render:function(a){if(this.dirty){this.invalidateAttributes();var b=thi
s.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.dirty){this.dirty=!0;var a=this.parentRenderer;if
(a&&a.invalidate(),N.push(this),y)return;y=window[M](i,0)}},distribution:functio
n(a){this.resetAll(a),this.distributionResolution(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.olderShadowRoot&&this.resetAll(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.length-1;e>=0;e--){var f=d
[e],g=p(f);if(g){var h=f.olderShadowRoot;h&&(c=o(h));for(var i=0;i<c.length;i++)
q(c[i],g)}this.distributionResolution(f)}}for(var j=a.firstChild;j;j=j.nextSibli
ng)this.distributionResolution(j)},poolDistribution:function(a,b){if(!(a instanc
eof B))if(a instanceof A){var c=a;this.updateDependentAttributes(c.getAttribute(
"select"));for(var d=!1,e=0;e<b.length;e++){var a=b[e];a&&t(a,c)&&(q(a,c),b[e]=v
oid 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:func
tion(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.as
sociateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g];u(d,h)&&b.push(h)}}
else b.push(d);return b},invalidateAttributes:function(){this.attributes=Object.
create(null)},updateDependentAttributes: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:function(a){G(a).polymerShadowRenderer_=this}};var
P=/^(:not\()?[*.#[a-zA-Z_|]/;C.prototype.invalidateShadowRenderer=function(){va
r a=G(this).polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototype.
getDistributedNodes=B.prototype.getDistributedNodes=function(){return h(),f(this
)},z.prototype.getDestinationInsertionPoints=function(){return h(),r(this)||[]},
A.prototype.nodeIsInserted_=B.prototype.nodeIsInserted_=function(){this.invalida
teShadowRenderer();var a,b=k(this);b&&(a=l(b)),G(this).polymerShadowRenderer_=a,
a&&a.invalidate()},a.getRendererForHost=j,a.getShadowTrees=x,a.renderAllPending=
h,a.getDestinationInsertionPoints=r,a.visual={insertBefore:c,remove:d}}(window.S
hadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]){d(!a.wrap
pers[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.cre
ateElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d=a.ass
ert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HT
MLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElement","HT
MLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLTextAreaElement"];
i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d
(a,this)}{var c=a.registerWrapper,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a
.unwrapIfNeeded,h=a.wrap;window.Selection}b.prototype={get anchorNode(){return h
(e(this).anchorNode)},get focusNode(){return h(e(this).focusNode)},addRange:func
tion(a){e(this).addRange(f(a))},collapse:function(a,b){e(this).collapse(g(a),b)}
,containsNode:function(a,b){return e(this).containsNode(g(a),b)},extend:function
(a,b){e(this).extend(g(a),b)},getRangeAt:function(a){return h(e(this).getRangeAt
(a))},removeRange:function(a){e(this).removeRange(f(a))},selectAllChildren:funct
ion(a){e(this).selectAllChildren(g(a))},toString:function(){return e(this).toStr
ing()}},c(window.Selection,b,window.getSelection()),a.wrappers.Selection=b}(wind
ow.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]=func
tion(){return C(c.apply(A(this),arguments))}}function d(a,b){F.call(A(b),B(a)),e
(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(
a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a,b){var c=a.old
erShadowRoot;c&&b.adoptNode(c)}function g(a){z(a,this)}function h(a,b){var c=doc
ument.implementation[b];a.prototype[b]=function(){return C(c.apply(A(this),argum
ents))}}function i(a,b){var c=document.implementation[b];a.prototype[b]=function
(){return c.apply(A(this),arguments)}}var j=a.GetElementsByInterface,k=a.wrapper
s.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.SelectorsInterface,o=a
.wrappers.ShadowRoot,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapGetter,s=a.elemen
tFromPoint,t=a.forwardMethodsToWrapper,u=a.matchesNames,v=a.mixin,w=a.registerWr
apper,x=a.renderAllPending,y=a.rewrap,z=a.setWrapper,A=a.unsafeUnwrap,B=a.unwrap
,C=a.wrap,D=a.wrapEventTargetMethods,E=(a.wrapNodeList,new WeakMap);b.prototype=
Object.create(k.prototype),r(b,"documentElement"),r(b,"body"),r(b,"head"),["crea
teComment","createDocumentFragment","createElement","createElementNS","createEve
nt","createEventNS","createRange","createTextNode","getElementById"].forEach(c);
var F=document.adoptNode,G=document.getSelection;if(v(b.prototype,{adoptNode:fun
ction(a){return a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFr
omPoint:function(a,b){return s(this,this,a,b)},importNode:function(a,b){return q
(a,b,A(this))},getSelection:function(){return x(),new m(G.call(B(this)))},getEle
mentsByName:function(a){return n.querySelectorAll.call(this,"[name="+JSON.string
ify(String(a))+"]")}}),document.registerElement){var H=document.registerElement;
b.prototype.registerElement=function(b,c){function d(a){return a?void z(a,this):
f?document.createElement(f,b):document.createElement(b)}var e,f;if(void 0!==c&&(
e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.prototype)),a.nativeP
rototypeTable.get(e))throw new Error("NotSupportedError");for(var g,h=Object.get
PrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.push(h),h=Object.ge
tPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(var j=Object.crea
te(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback","attachedCallb
ack","detachedCallback","attributeChangedCallback"].forEach(function(a){var b=e[
a];b&&(j[a]=function(){C(this)instanceof d||y(this),b.apply(C(this),arguments)})
});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototype.constructor=d,
a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);H.call(B(this),b,l);
return d},t([window.HTMLDocument||window.Document],["registerElement"])}t([windo
w.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement,wi
ndow.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains","getEl
ementsByClassName","getElementsByTagName","getElementsByTagNameNS","insertBefore
","querySelector","querySelectorAll","removeChild","replaceChild"].concat(u)),t(
[window.HTMLDocument||window.Document],["adoptNode","importNode","contains","cre
ateComment","createDocumentFragment","createElement","createElementNS","createEv
ent","createEventNS","createRange","createTextNode","elementFromPoint","getEleme
ntById","getElementsByName","getSelection"]),v(b.prototype,j),v(b.prototype,l),v
(b.prototype,n),v(b.prototype,{get implementation(){var a=E.get(this);return a?a
:(a=new g(B(this).implementation),E.set(this,a),a)},get defaultView(){return C(B
(this).defaultView)}}),w(window.Document,b,document.implementation.createHTMLDoc
ument("")),window.HTMLDocument&&w(window.HTMLDocument,b),D([window.HTMLBodyEleme
nt,window.HTMLDocument||window.Document,window.HTMLHeadElement]),h(g,"createDocu
mentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,"hasFeature"),w(w
indow.DOMImplementation,g),t([window.DOMImplementation],["createDocumentType","c
reateDocument","createHTMLDocument","hasFeature"]),a.adoptNodeNoRemove=d,a.wrapp
ers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOMPolyfill),functio
n(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.
wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllPending,h=a.unwrap
,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComputedStyle,m=window.
getDefaultComputedStyle,n=window.getSelection;b.prototype=Object.create(c.protot
ype),k.prototype.getComputedStyle=function(a,b){return j(this||window).getComput
edStyle(i(a),b)},m&&(k.prototype.getDefaultComputedStyle=function(a,b){return j(
this||window).getDefaultComputedStyle(i(a),b)}),k.prototype.getSelection=functio
n(){return j(this||window).getSelection()},delete window.getComputedStyle,delete
window.getSelection,["addEventListener","removeEventListener","dispatchEvent"].
forEach(function(a){k.prototype[a]=function(){var b=j(this||window);return b[a].
apply(b,arguments)},delete window[a]}),e(b.prototype,{getComputedStyle:function(
a,b){return g(),l.call(h(this),i(a),b)},getSelection:function(){return g(),new d
(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.prototype.setDragImag
e;d&&(c.prototype.setDragImage=function(a,c,e){d.call(this,b(a),c,e)})}(window.S
hadowDOMPolyfill),function(a){"use strict";function b(a){var b;b=a instanceof f?
a:new f(a&&e(a)),d(b,this)}var c=a.registerWrapper,d=a.setWrapper,e=a.unwrap,f=w
indow.FormData;c(f,b,new f),a.wrappers.FormData=b}(window.ShadowDOMPolyfill),fun
ction(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:"HTMLAnch
orElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement
",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"H
TMLCanvasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",co
ntent:"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement"
,del:"HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDL
istElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFo
ntElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSe
tElement",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html
:"HTMLHtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTML
InputElement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLe
gendElement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marq
uee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",m
eta:"HTMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HT
MLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output
:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTML
PreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScri
ptElement",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSou
rceElement",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElem
ent",tbody:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HT
MLTextAreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:
"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLULi
stElement",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPro
pertyNames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.Sha
dowDOMPolyfill),function(a){function b(a,c){var d,e,f,g,h=a.firstElementChild;fo
r(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.nextEleme
ntSibling}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--)f
or(e=g[h].querySelectorAll(b),i=0;i<e.length;i++)d.push(e[i]);for(;j;)c(j,b,d),j
=j.nextElementSibling;return d}window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window
.unwrap=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype
,"webkitShadowRoot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoo
t"));var d=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot
=function(){var a=d.call(this);return CustomElements.watchShadow(this),a},Elemen
t.prototype.webkitCreateShadowRoot=Element.prototype.createShadowRoot,a.queryAll
Shadows=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform),function(a)
{function b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a
.textContent+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.crea
teElement("style");return b.textContent=a,b}function d(a){var b=c(a);document.he
ad.appendChild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else cons
ole.warn("sheet not found",b);return b.parentNode.removeChild(b),d}function e(){
v.initialized=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.create
Element("base");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.in
itialized||e(),document.body.appendChild(v),a(v.contentDocument),document.body.r
emoveChild(v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f
(function(a){a.head.appendChild(g.impl),e=g.sheet.cssRules,b(e)})}else e=d(a),b(
e)}}function h(a){a&&j().appendChild(document.createTextNode(a))}function i(a,b)
{var d=c(a);d.setAttribute(b,""),d.setAttribute(z,""),document.head.appendChild(
d)}function j(){return w||(w=document.createElement("style"),w.setAttribute(z,""
),w[z]=!0),w}var k={strictStyling:!1,registry:{},shimStyling:function(a,c,d){var
e=this.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.addCssToDocumen
t(h,c)},shimStyle:function(a,b){return this.shimCssText(a.textContent,b)},shimCs
sText:function(a,b){return a=this.insertDirectives(a),this.scopeCssText(a,b)},ma
keScopeSelector:function(a,b){return a?b?"[is="+a+"]":a:""},isTypeExtension:func
tion(a){return a&&a.indexOf("-")<0},prepareRoot:function(a,b,c){var d=this.regis
terRoot(a,b,c);return this.replaceTextInStyles(d.rootStyles,this.insertDirective
s),this.removeStyles(a,d.rootStyles),this.strictStyling&&this.applyScopeToConten
t(a,b),d.scopeStyles},removeStyles:function(a,b){for(var c,d=0,e=b.length;e>d&&(
c=b[d]);d++)c.parentNode.removeChild(c)},registerRoot:function(a,b,c){var d=this
.registry[b]={root:a,name:b,extendsName:c},e=this.findStyles(a);d.rootStyles=e,d
.scopeStyles=d.rootStyles;var f=this.registry[d.extendsName];return f&&(d.scopeS
tyles=f.scopeStyles.concat(d.scopeStyles)),d},findStyles:function(a){if(!a)retur
n[];var b=a.querySelectorAll("style");return Array.prototype.filter.call(b,funct
ion(a){return!a.hasAttribute(A)})},applyScopeToContent:function(a,b){a&&(Array.p
rototype.forEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")})
,Array.prototype.forEach.call(a.querySelectorAll("template"),function(a){this.ap
plyScopeToContent(a.content,b)},this))},insertDirectives:function(a){return a=th
is.insertPolyfillDirectivesInCssText(a),this.insertPolyfillRulesInCssText(a)},in
sertPolyfillDirectivesInCssText:function(a){return a=a.replace(m,function(a,b){r
eturn b.slice(0,-2)+"{"}),a.replace(n,function(a,b){return b+" {"})},insertPolyf
illRulesInCssText: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.conv
ertColonHostContext(a),a=this.convertShadowDOMSelectors(a),b){var a,d=this;g(a,f
unction(c){a=d.scopeRules(c,b)})}return a=a+"\n"+c,a.trim()},extractUnscopedRule
sFromCssText: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},c
onvertColonHost:function(a){return this.convertColonRule(a,cssColonHostRe,this.c
olonHostPartReplacer)},convertColonHostContext:function(a){return this.convertCo
lonRule(a,cssColonHostContextRe,this.colonHostContextPartReplacer)},convertColon
Rule:function(a,b,c){return a.replace(b,function(a,b,d,e){if(b=polyfillHostNoCom
binator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length;j>i&&(f=g[i]);i++)f=f.tr
im(),h.push(c(b,f,e));return h.join(",")}return b+e})},colonHostContextPartRepla
cer:function(a,b,c){return b.match(s)?this.colonHostPartReplacer(a,b,c):a+b+c+",
"+b+" "+a+c},colonHostPartReplacer:function(a,b,c){return a+b.replace(s,"")+c},
convertShadowDOMSelectors: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.style&&void 0!==a.style.cssText)c+=this.scopeSelector(a.selectorText,b,this.s
trictStyling)+" {\n ",c+=this.propertiesFromRule(a)+"\n}\n\n";else if(a.type
===CSSRule.MEDIA_RULE)c+="@media "+a.media.mediaText+" {\n",c+=this.scopeRules(a
.cssRules,b),c+="\n}\n\n";else try{a.cssText&&(c+=a.cssText+"\n\n")}catch(d){}},
this),c},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(polyfillHo
stNoCombinator)?this.applyStrictSelectorScope(a,b):this.applySelectorScope(a,b))
,d.push(a)},this),d.join(", ")},selectorNeedsScoping:function(a,b){if(Array.isAr
ray(b))return!0;var c=this.makeScopeMatcher(b);return!a.match(c)},makeScopeMatch
er:function(a){return a=a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("
^("+a+")"+selectorReSuffix,"m")},applySelectorScope:function(a,b){return Array.i
sArray(b)?this.applySelectorScopeList(a,b):this.applySimpleSelectorScope(a,b)},a
pplySelectorScopeList:function(a,b){for(var c,d=[],e=0;c=b[e];e++)d.push(this.ap
plySimpleSelectorScope(a,c));return d.join(", ")},applySimpleSelectorScope:funct
ion(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");var c=[" ",">","+","~"],d=a,e="["+b+"]";r
eturn 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.replac
e(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText
:function(a){return a.replace(colonHostContextRe,t).replace(colonHostRe,s)},prop
ertiesFromRule:function(a){var b=a.style.cssText;a.style.content&&!a.style.conte
nt.match(/['"]+|attr/)&&(b=b.replace(/content:[^;]*;/g,"content: '"+a.style.cont
ent+"';"));var c=a.style;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");r
eturn b},replaceTextInStyles:function(a,b){a&&b&&(a instanceof Array||(a=[a]),Ar
ray.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]*?['"](.*?)['"][;\s]*}
([^{]*?){/gim,o=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfi
ll-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,q=/\/\*\s@polyfill-un
scoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/(polyfill-unscoped-rule)[^}]*(con
tent\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,s="-shadowcsshost",t="-shadowcsscontex
t",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 RegE
xp(s,"gim"),polyfillHostContextRe=new RegExp(t,"gim"),shadowDOMSelectorsRe=[/\^\
^/g,/\^/g,/\/shadow\//g,/\/shadow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g]
;var v=document.createElement("iframe");v.style.display="none";var w,x=navigator
.userAgent.match("Chrome"),y="shim-shadowdom",z="shim-shadowdom-css",A="no-shim"
;if(window.ShadowDOMPolyfill){h("style { display: none !important; }\n");var B=w
rap(document),C=B.querySelector("head");C.insertBefore(j(),C.childNodes[0]),docu
ment.addEventListener("DOMContentLoaded",function(){var b=a.urlResolver;if(windo
w.HTMLImports&&!HTMLImports.useNative){var c="link[rel=stylesheet]["+y+"]",d="st
yle["+y+"]";HTMLImports.importer.documentPreloadSelectors+=","+c,HTMLImports.imp
orter.importsPreloadSelectors+=","+c,HTMLImports.parser.documentSelectors=[HTMLI
mports.parser.documentSelectors,c,d].join(",");var e=HTMLImports.parser.parseGen
eric;HTMLImports.parser.parseGeneric=function(a){if(!a[z]){var c=a.__importEleme
nt||a;if(!c.hasAttribute(y))return void e.call(this,a);a.__resource?(c=a.ownerDo
cument.createElement("style"),c.textContent=b.resolveCssText(a.__resource,a.href
)):b.resolveStyle(c),c.textContent=k.shimStyle(c),c.removeAttribute(y,""),c.setA
ttribute(z,""),c[z]=!0,c.parentNode!==C&&(a.parentNode===C?C.replaceChild(c,a):t
his.addElementToDocument(c)),c.__importParsed=!0,this.markParsingComplete(a),thi
s.parseNext()}};var f=HTMLImports.parser.hasResource;HTMLImports.parser.hasResou
rce=function(a){return"link"===a.localName&&"stylesheet"===a.rel&&a.hasAttribute
(y)?a.__resource:f.call(this,a) | 14 },get rows(){return h(f(this).rows)},insertRow:function(a){return g(f(this).inse
rtRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTMLTableElement=
b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,
a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollec
tion,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototype=Object.cre
ate(c.prototype),d(b.prototype,{constructor:b,get rows(){return f(g(this).rows)}
,insertRow:function(a){return h(g(this).insertRow(a))}}),e(i,b,document.createEl
ement("thead")),a.wrappers.HTMLTableSectionElement=b}(window.ShadowDOMPolyfill),
function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLEleme
nt,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=wi
ndow.HTMLTableRowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{g
et cells(){return f(g(this).cells)},insertCell:function(a){return h(g(this).inse
rtCell(a))}}),e(i,b,document.createElement("tr")),a.wrappers.HTMLTableRowElement
=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a.lo
calName){case"content":return new c(a);case"shadow":return new e(a);case"templat
e":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrappe
rs.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement,g
=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototype=Object.crea
te(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfill
),function(a){"use strict";var b=a.wrappers.Element,c=a.wrappers.HTMLElement,d=a
.registerObject,e="http://www.w3.org/2000/svg",f=document.createElementNS(e,"tit
le"),g=d(f),h=Object.getPrototypeOf(g.prototype).constructor;if(!("classList"in
f)){var i=Object.getOwnPropertyDescriptor(b.prototype,"classList");Object.define
Property(c.prototype,"classList",i),delete b.prototype.classList}a.wrappers.SVGE
lement=h}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){m.cal
l(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.SVGUseE
lement,h="http://www.w3.org/2000/svg",i=f(document.createElementNS(h,"g")),j=doc
ument.createElementNS(h,"use"),k=i.constructor,l=Object.getPrototypeOf(k.prototy
pe),m=l.constructor;b.prototype=Object.create(l),"instanceRoot"in j&&c(b.prototy
pe,{get instanceRoot(){return f(e(this).instanceRoot)},get animatedInstanceRoot(
){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.unsafeUnwrap,g=a
.wrap,h=window.SVGElementInstance;h&&(b.prototype=Object.create(c.prototype),d(b
.prototype,{get correspondingElement(){return g(f(this).correspondingElement)},g
et correspondingUseElement(){return g(f(this).correspondingUseElement)},get pare
ntNode(){return g(f(this).parentNode)},get childNodes(){throw new Error("Not imp
lemented")},get firstChild(){return g(f(this).firstChild)},get lastChild(){retur
n g(f(this).lastChild)},get previousSibling(){return g(f(this).previousSibling)}
,get nextSibling(){return g(f(this).nextSibling)}}),e(h,b),a.wrappers.SVGElement
Instance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){e(
a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwrap,g=a.un
wrap,h=a.unwrapIfNeeded,i=a.wrap,j=window.CanvasRenderingContext2D;c(b.prototype
,{get canvas(){return i(f(this).canvas)},drawImage:function(){arguments[0]=h(arg
uments[0]),f(this).drawImage.apply(f(this),arguments)},createPattern:function(){
return arguments[0]=g(arguments[0]),f(this).createPattern.apply(f(this),argument
s)}}),d(j,b,document.createElement("canvas").getContext("2d")),a.wrappers.Canvas
RenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";functio
n b(a){e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwr
ap,g=a.unwrapIfNeeded,h=a.wrap,i=window.WebGLRenderingContext;if(i){c(b.prototyp
e,{get canvas(){return h(f(this).canvas)},texImage2D:function(){arguments[5]=g(a
rguments[5]),f(this).texImage2D.apply(f(this),arguments)},texSubImage2D:function
(){arguments[6]=g(arguments[6]),f(this).texSubImage2D.apply(f(this),arguments)}}
);var j=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBuff
erWidth:null}:{};d(i,b,j),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMP
olyfill),function(a){"use strict";function b(a){d(a,this)}var c=a.registerWrappe
r,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap,i=windo
w.Range;b.prototype={get startContainer(){return h(e(this).startContainer)},get
endContainer(){return h(e(this).endContainer)},get commonAncestorContainer(){ret
urn h(e(this).commonAncestorContainer)},setStart:function(a,b){e(this).setStart(
g(a),b)},setEnd:function(a,b){e(this).setEnd(g(a),b)},setStartBefore:function(a)
{e(this).setStartBefore(g(a))},setStartAfter:function(a){e(this).setStartAfter(g
(a))},setEndBefore:function(a){e(this).setEndBefore(g(a))},setEndAfter:function(
a){e(this).setEndAfter(g(a))},selectNode:function(a){e(this).selectNode(g(a))},s
electNodeContents:function(a){e(this).selectNodeContents(g(a))},compareBoundaryP
oints:function(a,b){return e(this).compareBoundaryPoints(a,f(b))},extractContent
s:function(){return h(e(this).extractContents())},cloneContents:function(){retur
n h(e(this).cloneContents())},insertNode:function(a){e(this).insertNode(g(a))},s
urroundContents:function(a){e(this).surroundContents(g(a))},cloneRange:function(
){return h(e(this).cloneRange())},isPointInRange:function(a,b){return e(this).is
PointInRange(g(a),b)},comparePoint:function(a,b){return e(this).comparePoint(g(a
),b)},intersectsNode:function(a){return e(this).intersectsNode(g(a))},toString:f
unction(){return e(this).toString()}},i.prototype.createContextualFragment&&(b.p
rototype.createContextualFragment=function(a){return h(e(this).createContextualF
ragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(windo
w.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a
.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(doc
ument.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,
b);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.DocumentF
ragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var
b=l(k(a).ownerDocument.createDocumentFragment());c.call(this,b),i(b,this);var e=
a.shadowRoot;n.set(this,e),this.treeScope_=new d(this,g(e||a)),m.set(this,a)}var
c=a.wrappers.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInnerHT
ML,g=a.getTreeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unsafeUnwrap,l=a.u
nwrap,m=new WeakMap,n=new WeakMap,o=/[ \t\n\r\f]/;b.prototype=Object.create(c.pr
ototype),h(b.prototype,{constructor:b,get innerHTML(){return f(this)},set innerH
TML(a){j(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return n
.get(this)||null},get host(){return m.get(this)||null},invalidateShadowRenderer:
function(){return m.get(this).invalidateShadowRenderer()},elementFromPoint:funct
ion(a,b){return e(this,this.ownerDocument,a,b)},getElementById:function(a){retur
n o.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot=b}(
window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSibli
ng_=a.previousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}fu
nction c(a,c,e){var f=H(a),g=H(c),h=e?H(e):null;if(d(c),b(c),e)a.firstChild===e&
&(a.firstChild_=e),e.previousSibling_=e.previousSibling;else{a.lastChild_=a.last
Child,a.lastChild===a.firstChild&&(a.firstChild_=a.firstChild);var i=I(f.lastChi
ld);i&&(i.nextSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=H(
a),d=c.parentNode;if(d){var e=I(d);b(a),a.previousSibling&&(a.previousSibling.ne
xtSibling_=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){J.set(a,[])}function f(a){var b=J.get(a);return b||J.set(a,b=[]),b}functio
n g(a){for(var b=[],c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b}funct
ion h(){for(var a=0;a<N.length;a++){var b=N[a],c=b.parentRenderer;c&&c.dirty||b.
render()}N=[]}function i(){y=null,h()}function j(a){var b=L.get(a);return b||(b=
new n(a),L.set(a,b)),b}function k(a){var b=E(a).root;return b instanceof D?b:nul
l}function l(a){return j(a.host)}function m(a){this.skip=!1,this.node=a,this.chi
ldNodes=[]}function n(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),t
his.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);return b}function p(a){if(a instanceof B)re
turn a;if(a instanceof A)return null;for(var b=a.firstChild;b;b=b.nextSibling){v
ar c=p(b);if(c)return c}return null}function q(a,b){f(b).push(a);var c=K.get(a);
c?c.push(b):K.set(a,[b])}function r(a){return K.get(a)}function s(a){K.set(a,voi
d 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(!P.test(c))return!1;try{return a.m
atches(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.s
hadowRoot}function 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.wrap
pers.HTMLShadowElement,C=a.wrappers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.g
etTreeScope),F=(a.mixin,a.oneOf),G=a.unsafeUnwrap,H=a.unwrap,I=a.wrap,J=new Weak
Map,K=new WeakMap,L=new WeakMap,M=F(window,["requestAnimationFrame","mozRequestA
nimationFrame","webkitRequestAnimationFrame","setTimeout"]),N=[],O=new ArraySpli
ce;O.equals=function(a,b){return H(a.node)===b},m.prototype={append:function(a){
var b=new m(a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip)
{for(var b=this.node,e=this.childNodes,f=g(H(b)),h=a||new WeakMap,i=O.calculateS
plices(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=I(f[k++]);h.get(q)||d(
q)}for(var r=n.addedCount,s=f[k]&&I(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.pr
ototype={render:function(a){if(this.dirty){this.invalidateAttributes();var b=thi
s.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.dirty){this.dirty=!0;var a=this.parentRenderer;if
(a&&a.invalidate(),N.push(this),y)return;y=window[M](i,0)}},distribution:functio
n(a){this.resetAll(a),this.distributionResolution(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.olderShadowRoot&&this.resetAll(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.length-1;e>=0;e--){var f=d
[e],g=p(f);if(g){var h=f.olderShadowRoot;h&&(c=o(h));for(var i=0;i<c.length;i++)
q(c[i],g)}this.distributionResolution(f)}}for(var j=a.firstChild;j;j=j.nextSibli
ng)this.distributionResolution(j)},poolDistribution:function(a,b){if(!(a instanc
eof B))if(a instanceof A){var c=a;this.updateDependentAttributes(c.getAttribute(
"select"));for(var d=!1,e=0;e<b.length;e++){var a=b[e];a&&t(a,c)&&(q(a,c),b[e]=v
oid 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:func
tion(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.as
sociateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g];u(d,h)&&b.push(h)}}
else b.push(d);return b},invalidateAttributes:function(){this.attributes=Object.
create(null)},updateDependentAttributes: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:function(a){G(a).polymerShadowRenderer_=this}};var
P=/^(:not\()?[*.#[a-zA-Z_|]/;C.prototype.invalidateShadowRenderer=function(){va
r a=G(this).polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototype.
getDistributedNodes=B.prototype.getDistributedNodes=function(){return h(),f(this
)},z.prototype.getDestinationInsertionPoints=function(){return h(),r(this)||[]},
A.prototype.nodeIsInserted_=B.prototype.nodeIsInserted_=function(){this.invalida
teShadowRenderer();var a,b=k(this);b&&(a=l(b)),G(this).polymerShadowRenderer_=a,
a&&a.invalidate()},a.getRendererForHost=j,a.getShadowTrees=x,a.renderAllPending=
h,a.getDestinationInsertionPoints=r,a.visual={insertBefore:c,remove:d}}(window.S
hadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]){d(!a.wrap
pers[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.cre
ateElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d=a.ass
ert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HT
MLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElement","HT
MLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLTextAreaElement"];
i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){d
(a,this)}{var c=a.registerWrapper,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a
.unwrapIfNeeded,h=a.wrap;window.Selection}b.prototype={get anchorNode(){return h
(e(this).anchorNode)},get focusNode(){return h(e(this).focusNode)},addRange:func
tion(a){e(this).addRange(f(a))},collapse:function(a,b){e(this).collapse(g(a),b)}
,containsNode:function(a,b){return e(this).containsNode(g(a),b)},extend:function
(a,b){e(this).extend(g(a),b)},getRangeAt:function(a){return h(e(this).getRangeAt
(a))},removeRange:function(a){e(this).removeRange(f(a))},selectAllChildren:funct
ion(a){e(this).selectAllChildren(g(a))},toString:function(){return e(this).toStr
ing()}},c(window.Selection,b,window.getSelection()),a.wrappers.Selection=b}(wind
ow.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]=func
tion(){return C(c.apply(A(this),arguments))}}function d(a,b){F.call(A(b),B(a)),e
(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(
a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f(a,b){var c=a.old
erShadowRoot;c&&b.adoptNode(c)}function g(a){z(a,this)}function h(a,b){var c=doc
ument.implementation[b];a.prototype[b]=function(){return C(c.apply(A(this),argum
ents))}}function i(a,b){var c=document.implementation[b];a.prototype[b]=function
(){return c.apply(A(this),arguments)}}var j=a.GetElementsByInterface,k=a.wrapper
s.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.SelectorsInterface,o=a
.wrappers.ShadowRoot,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapGetter,s=a.elemen
tFromPoint,t=a.forwardMethodsToWrapper,u=a.matchesNames,v=a.mixin,w=a.registerWr
apper,x=a.renderAllPending,y=a.rewrap,z=a.setWrapper,A=a.unsafeUnwrap,B=a.unwrap
,C=a.wrap,D=a.wrapEventTargetMethods,E=(a.wrapNodeList,new WeakMap);b.prototype=
Object.create(k.prototype),r(b,"documentElement"),r(b,"body"),r(b,"head"),["crea
teComment","createDocumentFragment","createElement","createElementNS","createEve
nt","createEventNS","createRange","createTextNode","getElementById"].forEach(c);
var F=document.adoptNode,G=document.getSelection;if(v(b.prototype,{adoptNode:fun
ction(a){return a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFr
omPoint:function(a,b){return s(this,this,a,b)},importNode:function(a,b){return q
(a,b,A(this))},getSelection:function(){return x(),new m(G.call(B(this)))},getEle
mentsByName:function(a){return n.querySelectorAll.call(this,"[name="+JSON.string
ify(String(a))+"]")}}),document.registerElement){var H=document.registerElement;
b.prototype.registerElement=function(b,c){function d(a){return a?void z(a,this):
f?document.createElement(f,b):document.createElement(b)}var e,f;if(void 0!==c&&(
e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.prototype)),a.nativeP
rototypeTable.get(e))throw new Error("NotSupportedError");for(var g,h=Object.get
PrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.push(h),h=Object.ge
tPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(var j=Object.crea
te(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback","attachedCallb
ack","detachedCallback","attributeChangedCallback"].forEach(function(a){var b=e[
a];b&&(j[a]=function(){C(this)instanceof d||y(this),b.apply(C(this),arguments)})
});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototype.constructor=d,
a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);H.call(B(this),b,l);
return d},t([window.HTMLDocument||window.Document],["registerElement"])}t([windo
w.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement,wi
ndow.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains","getEl
ementsByClassName","getElementsByTagName","getElementsByTagNameNS","insertBefore
","querySelector","querySelectorAll","removeChild","replaceChild"].concat(u)),t(
[window.HTMLDocument||window.Document],["adoptNode","importNode","contains","cre
ateComment","createDocumentFragment","createElement","createElementNS","createEv
ent","createEventNS","createRange","createTextNode","elementFromPoint","getEleme
ntById","getElementsByName","getSelection"]),v(b.prototype,j),v(b.prototype,l),v
(b.prototype,n),v(b.prototype,{get implementation(){var a=E.get(this);return a?a
:(a=new g(B(this).implementation),E.set(this,a),a)},get defaultView(){return C(B
(this).defaultView)}}),w(window.Document,b,document.implementation.createHTMLDoc
ument("")),window.HTMLDocument&&w(window.HTMLDocument,b),D([window.HTMLBodyEleme
nt,window.HTMLDocument||window.Document,window.HTMLHeadElement]),h(g,"createDocu
mentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,"hasFeature"),w(w
indow.DOMImplementation,g),t([window.DOMImplementation],["createDocumentType","c
reateDocument","createHTMLDocument","hasFeature"]),a.adoptNodeNoRemove=d,a.wrapp
ers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOMPolyfill),functio
n(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.
wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllPending,h=a.unwrap
,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComputedStyle,m=window.
getDefaultComputedStyle,n=window.getSelection;b.prototype=Object.create(c.protot
ype),k.prototype.getComputedStyle=function(a,b){return j(this||window).getComput
edStyle(i(a),b)},m&&(k.prototype.getDefaultComputedStyle=function(a,b){return j(
this||window).getDefaultComputedStyle(i(a),b)}),k.prototype.getSelection=functio
n(){return j(this||window).getSelection()},delete window.getComputedStyle,delete
window.getDefaultComputedStyle,delete window.getSelection,["addEventListener","
removeEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=functio
n(){var b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b
.prototype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a),b)},ge
tSelection:function(){return g(),new d(n.call(h(this)))},get document(){return j
(h(this).document)}}),m&&(b.prototype.getDefaultComputedStyle=function(a,b){retu
rn g(),m.call(h(this),i(a),b)}),f(k,b,window),a.wrappers.Window=b}(window.Shadow
DOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.DataTransfer||wind
ow.Clipboard,d=c.prototype.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){var b;b=a instanceof f?a:new f(a&&e(a)),d(b,this)}var c=a.registe
rWrapper,d=a.setWrapper,e=a.unwrap,f=window.FormData;c(f,b,new f),a.wrappers.For
mData=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:"H
TMLAudioElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement
",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptio
nElement",col:"HTMLTableColElement",content:"HTMLContentElement",data:"HTMLDataE
lement",datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTMLDirectoryEl
ement",div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedElement",field
set:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",frame:"H
TMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HT
MLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameEleme
nt",img:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeygenElement",l
abel:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTML
LinkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuEle
ment",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterElem
ent",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElem
ent",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphEleme
nt",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement"
,q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectElement",shad
ow:"HTMLShadowElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"
HTMLStyleElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",templ
ate:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLTableSection
Element",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement
",track:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Obje
ct.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.old
erShadowRoot;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){va
r e,f,g,h,i,j=a.firstElementChild;for(g=[],f=a.shadowRoot;f;)g.push(f),f=f.older
ShadowRoot;for(h=g.length-1;h>=0;h--)for(e=g[h].querySelectorAll(b),i=0;i<e.leng
th;i++)d.push(e[i]);for(;j;)c(j,b,d),j=j.nextElementSibling;return d}window.wrap
=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded,O
bject.defineProperty(Element.prototype,"webkitShadowRoot",Object.getOwnPropertyD
escriptor(Element.prototype,"shadowRoot"));var d=Element.prototype.createShadowR
oot;Element.prototype.createShadowRoot=function(){var a=d.call(this);return Cust
omElements.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.pro
totype.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.par
entNode.removeChild(b),d}function e(){v.initialized=!0,document.body.appendChild
(v);var a=v.contentDocument,b=a.createElement("base");b.href=document.baseURI,a.
head.appendChild(b)}function f(a){v.initialized||e(),document.body.appendChild(v
),a(v.contentDocument),document.body.removeChild(v)}function g(a,b){if(b){var e;
if(a.match("@import")&&x){var g=c(a);f(function(a){a.head.appendChild(g.impl),e=
g.sheet.cssRules,b(e)})}else e=d(a),b(e)}}function h(a){a&&j().appendChild(docum
ent.createTextNode(a))}function i(a,b){var d=c(a);d.setAttribute(b,""),d.setAttr
ibute(z,""),document.head.appendChild(d)}function j(){return w||(w=document.crea
teElement("style"),w.setAttribute(z,""),w[z]=!0),w}var k={strictStyling:!1,regis
try:{},shimStyling:function(a,c,d){var e=this.prepareRoot(a,c,d),f=this.isTypeEx
tension(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 thi
s.shimCssText(a.textContent,b)},shimCssText:function(a,b){return a=this.insertDi
rectives(a),this.scopeCssText(a,b)},makeScopeSelector:function(a,b){return a?b?"
[is="+a+"]":a:""},isTypeExtension:function(a){return a&&a.indexOf("-")<0},prepar
eRoot:function(a,b,c){var d=this.registerRoot(a,b,c);return this.replaceTextInSt
yles(d.rootStyles,this.insertDirectives),this.removeStyles(a,d.rootStyles),this.
strictStyling&&this.applyScopeToContent(a,b),d.scopeStyles},removeStyles:functio
n(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)c.parentNode.removeChild(c)},r
egisterRoot: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.regis
try[d.extendsName];return f&&(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles))
,d},findStyles:function(a){if(!a)return[];var b=a.querySelectorAll("style");retu
rn Array.prototype.filter.call(b,function(a){return!a.hasAttribute(A)})},applySc
opeToContent:function(a,b){a&&(Array.prototype.forEach.call(a.querySelectorAll("
*"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.call(a.querySelec
torAll("template"),function(a){this.applyScopeToContent(a.content,b)},this))},in
sertDirectives:function(a){return a=this.insertPolyfillDirectivesInCssText(a),th
is.insertPolyfillRulesInCssText(a)},insertPolyfillDirectivesInCssText:function(a
){return a=a.replace(m,function(a,b){return b.slice(0,-2)+"{"}),a.replace(n,func
tion(a,b){return b+" {"})},insertPolyfillRulesInCssText:function(a){return a=a.r
eplace(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=t
his.extractUnscopedRulesFromCssText(a);if(a=this.insertPolyfillHostInCssText(a),
a=this.convertColonHost(a),a=this.convertColonHostContext(a),a=this.convertShado
wDOMSelectors(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.co
nvertColonRule(a,cssColonHostRe,this.colonHostPartReplacer)},convertColonHostCon
text:function(a){return this.convertColonRule(a,cssColonHostContextRe,this.colon
HostContextPartReplacer)},convertColonRule:function(a,b,c){return a.replace(b,fu
nction(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(",")}r
eturn b+e})},colonHostContextPartReplacer:function(a,b,c){return b.match(s)?this
.colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplacer:functi
on(a,b,c){return a+b.replace(s,"")+c},convertShadowDOMSelectors: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.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]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,o=/\/\*\s@polyfill-rule([^
*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"
])[;\s]*[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//
gim,r=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gi
m,s="-shadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)
\\))?([^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColonHostContextRe=ne
w RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",colonHostR
e=/\:host/gim,colonHostContextRe=/\:host-context/gim,polyfillHostNoCombinator=s+
"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHostContextRe=new Re
gExp(t,"gim"),shadowDOMSelectorsRe=[/\^\^/g,/\^/g,/\/shadow\//g,/\/shadow-deep\/
/g,/::shadow/g,/\/deep\//g,/::content/g];var v=document.createElement("iframe");
v.style.display="none";var w,x=navigator.userAgent.match("Chrome"),y="shim-shado
wdom",z="shim-shadowdom-css",A="no-shim";if(window.ShadowDOMPolyfill){h("style {
display: none !important; }\n");var B=wrap(document),C=B.querySelector("head");
C.insertBefore(j(),C.childNodes[0]),document.addEventListener("DOMContentLoaded"
,function(){var b=a.urlResolver;if(window.HTMLImports&&!HTMLImports.useNative){v
ar c="link[rel=stylesheet]["+y+"]",d="style["+y+"]";HTMLImports.importer.documen
tPreloadSelectors+=","+c,HTMLImports.importer.importsPreloadSelectors+=","+c,HTM
LImports.parser.documentSelectors=[HTMLImports.parser.documentSelectors,c,d].joi
n(",");var e=HTMLImports.parser.parseGeneric;HTMLImports.parser.parseGeneric=fun
ction(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.textCont
ent=b.resolveCssText(a.__resource,a.href)):b.resolveStyle(c),c.textContent=k.shi
mStyle(c),c.removeAttribute(y,""),c.setAttribute(z,""),c[z]=!0,c.parentNode!==C&
&(a.parentNode===C?C.replaceChild(c,a):this.addElementToDocument(c)),c.__importP
arsed=!0,this.markParsingComplete(a),this.parseNext()}};var f=HTMLImports.parser
.hasResource;HTMLImports.parser.hasResource=function(a){return"link"===a.localNa
me&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource:f.call(this,a) |
15 }}})}a.ShadowCSS=k}(window.Platform)):!function(){window.wrap=window.unwrap=func
tion(a){return a},addEventListener("DOMContentLoaded",function(){if(CustomElemen
ts.useNative===!1){var a=Element.prototype.createShadowRoot;Element.prototype.cr
eateShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(t
his),b}}}),Platform.templateContent=function(a){if(window.HTMLTemplateElement&&H
TMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._c
ontent){for(var b=document.createDocumentFragment();a.firstChild;)b.appendChild(
a.firstChild);a._content=b}return a.content||a._content}}(window.Platform),funct
ion(a){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this)
,this._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}func
tion e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].inde
xOf(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)
{function i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;
(a[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if
(!u||!p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}
l+=u.toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCas
e();else{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "
+u);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(t
his._scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRe
lative&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"aut
hority first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="q
uery"):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&
(this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";
continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if(
"/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority
ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem
e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa
th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\
\ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho
st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{
if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!
=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po
rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this.
_host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query
,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){
"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path";
continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file
host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i
("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec
ond slash";break;case"authority second slash":if(j="authority ignore slashes","/
"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i
f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break
;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;
x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p
assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el
se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o==
u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea
k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test
(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c
all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\
n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case"
hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=
d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\
n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h
ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea
k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"=
=u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+
""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||"
\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path
start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\
"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#
"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel
ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"!
=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):".
"!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"|
"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query"
):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br
eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}
}function h(){this._scheme="",this._schemeData="",this._username="",this._passwo
rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment=
"",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance
of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f
]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=
new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr
eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443
;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"
]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i
f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi
s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"
),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query
+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return
this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta
rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:
this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host"
)},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR
elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t
his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t
his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se
t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"
relative path start"))},get search(){return this._isInvalid||!this._query||"?"==
this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(t
his._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){ret
urn this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set
hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(t
his,a,"fragment"))}};var r=a.URL;r&&(i.createObjectURL=function(){return r.creat
eObjectURL.apply(r,arguments)},i.revokeObjectURL=function(a){r.revokeObjectURL(a
)}),a.URL=i}}(this),function(a){function b(a){for(var b=a||{},d=1;d<arguments.le
ngth;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}fun
ction c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){v
ar c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b
)}}Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Ar
ray.prototype.slice.call(arguments,1);return function(){var d=c.slice();return d
.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a)
{"use strict";function b(a,b,c){var d="string"==typeof a?document.createElement(
a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);retu
rn d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenLi
st.prototype.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,argum
ents[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a<arguments.lengt
h;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=function(a,b){1==
arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenLi
st.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b)};var e=functi
on(){return Array.prototype.slice.call(this)},f=window.NamedNodeMap||window.MozN
amedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e,HTMLCollection
.prototype.array=e,!window.performance){var g=Date.now();window.performance={now
:function(){return Date.now()-g}}}window.requestAnimationFrame||(window.requestA
nimationFrame=function(){var a=window.webkitRequestAnimationFrame||window.mozReq
uestAnimationFrame;return a?function(b){return a(function(){b(performance.now())
})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimationFr
ame||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimation
Frame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var h=[]
,i=function(){h.push(arguments)};window.Polymer=i,a.deliverDeclarations=function
(){return a.deliverDeclarations=function(){throw"Possible attempt to load Polyme
r twice"},h},window.addEventListener("DOMContentLoaded",function(){window.Polyme
r===i&&(window.Polymer=function(){console.error('You tried to use polymer withou
t loading it first. To load polymer, <link rel="import" href="components/polymer
/polymer.html">')})}),a.createDOM=b}(window.Platform),function(a){a.templateCont
ent=a.templateContent||function(a){return a.content}}(window.Platform),function(
a){a=a||(window.Inspector={});var b;window.sinspect=function(a,d){b||(b=window.o
pen("","ShadowDOM Inspector",null,!0),b.document.write(c),b.api={shadowize:shado
wize}),f(a||wrap(document.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"
," <title>ShadowDOM Inspector</title>"," <style>"," body {"," }"
," pre {",' font: 9pt "Courier New", monospace;'," line-heigh
t: 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 i
d="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].join
("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.textCon
tent="";for(var e,g=0;e=d[g];g++){var h=a.createElement("a");h.href="#",h.textCo
ntent=e.localName,h.idx=g,h.onclick=function(a){for(var b;d.length>this.idx;)b=d
.pop();f(b.shadow||b,b),a.preventDefault()},c.appendChild(a.createElement("li"))
.appendChild(h)}},f=function(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e()
,f.body.querySelector("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=A
rray.prototype.forEach.call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#
comment":1,TEMPLATE:1},i=function(a){return h[a.nodeName]},j=function(a,b,c){if(
i(a))return"";var d=c||"";if(a.localName||11==a.nodeType){var e=a.localName||"sh
adow-root",f=d+l(a);"content"==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d
+" ";g(b,function(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<t
ag></"+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||"shad
ow-root";return a.webkitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'
" onclick="api.shadowize.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-ro
ot",a.attributes&&g(a.attributes,function(a){b+=" "+a.name+(a.value?'="'+a.value
+'"':"")}),b+="></tag>"};shadowize=function(){var a=Number(this.attributes.id
x.value),b=k[a];b?f(b.webkitShadowRoot||b.shadowRoot,b):(console.log("bad shadow
ize node"),console.dir(this))},a.output=j}(window.Inspector),function(){var a=do
cument.createElement("style");a.textContent="body {transition: opacity ease-in 0
.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; } \n";v
ar b=document.querySelector("head");b.insertBefore(a,b.firstChild)}(Platform),fu
nction(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}f
unction c(a,c,d){var e;switch(arguments.length){case 0:return;case 1:e=null;brea
k;case 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]
}function e(a,c){HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.mar
shal=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.c
reateTextNode("");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=ne
w URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.protocol?e(b,
c):a}function e(a,b){for(var c=a.pathname,d=b.pathname,e=c.split("/"),f=d.split(
"/");e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h=e.length-1;h>g;g++
)f.unshift("..");return f.join("/")+b.search+b.hash}var f={resolveDom:function(a
,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),this.resolveStyles(
a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c.length;f>e&&(d=
c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTemplate:function(a){t
his.resolveDom(a.content,a.ownerDocument.baseURI)},resolveStyles:function(a,b){v
ar 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:function(a,b){b=b||a.ownerDocument.baseURI
,a.textContent=this.resolveCssText(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.hasAttribu
tes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a.querySelec
torAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAtt
ributes(d,b)},resolveElementAttributes:function(a,d){d=d||a.ownerDocument.baseUR
I,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=/(@imp
ort[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action","style","url"],j="["+i.j
oin("],[")+"]",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.Sh
adowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(functio
n(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_.forEac
h(function(b){var c=p.get(b);c&&c.forEach(function(b){b.observer===a&&b.removeTr
ansientObservers()})})}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.enqueue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],thi
s.records_=[],this.uid_=++v}function h(a,b){this.type=a,this.target=b,this.added
Nodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,th
is.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function i
(a){var b=new h(a.type,a.target);return b.addedNodes=a.addedNodes.slice(),b.remo
vedNodes=a.removedNodes.slice(),b.previousSibling=a.previousSibling,b.nextSiblin
g=a.nextSibling,b.attributeName=a.attributeName,b.attributeNamespace=a.attribute
Namespace,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){ret
urn a===x||a===w}function n(a,b){return a===b?a:x&&m(a)?x:null}function o(a,b,c)
{this.observer=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var
p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=String(Math.random());w
indow.addEventListener("message",function(a){if(a.data===s){var b=r;r=[],b.forEa
ch(function(a){a()})}}),q=function(a){r.push(a),window.postMessage(s,"*")}}var t
=!1,u=[],v=0;g.prototype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attri
butes&&!b.characterData||b.attributeOldValue&&!b.attributes||b.attributeFilter&&
b.attributeFilter.length&&!b.attributes||b.characterDataOldValue&&!b.characterDa
ta)throw new SyntaxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.lengt
h;f++)if(d[f].observer===this){e=d[f],e.removeListeners(),e.options=b;break}e||(
e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListeners()},disconnect:fu
nction(){this.nodes_.forEach(function(a){for(var b=p.get(a),c=0;c<b.length;c++){
var d=b[c];if(d.observer===this){d.removeListeners(),b.splice(c,1);break}}},this
),this.records_=[]},takeRecords:function(){var a=this.records_;return this.recor
ds_=[],a}};var w,x;o.prototype={enqueue:function(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:function(){this.addListeners_(this.target
)},addListeners_:function(a){var b=this.options;b.attributes&&a.addEventListener
("DOMAttrModified",this,!0),b.characterData&&a.addEventListener("DOMCharacterDat
aModified",this,!0),b.childList&&a.addEventListener("DOMNodeInserted",this,!0),(
b.childList||b.subtree)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeLis
teners:function(){this.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.removeEventListener("DOMNodeInserted",this,!0),(b.childList||b.su
btree)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:fu
nction(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.fo
rEach(function(a){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++
)if(b[c]===this){b.splice(c,1);break}},this)},handleEvent:function(a){switch(a.s
topImmediatePropagation(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.rel
atedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.att
ributeNamespace=c;var g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f
(d,function(a){return!a.attributes||a.attributeFilter&&a.attributeFilter.length&
&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?void 0:a.a
ttributeOldValue?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.char
acterDataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved":this.addTransientOb
server(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNo
deInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling,o=m.nextS
ibling,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.previousSibling=n,e.
nextSibling=o,f(d,function(a){return a.childList?e:void 0})}l()}},a.JsMutationOb
server=g,a.MutationObserver||(a.MutationObserver=g)}(this),window.HTMLImports=wi
ndow.HTMLImports||{flags:{}},function(a){function b(a,b){b=b||o,d(function(){e(a
,b)},b)}function c(a){return"complete"===a.readyState||a.readyState===q}function
d(a,b){if(c(b))a&&a();else{var e=function(){("complete"===b.readyState||b.ready
State===q)&&(b.removeEventListener(r,e),d(a,b))};b.addEventListener(r,e)}}functi
on e(a,b){function c(){g==h&&a&&a()}function d(){g++,c()}var e=b.querySelectorAl
l("link[rel=import]"),g=0,h=e.length;if(h)for(var i,j=0;h>j&&(i=e[j]);j++)f(i)?d
.call(i):(i.addEventListener("load",d),i.addEventListener("error",d));else c()}f
unction f(a){return l?a.__loaded:a.__importParsed}function g(a){for(var b,c=0,d=
a.length;d>c&&(b=a[c]);c++)h(b)&&i(b)}function h(a){return"link"===a.localName&&
"import"===a.rel}function i(a){var b=a.import;b?j({target:a}):(a.addEventListene
r("load",j),a.addEventListener("error",j))}function j(a){a.target.__loaded=!0}va
r k="import"in document.createElement("link"),l=k;isIE=/Trident/.test(navigator.
userAgent);var m=Boolean(window.ShadowDOMPolyfill),n=function(a){return m?Shadow
DOMPolyfill.wrapIfNeeded(a):a},o=n(document),p={get:function(){var a=HTMLImports
.currentScript||document.currentScript||("complete"!==document.readyState?docume
nt.scripts[document.scripts.length-1]:null);return n(a)},configurable:!0};Object
.defineProperty(document,"_currentScript",p),Object.defineProperty(o,"_currentSc
ript",p);var q=isIE?"complete":"interactive",r="readystatechange";l&&new Mutatio
nObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.addedNodes&&g
(b.addedNodes)}).observe(document.head,{childList:!0}),b(function(){HTMLImports.
ready=!0,HTMLImports.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEv
ent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=l,a.isImportLoaded=f,a.when
Ready=b,a.isIE=isIE,a.whenImportsReady=b}(window.HTMLImports),function(a){var b=
(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomp
lete=b,this.inflight=0,this.pending={}};d.prototype={addNodes:function(a){this.i
nflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);thi
s.checkDone()},addNode:function(a){this.inflight++,this.require(a),this.checkDon
e()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||thi
s.fetch(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pending[a].pus
h(b),!0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(th
is.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?ato
b(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;for(var f,g=this.pending[a],h=
0,i=g.length;i>h&&(f=g[h]);h++)this.onload(a,f,d,c,e),this.tail();this.pending[a
]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){t
his.inflight||this.oncomplete()}},b=b||{async:!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.flags.bust)&&(c+="?"+Math.random()),f.op
en("GET",c,b.async),f.addEventListener("readystatechange",function(){if(4===f.re
adyState){var a=f.getResponseHeader("Location"),c=null;if(a)var c="/"===a.substr
(0,1)?location.origin+a:a;d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}}),
f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType="document
"}},a.xhr=b,a.Loader=d}(window.HTMLImports),function(a){function b(a){return"lin
k"===a.localName&&a.rel===g}function c(a){var b=d(a);return"data:text/javascript
;charset=utf-8,"+encodeURIComponent(b)}function d(a){return a.textContent+e(a)}f
unction e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c="["+Math.f
loor(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.resol
veUrlsInStyle(b),b}var g="import",h=a.flags,i=a.isIE,j=window.ShadowDOMPolyfill?
window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={documentSelectors:"l
ink[rel="+g+"]",importsSelectors:["link[rel="+g+"]","link[rel=stylesheet]","styl
e","script:not([type])",'script[type="text/javascript"]'].join(","),map:{link:"p
arseLink",script:"parseScript",style:"parseStyle"},parseNext:function(){var a=th
is.nextToParse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return
void(h.parse&&console.log("[%s] is already parsed",a.localName));var b=this[this
.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function
(a){h.parse&&console.log("parsing",a),this.parsingElement=a},markParsingComplete
:function(a){a.__importParsed=!0,a.__importElement&&(a.__importElement.__importP
arsed=!0),this.parsingElement=null,h.parse&&console.log("completed",a)},invalida
teParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__importLink.__import
Parsed=!1,this.parseSoon())},parseSoon:function(){this._parseSoon&&cancelAnimati
onFrame(this._parseDelay);var a=this;this._parseSoon=requestAnimationFrame(funct
ion(){a.parseNext()})},parseImport:function(a){if(HTMLImports.__importsParsingHo
ok&&HTMLImports.__importsParsingHook(a),a.import&&(a.import.__importParsed=!0),t
his.markParsingComplete(a),a.dispatchEvent(a.__resource&&!a.__error?new CustomEv
ent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(
var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.parseNext(
)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.parseGener
ic(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.parseGene
ric(a)},parseGeneric:function(a){this.trackElement(a),this.addElementToDocument(
a)},rootImportForElement:function(a){for(var b=a;b.ownerDocument.__importLink;)b
=b.ownerDocument.__importLink;return b},addElementToDocument:function(a){for(var
b=this.rootImportForElement(a.__importElement||a),c=b.__insertedElements=b.__in
sertedElements||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.addEventListener("error",d),i&&"style"===a.localName){var e=!1;if(-1==a.tex
tContent.indexOf("@import"))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRu
les,h=g?g.length:0,j=0;h>j&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boo
lean(f.styleSheet))}e&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},p
arseScript:function(b){var d=document.createElement("script");d.__importElement=
b,d.src=b.src?b.src:c(b),a.currentScript=b,this.trackElement(d,function(){d.pare
ntNode.removeChild(d),a.currentScript=null}),this.addElementToDocument(d)},nextT
oParse:function(){return!this.parsingElement&&this.nextToParseInDoc(j)},nextToPa
rseInDoc:function(a,c){if(a)for(var d,e=a.querySelectorAll(this.parseSelectorsFo
rNode(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.hasR
esource(d)?b(d)?this.nextToParseInDoc(d.import,d):d:void 0;return c},parseSelect
orsForNode:function(a){var b=a.ownerDocument||a;return b===j?this.documentSelect
ors:this.importsSelectors},isParsed:function(a){return a.__importParsed},hasReso
urce:function(a){return b(a)&&void 0===a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,
m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsInStyle:function(a){var b=a
.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCss
Text(a.textContent,c),a},resolveUrlsInCssText:function(a,b){var c=this.replaceUr
ls(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.hre
f,c+"'"+f+"'"+e})}};a.parser=k,a.path=n}(HTMLImports),function(a){function b(a){
return c(a,g)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel")=
==b}function d(a,b){var c=a;c instanceof Document||(c=document.implementation.cr
eateHTMLDocument(g)),c._URL=b;var d=c.createElement("base");d.setAttribute("href
",b),c.baseURI||(c.baseURI=b);var e=c.createElement("meta");return e.setAttribut
e("charset","utf-8"),c.head.appendChild(e),c.head.appendChild(d),a instanceof Do
cument||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.boo
tstrap&&HTMLTemplateElement.bootstrap(c),c}var e=a.useNative,f=a.flags,g="import
",h=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document;i
f(e)var i={};else{var j=(a.xhr,a.Loader),k=a.parser,i={documents:{},documentPrel
oadSelectors:"link[rel="+g+"]",importsPreloadSelectors:["link[rel="+g+"]"].join(
","),loadNode:function(a){l.addNode(a)},loadSubtree:function(a){var b=this.marsh
alNodes(a);l.addNodes(b)},marshalNodes:function(a){return a.querySelectorAll(thi
s.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a.ownerDocume
nt||a;return b===h?this.documentPreloadSelectors:this.importsPreloadSelectors},l
oaded:function(a,c,e,g,h){if(f.load&&console.log("loaded",a,c),c.__resource=e,c.
__error=g,b(c)){var i=this.documents[a];void 0===i&&(i=g?null:d(e,h||a),i&&(i.__
importLink=c,this.bootDocument(i)),this.documents[a]=i),c.import=i}k.parseNext()
},bootDocument:function(a){this.loadSubtree(a),this.observe(a),k.parseNext()},lo
adedAll:function(){k.parseNext()}},l=new j(i.loaded.bind(i),i.loadedAll.bind(i))
;if(!document.baseURI){var m={get:function(){var a=document.querySelector("base"
);return a?a.href:window.location.href},configurable:!0};Object.defineProperty(d
ocument,"baseURI",m),Object.defineProperty(h,"baseURI",m)}"function"!=typeof win
dow.CustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent("H
TMLEvents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.
detail),c})}a.importer=i,a.IMPORT_LINK_TYPE=g,a.importLoader=l}(window.HTMLImpor
ts),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"childL
ist"===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.childr
en&&e.children.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.call
(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:!0
})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=(a.parser,HTMLElement.prototype.match
es||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSe
lector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatche
sSelector),h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),funct
ion(){function a(){HTMLImports.importer.bootDocument(b)}var b=window.ShadowDOMPo
lyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.useN
ative||("complete"===document.readyState||"interactive"===document.readyState&&!
window.attachEvent?a():document.addEventListener("DOMContentLoaded",a))}(),windo
w.CustomElements=window.CustomElements||{flags:{}},function(a){function b(a,c,d)
{var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMENT
_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;retu
rn null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}fun
ction d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,d)}function e(a){r
eturn 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.nodeTyp
e===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c];i
f(d)return A.dom&&console.group("upgrade:",b.localName),a.upgrade(b),A.dom&&cons
ole.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(a)})}function j(a)
{if(E.push(a),!D){D=!0;var b=window.Platform&&window.Platform.endOfMicrotask||se
tTimeout;b(k)}}function k(){D=!1; | 15 }}})}a.ShadowCSS=k}(window.Platform)):!function(){window.wrap=window.unwrap=func
tion(a){return a},addEventListener("DOMContentLoaded",function(){if(CustomElemen
ts.useNative===!1){var a=Element.prototype.createShadowRoot;Element.prototype.cr
eateShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(t
his),b}}}),Platform.templateContent=function(a){if(window.HTMLTemplateElement&&H
TMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._c
ontent){for(var b=document.createDocumentFragment();a.firstChild;)b.appendChild(
a.firstChild);a._content=b}return a.content||a._content}}(window.Platform),funct
ion(a){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this)
,this._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}func
tion e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].inde
xOf(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)
{function i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;
(a[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if
(!u||!p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}
l+=u.toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCas
e();else{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "
+u);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(t
his._scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRe
lative&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"aut
hority first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="q
uery"):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&
(this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";
continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if(
"/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority
ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem
e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa
th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\
\ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho
st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{
if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!
=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po
rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this.
_host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query
,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){
"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path";
continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file
host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i
("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec
ond slash";break;case"authority second slash":if(j="authority ignore slashes","/
"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i
f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break
;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;
x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p
assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el
se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o==
u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea
k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test
(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c
all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\
n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case"
hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=
d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\
n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h
ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea
k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"=
=u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+
""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||"
\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path
start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\
"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#
"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel
ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"!
=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):".
"!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"|
"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query"
):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br
eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}
}function h(){this._scheme="",this._schemeData="",this._username="",this._passwo
rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment=
"",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance
of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f
]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=
new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr
eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443
;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"
]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i
f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi
s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"
),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query
+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return
this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta
rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:
this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host"
)},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR
elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t
his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t
his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se
t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"
relative path start"))},get search(){return this._isInvalid||!this._query||"?"==
this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(t
his._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){ret
urn this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set
hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(t
his,a,"fragment"))}};var r=a.URL;r&&(i.createObjectURL=function(){return r.creat
eObjectURL.apply(r,arguments)},i.revokeObjectURL=function(a){r.revokeObjectURL(a
)}),a.URL=i}}(this),function(a){function b(a){for(var b=a||{},d=1;d<arguments.le
ngth;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}fun
ction c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){v
ar c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b
)}}Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Ar
ray.prototype.slice.call(arguments,1);return function(){var d=c.slice();return d
.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a)
{"use strict";function b(a,b,c){var d="string"==typeof a?document.createElement(
a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);retu
rn d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenLi
st.prototype.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,argum
ents[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a<arguments.lengt
h;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=function(a,b){1==
arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenLi
st.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b)};var e=functi
on(){return Array.prototype.slice.call(this)},f=window.NamedNodeMap||window.MozN
amedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e,HTMLCollection
.prototype.array=e,!window.performance){var g=Date.now();window.performance={now
:function(){return Date.now()-g}}}window.requestAnimationFrame||(window.requestA
nimationFrame=function(){var a=window.webkitRequestAnimationFrame||window.mozReq
uestAnimationFrame;return a?function(b){return a(function(){b(performance.now())
})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimationFr
ame||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimation
Frame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var h=[]
,i=function(){h.push(arguments)};window.Polymer=i,a.deliverDeclarations=function
(){return a.deliverDeclarations=function(){throw"Possible attempt to load Polyme
r twice"},h},window.addEventListener("DOMContentLoaded",function(){window.Polyme
r===i&&(window.Polymer=function(){console.error('You tried to use polymer withou
t loading it first. To load polymer, <link rel="import" href="components/polymer
/polymer.html">')})}),a.createDOM=b}(window.Platform),function(a){a.templateCont
ent=a.templateContent||function(a){return a.content}}(window.Platform),function(
a){a=a||(window.Inspector={});var b;window.sinspect=function(a,d){b||(b=window.o
pen("","ShadowDOM Inspector",null,!0),b.document.write(c),b.api={shadowize:shado
wize}),f(a||wrap(document.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"
," <title>ShadowDOM Inspector</title>"," <style>"," body {"," }"
," pre {",' font: 9pt "Courier New", monospace;'," line-heigh
t: 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 i
d="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"].join
("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.textCon
tent="";for(var e,g=0;e=d[g];g++){var h=a.createElement("a");h.href="#",h.textCo
ntent=e.localName,h.idx=g,h.onclick=function(a){for(var b;d.length>this.idx;)b=d
.pop();f(b.shadow||b,b),a.preventDefault()},c.appendChild(a.createElement("li"))
.appendChild(h)}},f=function(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e()
,f.body.querySelector("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=A
rray.prototype.forEach.call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#
comment":1,TEMPLATE:1},i=function(a){return h[a.nodeName]},j=function(a,b,c){if(
i(a))return"";var d=c||"";if(a.localName||11==a.nodeType){var e=a.localName||"sh
adow-root",f=d+l(a);"content"==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d
+" ";g(b,function(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<t
ag></"+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||"shad
ow-root";return a.webkitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'
" onclick="api.shadowize.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-ro
ot",a.attributes&&g(a.attributes,function(a){b+=" "+a.name+(a.value?'="'+a.value
+'"':"")}),b+="></tag>"};shadowize=function(){var a=Number(this.attributes.id
x.value),b=k[a];b?f(b.webkitShadowRoot||b.shadowRoot,b):(console.log("bad shadow
ize node"),console.dir(this))},a.output=j}(window.Inspector),function(){var a=do
cument.createElement("style");a.textContent="body {transition: opacity ease-in 0
.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; } \n";v
ar b=document.querySelector("head");b.insertBefore(a,b.firstChild)}(Platform),fu
nction(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}f
unction c(a,c,d){var e;switch(arguments.length){case 0:return;case 1:e=null;brea
k;case 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]
}function e(a,c){HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.mar
shal=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.c
reateTextNode("");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=ne
w URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.protocol?e(b,
c):a}function e(a,b){for(var c=a.pathname,d=b.pathname,e=c.split("/"),f=d.split(
"/");e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h=e.length-1;h>g;g++
)f.unshift("..");return f.join("/")+b.search+b.hash}var f={resolveDom:function(a
,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),this.resolveStyles(
a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c.length;f>e&&(d=
c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTemplate:function(a){t
his.resolveDom(a.content,a.ownerDocument.baseURI)},resolveStyles:function(a,b){v
ar 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:function(a,b){b=b||a.ownerDocument.baseURI
,a.textContent=this.resolveCssText(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.hasAttribu
tes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a.querySelec
torAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAtt
ributes(d,b)},resolveElementAttributes:function(a,d){d=d||a.ownerDocument.baseUR
I,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=/(@imp
ort[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action","style","url"],j="["+i.j
oin("],[")+"]",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.Sh
adowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(functio
n(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_.forEac
h(function(b){var c=p.get(b);c&&c.forEach(function(b){b.observer===a&&b.removeTr
ansientObservers()})})}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.enqueue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],thi
s.records_=[],this.uid_=++v}function h(a,b){this.type=a,this.target=b,this.added
Nodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,th
is.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function i
(a){var b=new h(a.type,a.target);return b.addedNodes=a.addedNodes.slice(),b.remo
vedNodes=a.removedNodes.slice(),b.previousSibling=a.previousSibling,b.nextSiblin
g=a.nextSibling,b.attributeName=a.attributeName,b.attributeNamespace=a.attribute
Namespace,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){ret
urn a===x||a===w}function n(a,b){return a===b?a:x&&m(a)?x:null}function o(a,b,c)
{this.observer=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var
p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=String(Math.random());w
indow.addEventListener("message",function(a){if(a.data===s){var b=r;r=[],b.forEa
ch(function(a){a()})}}),q=function(a){r.push(a),window.postMessage(s,"*")}}var t
=!1,u=[],v=0;g.prototype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attri
butes&&!b.characterData||b.attributeOldValue&&!b.attributes||b.attributeFilter&&
b.attributeFilter.length&&!b.attributes||b.characterDataOldValue&&!b.characterDa
ta)throw new SyntaxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.lengt
h;f++)if(d[f].observer===this){e=d[f],e.removeListeners(),e.options=b;break}e||(
e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListeners()},disconnect:fu
nction(){this.nodes_.forEach(function(a){for(var b=p.get(a),c=0;c<b.length;c++){
var d=b[c];if(d.observer===this){d.removeListeners(),b.splice(c,1);break}}},this
),this.records_=[]},takeRecords:function(){var a=this.records_;return this.recor
ds_=[],a}};var w,x;o.prototype={enqueue:function(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:function(){this.addListeners_(this.target
)},addListeners_:function(a){var b=this.options;b.attributes&&a.addEventListener
("DOMAttrModified",this,!0),b.characterData&&a.addEventListener("DOMCharacterDat
aModified",this,!0),b.childList&&a.addEventListener("DOMNodeInserted",this,!0),(
b.childList||b.subtree)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeLis
teners:function(){this.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.removeEventListener("DOMNodeInserted",this,!0),(b.childList||b.su
btree)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:fu
nction(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.fo
rEach(function(a){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++
)if(b[c]===this){b.splice(c,1);break}},this)},handleEvent:function(a){switch(a.s
topImmediatePropagation(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.rel
atedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.att
ributeNamespace=c;var g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f
(d,function(a){return!a.attributes||a.attributeFilter&&a.attributeFilter.length&
&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?void 0:a.a
ttributeOldValue?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.char
acterDataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved":this.addTransientOb
server(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNo
deInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling,o=m.nextS
ibling,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.previousSibling=n,e.
nextSibling=o,f(d,function(a){return a.childList?e:void 0})}l()}},a.JsMutationOb
server=g,a.MutationObserver||(a.MutationObserver=g)}(this),window.HTMLImports=wi
ndow.HTMLImports||{flags:{}},function(a){function b(a,b){b=b||o,d(function(){e(a
,b)},b)}function c(a){return"complete"===a.readyState||a.readyState===q}function
d(a,b){if(c(b))a&&a();else{var e=function(){("complete"===b.readyState||b.ready
State===q)&&(b.removeEventListener(r,e),d(a,b))};b.addEventListener(r,e)}}functi
on e(a,b){function c(){g==h&&a&&a()}function d(){g++,c()}var e=b.querySelectorAl
l("link[rel=import]"),g=0,h=e.length;if(h)for(var i,j=0;h>j&&(i=e[j]);j++)f(i)?d
.call(i):(i.addEventListener("load",d),i.addEventListener("error",d));else c()}f
unction f(a){return l?a.__loaded:a.__importParsed}function g(a){for(var b,c=0,d=
a.length;d>c&&(b=a[c]);c++)h(b)&&i(b)}function h(a){return"link"===a.localName&&
"import"===a.rel}function i(a){var b=a.import;b?j({target:a}):(a.addEventListene
r("load",j),a.addEventListener("error",j))}function j(a){a.target.__loaded=!0}va
r k="import"in document.createElement("link"),l=k;isIE=/Trident/.test(navigator.
userAgent);var m=Boolean(window.ShadowDOMPolyfill),n=function(a){return m?Shadow
DOMPolyfill.wrapIfNeeded(a):a},o=n(document),p={get:function(){var a=HTMLImports
.currentScript||document.currentScript||("complete"!==document.readyState?docume
nt.scripts[document.scripts.length-1]:null);return n(a)},configurable:!0};Object
.defineProperty(document,"_currentScript",p),Object.defineProperty(o,"_currentSc
ript",p);var q=isIE?"complete":"interactive",r="readystatechange";l&&new Mutatio
nObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.addedNodes&&g
(b.addedNodes)}).observe(document.head,{childList:!0}),b(function(){HTMLImports.
ready=!0,HTMLImports.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEv
ent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=l,a.isImportLoaded=f,a.when
Ready=b,a.isIE=isIE,a.whenImportsReady=b}(window.HTMLImports),function(a){var b=
(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomp
lete=b,this.inflight=0,this.pending={}};d.prototype={addNodes:function(a){this.i
nflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);thi
s.checkDone()},addNode:function(a){this.inflight++,this.require(a),this.checkDon
e()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||thi
s.fetch(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pending[a].pus
h(b),!0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(th
is.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?ato
b(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;for(var f,g=this.pending[a],h=
0,i=g.length;i>h&&(f=g[h]);h++)this.onload(a,f,d,c,e),this.tail();this.pending[a
]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){t
his.inflight||this.oncomplete()}},b=b||{async:!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.flags.bust)&&(c+="?"+Math.random()),f.op
en("GET",c,b.async),f.addEventListener("readystatechange",function(){if(4===f.re
adyState){var a=f.getResponseHeader("Location"),c=null;if(a)var c="/"===a.substr
(0,1)?location.origin+a:a;d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}}),
f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType="document
"}},a.xhr=b,a.Loader=d}(window.HTMLImports),function(a){function b(a){return"lin
k"===a.localName&&a.rel===g}function c(a){var b=d(a);return"data:text/javascript
;charset=utf-8,"+encodeURIComponent(b)}function d(a){return a.textContent+e(a)}f
unction e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c="["+Math.f
loor(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.resol
veUrlsInStyle(b),b}var g="import",h=a.flags,i=a.isIE,j=window.ShadowDOMPolyfill?
window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={documentSelectors:"l
ink[rel="+g+"]",importsSelectors:["link[rel="+g+"]","link[rel=stylesheet]","styl
e","script:not([type])",'script[type="text/javascript"]'].join(","),map:{link:"p
arseLink",script:"parseScript",style:"parseStyle"},parseNext:function(){var a=th
is.nextToParse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return
void(h.parse&&console.log("[%s] is already parsed",a.localName));var b=this[this
.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function
(a){h.parse&&console.log("parsing",a),this.parsingElement=a},markParsingComplete
:function(a){a.__importParsed=!0,a.__importElement&&(a.__importElement.__importP
arsed=!0),this.parsingElement=null,h.parse&&console.log("completed",a)},invalida
teParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__importLink.__import
Parsed=!1,this.parseSoon())},parseSoon:function(){this._parseSoon&&cancelAnimati
onFrame(this._parseDelay);var a=this;this._parseSoon=requestAnimationFrame(funct
ion(){a.parseNext()})},parseImport:function(a){if(HTMLImports.__importsParsingHo
ok&&HTMLImports.__importsParsingHook(a),a.import&&(a.import.__importParsed=!0),t
his.markParsingComplete(a),a.dispatchEvent(a.__resource&&!a.__error?new CustomEv
ent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(
var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.parseNext(
)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.parseGener
ic(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.parseGene
ric(a)},parseGeneric:function(a){this.trackElement(a),this.addElementToDocument(
a)},rootImportForElement:function(a){for(var b=a;b.ownerDocument.__importLink;)b
=b.ownerDocument.__importLink;return b},addElementToDocument:function(a){for(var
b=this.rootImportForElement(a.__importElement||a),c=b.__insertedElements=b.__in
sertedElements||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.addEventListener("error",d),i&&"style"===a.localName){var e=!1;if(-1==a.tex
tContent.indexOf("@import"))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRu
les,h=g?g.length:0,j=0;h>j&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boo
lean(f.styleSheet))}e&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},p
arseScript:function(b){var d=document.createElement("script");d.__importElement=
b,d.src=b.src?b.src:c(b),a.currentScript=b,this.trackElement(d,function(){d.pare
ntNode.removeChild(d),a.currentScript=null}),this.addElementToDocument(d)},nextT
oParse:function(){return!this.parsingElement&&this.nextToParseInDoc(j)},nextToPa
rseInDoc:function(a,c){if(a)for(var d,e=a.querySelectorAll(this.parseSelectorsFo
rNode(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.hasR
esource(d)?b(d)?this.nextToParseInDoc(d.import,d):d:void 0;return c},parseSelect
orsForNode:function(a){var b=a.ownerDocument||a;return b===j?this.documentSelect
ors:this.importsSelectors},isParsed:function(a){return a.__importParsed},hasReso
urce:function(a){return b(a)&&void 0===a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,
m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsInStyle:function(a){var b=a
.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCss
Text(a.textContent,c),a},resolveUrlsInCssText:function(a,b){var c=this.replaceUr
ls(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.hre
f,c+"'"+f+"'"+e})}};a.parser=k,a.path=n}(HTMLImports),function(a){function b(a){
return c(a,g)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel")=
==b}function d(a,b){var c=a;c instanceof Document||(c=document.implementation.cr
eateHTMLDocument(g)),c._URL=b;var d=c.createElement("base");d.setAttribute("href
",b),c.baseURI||(c.baseURI=b);var e=c.createElement("meta");return e.setAttribut
e("charset","utf-8"),c.head.appendChild(e),c.head.appendChild(d),a instanceof Do
cument||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.boo
tstrap&&HTMLTemplateElement.bootstrap(c),c}var e=a.useNative,f=a.flags,g="import
",h=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document;i
f(e)var i={};else{var j=(a.xhr,a.Loader),k=a.parser,i={documents:{},documentPrel
oadSelectors:"link[rel="+g+"]",importsPreloadSelectors:["link[rel="+g+"]"].join(
","),loadNode:function(a){l.addNode(a)},loadSubtree:function(a){var b=this.marsh
alNodes(a);l.addNodes(b)},marshalNodes:function(a){return a.querySelectorAll(thi
s.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a.ownerDocume
nt||a;return b===h?this.documentPreloadSelectors:this.importsPreloadSelectors},l
oaded:function(a,c,e,g,h){if(f.load&&console.log("loaded",a,c),c.__resource=e,c.
__error=g,b(c)){var i=this.documents[a];void 0===i&&(i=g?null:d(e,h||a),i&&(i.__
importLink=c,this.bootDocument(i)),this.documents[a]=i),c.import=i}k.parseNext()
},bootDocument:function(a){this.loadSubtree(a),this.observe(a),k.parseNext()},lo
adedAll:function(){k.parseNext()}},l=new j(i.loaded.bind(i),i.loadedAll.bind(i))
;if(!document.baseURI){var m={get:function(){var a=document.querySelector("base"
);return a?a.href:window.location.href},configurable:!0};Object.defineProperty(d
ocument,"baseURI",m),Object.defineProperty(h,"baseURI",m)}"function"!=typeof win
dow.CustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent("H
TMLEvents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.
detail),c})}a.importer=i,a.IMPORT_LINK_TYPE=g,a.importLoader=l}(window.HTMLImpor
ts),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"childL
ist"===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.childr
en&&e.children.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.call
(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:!0
})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=(a.parser,HTMLElement.prototype.match
es||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSe
lector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatche
sSelector),h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),funct
ion(){function a(){HTMLImports.importer.bootDocument(b)}var b=window.ShadowDOMPo
lyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.useN
ative||("complete"===document.readyState||"interactive"===document.readyState&&!
window.attachEvent?a():document.addEventListener("DOMContentLoaded",a))}(),windo
w.CustomElements=window.CustomElements||{flags:{}},function(a){function b(a,c,d)
{var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMENT
_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;retu
rn null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}fun
ction d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,d)}function e(a){r
eturn 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.nodeTyp
e===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c];i
f(d)return A.dom&&console.group("upgrade:",b.localName),a.upgrade(b),A.dom&&cons
ole.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(a)})}function j(a)
{if(E.push(a),!D){D=!0;var b=window.Platform&&window.Platform.endOfMicrotask||se
tTimeout;b(k)}}function k(){D=!1; |
16 for(var a,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(functi
on(){m(a)}):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgr
aded__&&A.dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__insert
ed=(a.__inserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&co
nsole.warn("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attach
edCallback&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),
A.dom&&console.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(
a){C?j(function(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallb
ack||a.__upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)|
|(a.__inserted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted
<0?A.dom&&console.warn("removed:",a.localName,"insert/remove count:",a.__inserte
d):a.detachedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function
q(a){return window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}functi
on r(a){for(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}f
unction s(a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watch
ing shadow-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShad
owRoot}}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.localName)||"";d=d.split("/?").shift().split("/").pop()}console.g
roup("mutations (%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.localName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecord
s()),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.querySelec
torAll("link[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__
parsed&&z(b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImpo
rts.IMPORT_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver=
==window.JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new Mutatio
nObserver(u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPO
RT_LINK_TYPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeS
ubtree=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 ne
w Error("document.registerElement: first argument `name` must not be empty");if(
b.indexOf("-")<0)throw new Error("document.registerElement: first argument ('nam
e') must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))
throw new Error("Failed to execute 'registerElement' on 'Document': Registration
failed for type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new
Error("DuplicateDefinitionError: a type with name '"+String(b)+"' is already reg
istered");if(!h.prototype)throw new Error("Options missing required prototype pr
operty");return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.ancestry=
d(h.extends),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.prototype
=h.prototype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTree(docum
ent),h.ctor}function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}functi
on d(a){var b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,
c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a._
_name)}function f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){
var c=document.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.native=b}}function g(a){return h(B(a.tag),a)}function h(b,c){return c.is&
&b.setAttribute("is",c.is),i(b,c),b.__upgraded__=!0,k(b),a.insertedNode(b),a.upg
radeSubtree(b),b}function i(a,b){Object.__proto__?a.__proto__=b.prototype:(j(a,b
.prototype,b.native),a.__proto__=b.prototype)}function j(a,b,c){for(var d={},e=b
;e!==c&&e!==HTMLElement.prototype;){for(var f,g=Object.getOwnPropertyNames(e),h=
0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(e,
f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a.creat
edCallback()}function l(a){if(!a.setAttribute._polyfilled){var b=a.setAttribute;
a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.removeAttribute;a.remov
eAttribute=function(a){m.call(this,a,null,c)},a.setAttribute._polyfilled=!0}}fun
ction m(a,b,c){a=a.toLowerCase();var d=this.getAttribute(a);c.apply(this,argumen
ts);var e=this.getAttribute(a);this.attributeChangedCallback&&e!==d&&this.attrib
uteChangedCallback(a,d,e)}function n(a){return a?z[a.toLowerCase()]:void 0}funct
ion o(a,b){z[a]=b}function p(a){return function(){return g(a)}}function q(a,b,c)
{return a===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==
c.is)return new c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=r(a);return d.
setAttribute("is",b),d}var d=B(a);return a.indexOf("-")>=0&&i(d,HTMLElement),d}f
unction s(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttr
ibute("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.upgra
deAll(c),c}a||(a=window.CustomElements={flags:{}});var u=a.flags,v=Boolean(docum
ent.registerElement),w=!u.register&&v&&!window.ShadowDOMPolyfill&&(!window.HTMLI
mports||HTMLImports.useNative);if(w){var x=function(){};a.registry={},a.upgradeE
lement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgradeSubtree=x,a.observe
Document=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a.takeRecords=x,a.reserve
dTagList=[]}else{var y=["annotation-xml","color-profile","font-face","font-face-
src","font-face-uri","font-face-format","font-face-name","missing-glyph"],z={},A
="http://www.w3.org/1999/xhtml",B=document.createElement.bind(document),C=docume
nt.createElementNS.bind(document),D=Node.prototype.cloneNode;document.registerEl
ement=b,document.createElement=r,document.createElementNS=q,Node.prototype.clone
Node=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.reservedTagList=y,document.register=document
.registerElement,a.hasNative=v,a.useNative=w}(window.CustomElements),function(a)
{function b(a){return"link"===a.localName&&a.getAttribute("rel")===c}var c=a.IMP
ORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],map:{link:"parseLink"},parse:func
tion(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelectorAll(d.selectors);e(b,
function(a){d[d.map[a.localName]](a)}),CustomElements.upgradeDocument(a),CustomE
lements.observeDocument(a)}},parseLink:function(a){b(a)&&this.parseImport(a)},pa
rseImport:function(a){a.import&&d.parse(a.import)}},e=Array.prototype.forEach.ca
ll.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK_TYPE=c}(window.CustomE
lements),function(a){function b(){CustomElements.parser.parse(document),CustomEl
ements.upgradeDocument(document),window.HTMLImports&&(HTMLImports.__importsParsi
ngHook=function(a){CustomElements.parser.parse(a.import)}),CustomElements.ready=
!0,setTimeout(function(){CustomElements.readyTime=Date.now(),window.HTMLImports&
&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),documen
t.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}if("functi
on"!=typeof window.CustomEvent&&(window.CustomEvent=function(a,b){b=b||{};var c=
document.createEvent("CustomEvent");return c.initCustomEvent(a,Boolean(b.bubbles
),Boolean(b.cancelable),b.detail),c},window.CustomEvent.prototype=window.Event.p
rototype),"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(this.iterator_.getUpdatedValue()))},clear:function(){this
.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindings_.ref&&this.bi
ndings_.ref.close(),this.refContent_=void 0,this.iterator_&&(this.iterator_.valu
eChanged(),this.iterator_.close(),this.iterator_=void 0)},setDelegate_:function(
a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(this.iterator_.inst
ancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},newDelega
te_:function(a){function b(b){var c=a&&a[b];if("function"==typeof c)return funct
ion(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},raw:a,prepareBindi
ng:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceModel"),prepareIns
tancePositionChanged:b("prepareInstancePositionChanged")}},set bindingDelegate(a
){if(this.delegate_)throw Error("Template must be cleared before a new bindingDe
legate 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;v
ar b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.prototype,"templa
teInstance",{get:function(){var a=this.templateInstance_;return a?a:this.parentN
ode?this.parentNode.templateInstance:void 0}});var T=document.createDocumentFrag
ment();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.ifV
alue=v(J,a.if,d,b),e=c.ifValue,c.ifOneTime&&!e)return void this.valueChanged();c
.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repeat?(c.repeat=!0,c.oneTime=
a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.bind.on
lyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;return c.oneTime||(f=f.open(thi
s.updateIteratedValue,this)),e?void this.updateValue(f):void this.valueChanged()
},getUpdatedValue:function(){var a=this.deps.value;return this.deps.oneTime||(a=
a.discardChanges()),a},updateIfValue:function(a){return a?void this.updateValue(
this.getUpdatedValue()):void this.valueChanged()},updateIteratedValue:function(a
){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.deps.ifOneTime||(b=b.disca
rdChanges()),!b)return void this.valueChanged()}this.updateValue(a)},updateValue
:function(a){this.deps.repeat||(a=[a]);var b=this.deps.repeat&&!this.deps.oneTim
e&&Array.isArray(a);this.valueChanged(a,b)},valueChanged:function(a,b){Array.isA
rray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserve(),this.presentValue=a,b&
&(this.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserver.ope
n(this.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSplices(th
is.presentValue,this.iteratedValue)))},getLastInstanceNode:function(a){if(-1==a)
return this.templateElement_;var b=this.instances[a],c=b.terminator_;if(!c)retur
n this.getLastInstanceNode(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.template
Element_===c)return c;var d=c.iterator_;return d?d.getLastTemplateNode():c},getL
astTemplateNode:function(){return this.getLastInstanceNode(this.instances.length
-1)},insertInstanceAt:function(a,b){var c=this.getLastInstanceNode(a-1),d=this.t
emplateElement_.parentNode;this.instances.splice(a,0,b),d.insertBefore(b,c.nextS
ibling)},extractInstanceAt:function(a){for(var b=this.getLastInstanceNode(a-1),c
=this.getLastInstanceNode(a),d=this.templateElement_.parentNode,e=this.instances
.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.removeCh
ild(f))}return e},getDelegateFn:function(a){return a=a&&a(this.templateElement_)
,"function"==typeof a?a:null},handleSplices:function(a){if(!this.closed&&a.lengt
h){var b=this.templateElement_;if(!b.parentNode)return void this.close();ArrayOb
server.applySplices(this.iteratedValue,this.presentValue,a);var c=b.delegate_;vo
id 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&&c.pre
pareInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instancePosi
tionChangedFn_=this.getDelegateFn(c&&c.prepareInstancePositionChanged));for(var
d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.removed,i=0;i<h.length;i++){v
ar 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.inse
rtInstanceAt(l,k)}d.forEach(function(a){this.closeInstanceBindings(a)},this),thi
s.instancePositionChangedFn_&&this.reportInstancesMoved(a)}},reportInstanceMoved
:function(a){var b=this.instances[a];b!==T&&this.instancePositionChangedFn_(b.te
mplateInstance_,a)},reportInstancesMoved:function(a){for(var b=0,c=0,d=0;d<a.len
gth;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.add
edCount-e.removed.length}if(0!=c)for(var f=this.instances.length;f>b;)this.repor
tInstanceMoved(b),b++},closeInstanceBindings:function(a){for(var b=a.bindings_,c
=0;c<b.length;c++)b[c].close()},unobserve:function(){this.arrayObserver&&(this.a
rrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this.close
d){this.unobserve();for(var a=0;a<this.instances.length;a++)this.closeInstanceBi
ndings(this.instances[a]);this.instances.length=0,this.closeDeps(),this.template
Element_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesF
rom_=i}(this),function(a){function b(){e||(e=!0,a.endOfMicrotask(function(){e=!1
,logFlags.data&&console.group("Platform.flush()"),a.performMicrotaskCheckpoint()
,logFlags.data&&console.groupEnd()}))}var c=document.createElement("style");c.te
xtContent="template {display: none !important;} /* injected by platform.js */";v
ar d=document.querySelector("head");d.insertBefore(c,d.firstChild);var e;if(Obse
rver.hasObjectObserve)b=function(){};else{var f=125;window.addEventListener("Web
ComponentsReady",function(){b(),a.flushPoll=setInterval(b,f)})}if(window.CustomE
lements&&!CustomElements.useNative){var g=Document.prototype.importNode;Document
.prototype.importNode=function(a,b){var c=g.call(this,a,b);return CustomElements
.upgradeAll(c),c}}a.flush=b}(window.Platform); | 16 for(var a,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(functi
on(){m(a)}):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgr
aded__&&A.dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__insert
ed=(a.__inserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&co
nsole.warn("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attach
edCallback&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),
A.dom&&console.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(
a){C?j(function(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallb
ack||a.__upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)|
|(a.__inserted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted
<0?A.dom&&console.warn("removed:",a.localName,"insert/remove count:",a.__inserte
d):a.detachedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function
q(a){return window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}functi
on r(a){for(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}f
unction s(a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watch
ing shadow-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShad
owRoot}}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.localName)||"";d=d.split("/?").shift().split("/").pop()}console.g
roup("mutations (%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.localName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecord
s()),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.querySelec
torAll("link[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__
parsed&&z(b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImpo
rts.IMPORT_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver=
==window.JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new Mutatio
nObserver(u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPO
RT_LINK_TYPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeS
ubtree=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 ne
w Error("document.registerElement: first argument `name` must not be empty");if(
b.indexOf("-")<0)throw new Error("document.registerElement: first argument ('nam
e') must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))
throw new Error("Failed to execute 'registerElement' on 'Document': Registration
failed for type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new
Error("DuplicateDefinitionError: a type with name '"+String(b)+"' is already reg
istered");if(!h.prototype)throw new Error("Options missing required prototype pr
operty");return h.__name=b.toLowerCase(),h.lifecycle=h.lifecycle||{},h.ancestry=
d(h.extends),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor=p(h),h.ctor.prototype
=h.prototype,h.prototype.constructor=h.ctor,a.ready&&a.upgradeDocumentTree(docum
ent),h.ctor}function c(a){for(var b=0;b<y.length;b++)if(a===y[b])return!0}functi
on d(a){var b=n(a);return b?d(b.extends).concat([b]):[]}function e(a){for(var b,
c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c||a.__name,c&&(a.is=a._
_name)}function f(a){if(!Object.__proto__){var b=HTMLElement.prototype;if(a.is){
var c=document.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.native=b}}function g(a){return h(B(a.tag),a)}function h(b,c){return c.is&
&b.setAttribute("is",c.is),i(b,c),b.__upgraded__=!0,k(b),a.insertedNode(b),a.upg
radeSubtree(b),b}function i(a,b){Object.__proto__?a.__proto__=b.prototype:(j(a,b
.prototype,b.native),a.__proto__=b.prototype)}function j(a,b,c){for(var d={},e=b
;e!==c&&e!==HTMLElement.prototype;){for(var f,g=Object.getOwnPropertyNames(e),h=
0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(e,
f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a.creat
edCallback()}function l(a){if(!a.setAttribute._polyfilled){var b=a.setAttribute;
a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.removeAttribute;a.remov
eAttribute=function(a){m.call(this,a,null,c)},a.setAttribute._polyfilled=!0}}fun
ction m(a,b,c){a=a.toLowerCase();var d=this.getAttribute(a);c.apply(this,argumen
ts);var e=this.getAttribute(a);this.attributeChangedCallback&&e!==d&&this.attrib
uteChangedCallback(a,d,e)}function n(a){return a?z[a.toLowerCase()]:void 0}funct
ion o(a,b){z[a]=b}function p(a){return function(){return g(a)}}function q(a,b,c)
{return a===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==
c.is)return new c.ctor;if(!b&&!c.is)return new c.ctor}if(b){var d=r(a);return d.
setAttribute("is",b),d}var d=B(a);return a.indexOf("-")>=0&&i(d,HTMLElement),d}f
unction s(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttr
ibute("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.upgra
deAll(c),c}a||(a=window.CustomElements={flags:{}});var u=a.flags,v=Boolean(docum
ent.registerElement),w=!u.register&&v&&!window.ShadowDOMPolyfill&&(!window.HTMLI
mports||HTMLImports.useNative);if(w){var x=function(){};a.registry={},a.upgradeE
lement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgradeSubtree=x,a.observe
Document=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a.takeRecords=x,a.reserve
dTagList=[]}else{var y=["annotation-xml","color-profile","font-face","font-face-
src","font-face-uri","font-face-format","font-face-name","missing-glyph"],z={},A
="http://www.w3.org/1999/xhtml",B=document.createElement.bind(document),C=docume
nt.createElementNS.bind(document),D=Node.prototype.cloneNode;document.registerEl
ement=b,document.createElement=r,document.createElementNS=q,Node.prototype.clone
Node=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.reservedTagList=y,document.register=document
.registerElement,a.hasNative=v,a.useNative=w}(window.CustomElements),function(a)
{function b(a){return"link"===a.localName&&a.getAttribute("rel")===c}var c=a.IMP
ORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],map:{link:"parseLink"},parse:func
tion(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelectorAll(d.selectors);e(b,
function(a){d[d.map[a.localName]](a)}),CustomElements.upgradeDocument(a),CustomE
lements.observeDocument(a)}},parseLink:function(a){b(a)&&this.parseImport(a)},pa
rseImport:function(a){a.import&&d.parse(a.import)}},e=Array.prototype.forEach.ca
ll.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK_TYPE=c}(window.CustomE
lements),function(a){function b(){CustomElements.parser.parse(document),CustomEl
ements.upgradeDocument(document),window.HTMLImports&&(HTMLImports.__importsParsi
ngHook=function(a){CustomElements.parser.parse(a.import)}),CustomElements.ready=
!0,setTimeout(function(){CustomElements.readyTime=Date.now(),window.HTMLImports&
&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),documen
t.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}if("functi
on"!=typeof window.CustomEvent&&(window.CustomEvent=function(a,b){b=b||{};var c=
document.createEvent("CustomEvent");return c.initCustomEvent(a,Boolean(b.bubbles
),Boolean(b.cancelable),b.detail),c},window.CustomEvent.prototype=window.Event.p
rototype),"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(this.iterator_.getUpdatedValue()))},clear:function(){this
.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindings_.ref&&this.bi
ndings_.ref.close(),this.refContent_=void 0,this.iterator_&&(this.iterator_.valu
eChanged(),this.iterator_.close(),this.iterator_=void 0)},setDelegate_:function(
a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(this.iterator_.inst
ancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},newDelega
te_:function(a){function b(b){var c=a&&a[b];if("function"==typeof c)return funct
ion(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},raw:a,prepareBindi
ng:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceModel"),prepareIns
tancePositionChanged:b("prepareInstancePositionChanged")}},set bindingDelegate(a
){if(this.delegate_)throw Error("Template must be cleared before a new bindingDe
legate 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;v
ar b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.prototype,"templa
teInstance",{get:function(){var a=this.templateInstance_;return a?a:this.parentN
ode?this.parentNode.templateInstance:void 0}});var T=document.createDocumentFrag
ment();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.ifV
alue=v(J,a.if,d,b),e=c.ifValue,c.ifOneTime&&!e)return void this.valueChanged();c
.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repeat?(c.repeat=!0,c.oneTime=
a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.bind.on
lyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;return c.oneTime||(f=f.open(thi
s.updateIteratedValue,this)),e?void this.updateValue(f):void this.valueChanged()
},getUpdatedValue:function(){var a=this.deps.value;return this.deps.oneTime||(a=
a.discardChanges()),a},updateIfValue:function(a){return a?void this.updateValue(
this.getUpdatedValue()):void this.valueChanged()},updateIteratedValue:function(a
){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.deps.ifOneTime||(b=b.disca
rdChanges()),!b)return void this.valueChanged()}this.updateValue(a)},updateValue
:function(a){this.deps.repeat||(a=[a]);var b=this.deps.repeat&&!this.deps.oneTim
e&&Array.isArray(a);this.valueChanged(a,b)},valueChanged:function(a,b){Array.isA
rray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserve(),this.presentValue=a,b&
&(this.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserver.ope
n(this.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSplices(th
is.presentValue,this.iteratedValue)))},getLastInstanceNode:function(a){if(-1==a)
return this.templateElement_;var b=this.instances[a],c=b.terminator_;if(!c)retur
n this.getLastInstanceNode(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.template
Element_===c)return c;var d=c.iterator_;return d?d.getLastTemplateNode():c},getL
astTemplateNode:function(){return this.getLastInstanceNode(this.instances.length
-1)},insertInstanceAt:function(a,b){var c=this.getLastInstanceNode(a-1),d=this.t
emplateElement_.parentNode;this.instances.splice(a,0,b),d.insertBefore(b,c.nextS
ibling)},extractInstanceAt:function(a){for(var b=this.getLastInstanceNode(a-1),c
=this.getLastInstanceNode(a),d=this.templateElement_.parentNode,e=this.instances
.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.removeCh
ild(f))}return e},getDelegateFn:function(a){return a=a&&a(this.templateElement_)
,"function"==typeof a?a:null},handleSplices:function(a){if(!this.closed&&a.lengt
h){var b=this.templateElement_;if(!b.parentNode)return void this.close();ArrayOb
server.applySplices(this.iteratedValue,this.presentValue,a);var c=b.delegate_;vo
id 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&&c.pre
pareInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instancePosi
tionChangedFn_=this.getDelegateFn(c&&c.prepareInstancePositionChanged));for(var
d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.removed,i=0;i<h.length;i++){v
ar 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.inse
rtInstanceAt(l,k)}d.forEach(function(a){this.closeInstanceBindings(a)},this),thi
s.instancePositionChangedFn_&&this.reportInstancesMoved(a)}},reportInstanceMoved
:function(a){var b=this.instances[a];b!==T&&this.instancePositionChangedFn_(b.te
mplateInstance_,a)},reportInstancesMoved:function(a){for(var b=0,c=0,d=0;d<a.len
gth;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.add
edCount-e.removed.length}if(0!=c)for(var f=this.instances.length;f>b;)this.repor
tInstanceMoved(b),b++},closeInstanceBindings:function(a){for(var b=a.bindings_,c
=0;c<b.length;c++)b[c].close()},unobserve:function(){this.arrayObserver&&(this.a
rrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this.close
d){this.unobserve();for(var a=0;a<this.instances.length;a++)this.closeInstanceBi
ndings(this.instances[a]);this.instances.length=0,this.closeDeps(),this.template
Element_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesF
rom_=i}(this),function(a){function b(){e||(e=!0,a.endOfMicrotask(function(){e=!1
,logFlags.data&&console.group("Platform.flush()"),a.performMicrotaskCheckpoint()
,logFlags.data&&console.groupEnd()}))}var c=document.createElement("style");c.te
xtContent="template {display: none !important;} /* injected by platform.js */";v
ar d=document.querySelector("head");d.insertBefore(c,d.firstChild);var e;if(Obse
rver.hasObjectObserve)b=function(){};else{var f=125;window.addEventListener("Web
ComponentsReady",function(){b(),a.flushPoll=setInterval(b,f)})}if(window.CustomE
lements&&!CustomElements.useNative){var g=Document.prototype.importNode;Document
.prototype.importNode=function(a,b){var c=g.call(this,a,b);return CustomElements
.upgradeAll(c),c}}a.flush=b}(window.Platform); |
17 //# sourceMappingURL=platform.js.map | 17 //# sourceMappingURL=platform.js.map |
OLD | NEW |