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.5.5 | 10 // @version 0.5.5 |
11 window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
if(c.createShadowRoot){var d=c.createShadowRoot(),e=document.createElement("span
");d.appendChild(e),c.addEventListener("testpath",function(a){a.path&&(b=a.path[
0]===e),a.stopPropagation()});var f=new CustomEvent("testpath",{bubbles:!0});doc
ument.head.appendChild(c),e.dispatchEvent(f),c.parentNode.removeChild(c),d=e=nul
l}c=null;var g={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){var
d,e;return a?(d=a.elementFromPoint(b,c),d?e=this.targetingShadow(d):a!==documen
t&&(e=this.olderShadow(a)),this.searchRoot(e,b,c)||d):void 0},owner:function(a){
if(!a)return document;for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType
!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},f
indTarget:function(a){if(b&&a.path&&a.path.length)return a.path[0];var c=a.clien
tX,d=a.clientY,e=this.owner(a.target);return e.elementFromPoint(c,d)||(e=documen
t),this.searchRoot(e,c,d)},findTouchAction:function(a){var c;if(b&&a.path&&a.pat
h.length){for(var d=a.path,e=0;e<d.length;e++)if(c=d[e],c.nodeType===Node.ELEMEN
T_NODE&&c.hasAttribute("touch-action"))return c.getAttribute("touch-action")}els
e for(c=a.target;c;){if(c.nodeType===Node.ELEMENT_NODE&&c.hasAttribute("touch-ac
tion"))return c.getAttribute("touch-action");c=c.parentNode||c.host}return"auto"
},LCA:function(a,b){if(a===b)return a;if(a&&!b)return a;if(b&&!a)return b;if(!b&
&!a)return document;if(a.contains&&a.contains(b))return a;if(b.contains&&b.conta
ins(a))return b;var c=this.depth(a),d=this.depth(b),e=c-d;for(e>=0?a=this.walk(a
,e):b=this.walk(b,-e);a&&b&&a!==b;)a=a.parentNode||a.host,b=b.parentNode||b.host
;return a},walk:function(a,b){for(var c=0;a&&b>c;c++)a=a.parentNode||a.host;retu
rn a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode||a.host;return b},deep
Contains:function(a,b){var c=this.LCA(a,b);return c===a},insideNode:function(a,b
,c){var d=a.getBoundingClientRect();return d.left<=b&&b<=d.right&&d.top<=c&&c<=d
.bottom},path:function(a){var c;if(b&&a.path&&a.path.length)c=a.path;else{c=[];f
or(var d=this.findTarget(a);d;)c.push(d),d=d.parentNode||d.host}return c}};a.tar
getFinding=g,a.findTarget=g.findTarget.bind(g),a.deepContains=g.deepContains.bin
d(g),a.insideNode=g.insideNode}(window.PolymerGestures),function(){function a(a)
{return"html /deep/ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function
c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+";}"}var d=["none","au
to","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}
,"manipulation"],e="",f="string"==typeof document.head.style.touchAction,g=!wind
ow.ShadowDOMPolyfill&&document.head.createShadowRoot;if(f){d.forEach(function(d)
{String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d)+c(d)+"\n")):(e+=d.selectors.map(b)
+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d.rule)+"\n"))});var h=document.crea
teElement("style");h.textContent=e,document.head.appendChild(h)}}(),function(a){
var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","cli
entY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","
pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],d=function(){return f
unction(){}},e={preventTap:d,makeBaseEvent:function(a,b){var c=document.createEv
ent("Event");return c.initEvent(a,b.bubbles||!1,b.cancelable||!1),c.preventTap=e
.preventTap(c),c},makeGestureEvent:function(a,b){b=b||Object.create(null);for(va
r c,d=this.makeBaseEvent(a,b),e=0,f=Object.keys(b);e<f.length;e++)c=f[e],"bubble
s"!==c&&"cancelable"!==c&&(d[c]=b[c]);return d},makePointerEvent:function(a,d){d
=d||Object.create(null);for(var e,f=this.makeBaseEvent(a,d),g=2;g<b.length;g++)e
=b[g],f[e]=d[e]||c[g];f.buttons=d.buttons||0;var h=0;return h=d.pressure?d.press
ure:f.buttons?.5:0,f.x=f.clientX,f.y=f.clientY,f.pointerId=d.pointerId||0,f.widt
h=d.width||0,f.height=d.height||0,f.pressure=h,f.tiltX=d.tiltX||0,f.tiltY=d.tilt
Y||0,f.pointerType=d.pointerType||"",f.hwTimestamp=d.hwTimestamp||0,f.isPrimary=
d.isPrimary||!1,f._source=d._source||"",f}};a.eventFactory=e}(window.PolymerGest
ures),function(a){function b(){if(c){var a=new Map;return a.pointers=d,a}this.ke
ys=[],this.values=[]}var c=window.Map&&window.Map.prototype.forEach,d=function()
{return this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-
1?this.values[c]=b:(this.keys.push(a),this.values.push(b))},has:function(a){retu
rn this.keys.indexOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1
&&(this.keys.splice(b,1),this.values.splice(b,1))},get:function(a){var b=this.ke
ys.indexOf(a);return this.values[b]},clear:function(){this.keys.length=0,this.va
lues.length=0},forEach:function(a,b){this.values.forEach(function(c,d){a.call(b,
c,this.keys[d],this)},this)},pointers:function(){return this.keys.length}},a.Poi
nterMap=b}(window.PolymerGestures),function(a){var b,c=["bubbles","cancelable","
view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shift
Key","metaKey","button","relatedTarget","buttons","pointerId","width","height","
pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target
","currentTarget","which","pageX","pageY","timeStamp","preventTap","tapPrevented
","_source"],d=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1
,"",null,null,0,0,0,0,function(){},!1],e="undefined"!=typeof SVGElementInstance,
f=a.eventFactory,g={IS_IOS:!1,pointermap:new a.PointerMap,requiredGestures:new a
.PointerMap,eventMap:Object.create(null),eventSources:Object.create(null),eventS
ourceList:[],gestures:[],dependencyMap:{down:{listeners:0,index:-1},up:{listener
s:0,index:-1}},gestureQueue:[],registerSource:function(a,b){var c=b,d=c.events;d
&&(d.forEach(function(a){c[a]&&(this.eventMap[a]=c[a].bind(c))},this),this.event
Sources[a]=c,this.eventSourceList.push(c))},registerGesture:function(a,b){var c=
Object.create(null);c.listeners=0,c.index=this.gestures.length;for(var d,e=0;e<b
.exposes.length;e++)d=b.exposes[e].toLowerCase(),this.dependencyMap[d]=c;this.ge
stures.push(b)},register:function(a,b){for(var c,d=this.eventSourceList.length,e
=0;d>e&&(c=this.eventSourceList[e]);e++)c.register.call(c,a,b)},unregister:funct
ion(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[
d]);d++)b.unregister.call(b,a)},down:function(a){this.requiredGestures.set(a.poi
nterId,b),this.fireEvent("down",a)},move:function(a){a.type="move",this.fillGest
ureQueue(a)},up:function(a){this.fireEvent("up",a),this.requiredGestures["delete
"](a.pointerId)},cancel:function(a){a.tapPrevented=!0,this.fireEvent("up",a),thi
s.requiredGestures["delete"](a.pointerId)},addGestureDependency:function(a,b){va
r c=a._pgEvents;if(c&&b)for(var d,e,f,g=Object.keys(c),h=0;h<g.length;h++)f=g[h]
,c[f]>0&&(d=this.dependencyMap[f],e=d?d.index:-1,b[e]=!0)},eventHandler:function
(c){var d=c.type;if("touchstart"===d||"mousedown"===d||"pointerdown"===d||"MSPoi
nterDown"===d)if(c._handledByPG||(b={}),this.IS_IOS){var e=c;if("touchstart"===d
){var f=c.changedTouches[0];e={target:c.target,clientX:f.clientX,clientY:f.clien
tY,path:c.path}}for(var g,h=c.path||a.targetFinding.path(e),i=0;i<h.length;i++)g
=h[i],this.addGestureDependency(g,b)}else this.addGestureDependency(c.currentTar
get,b);if(!c._handledByPG){var j=this.eventMap&&this.eventMap[d];j&&j(c),c._hand
ledByPG=!0}},listen:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)thi
s.addEvent(a,c)},unlisten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d
++)this.removeEvent(a,c)},addEvent:function(a,b){a.addEventListener(b,this.bound
Handler)},removeEvent:function(a,b){a.removeEventListener(b,this.boundHandler)},
makeEvent:function(a,b){var c=f.makePointerEvent(a,b);return c.preventDefault=b.
preventDefault,c.tapPrevented=b.tapPrevented,c._target=c._target||b.target,c},fi
reEvent:function(a,b){var c=this.makeEvent(a,b);return this.dispatchEvent(c)},cl
oneEvent:function(a){for(var b,f=Object.create(null),g=0;g<c.length;g++)b=c[g],f
[b]=a[b]||d[g],("target"===b||"relatedTarget"===b)&&e&&f[b]instanceof SVGElement
Instance&&(f[b]=f[b].correspondingUseElement);return f.preventDefault=function()
{a.preventDefault()},f},dispatchEvent:function(a){var b=a._target;if(b){b.dispat
chEvent(a);var c=this.cloneEvent(a);c.target=b,this.fillGestureQueue(c)}},gestur
eTrigger:function(){for(var a,b,c=0;c<this.gestureQueue.length;c++)if(a=this.ges
tureQueue[c],b=a._requiredGestures)for(var d,e,f=0;f<this.gestures.length;f++)b[
f]&&(d=this.gestures[f],e=d[a.type],e&&e.call(d,a));this.gestureQueue.length=0},
fillGestureQueue:function(a){this.gestureQueue.length||requestAnimationFrame(thi
s.boundGestureTrigger),a._requiredGestures=this.requiredGestures.get(a.pointerId
),this.gestureQueue.push(a)}};g.boundHandler=g.eventHandler.bind(g),g.boundGestu
reTrigger=g.gestureTrigger.bind(g),a.dispatcher=g,a.activateGesture=function(a,b
){var c=b.toLowerCase(),d=g.dependencyMap[c];if(d){var e=g.gestures[d.index];if(
a._pgListeners||(g.register(a),a._pgListeners=0),e){var f,h=e.defaultActions&&e.
defaultActions[c];switch(a.nodeType){case Node.ELEMENT_NODE:f=a;break;case Node.
DOCUMENT_FRAGMENT_NODE:f=a.host;break;default:f=null}h&&f&&!f.hasAttribute("touc
h-action")&&f.setAttribute("touch-action",h)}a._pgEvents||(a._pgEvents={}),a._pg
Events[c]=(a._pgEvents[c]||0)+1,a._pgListeners++}return Boolean(d)},a.addEventLi
stener=function(b,c,d,e){d&&(a.activateGesture(b,c),b.addEventListener(c,d,e))},
a.deactivateGesture=function(a,b){var c=b.toLowerCase(),d=g.dependencyMap[c];ret
urn d&&(a._pgListeners>0&&a._pgListeners--,0===a._pgListeners&&g.unregister(a),a
._pgEvents&&(a._pgEvents[c]>0?a._pgEvents[c]--:a._pgEvents[c]=0)),Boolean(d)},a.
removeEventListener=function(b,c,d,e){d&&(a.deactivateGesture(b,c),b.removeEvent
Listener(c,d,e))}}(window.PolymerGestures),function(a){var b=a.dispatcher,c=b.po
intermap,d=25,e=[0,1,4,2],f=0,g=/Linux.*Firefox\//i,h=function(){if(g.test(navig
ator.userAgent))return!1;try{return 1===new MouseEvent("test",{buttons:1}).butto
ns}catch(a){return!1}}(),i={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown
","mousemove","mouseup"],exposes:["down","up","move"],register:function(a){b.lis
ten(a,this.events)},unregister:function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.un
listen(a,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(a){for(
var b,c=this.lastTouches,e=a.clientX,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g+
+){var i=Math.abs(e-b.x),j=Math.abs(f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent
:function(a){var c=b.cloneEvent(a);if(c.pointerId=this.POINTER_ID,c.isPrimary=!0
,c.pointerType=this.POINTER_TYPE,c._source="mouse",!h){var d=a.type,g=e[a.which]
||0;"mousedown"===d?f|=g:"mouseup"===d&&(f&=~g),c.buttons=f}return c},mousedown:
function(d){if(!this.isEventSimulatedFromTouch(d)){var e=(c.has(this.POINTER_ID)
,this.prepareEvent(d));e.target=a.findTarget(d),c.set(this.POINTER_ID,e.target),
b.down(e)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c
.get(this.POINTER_ID);if(d){var e=this.prepareEvent(a);e.target=d,0===(h?e.butto
ns:e.which)?(h||(f=e.buttons=0),b.cancel(e),this.cleanupMouse(e.buttons)):b.move
(e)}}},mouseup:function(d){if(!this.isEventSimulatedFromTouch(d)){var e=this.pre
pareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(this.POINTER_ID),b.u
p(e),this.cleanupMouse(e.buttons)}},cleanupMouse:function(a){0===a&&c["delete"](
this.POINTER_ID)}};a.mouseEvents=i}(window.PolymerGestures),function(a){var b=a.
dispatcher,c=(a.targetFinding.allShadows.bind(a.targetFinding),b.pointermap),d=(
Array.prototype.map.call.bind(Array.prototype.map),2500),e=25,f=200,g=20,h=!1,i=
{IS_IOS:!1,events:["touchstart","touchmove","touchend","touchcancel"],exposes:["
down","up","move"],register:function(a,c){(this.IS_IOS?c:!c)&&b.listen(a,this.ev
ents)},unregister:function(a){this.IS_IOS||b.unlisten(a,this.events)},scrollType
s:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"},touchActionToScrollType:f
unction(a){var b=a,c=this.scrollTypes;return b===c.EMITTER?"none":b===c.XSCROLLE
R?"X":b===c.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTo
uch:function(a){return this.firstTouch===a.identifier},setPrimaryTouch:function(
a){(0===c.pointers()||1===c.pointers()&&c.has(1))&&(this.firstTouch=a.identifier
,this.firstXY={X:a.clientX,Y:a.clientY},this.firstTarget=a.target,this.scrolling
=null,this.cancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimar
y&&(this.firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0
,resetId:null,resetClickCount:function(){var a=function(){this.clickCount=0,this
.resetId=null}.bind(this);this.resetId=setTimeout(a,f)},cancelResetClickCount:fu
nction(){this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var
b=0;return("touchstart"===a||"touchmove"===a)&&(b=1),b},findTarget:function(b,d
){if("touchstart"===this.currentTouchEvent.type){if(this.isPrimaryTouch(b)){var
e={clientX:b.clientX,clientY:b.clientY,path:this.currentTouchEvent.path,target:t
his.currentTouchEvent.target};return a.findTarget(e)}return a.findTarget(b)}retu
rn c.get(d)},touchToPointer:function(a){var c=this.currentTouchEvent,d=b.cloneEv
ent(a),e=d.pointerId=a.identifier+2;d.target=this.findTarget(a,e),d.bubbles=!0,d
.cancelable=!0,d.detail=this.clickCount,d.buttons=this.typeToButtons(c.type),d.w
idth=a.webkitRadiusX||a.radiusX||0,d.height=a.webkitRadiusY||a.radiusY||0,d.pres
sure=a.webkitForce||a.force||.5,d.isPrimary=this.isPrimaryTouch(a),d.pointerType
=this.POINTER_TYPE,d._source="touch";var f=this;return d.preventDefault=function
(){f.scrolling=!1,f.firstXY=null,c.preventDefault()},d},processTouches:function(
a,b){var d=a.changedTouches;this.currentTouchEvent=a;for(var e,f,g=0;g<d.length;
g++)e=d[g],f=this.touchToPointer(e),"touchstart"===a.type&&c.set(f.pointerId,f.t
arget),c.has(f.pointerId)&&b.call(this,f),("touchend"===a.type||a._cancel)&&this
.cleanUpPointer(f)},shouldScroll:function(b){if(this.firstXY){var c,d=a.targetFi
nding.findTouchAction(b),e=this.touchActionToScrollType(d);if("none"===e)c=!1;el
se if("XY"===e)c=!0;else{var f=b.changedTouches[0],g=e,h="Y"===e?"X":"Y",i=Math.
abs(f["client"+g]-this.firstXY[g]),j=Math.abs(f["client"+h]-this.firstXY[h]);c=i
>=j}return c}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d+
+)if(c.identifier===b)return!0},vacuumTouches:function(a){var b=a.touches;if(c.p
ointers()>=b.length){var d=[];c.forEach(function(a,c){if(1!==c&&!this.findTouch(
b,c-2)){var e=a;d.push(e)}},this),d.forEach(function(a){this.cancel(a),c["delete
"](a.pointerId)},this)}},touchstart:function(a){this.vacuumTouches(a),this.setPr
imaryTouch(a.changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.cl
ickCount++,this.processTouches(a,this.down))},down:function(a){b.down(a)},touchm
ove:function(a){if(h)a.cancelable&&this.processTouches(a,this.move);else if(this
.scrolling){if(this.firstXY){var b=a.changedTouches[0],c=b.clientX-this.firstXY.
X,d=b.clientY-this.firstXY.Y,e=Math.sqrt(c*c+d*d);e>=g&&(this.touchcancel(a),thi
s.scrolling=!0,this.firstXY=null)}}else null===this.scrolling&&this.shouldScroll
(a)?this.scrolling=!0:(this.scrolling=!1,a.preventDefault(),this.processTouches(
a,this.move))},move:function(a){b.move(a)},touchend:function(a){this.dedupSynthM
ouse(a),this.processTouches(a,this.up)},up:function(c){c.relatedTarget=a.findTar
get(c),b.up(c)},cancel:function(a){b.cancel(a)},touchcancel:function(a){a._cance
l=!0,this.processTouches(a,this.cancel)},cleanUpPointer:function(a){c["delete"](
a.pointerId),this.removePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.m
ouseEvents.lastTouches,e=b.changedTouches[0];if(this.isPrimaryTouch(e)){var f={x
:e.clientX,y:e.clientY};c.push(f);var g=function(a,b){var c=a.indexOf(b);c>-1&&a
.splice(c,1)}.bind(null,c,f);setTimeout(g,d)}}},j=Event.prototype.stopImmediateP
ropagation||Event.prototype.stopPropagation;document.addEventListener("click",fu
nction(b){var c=b.clientX,d=b.clientY,f=function(a){var b=Math.abs(c-a.x),f=Math
.abs(d-a.y);return e>=b&&e>=f},g=a.mouseEvents.lastTouches.some(f),h=a.targetFin
ding.path(b);if(g){for(var k=0;k<h.length;k++)if(h[k]===i.firstTarget)return;b.p
reventDefault(),j.call(b)}},!0),a.touchEvents=i}(window.PolymerGestures),functio
n(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof
window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointe
rMove","MSPointerUp","MSPointerCancel"],register:function(a){b.listen(a,this.eve
nts)},unregister:function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.unlisten(a,this.
events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:fun
ction(a){var c=a;return c=b.cloneEvent(a),d&&(c.pointerType=this.POINTER_TYPES[a
.pointerType]),c._source="ms",c},cleanup:function(a){c["delete"](a)},MSPointerDo
wn:function(d){var e=this.prepareEvent(d);e.target=a.findTarget(d),c.set(d.point
erId,e.target),b.down(e)},MSPointerMove:function(a){var d=c.get(a.pointerId);if(
d){var e=this.prepareEvent(a);e.target=d,b.move(e)}},MSPointerUp:function(d){var
e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointer
Id),b.up(e),this.cleanup(d.pointerId)},MSPointerCancel:function(d){var e=this.pr
epareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.canc
el(e),this.cleanup(d.pointerId)}};a.msEvents=e}(window.PolymerGestures),function
(a){var b=a.dispatcher,c=b.pointermap,d={events:["pointerdown","pointermove","po
interup","pointercancel"],prepareEvent:function(a){var c=b.cloneEvent(a);return
c._source="pointer",c},register:function(a){b.listen(a,this.events)},unregister:
function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.unlisten(a,this.events)},cleanup:
function(a){c["delete"](a)},pointerdown:function(d){var e=this.prepareEvent(d);e
.target=a.findTarget(d),c.set(e.pointerId,e.target),b.down(e)},pointermove:funct
ion(a){var d=c.get(a.pointerId);if(d){var e=this.prepareEvent(a);e.target=d,b.mo
ve(e)}},pointerup:function(d){var e=this.prepareEvent(d);e.relatedTarget=a.findT
arget(d),e.target=c.get(e.pointerId),b.up(e),this.cleanup(d.pointerId)},pointerc
ancel:function(d){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.t
arget=c.get(e.pointerId),b.cancel(e),this.cleanup(d.pointerId)}};a.pointerEvents
=d}(window.PolymerGestures),function(a){var b=a.dispatcher,c=window.navigator;wi
ndow.PointerEvent?b.registerSource("pointer",a.pointerEvents):c.msPointerEnabled
?b.registerSource("ms",a.msEvents):(b.registerSource("mouse",a.mouseEvents),void
0!==window.ontouchstart&&b.registerSource("touch",a.touchEvents));var d=navigat
or.userAgent,e=d.match(/iPad|iPhone|iPod/)&&"ontouchstart"in window;b.IS_IOS=e,a
.touchEvents.IS_IOS=e,b.register(document,!0)}(window.PolymerGestures),function(
a){var b=a.dispatcher,c=a.eventFactory,d=new a.PointerMap,e={events:["down","mov
e","up"],exposes:["trackstart","track","trackx","tracky","trackend"],defaultActi
ons:{track:"none",trackx:"pan-y",tracky:"pan-x"},WIGGLE_THRESHOLD:4,clampDir:fun
ction(a){return a>0?1:-1},calcPositionDelta:function(a,b){var c=0,d=0;return a&&
b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{x:c,y:d}},fireTrack:function(a,b,d){va
r e=d,f=this.calcPositionDelta(e.downEvent,b),g=this.calcPositionDelta(e.lastMov
eEvent,b);if(g.x)e.xDirection=this.clampDir(g.x);else if("trackx"===a)return;if(
g.y)e.yDirection=this.clampDir(g.y);else if("tracky"===a)return;var h={bubbles:!
0,cancelable:!0,trackInfo:e.trackInfo,relatedTarget:b.relatedTarget,pointerType:
b.pointerType,pointerId:b.pointerId,_source:"track"};"tracky"!==a&&(h.x=b.x,h.dx
=f.x,h.ddx=g.x,h.clientX=b.clientX,h.pageX=b.pageX,h.screenX=b.screenX,h.xDirect
ion=e.xDirection),"trackx"!==a&&(h.dy=f.y,h.ddy=g.y,h.y=b.y,h.clientY=b.clientY,
h.pageY=b.pageY,h.screenY=b.screenY,h.yDirection=e.yDirection);var i=c.makeGestu
reEvent(a,h);e.downTarget.dispatchEvent(i)},down:function(a){if(a.isPrimary&&("m
ouse"===a.pointerType?1===a.buttons:!0)){var b={downEvent:a,downTarget:a.target,
trackInfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};d.set(a.p
ointerId,b)}},move:function(a){var b=d.get(a.pointerId);if(b){if(!b.tracking){va
r c=this.calcPositionDelta(b.downEvent,a),e=c.x*c.x+c.y*c.y;e>this.WIGGLE_THRESH
OLD&&(b.tracking=!0,b.lastMoveEvent=b.downEvent,this.fireTrack("trackstart",a,b)
)}b.tracking&&(this.fireTrack("track",a,b),this.fireTrack("trackx",a,b),this.fir
eTrack("tracky",a,b)),b.lastMoveEvent=a}},up:function(a){var b=d.get(a.pointerId
);b&&(b.tracking&&this.fireTrack("trackend",a,b),d["delete"](a.pointerId))}};b.r
egisterGesture("track",e)}(window.PolymerGestures),function(a){var b=a.dispatche
r,c=a.eventFactory,d={HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["down","move","
up"],exposes:["hold","holdpulse","release"],heldPointer:null,holdJob:null,pulse:
function(){var a=Date.now()-this.heldPointer.timeStamp,b=this.held?"holdpulse":"
hold";this.fireHold(b,a),this.held=!0},cancel:function(){clearInterval(this.hold
Job),this.held&&this.fireHold("release"),this.held=!1,this.heldPointer=null,this
.target=null,this.holdJob=null},down:function(a){a.isPrimary&&!this.heldPointer&
&(this.heldPointer=a,this.target=a.target,this.holdJob=setInterval(this.pulse.bi
nd(this),this.HOLD_DELAY))},up:function(a){this.heldPointer&&this.heldPointer.po
interId===a.pointerId&&this.cancel()},move:function(a){if(this.heldPointer&&this
.heldPointer.pointerId===a.pointerId){var b=a.clientX-this.heldPointer.clientX,c
=a.clientY-this.heldPointer.clientY;b*b+c*c>this.WIGGLE_THRESHOLD&&this.cancel()
}},fireHold:function(a,b){var d={bubbles:!0,cancelable:!0,pointerType:this.heldP
ointer.pointerType,pointerId:this.heldPointer.pointerId,x:this.heldPointer.clien
tX,y:this.heldPointer.clientY,_source:"hold"};b&&(d.holdTime=b);var e=c.makeGest
ureEvent(a,d);this.target.dispatchEvent(e)}};b.registerGesture("hold",d)}(window
.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=new a.Pointe
rMap,e={events:["down","up"],exposes:["tap"],down:function(a){a.isPrimary&&!a.ta
pPrevented&&d.set(a.pointerId,{target:a.target,buttons:a.buttons,x:a.clientX,y:a
.clientY})},shouldTap:function(a,b){var c=!0;return"mouse"===a.pointerType&&(c=1
^a.buttons&&1&b.buttons),c&&!a.tapPrevented},up:function(b){var e=d.get(b.pointe
rId);if(e&&this.shouldTap(b,e)){var f=a.targetFinding.LCA(e.target,b.relatedTarg
et);if(f){var g=c.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:b.clientX,y
:b.clientY,detail:b.detail,pointerType:b.pointerType,pointerId:b.pointerId,altKe
y:b.altKey,ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,_source:"tap"
});f.dispatchEvent(g)}}d["delete"](b.pointerId)}};c.preventTap=function(a){retur
n function(){a.tapPrevented=!0,d["delete"](a.pointerId)}},b.registerGesture("tap
",e)}(window.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=
new a.PointerMap,e=180/Math.PI,f={events:["down","up","move","cancel"],exposes:[
"pinchstart","pinch","pinchend","rotate"],defaultActions:{pinch:"none",rotate:"n
one"},reference:{},down:function(b){if(d.set(b.pointerId,b),2==d.pointers()){var
c=this.calcChord(),e=this.calcAngle(c);this.reference={angle:e,diameter:c.diame
ter,target:a.targetFinding.LCA(c.a.target,c.b.target)},this.firePinch("pinchstar
t",c.diameter,c)}},up:function(a){var b=d.get(a.pointerId),c=d.pointers();if(b){
if(2===c){var e=this.calcChord();this.firePinch("pinchend",e.diameter,e)}d["dele
te"](a.pointerId)}},move:function(a){d.has(a.pointerId)&&(d.set(a.pointerId,a),d
.pointers()>1&&this.calcPinchRotate())},cancel:function(a){this.up(a)},firePinch
:function(a,b,d){var e=b/this.reference.diameter,f=c.makeGestureEvent(a,{bubbles
:!0,cancelable:!0,scale:e,centerX:d.center.x,centerY:d.center.y,_source:"pinch"}
);this.reference.target.dispatchEvent(f)},fireRotate:function(a,b){var d=Math.ro
und((a-this.reference.angle)%360),e=c.makeGestureEvent("rotate",{bubbles:!0,canc
elable:!0,angle:d,centerX:b.center.x,centerY:b.center.y,_source:"pinch"});this.r
eference.target.dispatchEvent(e)},calcPinchRotate:function(){var a=this.calcChor
d(),b=a.diameter,c=this.calcAngle(a);b!=this.reference.diameter&&this.firePinch(
"pinch",b,a),c!=this.reference.angle&&this.fireRotate(c,a)},calcChord:function()
{var a=[];d.forEach(function(b){a.push(b)});for(var b,c,e,f=0,g={a:a[0],b:a[1]},
h=0;h<a.length;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.
clientX-k.clientX),c=Math.abs(i.clientY-k.clientY),e=b+c,e>f&&(f=e,g={a:i,b:k})}
return b=Math.abs(g.a.clientX+g.b.clientX)/2,c=Math.abs(g.a.clientY+g.b.clientY)
/2,g.center={x:b,y:c},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.
b.clientX,c=a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*e)%360}};b.regist
erGesture("pinch",f)}(window.PolymerGestures),function(a){"use strict";function
b(a,b){if(!a)throw new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}fun
ction d(a){return 32===a||9===a||11===a||12===a||160===a||a>=5760&&"
".indexOf(String.fromCharCode(a))>0}function e(a){return 10===a||13===a||82
32===a||8233===a}function f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=
a}function g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a
}function h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}f
unction j(){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(
a,X)}function k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.
Keyword:"null"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Iden
tifier,{type:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e
=W[X];switch(d){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 9
1:case 93:case 58:case 63:return++X,{type:S.Punctuator,value:String.fromCharCode
(d),range:[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38
:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Pu
nctuator,value:String.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 3
3:case 61:return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice
(c,X),range:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punc
tuator,value:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctua
tor,value:e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){va
r a,d,e;if(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with
a decimal digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"=
==a&&e&&c(e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X))
;)a+=W[X++];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X
]}if("e"===e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.ch
arCodeAt(X)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILL
EGAL");return f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.Nume
ricLiteral,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for
(a=W[X],b("'"===a||'"'===a,"String literal must starts with a quote"),c=X,++X;Y>
X;){if(d=W[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))
"\r"===d&&"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";
break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case
"v":f+=" | 11 window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
if(c.createShadowRoot){var d=c.createShadowRoot(),e=document.createElement("span
");d.appendChild(e),c.addEventListener("testpath",function(a){a.path&&(b=a.path[
0]===e),a.stopPropagation()});var f=new CustomEvent("testpath",{bubbles:!0});doc
ument.head.appendChild(c),e.dispatchEvent(f),c.parentNode.removeChild(c),d=e=nul
l}c=null;var g={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){var
d,e;return a?(d=a.elementFromPoint(b,c),d?e=this.targetingShadow(d):a!==documen
t&&(e=this.olderShadow(a)),this.searchRoot(e,b,c)||d):void 0},owner:function(a){
if(!a)return document;for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType
!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},f
indTarget:function(a){if(b&&a.path&&a.path.length)return a.path[0];var c=a.clien
tX,d=a.clientY,e=this.owner(a.target);return e.elementFromPoint(c,d)||(e=documen
t),this.searchRoot(e,c,d)},findTouchAction:function(a){var c;if(b&&a.path&&a.pat
h.length){for(var d=a.path,e=0;e<d.length;e++)if(c=d[e],c.nodeType===Node.ELEMEN
T_NODE&&c.hasAttribute("touch-action"))return c.getAttribute("touch-action")}els
e for(c=a.target;c;){if(c.nodeType===Node.ELEMENT_NODE&&c.hasAttribute("touch-ac
tion"))return c.getAttribute("touch-action");c=c.parentNode||c.host}return"auto"
},LCA:function(a,b){if(a===b)return a;if(a&&!b)return a;if(b&&!a)return b;if(!b&
&!a)return document;if(a.contains&&a.contains(b))return a;if(b.contains&&b.conta
ins(a))return b;var c=this.depth(a),d=this.depth(b),e=c-d;for(e>=0?a=this.walk(a
,e):b=this.walk(b,-e);a&&b&&a!==b;)a=a.parentNode||a.host,b=b.parentNode||b.host
;return a},walk:function(a,b){for(var c=0;a&&b>c;c++)a=a.parentNode||a.host;retu
rn a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode||a.host;return b},deep
Contains:function(a,b){var c=this.LCA(a,b);return c===a},insideNode:function(a,b
,c){var d=a.getBoundingClientRect();return d.left<=b&&b<=d.right&&d.top<=c&&c<=d
.bottom},path:function(a){var c;if(b&&a.path&&a.path.length)c=a.path;else{c=[];f
or(var d=this.findTarget(a);d;)c.push(d),d=d.parentNode||d.host}return c}};a.tar
getFinding=g,a.findTarget=g.findTarget.bind(g),a.deepContains=g.deepContains.bin
d(g),a.insideNode=g.insideNode}(window.PolymerGestures),function(){function a(a)
{return"html /deep/ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function
c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+";}"}var d=["none","au
to","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}
,"manipulation"],e="",f="string"==typeof document.head.style.touchAction,g=!wind
ow.ShadowDOMPolyfill&&document.head.createShadowRoot;if(f){d.forEach(function(d)
{String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d)+c(d)+"\n")):(e+=d.selectors.map(b)
+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d.rule)+"\n"))});var h=document.crea
teElement("style");h.textContent=e,document.head.appendChild(h)}}(),function(a){
var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","cli
entY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","
pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],d=function(){return f
unction(){}},e={preventTap:d,makeBaseEvent:function(a,b){var c=document.createEv
ent("Event");return c.initEvent(a,b.bubbles||!1,b.cancelable||!1),c.preventTap=e
.preventTap(c),c},makeGestureEvent:function(a,b){b=b||Object.create(null);for(va
r c,d=this.makeBaseEvent(a,b),e=0,f=Object.keys(b);e<f.length;e++)c=f[e],"bubble
s"!==c&&"cancelable"!==c&&(d[c]=b[c]);return d},makePointerEvent:function(a,d){d
=d||Object.create(null);for(var e,f=this.makeBaseEvent(a,d),g=2;g<b.length;g++)e
=b[g],f[e]=d[e]||c[g];f.buttons=d.buttons||0;var h=0;return h=d.pressure?d.press
ure:f.buttons?.5:0,f.x=f.clientX,f.y=f.clientY,f.pointerId=d.pointerId||0,f.widt
h=d.width||0,f.height=d.height||0,f.pressure=h,f.tiltX=d.tiltX||0,f.tiltY=d.tilt
Y||0,f.pointerType=d.pointerType||"",f.hwTimestamp=d.hwTimestamp||0,f.isPrimary=
d.isPrimary||!1,f._source=d._source||"",f}};a.eventFactory=e}(window.PolymerGest
ures),function(a){function b(){if(c){var a=new Map;return a.pointers=d,a}this.ke
ys=[],this.values=[]}var c=window.Map&&window.Map.prototype.forEach,d=function()
{return this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-
1?this.values[c]=b:(this.keys.push(a),this.values.push(b))},has:function(a){retu
rn this.keys.indexOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1
&&(this.keys.splice(b,1),this.values.splice(b,1))},get:function(a){var b=this.ke
ys.indexOf(a);return this.values[b]},clear:function(){this.keys.length=0,this.va
lues.length=0},forEach:function(a,b){this.values.forEach(function(c,d){a.call(b,
c,this.keys[d],this)},this)},pointers:function(){return this.keys.length}},a.Poi
nterMap=b}(window.PolymerGestures),function(a){var b,c=["bubbles","cancelable","
view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shift
Key","metaKey","button","relatedTarget","buttons","pointerId","width","height","
pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target
","currentTarget","which","pageX","pageY","timeStamp","preventTap","tapPrevented
","_source"],d=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1
,"",null,null,0,0,0,0,function(){},!1],e="undefined"!=typeof SVGElementInstance,
f=a.eventFactory,g={IS_IOS:!1,pointermap:new a.PointerMap,requiredGestures:new a
.PointerMap,eventMap:Object.create(null),eventSources:Object.create(null),eventS
ourceList:[],gestures:[],dependencyMap:{down:{listeners:0,index:-1},up:{listener
s:0,index:-1}},gestureQueue:[],registerSource:function(a,b){var c=b,d=c.events;d
&&(d.forEach(function(a){c[a]&&(this.eventMap[a]=c[a].bind(c))},this),this.event
Sources[a]=c,this.eventSourceList.push(c))},registerGesture:function(a,b){var c=
Object.create(null);c.listeners=0,c.index=this.gestures.length;for(var d,e=0;e<b
.exposes.length;e++)d=b.exposes[e].toLowerCase(),this.dependencyMap[d]=c;this.ge
stures.push(b)},register:function(a,b){for(var c,d=this.eventSourceList.length,e
=0;d>e&&(c=this.eventSourceList[e]);e++)c.register.call(c,a,b)},unregister:funct
ion(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[
d]);d++)b.unregister.call(b,a)},down:function(a){this.requiredGestures.set(a.poi
nterId,b),this.fireEvent("down",a)},move:function(a){a.type="move",this.fillGest
ureQueue(a)},up:function(a){this.fireEvent("up",a),this.requiredGestures["delete
"](a.pointerId)},cancel:function(a){a.tapPrevented=!0,this.fireEvent("up",a),thi
s.requiredGestures["delete"](a.pointerId)},addGestureDependency:function(a,b){va
r c=a._pgEvents;if(c&&b)for(var d,e,f,g=Object.keys(c),h=0;h<g.length;h++)f=g[h]
,c[f]>0&&(d=this.dependencyMap[f],e=d?d.index:-1,b[e]=!0)},eventHandler:function
(c){var d=c.type;if("touchstart"===d||"mousedown"===d||"pointerdown"===d||"MSPoi
nterDown"===d)if(c._handledByPG||(b={}),this.IS_IOS){var e=c;if("touchstart"===d
){var f=c.changedTouches[0];e={target:c.target,clientX:f.clientX,clientY:f.clien
tY,path:c.path}}for(var g,h=c.path||a.targetFinding.path(e),i=0;i<h.length;i++)g
=h[i],this.addGestureDependency(g,b)}else this.addGestureDependency(c.currentTar
get,b);if(!c._handledByPG){var j=this.eventMap&&this.eventMap[d];j&&j(c),c._hand
ledByPG=!0}},listen:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)thi
s.addEvent(a,c)},unlisten:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d
++)this.removeEvent(a,c)},addEvent:function(a,b){a.addEventListener(b,this.bound
Handler)},removeEvent:function(a,b){a.removeEventListener(b,this.boundHandler)},
makeEvent:function(a,b){var c=f.makePointerEvent(a,b);return c.preventDefault=b.
preventDefault,c.tapPrevented=b.tapPrevented,c._target=c._target||b.target,c},fi
reEvent:function(a,b){var c=this.makeEvent(a,b);return this.dispatchEvent(c)},cl
oneEvent:function(a){for(var b,f=Object.create(null),g=0;g<c.length;g++)b=c[g],f
[b]=a[b]||d[g],("target"===b||"relatedTarget"===b)&&e&&f[b]instanceof SVGElement
Instance&&(f[b]=f[b].correspondingUseElement);return f.preventDefault=function()
{a.preventDefault()},f},dispatchEvent:function(a){var b=a._target;if(b){b.dispat
chEvent(a);var c=this.cloneEvent(a);c.target=b,this.fillGestureQueue(c)}},gestur
eTrigger:function(){for(var a,b,c=0;c<this.gestureQueue.length;c++)if(a=this.ges
tureQueue[c],b=a._requiredGestures)for(var d,e,f=0;f<this.gestures.length;f++)b[
f]&&(d=this.gestures[f],e=d[a.type],e&&e.call(d,a));this.gestureQueue.length=0},
fillGestureQueue:function(a){this.gestureQueue.length||requestAnimationFrame(thi
s.boundGestureTrigger),a._requiredGestures=this.requiredGestures.get(a.pointerId
),this.gestureQueue.push(a)}};g.boundHandler=g.eventHandler.bind(g),g.boundGestu
reTrigger=g.gestureTrigger.bind(g),a.dispatcher=g,a.activateGesture=function(a,b
){var c=b.toLowerCase(),d=g.dependencyMap[c];if(d){var e=g.gestures[d.index];if(
a._pgListeners||(g.register(a),a._pgListeners=0),e){var f,h=e.defaultActions&&e.
defaultActions[c];switch(a.nodeType){case Node.ELEMENT_NODE:f=a;break;case Node.
DOCUMENT_FRAGMENT_NODE:f=a.host;break;default:f=null}h&&f&&!f.hasAttribute("touc
h-action")&&f.setAttribute("touch-action",h)}a._pgEvents||(a._pgEvents={}),a._pg
Events[c]=(a._pgEvents[c]||0)+1,a._pgListeners++}return Boolean(d)},a.addEventLi
stener=function(b,c,d,e){d&&(a.activateGesture(b,c),b.addEventListener(c,d,e))},
a.deactivateGesture=function(a,b){var c=b.toLowerCase(),d=g.dependencyMap[c];ret
urn d&&(a._pgListeners>0&&a._pgListeners--,0===a._pgListeners&&g.unregister(a),a
._pgEvents&&(a._pgEvents[c]>0?a._pgEvents[c]--:a._pgEvents[c]=0)),Boolean(d)},a.
removeEventListener=function(b,c,d,e){d&&(a.deactivateGesture(b,c),b.removeEvent
Listener(c,d,e))}}(window.PolymerGestures),function(a){var b=a.dispatcher,c=b.po
intermap,d=25,e=[0,1,4,2],f=0,g=/Linux.*Firefox\//i,h=function(){if(g.test(navig
ator.userAgent))return!1;try{return 1===new MouseEvent("test",{buttons:1}).butto
ns}catch(a){return!1}}(),i={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown
","mousemove","mouseup"],exposes:["down","up","move"],register:function(a){b.lis
ten(a,this.events)},unregister:function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.un
listen(a,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(a){for(
var b,c=this.lastTouches,e=a.clientX,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g+
+){var i=Math.abs(e-b.x),j=Math.abs(f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent
:function(a){var c=b.cloneEvent(a);if(c.pointerId=this.POINTER_ID,c.isPrimary=!0
,c.pointerType=this.POINTER_TYPE,c._source="mouse",!h){var d=a.type,g=e[a.which]
||0;"mousedown"===d?f|=g:"mouseup"===d&&(f&=~g),c.buttons=f}return c},mousedown:
function(d){if(!this.isEventSimulatedFromTouch(d)){var e=(c.has(this.POINTER_ID)
,this.prepareEvent(d));e.target=a.findTarget(d),c.set(this.POINTER_ID,e.target),
b.down(e)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c
.get(this.POINTER_ID);if(d){var e=this.prepareEvent(a);e.target=d,0===(h?e.butto
ns:e.which)?(h||(f=e.buttons=0),b.cancel(e),this.cleanupMouse(e.buttons)):b.move
(e)}}},mouseup:function(d){if(!this.isEventSimulatedFromTouch(d)){var e=this.pre
pareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(this.POINTER_ID),b.u
p(e),this.cleanupMouse(e.buttons)}},cleanupMouse:function(a){0===a&&c["delete"](
this.POINTER_ID)}};a.mouseEvents=i}(window.PolymerGestures),function(a){var b=a.
dispatcher,c=(a.targetFinding.allShadows.bind(a.targetFinding),b.pointermap),d=(
Array.prototype.map.call.bind(Array.prototype.map),2500),e=25,f=200,g=20,h=!1,i=
{IS_IOS:!1,events:["touchstart","touchmove","touchend","touchcancel"],exposes:["
down","up","move"],register:function(a,c){(this.IS_IOS?c:!c)&&b.listen(a,this.ev
ents)},unregister:function(a){this.IS_IOS||b.unlisten(a,this.events)},scrollType
s:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"},touchActionToScrollType:f
unction(a){var b=a,c=this.scrollTypes;return b===c.EMITTER?"none":b===c.XSCROLLE
R?"X":b===c.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTo
uch:function(a){return this.firstTouch===a.identifier},setPrimaryTouch:function(
a){(0===c.pointers()||1===c.pointers()&&c.has(1))&&(this.firstTouch=a.identifier
,this.firstXY={X:a.clientX,Y:a.clientY},this.firstTarget=a.target,this.scrolling
=null,this.cancelResetClickCount())},removePrimaryPointer:function(a){a.isPrimar
y&&(this.firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0
,resetId:null,resetClickCount:function(){var a=function(){this.clickCount=0,this
.resetId=null}.bind(this);this.resetId=setTimeout(a,f)},cancelResetClickCount:fu
nction(){this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(a){var
b=0;return("touchstart"===a||"touchmove"===a)&&(b=1),b},findTarget:function(b,d
){if("touchstart"===this.currentTouchEvent.type){if(this.isPrimaryTouch(b)){var
e={clientX:b.clientX,clientY:b.clientY,path:this.currentTouchEvent.path,target:t
his.currentTouchEvent.target};return a.findTarget(e)}return a.findTarget(b)}retu
rn c.get(d)},touchToPointer:function(a){var c=this.currentTouchEvent,d=b.cloneEv
ent(a),e=d.pointerId=a.identifier+2;d.target=this.findTarget(a,e),d.bubbles=!0,d
.cancelable=!0,d.detail=this.clickCount,d.buttons=this.typeToButtons(c.type),d.w
idth=a.webkitRadiusX||a.radiusX||0,d.height=a.webkitRadiusY||a.radiusY||0,d.pres
sure=a.webkitForce||a.force||.5,d.isPrimary=this.isPrimaryTouch(a),d.pointerType
=this.POINTER_TYPE,d._source="touch";var f=this;return d.preventDefault=function
(){f.scrolling=!1,f.firstXY=null,c.preventDefault()},d},processTouches:function(
a,b){var d=a.changedTouches;this.currentTouchEvent=a;for(var e,f,g=0;g<d.length;
g++)e=d[g],f=this.touchToPointer(e),"touchstart"===a.type&&c.set(f.pointerId,f.t
arget),c.has(f.pointerId)&&b.call(this,f),("touchend"===a.type||a._cancel)&&this
.cleanUpPointer(f)},shouldScroll:function(b){if(this.firstXY){var c,d=a.targetFi
nding.findTouchAction(b),e=this.touchActionToScrollType(d);if("none"===e)c=!1;el
se if("XY"===e)c=!0;else{var f=b.changedTouches[0],g=e,h="Y"===e?"X":"Y",i=Math.
abs(f["client"+g]-this.firstXY[g]),j=Math.abs(f["client"+h]-this.firstXY[h]);c=i
>=j}return c}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d+
+)if(c.identifier===b)return!0},vacuumTouches:function(a){var b=a.touches;if(c.p
ointers()>=b.length){var d=[];c.forEach(function(a,c){if(1!==c&&!this.findTouch(
b,c-2)){var e=a;d.push(e)}},this),d.forEach(function(a){this.cancel(a),c["delete
"](a.pointerId)},this)}},touchstart:function(a){this.vacuumTouches(a),this.setPr
imaryTouch(a.changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.cl
ickCount++,this.processTouches(a,this.down))},down:function(a){b.down(a)},touchm
ove:function(a){if(h)a.cancelable&&this.processTouches(a,this.move);else if(this
.scrolling){if(this.firstXY){var b=a.changedTouches[0],c=b.clientX-this.firstXY.
X,d=b.clientY-this.firstXY.Y,e=Math.sqrt(c*c+d*d);e>=g&&(this.touchcancel(a),thi
s.scrolling=!0,this.firstXY=null)}}else null===this.scrolling&&this.shouldScroll
(a)?this.scrolling=!0:(this.scrolling=!1,a.preventDefault(),this.processTouches(
a,this.move))},move:function(a){b.move(a)},touchend:function(a){this.dedupSynthM
ouse(a),this.processTouches(a,this.up)},up:function(c){c.relatedTarget=a.findTar
get(c),b.up(c)},cancel:function(a){b.cancel(a)},touchcancel:function(a){a._cance
l=!0,this.processTouches(a,this.cancel)},cleanUpPointer:function(a){c["delete"](
a.pointerId),this.removePrimaryPointer(a)},dedupSynthMouse:function(b){var c=a.m
ouseEvents.lastTouches,e=b.changedTouches[0];if(this.isPrimaryTouch(e)){var f={x
:e.clientX,y:e.clientY};c.push(f);var g=function(a,b){var c=a.indexOf(b);c>-1&&a
.splice(c,1)}.bind(null,c,f);setTimeout(g,d)}}},j=Event.prototype.stopImmediateP
ropagation||Event.prototype.stopPropagation;document.addEventListener("click",fu
nction(b){var c=b.clientX,d=b.clientY,f=function(a){var b=Math.abs(c-a.x),f=Math
.abs(d-a.y);return e>=b&&e>=f},g=a.mouseEvents.lastTouches.some(f),h=a.targetFin
ding.path(b);if(g){for(var k=0;k<h.length;k++)if(h[k]===i.firstTarget)return;b.p
reventDefault(),j.call(b)}},!0),a.touchEvents=i}(window.PolymerGestures),functio
n(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof
window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointe
rMove","MSPointerUp","MSPointerCancel"],register:function(a){b.listen(a,this.eve
nts)},unregister:function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.unlisten(a,this.
events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:fun
ction(a){var c=a;return c=b.cloneEvent(a),d&&(c.pointerType=this.POINTER_TYPES[a
.pointerType]),c._source="ms",c},cleanup:function(a){c["delete"](a)},MSPointerDo
wn:function(d){var e=this.prepareEvent(d);e.target=a.findTarget(d),c.set(d.point
erId,e.target),b.down(e)},MSPointerMove:function(a){var d=c.get(a.pointerId);if(
d){var e=this.prepareEvent(a);e.target=d,b.move(e)}},MSPointerUp:function(d){var
e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointer
Id),b.up(e),this.cleanup(d.pointerId)},MSPointerCancel:function(d){var e=this.pr
epareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId),b.canc
el(e),this.cleanup(d.pointerId)}};a.msEvents=e}(window.PolymerGestures),function
(a){var b=a.dispatcher,c=b.pointermap,d={events:["pointerdown","pointermove","po
interup","pointercancel"],prepareEvent:function(a){var c=b.cloneEvent(a);return
c._source="pointer",c},register:function(a){b.listen(a,this.events)},unregister:
function(a){a.nodeType!==Node.DOCUMENT_NODE&&b.unlisten(a,this.events)},cleanup:
function(a){c["delete"](a)},pointerdown:function(d){var e=this.prepareEvent(d);e
.target=a.findTarget(d),c.set(e.pointerId,e.target),b.down(e)},pointermove:funct
ion(a){var d=c.get(a.pointerId);if(d){var e=this.prepareEvent(a);e.target=d,b.mo
ve(e)}},pointerup:function(d){var e=this.prepareEvent(d);e.relatedTarget=a.findT
arget(d),e.target=c.get(e.pointerId),b.up(e),this.cleanup(d.pointerId)},pointerc
ancel:function(d){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.t
arget=c.get(e.pointerId),b.cancel(e),this.cleanup(d.pointerId)}};a.pointerEvents
=d}(window.PolymerGestures),function(a){var b=a.dispatcher,c=window.navigator;wi
ndow.PointerEvent?b.registerSource("pointer",a.pointerEvents):c.msPointerEnabled
?b.registerSource("ms",a.msEvents):(b.registerSource("mouse",a.mouseEvents),void
0!==window.ontouchstart&&b.registerSource("touch",a.touchEvents));var d=navigat
or.userAgent,e=d.match(/iPad|iPhone|iPod/)&&"ontouchstart"in window;b.IS_IOS=e,a
.touchEvents.IS_IOS=e,b.register(document,!0)}(window.PolymerGestures),function(
a){var b=a.dispatcher,c=a.eventFactory,d=new a.PointerMap,e={events:["down","mov
e","up"],exposes:["trackstart","track","trackx","tracky","trackend"],defaultActi
ons:{track:"none",trackx:"pan-y",tracky:"pan-x"},WIGGLE_THRESHOLD:4,clampDir:fun
ction(a){return a>0?1:-1},calcPositionDelta:function(a,b){var c=0,d=0;return a&&
b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{x:c,y:d}},fireTrack:function(a,b,d){va
r e=d,f=this.calcPositionDelta(e.downEvent,b),g=this.calcPositionDelta(e.lastMov
eEvent,b);if(g.x)e.xDirection=this.clampDir(g.x);else if("trackx"===a)return;if(
g.y)e.yDirection=this.clampDir(g.y);else if("tracky"===a)return;var h={bubbles:!
0,cancelable:!0,trackInfo:e.trackInfo,relatedTarget:b.relatedTarget,pointerType:
b.pointerType,pointerId:b.pointerId,_source:"track"};"tracky"!==a&&(h.x=b.x,h.dx
=f.x,h.ddx=g.x,h.clientX=b.clientX,h.pageX=b.pageX,h.screenX=b.screenX,h.xDirect
ion=e.xDirection),"trackx"!==a&&(h.dy=f.y,h.ddy=g.y,h.y=b.y,h.clientY=b.clientY,
h.pageY=b.pageY,h.screenY=b.screenY,h.yDirection=e.yDirection);var i=c.makeGestu
reEvent(a,h);e.downTarget.dispatchEvent(i)},down:function(a){if(a.isPrimary&&("m
ouse"===a.pointerType?1===a.buttons:!0)){var b={downEvent:a,downTarget:a.target,
trackInfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};d.set(a.p
ointerId,b)}},move:function(a){var b=d.get(a.pointerId);if(b){if(!b.tracking){va
r c=this.calcPositionDelta(b.downEvent,a),e=c.x*c.x+c.y*c.y;e>this.WIGGLE_THRESH
OLD&&(b.tracking=!0,b.lastMoveEvent=b.downEvent,this.fireTrack("trackstart",a,b)
)}b.tracking&&(this.fireTrack("track",a,b),this.fireTrack("trackx",a,b),this.fir
eTrack("tracky",a,b)),b.lastMoveEvent=a}},up:function(a){var b=d.get(a.pointerId
);b&&(b.tracking&&this.fireTrack("trackend",a,b),d["delete"](a.pointerId))}};b.r
egisterGesture("track",e)}(window.PolymerGestures),function(a){var b=a.dispatche
r,c=a.eventFactory,d={HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["down","move","
up"],exposes:["hold","holdpulse","release"],heldPointer:null,holdJob:null,pulse:
function(){var a=Date.now()-this.heldPointer.timeStamp,b=this.held?"holdpulse":"
hold";this.fireHold(b,a),this.held=!0},cancel:function(){clearInterval(this.hold
Job),this.held&&this.fireHold("release"),this.held=!1,this.heldPointer=null,this
.target=null,this.holdJob=null},down:function(a){a.isPrimary&&!this.heldPointer&
&(this.heldPointer=a,this.target=a.target,this.holdJob=setInterval(this.pulse.bi
nd(this),this.HOLD_DELAY))},up:function(a){this.heldPointer&&this.heldPointer.po
interId===a.pointerId&&this.cancel()},move:function(a){if(this.heldPointer&&this
.heldPointer.pointerId===a.pointerId){var b=a.clientX-this.heldPointer.clientX,c
=a.clientY-this.heldPointer.clientY;b*b+c*c>this.WIGGLE_THRESHOLD&&this.cancel()
}},fireHold:function(a,b){var d={bubbles:!0,cancelable:!0,pointerType:this.heldP
ointer.pointerType,pointerId:this.heldPointer.pointerId,x:this.heldPointer.clien
tX,y:this.heldPointer.clientY,_source:"hold"};b&&(d.holdTime=b);var e=c.makeGest
ureEvent(a,d);this.target.dispatchEvent(e)}};b.registerGesture("hold",d)}(window
.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=new a.Pointe
rMap,e={events:["down","up"],exposes:["tap"],down:function(a){a.isPrimary&&!a.ta
pPrevented&&d.set(a.pointerId,{target:a.target,buttons:a.buttons,x:a.clientX,y:a
.clientY})},shouldTap:function(a,b){var c=!0;return"mouse"===a.pointerType&&(c=1
^a.buttons&&1&b.buttons),c&&!a.tapPrevented},up:function(b){var e=d.get(b.pointe
rId);if(e&&this.shouldTap(b,e)){var f=a.targetFinding.LCA(e.target,b.relatedTarg
et);if(f){var g=c.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:b.clientX,y
:b.clientY,detail:b.detail,pointerType:b.pointerType,pointerId:b.pointerId,altKe
y:b.altKey,ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,_source:"tap"
});f.dispatchEvent(g)}}d["delete"](b.pointerId)}};c.preventTap=function(a){retur
n function(){a.tapPrevented=!0,d["delete"](a.pointerId)}},b.registerGesture("tap
",e)}(window.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=
new a.PointerMap,e=180/Math.PI,f={events:["down","up","move","cancel"],exposes:[
"pinchstart","pinch","pinchend","rotate"],defaultActions:{pinch:"none",rotate:"n
one"},reference:{},down:function(b){if(d.set(b.pointerId,b),2==d.pointers()){var
c=this.calcChord(),e=this.calcAngle(c);this.reference={angle:e,diameter:c.diame
ter,target:a.targetFinding.LCA(c.a.target,c.b.target)},this.firePinch("pinchstar
t",c.diameter,c)}},up:function(a){var b=d.get(a.pointerId),c=d.pointers();if(b){
if(2===c){var e=this.calcChord();this.firePinch("pinchend",e.diameter,e)}d["dele
te"](a.pointerId)}},move:function(a){d.has(a.pointerId)&&(d.set(a.pointerId,a),d
.pointers()>1&&this.calcPinchRotate())},cancel:function(a){this.up(a)},firePinch
:function(a,b,d){var e=b/this.reference.diameter,f=c.makeGestureEvent(a,{bubbles
:!0,cancelable:!0,scale:e,centerX:d.center.x,centerY:d.center.y,_source:"pinch"}
);this.reference.target.dispatchEvent(f)},fireRotate:function(a,b){var d=Math.ro
und((a-this.reference.angle)%360),e=c.makeGestureEvent("rotate",{bubbles:!0,canc
elable:!0,angle:d,centerX:b.center.x,centerY:b.center.y,_source:"pinch"});this.r
eference.target.dispatchEvent(e)},calcPinchRotate:function(){var a=this.calcChor
d(),b=a.diameter,c=this.calcAngle(a);b!=this.reference.diameter&&this.firePinch(
"pinch",b,a),c!=this.reference.angle&&this.fireRotate(c,a)},calcChord:function()
{var a=[];d.forEach(function(b){a.push(b)});for(var b,c,e,f=0,g={a:a[0],b:a[1]},
h=0;h<a.length;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.
clientX-k.clientX),c=Math.abs(i.clientY-k.clientY),e=b+c,e>f&&(f=e,g={a:i,b:k})}
return b=Math.abs(g.a.clientX+g.b.clientX)/2,c=Math.abs(g.a.clientY+g.b.clientY)
/2,g.center={x:b,y:c},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.
b.clientX,c=a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*e)%360}};b.regist
erGesture("pinch",f)}(window.PolymerGestures),function(a){"use strict";function
b(a,b){if(!a)throw new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}fun
ction d(a){return 32===a||9===a||11===a||12===a||160===a||a>=5760&&"
".indexOf(String.fromCharCode(a))>0}function e(a){return 10===a||13===a||82
32===a||8233===a}function f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=
a}function g(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a
}function h(a){return"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}f
unction j(){var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(
a,X)}function k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.
Keyword:"null"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Iden
tifier,{type:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e
=W[X];switch(d){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 9
1:case 93:case 58:case 63:return++X,{type:S.Punctuator,value:String.fromCharCode
(d),range:[c,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38
:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Pu
nctuator,value:String.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 3
3:case 61:return X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice
(c,X),range:[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punc
tuator,value:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctua
tor,value:e,range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){va
r a,d,e;if(e=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with
a decimal digit or a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"=
==a&&e&&c(e.charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X))
;)a+=W[X++];e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X
]}if("e"===e||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.ch
arCodeAt(X)))for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILL
EGAL");return f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.Nume
ricLiteral,value:parseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for
(a=W[X],b("'"===a||'"'===a,"String literal must starts with a quote"),c=X,++X;Y>
X;){if(d=W[X++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))
"\r"===d&&"\n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";
break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case
"v":f+=" |
12 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V
.UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f
unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea
nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,
range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(
a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu
rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi
on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f
unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th
row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok
en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f
unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty
pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(
),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress
ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.
NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a
,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c
reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z(
)),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r
eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,
a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume
ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx
pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter
al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():
v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>
X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(
),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function
G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b,c;for(a=C();;)if(v
("["))c=G(),a=Z.createMemberExpression("[",a,c);else if(v("."))c=F(),a=Z.createM
emberExpression(".",a,c);else{if(!v("("))break;b=D(),a=Z.createCallExpression(a,
b)}return a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.Keywor
d?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.value,b
)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}function
J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(a.val
ue){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"!==":
b=6;break;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case"in":
b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}functi
on K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e
=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=
d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec
=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryExpres
sion(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K(),v(
"?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}function
M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.createFi
lter(a.value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var a=bb(
);a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===$.val
ue?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().v
alue;Z.createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.type!==
S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.name,b
,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O()}var
S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLitera
l:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]="Boo
lean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",T[S.N
ullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuator",T[
S.StringLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpression:
"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"Condit
ionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"Expression
Statement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledSt
atement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpressio
n",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",Thi
sExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedTok
en:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '
%1' has already been declared"}; | 12 ";break;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V
.UnexpectedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}f
unction o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.Boolea
nLiteral||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,
range:[X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(
a)?k():46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;retu
rn a=$,X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}functi
on s(a,c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,f
unction(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});th
row d=new Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedTok
en,a.value)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}f
unction v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.ty
pe===S.Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(
),a.push(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpress
ion(a)}function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.
NumericLiteral?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a
,b;return a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.c
reateProperty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z(
)),v("}")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;r
eturn u("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,
a===S.Identifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.Nume
ricLiteral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisEx
pression()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiter
al(b)):a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():
v("{")&&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>
X&&(a.push(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(
),o(a)||t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function
G(){var a;return u("["),a=bb(),u("]"),a}function H(){var a,b,c;for(a=C();;)if(v
("["))c=G(),a=Z.createMemberExpression("[",a,c);else if(v("."))c=F(),a=Z.createM
emberExpression(".",a,c);else{if(!v("("))break;b=D(),a=Z.createCallExpression(a,
b)}return a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.Keywor
d?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.value,b
)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}function
J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(a.val
ue){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"!==":
b=6;break;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case"in":
b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}functi
on K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e
=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=
d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec
=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryExpres
sion(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K(),v(
"?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}function
M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.createFi
lter(a.value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var a=bb(
);a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===$.val
ue?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().v
alue;Z.createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.type!==
S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.name,b
,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O()}var
S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLitera
l:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]="Boo
lean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",T[S.N
ullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuator",T[
S.StringLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpression:
"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"Condit
ionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"Expression
Statement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledSt
atement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpressio
n",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",Thi
sExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedTok
en:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '
%1' has already been declared"}; |
13 var ab=H,bb=L;a.esprima={parse:R}}(this),function(a){"use strict";function b(a,b
,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLA
TE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw Error("as and in can only be us
ed within <template bind/repeat>")}catch(g){return void console.error("Invalid e
xpression syntax: "+a,g)}return function(a,b,c){var d=f.getBinding(a,e,c);return
f.scopeIdent&&d&&(b.polymerExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.
polymerExpressionIndexIdent_=f.indexIdent)),d}}function c(a){var b=q[a];if(!b){v
ar c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}return b}function d(a){this.valu
e=a,this.valueFn_=void 0}function e(a){this.name=a,this.path=Path.get(a)}functio
n f(a,b,c){this.computed="["==c,this.dynamicDeps="function"==typeof a||a.dynamic
Deps||this.computed&&!(b instanceof d),this.simplePath=!this.dynamicDeps&&(b ins
tanceof e||b instanceof d)&&(a instanceof f||a instanceof e),this.object=this.si
mplePath?a:i(a),this.property=!this.computed||this.simplePath?b:i(b)}function g(
a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c]=i(b[c])}fu
nction h(){throw Error("Not Implemented")}function i(a){return"function"==typeof
a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],this.deps={},
this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynam
icDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIdent=a.scopeId
ent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expression found.
");this.expression=a.expression,i(this.expression),this.filters=a.filters,this.d
ynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A-Z]/g,functio
n(a){return"-"+a.toLowerCase()})}function n(a,b){for(;a[t]&&!Object.prototype.ha
sOwnProperty.call(a,b);)a=a[t];return a}function o(a){switch(a){case"":return!1;
case"false":case"null":case"true":return!0}return isNaN(Number(a))?!1:!0}functio
n p(){}var q=Object.create(null);d.prototype={valueFn:function(){if(!this.valueF
n_){var a=this.value;this.valueFn_=function(){return a}}return this.valueFn_}},e
.prototype={valueFn:function(){if(!this.valueFn_){var a=(this.name,this.path);th
is.valueFn_=function(b,c){return c&&c.addPath(b,a),a.getValueFrom(b)}}return thi
s.valueFn_},setValue:function(a,b){return 1==this.path.length&&(a=n(a,this.path[
0])),this.path.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath
_){var a=this.object instanceof f?this.object.fullPath.slice():[this.object.name
];a.push(this.property instanceof e?this.property.name:this.property.value),this
.fullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueF
n_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=func
tion(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var
c=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return
d&&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.
valueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(
f)}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this
.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?
this.property.name:this.property(a);return c[d]=b}},g.prototype={transform:funct
ion(a,b,c,d,e){var f=a,g=f[this.name];if(!g&&(g=c[this.name],!g))return void con
sole.error("Cannot find function or filter: "+this.name);if(d?g=g.toModel:"funct
ion"==typeof g.toDOM&&(g=g.toDOM),"function"!=typeof g)return void console.error
("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;j<this.args.l
ength;j++)h.push(i(this.args[j])(a,b,c));return g.apply(f,h)}};var r={"+":functi
on(a){return+a},"-":function(a){return-a},"!":function(a){return!a}},s={"+":func
tion(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b){return a*b
},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":function(a,b){
return b>a},">":function(a,b){return a>b},"<=":function(a,b){return b>=a},">=":f
unction(a,b){return a>=b},"==":function(a,b){return a==b},"!=":function(a,b){ret
urn a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return a!==b},"&
&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.prototype={crea
teUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed operator: "+a);
return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryExpression:fun
ction(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch(b=i(b),c=i(c
),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)||c(a,d,
e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)&&c(a,d,e
)}}return function(d,e,f){return s[a](b(d,e,f),c(d,e,f))}},createConditionalExpr
ession:function(a,b,c){return a=i(a),b=i(b),c=i(c),this.dynamicDeps=!0,function(
d,e,f){return a(d,e,f)?b(d,e,f):c(d,e,f)}},createIdentifier:function(a){var b=ne
w e(a);return b.type="Identifier",b},createMemberExpression:function(a,b,c){var
d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},createCallExpressi
on:function(a,b){if(!(a instanceof e))throw Error("Only identifier function invo
cations are allowed");var c=new g(a.name,b);return function(a,b,d){return c.tran
sform(a,b,d,!1)}},createLiteral:function(a){return new d(a.value)},createArrayEx
pression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return function(b,c
,d){for(var e=[],f=0;f<a.length;f++)e.push(a[f](b,c,d));return e}},createPropert
y:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},createObjec
tExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].value);retu
rn function(b,c,d){for(var e={},f=0;f<a.length;f++)e[a[f].key]=a[f].value(b,c,d)
;return e}},createFilter:function(a,b){this.filters.push(new g(a,b))},createAsEx
pression:function(a,b){this.expression=a,this.scopeIdent=b},createInExpression:f
unction(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b},createTopL
evel:function(a){this.expression=a},createThisExpression:h},k.prototype={open:fu
nction(){return this.value_},discardChanges:function(){return this.value_},deliv
er:function(){},close:function(){}},l.prototype={getBinding:function(a,b,c){func
tion d(){if(h)return h=!1,g;i.dynamicDeps&&f.startReset();var c=i.getValue(a,i.d
ynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}function e(c){ret
urn i.setValue(a,c,b),c}if(c)return this.getValue(a,void 0,b);var f=new Compound
Observer,g=this.getValue(a,f,b),h=!0,i=this;return new ObserverTransform(f,d,e,!
0)},getValue:function(a,b,c){for(var d=i(this.expression)(a,b,c),e=0;e<this.filt
ers.length;e++)d=this.filters[e].transform(a,b,c,!1,[d]);return d},setValue:func
tion(a,b,c){for(var d=this.filters?this.filters.length:0;d-->0;)b=this.filters[d
].transform(a,void 0,c,!0,[b]);return this.expression.setValue?this.expression.s
etValue(a,b):void 0}};var t="@"+Math.random().toString(36).slice(2);p.prototype=
{styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a[c]);return b
.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.push(c);retur
n b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.polymerExpress
ionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBinding:function(
a,c,d){var e=Path.get(a);{if(o(a)||!e.valid)return b(a,c,d,this);if(1==e.length)
return function(a,b,c){if(c)return e.getValueFrom(a);var d=n(a,e[0]);return new
PathObserver(d,e)}}},prepareInstanceModel:function(a){var b=a.polymerExpressionS
copeIdent_;if(b){var c=a.templateInstance?a.templateInstance.model:a.model,d=a.p
olymerExpressionIndexIdent_;return function(a){return u(c,a,b,d)}}}};var u="__pr
oto__"in{}?function(a,b,c,d){var e={};return e[c]=b,e[d]=void 0,e[t]=a,e.__proto
__=a,e}:function(a,b,c,d){var e=Object.create(a);return Object.defineProperty(e,
c,{value:b,configurable:!0,writable:!0}),Object.defineProperty(e,d,{value:void 0
,configurable:!0,writable:!0}),Object.defineProperty(e,t,{value:a,configurable:!
0,writable:!0}),e};a.PolymerExpressions=p,p.getExpression=c}(this),Polymer={vers
ion:"0.5.5"},"function"==typeof window.Polymer&&(Polymer={}),function(a){functio
n b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){
var e;switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.appl
y(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){
HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal=d,a.modulari
ze=c,a.using=e}(window),window.WebComponents||(window.WebComponents||(WebCompone
nts={flush:function(){},flags:{log:{}}},Platform=WebComponents,CustomElements={u
seNative:!0,ready:!0,takeRecords:function(){},"instanceof":function(a,b){return
a instanceof b}},HTMLImports={useNative:!0},addEventListener("HTMLImportsLoaded"
,function(){document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles
:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(a){return a}),window.HTMLIm
ports=window.HTMLImports||{flags:{}},function(a){function b(a,b){b=b||o,d(functi
on(){f(a,b)},b)}function c(a){return"complete"===a.readyState||a.readyState===r}
function d(a,b){if(c(b))a&&a();else{var e=function(){("complete"===b.readyState|
|b.readyState===r)&&(b.removeEventListener(s,e),d(a,b))};b.addEventListener(s,e)
}}function e(a){a.target.__loaded=!0}function f(a,b){function c(){h==i&&a&&a()}f
unction d(a){e(a),h++,c()}var f=b.querySelectorAll("link[rel=import]"),h=0,i=f.l
ength;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g(j)?d.call(j,{target:j}):(j.addEvent
Listener("load",d),j.addEventListener("error",d));else c()}function g(a){return
l?a.__loaded||a["import"]&&"loading"!==a["import"].readyState:a.__importParsed}f
unction h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)i(b)&&j(b)}function i(a)
{return"link"===a.localName&&"import"===a.rel}function j(a){var b=a["import"];b?
e({target:a}):(a.addEventListener("load",e),a.addEventListener("error",e))}var k
="import",l=Boolean(k in document.createElement("link")),m=Boolean(window.Shadow
DOMPolyfill),n=function(a){return m?ShadowDOMPolyfill.wrapIfNeeded(a):a},o=n(doc
ument),p={get:function(){var a=HTMLImports.currentScript||document.currentScript
||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:
null);return n(a)},configurable:!0};Object.defineProperty(document,"_currentScri
pt",p),Object.defineProperty(o,"_currentScript",p);var q=/Trident/.test(navigato
r.userAgent),r=q?"complete":"interactive",s="readystatechange";l&&(new MutationO
bserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.addedNodes&&h(b
.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===d
ocument.readyState)for(var a,b=document.querySelectorAll("link[rel=import]"),c=0
,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTMLImports.ready=!0,HTMLImp
orts.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEvent("HTMLImports
Loaded",{bubbles:!0}))}),a.IMPORT_LINK_TYPE=k,a.useNative=l,a.rootDocument=o,a.w
henReady=b,a.isIE=q}(HTMLImports),function(){var a=document.createElement("style
");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {
opacity: 0; display: block; overflow: hidden; } \n";var b=document.querySelector
("head");b.insertBefore(a,b.firstChild)}(Platform)),function(a){"use strict";fun
ction b(){function a(a){b=a}if("function"!=typeof Object.observe||"function"!=ty
peof 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.deliverChan
geRecords(a),5!==b.length?!1:"add"!=b[0].type||"update"!=b[1].type||"delete"!=b[
2].type||"splice"!=b[3].type||"splice"!=b[4].type?!1:(Object.unobserve(c,a),Arra
y.unobserve(d,a),!0)}function c(){if("undefined"!=typeof chrome&&chrome.app&&chr
ome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.getDeviceSt
orage)return!1;try{var a=new Function("","return true;");return a()}catch(b){ret
urn!1}}function d(a){return+a===a>>>0&&""!==a}function e(a){return+a}function f(
a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:R(a)&&R(b)
?!0:a!==a&&b!==b}function h(a){if(void 0===a)return"eof";var b=a.charCodeAt(0);s
witch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;case 95:case 3
6:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:cas
e 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57>=b?"numbe
r":"else"}function i(){}function j(a){function b(){if(!(m>=a.length)){var b=a[m+
1];return"inSingleQuote"==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d=b,o.appen
d(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push:function(
){void 0!==e&&(l.push(e),e=void 0)},append:function(){void 0===e?e=d:e+=d}};n;)i
f(m++,c=a[m],"\\"!=c||!b(n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"error","error"
==g)return;if(n=g[0],j=o[g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPath"===n)ret
urn l}}function k(a){return V.test(a)}function l(a,b){if(b!==X)throw Error("Use
Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this.push(String(
a[c]));Q&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn())}functio
n m(a){if(a instanceof l)return a;if((null==a||0==a.length)&&(a=""),"string"!=ty
peof a){if(d(a.length))return new l(a,X);a=String(a)}var b=Y[a];if(b)return b;va
r c=j(a);if(!c)return Z;var b=new l(c,X);return Y[a]=b,b}function n(a){return d(
a)?"["+a+"]":'["'+a.replace(/"/g,'\\"')+'"]'}function o(b){for(var c=0;_>c&&b.ch
eck_();)c++;return O&&(a.dirtyCheckCycleCount=c),c>0}function p(a){for(var b in
a)return!1;return!0}function q(a){return p(a.added)&&p(a.removed)&&p(a.changed)}
function r(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.length=a.length),{added:c,remo
ved:d,changed:e}}function s(){if(!ab.length)return!1;for(var a=0;a<ab.length;a++
)ab[a]();return ab.length=0,!0}function t(){function a(a){b&&b.state_===fb&&!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),cb.
push(this)}}}function u(a,b,c){var d=cb.pop()||t();return d.open(a),d.observe(b,
c),d}function v(){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)r
eturn!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)d=g[e],d.s
tate_==fb&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d.state_==fb&&
d.check_()}}var d,e,f=0,g=[],h=[],i={objects:h,get rootObject(){return d},set ro
otObject(a){d=a,e={}},open:function(b){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),x
.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,db.push(this),$===thi
s&&($=null)}}};return i}function w(a,b){return $&&$.rootObject===b||($=db.pop()|
|v(),$.rootObject=b),$.open(a,b),$}function x(){this.state_=eb,this.callback_=vo
id 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_
=ib++}function y(a){x._allObserversCount++,kb&&jb.push(a)}function z(){x._allObs
erversCount--}function A(a){x.call(this),this.value_=a,this.oldObject_=void 0}fu
nction B(a){if(!Array.isArray(a))throw Error("Provided object is not an Array");
A.call(this,a)}function C(a,b){x.call(this),this.object_=a,this.path_=m(b),this.
directObserver_=void 0}function D(a){x.call(this),this.reportChangesOnOpen_=a,th
is.value_=[],this.directObserver_=void 0,this.observed_=[]}function E(a){return
a}function F(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_=void
0,this.observable_=a,this.getValueFn_=b||E,this.setValueFn_=c||E,this.dontPassT
hroughSet_=d}function G(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];
nb[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&("add"!=g.type
?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete
e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),c
onsole.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};fo
r(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 H(a,b,c){return{index:a,removed:b,addedCount:c}}fu
nction I(){}function J(a,b,c,d,e,f){return sb.calcSplices(a,b,c,d,e,f)}function
K(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
L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index
+=g,!f){var j=K(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount);i
f(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.added
Count-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c=i.re
moved;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.prototy
pe.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e
.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)}e.r
emoved=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 M(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.
type){case"splice":L(c,g.index,g.removed.slice(),g.addedCount);break;case"add":c
ase"update":case"delete":if(!d(g.name))continue;var h=e(g.name);if(0>h)continue;
L(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: "+JSO
N.stringify(g))}}return c}function N(a,b){var c=[];return M(a,b).forEach(functio
n(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.index]&
&c.push(b)):void(c=c.concat(J(a,b.index,b.index+b.addedCount,b.removed,0,b.remov
ed.length)))}),c}var O=a.testingExposeCycleCount,P=b(),Q=c(),R=a.Number.isNaN||f
unction(b){return"number"==typeof b&&a.isNaN(b)},S="__proto__"in{}?function(a){r
eturn a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);ret
urn Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,
Object.getOwnPropertyDescriptor(a,b))}),c},T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]",V=ne
w RegExp("^"+T+"+"+U+"*$"),W={beforePath:{ws:["beforePath"],ident:["inIdent","ap
pend"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["befo
reIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent
"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent",
"append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","p
ush"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:[
"beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSi
ngleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["after
Element","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:[
"inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'
":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuot
e:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterEl
ement:{ws:["afterElement"],"]":["inPath","push"]}},X={},Y={};l.get=m,l.prototype
=S({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<this.length;b++
){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}return a},getValueFrom:function(a){for(va
r 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]]),!f(a))retur
n;b(a,this[c])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if (obj
!= null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\
n "+b+" != null";a+=")\n";var c=this[d];return b+=k(c)?"."+c:n(c),a+=" retu
rn "+b+";\nelse\n return undefined;",new Function("obj",a)},setValueFrom:functi
on(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))retur
n!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var Z=new l("",X);Z.valid=!
1,Z.getValueFrom=Z.setValueFrom=function(){};var $,_=1e3,ab=[],bb=P?function(){r
eturn function(a){return Promise.resolve().then(a)}}():function(){return functio
n(a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,hb=3,ib=1;x.prototype={open:funct
ion(a,b){if(this.state_!=eb)throw Error("Observer has already been opened.");ret
urn y(this),this.callback_=a,this.target_=b,this.connect_(),this.state_=fb,this.
value_},close:function(){this.state_==fb&&(z(this),this.disconnect_(),this.value
_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=gb)},deliver:func
tion(){this.state_==fb&&o(this)},report_:function(a){try{this.callback_.apply(th
is.target_,a)}catch(b){x._errorThrownDuringCallback=!0,console.error("Exception
caught during observer callback: "+(b.stack||b))}},discardChanges:function(){ret
urn this.check_(void 0,!0),this.value_}};var jb,kb=!P;x._allObserversCount=0,kb&
&(jb=[]);var lb=!1;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoi
nt=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{d++,c=jb,jb=[],b=!1;for(var e=0;e
<c.length;e++){var f=c[e];f.state_==fb&&(f.check_()&&(b=!0),jb.push(f))}s()&&(b=
!0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d),lb=!1}},kb&&(a.Platform.clearObs
ervers=function(){jb=[]}),A.prototype=S({__proto__:x.prototype,arrayObserve:!1,c
onnect_:function(){P?this.directObserver_=u(this,this.value_,this.arrayObserve):
this.oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array
.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.
length),b},check_:function(a){var b,c;if(P){if(!a)return!1;c={},b=G(this.value_,
a,c)}else c=this.oldObject_,b=r(this.value_,this.oldObject_);return q(b)?!1:(P||
(this.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.remov
ed||{},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){P?(t
his.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0}
,deliver:function(){this.state_==fb&&(P?this.directObserver_.deliver(!1):o(this)
)},discardChanges:function(){return this.directObserver_?this.directObserver_.de
liver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),B.prototyp
e=S({__proto__:A.prototype,arrayObserve:!0,copyObject:function(a){return a.slice
()},check_:function(a){var b;if(P){if(!a)return!1;b=N(this.value_,a)}else b=J(th
is.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return
b&&b.length?(P||(this.oldObject_=this.copyObject(this.value_)),this.report_([b])
,!0):!1}}),B.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.ind
ex,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.pr
ototype.splice.apply(a,d)})},C.prototype=S({__proto__:x.prototype,get path(){ret
urn this.path_},connect_:function(){P&&(this.directObserver_=w(this,this.object_
)),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.direct
Observer_&&(this.directObserver_.close(this),this.directObserver_=void 0)},itera
teObjects_:function(a){this.path_.iterateObjects(this.object_,a)},check_:functio
n(a,b){var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_
),b||g(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},setValue:funct
ion(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var mb={};D.protot
ype=S({__proto__:x.prototype,connect_:function(){if(P){for(var a,b=!1,c=0;c<this
.observed_.length;c+=2)if(a=this.observed_[c],a!==mb){b=!0;break}b&&(this.direct
Observer_=w(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_
:function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===mb&&thi
s.observed_[a+1].close();this.observed_.length=0,this.value_.length=0,this.direc
tObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addP
ath:function(a,b){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add pa
ths once started.");var b=m(b);if(this.observed_.push(a,b),this.reportChangesOnO
pen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObse
rver:function(a){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add obs
ervers once started.");if(this.observed_.push(mb,a),this.reportChangesOnOpen_){v
ar b=this.observed_.length/2-1;this.value_[b]=a.open(this.deliver,this)}},startR
eset:function(){if(this.state_!=fb)throw Error("Can only reset while open");this
.state_=hb,this.disconnect_()},finishReset:function(){if(this.state_!=hb)throw E
rror("Can only finishReset after startReset");return this.state_=fb,this.connect
_(),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.leng
th;c+=2)b=this.observed_[c],b!==mb&&this.observed_[c+1].iterateObjects(b,a)},che
ck_:function(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.obser
ved_[d],h=this.observed_[d+1];if(f===mb){var i=h;e=this.state_===eb?i.open(this.
deliver,this):i.discardChanges()}else e=h.getValueFrom(f);b?this.value_[d/2]=e:g
(e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=e)}retur
n c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),F.prototype={open:fu
nction(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValueFn_(
this.observable_.open(this.observedCallback_,this)),this.value_},observedCallbac
k_:function(a){if(a=this.getValueFn_(a),!g(a,this.value_)){var b=this.value_;thi
s.value_=a,this.callback_.call(this.target_,this.value_,b)}},discardChanges:func
tion(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),th
is.value_},deliver:function(){return this.observable_.deliver()},setValue:functi
on(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observable_.s
etValue?this.observable_.setValue(a):void 0},close:function(){this.observable_&&
this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observab
le_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};
var nb={add:!0,update:!0,"delete":!0},ob=0,pb=1,qb=2,rb=3;I.prototype={calcEditD
istances: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{v
ar l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}return i},spliceOperationsFromEdi
tDistances: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(ob):(e.push(pb),d=g),b--,c--):f==h?(e.push(rb),b--,d=h
):(e.push(qb),c--,d=i)}else e.push(rb),b--;else e.push(qb),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.sharedSuffi
x(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=H(b,[
],0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[H(b,[],c-b)];for(var k
=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=v
oid 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case ob:j&&(l.push(j),j=void
0),m++,n++;break;case pb:j||(j=H(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]
),n++;break;case qb:j||(j=H(m,[],0)),j.addedCount++,m++;break;case rb:j||(j=H(m,
[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a,b
,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSuff
ix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[-
-e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0,a
.length,b,0,b.length)},equals:function(a,b){return a===b}};var sb=new I,tb=a;"un
defined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&module.
exports&&(exports=module.exports),tb=exports),tb.Observer=x,tb.Observer.runEOM_=
bb,tb.Observer.observerSentinel_=mb,tb.Observer.hasObjectObserve=P,tb.ArrayObser
ver=B,tb.ArrayObserver.calculateSplices=function(a,b){return sb.calculateSplices
(a,b)},tb.ArraySplice=I,tb.ObjectObserver=A,tb.PathObserver=C,tb.CompoundObserve
r=D,tb.Path=l,tb.ObserverTransform=F}("undefined"!=typeof global&&global&&"undef
ined"!=typeof module&&module?global:this||window),function(){"use strict";functi
on a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.getElementB
yId?a:null}function b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]
&&c[b].close(),d[b]=c}function c(a,b,c){return c}function d(a){return null==a?""
:a}function e(a,b){a.data=d(b)}function f(a){return function(b){return e(a,b)}}f
unction g(a,b,c,e){return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):vo
id a.setAttribute(b,d(e))}function h(a,b,c){return function(d){g(a,b,c,d)}}funct
ion i(a){switch(a.type){case"checkbox":return u;case"radio":case"select-multiple
":case"select-one":return"change";case"range":if(/Trident|MSIE/.test(navigator.u
serAgent))return"change";default:return"input"}}function j(a,b,c,e){a[b]=(e||d)(
c)}function k(a,b,c){return function(d){return j(a,b,d,c)}}function l(){}functio
n m(a,b,c,d){function e(){var e="value"==b&&"number"==a.type;c.setValue(e?a.valu
eAsNumber:a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskCheckpoint
()}var f=i(a);return a.addEventListener(f,e),{close:function(){a.removeEventList
ener(f,e),c.close()},observable_:c}}function n(a){return Boolean(a)}function o(b
){if(b.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"==a.tagName
&&"radio"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.querySelec
torAll('input[type="radio"][name="'+b.name+'"]');return s(d,function(a){return a
!=b&&!a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a).forEach
(function(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})}function
q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindings_&&g.b
indings_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.value!=f&&
(e.observable_.setValue(c.value),e.observable_.discardChanges(),Platform.perform
MicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var s=Array.prot
otype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=function(a,b)
{console.error("Unhandled binding to Node: ",this,a,b)},Node.prototype.bindFinis
hed=function(){};var t=c;Object.defineProperty(Platform,"enableBindingsReflectio
n",{get:function(){return t===b},set:function(a){return t=a?b:c,a},configurable:
!0}),Text.prototype.bind=function(a,b,c){if("textContent"!==a)return Node.protot
ype.bind.call(this,a,b,c);if(c)return e(this,b);var d=b;return e(this,d.open(f(t
his))),t(this,a,d)},Element.prototype.bind=function(a,b,c){var d="?"==a[a.length
-1];if(d&&(this.removeAttribute(a),a=a.slice(0,-1)),c)return g(this,a,d,b);var e
=b;return g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};var u;!function(){var a=d
ocument.createElement("div"),b=a.appendChild(document.createElement("input"));b.
setAttribute("type","checkbox");var c,d=0;b.addEventListener("click",function(){
d++,c=c||"click"}),b.addEventListener("change",function(){d++,c=c||"change"});va
r 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}(),HTMLInputElem
ent.prototype.bind=function(a,c,e){if("value"!==a&&"checked"!==a)return HTMLElem
ent.prototype.bind.call(this,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=f
unction(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,"v
alue",e);return j(this,"value",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptio
nElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.protot
ype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return q(this,b);va
r d=b,e=m(this,"value",d); | 13 var ab=H,bb=L;a.esprima={parse:R}}(this),function(a){"use strict";function b(a,b
,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLA
TE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw Error("as and in can only be us
ed within <template bind/repeat>")}catch(g){return void console.error("Invalid e
xpression syntax: "+a,g)}return function(a,b,c){var d=f.getBinding(a,e,c);return
f.scopeIdent&&d&&(b.polymerExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.
polymerExpressionIndexIdent_=f.indexIdent)),d}}function c(a){var b=q[a];if(!b){v
ar c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}return b}function d(a){this.valu
e=a,this.valueFn_=void 0}function e(a){this.name=a,this.path=Path.get(a)}functio
n f(a,b,c){this.computed="["==c,this.dynamicDeps="function"==typeof a||a.dynamic
Deps||this.computed&&!(b instanceof d),this.simplePath=!this.dynamicDeps&&(b ins
tanceof e||b instanceof d)&&(a instanceof f||a instanceof e),this.object=this.si
mplePath?a:i(a),this.property=!this.computed||this.simplePath?b:i(b)}function g(
a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c]=i(b[c])}fu
nction h(){throw Error("Not Implemented")}function i(a){return"function"==typeof
a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],this.deps={},
this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynam
icDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIdent=a.scopeId
ent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expression found.
");this.expression=a.expression,i(this.expression),this.filters=a.filters,this.d
ynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A-Z]/g,functio
n(a){return"-"+a.toLowerCase()})}function n(a,b){for(;a[t]&&!Object.prototype.ha
sOwnProperty.call(a,b);)a=a[t];return a}function o(a){switch(a){case"":return!1;
case"false":case"null":case"true":return!0}return isNaN(Number(a))?!1:!0}functio
n p(){}var q=Object.create(null);d.prototype={valueFn:function(){if(!this.valueF
n_){var a=this.value;this.valueFn_=function(){return a}}return this.valueFn_}},e
.prototype={valueFn:function(){if(!this.valueFn_){var a=(this.name,this.path);th
is.valueFn_=function(b,c){return c&&c.addPath(b,a),a.getValueFrom(b)}}return thi
s.valueFn_},setValue:function(a,b){return 1==this.path.length&&(a=n(a,this.path[
0])),this.path.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath
_){var a=this.object instanceof f?this.object.fullPath.slice():[this.object.name
];a.push(this.property instanceof e?this.property.name:this.property.value),this
.fullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueF
n_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=func
tion(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var
c=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return
d&&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.
valueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(
f)}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this
.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?
this.property.name:this.property(a);return c[d]=b}},g.prototype={transform:funct
ion(a,b,c,d,e){var f=a,g=f[this.name];if(!g&&(g=c[this.name],!g))return void con
sole.error("Cannot find function or filter: "+this.name);if(d?g=g.toModel:"funct
ion"==typeof g.toDOM&&(g=g.toDOM),"function"!=typeof g)return void console.error
("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;j<this.args.l
ength;j++)h.push(i(this.args[j])(a,b,c));return g.apply(f,h)}};var r={"+":functi
on(a){return+a},"-":function(a){return-a},"!":function(a){return!a}},s={"+":func
tion(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b){return a*b
},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":function(a,b){
return b>a},">":function(a,b){return a>b},"<=":function(a,b){return b>=a},">=":f
unction(a,b){return a>=b},"==":function(a,b){return a==b},"!=":function(a,b){ret
urn a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return a!==b},"&
&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.prototype={crea
teUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed operator: "+a);
return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryExpression:fun
ction(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch(b=i(b),c=i(c
),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)||c(a,d,
e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,d,e)&&c(a,d,e
)}}return function(d,e,f){return s[a](b(d,e,f),c(d,e,f))}},createConditionalExpr
ession:function(a,b,c){return a=i(a),b=i(b),c=i(c),this.dynamicDeps=!0,function(
d,e,f){return a(d,e,f)?b(d,e,f):c(d,e,f)}},createIdentifier:function(a){var b=ne
w e(a);return b.type="Identifier",b},createMemberExpression:function(a,b,c){var
d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},createCallExpressi
on:function(a,b){if(!(a instanceof e))throw Error("Only identifier function invo
cations are allowed");var c=new g(a.name,b);return function(a,b,d){return c.tran
sform(a,b,d,!1)}},createLiteral:function(a){return new d(a.value)},createArrayEx
pression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return function(b,c
,d){for(var e=[],f=0;f<a.length;f++)e.push(a[f](b,c,d));return e}},createPropert
y:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},createObjec
tExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].value);retu
rn function(b,c,d){for(var e={},f=0;f<a.length;f++)e[a[f].key]=a[f].value(b,c,d)
;return e}},createFilter:function(a,b){this.filters.push(new g(a,b))},createAsEx
pression:function(a,b){this.expression=a,this.scopeIdent=b},createInExpression:f
unction(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b},createTopL
evel:function(a){this.expression=a},createThisExpression:h},k.prototype={open:fu
nction(){return this.value_},discardChanges:function(){return this.value_},deliv
er:function(){},close:function(){}},l.prototype={getBinding:function(a,b,c){func
tion d(){if(h)return h=!1,g;i.dynamicDeps&&f.startReset();var c=i.getValue(a,i.d
ynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}function e(c){ret
urn i.setValue(a,c,b),c}if(c)return this.getValue(a,void 0,b);var f=new Compound
Observer,g=this.getValue(a,f,b),h=!0,i=this;return new ObserverTransform(f,d,e,!
0)},getValue:function(a,b,c){for(var d=i(this.expression)(a,b,c),e=0;e<this.filt
ers.length;e++)d=this.filters[e].transform(a,b,c,!1,[d]);return d},setValue:func
tion(a,b,c){for(var d=this.filters?this.filters.length:0;d-->0;)b=this.filters[d
].transform(a,void 0,c,!0,[b]);return this.expression.setValue?this.expression.s
etValue(a,b):void 0}};var t="@"+Math.random().toString(36).slice(2);p.prototype=
{styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a[c]);return b
.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.push(c);retur
n b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.polymerExpress
ionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBinding:function(
a,c,d){var e=Path.get(a);{if(o(a)||!e.valid)return b(a,c,d,this);if(1==e.length)
return function(a,b,c){if(c)return e.getValueFrom(a);var d=n(a,e[0]);return new
PathObserver(d,e)}}},prepareInstanceModel:function(a){var b=a.polymerExpressionS
copeIdent_;if(b){var c=a.templateInstance?a.templateInstance.model:a.model,d=a.p
olymerExpressionIndexIdent_;return function(a){return u(c,a,b,d)}}}};var u="__pr
oto__"in{}?function(a,b,c,d){var e={};return e[c]=b,e[d]=void 0,e[t]=a,e.__proto
__=a,e}:function(a,b,c,d){var e=Object.create(a);return Object.defineProperty(e,
c,{value:b,configurable:!0,writable:!0}),Object.defineProperty(e,d,{value:void 0
,configurable:!0,writable:!0}),Object.defineProperty(e,t,{value:a,configurable:!
0,writable:!0}),e};a.PolymerExpressions=p,p.getExpression=c}(this),Polymer={vers
ion:"0.5.5"},"function"==typeof window.Polymer&&(Polymer={}),function(a){functio
n b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){
var e;switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.appl
y(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){
HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal=d,a.modulari
ze=c,a.using=e}(window),window.WebComponents||(window.WebComponents||(WebCompone
nts={flush:function(){},flags:{log:{}}},Platform=WebComponents,CustomElements={u
seNative:!0,ready:!0,takeRecords:function(){},"instanceof":function(a,b){return
a instanceof b}},HTMLImports={useNative:!0},addEventListener("HTMLImportsLoaded"
,function(){document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles
:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(a){return a}),window.HTMLIm
ports=window.HTMLImports||{flags:{}},function(a){function b(a,b){b=b||o,d(functi
on(){f(a,b)},b)}function c(a){return"complete"===a.readyState||a.readyState===r}
function d(a,b){if(c(b))a&&a();else{var e=function(){("complete"===b.readyState|
|b.readyState===r)&&(b.removeEventListener(s,e),d(a,b))};b.addEventListener(s,e)
}}function e(a){a.target.__loaded=!0}function f(a,b){function c(){h==i&&a&&a()}f
unction d(a){e(a),h++,c()}var f=b.querySelectorAll("link[rel=import]"),h=0,i=f.l
ength;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g(j)?d.call(j,{target:j}):(j.addEvent
Listener("load",d),j.addEventListener("error",d));else c()}function g(a){return
l?a.__loaded||a["import"]&&"loading"!==a["import"].readyState:a.__importParsed}f
unction h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)i(b)&&j(b)}function i(a)
{return"link"===a.localName&&"import"===a.rel}function j(a){var b=a["import"];b?
e({target:a}):(a.addEventListener("load",e),a.addEventListener("error",e))}var k
="import",l=Boolean(k in document.createElement("link")),m=Boolean(window.Shadow
DOMPolyfill),n=function(a){return m?ShadowDOMPolyfill.wrapIfNeeded(a):a},o=n(doc
ument),p={get:function(){var a=HTMLImports.currentScript||document.currentScript
||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:
null);return n(a)},configurable:!0};Object.defineProperty(document,"_currentScri
pt",p),Object.defineProperty(o,"_currentScript",p);var q=/Trident/.test(navigato
r.userAgent),r=q?"complete":"interactive",s="readystatechange";l&&(new MutationO
bserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.addedNodes&&h(b
.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===d
ocument.readyState)for(var a,b=document.querySelectorAll("link[rel=import]"),c=0
,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTMLImports.ready=!0,HTMLImp
orts.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEvent("HTMLImports
Loaded",{bubbles:!0}))}),a.IMPORT_LINK_TYPE=k,a.useNative=l,a.rootDocument=o,a.w
henReady=b,a.isIE=q}(HTMLImports),function(){var a=document.createElement("style
");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {
opacity: 0; display: block; overflow: hidden; } \n";var b=document.querySelector
("head");b.insertBefore(a,b.firstChild)}(Platform)),function(a){"use strict";fun
ction b(){function a(a){b=a}if("function"!=typeof Object.observe||"function"!=ty
peof 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.deliverChan
geRecords(a),5!==b.length?!1:"add"!=b[0].type||"update"!=b[1].type||"delete"!=b[
2].type||"splice"!=b[3].type||"splice"!=b[4].type?!1:(Object.unobserve(c,a),Arra
y.unobserve(d,a),!0)}function c(){if("undefined"!=typeof chrome&&chrome.app&&chr
ome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.getDeviceSt
orage)return!1;try{var a=new Function("","return true;");return a()}catch(b){ret
urn!1}}function d(a){return+a===a>>>0&&""!==a}function e(a){return+a}function f(
a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:R(a)&&R(b)
?!0:a!==a&&b!==b}function h(a){if(void 0===a)return"eof";var b=a.charCodeAt(0);s
witch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;case 95:case 3
6:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:cas
e 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57>=b?"numbe
r":"else"}function i(){}function j(a){function b(){if(!(m>=a.length)){var b=a[m+
1];return"inSingleQuote"==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d=b,o.appen
d(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push:function(
){void 0!==e&&(l.push(e),e=void 0)},append:function(){void 0===e?e=d:e+=d}};n;)i
f(m++,c=a[m],"\\"!=c||!b(n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"error","error"
==g)return;if(n=g[0],j=o[g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPath"===n)ret
urn l}}function k(a){return V.test(a)}function l(a,b){if(b!==X)throw Error("Use
Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this.push(String(
a[c]));Q&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn())}functio
n m(a){if(a instanceof l)return a;if((null==a||0==a.length)&&(a=""),"string"!=ty
peof a){if(d(a.length))return new l(a,X);a=String(a)}var b=Y[a];if(b)return b;va
r c=j(a);if(!c)return Z;var b=new l(c,X);return Y[a]=b,b}function n(a){return d(
a)?"["+a+"]":'["'+a.replace(/"/g,'\\"')+'"]'}function o(b){for(var c=0;_>c&&b.ch
eck_();)c++;return O&&(a.dirtyCheckCycleCount=c),c>0}function p(a){for(var b in
a)return!1;return!0}function q(a){return p(a.added)&&p(a.removed)&&p(a.changed)}
function r(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.length=a.length),{added:c,remo
ved:d,changed:e}}function s(){if(!ab.length)return!1;for(var a=0;a<ab.length;a++
)ab[a]();return ab.length=0,!0}function t(){function a(a){b&&b.state_===fb&&!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),cb.
push(this)}}}function u(a,b,c){var d=cb.pop()||t();return d.open(a),d.observe(b,
c),d}function v(){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)r
eturn!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)d=g[e],d.s
tate_==fb&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d.state_==fb&&
d.check_()}}var d,e,f=0,g=[],h=[],i={objects:h,get rootObject(){return d},set ro
otObject(a){d=a,e={}},open:function(b){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),x
.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,db.push(this),$===thi
s&&($=null)}}};return i}function w(a,b){return $&&$.rootObject===b||($=db.pop()|
|v(),$.rootObject=b),$.open(a,b),$}function x(){this.state_=eb,this.callback_=vo
id 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_
=ib++}function y(a){x._allObserversCount++,kb&&jb.push(a)}function z(){x._allObs
erversCount--}function A(a){x.call(this),this.value_=a,this.oldObject_=void 0}fu
nction B(a){if(!Array.isArray(a))throw Error("Provided object is not an Array");
A.call(this,a)}function C(a,b){x.call(this),this.object_=a,this.path_=m(b),this.
directObserver_=void 0}function D(a){x.call(this),this.reportChangesOnOpen_=a,th
is.value_=[],this.directObserver_=void 0,this.observed_=[]}function E(a){return
a}function F(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_=void
0,this.observable_=a,this.getValueFn_=b||E,this.setValueFn_=c||E,this.dontPassT
hroughSet_=d}function G(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b[f];
nb[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&("add"!=g.type
?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete
e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),c
onsole.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};fo
r(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 H(a,b,c){return{index:a,removed:b,addedCount:c}}fu
nction I(){}function J(a,b,c,d,e,f){return sb.calcSplices(a,b,c,d,e,f)}function
K(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
L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index
+=g,!f){var j=K(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount);i
f(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.added
Count-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c=i.re
moved;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.prototy
pe.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e
.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)}e.r
emoved=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 M(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.
type){case"splice":L(c,g.index,g.removed.slice(),g.addedCount);break;case"add":c
ase"update":case"delete":if(!d(g.name))continue;var h=e(g.name);if(0>h)continue;
L(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: "+JSO
N.stringify(g))}}return c}function N(a,b){var c=[];return M(a,b).forEach(functio
n(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.index]&
&c.push(b)):void(c=c.concat(J(a,b.index,b.index+b.addedCount,b.removed,0,b.remov
ed.length)))}),c}var O=a.testingExposeCycleCount,P=b(),Q=c(),R=a.Number.isNaN||f
unction(b){return"number"==typeof b&&a.isNaN(b)},S="__proto__"in{}?function(a){r
eturn a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);ret
urn Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,
Object.getOwnPropertyDescriptor(a,b))}),c},T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]",V=ne
w RegExp("^"+T+"+"+U+"*$"),W={beforePath:{ws:["beforePath"],ident:["inIdent","ap
pend"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["befo
reIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent
"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent",
"append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","p
ush"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:[
"beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSi
ngleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["after
Element","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:[
"inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'
":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuot
e:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterEl
ement:{ws:["afterElement"],"]":["inPath","push"]}},X={},Y={};l.get=m,l.prototype
=S({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<this.length;b++
){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}return a},getValueFrom:function(a){for(va
r 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]]),!f(a))retur
n;b(a,this[c])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if (obj
!= null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\
n "+b+" != null";a+=")\n";var c=this[d];return b+=k(c)?"."+c:n(c),a+=" retu
rn "+b+";\nelse\n return undefined;",new Function("obj",a)},setValueFrom:functi
on(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))retur
n!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var Z=new l("",X);Z.valid=!
1,Z.getValueFrom=Z.setValueFrom=function(){};var $,_=1e3,ab=[],bb=P?function(){r
eturn function(a){return Promise.resolve().then(a)}}():function(){return functio
n(a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,hb=3,ib=1;x.prototype={open:funct
ion(a,b){if(this.state_!=eb)throw Error("Observer has already been opened.");ret
urn y(this),this.callback_=a,this.target_=b,this.connect_(),this.state_=fb,this.
value_},close:function(){this.state_==fb&&(z(this),this.disconnect_(),this.value
_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=gb)},deliver:func
tion(){this.state_==fb&&o(this)},report_:function(a){try{this.callback_.apply(th
is.target_,a)}catch(b){x._errorThrownDuringCallback=!0,console.error("Exception
caught during observer callback: "+(b.stack||b))}},discardChanges:function(){ret
urn this.check_(void 0,!0),this.value_}};var jb,kb=!P;x._allObserversCount=0,kb&
&(jb=[]);var lb=!1;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoi
nt=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{d++,c=jb,jb=[],b=!1;for(var e=0;e
<c.length;e++){var f=c[e];f.state_==fb&&(f.check_()&&(b=!0),jb.push(f))}s()&&(b=
!0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d),lb=!1}},kb&&(a.Platform.clearObs
ervers=function(){jb=[]}),A.prototype=S({__proto__:x.prototype,arrayObserve:!1,c
onnect_:function(){P?this.directObserver_=u(this,this.value_,this.arrayObserve):
this.oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array
.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.
length),b},check_:function(a){var b,c;if(P){if(!a)return!1;c={},b=G(this.value_,
a,c)}else c=this.oldObject_,b=r(this.value_,this.oldObject_);return q(b)?!1:(P||
(this.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.remov
ed||{},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){P?(t
his.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0}
,deliver:function(){this.state_==fb&&(P?this.directObserver_.deliver(!1):o(this)
)},discardChanges:function(){return this.directObserver_?this.directObserver_.de
liver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),B.prototyp
e=S({__proto__:A.prototype,arrayObserve:!0,copyObject:function(a){return a.slice
()},check_:function(a){var b;if(P){if(!a)return!1;b=N(this.value_,a)}else b=J(th
is.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return
b&&b.length?(P||(this.oldObject_=this.copyObject(this.value_)),this.report_([b])
,!0):!1}}),B.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.ind
ex,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.pr
ototype.splice.apply(a,d)})},C.prototype=S({__proto__:x.prototype,get path(){ret
urn this.path_},connect_:function(){P&&(this.directObserver_=w(this,this.object_
)),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.direct
Observer_&&(this.directObserver_.close(this),this.directObserver_=void 0)},itera
teObjects_:function(a){this.path_.iterateObjects(this.object_,a)},check_:functio
n(a,b){var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_
),b||g(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},setValue:funct
ion(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var mb={};D.protot
ype=S({__proto__:x.prototype,connect_:function(){if(P){for(var a,b=!1,c=0;c<this
.observed_.length;c+=2)if(a=this.observed_[c],a!==mb){b=!0;break}b&&(this.direct
Observer_=w(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_
:function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===mb&&thi
s.observed_[a+1].close();this.observed_.length=0,this.value_.length=0,this.direc
tObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addP
ath:function(a,b){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add pa
ths once started.");var b=m(b);if(this.observed_.push(a,b),this.reportChangesOnO
pen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObse
rver:function(a){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add obs
ervers once started.");if(this.observed_.push(mb,a),this.reportChangesOnOpen_){v
ar b=this.observed_.length/2-1;this.value_[b]=a.open(this.deliver,this)}},startR
eset:function(){if(this.state_!=fb)throw Error("Can only reset while open");this
.state_=hb,this.disconnect_()},finishReset:function(){if(this.state_!=hb)throw E
rror("Can only finishReset after startReset");return this.state_=fb,this.connect
_(),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.leng
th;c+=2)b=this.observed_[c],b!==mb&&this.observed_[c+1].iterateObjects(b,a)},che
ck_:function(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.obser
ved_[d],h=this.observed_[d+1];if(f===mb){var i=h;e=this.state_===eb?i.open(this.
deliver,this):i.discardChanges()}else e=h.getValueFrom(f);b?this.value_[d/2]=e:g
(e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=e)}retur
n c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),F.prototype={open:fu
nction(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValueFn_(
this.observable_.open(this.observedCallback_,this)),this.value_},observedCallbac
k_:function(a){if(a=this.getValueFn_(a),!g(a,this.value_)){var b=this.value_;thi
s.value_=a,this.callback_.call(this.target_,this.value_,b)}},discardChanges:func
tion(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),th
is.value_},deliver:function(){return this.observable_.deliver()},setValue:functi
on(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observable_.s
etValue?this.observable_.setValue(a):void 0},close:function(){this.observable_&&
this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observab
le_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};
var nb={add:!0,update:!0,"delete":!0},ob=0,pb=1,qb=2,rb=3;I.prototype={calcEditD
istances: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{v
ar l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}return i},spliceOperationsFromEdi
tDistances: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(ob):(e.push(pb),d=g),b--,c--):f==h?(e.push(rb),b--,d=h
):(e.push(qb),c--,d=i)}else e.push(rb),b--;else e.push(qb),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.sharedSuffi
x(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=H(b,[
],0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[H(b,[],c-b)];for(var k
=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=v
oid 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case ob:j&&(l.push(j),j=void
0),m++,n++;break;case pb:j||(j=H(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]
),n++;break;case qb:j||(j=H(m,[],0)),j.addedCount++,m++;break;case rb:j||(j=H(m,
[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a,b
,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSuff
ix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[-
-e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0,a
.length,b,0,b.length)},equals:function(a,b){return a===b}};var sb=new I,tb=a;"un
defined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&module.
exports&&(exports=module.exports),tb=exports),tb.Observer=x,tb.Observer.runEOM_=
bb,tb.Observer.observerSentinel_=mb,tb.Observer.hasObjectObserve=P,tb.ArrayObser
ver=B,tb.ArrayObserver.calculateSplices=function(a,b){return sb.calculateSplices
(a,b)},tb.ArraySplice=I,tb.ObjectObserver=A,tb.PathObserver=C,tb.CompoundObserve
r=D,tb.Path=l,tb.ObserverTransform=F}("undefined"!=typeof global&&global&&"undef
ined"!=typeof module&&module?global:this||window),function(){"use strict";functi
on a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.getElementB
yId?a:null}function b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]
&&c[b].close(),d[b]=c}function c(a,b,c){return c}function d(a){return null==a?""
:a}function e(a,b){a.data=d(b)}function f(a){return function(b){return e(a,b)}}f
unction g(a,b,c,e){return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):vo
id a.setAttribute(b,d(e))}function h(a,b,c){return function(d){g(a,b,c,d)}}funct
ion i(a){switch(a.type){case"checkbox":return u;case"radio":case"select-multiple
":case"select-one":return"change";case"range":if(/Trident|MSIE/.test(navigator.u
serAgent))return"change";default:return"input"}}function j(a,b,c,e){a[b]=(e||d)(
c)}function k(a,b,c){return function(d){return j(a,b,d,c)}}function l(){}functio
n m(a,b,c,d){function e(){var e="value"==b&&"number"==a.type;c.setValue(e?a.valu
eAsNumber:a[b]),c.discardChanges(),(d||l)(a),Platform.performMicrotaskCheckpoint
()}var f=i(a);return a.addEventListener(f,e),{close:function(){a.removeEventList
ener(f,e),c.close()},observable_:c}}function n(a){return Boolean(a)}function o(b
){if(b.form)return s(b.form.elements,function(a){return a!=b&&"INPUT"==a.tagName
&&"radio"==a.type&&a.name==b.name});var c=a(b);if(!c)return[];var d=c.querySelec
torAll('input[type="radio"][name="'+b.name+'"]');return s(d,function(a){return a
!=b&&!a.form})}function p(a){"INPUT"===a.tagName&&"radio"===a.type&&o(a).forEach
(function(a){var b=a.bindings_.checked;b&&b.observable_.setValue(!1)})}function
q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelectElement&&g.bindings_&&g.b
indings_.value&&(c=g,e=c.bindings_.value,f=c.value),a.value=d(b),c&&c.value!=f&&
(e.observable_.setValue(c.value),e.observable_.discardChanges(),Platform.perform
MicrotaskCheckpoint())}function r(a){return function(b){q(a,b)}}var s=Array.prot
otype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=function(a,b)
{console.error("Unhandled binding to Node: ",this,a,b)},Node.prototype.bindFinis
hed=function(){};var t=c;Object.defineProperty(Platform,"enableBindingsReflectio
n",{get:function(){return t===b},set:function(a){return t=a?b:c,a},configurable:
!0}),Text.prototype.bind=function(a,b,c){if("textContent"!==a)return Node.protot
ype.bind.call(this,a,b,c);if(c)return e(this,b);var d=b;return e(this,d.open(f(t
his))),t(this,a,d)},Element.prototype.bind=function(a,b,c){var d="?"==a[a.length
-1];if(d&&(this.removeAttribute(a),a=a.slice(0,-1)),c)return g(this,a,d,b);var e
=b;return g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};var u;!function(){var a=d
ocument.createElement("div"),b=a.appendChild(document.createElement("input"));b.
setAttribute("type","checkbox");var c,d=0;b.addEventListener("click",function(){
d++,c=c||"click"}),b.addEventListener("change",function(){d++,c=c||"change"});va
r 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}(),HTMLInputElem
ent.prototype.bind=function(a,c,e){if("value"!==a&&"checked"!==a)return HTMLElem
ent.prototype.bind.call(this,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=f
unction(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,"v
alue",e);return j(this,"value",e.open(k(this,"value",d))),t(this,a,f)},HTMLOptio
nElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.protot
ype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return q(this,b);va
r d=b,e=m(this,"value",d); |
14 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.repe
at||(d.bind=s("{{}}",H,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NOD
E)return y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b
);if(c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.ap
pendChild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.chi
ldren[i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.s
etDelegate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var
d=0,e=a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(
a){var b=a.id_;return b||(b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=
b.bindingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var
d=a.bindingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this
.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.itera
tedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var F,G=Array.pro
totype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a.Ma
p.prototype.forEach?F=a.Map:(F=function(){this.keys=[],this.values=[]},F.prototy
pe={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.val
ues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(!(0
>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);retur
n 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=fun
ction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains(a
)});var H="bind",I="repeat",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0,"if":
!0},L={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!
0,OPTION:!0,OPTGROUP:!0},M="undefined"!=typeof HTMLTemplateElement;M&&!function(
){var a=document.createElement("template"),b=a.content.ownerDocument,c=b.appendC
hild(b.createElement("html")),d=c.appendChild(b.createElement("head")),e=b.creat
eElement("base");e.href=document.baseURI,d.appendChild(e)}();var N="template, "+
Object.keys(L).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");
document.addEventListener("DOMContentLoaded",function(){j(document),Platform.per
formMicrotaskCheckpoint()},!1),M||(a.HTMLTemplateElement=function(){throw TypeEr
ror("Illegal constructor")});var O,P="__proto__"in{};"function"==typeof Mutation
Observer&&(O=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].ta
rget.refChanged_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIs
Decorated_)return!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.
templateIsDecorated_=!0,h=M)),!h){q(d);var r=l(d);d.content_=r.createDocumentFra
gment()}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateEle
ment.bootstrap=j;var Q=a.HTMLUnknownElement||HTMLElement,R={get:function(){retur
n this.content_},enumerable:!0,configurable:!0};M||(HTMLTemplateElement.prototyp
e=Object.create(Q.prototype),Object.defineProperty(HTMLTemplateElement.prototype
,"content",R)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a
)return Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function
(a){d.setAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),
this.refChanged_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_=
{ref:b},b)},processBindingDirectives_:function(a){return this.iterator_&&this.it
erator_.closeDeps(),a["if"]||a.bind||a.repeat?(this.iterator_||(this.iterator_=n
ew E(this)),this.iterator_.updateDependencies(a,this.model_),O&&O.observe(this,{
attributes:!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(th
is.iterator_.close(),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.protoCon
tent_=d,g.bindings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNo
de: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.template
Instance_=h,j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.la
stChild,g.templateCreator_=void 0,g.protoContent_=void 0,g},get model(){return t
his.model_},set model(a){this.model_=a,r(this)},get bindingDelegate(){return thi
s.delegate_&&this.delegate_.raw},refChanged_:function(){this.iterator_&&this.ref
Content_!==this.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChang
ed(),this.iterator_.updateIteratedValue(this.iterator_.getUpdatedValue()))},clea
r:function(){this.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindi
ngs_.ref&&this.bindings_.ref.close(),this.refContent_=void 0,this.iterator_&&(th
is.iterator_.valueChanged(),this.iterator_.close(),this.iterator_=void 0)},setDe
legate_:function(a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(th
is.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=v
oid 0)},newDelegate_:function(a){function b(b){var c=a&&a[b];if("function"==type
of c)return function(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},r
aw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceM
odel"),prepareInstancePositionChanged:b("prepareInstancePositionChanged")}},set
bindingDelegate(a){if(this.delegate_)throw Error("Template must be cleared befor
e a new bindingDelegate can be assigned");this.setDelegate_(this.newDelegate_(a)
)},get ref_(){var a=d(this,this.getAttribute("ref"));if(a||(a=this.instanceRef_)
,!a)return this;var b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.
prototype,"templateInstance",{get:function(){var a=this.templateInstance_;return
a?a:this.parentNode?this.parentNode.templateInstance:void 0}});var T=document.c
reateDocumentFragment();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=th
is.deps={},d=this.templateElement_,e=!0;if(a["if"]){if(c.hasIf=!0,c.ifOneTime=a[
"if"].onlyOneTime,c.ifValue=v(J,a["if"],d,b),e=c.ifValue,c.ifOneTime&&!e)return
void this.valueChanged();c.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repe
at?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.rep
eat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;retur
n c.oneTime||(f=f.open(this.updateIteratedValue,this)),e?void this.updateValue(f
):void this.valueChanged()},getUpdatedValue:function(){var a=this.deps.value;ret
urn this.deps.oneTime||(a=a.discardChanges()),a},updateIfValue:function(a){retur
n a?void this.updateValue(this.getUpdatedValue()):void this.valueChanged()},upda
teIteratedValue:function(a){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.
deps.ifOneTime||(b=b.discardChanges()),!b)return void this.valueChanged()}this.u
pdateValue(a)},updateValue:function(a){this.deps.repeat||(a=[a]);var b=this.deps
.repeat&&!this.deps.oneTime&&Array.isArray(a);this.valueChanged(a,b)},valueChang
ed:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserv
e(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObserver(this.presentVal
ue),this.arrayObserver.open(this.handleSplices,this)),this.handleSplices(ArrayOb
server.calculateSplices(this.presentValue,this.iteratedValue)))},getLastInstance
Node:function(a){if(-1==a)return this.templateElement_;var b=this.instances[a],c
=b.terminator_;if(!c)return this.getLastInstanceNode(a-1);if(c.nodeType!==Node.E
LEMENT_NODE||this.templateElement_===c)return c;var d=c.iterator_;return d?d.get
LastTemplateNode():c},getLastTemplateNode:function(){return this.getLastInstance
Node(this.instances.length-1)},insertInstanceAt:function(a,b){var c=this.getLast
InstanceNode(a-1),d=this.templateElement_.parentNode;this.instances.splice(a,0,b
),d.insertBefore(b,c.nextSibling)},extractInstanceAt:function(a){for(var b=this.
getLastInstanceNode(a-1),c=this.getLastInstanceNode(a),d=this.templateElement_.p
arentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b
),e.appendChild(d.removeChild(f))}return e},getDelegateFn:function(a){return a=a
&&a(this.templateElement_),"function"==typeof a?a:null},handleSplices:function(a
){if(!this.closed&&a.length){var b=this.templateElement_;if(!b.parentNode)return
void this.close();ArrayObserver.applySplices(this.iteratedValue,this.presentVal
ue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this.instanceModelFn_=t
his.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.instancePositionChan
gedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c&&c.prepareInstance
PositionChanged));for(var d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.rem
oved,i=0;i<h.length;i++){var j=h[i],k=this.extractInstanceAt(g.index+e);k!==T&&d
.set(j,k)}e-=g.addedCount}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<
g.index+g.addedCount;l++){var j=this.iteratedValue[l],k=d.get(j);k?d["delete"](j
):(this.instanceModelFn_&&(j=this.instanceModelFn_(j)),k=void 0===j?T:b.createIn
stance(j,void 0,c)),this.insertInstanceAt(l,k)}d.forEach(function(a){this.closeI
nstanceBindings(a)},this),this.instancePositionChangedFn_&&this.reportInstancesM
oved(a)}},reportInstanceMoved:function(a){var b=this.instances[a];b!==T&&this.in
stancePositionChangedFn_(b.templateInstance_,a)},reportInstancesMoved:function(a
){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.re
portInstanceMoved(b),b++;else b=e.index;for(;b<e.index+e.addedCount;)this.report
InstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for(var f=this.ins
tances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanceBindings:functi
on(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},unobserve:function(
){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=void 0)},cl
ose:function(){if(!this.closed){this.unobserve();for(var a=0;a<this.instances.le
ngth;a++)this.closeInstanceBindings(this.instances[a]);this.instances.length=0,t
his.closeDeps(),this.templateElement_.iterator_=void 0,this.closed=!0}}},HTMLTem
plateElement.forAllTemplatesFrom_=i}(this),function(a){"use strict";function b(a
){return void 0!==m[a]}function c(){h.call(this),this._isInvalid=!0}function d(a
){return""==a&&c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);
return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}f
unction f(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,96].inde
xOf(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._isInva
lid;){var u=a[k];switch(j){case"scheme start":if(!u||!p.test(u)){if(g){i("Invali
d scheme.");break a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";br
eak;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u){if(g){if(o==
u)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=0,j="no schem
e";continue}if(this._scheme=l,l="",g)break a;b(this._scheme)&&(this._isRelative=
!0),j="file"==this._scheme?"relative":this._isRelative&&h&&h._scheme==this._sche
me?"relative or authority":this._isRelative?"authority first slash":"scheme data
"}break;case"scheme data":"?"==u?(query="?",j="query"):"#"==u?(this._fragment="#
",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._schemeData+=e(u));break;c
ase"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"rela
tive":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=h._scheme),o==u
){this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h
._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code point."),j=
"relative slash";else if("?"==u)this._host=h._host,this._port=h._port,this._path
=h._path.slice(),this._query="?",j="query";else{if("#"!=u){var v=a[k+1],w=a[k+2]
;("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=
w&&"#"!=w)&&(this._host=h._host,this._port=h._port,this._path=h._path.slice(),th
is._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._hos
t=h._host,this._port=h._port),j="relative path";continue}"\\"==u&&i("\\ is an in
valid code point."),j="file"==this._scheme?"file host":"authority ignore slashes
";break;case"authority first slash":if("/"!=u){i("Expected '/', got: "+u),j="aut
hority ignore slashes";continue}j="authority second slash";break;case"authority
second slash":if(j="authority ignore slashes","/"!=u){i("Expected '/', got: "+u)
;continue}break;case"authority ignore slashes":if("/"!=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._password){var z=e(y);null!==this.
_password?this._password+=z:this._username+=z}else this._password="";else i("Inv
alid whitespace in authority.")}l=""}else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"=
=u){k-=l.length,l="",j="host";continue}l+=u}break;case"file host":if(o==u||"/"==
u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==
l.length?j="relative path start":(this._host=d.call(this,l),l="",j="relative pat
h start"):j="relative path";continue}" "==u||"\n"==u||"\r"==u?i("Invalid whites
pace in file host."):l+=u;break;case"host":case"hostname":if(":"!=u||s){if(o==u|
|"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=d.call(this,l),l="",j="relative
path start",g)break a;continue}" "!=u&&"\n"!=u&&"\r"!=u?("["==u?s=!0:"]"=
=u&&(s=!1),l+=u):i("Invalid code point in host/hostname: "+u)}else if(this._host
=d.call(this,l),l="",j="port","hostname"==g)break a;break;case"port":if(/[0-9]/.
test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u||g){if(""!=l){var A=p
arseInt(l,10);A!=m[this._scheme]&&(this._port=A+""),l=""}if(g)break a;j="relativ
e 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"relativ
e path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&
(l+=e(u));else{"\\"==u&&i("\\ not allowed in relative path.");var B;(B=n[l.toLow
erCase()])&&(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._q
uery+=f(u)):(this._fragment="#",j="fragment");break;case"fragment":o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}}function h(){this._scheme="",th
is._schemeData="",this._username="",this._password=null,this._host="",this._port
="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRe
lative=!1}function i(a,b){void 0===b||b instanceof i||(b=new i(String(b))),this.
_url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(th
is,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=new URL("b","http://a");k.pathna
me="c%20d",j="http://a/c%20d"===k.href}catch(l){}if(!j){var m=Object.create(null
);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443;var n=Ob
ject.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"]="..";va
r o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){if(this._i
sInvalid)return this._url;var a="";return(""!=this._username||null!=this._passwo
rd)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"),this.pr
otocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query+this._fr
agment},set href(a){h.call(this),g.call(this,a)},get protocol(){return this._sch
eme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme start")},get
host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._hos
t},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host")},get ho
stname(){return this._host},set hostname(a){!this._isInvalid&&this._isRelative&&
g.call(this,a,"hostname")},get port(){return this._port},set port(a){!this._isIn
valid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return this._isIn
valid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathnam
e(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"relative
path start"))},get search(){return this._isInvalid||!this._query||"?"==this._que
ry?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(this._quer
y="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){return this.
_isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){
this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fr
agment"))},get origin(){var a;if(this._isInvalid||!this._scheme)return"";switch(
this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}r
eturn a=this.host,a?this._scheme+"://"+a:""}};var r=a.URL;r&&(i.createObjectURL=
function(){return r.createObjectURL.apply(r,arguments)},i.revokeObjectURL=functi
on(a){r.revokeObjectURL(a)}),a.URL=i}}(this),function(a){function b(a){f.textCon
tent=d++,e.push(a)}function c(){for(;e.length;)e.shift()()}var d=0,e=[],f=docume
nt.createTextNode("");new(window.MutationObserver||JsMutationObserver)(c).observ
e(f,{characterData:!0}),a.endOfMicrotask=b,Platform.endOfMicrotask=b}(Polymer),f
unction(a){function b(){g||(g=!0,c(function(){g=!1,d.data&&console.group("flush"
),Platform.performMicrotaskCheckpoint(),d.data&&console.groupEnd()}))}var c=a.en
dOfMicrotask,d=window.WebComponents?WebComponents.flags.log:{},e=document.create
Element("style");e.textContent="template {display: none !important;} /* injected
by platform.js */";var f=document.querySelector("head");f.insertBefore(e,f.firs
tChild);var g;if(Observer.hasObjectObserve)b=function(){};else{var h=125;window.
addEventListener("WebComponentsReady",function(){b();var c=function(){"hidden"==
=document.visibilityState?a.flushPoll&&clearInterval(a.flushPoll):a.flushPoll=se
tInterval(b,h)};"string"==typeof document.visibilityState&&document.addEventList
ener("visibilitychange",c),c()})}if(window.CustomElements&&!CustomElements.useNa
tive){var i=Document.prototype.importNode;Document.prototype.importNode=function
(a,b){var c=i.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b,Pl
atform.flush=b}(window.Polymer),function(a){function b(a){var b=new URL(a.ownerD
ocument.baseURI);return b.search="",b.hash="",b}function c(a,b,c,e){return a.rep
lace(e,function(a,e,f,g){var h=f.replace(/["']/g,"");return h=d(b,h,c),e+"'"+h+"
'"+g})}function d(a,b,c){if(b&&"/"===b[0])return b;if(b&&"#"===b[0])return b;var
d=new URL(b,a);return c?d.href:e(d.href)}function e(a){var c=b(document.documen
tElement),d=new URL(a,c);return d.host===c.host&&d.port===c.port&&d.protocol===c
.protocol?f(c,d):a}function f(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.le
ngth-1;h>g;g++)f.unshift("..");var i=b.href.slice(-1)===m?m:b.hash;return f.join
("/")+b.search+i}var g={resolveDom:function(a,c){c=c||b(a),this.resolveAttribute
s(a,c),this.resolveStyles(a,c);var d=a.querySelectorAll("template");if(d)for(var
e,f=0,g=d.length;g>f&&(e=d[f]);f++)e.content&&this.resolveDom(e.content,c)},res
olveTemplate:function(a){this.resolveDom(a.content,b(a))},resolveStyles:function
(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[
e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,c){c=c||b(a),a.textConte
nt=this.resolveCssText(a.textContent,c)},resolveCssText:function(a,b,d){return a
=c(a,b,d,h),c(a,b,d,i)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAt
tributes()&&this.resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(k);if
(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)
},resolveElementAttributes:function(a,e){e=e||b(a),j.forEach(function(b){var f,g
=a.attributes[b],i=g&&g.value;i&&i.search(l)<0&&(f="style"===b?c(i,e,!1,h):d(e,i
),g.value=f)})}},h=/(url\()([^)]*)(\))/g,i=/(@import[\s]+(?!url\())([^;]*)(;)/g,
j=["href","src","action","style","url"],k="["+j.join("],[")+"]",l="{{.*}}",m="#"
;a.urlResolver=g}(Polymer),function(a){function b(a){this.cache=Object.create(nu
ll),this.map=Object.create(null),this.requests=0,this.regex=a}var c=Polymer.endO
fMicrotask;b.prototype={extractUrls:function(a,b){for(var c,d,e=[];c=this.regex.
exec(a);)d=new URL(c[1],b),e.push({matched:c[0],url:d.href});return e},process:f
unction(a,b,c){var d=this.extractUrls(a,b),e=c.bind(null,this.map);this.fetch(d,
e)},fetch:function(a,b){var c=a.length;if(!c)return b();for(var d,e,f,g=function
(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url,e=this.cache[f],e||(e=this.xhr(f),e.
match=d,this.cache[f]=e),e.wait(g)},handleXhr:function(a){var b=a.match,c=b.url,
d=a.response||a.responseText||"";this.map[c]=d,this.fetch(this.extractUrls(d,c),
a.resolve)},xhr:function(a){this.requests++;var b=new XMLHttpRequest;return b.op
en("GET",a,!0),b.send(),b.onerror=b.onload=this.handleXhr.bind(this,b),b.pending
=[],b.resolve=function(){for(var a=b.pending,c=0;c<a.length;c++)a[c]();b.pending
=null},b.wait=function(a){b.pending?b.pending.push(a):c(a)},b}},a.Loader=b}(Poly
mer),function(a){function b(){this.loader=new d(this.regex)}var c=a.urlResolver,
d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\)]*;/g,res
olve:function(a,b,c){var d=function(d){c(this.flatten(a,b,d))}.bind(this);this.l
oader.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.resolv
eCssText(d[f],f,!0),g=this.flatten(g,b,d),a=a.replace(e.matched,g);return a},loa
dStyles: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}(P
olymer),function(a){function b(a,b){return a&&b&&Object.getOwnPropertyNames(b).f
orEach(function(c){var d=Object.getOwnPropertyDescriptor(b,c);d&&(Object.defineP
roperty(a,c,d),"function"==typeof d.value&&(d.value.nom=c))}),a}function c(a){fo
r(var b=a||{},c=1;c<arguments.length;c++){var e=arguments[c];try{for(var f in e)
d(f,e,b)}catch(g){}}return b}function d(a,b,c){var d=e(b,a);Object.definePropert
y(c,a,d)}function e(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return
c||e(Object.getPrototypeOf(a),b)}}a.extend=b,a.mixin=c,Platform.mixin=c}(Polyme
r),function(a){function b(a,b,d){return a?a.stop():a=new c(this),a.go(b,d),a}var
c=function(a){this.context=a,this.boundComplete=this.complete.bind(this)};c.pro
totype={go:function(a,b){this.callback=a;var c;b?(c=setTimeout(this.boundComplet
e,b),this.handle=function(){clearTimeout(c)}):(c=requestAnimationFrame(this.boun
dComplete),this.handle=function(){cancelAnimationFrame(c)})},stop:function(){thi
s.handle&&(this.handle(),this.handle=null)},complete:function(){this.handle&&(th
is.stop(),this.callback.call(this.context))}},a.job=b}(Polymer),function(a){func
tion b(a,b,c){var d="string"==typeof a?document.createElement(a):a.cloneNode(!0)
;if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c={};HTML
Element.register=function(a,b){c[a]=b},HTMLElement.getPrototypeForTag=function(a
){var b=a?c[a]:HTMLElement.prototype;return b||Object.getPrototypeOf(document.cr
eateElement(a))};var d=Event.prototype.stopPropagation;Event.prototype.stopPropa
gation=function(){this.cancelBubble=!0,d.apply(this,arguments)};var e=DOMTokenLi
st.prototype.add,f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=func
tion(){for(var a=0;a<arguments.length;a++)e.call(this,arguments[a])},DOMTokenLis
t.prototype.remove=function(){for(var a=0;a<arguments.length;a++)f.call(this,arg
uments[a])},DOMTokenList.prototype.toggle=function(a,b){1==arguments.length&&(b=
!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList.prototype["switch"
]=function(a,b){a&&this.remove(a),b&&this.add(b)};var g=function(){return Array.
prototype.slice.call(this)},h=window.NamedNodeMap||window.MozNamedAttrMap||{};No
deList.prototype.array=g,h.prototype.array=g,HTMLCollection.prototype.array=g,a.
createDOM=b}(Polymer),function(a){function b(a){var e=b.caller,g=e.nom,h=e._supe
r;h||(g||(g=e.nom=c.call(this,e)),g||console.warn("called super() on a method no
t installed declaratively (has no .nom property)"),h=d(e,g,f(this)));var i=h[g];
return i?(i._super||d(i,g,h),i.apply(this,a||[])):void 0}function c(a){for(var b
=this.__proto__;b&&b!==HTMLElement.prototype;){for(var c,d=Object.getOwnProperty
Names(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var g=Object.getOwnPropertyDescriptor
(b,c);if("function"==typeof g.value&&g.value===a)return c}b=b.__proto__}}functio
n d(a,b,c){var d=e(c,b,a);return d[b]&&(d[b].nom=b),a._super=d}function e(a,b,c)
{for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}return Object}function f(a){return a
.__proto__}a["super"]=b}(Polymer),function(a){function b(a){return a}function c(
a,b){var c=typeof b;return b instanceof Date&&(c="date"),d[c](a,b)}var d={string
:b,undefined:b,date:function(a){return new Date(Date.parse(a)||Date.now())},"boo
lean":function(a){return""===a?!0:"false"===a?!1:!!a},number:function(a){var b=p
arseFloat(a);return 0===b&&(b=parseInt(a)),isNaN(b)?a:b},object:function(a,b){if
(null===b)return a;try{return JSON.parse(a.replace(/'/g,'"'))}catch(c){return a}
},"function":function(a,b){return b}};a.deserializeValue=c}(Polymer),function(a)
{var b=a.extend,c={};c.declaration={},c.instance={},c.publish=function(a,c){for(
var d in a)b(c,a[d])},a.api=c}(Polymer),function(a){var b={async:function(a,b,c)
{Polymer.flush(),b=b&&b.length?b:[b];var d=function(){(this[a]||a).apply(this,b)
}.bind(this),e=c?setTimeout(d,c):requestAnimationFrame(d);return c?e:~e},cancelA
sync:function(a){0>a?cancelAnimationFrame(~a):clearTimeout(a)},fire:function(a,b
,c,d,e){var f=c||this,b=null===b||void 0===b?{}:b,g=new CustomEvent(a,{bubbles:v
oid 0!==d?d:!0,cancelable:void 0!==e?e:!0,detail:b});return f.dispatchEvent(g),g
},asyncFire:function(){this.async("fire",arguments)},classFollows:function(a,b,c
){b&&b.classList.remove(c),a&&a.classList.add(c)},injectBoundHTML:function(a,b){
var c=document.createElement("template");c.innerHTML=a;var d=this.instanceTempla
te(c);return b&&(b.textContent="",b.appendChild(d)),d}},c=function(){},d={};b.as
yncMethod=b.async,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){v
ar b=window.WebComponents?WebComponents.flags.log:{},c="on-",d={EVENT_PREFIX:c,a
ddHostListeners:function(){var a=this.eventDelegates; | 14 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.repe
at||(d.bind=s("{{}}",H,a,c))),d}function z(a,b){if(a.nodeType===Node.ELEMENT_NOD
E)return y(a,b);if(a.nodeType===Node.TEXT_NODE){var c=s(a.data,"textContent",a,b
);if(c)return["textContent",c]}return[]}function A(a,b,c,d,e,f,g){for(var h=b.ap
pendChild(c.importNode(a,!1)),i=0,j=a.firstChild;j;j=j.nextSibling)A(j,h,c,d.chi
ldren[i++],e,f,g);return d.isTemplate&&(HTMLTemplateElement.decorate(h,a),f&&h.s
etDelegate_(f)),w(h,d,e,g),h}function B(a,b){var c=z(a,b);c.children={};for(var
d=0,e=a.firstChild;e;e=e.nextSibling)c.children[d++]=B(e,b);return c}function C(
a){var b=a.id_;return b||(b=a.id_=S++),b}function D(a,b){var c=C(a);if(b){var d=
b.bindingMaps[c];return d||(d=b.bindingMaps[c]=B(a,b.prepareBinding)||[]),d}var
d=a.bindingMap_;return d||(d=a.bindingMap_=B(a,void 0)||[]),d}function E(a){this
.closed=!1,this.templateElement_=a,this.instances=[],this.deps=void 0,this.itera
tedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var F,G=Array.pro
totype.forEach.call.bind(Array.prototype.forEach);a.Map&&"function"==typeof a.Ma
p.prototype.forEach?F=a.Map:(F=function(){this.keys=[],this.values=[]},F.prototy
pe={set:function(a,b){var c=this.keys.indexOf(a);0>c?(this.keys.push(a),this.val
ues.push(b)):this.values[c]=b},get:function(a){var b=this.keys.indexOf(a);if(!(0
>b))return this.values[b]},"delete":function(a){var b=this.keys.indexOf(a);retur
n 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=fun
ction(a){return a===this||a.parentNode===this?!0:this.documentElement.contains(a
)});var H="bind",I="repeat",J="if",K={template:!0,repeat:!0,bind:!0,ref:!0,"if":
!0},L={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!
0,OPTION:!0,OPTGROUP:!0},M="undefined"!=typeof HTMLTemplateElement;M&&!function(
){var a=document.createElement("template"),b=a.content.ownerDocument,c=b.appendC
hild(b.createElement("html")),d=c.appendChild(b.createElement("head")),e=b.creat
eElement("base");e.href=document.baseURI,d.appendChild(e)}();var N="template, "+
Object.keys(L).map(function(a){return a.toLowerCase()+"[template]"}).join(", ");
document.addEventListener("DOMContentLoaded",function(){j(document),Platform.per
formMicrotaskCheckpoint()},!1),M||(a.HTMLTemplateElement=function(){throw TypeEr
ror("Illegal constructor")});var O,P="__proto__"in{};"function"==typeof Mutation
Observer&&(O=new MutationObserver(function(a){for(var b=0;b<a.length;b++)a[b].ta
rget.refChanged_()})),HTMLTemplateElement.decorate=function(a,c){if(a.templateIs
Decorated_)return!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.
templateIsDecorated_=!0,h=M)),!h){q(d);var r=l(d);d.content_=r.createDocumentFra
gment()}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.content),!0},HTMLTemplateEle
ment.bootstrap=j;var Q=a.HTMLUnknownElement||HTMLElement,R={get:function(){retur
n this.content_},enumerable:!0,configurable:!0};M||(HTMLTemplateElement.prototyp
e=Object.create(Q.prototype),Object.defineProperty(HTMLTemplateElement.prototype
,"content",R)),k(HTMLTemplateElement.prototype,{bind:function(a,b,c){if("ref"!=a
)return Element.prototype.bind.call(this,a,b,c);var d=this,e=c?b:b.open(function
(a){d.setAttribute("ref",a),d.refChanged_()});return this.setAttribute("ref",e),
this.refChanged_(),c?void 0:(this.bindings_?this.bindings_.ref=b:this.bindings_=
{ref:b},b)},processBindingDirectives_:function(a){return this.iterator_&&this.it
erator_.closeDeps(),a["if"]||a.bind||a.repeat?(this.iterator_||(this.iterator_=n
ew E(this)),this.iterator_.updateDependencies(a,this.model_),O&&O.observe(this,{
attributes:!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(th
is.iterator_.close(),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.protoCon
tent_=d,g.bindings_=[],g.terminator_=null;for(var h=g.templateInstance_={firstNo
de: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.template
Instance_=h,j&&(g.terminator_=l)}return h.firstNode=g.firstChild,h.lastNode=g.la
stChild,g.templateCreator_=void 0,g.protoContent_=void 0,g},get model(){return t
his.model_},set model(a){this.model_=a,r(this)},get bindingDelegate(){return thi
s.delegate_&&this.delegate_.raw},refChanged_:function(){this.iterator_&&this.ref
Content_!==this.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChang
ed(),this.iterator_.updateIteratedValue(this.iterator_.getUpdatedValue()))},clea
r:function(){this.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindi
ngs_.ref&&this.bindings_.ref.close(),this.refContent_=void 0,this.iterator_&&(th
is.iterator_.valueChanged(),this.iterator_.close(),this.iterator_=void 0)},setDe
legate_:function(a){this.delegate_=a,this.bindingMap_=void 0,this.iterator_&&(th
is.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=v
oid 0)},newDelegate_:function(a){function b(b){var c=a&&a[b];if("function"==type
of c)return function(){return c.apply(a,arguments)}}if(a)return{bindingMaps:{},r
aw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel:b("prepareInstanceM
odel"),prepareInstancePositionChanged:b("prepareInstancePositionChanged")}},set
bindingDelegate(a){if(this.delegate_)throw Error("Template must be cleared befor
e a new bindingDelegate can be assigned");this.setDelegate_(this.newDelegate_(a)
)},get ref_(){var a=d(this,this.getAttribute("ref"));if(a||(a=this.instanceRef_)
,!a)return this;var b=a.ref_;return b?b:a}});var S=1;Object.defineProperty(Node.
prototype,"templateInstance",{get:function(){var a=this.templateInstance_;return
a?a:this.parentNode?this.parentNode.templateInstance:void 0}});var T=document.c
reateDocumentFragment();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=th
is.deps={},d=this.templateElement_,e=!0;if(a["if"]){if(c.hasIf=!0,c.ifOneTime=a[
"if"].onlyOneTime,c.ifValue=v(J,a["if"],d,b),e=c.ifValue,c.ifOneTime&&!e)return
void this.valueChanged();c.ifOneTime||(e=e.open(this.updateIfValue,this))}a.repe
at?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(I,a.repeat,d,b)):(c.rep
eat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,a.bind,d,b));var f=c.value;retur
n c.oneTime||(f=f.open(this.updateIteratedValue,this)),e?void this.updateValue(f
):void this.valueChanged()},getUpdatedValue:function(){var a=this.deps.value;ret
urn this.deps.oneTime||(a=a.discardChanges()),a},updateIfValue:function(a){retur
n a?void this.updateValue(this.getUpdatedValue()):void this.valueChanged()},upda
teIteratedValue:function(a){if(this.deps.hasIf){var b=this.deps.ifValue;if(this.
deps.ifOneTime||(b=b.discardChanges()),!b)return void this.valueChanged()}this.u
pdateValue(a)},updateValue:function(a){this.deps.repeat||(a=[a]);var b=this.deps
.repeat&&!this.deps.oneTime&&Array.isArray(a);this.valueChanged(a,b)},valueChang
ed:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedValue&&(this.unobserv
e(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObserver(this.presentVal
ue),this.arrayObserver.open(this.handleSplices,this)),this.handleSplices(ArrayOb
server.calculateSplices(this.presentValue,this.iteratedValue)))},getLastInstance
Node:function(a){if(-1==a)return this.templateElement_;var b=this.instances[a],c
=b.terminator_;if(!c)return this.getLastInstanceNode(a-1);if(c.nodeType!==Node.E
LEMENT_NODE||this.templateElement_===c)return c;var d=c.iterator_;return d?d.get
LastTemplateNode():c},getLastTemplateNode:function(){return this.getLastInstance
Node(this.instances.length-1)},insertInstanceAt:function(a,b){var c=this.getLast
InstanceNode(a-1),d=this.templateElement_.parentNode;this.instances.splice(a,0,b
),d.insertBefore(b,c.nextSibling)},extractInstanceAt:function(a){for(var b=this.
getLastInstanceNode(a-1),c=this.getLastInstanceNode(a),d=this.templateElement_.p
arentNode,e=this.instances.splice(a,1)[0];c!==b;){var f=b.nextSibling;f==c&&(c=b
),e.appendChild(d.removeChild(f))}return e},getDelegateFn:function(a){return a=a
&&a(this.templateElement_),"function"==typeof a?a:null},handleSplices:function(a
){if(!this.closed&&a.length){var b=this.templateElement_;if(!b.parentNode)return
void this.close();ArrayObserver.applySplices(this.iteratedValue,this.presentVal
ue,a);var c=b.delegate_;void 0===this.instanceModelFn_&&(this.instanceModelFn_=t
his.getDelegateFn(c&&c.prepareInstanceModel)),void 0===this.instancePositionChan
gedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(c&&c.prepareInstance
PositionChanged));for(var d=new F,e=0,f=0;f<a.length;f++){for(var g=a[f],h=g.rem
oved,i=0;i<h.length;i++){var j=h[i],k=this.extractInstanceAt(g.index+e);k!==T&&d
.set(j,k)}e-=g.addedCount}for(var f=0;f<a.length;f++)for(var g=a[f],l=g.index;l<
g.index+g.addedCount;l++){var j=this.iteratedValue[l],k=d.get(j);k?d["delete"](j
):(this.instanceModelFn_&&(j=this.instanceModelFn_(j)),k=void 0===j?T:b.createIn
stance(j,void 0,c)),this.insertInstanceAt(l,k)}d.forEach(function(a){this.closeI
nstanceBindings(a)},this),this.instancePositionChangedFn_&&this.reportInstancesM
oved(a)}},reportInstanceMoved:function(a){var b=this.instances[a];b!==T&&this.in
stancePositionChangedFn_(b.templateInstance_,a)},reportInstancesMoved:function(a
){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.re
portInstanceMoved(b),b++;else b=e.index;for(;b<e.index+e.addedCount;)this.report
InstanceMoved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for(var f=this.ins
tances.length;f>b;)this.reportInstanceMoved(b),b++},closeInstanceBindings:functi
on(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c].close()},unobserve:function(
){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=void 0)},cl
ose:function(){if(!this.closed){this.unobserve();for(var a=0;a<this.instances.le
ngth;a++)this.closeInstanceBindings(this.instances[a]);this.instances.length=0,t
his.closeDeps(),this.templateElement_.iterator_=void 0,this.closed=!0}}},HTMLTem
plateElement.forAllTemplatesFrom_=i}(this),function(a){"use strict";function b(a
){return void 0!==m[a]}function c(){h.call(this),this._isInvalid=!0}function d(a
){return""==a&&c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);
return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}f
unction f(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,96].inde
xOf(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._isInva
lid;){var u=a[k];switch(j){case"scheme start":if(!u||!p.test(u)){if(g){i("Invali
d scheme.");break a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";br
eak;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u){if(g){if(o==
u)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=0,j="no schem
e";continue}if(this._scheme=l,l="",g)break a;b(this._scheme)&&(this._isRelative=
!0),j="file"==this._scheme?"relative":this._isRelative&&h&&h._scheme==this._sche
me?"relative or authority":this._isRelative?"authority first slash":"scheme data
"}break;case"scheme data":"?"==u?(query="?",j="query"):"#"==u?(this._fragment="#
",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._schemeData+=e(u));break;c
ase"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"rela
tive":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=h._scheme),o==u
){this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h
._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code point."),j=
"relative slash";else if("?"==u)this._host=h._host,this._port=h._port,this._path
=h._path.slice(),this._query="?",j="query";else{if("#"!=u){var v=a[k+1],w=a[k+2]
;("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=
w&&"#"!=w)&&(this._host=h._host,this._port=h._port,this._path=h._path.slice(),th
is._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._hos
t=h._host,this._port=h._port),j="relative path";continue}"\\"==u&&i("\\ is an in
valid code point."),j="file"==this._scheme?"file host":"authority ignore slashes
";break;case"authority first slash":if("/"!=u){i("Expected '/', got: "+u),j="aut
hority ignore slashes";continue}j="authority second slash";break;case"authority
second slash":if(j="authority ignore slashes","/"!=u){i("Expected '/', got: "+u)
;continue}break;case"authority ignore slashes":if("/"!=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._password){var z=e(y);null!==this.
_password?this._password+=z:this._username+=z}else this._password="";else i("Inv
alid whitespace in authority.")}l=""}else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"=
=u){k-=l.length,l="",j="host";continue}l+=u}break;case"file host":if(o==u||"/"==
u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==
l.length?j="relative path start":(this._host=d.call(this,l),l="",j="relative pat
h start"):j="relative path";continue}" "==u||"\n"==u||"\r"==u?i("Invalid whites
pace in file host."):l+=u;break;case"host":case"hostname":if(":"!=u||s){if(o==u|
|"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=d.call(this,l),l="",j="relative
path start",g)break a;continue}" "!=u&&"\n"!=u&&"\r"!=u?("["==u?s=!0:"]"=
=u&&(s=!1),l+=u):i("Invalid code point in host/hostname: "+u)}else if(this._host
=d.call(this,l),l="",j="port","hostname"==g)break a;break;case"port":if(/[0-9]/.
test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u||g){if(""!=l){var A=p
arseInt(l,10);A!=m[this._scheme]&&(this._port=A+""),l=""}if(g)break a;j="relativ
e 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"relativ
e path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&
(l+=e(u));else{"\\"==u&&i("\\ not allowed in relative path.");var B;(B=n[l.toLow
erCase()])&&(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._q
uery+=f(u)):(this._fragment="#",j="fragment");break;case"fragment":o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}}function h(){this._scheme="",th
is._schemeData="",this._username="",this._password=null,this._host="",this._port
="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRe
lative=!1}function i(a,b){void 0===b||b instanceof i||(b=new i(String(b))),this.
_url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(th
is,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=new URL("b","http://a");k.pathna
me="c%20d",j="http://a/c%20d"===k.href}catch(l){}if(!j){var m=Object.create(null
);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443;var n=Ob
ject.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"]="..";va
r o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){if(this._i
sInvalid)return this._url;var a="";return(""!=this._username||null!=this._passwo
rd)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"),this.pr
otocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query+this._fr
agment},set href(a){h.call(this),g.call(this,a)},get protocol(){return this._sch
eme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme start")},get
host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._hos
t},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host")},get ho
stname(){return this._host},set hostname(a){!this._isInvalid&&this._isRelative&&
g.call(this,a,"hostname")},get port(){return this._port},set port(a){!this._isIn
valid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return this._isIn
valid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathnam
e(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"relative
path start"))},get search(){return this._isInvalid||!this._query||"?"==this._que
ry?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(this._quer
y="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){return this.
_isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){
this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fr
agment"))},get origin(){var a;if(this._isInvalid||!this._scheme)return"";switch(
this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}r
eturn a=this.host,a?this._scheme+"://"+a:""}};var r=a.URL;r&&(i.createObjectURL=
function(){return r.createObjectURL.apply(r,arguments)},i.revokeObjectURL=functi
on(a){r.revokeObjectURL(a)}),a.URL=i}}(this),function(a){function b(a){f.textCon
tent=d++,e.push(a)}function c(){for(;e.length;)e.shift()()}var d=0,e=[],f=docume
nt.createTextNode("");new(window.MutationObserver||JsMutationObserver)(c).observ
e(f,{characterData:!0}),a.endOfMicrotask=b,Platform.endOfMicrotask=b}(Polymer),f
unction(a){function b(){g||(g=!0,c(function(){g=!1,d.data&&console.group("flush"
),Platform.performMicrotaskCheckpoint(),d.data&&console.groupEnd()}))}var c=a.en
dOfMicrotask,d=window.WebComponents?WebComponents.flags.log:{},e=document.create
Element("style");e.textContent="template {display: none !important;} /* injected
by platform.js */";var f=document.querySelector("head");f.insertBefore(e,f.firs
tChild);var g;if(Observer.hasObjectObserve)b=function(){};else{var h=125;window.
addEventListener("WebComponentsReady",function(){b();var c=function(){"hidden"==
=document.visibilityState?a.flushPoll&&clearInterval(a.flushPoll):a.flushPoll=se
tInterval(b,h)};"string"==typeof document.visibilityState&&document.addEventList
ener("visibilitychange",c),c()})}if(window.CustomElements&&!CustomElements.useNa
tive){var i=Document.prototype.importNode;Document.prototype.importNode=function
(a,b){var c=i.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.flush=b,Pl
atform.flush=b}(window.Polymer),function(a){function b(a){var b=new URL(a.ownerD
ocument.baseURI);return b.search="",b.hash="",b}function c(a,b,c,e){return a.rep
lace(e,function(a,e,f,g){var h=f.replace(/["']/g,"");return h=d(b,h,c),e+"'"+h+"
'"+g})}function d(a,b,c){if(b&&"/"===b[0])return b;if(b&&"#"===b[0])return b;var
d=new URL(b,a);return c?d.href:e(d.href)}function e(a){var c=b(document.documen
tElement),d=new URL(a,c);return d.host===c.host&&d.port===c.port&&d.protocol===c
.protocol?f(c,d):a}function f(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.le
ngth-1;h>g;g++)f.unshift("..");var i=b.href.slice(-1)===m?m:b.hash;return f.join
("/")+b.search+i}var g={resolveDom:function(a,c){c=c||b(a),this.resolveAttribute
s(a,c),this.resolveStyles(a,c);var d=a.querySelectorAll("template");if(d)for(var
e,f=0,g=d.length;g>f&&(e=d[f]);f++)e.content&&this.resolveDom(e.content,c)},res
olveTemplate:function(a){this.resolveDom(a.content,b(a))},resolveStyles:function
(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[
e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,c){c=c||b(a),a.textConte
nt=this.resolveCssText(a.textContent,c)},resolveCssText:function(a,b,d){return a
=c(a,b,d,h),c(a,b,d,i)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAt
tributes()&&this.resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(k);if
(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)
},resolveElementAttributes:function(a,e){e=e||b(a),j.forEach(function(b){var f,g
=a.attributes[b],i=g&&g.value;i&&i.search(l)<0&&(f="style"===b?c(i,e,!1,h):d(e,i
),g.value=f)})}},h=/(url\()([^)]*)(\))/g,i=/(@import[\s]+(?!url\())([^;]*)(;)/g,
j=["href","src","action","style","url"],k="["+j.join("],[")+"]",l="{{.*}}",m="#"
;a.urlResolver=g}(Polymer),function(a){function b(a){this.cache=Object.create(nu
ll),this.map=Object.create(null),this.requests=0,this.regex=a}var c=Polymer.endO
fMicrotask;b.prototype={extractUrls:function(a,b){for(var c,d,e=[];c=this.regex.
exec(a);)d=new URL(c[1],b),e.push({matched:c[0],url:d.href});return e},process:f
unction(a,b,c){var d=this.extractUrls(a,b),e=c.bind(null,this.map);this.fetch(d,
e)},fetch:function(a,b){var c=a.length;if(!c)return b();for(var d,e,f,g=function
(){0===--c&&b()},h=0;c>h;h++)d=a[h],f=d.url,e=this.cache[f],e||(e=this.xhr(f),e.
match=d,this.cache[f]=e),e.wait(g)},handleXhr:function(a){var b=a.match,c=b.url,
d=a.response||a.responseText||"";this.map[c]=d,this.fetch(this.extractUrls(d,c),
a.resolve)},xhr:function(a){this.requests++;var b=new XMLHttpRequest;return b.op
en("GET",a,!0),b.send(),b.onerror=b.onload=this.handleXhr.bind(this,b),b.pending
=[],b.resolve=function(){for(var a=b.pending,c=0;c<a.length;c++)a[c]();b.pending
=null},b.wait=function(a){b.pending?b.pending.push(a):c(a)},b}},a.Loader=b}(Poly
mer),function(a){function b(){this.loader=new d(this.regex)}var c=a.urlResolver,
d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\)]*;/g,res
olve:function(a,b,c){var d=function(d){c(this.flatten(a,b,d))}.bind(this);this.l
oader.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.resolv
eCssText(d[f],f,!0),g=this.flatten(g,b,d),a=a.replace(e.matched,g);return a},loa
dStyles: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}(P
olymer),function(a){function b(a,b){return a&&b&&Object.getOwnPropertyNames(b).f
orEach(function(c){var d=Object.getOwnPropertyDescriptor(b,c);d&&(Object.defineP
roperty(a,c,d),"function"==typeof d.value&&(d.value.nom=c))}),a}function c(a){fo
r(var b=a||{},c=1;c<arguments.length;c++){var e=arguments[c];try{for(var f in e)
d(f,e,b)}catch(g){}}return b}function d(a,b,c){var d=e(b,a);Object.definePropert
y(c,a,d)}function e(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return
c||e(Object.getPrototypeOf(a),b)}}a.extend=b,a.mixin=c,Platform.mixin=c}(Polyme
r),function(a){function b(a,b,d){return a?a.stop():a=new c(this),a.go(b,d),a}var
c=function(a){this.context=a,this.boundComplete=this.complete.bind(this)};c.pro
totype={go:function(a,b){this.callback=a;var c;b?(c=setTimeout(this.boundComplet
e,b),this.handle=function(){clearTimeout(c)}):(c=requestAnimationFrame(this.boun
dComplete),this.handle=function(){cancelAnimationFrame(c)})},stop:function(){thi
s.handle&&(this.handle(),this.handle=null)},complete:function(){this.handle&&(th
is.stop(),this.callback.call(this.context))}},a.job=b}(Polymer),function(a){func
tion b(a,b,c){var d="string"==typeof a?document.createElement(a):a.cloneNode(!0)
;if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c={};HTML
Element.register=function(a,b){c[a]=b},HTMLElement.getPrototypeForTag=function(a
){var b=a?c[a]:HTMLElement.prototype;return b||Object.getPrototypeOf(document.cr
eateElement(a))};var d=Event.prototype.stopPropagation;Event.prototype.stopPropa
gation=function(){this.cancelBubble=!0,d.apply(this,arguments)};var e=DOMTokenLi
st.prototype.add,f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=func
tion(){for(var a=0;a<arguments.length;a++)e.call(this,arguments[a])},DOMTokenLis
t.prototype.remove=function(){for(var a=0;a<arguments.length;a++)f.call(this,arg
uments[a])},DOMTokenList.prototype.toggle=function(a,b){1==arguments.length&&(b=
!this.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList.prototype["switch"
]=function(a,b){a&&this.remove(a),b&&this.add(b)};var g=function(){return Array.
prototype.slice.call(this)},h=window.NamedNodeMap||window.MozNamedAttrMap||{};No
deList.prototype.array=g,h.prototype.array=g,HTMLCollection.prototype.array=g,a.
createDOM=b}(Polymer),function(a){function b(a){var e=b.caller,g=e.nom,h=e._supe
r;h||(g||(g=e.nom=c.call(this,e)),g||console.warn("called super() on a method no
t installed declaratively (has no .nom property)"),h=d(e,g,f(this)));var i=h[g];
return i?(i._super||d(i,g,h),i.apply(this,a||[])):void 0}function c(a){for(var b
=this.__proto__;b&&b!==HTMLElement.prototype;){for(var c,d=Object.getOwnProperty
Names(b),e=0,f=d.length;f>e&&(c=d[e]);e++){var g=Object.getOwnPropertyDescriptor
(b,c);if("function"==typeof g.value&&g.value===a)return c}b=b.__proto__}}functio
n d(a,b,c){var d=e(c,b,a);return d[b]&&(d[b].nom=b),a._super=d}function e(a,b,c)
{for(;a;){if(a[b]!==c&&a[b])return a;a=f(a)}return Object}function f(a){return a
.__proto__}a["super"]=b}(Polymer),function(a){function b(a){return a}function c(
a,b){var c=typeof b;return b instanceof Date&&(c="date"),d[c](a,b)}var d={string
:b,undefined:b,date:function(a){return new Date(Date.parse(a)||Date.now())},"boo
lean":function(a){return""===a?!0:"false"===a?!1:!!a},number:function(a){var b=p
arseFloat(a);return 0===b&&(b=parseInt(a)),isNaN(b)?a:b},object:function(a,b){if
(null===b)return a;try{return JSON.parse(a.replace(/'/g,'"'))}catch(c){return a}
},"function":function(a,b){return b}};a.deserializeValue=c}(Polymer),function(a)
{var b=a.extend,c={};c.declaration={},c.instance={},c.publish=function(a,c){for(
var d in a)b(c,a[d])},a.api=c}(Polymer),function(a){var b={async:function(a,b,c)
{Polymer.flush(),b=b&&b.length?b:[b];var d=function(){(this[a]||a).apply(this,b)
}.bind(this),e=c?setTimeout(d,c):requestAnimationFrame(d);return c?e:~e},cancelA
sync:function(a){0>a?cancelAnimationFrame(~a):clearTimeout(a)},fire:function(a,b
,c,d,e){var f=c||this,b=null===b||void 0===b?{}:b,g=new CustomEvent(a,{bubbles:v
oid 0!==d?d:!0,cancelable:void 0!==e?e:!0,detail:b});return f.dispatchEvent(g),g
},asyncFire:function(){this.async("fire",arguments)},classFollows:function(a,b,c
){b&&b.classList.remove(c),a&&a.classList.add(c)},injectBoundHTML:function(a,b){
var c=document.createElement("template");c.innerHTML=a;var d=this.instanceTempla
te(c);return b&&(b.textContent="",b.appendChild(d)),d}},c=function(){},d={};b.as
yncMethod=b.async,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){v
ar b=window.WebComponents?WebComponents.flags.log:{},c="on-",d={EVENT_PREFIX:c,a
ddHostListeners:function(){var a=this.eventDelegates; |
15 b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.loc
alName,a);for(var c in a){var d=a[c];PolymerGestures.addEventListener(this,c,thi
s.element.getEventHandler(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b
.events&&console.group("[%s] dispatch [%s]",a.localName,c);var e="function"==typ
eof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.events&&console.groupEnd(),Polymer.fl
ush()}}};a.api.instance.events=d,a.addEventListener=function(a,b,c,d){PolymerGes
tures.addEventListener(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){P
olymerGestures.removeEventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={
copyInstanceAttributes:function(){var a=this._instanceAttributes;for(var b in a)
this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:function(){if(th
is._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.
attributeToProperty(a.name,a.value)},attributeToProperty:function(b,c){var b=thi
s.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=th
is[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:fun
ction(a){var b=this._publishLC&&this._publishLC[a];return b},deserializeValue:fu
nction(b,c){return a.deserializeValue(b,c)},serializeValue:function(a,b){return"
boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},refl
ectPropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(th
is[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a
)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a,b){return a==
=b?0!==a||1/a===1/b:f(a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b
&&null===a?b:null===b||void 0===b?a:b}var d=window.WebComponents?WebComponents.f
lags.log:{},e={object:void 0,type:"update",name:void 0,oldValue:void 0},f=Number
.isNaN||function(a){return"number"==typeof a&&isNaN(a)},g={createPropertyObserve
r:function(){var a=this._observeNames;if(a&&a.length){var b=this._propertyObserv
er=new CompoundObserver(!0);this.registerObserver(b);for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.addPath(this,c),this.observeArrayValue(c,this[c],null)}},openP
ropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(t
his.notifyPropertyChanges,this)},notifyPropertyChanges:function(a,b,c){var d,e,f
={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]){var h=b[g],i=a[g];this.obser
veArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||void 0!==i&&null!==i)&&(f[e]=!0
,this.invokeMethod(e,[h,i,arguments]))}},invokeMethod:function(a,b){var c=this[a
]||a;"function"==typeof c&&c.apply(this,b)},deliverChanges:function(){this._prop
ertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(a,b,c
){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.observe&&console.log("[%s] o
bserveArrayValue: unregister observer [%s]",this.localName,a),this.closeNamedObs
erver(a+"__array")),Array.isArray(b))){d.observe&&console.log("[%s] observeArray
Value: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(b);f.
open(function(a){this.invokeMethod(e,[a])},this),this.registerNamedObserver(a+"_
_array",f)}},emitPropertyChangeRecord:function(a,c,d){if(!b(c,d)&&(this._propert
yChanged(a,c,d),Observer.hasObjectObserve)){var f=this._objectNotifier;f||(f=thi
s._objectNotifier=Object.getNotifier(this)),e.object=this,e.name=a,e.oldValue=d,
f.notify(e)}},_propertyChanged:function(a){this.reflect[a]&&this.reflectProperty
ToAttribute(a)},bindProperty:function(a,b,d){if(d)return void(this[a]=b);var e=t
his.element.prototype.computed;if(e&&e[a]){var f=a+"ComputedBoundObservable_";re
turn void(this[f]=b)}return this.bindToAccessor(a,b,c)},bindToAccessor:function(
a,c,d){function e(b,c){j[f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.set
Value(b),j.emitPropertyChangeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"Co
mputedBoundObservable_";this[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)
){var l=d(i,k);b(k,l)||(k=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:funct
ion(){c.close(),j[g]=void 0,j[h]=void 0}};return this.registerObserver(m),m},cre
ateComputedProperties:function(){if(this._computedNames)for(var a=0;a<this._comp
utedNames.length;a++){var b=this._computedNames[a],c=this.computed[b];try{var d=
PolymerExpressions.getExpression(c),e=d.getBinding(this,this.element.syntax);thi
s.bindToAccessor(b,e)}catch(f){console.error("Failed to create computed property
",f)}}},registerObserver:function(a){return this._observers?void this._observers
.push(a):void(this._observers=[a])},closeObservers:function(){if(this._observers
){for(var a=this._observers,b=0;b<a.length;b++){var c=a[b];c&&"function"==typeof
c.close&&c.close()}this._observers=[]}},registerNamedObserver:function(a,b){var
c=this._namedObservers||(this._namedObservers={});c[a]=b},closeNamedObserver:fu
nction(a){var b=this._namedObservers;return b&&b[a]?(b[a].close(),b[a]=null,!0):
void 0},closeNamedObservers:function(){if(this._namedObservers){for(var a in thi
s._namedObservers)this.closeNamedObserver(a);this._namedObservers={}}}};a.api.in
stance.properties=g}(Polymer),function(a){var b=window.WebComponents?WebComponen
ts.flags.log:{},c={instanceTemplate:function(a){HTMLTemplateElement.decorate(a);
for(var b=this.syntax||!a.bindingDelegate&&this.element.syntax,c=a.createInstanc
e(this,b),d=c.bindings_,e=0;e<d.length;e++)this.registerObserver(d[e]);return c}
,bind:function(a,b,c){var d=this.propertyForAttribute(a);if(d){var e=this.bindPr
operty(d,b,c);return Platform.enableBindingsReflection&&e&&(e.path=b.path_,this.
_recordBinding(d,e)),this.reflect[d]&&this.reflectPropertyToAttribute(d),e}retur
n this.mixinSuper(arguments)},_recordBinding:function(a,b){this.bindings_=this.b
indings_||{},this.bindings_[a]=b},bindFinished:function(){this.makeElementReady(
)},asyncUnbindAll:function(){this._unbound||(b.unbind&&console.log("[%s] asyncUn
bindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unb
indAll,0))},unbindAll:function(){this._unbound||(this.closeObservers(),this.clos
eNamedObservers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unb
ound?void(b.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll"
,this.localName)):(b.unbind&&console.log("[%s] cancelUnbindAll",this.localName),
void(this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},d=/\
{\{([^{}]*)}}/;a.bindPattern=d,a.api.instance.mdv=c}(Polymer),function(a){functi
on b(a){return a.hasOwnProperty("PolymerBase")}function c(){}var d={PolymerBase:
!0,job:function(a,b,c){if("string"!=typeof a)return Polymer.job.call(this,a,b,c)
;var d="___"+a;this[d]=Polymer.job.call(this,this[d],b,c)},"super":Polymer["supe
r"],created:function(){},ready:function(){},createdCallback:function(){this.temp
lateInstance&&this.templateInstance.model&&console.warn("Attributes on "+this.lo
calName+" were data bound prior to Polymer upgrading the element. This may resul
t in incorrect binding types."),this.created(),this.prepareElement(),this.ownerD
ocument.isStagingDocument||this.makeElementReady()},prepareElement:function(){re
turn this._elementPrepared?void console.warn("Element already prepared",this.loc
alName):(this._elementPrepared=!0,this.shadowRoots={},this.createPropertyObserve
r(),this.openPropertyObserver(),this.copyInstanceAttributes(),this.takeAttribute
s(),void this.addHostListeners())},makeElementReady:function(){this._readied||(t
his._readied=!0,this.createComputedProperties(),this.parseDeclarations(this.__pr
oto__),this.removeAttribute("unresolved"),this.ready())},attributeChangedCallbac
k:function(a){"class"!==a&&"style"!==a&&this.attributeToProperty(a,this.getAttri
bute(a)),this.attributeChanged&&this.attributeChanged.apply(this,arguments)},att
achedCallback:function(){this.cancelUnbindAll(),this.attached&&this.attached(),t
his.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domRead
y"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),thi
s.detached&&this.detached(),this.leftView&&this.leftView()},parseDeclarations:fu
nction(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.
call(this,a.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);
if(b){var c=this.shadowFromTemplate(b);this.shadowRoots[a.name]=c}},fetchTemplat
e:function(a){return a.querySelector("template")},shadowFromTemplate:function(a)
{if(a){var b=this.createShadowRoot(),c=this.instanceTemplate(a);return b.appendC
hild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a,b){if(a){this
.eventController=this;var c=this.instanceTemplate(a);return b?this.insertBefore(
c,b):this.appendChild(c),this.shadowRootReady(this),c}},shadowRootReady:function
(a){this.marshalNodeReferences(a)},marshalNodeReferences:function(a){var b=this.
$=this.$||{};if(a)for(var c,d=a.querySelectorAll("[id]"),e=0,f=d.length;f>e&&(c=
d[e]);e++)b[c.id]=c},onMutation:function(a,b){var c=new MutationObserver(functio
n(a){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childList:!0,subt
ree:!0})}};c.prototype=d,d.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base
=d}(Polymer),function(a){function b(a){return a.__proto__}function c(a,b){var c=
"",d=!1;b&&(c=b.localName,d=b.hasAttribute("is"));var e=WebComponents.ShadowCSS.
makeScopeSelector(c,d);return WebComponents.ShadowCSS.shimCssText(a,e)}var d=(wi
ndow.WebComponents?WebComponents.flags.log:{},window.ShadowDOMPolyfill),e="eleme
nt",f="controller",g={STYLE_SCOPE_ATTRIBUTE:e,installControllerStyles:function()
{var a=this.findStyleScope();if(a&&!this.scopeHasNamedStyle(a,this.localName)){f
or(var c=b(this),d="";c&&c.element;)d+=c.element.cssTextForScope(f),c=b(c);d&&th
is.installScopeCssText(d,a)}},installScopeStyle:function(a,b,c){var c=c||this.fi
ndStyleScope(),b=b||"";if(c&&!this.scopeHasNamedStyle(c,this.localName+b)){var d
="";if(a instanceof Array)for(var e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textCo
ntent+"\n\n";else d=a.textContent;this.installScopeCssText(d,c,b)}},installScope
CssText:function(a,b,e){if(b=b||this.findStyleScope(),e=e||"",b){d&&(a=c(a,b.hos
t));var g=this.element.cssTextToScopeStyle(a,f);Polymer.applyStyleToScope(g,b),t
his.styleCacheForScope(b)[this.localName+e]=!0}},findStyleScope:function(a){for(
var b=a||this;b.parentNode;)b=b.parentNode;return b},scopeHasNamedStyle:function
(a,b){var c=this.styleCacheForScope(a);return c[b]},styleCacheForScope:function(
a){if(d){var b=a.host?a.host.localName:a.localName;return h[b]||(h[b]={})}return
a._scopeStyles=a._scopeStyles||{}}},h={};a.api.instance.styles=g}(Polymer),func
tion(a){function b(a,b){if("string"!=typeof a){var c=b||document._currentScript;
if(b=a,a=c&&c.parentNode&&c.parentNode.getAttribute?c.parentNode.getAttribute("n
ame"):"",!a)throw"Element name could not be inferred."}if(f(a))throw"Already reg
istered (Polymer) prototype for element "+a;e(a,b),d(a)}function c(a,b){i[a]=b}f
unction d(a){i[a]&&(i[a].registerWhenReady(),delete i[a])}function e(a,b){return
j[a]=b||{}}function f(a){return j[a]}function g(a,b){if("string"!=typeof b)retu
rn!1;var c=HTMLElement.getPrototypeForTag(b),d=c&&c.constructor;return d?CustomE
lements["instanceof"]?CustomElements["instanceof"](a,d):a instanceof d:!1}var h=
a.extend,i=(a.api,{}),j={};a.getRegisteredPrototype=f,a.waitingForPrototype=c,a.
instanceOfType=g,window.Polymer=b,h(Polymer,a),WebComponents.consumeDeclarations
&&WebComponents.consumeDeclarations(function(a){if(a)for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.apply(null,c)})}(Polymer),function(a){var b={resolveElementPat
hs:function(a){Polymer.urlResolver.resolveDom(a)},addResolvePathApi:function(){v
ar a=this.getAttribute("assetpath")||"",b=new URL(a,this.ownerDocument.baseURI);
this.prototype.resolvePath=function(a,c){var d=new URL(a,c||b);return d.href}}};
a.api.declaration.path=b}(Polymer),function(a){function b(a,b){var c=new URL(a.g
etAttribute("href"),b).href;return"@import '"+c+"';"}function c(a,b){if(a){b===d
ocument&&(b=document.head),i&&(b=document.head);var c=d(a.textContent),e=a.getAt
tribute(h);e&&c.setAttribute(h,e);var f=b.firstElementChild;if(b===document.head
){var g="style["+h+"]",j=document.head.querySelectorAll(g);j.length&&(f=j[j.leng
th-1].nextElementSibling)}b.insertBefore(c,f)}}function d(a,b){b=b||document,b=b
.createElement?b:b.ownerDocument;var c=b.createElement("style");return c.textCon
tent=a,c}function e(a){return a&&a.__resource||""}function f(a,b){return q?q.cal
l(a,b):void 0}var g=(window.WebComponents?WebComponents.flags.log:{},a.api.insta
nce.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i=window.ShadowDOMPolyfill,j="style",k="@i
mport",l="link[rel=stylesheet]",m="global",n="polymer-scope",o={loadStyles:funct
ion(a){var b=this.fetchTemplate(),c=b&&this.templateContent();if(c){this.convert
SheetsToStyles(c);var d=this.findLoadableStyles(c);if(d.length){var e=b.ownerDoc
ument.baseURI;return Polymer.styleResolver.loadStyles(d,e,a)}}a&&a()},convertShe
etsToStyles:function(a){for(var c,e,f=a.querySelectorAll(l),g=0,h=f.length;h>g&&
(c=f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),this.copySh
eetAttributes(e,c),c.parentNode.replaceChild(e,c)},copySheetAttributes:function(
a,b){for(var c,d=0,e=b.attributes,f=e.length;(c=e[d])&&f>d;d++)"rel"!==c.name&&"
href"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:function(a){v
ar b=[];if(a)for(var c,d=a.querySelectorAll(j),e=0,f=d.length;f>e&&(c=d[e]);e++)
c.textContent.match(k)&&b.push(c);return b},installSheets:function(){this.cacheS
heets(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()}
,cacheSheets:function(){this.sheets=this.findNodes(l),this.sheets.forEach(functi
on(a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:function(){this.s
tyles=this.findNodes(j+"["+n+"]"),this.styles.forEach(function(a){a.parentNode&&
a.parentNode.removeChild(a)})},installLocalSheets:function(){var a=this.sheets.f
ilter(function(a){return!a.hasAttribute(n)}),b=this.templateContent();if(b){var
c="";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDocument);b.
insertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.querySelector
All(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll(a).array(
);c=c.concat(e)}return b?c.filter(b):c},installGlobalStyles:function(){var a=thi
s.styleForScope(m);c(a,document.head)},cssTextForScope:function(a){var b="",c="[
"+n+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets.filter(d);g.forEach(fun
ction(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);return h.forEach(function(
a){b+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForS
cope(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){
if(a){var c=d(a);return c.setAttribute(h,this.getAttribute("name")+"-"+b),c}}},p
=HTMLElement.prototype,q=p.matches||p.matchesSelector||p.webkitMatchesSelector||
p.mozMatchesSelector;a.api.declaration.styles=o,a.applyStyleToScope=c}(Polymer),
function(a){var b=(window.WebComponents?WebComponents.flags.log:{},a.api.instanc
e.events),c=b.EVENT_PREFIX,d={};["webkitAnimationStart","webkitAnimationEnd","we
bkitTransitionEnd","DOMFocusOut","DOMFocusIn","DOMMouseScroll"].forEach(function
(a){d[a.toLowerCase()]=a});var e={parseHostEvents:function(){var a=this.prototyp
e.eventDelegates;this.addAttributeDelegates(a)},addAttributeDelegates:function(a
){for(var b,c=0;b=this.attributes[c];c++)this.hasEventPrefix(b.name)&&(a[this.re
moveEventPrefix(b.name)]=b.value.replace("{{","").replace("}}","").trim())},hasE
ventPrefix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEvent
Prefix:function(a){return a.slice(f)},findController:function(a){for(;a.parentNo
de;){if(a.eventController)return a.eventController;a=a.parentNode}return a.host}
,getEventHandler:function(a,b,c){var d=this;return function(e){a&&a.PolymerBase|
|(a=d.findController(b));var f=[e,e.detail,e.currentTarget];a.dispatchMethod(a,c
,f)}},prepareEventBinding:function(a,b){if(this.hasEventPrefix(b)){var c=this.re
moveEventPrefix(b);c=d[c]||c;var e=this;return function(b,d,f){function g(){retu
rn"{{ "+a+" }}"}var h=e.getEventHandler(void 0,d,a);return PolymerGestures.addEv
entListener(d,c,h),f?void 0:{open:g,discardChanges:g,close:function(){PolymerGes
tures.removeEventListener(d,c,h)}}}}}},f=c.length;a.api.declaration.events=e}(Po
lymer),function(a){var b=["attribute"],c={inferObservers:function(a){var b,c=a.o
bserve;for(var d in a)"Changed"===d.slice(-7)&&(b=d.slice(0,-7),this.canObserveP
roperty(b)&&(c||(c=a.observe={}),c[b]=c[b]||d))},canObserveProperty:function(a){
return b.indexOf(a)<0},explodeObservers:function(a){var b=a.observe;if(b){var c=
{};for(var d in b)for(var e,f=d.split(" "),g=0;e=f[g];g++)c[e]=b[d];a.observe=c}
},optimizePropertyMaps:function(a){if(a.observe){var b=a._observeNames=[];for(va
r c in a.observe)for(var d,e=c.split(" "),f=0;d=e[f];f++)b.push(d)}if(a.publish)
{var b=a._publishNames=[];for(var c in a.publish)b.push(c)}if(a.computed){var b=
a._computedNames=[];for(var c in a.computed)b.push(c)}},publishProperties:functi
on(a,b){var c=a.publish;c&&(this.requireProperties(c,a,b),this.filterInvalidAcce
ssorNames(c),a._publishLC=this.lowerCaseMap(c));var d=a.computed;d&&this.filterI
nvalidAccessorNames(d)},filterInvalidAccessorNames:function(a){for(var b in a)th
is.propertyNameBlacklist[b]&&(console.warn('Cannot define property "'+b+'" for e
lement "'+this.name+'" because it has the same name as an HTMLElement property,
and not all browsers support overriding that. Consider giving it a different nam
e.'),delete a[b])},requireProperties:function(a,b){b.reflect=b.reflect||{};for(v
ar c in a){var d=a[c];d&&void 0!==d.reflect&&(b.reflect[c]=Boolean(d.reflect),d=
d.value),void 0!==d&&(b[c]=d)}},lowerCaseMap:function(a){var b={};for(var c in a
)b[c.toLowerCase()]=c;return b},createPropertyAccessor:function(a,b){var c=this.
prototype,d=a+"_",e=a+"Observable_";c[d]=c[a],Object.defineProperty(c,a,{get:fun
ction(){var a=this[e];return a&&a.deliver(),this[d]},set:function(c){if(b)return
this[d];var f=this[e];if(f)return void f.setValue(c);var g=this[d];return this[
d]=c,this.emitPropertyChangeRecord(a,c,g),c},configurable:!0})},createPropertyAc
cessors:function(a){var b=a._computedNames;if(b&&b.length)for(var c,d=0,e=b.leng
th;e>d&&(c=b[d]);d++)this.createPropertyAccessor(c,!0);var b=a._publishNames;if(
b&&b.length)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)a.computed&&a.computed[c]
||this.createPropertyAccessor(c)},propertyNameBlacklist:{children:1,"class":1,id
:1,hidden:1,style:1,title:1}};a.api.declaration.properties=c}(Polymer),function(
a){var b="attributes",c=/\s|,/,d={inheritAttributesObjects:function(a){this.inhe
ritObject(a,"publishLC"),this.inheritObject(a,"_instanceAttributes")},publishAtt
ributes:function(a){var d=this.getAttribute(b);if(d)for(var e,f=a.publish||(a.pu
blish={}),g=d.split(c),h=0,i=g.length;i>h;h++)e=g[h].trim(),e&&void 0===f[e]&&(f
[e]=void 0)},accumulateInstanceAttributes:function(){for(var a,b=this.prototype.
_instanceAttributes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isIn
stanceAttribute(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){re
turn!this.blackList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,cons
tructor:1,noscript:1,assetpath:1,"cache-csstext":1}};d.blackList[b]=1,a.api.decl
aration.attributes=d}(Polymer),function(a){var b=a.api.declaration.events,c=new
PolymerExpressions,d=c.prepareBinding;c.prepareBinding=function(a,e,f){return b.
prepareEventBinding(a,e,f)||d.call(c,a,e,f)};var e={syntax:c,fetchTemplate:funct
ion(){return this.querySelector("template")},templateContent:function(){var a=th
is.fetchTemplate();return a&&a.content},installBindingDelegate:function(a){a&&(a
.bindingDelegate=this.syntax)}};a.api.declaration.mdv=e}(Polymer),function(a){fu
nction b(a){if(!Object.__proto__){var b=Object.getPrototypeOf(a);a.__proto__=b,d
(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=a.api,d=a.isBase,e=a.extend,f
=window.ShadowDOMPolyfill,g={register:function(a,b){this.buildPrototype(a,b),thi
s.registerPrototype(a,b),this.publishConstructor()},buildPrototype:function(b,c)
{var d=a.getRegisteredPrototype(b),e=this.generateBasePrototype(c);this.desugarB
eforeChaining(d,e),this.prototype=this.chainPrototypes(d,e),this.desugarAfterCha
ining(b,c)},desugarBeforeChaining:function(a,b){a.element=this,this.publishAttri
butes(a,b),this.publishProperties(a,b),this.inferObservers(a),this.explodeObserv
ers(a)},chainPrototypes:function(a,c){this.inheritMetaData(a,c);var d=this.chain
Object(a,c);return b(d),d},inheritMetaData:function(a,b){this.inheritObject("obs
erve",a,b),this.inheritObject("publish",a,b),this.inheritObject("reflect",a,b),t
his.inheritObject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b
),this.inheritObject("eventDelegates",a,b)},desugarAfterChaining:function(a,b){t
his.optimizePropertyMaps(this.prototype),this.createPropertyAccessors(this.proto
type),this.installBindingDelegate(this.fetchTemplate()),this.installSheets(),thi
s.resolveElementPaths(this),this.accumulateInstanceAttributes(),this.parseHostEv
ents(),this.addResolvePathApi(),f&&WebComponents.ShadowCSS.shimStyling(this.temp
lateContent(),a,b),this.prototype.registerCallback&&this.prototype.registerCallb
ack(this)},publishConstructor:function(){var a=this.getAttribute("constructor");
a&&(window[a]=this.ctor)},generateBasePrototype:function(a){var b=this.findBaseP
rototype(a);if(!b){var b=HTMLElement.getPrototypeForTag(a);b=this.ensureBaseApi(
b),h[a]=b}return b},findBasePrototype:function(a){return h[a]},ensureBaseApi:fun
ction(a){if(a.PolymerBase)return a;var b=Object.create(a);return c.publish(c.ins
tance,b),this.mixinMethod(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b
,c,d){var e=function(a){return b[d].apply(this,a)};a[d]=function(){return this.m
ixinSuper=e,c[d].apply(this,arguments)}},inheritObject:function(a,b,c){var d=b[a
]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var c={prot
otype:this.prototype},d=this.findTypeExtension(b);d&&(c["extends"]=d),HTMLElemen
t.register(a,this.prototype),this.ctor=document.registerElement(a,c)},findTypeEx
tension:function(a){if(a&&a.indexOf("-")<0)return a;var b=this.findBasePrototype
(a);return b.element?this.findTypeExtension(b.element["extends"]):void 0}},h={};
g.chainObject=Object.__proto__?function(a,b){return a&&b&&a!==b&&(a.__proto__=b)
,a}:function(a,b){if(a&&b&&a!==b){var c=Object.create(b);a=e(c,a)}return a},c.de
claration.prototype=g}(Polymer),function(a){function b(a){return document.contai
ns(a)?j:i}function c(){return i.length?i[0]:j[0]}function d(a){f.waitToReady=!0,
Polymer.endOfMicrotask(function(){HTMLImports.whenReady(function(){f.addReadyCal
lback(a),f.waitToReady=!1,f.check()})})}function e(a){if(void 0===a)return void
f.ready();var b=setTimeout(function(){f.ready()},a);Polymer.whenReady(function()
{clearTimeout(b)})}var f={wait:function(a){a.__queue||(a.__queue={},g.push(a))},
enqueue:function(a,c,d){var e=a.__queue&&!a.__queue.check;return e&&(b(a).push(a
),a.__queue.check=c,a.__queue.go=d),0!==this.indexOf(a)},indexOf:function(a){var
c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTMLImports.useNative|
|HTMLImports.ready?i.length:1e9),c},go:function(a){var b=this.remove(a);b&&(a.__
queue.flushable=!0,this.addToFlushQueue(b),this.check())},remove:function(a){var
c=this.indexOf(a);if(0===c)return b(a).shift()},check:function(){var a=this.nex
tElement();return a&&a.__queue.check.call(a),this.canReady()?(this.ready(),!0):v
oid 0},nextElement:function(){return c()},canReady:function(){return!this.waitTo
Ready&&this.isEmpty()},isEmpty:function(){for(var a,b=0,c=g.length;c>b&&(a=g[b])
;b++)if(a.__queue&&!a.__queue.flushable)return;return!0},addToFlushQueue:functio
n(a){h.push(a)},flush:function(){if(!this.flushing){this.flushing=!0;for(var a;h
.length;)a=h.shift(),a.__queue.go.call(a),a.__queue=null;this.flushing=!1}},read
y:function(){var a=CustomElements.ready;CustomElements.ready=!1,this.flush(),Cus
tomElements.useNative||CustomElements.upgradeDocumentTree(document),CustomElemen
ts.ready=a,Polymer.flush(),requestAnimationFrame(this.flushReadyCallbacks)},addR
eadyCallback:function(a){a&&k.push(a)},flushReadyCallbacks:function(){if(k)for(v
ar a;k.length;)(a=k.shift())()},waitingFor:function(){for(var a,b=[],c=0,d=g.len
gth;d>c&&(a=g[c]);c++)a.__queue&&!a.__queue.flushable&&b.push(a);return b},waitT
oReady:!0},g=[],h=[],i=[],j=[],k=[];a.elements=g,a.waitingFor=f.waitingFor.bind(
f),a.forceReady=e,a.queue=f,a.whenReady=a.whenPolymerReady=d}(Polymer),function(
a){function b(a){return Boolean(HTMLElement.getPrototypeForTag(a))}function c(a)
{return a&&a.indexOf("-")>=0}var d=a.extend,e=a.api,f=a.queue,g=a.whenReady,h=a.
getRegisteredPrototype,i=a.waitingForPrototype,j=d(Object.create(HTMLElement.pro
totype),{createdCallback:function(){this.getAttribute("name")&&this.init()},init
:function(){this.name=this.getAttribute("name"),this["extends"]=this.getAttribut
e("extends"),f.wait(this),this.loadResources(),this.registerWhenReady()},registe
rWhenReady:function(){this.registered||this.waitingForPrototype(this.name)||this
.waitingForQueue()||this.waitingForResources()||f.go(this)},_register:function()
{c(this["extends"])&&!b(this["extends"])&&console.warn("%s is attempting to exte
nd %s, an unregistered element or one that was not registered with Polymer.",thi
s.name,this["extends"]),this.register(this.name,this["extends"]),this.registered
=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNo
Script(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.n
oscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return th
is._needsResources},waitingForQueue:function(){return f.enqueue(this,this.regist
erWhenReady,this._register)},loadResources:function(){this._needsResources=!0,th
is.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(
this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute(
"unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0
}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),functi
on(a){function b(a,b){a?(document.head.appendChild(a),d(b)):b&&b()}function c(a,
c){if(a&&a.length){for(var d,e,f=document.createDocumentFragment(),g=0,h=a.lengt
h;h>g&&(d=a[g]);g++)e=document.createElement("link"),e.rel="import",e.href=d,f.a
ppendChild(e);b(f,c)}else c&&c()}var d=a.whenReady;a["import"]=c,a.importElement
s=b}(Polymer),function(){var a=document.createElement("polymer-element");a.setAt
tribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Pol
ymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate
=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setA
ttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parent
Node),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Ob
ject.create(Polymer.api.declaration.events),b=this;a.findController=function(){r
eturn b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareB
inding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}}
)}(); | 15 b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.loc
alName,a);for(var c in a){var d=a[c];PolymerGestures.addEventListener(this,c,thi
s.element.getEventHandler(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b
.events&&console.group("[%s] dispatch [%s]",a.localName,c);var e="function"==typ
eof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.events&&console.groupEnd(),Polymer.fl
ush()}}};a.api.instance.events=d,a.addEventListener=function(a,b,c,d){PolymerGes
tures.addEventListener(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){P
olymerGestures.removeEventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={
copyInstanceAttributes:function(){var a=this._instanceAttributes;for(var b in a)
this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:function(){if(th
is._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.
attributeToProperty(a.name,a.value)},attributeToProperty:function(b,c){var b=thi
s.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=th
is[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:fun
ction(a){var b=this._publishLC&&this._publishLC[a];return b},deserializeValue:fu
nction(b,c){return a.deserializeValue(b,c)},serializeValue:function(a,b){return"
boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},refl
ectPropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(th
is[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a
)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a,b){return a==
=b?0!==a||1/a===1/b:f(a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b
&&null===a?b:null===b||void 0===b?a:b}var d=window.WebComponents?WebComponents.f
lags.log:{},e={object:void 0,type:"update",name:void 0,oldValue:void 0},f=Number
.isNaN||function(a){return"number"==typeof a&&isNaN(a)},g={createPropertyObserve
r:function(){var a=this._observeNames;if(a&&a.length){var b=this._propertyObserv
er=new CompoundObserver(!0);this.registerObserver(b);for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.addPath(this,c),this.observeArrayValue(c,this[c],null)}},openP
ropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(t
his.notifyPropertyChanges,this)},notifyPropertyChanges:function(a,b,c){var d,e,f
={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]){var h=b[g],i=a[g];this.obser
veArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||void 0!==i&&null!==i)&&(f[e]=!0
,this.invokeMethod(e,[h,i,arguments]))}},invokeMethod:function(a,b){var c=this[a
]||a;"function"==typeof c&&c.apply(this,b)},deliverChanges:function(){this._prop
ertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(a,b,c
){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.observe&&console.log("[%s] o
bserveArrayValue: unregister observer [%s]",this.localName,a),this.closeNamedObs
erver(a+"__array")),Array.isArray(b))){d.observe&&console.log("[%s] observeArray
Value: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(b);f.
open(function(a){this.invokeMethod(e,[a])},this),this.registerNamedObserver(a+"_
_array",f)}},emitPropertyChangeRecord:function(a,c,d){if(!b(c,d)&&(this._propert
yChanged(a,c,d),Observer.hasObjectObserve)){var f=this._objectNotifier;f||(f=thi
s._objectNotifier=Object.getNotifier(this)),e.object=this,e.name=a,e.oldValue=d,
f.notify(e)}},_propertyChanged:function(a){this.reflect[a]&&this.reflectProperty
ToAttribute(a)},bindProperty:function(a,b,d){if(d)return void(this[a]=b);var e=t
his.element.prototype.computed;if(e&&e[a]){var f=a+"ComputedBoundObservable_";re
turn void(this[f]=b)}return this.bindToAccessor(a,b,c)},bindToAccessor:function(
a,c,d){function e(b,c){j[f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.set
Value(b),j.emitPropertyChangeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"Co
mputedBoundObservable_";this[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)
){var l=d(i,k);b(k,l)||(k=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:funct
ion(){c.close(),j[g]=void 0,j[h]=void 0}};return this.registerObserver(m),m},cre
ateComputedProperties:function(){if(this._computedNames)for(var a=0;a<this._comp
utedNames.length;a++){var b=this._computedNames[a],c=this.computed[b];try{var d=
PolymerExpressions.getExpression(c),e=d.getBinding(this,this.element.syntax);thi
s.bindToAccessor(b,e)}catch(f){console.error("Failed to create computed property
",f)}}},registerObserver:function(a){return this._observers?void this._observers
.push(a):void(this._observers=[a])},closeObservers:function(){if(this._observers
){for(var a=this._observers,b=0;b<a.length;b++){var c=a[b];c&&"function"==typeof
c.close&&c.close()}this._observers=[]}},registerNamedObserver:function(a,b){var
c=this._namedObservers||(this._namedObservers={});c[a]=b},closeNamedObserver:fu
nction(a){var b=this._namedObservers;return b&&b[a]?(b[a].close(),b[a]=null,!0):
void 0},closeNamedObservers:function(){if(this._namedObservers){for(var a in thi
s._namedObservers)this.closeNamedObserver(a);this._namedObservers={}}}};a.api.in
stance.properties=g}(Polymer),function(a){var b=window.WebComponents?WebComponen
ts.flags.log:{},c={instanceTemplate:function(a){HTMLTemplateElement.decorate(a);
for(var b=this.syntax||!a.bindingDelegate&&this.element.syntax,c=a.createInstanc
e(this,b),d=c.bindings_,e=0;e<d.length;e++)this.registerObserver(d[e]);return c}
,bind:function(a,b,c){var d=this.propertyForAttribute(a);if(d){var e=this.bindPr
operty(d,b,c);return Platform.enableBindingsReflection&&e&&(e.path=b.path_,this.
_recordBinding(d,e)),this.reflect[d]&&this.reflectPropertyToAttribute(d),e}retur
n this.mixinSuper(arguments)},_recordBinding:function(a,b){this.bindings_=this.b
indings_||{},this.bindings_[a]=b},bindFinished:function(){this.makeElementReady(
)},asyncUnbindAll:function(){this._unbound||(b.unbind&&console.log("[%s] asyncUn
bindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unb
indAll,0))},unbindAll:function(){this._unbound||(this.closeObservers(),this.clos
eNamedObservers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unb
ound?void(b.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll"
,this.localName)):(b.unbind&&console.log("[%s] cancelUnbindAll",this.localName),
void(this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},d=/\
{\{([^{}]*)}}/;a.bindPattern=d,a.api.instance.mdv=c}(Polymer),function(a){functi
on b(a){return a.hasOwnProperty("PolymerBase")}function c(){}var d={PolymerBase:
!0,job:function(a,b,c){if("string"!=typeof a)return Polymer.job.call(this,a,b,c)
;var d="___"+a;this[d]=Polymer.job.call(this,this[d],b,c)},"super":Polymer["supe
r"],created:function(){},ready:function(){},createdCallback:function(){this.temp
lateInstance&&this.templateInstance.model&&console.warn("Attributes on "+this.lo
calName+" were data bound prior to Polymer upgrading the element. This may resul
t in incorrect binding types."),this.created(),this.prepareElement(),this.ownerD
ocument.isStagingDocument||this.makeElementReady()},prepareElement:function(){re
turn this._elementPrepared?void console.warn("Element already prepared",this.loc
alName):(this._elementPrepared=!0,this.shadowRoots={},this.createPropertyObserve
r(),this.openPropertyObserver(),this.copyInstanceAttributes(),this.takeAttribute
s(),void this.addHostListeners())},makeElementReady:function(){this._readied||(t
his._readied=!0,this.createComputedProperties(),this.parseDeclarations(this.__pr
oto__),this.removeAttribute("unresolved"),this.ready())},attributeChangedCallbac
k:function(a){"class"!==a&&"style"!==a&&this.attributeToProperty(a,this.getAttri
bute(a)),this.attributeChanged&&this.attributeChanged.apply(this,arguments)},att
achedCallback:function(){this.cancelUnbindAll(),this.attached&&this.attached(),t
his.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domRead
y"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),thi
s.detached&&this.detached(),this.leftView&&this.leftView()},parseDeclarations:fu
nction(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.
call(this,a.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);
if(b){var c=this.shadowFromTemplate(b);this.shadowRoots[a.name]=c}},fetchTemplat
e:function(a){return a.querySelector("template")},shadowFromTemplate:function(a)
{if(a){var b=this.createShadowRoot(),c=this.instanceTemplate(a);return b.appendC
hild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a,b){if(a){this
.eventController=this;var c=this.instanceTemplate(a);return b?this.insertBefore(
c,b):this.appendChild(c),this.shadowRootReady(this),c}},shadowRootReady:function
(a){this.marshalNodeReferences(a)},marshalNodeReferences:function(a){var b=this.
$=this.$||{};if(a)for(var c,d=a.querySelectorAll("[id]"),e=0,f=d.length;f>e&&(c=
d[e]);e++)b[c.id]=c},onMutation:function(a,b){var c=new MutationObserver(functio
n(a){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childList:!0,subt
ree:!0})}};c.prototype=d,d.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base
=d}(Polymer),function(a){function b(a){return a.__proto__}function c(a,b){var c=
"",d=!1;b&&(c=b.localName,d=b.hasAttribute("is"));var e=WebComponents.ShadowCSS.
makeScopeSelector(c,d);return WebComponents.ShadowCSS.shimCssText(a,e)}var d=(wi
ndow.WebComponents?WebComponents.flags.log:{},window.ShadowDOMPolyfill),e="eleme
nt",f="controller",g={STYLE_SCOPE_ATTRIBUTE:e,installControllerStyles:function()
{var a=this.findStyleScope();if(a&&!this.scopeHasNamedStyle(a,this.localName)){f
or(var c=b(this),d="";c&&c.element;)d+=c.element.cssTextForScope(f),c=b(c);d&&th
is.installScopeCssText(d,a)}},installScopeStyle:function(a,b,c){var c=c||this.fi
ndStyleScope(),b=b||"";if(c&&!this.scopeHasNamedStyle(c,this.localName+b)){var d
="";if(a instanceof Array)for(var e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textCo
ntent+"\n\n";else d=a.textContent;this.installScopeCssText(d,c,b)}},installScope
CssText:function(a,b,e){if(b=b||this.findStyleScope(),e=e||"",b){d&&(a=c(a,b.hos
t));var g=this.element.cssTextToScopeStyle(a,f);Polymer.applyStyleToScope(g,b),t
his.styleCacheForScope(b)[this.localName+e]=!0}},findStyleScope:function(a){for(
var b=a||this;b.parentNode;)b=b.parentNode;return b},scopeHasNamedStyle:function
(a,b){var c=this.styleCacheForScope(a);return c[b]},styleCacheForScope:function(
a){if(d){var b=a.host?a.host.localName:a.localName;return h[b]||(h[b]={})}return
a._scopeStyles=a._scopeStyles||{}}},h={};a.api.instance.styles=g}(Polymer),func
tion(a){function b(a,b){if("string"!=typeof a){var c=b||document._currentScript;
if(b=a,a=c&&c.parentNode&&c.parentNode.getAttribute?c.parentNode.getAttribute("n
ame"):"",!a)throw"Element name could not be inferred."}if(f(a))throw"Already reg
istered (Polymer) prototype for element "+a;e(a,b),d(a)}function c(a,b){i[a]=b}f
unction d(a){i[a]&&(i[a].registerWhenReady(),delete i[a])}function e(a,b){return
j[a]=b||{}}function f(a){return j[a]}function g(a,b){if("string"!=typeof b)retu
rn!1;var c=HTMLElement.getPrototypeForTag(b),d=c&&c.constructor;return d?CustomE
lements["instanceof"]?CustomElements["instanceof"](a,d):a instanceof d:!1}var h=
a.extend,i=(a.api,{}),j={};a.getRegisteredPrototype=f,a.waitingForPrototype=c,a.
instanceOfType=g,window.Polymer=b,h(Polymer,a),WebComponents.consumeDeclarations
&&WebComponents.consumeDeclarations(function(a){if(a)for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.apply(null,c)})}(Polymer),function(a){var b={resolveElementPat
hs:function(a){Polymer.urlResolver.resolveDom(a)},addResolvePathApi:function(){v
ar a=this.getAttribute("assetpath")||"",b=new URL(a,this.ownerDocument.baseURI);
this.prototype.resolvePath=function(a,c){var d=new URL(a,c||b);return d.href}}};
a.api.declaration.path=b}(Polymer),function(a){function b(a,b){var c=new URL(a.g
etAttribute("href"),b).href;return"@import '"+c+"';"}function c(a,b){if(a){b===d
ocument&&(b=document.head),i&&(b=document.head);var c=d(a.textContent),e=a.getAt
tribute(h);e&&c.setAttribute(h,e);var f=b.firstElementChild;if(b===document.head
){var g="style["+h+"]",j=document.head.querySelectorAll(g);j.length&&(f=j[j.leng
th-1].nextElementSibling)}b.insertBefore(c,f)}}function d(a,b){b=b||document,b=b
.createElement?b:b.ownerDocument;var c=b.createElement("style");return c.textCon
tent=a,c}function e(a){return a&&a.__resource||""}function f(a,b){return q?q.cal
l(a,b):void 0}var g=(window.WebComponents?WebComponents.flags.log:{},a.api.insta
nce.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i=window.ShadowDOMPolyfill,j="style",k="@i
mport",l="link[rel=stylesheet]",m="global",n="polymer-scope",o={loadStyles:funct
ion(a){var b=this.fetchTemplate(),c=b&&this.templateContent();if(c){this.convert
SheetsToStyles(c);var d=this.findLoadableStyles(c);if(d.length){var e=b.ownerDoc
ument.baseURI;return Polymer.styleResolver.loadStyles(d,e,a)}}a&&a()},convertShe
etsToStyles:function(a){for(var c,e,f=a.querySelectorAll(l),g=0,h=f.length;h>g&&
(c=f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),this.copySh
eetAttributes(e,c),c.parentNode.replaceChild(e,c)},copySheetAttributes:function(
a,b){for(var c,d=0,e=b.attributes,f=e.length;(c=e[d])&&f>d;d++)"rel"!==c.name&&"
href"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:function(a){v
ar b=[];if(a)for(var c,d=a.querySelectorAll(j),e=0,f=d.length;f>e&&(c=d[e]);e++)
c.textContent.match(k)&&b.push(c);return b},installSheets:function(){this.cacheS
heets(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()}
,cacheSheets:function(){this.sheets=this.findNodes(l),this.sheets.forEach(functi
on(a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:function(){this.s
tyles=this.findNodes(j+"["+n+"]"),this.styles.forEach(function(a){a.parentNode&&
a.parentNode.removeChild(a)})},installLocalSheets:function(){var a=this.sheets.f
ilter(function(a){return!a.hasAttribute(n)}),b=this.templateContent();if(b){var
c="";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDocument);b.
insertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.querySelector
All(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll(a).array(
);c=c.concat(e)}return b?c.filter(b):c},installGlobalStyles:function(){var a=thi
s.styleForScope(m);c(a,document.head)},cssTextForScope:function(a){var b="",c="[
"+n+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets.filter(d);g.forEach(fun
ction(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);return h.forEach(function(
a){b+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForS
cope(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){
if(a){var c=d(a);return c.setAttribute(h,this.getAttribute("name")+"-"+b),c}}},p
=HTMLElement.prototype,q=p.matches||p.matchesSelector||p.webkitMatchesSelector||
p.mozMatchesSelector;a.api.declaration.styles=o,a.applyStyleToScope=c}(Polymer),
function(a){var b=(window.WebComponents?WebComponents.flags.log:{},a.api.instanc
e.events),c=b.EVENT_PREFIX,d={};["webkitAnimationStart","webkitAnimationEnd","we
bkitTransitionEnd","DOMFocusOut","DOMFocusIn","DOMMouseScroll"].forEach(function
(a){d[a.toLowerCase()]=a});var e={parseHostEvents:function(){var a=this.prototyp
e.eventDelegates;this.addAttributeDelegates(a)},addAttributeDelegates:function(a
){for(var b,c=0;b=this.attributes[c];c++)this.hasEventPrefix(b.name)&&(a[this.re
moveEventPrefix(b.name)]=b.value.replace("{{","").replace("}}","").trim())},hasE
ventPrefix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEvent
Prefix:function(a){return a.slice(f)},findController:function(a){for(;a.parentNo
de;){if(a.eventController)return a.eventController;a=a.parentNode}return a.host}
,getEventHandler:function(a,b,c){var d=this;return function(e){a&&a.PolymerBase|
|(a=d.findController(b));var f=[e,e.detail,e.currentTarget];a.dispatchMethod(a,c
,f)}},prepareEventBinding:function(a,b){if(this.hasEventPrefix(b)){var c=this.re
moveEventPrefix(b);c=d[c]||c;var e=this;return function(b,d,f){function g(){retu
rn"{{ "+a+" }}"}var h=e.getEventHandler(void 0,d,a);return PolymerGestures.addEv
entListener(d,c,h),f?void 0:{open:g,discardChanges:g,close:function(){PolymerGes
tures.removeEventListener(d,c,h)}}}}}},f=c.length;a.api.declaration.events=e}(Po
lymer),function(a){var b=["attribute"],c={inferObservers:function(a){var b,c=a.o
bserve;for(var d in a)"Changed"===d.slice(-7)&&(b=d.slice(0,-7),this.canObserveP
roperty(b)&&(c||(c=a.observe={}),c[b]=c[b]||d))},canObserveProperty:function(a){
return b.indexOf(a)<0},explodeObservers:function(a){var b=a.observe;if(b){var c=
{};for(var d in b)for(var e,f=d.split(" "),g=0;e=f[g];g++)c[e]=b[d];a.observe=c}
},optimizePropertyMaps:function(a){if(a.observe){var b=a._observeNames=[];for(va
r c in a.observe)for(var d,e=c.split(" "),f=0;d=e[f];f++)b.push(d)}if(a.publish)
{var b=a._publishNames=[];for(var c in a.publish)b.push(c)}if(a.computed){var b=
a._computedNames=[];for(var c in a.computed)b.push(c)}},publishProperties:functi
on(a,b){var c=a.publish;c&&(this.requireProperties(c,a,b),this.filterInvalidAcce
ssorNames(c),a._publishLC=this.lowerCaseMap(c));var d=a.computed;d&&this.filterI
nvalidAccessorNames(d)},filterInvalidAccessorNames:function(a){for(var b in a)th
is.propertyNameBlacklist[b]&&(console.warn('Cannot define property "'+b+'" for e
lement "'+this.name+'" because it has the same name as an HTMLElement property,
and not all browsers support overriding that. Consider giving it a different nam
e.'),delete a[b])},requireProperties:function(a,b){b.reflect=b.reflect||{};for(v
ar c in a){var d=a[c];d&&void 0!==d.reflect&&(b.reflect[c]=Boolean(d.reflect),d=
d.value),void 0!==d&&(b[c]=d)}},lowerCaseMap:function(a){var b={};for(var c in a
)b[c.toLowerCase()]=c;return b},createPropertyAccessor:function(a,b){var c=this.
prototype,d=a+"_",e=a+"Observable_";c[d]=c[a],Object.defineProperty(c,a,{get:fun
ction(){var a=this[e];return a&&a.deliver(),this[d]},set:function(c){if(b)return
this[d];var f=this[e];if(f)return void f.setValue(c);var g=this[d];return this[
d]=c,this.emitPropertyChangeRecord(a,c,g),c},configurable:!0})},createPropertyAc
cessors:function(a){var b=a._computedNames;if(b&&b.length)for(var c,d=0,e=b.leng
th;e>d&&(c=b[d]);d++)this.createPropertyAccessor(c,!0);var b=a._publishNames;if(
b&&b.length)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)a.computed&&a.computed[c]
||this.createPropertyAccessor(c)},propertyNameBlacklist:{children:1,"class":1,id
:1,hidden:1,style:1,title:1}};a.api.declaration.properties=c}(Polymer),function(
a){var b="attributes",c=/\s|,/,d={inheritAttributesObjects:function(a){this.inhe
ritObject(a,"publishLC"),this.inheritObject(a,"_instanceAttributes")},publishAtt
ributes:function(a){var d=this.getAttribute(b);if(d)for(var e,f=a.publish||(a.pu
blish={}),g=d.split(c),h=0,i=g.length;i>h;h++)e=g[h].trim(),e&&void 0===f[e]&&(f
[e]=void 0)},accumulateInstanceAttributes:function(){for(var a,b=this.prototype.
_instanceAttributes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isIn
stanceAttribute(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){re
turn!this.blackList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,cons
tructor:1,noscript:1,assetpath:1,"cache-csstext":1}};d.blackList[b]=1,a.api.decl
aration.attributes=d}(Polymer),function(a){var b=a.api.declaration.events,c=new
PolymerExpressions,d=c.prepareBinding;c.prepareBinding=function(a,e,f){return b.
prepareEventBinding(a,e,f)||d.call(c,a,e,f)};var e={syntax:c,fetchTemplate:funct
ion(){return this.querySelector("template")},templateContent:function(){var a=th
is.fetchTemplate();return a&&a.content},installBindingDelegate:function(a){a&&(a
.bindingDelegate=this.syntax)}};a.api.declaration.mdv=e}(Polymer),function(a){fu
nction b(a){if(!Object.__proto__){var b=Object.getPrototypeOf(a);a.__proto__=b,d
(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=a.api,d=a.isBase,e=a.extend,f
=window.ShadowDOMPolyfill,g={register:function(a,b){this.buildPrototype(a,b),thi
s.registerPrototype(a,b),this.publishConstructor()},buildPrototype:function(b,c)
{var d=a.getRegisteredPrototype(b),e=this.generateBasePrototype(c);this.desugarB
eforeChaining(d,e),this.prototype=this.chainPrototypes(d,e),this.desugarAfterCha
ining(b,c)},desugarBeforeChaining:function(a,b){a.element=this,this.publishAttri
butes(a,b),this.publishProperties(a,b),this.inferObservers(a),this.explodeObserv
ers(a)},chainPrototypes:function(a,c){this.inheritMetaData(a,c);var d=this.chain
Object(a,c);return b(d),d},inheritMetaData:function(a,b){this.inheritObject("obs
erve",a,b),this.inheritObject("publish",a,b),this.inheritObject("reflect",a,b),t
his.inheritObject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b
),this.inheritObject("eventDelegates",a,b)},desugarAfterChaining:function(a,b){t
his.optimizePropertyMaps(this.prototype),this.createPropertyAccessors(this.proto
type),this.installBindingDelegate(this.fetchTemplate()),this.installSheets(),thi
s.resolveElementPaths(this),this.accumulateInstanceAttributes(),this.parseHostEv
ents(),this.addResolvePathApi(),f&&WebComponents.ShadowCSS.shimStyling(this.temp
lateContent(),a,b),this.prototype.registerCallback&&this.prototype.registerCallb
ack(this)},publishConstructor:function(){var a=this.getAttribute("constructor");
a&&(window[a]=this.ctor)},generateBasePrototype:function(a){var b=this.findBaseP
rototype(a);if(!b){var b=HTMLElement.getPrototypeForTag(a);b=this.ensureBaseApi(
b),h[a]=b}return b},findBasePrototype:function(a){return h[a]},ensureBaseApi:fun
ction(a){if(a.PolymerBase)return a;var b=Object.create(a);return c.publish(c.ins
tance,b),this.mixinMethod(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b
,c,d){var e=function(a){return b[d].apply(this,a)};a[d]=function(){return this.m
ixinSuper=e,c[d].apply(this,arguments)}},inheritObject:function(a,b,c){var d=b[a
]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var c={prot
otype:this.prototype},d=this.findTypeExtension(b);d&&(c["extends"]=d),HTMLElemen
t.register(a,this.prototype),this.ctor=document.registerElement(a,c)},findTypeEx
tension:function(a){if(a&&a.indexOf("-")<0)return a;var b=this.findBasePrototype
(a);return b.element?this.findTypeExtension(b.element["extends"]):void 0}},h={};
g.chainObject=Object.__proto__?function(a,b){return a&&b&&a!==b&&(a.__proto__=b)
,a}:function(a,b){if(a&&b&&a!==b){var c=Object.create(b);a=e(c,a)}return a},c.de
claration.prototype=g}(Polymer),function(a){function b(a){return document.contai
ns(a)?j:i}function c(){return i.length?i[0]:j[0]}function d(a){f.waitToReady=!0,
Polymer.endOfMicrotask(function(){HTMLImports.whenReady(function(){f.addReadyCal
lback(a),f.waitToReady=!1,f.check()})})}function e(a){if(void 0===a)return void
f.ready();var b=setTimeout(function(){f.ready()},a);Polymer.whenReady(function()
{clearTimeout(b)})}var f={wait:function(a){a.__queue||(a.__queue={},g.push(a))},
enqueue:function(a,c,d){var e=a.__queue&&!a.__queue.check;return e&&(b(a).push(a
),a.__queue.check=c,a.__queue.go=d),0!==this.indexOf(a)},indexOf:function(a){var
c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTMLImports.useNative|
|HTMLImports.ready?i.length:1e9),c},go:function(a){var b=this.remove(a);b&&(a.__
queue.flushable=!0,this.addToFlushQueue(b),this.check())},remove:function(a){var
c=this.indexOf(a);if(0===c)return b(a).shift()},check:function(){var a=this.nex
tElement();return a&&a.__queue.check.call(a),this.canReady()?(this.ready(),!0):v
oid 0},nextElement:function(){return c()},canReady:function(){return!this.waitTo
Ready&&this.isEmpty()},isEmpty:function(){for(var a,b=0,c=g.length;c>b&&(a=g[b])
;b++)if(a.__queue&&!a.__queue.flushable)return;return!0},addToFlushQueue:functio
n(a){h.push(a)},flush:function(){if(!this.flushing){this.flushing=!0;for(var a;h
.length;)a=h.shift(),a.__queue.go.call(a),a.__queue=null;this.flushing=!1}},read
y:function(){var a=CustomElements.ready;CustomElements.ready=!1,this.flush(),Cus
tomElements.useNative||CustomElements.upgradeDocumentTree(document),CustomElemen
ts.ready=a,Polymer.flush(),requestAnimationFrame(this.flushReadyCallbacks)},addR
eadyCallback:function(a){a&&k.push(a)},flushReadyCallbacks:function(){if(k)for(v
ar a;k.length;)(a=k.shift())()},waitingFor:function(){for(var a,b=[],c=0,d=g.len
gth;d>c&&(a=g[c]);c++)a.__queue&&!a.__queue.flushable&&b.push(a);return b},waitT
oReady:!0},g=[],h=[],i=[],j=[],k=[];a.elements=g,a.waitingFor=f.waitingFor.bind(
f),a.forceReady=e,a.queue=f,a.whenReady=a.whenPolymerReady=d}(Polymer),function(
a){function b(a){return Boolean(HTMLElement.getPrototypeForTag(a))}function c(a)
{return a&&a.indexOf("-")>=0}var d=a.extend,e=a.api,f=a.queue,g=a.whenReady,h=a.
getRegisteredPrototype,i=a.waitingForPrototype,j=d(Object.create(HTMLElement.pro
totype),{createdCallback:function(){this.getAttribute("name")&&this.init()},init
:function(){this.name=this.getAttribute("name"),this["extends"]=this.getAttribut
e("extends"),f.wait(this),this.loadResources(),this.registerWhenReady()},registe
rWhenReady:function(){this.registered||this.waitingForPrototype(this.name)||this
.waitingForQueue()||this.waitingForResources()||f.go(this)},_register:function()
{c(this["extends"])&&!b(this["extends"])&&console.warn("%s is attempting to exte
nd %s, an unregistered element or one that was not registered with Polymer.",thi
s.name,this["extends"]),this.register(this.name,this["extends"]),this.registered
=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNo
Script(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.n
oscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return th
is._needsResources},waitingForQueue:function(){return f.enqueue(this,this.regist
erWhenReady,this._register)},loadResources:function(){this._needsResources=!0,th
is.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(
this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute(
"unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0
}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),functi
on(a){function b(a,b){a?(document.head.appendChild(a),d(b)):b&&b()}function c(a,
c){if(a&&a.length){for(var d,e,f=document.createDocumentFragment(),g=0,h=a.lengt
h;h>g&&(d=a[g]);g++)e=document.createElement("link"),e.rel="import",e.href=d,f.a
ppendChild(e);b(f,c)}else c&&c()}var d=a.whenReady;a["import"]=c,a.importElement
s=b}(Polymer),function(){var a=document.createElement("polymer-element");a.setAt
tribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Pol
ymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate
=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setA
ttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parent
Node),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Ob
ject.create(Polymer.api.declaration.events),b=this;a.findController=function(){r
eturn b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareB
inding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}}
)}(); |
OLD | NEW |