OLD | NEW |
(Empty) | |
| 1 /* @license |
| 2 // Copyright (c) 2012 The Polymer Authors. All rights reserved. |
| 3 // |
| 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are |
| 6 // met: |
| 7 // |
| 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above |
| 11 // copyright notice, this list of conditions and the following disclaimer |
| 12 // in the documentation and/or other materials provided with the |
| 13 // distribution. |
| 14 // * Neither the name of Google Inc. nor the names of its |
| 15 // contributors may be used to endorse or promote products derived from |
| 16 // this software without specific prior written permission. |
| 17 // |
| 18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
| 30 @version 0.0.20131025 |
| 31 */ |
| 32 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e=
{bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c
.cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c
),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}if("
undefined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()
%1e9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.protot
ype={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{valu
e:[b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[
1]:void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),functio
n(a){"use strict";function b(){function a(a){"splice"===a[0].type&&"splice"===a[
1].type&&(b=!0)}if("function"!=typeof Object.observe||"function"!=typeof Array.o
bserve)return!1;var b=!1,c=[0];return Array.observe(c,a),c[1]=1,c.length=0,Objec
t.deliverChangeRecords(a),b}function c(){if(a.document&&"securityPolicy"in a.doc
ument&&!a.document.securityPolicy.allowsEval)return!1;try{var b=new Function("",
"return true;");return b()}catch(c){return!1}}function d(a){return+a===a>>>0}fun
ction e(a){return+a}function f(a){return a===Object(a)}function g(a,b){return a=
==b?0!==a||1/a===1/b:H(a)&&H(b)?!0:a!==a&&b!==b}function h(a){return"string"!=ty
peof a?!1:(a=a.trim(),""==a?!0:"."==a[0]?!1:P.test(a))}function i(a,b){if(b!==Q)
throw Error("Use Path.get to retrieve path objects");return""==a.trim()?this:d(a
)?(this.push(a),this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach
(function(a){this.push(a)},this),G&&!F&&this.length&&(this.getValueFrom=this.com
piledGetValueFromFn()),void 0)}function j(a){if(a instanceof i)return a;null==a&
&(a=""),"string"!=typeof a&&(a=String(a));var b=R[a];if(b)return b;if(!h(a))retu
rn S;var b=new i(a,Q);return R[a]=b,b}function k(b){for(var c=0;T>c&&b.check();)
b.report(),c++;a.testingExposeCycleCount&&(a.dirtyCheckCycleCount=c)}function l(
a){for(var b in a)return!1;return!0}function m(a){return l(a.added)&&l(a.removed
)&&l(a.changed)}function n(a,b){var c={},d={},e={};for(var f in b){var g=a[f];(v
oid 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=void 0)}for(var f in a)f i
n b||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b.length&&(e.length=a.lengt
h),{added:c,removed:d,changed:e}}function o(a,b){var c=b||(Array.isArray(a)?[]:{
});for(var d in a)c[d]=a[d];return Array.isArray(a)&&(c.length=a.length),c}funct
ion p(a,b,c,d){if(this.closed=!1,this.object=a,this.callback=b,this.target=c,thi
s.token=d,this.reporting=!0,F){var e=this;this.boundInternalCallback=function(a)
{e.internalCallback(a)}}q(this)}function q(a){V&&(U.push(a),p._allObserversCount
++)}function r(a,b,c,d){p.call(this,a,b,c,d),this.connect(),this.sync(!0)}functi
on s(a,b,c,d){if(!Array.isArray(a))throw Error("Provided object is not an Array"
);r.call(this,a,b,c,d)}function t(a){this.arr=[],this.callback=a,this.isObserved
=!0}function u(a,b,c,d,e,g,h){var b=b instanceof i?b:j(b);return b&&b.length&&f(
a)?(p.call(this,a,c,d,e),this.valueFn=g,this.setValueFn=h,this.path=b,this.conne
ct(),this.sync(!0),void 0):(this.value_=b?b.getValueFrom(a):void 0,this.value=g?
g(this.value_):this.value_,this.closed=!0,void 0)}function v(a,b,c,d){p.call(thi
s,void 0,a,b,c),this.valueFn=d,this.observed=[],this.values=[],this.value=void 0
,this.oldValue=void 0,this.oldValues=void 0,this.changeFlags=void 0,this.started
=!1}function w(a,b){if("function"==typeof Object.observe){var c=Object.getNotifi
er(a);return function(d,e){var f={object:a,type:d,name:b};2===arguments.length&&
(f.oldValue=e),c.notify(f)}}}function x(a,b,c){for(var d={},e={},f=0;f<b.length;
f++){var g=b[f];$[g.type]?(g.name in c||(c[g.name]=g.oldValue),"updated"!=g.type
&&("new"!=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 t
ype: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=vo
id 0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)
}return{added:d,removed:e,changed:i}}function y(a,b,c){return{index:a,removed:b,
addedCount:c}}function z(){}function A(a,b,c,d,e,f){return db.calcSplices(a,b,c,
d,e,f)}function B(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 C(a,b,c,d){for(var e=y(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i
=a[h];if(i.index+=g,!f){var j=B(e.index,e.index+e.removed.length,i.index,i.index
+i.addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.add
edCount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCoun
t||k){var c=i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.inde
x);Array.prototype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.add
edCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.pus
h.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.
index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.in
dex+=n,g+=n}}}f||a.push(e)}function D(a,b){for(var c=[],f=0;f<b.length;f++){var
g=b[f];switch(g.type){case"splice":C(c,g.index,g.removed.slice(),g.addedCount);b
reak;case"new":case"updated":case"deleted":if(!d(g.name))continue;var h=e(g.name
);if(0>h)continue;C(c,h,[g.oldValue],1);break;default:console.error("Unexpected
record type: "+JSON.stringify(g))}}return c}function E(a,b){var c=[];return D(a,
b).forEach(function(b){return 1==b.addedCount&&1==b.removed.length?(b.removed[0]
!==a[b.index]&&c.push(b),void 0):(c=c.concat(A(a,b.index,b.index+b.addedCount,b.
removed,0,b.removed.length)),void 0)}),c}var F=b(),G=c(),H=a.Number.isNaN||funct
ion(b){return"number"==typeof b&&a.isNaN(b)},I="__proto__"in{}?function(a){retur
n a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);return
Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c,b,Obje
ct.getOwnPropertyDescriptor(a,b))}),c},J="[$_a-zA-Z]",K="[$_a-zA-Z0-9]",L=J+"+"+
K+"*",M="(?:[0-9]|[1-9]+[0-9]+)",N="(?:"+L+"|"+M+")",O="(?:"+N+")(?:\\s*\\.\\s*"
+N+")*",P=new RegExp("^"+O+"$"),Q={},R={};i.get=j,i.prototype=I({__proto__:[],va
lid:!0,toString:function(){return this.join(".")},getValueFrom:function(a,b){for
(var c=0;c<this.length;c++){if(null==a)return;b&&b.observe(a),a=a[this[c]]}retur
n a},compiledGetValueFromFn:function(){var a=this.map(function(a){return d(a)?'[
"'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this.length-1;
e++)this[e],c+=a[e],b+=" &&\n "+c+" != null";return b+=")\n",c+=a[e],b+=" r
eturn "+c+";\nelse\n return undefined;",new Function("obj",b)},setValueFrom:fun
ction(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))re
turn!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var S=new i("",Q);S.vali
d=!1,S.getValueFrom=S.setValueFrom=function(){};var T=1e3;p.prototype={internalC
allback:function(a){this.closed||this.reporting&&this.check(a)&&(this.report(),t
his.testingResults&&(this.testingResults.anyChanged=!0))},close:function(){this.
closed||(this.object&&"function"==typeof this.object.close&&this.object.close(),
this.disconnect(),this.object=void 0,this.closed=!0)},deliver:function(a){this.c
losed||(F?(this.testingResults=a,Object.deliverChangeRecords(this.boundInternalC
allback),this.testingResults=void 0):k(this))},report:function(){this.reporting&
&(this.sync(!1),this.callback&&(this.reportArgs.push(this.token),this.invokeCall
back(this.reportArgs)),this.reportArgs=void 0)},invokeCallback:function(a){try{t
his.callback.apply(this.target,a)}catch(b){p._errorThrownDuringCallback=!0,conso
le.error("Exception caught during observer callback: "+(b.stack||b))}},reset:fun
ction(){this.closed||(F&&(this.reporting=!1,Object.deliverChangeRecords(this.bou
ndInternalCallback),this.reporting=!0),this.sync(!0))}};var U,V=!F||a.forceColle
ctObservers;p._allObserversCount=0,V&&(U=[]);var W=!1,X="function"==typeof Objec
t.deliverAllChangeRecords;a.Platform=a.Platform||{},a.Platform.performMicrotaskC
heckpoint=function(){if(!W){if(X)return Object.deliverAllChangeRecords(),void 0;
if(V){W=!0;var b=0,c={};do{b++;var d=U;U=[],c.anyChanged=!1;for(var e=0;e<d.leng
th;e++){var f=d[e];f.closed||(F?f.deliver(c):f.check()&&(c.anyChanged=!0,f.repor
t()),U.push(f))}}while(T>b&&c.anyChanged);a.testingExposeCycleCount&&(a.dirtyChe
ckCycleCount=b),p._allObserversCount=U.length,W=!1}}},V&&(a.Platform.clearObserv
ers=function(){U=[]}),r.prototype=I({__proto__:p.prototype,connect:function(){F&
&Object.observe(this.object,this.boundInternalCallback)},sync:function(){F||(thi
s.oldObject=o(this.object))},check:function(a){var b,c;if(F){if(!a)return!1;c={}
,b=x(this.object,a,c)}else c=this.oldObject,b=n(this.object,this.oldObject);retu
rn m(b)?!1:(this.reportArgs=[b.added||{},b.removed||{},b.changed||{}],this.repor
tArgs.push(function(a){return c[a]}),!0)},disconnect:function(){F?this.object&&O
bject.unobserve(this.object,this.boundInternalCallback):this.oldObject=void 0}})
,s.prototype=I({__proto__:r.prototype,connect:function(){F&&Array.observe(this.o
bject,this.boundInternalCallback)},sync:function(){F||(this.oldObject=this.objec
t.slice())},check:function(a){var b;if(F){if(!a)return!1;b=E(this.object,a)}else
b=A(this.object,0,this.object.length,this.oldObject,0,this.oldObject.length);re
turn b&&b.length?(this.reportArgs=[b],!0):!1}}),s.applySplices=function(a,b,c){c
.forEach(function(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.
addedCount;)d.push(b[e]),e++;Array.prototype.splice.apply(a,d)})};var Y=Object.g
etPrototypeOf({}),Z=Object.getPrototypeOf([]);t.prototype={reset:function(){this
.isObserved=!this.isObserved},observe:function(a){if(f(a)&&a!==Y&&a!==Z){var b=t
his.arr.indexOf(a);b>=0&&this.arr[b+1]===this.isObserved||(0>b&&(b=this.arr.leng
th,this.arr[b]=a,Object.observe(a,this.callback)),this.arr[b+1]=this.isObserved,
this.observe(Object.getPrototypeOf(a)))}},cleanup:function(){for(var a=0,b=0,c=t
his.isObserved;b<this.arr.length;){var d=this.arr[b];this.arr[b+1]==c?(b>a&&(thi
s.arr[a]=d,this.arr[a+1]=c),a+=2):Object.unobserve(d,this.callback),b+=2}this.ar
r.length=a}},u.prototype=I({__proto__:p.prototype,connect:function(){F&&(this.ob
servedSet=new t(this.boundInternalCallback))},disconnect:function(){this.value=v
oid 0,this.value_=void 0,this.observedSet&&(this.observedSet.reset(),this.observ
edSet.cleanup(),this.observedSet=void 0)},check:function(){return this.observedS
et&&this.observedSet.reset(),this.value_=this.path.getValueFrom(this.object,this
.observedSet),this.observedSet&&this.observedSet.cleanup(),g(this.value_,this.ol
dValue_)?!1:(this.value=this.valueFn?this.valueFn(this.value_):this.value_,this.
reportArgs=[this.value,this.oldValue],!0)},sync:function(a){a&&(this.observedSet
&&this.observedSet.reset(),this.value_=this.path.getValueFrom(this.object,this.o
bservedSet),this.value=this.valueFn?this.valueFn(this.value_):this.value_,this.o
bservedSet&&this.observedSet.cleanup()),this.oldValue_=this.value_,this.oldValue
=this.value},setValue:function(a){this.path&&("function"==typeof this.setValueFn
&&(a=this.setValueFn(a)),this.path.setValueFrom(this.object,a))}}),v.prototype=I
({__proto__:u.prototype,addPath:function(a,b){if(this.started)throw Error("Canno
t add more paths once started.");var b=b instanceof i?b:j(b),c=b?b.getValueFrom(
a):void 0;this.observed.push(a,b),this.values.push(c)},start:function(){this.con
nect(),this.sync(!0)},getValues:function(){this.observedSet&&this.observedSet.re
set();for(var a=!1,b=0;b<this.observed.length;b+=2){var c=this.observed[b+1];if(
c){var d=this.observed[b],e=c.getValueFrom(d,this.observedSet),f=this.values[b/2
];if(!g(e,f)){if(!a&&!this.valueFn){this.oldValues=this.oldValues||[],this.chang
eFlags=this.changeFlags||[];for(var h=0;h<this.values.length;h++)this.oldValues[
h]=this.values[h],this.changeFlags[h]=!1}this.valueFn||(this.changeFlags[b/2]=!0
),this.values[b/2]=e,a=!0}}}return this.observedSet&&this.observedSet.cleanup(),
a},check:function(){if(this.getValues()){if(this.valueFn){if(this.value=this.val
ueFn(this.values),g(this.value,this.oldValue))return!1;this.reportArgs=[this.val
ue,this.oldValue]}else this.reportArgs=[this.values,this.oldValues,this.changeFl
ags,this.observed];return!0}},sync:function(a){a&&(this.getValues(),this.valueFn
&&(this.value=this.valueFn(this.values))),this.valueFn&&(this.oldValue=this.valu
e)},close:function(){if(this.observed){for(var a=0;a<this.observed.length;a+=2){
var b=this.observed[a];b&&"function"==typeof b.close&&b.close()}this.observed=vo
id 0,this.values=void 0}p.prototype.close.call(this)}});var $={"new":!0,updated:
!0,deleted:!0};u.defineProperty=function(a,b,c){var d=c.object,e=j(c.path),f=w(a
,b),g=new u(d,c.path,function(a,b){f&&f("updated",b)});return Object.definePrope
rty(a,b,{get:function(){return e.getValueFrom(d)},set:function(a){e.setValueFrom
(d,a)},configurable:!0}),{close:function(){var c=e.getValueFrom(d);f&&g.deliver(
),g.close(),Object.defineProperty(a,b,{value:c,writable:!0,configurable:!0})}}};
var _=0,ab=1,bb=2,cb=3;z.prototype={calcEditDistances:function(a,b,c,d,e,f){for(
var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(v
ar k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(
a[b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j]
[k]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){for(var b=a.
length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1
][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(_):(e.pus
h(ab),d=g),b--,c--):f==h?(e.push(cb),b--,d=h):(e.push(bb),c--,d=i)}else e.push(c
b),b--;else e.push(bb),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,
f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c
==a.length&&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,0==c
-b&&0==f-e)return[];if(b==c){for(var j=y(b,[],0);f>e;)j.removed.push(d[e++]);ret
urn[j]}if(e==f)return[y(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistan
ces(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o+
+)switch(k[o]){case _:j&&(l.push(j),j=void 0),m++,n++;break;case ab:j||(j=y(m,[]
,0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case bb:j||(j=y(m,[],0)),
j.addedCount++,m++;break;case cb:j||(j=y(m,[],0)),j.removed.push(d[n]),n++}retur
n j&&l.push(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++)if(!this.equa
ls(a[d],b[d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.length
,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSplices:
function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:functio
n(a,b){return a===b}};var db=new z;a.Observer=p,a.Observer.hasObjectObserve=F,a.
ArrayObserver=s,a.ArrayObserver.calculateSplices=function(a,b){return db.calcula
teSplices(a,b)},a.ArraySplice=z,a.ObjectObserver=r,a.PathObserver=u,a.CompoundPa
thObserver=v,a.Path=i}("undefined"!=typeof global&&global?global:this),window.Pl
atform=window.Platform||{},window.logFlags=window.logFlags||{},function(a){var b
=a.flags||{};location.search.slice(1).split("&").forEach(function(a){a=a.split("
="),a[0]&&(b[a[0]]=a[1]||!0)}),b.shadow=b.shadow||b.shadowdom||b.polyfill,b.shad
ow="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.createShadowRoot&&"po
lyfill",a.flags=b}(Platform),"polyfill"===Platform.flags.shadow){var ShadowDOMPo
lyfill={};!function(a){"use strict";function b(a){if(!a)throw new Error("Asserti
on failed")}function c(a,b){return Object.getOwnPropertyNames(b).forEach(functio
n(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))}),a}functio
n d(a,b){return Object.getOwnPropertyNames(b).forEach(function(c){switch(c){case
"arguments":case"caller":case"length":case"name":case"prototype":case"toString":
return}Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))}),a}funct
ion e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){var
b=a.__proto__||Object.getPrototypeOf(a),c=D.get(b);if(c)return c;var d=f(b),e=s(
d);return p(b,e,a),e}function g(a,b){n(a,b,!0)}function h(a,b){n(b,a,!1)}functio
n i(a){return/^on[a-z]+$/.test(a)}function j(a){return/^\w[a-zA-Z_0-9]*$/.test(a
)}function k(a){return G&&j(a)?new Function("return this.impl."+a):function(){re
turn this.impl[a]}}function l(a){return G&&j(a)?new Function("v","this.impl."+a+
" = v"):function(b){this.impl[a]=b}}function m(a){return G&&j(a)?new Function("r
eturn this.impl."+a+".apply(this.impl, arguments)"):function(){return this.impl[
a].apply(this.impl,arguments)}}function n(b,c,d){Object.getOwnPropertyNames(b).f
orEach(function(e){if(!(e in c)){J&&b.__lookupGetter__(e);var f;try{f=Object.get
OwnPropertyDescriptor(b,e)}catch(g){f=K}var h,j;if(d&&"function"==typeof f.value
)return c[e]=m(e),void 0;var n=i(e);h=n?a.getEventHandlerGetter(e):k(e),(f.writa
ble||f.set)&&(j=n?a.getEventHandlerSetter(e):l(e)),Object.defineProperty(c,e,{ge
t:h,set:j,configurable:f.configurable,enumerable:f.enumerable})}})}function o(a,
b,c){var e=a.prototype;p(e,b,c),d(b,a)}function p(a,c,d){var e=c.prototype;b(voi
d 0===D.get(a)),D.set(a,c),E.set(e,a),g(a,e),d&&h(e,d)}function q(a,b){return D.
get(b.prototype)===a}function r(a){var b=Object.getPrototypeOf(a),c=f(b),d=s(c);
return p(b,d,a),d}function s(a){function b(b){a.call(this,b)}return b.prototype=
Object.create(a.prototype),b.prototype.constructor=b,b}function t(a){return a in
stanceof F.EventTarget||a instanceof F.Event||a instanceof F.Range||a instanceof
F.DOMImplementation||a instanceof F.CanvasRenderingContext2D||F.WebGLRenderingC
ontext&&a instanceof F.WebGLRenderingContext}function u(a){return a instanceof N
||a instanceof M||a instanceof O||a instanceof P||a instanceof L||a instanceof Q
||R&&a instanceof R}function v(a){return null===a?null:(b(u(a)),a.polymerWrapper
_||(a.polymerWrapper_=new(f(a))(a)))}function w(a){return null===a?null:(b(t(a))
,a.impl)}function x(a){return a&&t(a)?w(a):a}function y(a){return a&&!t(a)?v(a):
a}function z(a,c){null!==c&&(b(u(a)),b(void 0===c||t(c)),a.polymerWrapper_=c)}fu
nction A(a,b,c){Object.defineProperty(a.prototype,b,{get:c,configurable:!0,enume
rable:!0})}function B(a,b){A(a,b,function(){return v(this.impl[b])})}function C(
a,b){a.forEach(function(a){b.forEach(function(b){a.prototype[b]=function(){var a
=y(this);return a[b].apply(a,arguments)}})})}var D=new WeakMap,E=new WeakMap,F=O
bject.create(null),G=!("securityPolicy"in document)||document.securityPolicy.all
owsEval;if(G)try{var H=new Function("","return true;");G=H()}catch(I){}Object.ge
tOwnPropertyNames(window);var J=/Firefox/.test(navigator.userAgent),K={get:funct
ion(){},set:function(){},configurable:!0,enumerable:!0},L=window.DOMImplementati
on,M=window.Event,N=window.Node,O=window.Window,P=window.Range,Q=window.CanvasRe
nderingContext2D,R=window.WebGLRenderingContext;a.assert=b,a.constructorTable=D,
a.defineGetter=A,a.defineWrapGetter=B,a.forwardMethodsToWrapper=C,a.isWrapperFor
=q,a.mixin=c,a.nativePrototypeTable=E,a.oneOf=e,a.registerObject=r,a.registerWra
pper=o,a.rewrap=z,a.unwrap=w,a.unwrapIfNeeded=x,a.wrap=v,a.wrapIfNeeded=y,a.wrap
pers=F}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a
instanceof O.ShadowRoot}function c(a){var b=a.localName;return"content"===b||"sh
adow"===b}function d(a){return!!a.shadowRoot}function e(a){var b;return a.parent
Node||(b=a.defaultView)&&N(b)||null}function f(f,g,h){if(h.length)return h.shift
();if(b(f))return j(f)||a.getHostForShadowRoot(f);var i=a.eventParentsTable.get(
f);if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0]}if(g&&c(f)){var l=f.
parentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g),k=0;k<m.length;k++)if
(m[k].contains(n))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[];
e;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.push(k)}else d.length||d
.push(e);var l=d[d.length-1];g.push({target:l,currentTarget:e}),b(e)&&d.pop(),e=
f(e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0;b--)if(!c(a[b]))return
a[b];return null}function i(d,e){for(var g=[];d;){for(var i=[],j=e,l=void 0;j;)
{var n=null;if(i.length){if(c(j)&&(n=h(i),k(l))){var o=i[i.length-1];i.push(o)}}
else i.push(j);if(m(j,d))return i[i.length-1];b(j)&&i.pop(),l=j,j=f(j,n,g)}d=b(d
)?a.getHostForShadowRoot(d):d.parentNode}}function j(b){return a.insertionParent
Table.get(b)}function k(a){return j(a)}function l(a){for(var b;b=a.parentNode;)a
=b;return a}function m(a,b){return l(a)===l(b)}function n(b,c){if(b===c)return!0
;if(b instanceof O.ShadowRoot){var d=a.getHostForShadowRoot(b);return n(l(d),c)}
return!1}function o(){Z++}function p(){Z--}function q(b){if(!Q.get(b)){if(Q.set(
b,!0),b instanceof $){if(Z)return}else a.renderAllPending();var c=N(b.target),d=
N(b);return r(d,c)}}function r(a,b){var c=g(b);return"load"===a.type&&2===c.leng
th&&c[0].target instanceof O.Document&&c.shift(),Y.set(a,c),s(a,c)&&t(a,c)&&u(a,
c),U.set(a,x.NONE),S.set(a,null),a.defaultPrevented}function s(a,b){for(var c,d=
b.length-1;d>0;d--){var e=b[d].target,f=b[d].currentTarget;if(e!==f&&(c=x.CAPTUR
ING_PHASE,!v(b[d],a,c)))return!1}return!0}function t(a,b){var c=x.AT_TARGET;retu
rn v(b[0],a,c)}function u(a,b){for(var c,d=a.bubbles,e=1;e<b.length;e++){var f=b
[e].target,g=b[e].currentTarget;if(f===g)c=x.AT_TARGET;else{if(!d||W.get(a))cont
inue;c=x.BUBBLING_PHASE}if(!v(b[e],a,c))return}}function v(a,b,c){var d=a.target
,e=a.currentTarget,f=P.get(e);if(!f)return!0;if("relatedTarget"in b){var g=M(b);
if(g.relatedTarget){var h=N(g.relatedTarget),j=i(e,h);if(j===d)return!0;T.set(b,
j)}}U.set(b,c);var k=b.type,l=!1;R.set(b,d),S.set(b,e);for(var m=0;m<f.length;m+
+){var n=f[m];if(n.removed)l=!0;else if(!(n.type!==k||!n.capture&&c===x.CAPTURIN
G_PHASE||n.capture&&c===x.BUBBLING_PHASE))try{if("function"==typeof n.handler?n.
handler.call(e,b):n.handler.handleEvent(b),W.get(b))return!1}catch(o){window.one
rror?window.onerror(o.message):console.error(o,o.stack)}}if(l){var p=f.slice();f
.length=0;for(var m=0;m<p.length;m++)p[m].removed||f.push(p[m])}return!V.get(b)}
function w(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}function x(
a,b){return a instanceof _?(this.impl=a,void 0):N(B(_,"Event",a,b))}function y(a
){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:M(a.relatedTar
get)}}):a}function z(a,b,c){var d=window[a],e=function(b,c){return b instanceof
d?(this.impl=b,void 0):N(B(d,a,b,c))};return e.prototype=Object.create(b.prototy
pe),c&&K(e.prototype,c),d&&(d.prototype["init"+a]?L(d,e,document.createEvent(a))
:L(d,e,new d("temp"))),e}function A(a,b){return function(){arguments[b]=M(argume
nts[b]);var c=M(this);c[a].apply(c,arguments)}}function B(a,b,c,d){if(jb)return
new a(c,y(d));var e=M(document.createEvent(b)),f=ib[b],g=[c];return Object.keys(
f).forEach(function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=M
(b)),g.push(b)}),e["init"+b].apply(e,g),e}function C(a){return"function"==typeof
a?!0:a&&a.handleEvent}function D(a){this.impl=a}function E(b){return b instance
of O.ShadowRoot&&(b=a.getHostForShadowRoot(b)),M(b)}function F(a){J(a,mb)}functi
on G(b,c,d,e){a.renderAllPending();for(var f=N(nb.call(c.impl,d,e)),h=g(f,this),
i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}return nul
l}function H(a){return function(){var b=X.get(this);return b&&b[a]&&b[a].value||
null}}function I(a){var b=a.slice(2);return function(c){var d=X.get(this);d||(d=
Object.create(null),X.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e
.wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1
?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)}
;this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var J=a.forwardMethods
ToWrapper,K=a.mixin,L=a.registerWrapper,M=a.unwrap,N=a.wrap,O=a.wrappers;new Wea
kMap;var P=new WeakMap,Q=new WeakMap,R=new WeakMap,S=new WeakMap,T=new WeakMap,U
=new WeakMap,V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=0,$=windo
w.MutationEvent;w.prototype={equals:function(a){return this.handler===a.handler&
&this.type===a.type&&this.capture===a.capture},get removed(){return null===this.
handler},remove:function(){this.handler=null}};var _=window.Event;x.prototype={g
et target(){return R.get(this)},get currentTarget(){return S.get(this)},get even
tPhase(){return U.get(this)},get path(){var a=new O.NodeList,b=Y.get(this);if(b)
{for(var c=0,d=b.length-1,e=l(S.get(this)),f=0;d>=f;f++){var g=b[f].currentTarge
t,h=l(g);n(e,h)&&(f!==d||g instanceof O.Node)&&(a[c++]=g)}a.length=c}return a},s
topPropagation:function(){V.set(this,!0)},stopImmediatePropagation:function(){V.
set(this,!0),W.set(this,!0)}},L(_,x,document.createEvent("Event"));var ab=z("UIE
vent",x),bb=z("CustomEvent",x),cb={get relatedTarget(){return T.get(this)||N(M(t
his).relatedTarget)}},db=K({initMouseEvent:A("initMouseEvent",14)},cb),eb=K({ini
tFocusEvent:A("initFocusEvent",5)},cb),fb=z("MouseEvent",ab,db),gb=z("FocusEvent
",ab,eb),hb=z("MutationEvent",x,{initMutationEvent:A("initMutationEvent",3),get
relatedNode(){return N(this.impl.relatedNode)}}),ib=Object.create(null),jb=funct
ion(){try{new window.MouseEvent("click")}catch(a){return!1}return!0}();if(!jb){v
ar kb=function(a,b,c){if(c){var d=ib[c];b=K(K({},d),b)}ib[a]=b};kb("Event",{bubb
les:!1,cancelable:!1}),kb("CustomEvent",{detail:null},"Event"),kb("UIEvent",{vie
w:null,detail:0},"Event"),kb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY
:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIE
vent"),kb("FocusEvent",{relatedTarget:null},"UIEvent")}var lb=window.EventTarget
,mb=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window].for
Each(function(a){var b=a.prototype;mb.forEach(function(a){Object.defineProperty(
b,a+"_",{value:b[a]})})}),D.prototype={addEventListener:function(a,b,c){if(C(b))
{var d=new w(a,b,c),e=P.get(this);if(e){for(var f=0;f<e.length;f++)if(d.equals(e
[f]))return}else e=[],P.set(this,e);e.push(d);var g=E(this);g.addEventListener_(
a,q,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=P.get(this);if(
d){for(var e=0,f=!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture===c&&(e++,d[g
].handler===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.removeEventLis
tener_(a,q,!0)}}},dispatchEvent:function(a){var b=E(this),c=M(a);return Q.set(c,
!1),b.dispatchEvent_(c)}},lb&&L(lb,D);var nb=document.elementFromPoint;a.adjustR
elatedTarget=i,a.elementFromPoint=G,a.getEventHandlerGetter=H,a.getEventHandlerS
etter=I,a.muteMutationEvents=o,a.unmuteMutationEvents=p,a.wrapEventTargetMethods
=F,a.wrappers.CustomEvent=bb,a.wrappers.Event=x,a.wrappers.EventTarget=D,a.wrapp
ers.FocusEvent=gb,a.wrappers.MouseEvent=fb,a.wrappers.MutationEvent=hb,a.wrapper
s.UIEvent=ab}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){O
bject.defineProperty(a,b,{enumerable:!1})}function c(){this.length=0,b(this,"len
gth")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a.length;e>d;d++)b
[d]=f(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]=function(){return
d(this.impl[b].apply(this.impl,arguments))}}var f=a.wrap;c.prototype={item:func
tion(a){return this[a]}},b(c.prototype,"item"),a.wrappers.NodeList=c,a.addWrapNo
deListMethod=e,a.wrapNodeList=d}(this.ShadowDOMPolyfill),function(a){"use strict
";function b(a){o(a instanceof k)}function c(a,b,c,d){if(!(a instanceof Document
Fragment))return a.parentNode&&a.parentNode.removeChild(a),a.parentNode_=b,a.pre
viousSibling_=c,a.nextSibling_=d,c&&(c.nextSibling_=a),d&&(d.previousSibling_=a)
,[a];for(var e,f=[];e=a.firstChild;)a.removeChild(e),f.push(e),e.parentNode_=b;f
or(var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||c,f[g].nextSibling_=f[g+
1]||d;return c&&(c.nextSibling_=f[0]),d&&(d.previousSibling_=f[f.length-1]),f}fu
nction d(a){if(a instanceof DocumentFragment){for(var b=[],c=0,d=a.firstChild;d;
d=d.nextSibling)b[c++]=d;return b}return[a]}function e(a){for(var b=0;b<a.length
;b++)a[b].nodeWasAdded_()}function f(a,b){var c=a.nodeType===k.DOCUMENT_NODE?a:a
.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function g(b,c){if(c.length){
var d=b.ownerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.length;e++)a.ado
ptNodeNoRemove(c[e],d)}}function h(a,b){g(a,b);var c=b.length;if(1===c)return r(
b[0]);for(var d=r(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.append
Child(r(b[e]));return d}function i(a){if(a.invalidateShadowRenderer()){for(var b
=a.firstChild;b;){o(b.parentNode===a);var c=b.nextSibling,d=r(b),e=d.parentNode;
e&&y.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode_=null,b=c}a.firstC
hild_=a.lastChild_=null}else for(var c,f=r(a),g=f.firstChild;g;)c=g.nextSibling,
y.call(f,g),g=c}function j(a){var b=a.parentNode;return b&&b.invalidateShadowRen
derer()}function k(a){o(a instanceof u),l.call(this,a),this.parentNode_=void 0,t
his.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.prev
iousSibling_=void 0}var l=a.wrappers.EventTarget,m=a.wrappers.NodeList,n=a.defin
eWrapGetter,o=a.assert,p=a.mixin,q=a.registerWrapper,r=a.unwrap,s=a.wrap,t=a.wra
pIfNeeded,u=window.Node,v=u.prototype.appendChild,w=u.prototype.insertBefore,x=u
.prototype.replaceChild,y=u.prototype.removeChild,z=u.prototype.compareDocumentP
osition;k.prototype=Object.create(l.prototype),p(k.prototype,{appendChild:functi
on(a){b(a);var g;if(this.invalidateShadowRenderer()||j(a)){var i=this.lastChild,
k=null;g=c(a,this,i,k),this.lastChild_=g[g.length-1],i||(this.firstChild_=g[0]),
v.call(this.impl,h(this,g))}else g=d(a),f(this,a),v.call(this.impl,r(a));return
e(g),a},insertBefore:function(a,i){if(!i)return this.appendChild(a);b(a),b(i),o(
i.parentNode===this);var k;if(this.invalidateShadowRenderer()||j(a)){var l=i.pre
viousSibling,m=i;k=c(a,this,l,m),this.firstChild===i&&(this.firstChild_=k[0]);va
r n=r(i),p=n.parentNode;p?w.call(p,h(this,k),n):g(this,k)}else k=d(a),f(this,a),
w.call(this.impl,r(a),r(i));return e(k),a},removeChild:function(a){if(b(a),a.par
entNode!==this)throw new Error("NotFoundError");var c=r(a);if(this.invalidateSha
dowRenderer()){var d=this.firstChild,e=this.lastChild,f=a.nextSibling,g=a.previo
usSibling,h=c.parentNode;h&&y.call(h,c),d===a&&(this.firstChild_=f),e===a&&(this
.lastChild_=g),g&&(g.nextSibling_=f),f&&(f.previousSibling_=g),a.previousSibling
_=a.nextSibling_=a.parentNode_=void 0}else y.call(this.impl,c);return a},replace
Child:function(a,g){if(b(a),b(g),g.parentNode!==this)throw new Error("NotFoundEr
ror");var i,k=r(g);if(this.invalidateShadowRenderer()||j(a)){var l=g.previousSib
ling,m=g.nextSibling;m===a&&(m=a.nextSibling),i=c(a,this,l,m),this.firstChild===
g&&(this.firstChild_=i[0]),this.lastChild===g&&(this.lastChild_=i[i.length-1]),g
.previousSibling_=g.nextSibling_=g.parentNode_=void 0,k.parentNode&&x.call(k.par
entNode,h(this,i),k)}else i=d(a),f(this,a),x.call(this.impl,r(a),k);return e(i),
g},nodeWasAdded_:function(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeWa
sAdded_()},hasChildNodes:function(){return null!==this.firstChild},get parentNod
e(){return void 0!==this.parentNode_?this.parentNode_:s(this.impl.parentNode)},g
et firstChild(){return void 0!==this.firstChild_?this.firstChild_:s(this.impl.fi
rstChild)},get lastChild(){return void 0!==this.lastChild_?this.lastChild_:s(thi
s.impl.lastChild)},get nextSibling(){return void 0!==this.nextSibling_?this.next
Sibling_:s(this.impl.nextSibling)},get previousSibling(){return void 0!==this.pr
eviousSibling_?this.previousSibling_:s(this.impl.previousSibling)},get parentEle
ment(){for(var a=this.parentNode;a&&a.nodeType!==k.ELEMENT_NODE;)a=a.parentNode;
return a},get textContent(){for(var a="",b=this.firstChild;b;b=b.nextSibling)a+=
b.textContent;return a},set textContent(a){if(this.invalidateShadowRenderer()){i
f(i(this),""!==a){var b=this.impl.ownerDocument.createTextNode(a);this.appendChi
ld(b)}}else this.impl.textContent=a},get childNodes(){for(var a=new m,b=0,c=this
.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},cloneNode:function(a
){if(!this.invalidateShadowRenderer())return s(this.impl.cloneNode(a));var b=s(t
his.impl.cloneNode(!1));if(a)for(var c=this.firstChild;c;c=c.nextSibling)b.appen
dChild(c.cloneNode(!0));return b},contains:function(a){if(!a)return!1;if(a=t(a),
a===this)return!0; |
| 33 var b=a.parentNode;return b?this.contains(b):!1},compareDocumentPosition:functio
n(a){return z.call(this.impl,r(a))}}),n(k,"ownerDocument"),q(u,k,document.create
DocumentFragment()),delete k.prototype.querySelector,delete k.prototype.querySel
ectorAll,k.prototype=p(Object.create(l.prototype),k.prototype),a.wrappers.Node=k
}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a,c){for(var d,e=a
.firstElementChild;e;){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.nextEle
mentSibling}return null}function c(a,b,d){for(var e=a.firstElementChild;e;)e.mat
ches(b)&&(d[d.length++]=e),c(e,b,d),e=e.nextElementSibling;return d}var d={query
Selector:function(a){return b(this,a)},querySelectorAll:function(a){return c(thi
s,a,new NodeList)}},e={getElementsByTagName:function(a){return this.querySelecto
rAll(a)},getElementsByClassName:function(a){return this.querySelectorAll("."+a)}
,getElementsByTagNameNS:function(a,b){if("*"===a)return this.getElementsByTagNam
e(b);for(var c=new NodeList,d=this.getElementsByTagName(b),e=0,f=0;e<d.length;e+
+)d[e].namespaceURI===a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElementsByInte
rface=e,a.SelectorsInterface=d}(this.ShadowDOMPolyfill),function(a){"use strict"
;function b(a){for(;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}
function c(a){for(;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return
a}var d=a.wrappers.NodeList,e={get firstElementChild(){return b(this.firstChild
)},get lastElementChild(){return c(this.lastChild)},get childElementCount(){for(
var a=0,b=this.firstElementChild;b;b=b.nextElementSibling)a++;return a},get chil
dren(){for(var a=new d,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b
++]=c;return a.length=b,a}},f={get nextElementSibling(){return b(this.nextSiblin
g)},get previousElementSibling(){return c(this.previousSibling)}};a.ChildNodeInt
erface=f,a.ParentNodeInterface=e}(this.ShadowDOMPolyfill),function(a){"use stric
t";function b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a
.mixin,f=a.registerWrapper,g=window.CharacterData;b.prototype=Object.create(d.pr
ototype),e(b.prototype,{get textContent(){return this.data},set textContent(a){t
his.data=a}}),e(b.prototype,c),f(g,b,document.createTextNode("")),a.wrappers.Cha
racterData=b}(this.ShadowDOMPolyfill),function(a){"use strict";function b(b,c){v
ar d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.dependsOnA
ttribute(c)&&e.invalidate()}}function c(a){g.call(this,a)}function d(a,c,d){var
e=d||c;Object.defineProperty(a,c,{get:function(){return this.impl[c]},set:functi
on(a){this.impl[c]=a,b(this,e)},configurable:!0,enumerable:!0})}var e=a.ChildNod
eInterface,f=a.GetElementsByInterface,g=a.wrappers.Node,h=a.ParentNodeInterface,
i=a.SelectorsInterface;a.addWrapNodeListMethod;var j=a.mixin,k=a.oneOf,l=a.regis
terWrapper,m=a.wrappers,n=window.Element,o=k(n.prototype,["matches","mozMatchesS
elector","msMatchesSelector","webkitMatchesSelector"]),p=n.prototype[o];c.protot
ype=Object.create(g.prototype),j(c.prototype,{createShadowRoot:function(){var b=
new m.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost
(this);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShadowR
oot_||null},setAttribute:function(a,c){this.impl.setAttribute(a,c),b(this,a)},re
moveAttribute:function(a){this.impl.removeAttribute(a),b(this,a)},matches:functi
on(a){return p.call(this.impl,a)}}),c.prototype[o]=function(a){return this.match
es(a)},n.prototype.webkitCreateShadowRoot&&(c.prototype.webkitCreateShadowRoot=c
.prototype.createShadowRoot),d(c.prototype,"id"),d(c.prototype,"className","clas
s"),j(c.prototype,e),j(c.prototype,f),j(c.prototype,h),j(c.prototype,i),l(n,c),a
.matchesName=o,a.wrappers.Element=c}(this.ShadowDOMPolyfill),function(a){"use st
rict";function b(a){switch(a){case"&":return"&";case"<":return"<";case'"'
:return"""}}function c(a){return a.replace(r,b)}function d(a){switch(a.node
Type){case Node.ELEMENT_NODE:for(var b,d=a.tagName.toLowerCase(),f="<"+d,g=a.att
ributes,h=0;b=g[h];h++)f+=" "+b.name+'="'+c(b.value)+'"';return f+=">",s[d]?f:f+
e(a)+"</"+d+">";case Node.TEXT_NODE:return c(a.nodeValue);case Node.COMMENT_NODE
:return"<!--"+c(a.nodeValue)+"-->";default:throw console.error(a),new Error("not
implemented")}}function e(a){for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=d
(c);return b}function f(a,b,c){var d=c||"div";a.textContent="";var e=p(a.ownerDo
cument.createElement(d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(q
(f))}function g(a){l.call(this,a)}function h(b){return function(){return a.rende
rAllPending(),this.impl[b]}}function i(a){m(g,a,h(a))}function j(b){Object.defin
eProperty(g.prototype,b,{get:h(b),set:function(c){a.renderAllPending(),this.impl
[b]=c},configurable:!0,enumerable:!0})}function k(b){Object.defineProperty(g.pro
totype,b,{value:function(){return a.renderAllPending(),this.impl[b].apply(this.i
mpl,arguments)},configurable:!0,enumerable:!0})}var l=a.wrappers.Element,m=a.def
ineGetter,n=a.mixin,o=a.registerWrapper,p=a.unwrap,q=a.wrap,r=/&|<|"/g,s={area:!
0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:
!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},t=window.HTMLElement;g.prototype=
Object.create(l.prototype),n(g.prototype,{get innerHTML(){return e(this)},set in
nerHTML(a){this.invalidateShadowRenderer()?f(this,a,this.tagName):this.impl.inne
rHTML=a},get outerHTML(){return d(this)},set outerHTML(a){var b=this.parentNode;
b&&(b.invalidateShadowRenderer(),this.impl.outerHTML=a)}}),["clientHeight","clie
ntLeft","clientTop","clientWidth","offsetHeight","offsetLeft","offsetTop","offse
tWidth","scrollHeight","scrollWidth"].forEach(i),["scrollLeft","scrollTop"].forE
ach(j),["getBoundingClientRect","getClientRects","scrollIntoView"].forEach(k),o(
t,g,document.createElement("b")),a.wrappers.HTMLElement=g,a.getInnerHTML=e,a.set
InnerHTML=f}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.ca
ll(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g
=window.HTMLCanvasElement;b.prototype=Object.create(c.prototype),d(b.prototype,{
getContext:function(){var a=this.impl.getContext.apply(this.impl,arguments);retu
rn a&&f(a)}}),e(g,b,document.createElement("canvas")),a.wrappers.HTMLCanvasEleme
nt=b}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this
,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLCont
entElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get select(){re
turn this.getAttribute("select")},set select(a){this.setAttribute("select",a)},s
etAttribute:function(a,b){c.prototype.setAttribute.call(this,a,b),"select"===Str
ing(a).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.
HTMLContentElement=b}(this.ShadowDOMPolyfill),function(a){"use strict";function
b(a){d.call(this,a)}function c(a,b){if(!(this instanceof c))throw new TypeError(
"DOM object constructor cannot be called as a function.");var e=f(document.creat
eElement("img"));void 0!==a&&(e.width=a),void 0!==b&&(e.height=b),d.call(this,e)
,g(e,this)}var d=a.wrappers.HTMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewra
p,h=window.HTMLImageElement;b.prototype=Object.create(d.prototype),e(h,b,documen
t.createElement("img")),c.prototype=b.prototype,a.wrappers.HTMLImageElement=b,a.
wrappers.Image=c}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a)
{c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=win
dow.HTMLShadowElement;b.prototype=Object.create(c.prototype),d(b.prototype,{}),f
&&e(f,b),a.wrappers.HTMLShadowElement=b}(this.ShadowDOMPolyfill),function(a){"us
e strict";function b(a){if(!a.defaultView)return a;var b=o.get(a);if(!b){for(b=a
.implementation.createHTMLDocument("");b.lastChild;)b.removeChild(b.lastChild);o
.set(a,b)}return b}function c(a){var c,d=b(a.ownerDocument),e=l(d.createDocument
Fragment());for(h();c=a.firstChild;)e.appendChild(c);return k(),e}function d(a){
if(e.call(this,a),!p){var b=c(a);n.set(this,m(b))}}var e=a.wrappers.HTMLElement,
f=a.getInnerHTML,g=a.mixin,h=a.muteMutationEvents,i=a.registerWrapper,j=a.setInn
erHTML,k=a.unmuteMutationEvents,l=a.unwrap,m=a.wrap,n=new WeakMap,o=new WeakMap,
p=window.HTMLTemplateElement;d.prototype=Object.create(e.prototype),g(d.prototyp
e,{get content(){return p?m(this.impl.content):n.get(this)},get innerHTML(){retu
rn f(this.content)},set innerHTML(a){j(this.content,a)}}),p&&i(p,d),a.wrappers.H
TMLTemplateElement=d}(this.ShadowDOMPolyfill),function(a){"use strict";function
b(a){switch(a.localName){case"content":return new c(a);case"shadow":return new e
(a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentEl
ement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLT
emplateElement;a.mixin;var g=a.registerWrapper,h=window.HTMLUnknownElement;b.pro
totype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(this.S
hadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.mix
in,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.CanvasRenderingContext2D;c(b
.prototype,{get canvas(){return f(this.impl.canvas)},drawImage:function(){argume
nts[0]=e(arguments[0]),this.impl.drawImage.apply(this.impl,arguments)},createPat
tern:function(){return arguments[0]=e(arguments[0]),this.impl.createPattern.appl
y(this.impl,arguments)}}),d(g,b),a.wrappers.CanvasRenderingContext2D=b}(this.Sha
dowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin
,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=window.WebGLRenderingContext;g&&(c(b.
prototype,{get canvas(){return f(this.impl.canvas)},texImage2D:function(){argume
nts[5]=e(arguments[5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubIm
age2D:function(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this
.impl,arguments)}}),d(g,b),a.wrappers.WebGLRenderingContext=b)}(this.ShadowDOMPo
lyfill),function(a){"use strict";var b=a.GetElementsByInterface,c=a.ParentNodeIn
terface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(document.createD
ocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototype,b);var h=f(do
cument.createTextNode("")),i=f(document.createComment(""));a.wrappers.Comment=i,
a.wrappers.DocumentFragment=g,a.wrappers.Text=h}(this.ShadowDOMPolyfill),functio
n(a){"use strict";function b(a){var b=i(a.impl.ownerDocument.createDocumentFragm
ent());c.call(this,b),g(b,this);var d=a.shadowRoot;k.set(this,d),j.set(this,a)}v
ar c=a.wrappers.DocumentFragment,d=a.elementFromPoint,e=a.getInnerHTML,f=a.mixin
,g=a.rewrap,h=a.setInnerHTML,i=a.unwrap,j=new WeakMap,k=new WeakMap;b.prototype=
Object.create(c.prototype),f(b.prototype,{get innerHTML(){return e(this)},set in
nerHTML(a){h(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){retu
rn k.get(this)||null},invalidateShadowRenderer:function(){return j.get(this).inv
alidateShadowRenderer()},elementFromPoint:function(a,b){return d(this,this.owner
Document,a,b)},getElementById:function(a){return this.querySelector("#"+a)}}),a.
wrappers.ShadowRoot=b,a.getHostForShadowRoot=function(a){return j.get(a)}}(this.
ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSibling_=a.p
reviousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}function
c(a,c,e){var f=G(a),g=G(c),h=e?G(e):null;if(d(c),b(c),e)a.firstChild===e&&(a.fir
stChild_=e),e.previousSibling_=e.previousSibling;else{a.lastChild_=a.lastChild,a
.lastChild===a.firstChild&&(a.firstChild_=a.firstChild);var i=H(f.lastChild);i&&
(i.nextSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=G(a),d=c.
parentNode;if(d){var e=H(d);b(a),a.previousSibling&&(a.previousSibling.nextSibli
ng_=a),a.nextSibling&&(a.nextSibling.previousSibling_=a),e.lastChild===a&&(e.las
tChild_=a),e.firstChild===a&&(e.firstChild_=a),d.removeChild(c)}}function e(a,b)
{g(b).push(a),x(a,b);var c=J.get(a);c||J.set(a,c=[]),c.push(b)}function f(a){I.s
et(a,[])}function g(a){return I.get(a)}function h(a){for(var b=[],c=0,d=a.firstC
hild;d;d=d.nextSibling)b[c++]=d;return b}function i(a,b,c){for(var d=a.firstChil
d;d;d=d.nextSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}function j(a,b){v
ar c=b.getAttribute("select");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a in
stanceof y))return!1;if(!M.test(c))return!1;if(":"===c[0]&&!N.test(c))return!1;t
ry{return a.matches(c)}catch(d){return!1}}function k(){for(var a=0;a<P.length;a+
+)P[a].render();P=[]}function l(){F=null,k()}function m(a){var b=L.get(a);return
b||(b=new q(a),L.set(a,b)),b}function n(a){for(;a;a=a.parentNode)if(a instanceo
f C)return a;return null}function o(a){return m(D(a))}function p(a){this.skip=!1
,this.node=a,this.childNodes=[]}function q(a){this.host=a,this.dirty=!1,this.inv
alidateAttributes(),this.associateNode(a)}function r(a){return a instanceof z}fu
nction s(a){return a instanceof z}function t(a){return a instanceof A}function u
(a){return a instanceof A}function v(a){return a.shadowRoot}function w(a){for(va
r b=[],c=a.shadowRoot;c;c=c.olderShadowRoot)b.push(c);return b}function x(a,b){K
.set(a,b)}var y=a.wrappers.Element,z=a.wrappers.HTMLContentElement,A=a.wrappers.
HTMLShadowElement,B=a.wrappers.Node,C=a.wrappers.ShadowRoot;a.assert;var D=a.get
HostForShadowRoot;a.mixin,a.muteMutationEvents;var E=a.oneOf;a.unmuteMutationEve
nts;var F,G=a.unwrap,H=a.wrap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=new We
akMap,M=/^[*.:#[a-zA-Z_|]/,N=new RegExp("^:("+["link","visited","target","enable
d","disabled","checked","indeterminate","nth-child","nth-last-child","nth-of-typ
e","nth-last-of-type","first-child","last-child","first-of-type","last-of-type",
"only-of-type"].join("|")+")"),O=E(window,["requestAnimationFrame","mozRequestAn
imationFrame","webkitRequestAnimationFrame","setTimeout"]),P=[],Q=new ArraySplic
e;Q.equals=function(a,b){return G(a.node)===b},p.prototype={append:function(a){v
ar b=new p(a);return this.childNodes.push(b),b},sync:function(a){if(!this.skip){
for(var b=this.node,e=this.childNodes,f=h(G(b)),g=a||new WeakMap,i=Q.calculateSp
lices(e,f),j=0,k=0,l=0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j+
+].sync(g);for(var o=n.removed.length,p=0;o>p;p++){var q=H(f[k++]);g.get(q)||d(q
)}for(var r=n.addedCount,s=f[k]&&H(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,
u,s),g.set(u,!0),t.sync(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.pro
totype={render:function(a){if(this.dirty){this.invalidateAttributes(),this.treeC
omposition();var b=this.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e
=a||new p(b),f=c.firstChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.syn
c(),this.dirty=!1}},invalidate:function(){if(!this.dirty){if(this.dirty=!0,P.pus
h(this),F)return;F=window[O](l,0)}},renderNode:function(a,b,c,d){if(v(c)){b=b.ap
pend(c);var e=m(c);e.dirty=!0,e.render(b)}else r(c)?this.renderInsertionPoint(a,
b,c,d):t(c)?this.renderShadowInsertionPoint(a,b,c):this.renderAsAnyDomTree(a,b,c
,d)},renderAsAnyDomTree:function(a,b,c,d){if(b=b.append(c),v(c)){var e=m(c);b.sk
ip=!e.dirty,e.render(b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.rende
rNode(a,b,f,d)},renderInsertionPoint:function(a,b,c,d){var e=g(c);if(e.length){t
his.associateNode(c);for(var f=0;f<e.length;f++){var h=e[f];r(h)&&d?this.renderI
nsertionPoint(a,b,h,d):this.renderAsAnyDomTree(a,b,h,d)}}else this.renderFallbac
kContent(a,b,c);this.associateNode(c.parentNode)},renderShadowInsertionPoint:fun
ction(a,b,c){var d=a.olderShadowRoot;if(d){x(d,c),this.associateNode(c.parentNod
e);for(var e=d.firstChild;e;e=e.nextSibling)this.renderNode(d,b,e,!0)}else this.
renderFallbackContent(a,b,c)},renderFallbackContent:function(a,b,c){this.associa
teNode(c),this.associateNode(c.parentNode);for(var d=c.firstChild;d;d=d.nextSibl
ing)this.renderAsAnyDomTree(a,b,d,!1)},invalidateAttributes:function(){this.attr
ibutes=Object.create(null)},updateDependentAttributes:function(a){if(a){var b=th
is.attributes;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.repla
ce(/\[\s*([^\s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:function(
a){return this.attributes[a]},distribute:function(a,b){var c=this;i(a,s,function
(a){f(a),c.updateDependentAttributes(a.getAttribute("select"));for(var d=0;d<b.l
ength;d++){var g=b[d];void 0!==g&&j(g,a)&&(e(g,a),b[d]=void 0)}})},treeCompositi
on:function(){for(var a=this.host,b=a.shadowRoot,c=[],d=a.firstChild;d;d=d.nextS
ibling)if(r(d)){var e=g(d);e&&e.length||(e=h(d)),c.push.apply(c,e)}else c.push(d
);for(var f,j;b;){if(f=void 0,i(b,u,function(a){return f=a,!1}),j=f,this.distrib
ute(b,c),j){var k=b.olderShadowRoot;if(k){b=k,x(b,j);continue}break}break}},asso
ciateNode:function(a){a.impl.polymerShadowRenderer_=this}},B.prototype.invalidat
eShadowRenderer=function(){var a=this.impl.polymerShadowRenderer_;return a?(a.in
validate(),!0):!1},z.prototype.getDistributedNodes=function(){return k(),g(this)
},A.prototype.nodeWasAdded_=z.prototype.nodeWasAdded_=function(){this.invalidate
ShadowRenderer();var a,b=n(this);b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,
a&&a.invalidate()},a.eventParentsTable=J,a.getRendererForHost=m,a.getShadowTrees
=w,a.insertionParentTable=K,a.renderAllPending=k,a.visual={insertBefore:c,remove
:d}}(this.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(window[b]
){d(!a.wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.create(
c.prototype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b],i,d
ocument.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElem
ent,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonE
lement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLLabelE
lement","HTMLLegendElement","HTMLObjectElement","HTMLOptionElement","HTMLOutputE
lement","HTMLSelectElement","HTMLTextAreaElement"];i.forEach(b)}(this.ShadowDOMP
olyfill),function(a){"use strict";function b(a){k.call(this,a)}function c(a){var
c=document[a];b.prototype[a]=function(){return v(c.apply(this.impl,arguments))}
}function d(a,b){y.call(b.impl,u(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adop
tNode(a.shadowRoot),a instanceof n&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibl
ing)e(c,b)}function f(a,b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(
a){this.impl=a}function h(a,b){var c=document.implementation[b];a.prototype[b]=f
unction(){return v(c.apply(this.impl,arguments))}}function i(a,b){var c=document
.implementation[b];a.prototype[b]=function(){return c.apply(this.impl,arguments)
}}var j=a.GetElementsByInterface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.S
electorsInterface,n=a.wrappers.ShadowRoot,o=a.defineWrapGetter,p=a.elementFromPo
int,q=a.forwardMethodsToWrapper,r=a.matchesName,s=a.mixin,t=a.registerWrapper,u=
a.unwrap,v=a.wrap,w=a.wrapEventTargetMethods;a.wrapNodeList;var x=new WeakMap;b.
prototype=Object.create(k.prototype),o(b,"documentElement"),o(b,"body"),o(b,"hea
d"),["createComment","createDocumentFragment","createElement","createElementNS",
"createEvent","createEventNS","createRange","createTextNode","getElementById"].f
orEach(c);var y=document.adoptNode;if(s(b.prototype,{adoptNode:function(a){retur
n a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint:functi
on(a,b){return p(this,this,a,b)}}),document.register){var z=document.register;b.
prototype.register=function(b,c){function d(a){return a?(this.impl=a,void 0):doc
ument.createElement(b)}var e=c.prototype;if(a.nativePrototypeTable.get(e))throw
new Error("NotSupportedError");for(var f,g=Object.getPrototypeOf(e),h=[];g&&!(f=
a.nativePrototypeTable.get(g));)h.push(g),g=Object.getPrototypeOf(g);if(!f)throw
new Error("NotSupportedError");for(var i=Object.create(f),j=h.length-1;j>=0;j--
)i=Object.create(i);return["createdCallback","enteredViewCallback","leftViewCall
back","attributeChangedCallback"].forEach(function(a){var b=e[a];b&&(i[a]=functi
on(){b.apply(v(this),arguments)})}),z.call(u(this),b,{prototype:i}),d.prototype=
e,d.prototype.constructor=d,a.constructorTable.set(i,d),a.nativePrototypeTable.s
et(e,i),d},q([window.HTMLDocument||window.Document],["register"])}q([window.HTML
BodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement,window.H
TMLHtmlElement],["appendChild","compareDocumentPosition","contains","getElements
ByClassName","getElementsByTagName","getElementsByTagNameNS","insertBefore","que
rySelector","querySelectorAll","removeChild","replaceChild",r]),q([window.HTMLDo
cument||window.Document],["adoptNode","contains","createComment","createDocument
Fragment","createElement","createElementNS","createEvent","createEventNS","creat
eRange","createTextNode","elementFromPoint","getElementById"]),s(b.prototype,j),
s(b.prototype,l),s(b.prototype,m),s(b.prototype,{get implementation(){var a=x.ge
t(this);return a?a:(a=new g(u(this).implementation),x.set(this,a),a)}}),t(window
.Document,b,document.implementation.createHTMLDocument("")),window.HTMLDocument&
&t(window.HTMLDocument,b),w([window.HTMLBodyElement,window.HTMLDocument||window.
Document,window.HTMLHeadElement]),h(g,"createDocumentType"),h(g,"createDocument"
),h(g,"createHTMLDocument"),i(g,"hasFeature"),t(window.DOMImplementation,g),q([w
indow.DOMImplementation],["createDocumentType","createDocument","createHTMLDocum
ent","hasFeature"]),a.adoptNodeNoRemove=d,a.wrappers.DOMImplementation=g,a.wrapp
ers.Document=b}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){c
.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.unw
rap,g=a.unwrapIfNeeded,h=a.wrap,i=a.renderAllPending,j=window.Window;b.prototype
=Object.create(c.prototype);var k=window.getComputedStyle;j.prototype.getCompute
dStyle=function(a,b){return i(),k.call(this||window,g(a),b)},["addEventListener"
,"removeEventListener","dispatchEvent"].forEach(function(a){j.prototype[a]=funct
ion(){var b=h(this||window);return b[a].apply(b,arguments)}}),d(b.prototype,{get
ComputedStyle:function(a,b){return k.call(f(this),g(a),b)}}),e(j,b),a.wrappers.W
indow=b}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.imp
l=a}function c(a){return new b(a)}function d(a){return a.map(c)}function e(a){va
r b=this;this.impl=new k(function(c){a.call(b,d(c),b)})}var f=a.defineGetter,g=a
.defineWrapGetter,h=a.registerWrapper,i=a.unwrapIfNeeded,j=a.wrapNodeList;a.wrap
pers;var k=window.MutationObserver||window.WebKitMutationObserver;if(k){var l=wi
ndow.MutationRecord;b.prototype={get addedNodes(){return j(this.impl.addedNodes)
},get removedNodes(){return j(this.impl.removedNodes)}},["target","previousSibli
ng","nextSibling"].forEach(function(a){g(b,a)}),["type","attributeName","attribu
teNamespace","oldValue"].forEach(function(a){f(b,a,function(){return this.impl[a
]})}),l&&h(l,b),window.Node,e.prototype={observe:function(a,b){this.impl.observe
(i(a),b)},disconnect:function(){this.impl.disconnect()},takeRecords:function(){r
eturn d(this.impl.takeRecords())}},a.wrappers.MutationObserver=e,a.wrappers.Muta
tionRecord=b}}(this.ShadowDOMPolyfill),function(a){"use strict";function b(a){th
is.impl=a}var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=windo
w.Range;b.prototype={get startContainer(){return f(this.impl.startContainer)},ge
t endContainer(){return f(this.impl.endContainer)},get commonAncestorContainer()
{return f(this.impl.commonAncestorContainer)},setStart:function(a,b){this.impl.s
etStart(e(a),b)},setEnd:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:f
unction(a){this.impl.setStartBefore(e(a))},setStartAfter:function(a){this.impl.s
etStartAfter(e(a))},setEndBefore:function(a){this.impl.setEndBefore(e(a))},setEn
dAfter:function(a){this.impl.setEndAfter(e(a))},selectNode:function(a){this.impl
.selectNode(e(a))},selectNodeContents:function(a){this.impl.selectNodeContents(e
(a))},compareBoundaryPoints:function(a,b){return this.impl.compareBoundaryPoints
(a,d(b))},extractContents:function(){return f(this.impl.extractContents())},clon
eContents:function(){return f(this.impl.cloneContents())},insertNode:function(a)
{this.impl.insertNode(e(a))},surroundContents:function(a){this.impl.surroundCont
ents(e(a))},cloneRange:function(){return f(this.impl.cloneRange())},isPointInRan
ge:function(a,b){return this.impl.isPointInRange(e(a),b)},comparePoint:function(
a,b){return this.impl.comparePoint(e(a),b)},intersectsNode:function(a){return th
is.impl.intersectsNode(e(a))}},g.prototype.createContextualFragment&&(b.prototyp
e.createContextualFragment=function(a){return f(this.impl.createContextualFragme
nt(a))}),c(window.Range,b),a.wrappers.Range=b}(this.ShadowDOMPolyfill),function(
a){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.create
Element(a),f=e.constructor;window[b]=f}}a.isWrapperFor;var c={a:"HTMLAnchorEleme
nt",applet:"HTMLAppletElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",b
r:"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button:"HTMLButt
onElement",dl:"HTMLDListElement",datalist:"HTMLDataListElement",data:"HTMLDataEl
ement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbedElement",
fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",fra
me:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement",head:"HT
MLHeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"HTMLIFrame
Element",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelElement",le
gend:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HT
MLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HT
MLMetaElement",meter:"HTMLMeterElement",del:"HTMLModElement",ol:"HTMLOListElemen
t",object:"HTMLObjectElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionE
lement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElem
ent",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",sc
ript:"HTMLScriptElement",select:"HTMLSelectElement",source:"HTMLSourceElement",s
pan:"HTMLSpanElement",style:"HTMLStyleElement",time:"HTMLTimeElement",caption:"H
TMLTableCaptionElement",col:"HTMLTableColElement",table:"HTMLTableElement",tr:"H
TMLTableRowElement",thead:"HTMLTableSectionElement",tbody:"HTMLTableSectionEleme
nt",textarea:"HTMLTextAreaElement",track:"HTMLTrackElement",title:"HTMLTitleElem
ent",ul:"HTMLUListElement",video:"HTMLVideoElement"};Object.keys(c).forEach(b),O
bject.getOwnPropertyNames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b
]}),a.knownElements=c}(this.ShadowDOMPolyfill),function(){window.wrap=function(a
){return a.impl?a:ShadowDOMPolyfill.wrap(a)},window.unwrap=function(a){return a.
impl?ShadowDOMPolyfill.unwrap(a):a};var a=window.getComputedStyle;window.getComp
utedStyle=function(b,c){return a.call(window,wrap(b),c)},Object.defineProperties
(HTMLElement.prototype,{webkitShadowRoot:{get:function(){return this.shadowRoot}
}});var b=HTMLElement.prototype.createShadowRoot;HTMLElement.prototype.createSha
dowRoot=function(){var a=b.call(this);return a.host=this,a},HTMLElement.prototyp
e.webkitCreateShadowRoot=HTMLElement.prototype.createShadowRoot}(),function(a){f
unction b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.t
extContent+"\n\n"}),b||(c=c.replace(n,"")),c}function c(a){var b=document.create
Element("style");return b.textContent=a,b}function d(a){var b=c(a);document.head
.appendChild(b);var d=b.sheet.cssRules;return b.parentNode.removeChild(b),d}func
tion e(a){for(var b=0,c=[];b<a.length;b++)c.push(a[b].cssText);return c.join("\n
\n")}function f(a){a&&g().appendChild(document.createTextNode(a))}function g(){r
eturn h||(h=document.createElement("style"),h.setAttribute("ShadowCSSShim","")),
h}var h,i={strictStyling:!1,registry:{},shimStyling:function(a,b,d){var e=this.i
sTypeExtension(d),g=this.registerDefinition(a,b,d);this.strictStyling&&this.appl
yScopeToContent(a,b),this.insertPolyfillDirectives(g.rootStyles),this.insertPoly
fillRules(g.rootStyles);var h=this.stylesToShimmedCssText(g.scopeStyles,b,e);h+=
this.extractPolyfillUnscopedRules(g.rootStyles),g.shimmedStyle=c(h),a&&(a.shimme
dStyle=g.shimmedStyle);for(var i,j=0,k=g.rootStyles.length;k>j&&(i=g.rootStyles[
j]);j++)i.parentNode.removeChild(i);f(h)},registerDefinition:function(a,b,c){var
d=this.registry[b]={root:a,name:b,extendsName:c},e=a?a.querySelectorAll("style"
):[];e=e?Array.prototype.slice.call(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootS
tyles;var f=this.registry[d.extendsName];return!f||a&&!a.querySelector("shadow")
||(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),d},isTypeExtension:functio
n(a){return a&&a.indexOf("-")<0},applyScopeToContent:function(a,b){a&&(Array.pro
totype.forEach.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),A
rray.prototype.forEach.call(a.querySelectorAll("template"),function(a){this.appl
yScopeToContent(a.content,b)},this))},insertPolyfillDirectives:function(a){a&&Ar
ray.prototype.forEach.call(a,function(a){a.textContent=this.insertPolyfillDirect
ivesInCssText(a.textContent)},this)},insertPolyfillDirectivesInCssText:function(
a){return a.replace(o,function(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRu
les:function(a){a&&Array.prototype.forEach.call(a,function(a){a.textContent=this
.insertPolyfillRulesInCssText(a.textContent)},this)},insertPolyfillRulesInCssTex
t:function(a){return a.replace(p,function(a,b){return b.slice(0,-1)})},extractPo
lyfillUnscopedRules:function(a){var b="";return a&&Array.prototype.forEach.call(
a,function(a){b+=this.extractPolyfillUnscopedRulesFromCssText(a.textContent)+"\n
\n"},this),b},extractPolyfillUnscopedRulesFromCssText:function(a){for(var b,c=""
;b=q.exec(a);)c+=b[1].slice(0,-1)+"\n\n";return c},stylesToShimmedCssText:functi
on(a,b,c){return this.shimAtHost(a,b,c)+this.shimScoping(a,b,c)},shimAtHost:func
tion(a,b,c){return a?this.convertAtHostStyles(a,b,c):void 0},convertAtHostStyles
:function(a,c,f){var g=b(a),h=this;return g=g.replace(j,function(a,b){return h.s
copeHostCss(b,c,f)}),g=e(this.findAtHostRules(d(g),new RegExp("^"+c+u,"m")))},sc
opeHostCss:function(a,b,c){var d=this;return a.replace(k,function(a,e,f){return
d.scopeHostSelector(e,b,c)+" "+f+"\n "})},scopeHostSelector:function(a,b,c){v
ar d=[],e=a.split(","),f="[is="+b+"]";return e.forEach(function(a){a=a.trim(),a.
match(l)?a=a.replace(l,c?f+"$1$3":b+"$1$3"):a.match(m)&&(a=c?f+a:b+a),d.push(a)}
,this),d.join(", ")},findAtHostRules:function(a,b){return Array.prototype.filter
.call(a,this.isHostRule.bind(this,b))},isHostRule:function(a,b){return b.selecto
rText&&b.selectorText.match(a)||b.cssRules&&this.findAtHostRules(b.cssRules,a).l
ength||b.type==CSSRule.WEBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c){return
a?this.convertScopedStyles(a,b,c):void 0},convertScopedStyles:function(a,c,e){v
ar f=b(a).replace(j,"");f=this.insertPolyfillHostInCssText(f),f=this.convertColo
nHost(f),f=this.convertPseudos(f),f=this.convertParts(f),f=this.convertCombinato
rs(f);var g=d(f);return f=this.scopeRules(g,c,e)},convertPseudos:function(a){ret
urn a.replace(r," [pseudo=$1]")},convertParts:function(a){return a.replace(s," [
part=$1]")},convertColonHost:function(a){return a.replace(t,function(a,b,c,d){re
turn c?y+c+d+", "+c+" "+b+d:b+d})},convertCombinators:function(a){return a.repla
ce("^^"," ").replace("^"," ")},scopeRules:function(a,b,c){var d="";return Array.
prototype.forEach.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(d
+=this.scopeSelector(a.selectorText,b,c,this.strictStyling)+" {\n ",d+=thi
s.propertiesFromRule(a)+"\n}\n\n"):a.media?(d+="@media "+a.media.mediaText+" {\n
",d+=this.scopeRules(a.cssRules,b),d+="\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n"
)},this),d},scopeSelector:function(a,b,c,d){var e=[],f=a.split(",");return f.for
Each(function(a){a=a.trim(),this.selectorNeedsScoping(a,b,c)&&(a=d?this.applyStr
ictSelectorScope(a,b):this.applySimpleSelectorScope(a,b,c)),e.push(a)},this),e.j
oin(", ")},selectorNeedsScoping:function(a,b,c){var d=c?b:"\\[is="+b+"\\]",e=new
RegExp("^("+d+")"+u,"m");return!a.match(e)},applySimpleSelectorScope:function(a
,b,c){var d=c?"[is="+b+"]":b;return a.match(z)?(a=a.replace(y,d),a.replace(z,d+"
")):d+" "+a},applyStrictSelectorScope:function(a,b){var c=[" ",">","+","~"],d=a
,e="["+b+"]";return c.forEach(function(a){var b=d.split(a);d=b.map(function(a){v
ar b=a.trim().replace(z,"");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.repla
ce(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a |
| 34 }).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.replace(v,x).re
place(w,x)},propertiesFromRule:function(a){var b=a.style.cssText;return a.style.
content&&!a.style.content.match(/['"]+/)&&(b="content: '"+a.style.content+"';\n"
+a.style.cssText.replace(/content:[^;]*;/g,"")),b}},j=/@host[^{]*{(([^}]*?{[^{]*
?}[\s\S]*?)+)}/gim,k=/([^{]*)({[\s\S]*?})/gim,l=/(.*)((?:\*)|(?:\:scope))(.*)/,m
=/^[.\[:]/,n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,o=/\/\*\s*@polyfill ([^*]*\*+([
^/*][^*]*\*+)*\/)([^{]*?){/gim,p=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)
\//gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,r=/::(x-
[^\s{,(]*)/gim,s=/::part\(([^)]*)\)/gim,t=/(-host)(?:\(([^)]*)\))?([^,{]*)/gim,u
="([>\\s~+[.,{:][\\s\\S]*)?$",v=/@host/gim,w=/\:host/gim,x="-host",y="-host-no-c
ombinator",z=/-host/gim;if(window.ShadowDOMPolyfill){f("style { display: none !i
mportant; }\n");var A=document.querySelector("head");A.insertBefore(g(),A.childN
odes[0])}a.ShadowCSS=i}(window.Platform)}else!function(){window.templateContent=
window.templateContent||function(a){return a.content},window.wrap=window.unwrap=
function(a){return a};var a=HTMLElement.prototype.webkitCreateShadowRoot;HTMLEle
ment.prototype.webkitCreateShadowRoot=function(){var b=this.webkitShadowRoot,c=a
.call(this);return c.olderShadowRoot=b,c.host=this,CustomElements.watchShadow(th
is),c},Object.defineProperties(HTMLElement.prototype,{shadowRoot:{get:function()
{return this.webkitShadowRoot}},createShadowRoot:{value:function(){return this.w
ebkitCreateShadowRoot()}}}),window.templateContent=function(a){if(window.HTMLTem
plateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a
.content&&!a._content){for(var b=document.createDocumentFragment();a.firstChild;
)b.appendChild(a.firstChild);a._content=b}return a.content||a._content}}();!func
tion(a){function b(a){for(var b=a||{},d=1;d<arguments.length;d++){var e=argument
s[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}function c(a,b,c){var e=d(b
,a);Object.defineProperty(c,a,e)}function d(a,b){if(a){var c=Object.getOwnProper
tyDescriptor(a,b);return c||d(Object.getPrototypeOf(a),b)}}Function.prototype.bi
nd||(Function.prototype.bind=function(a){var b=this,c=Array.prototype.slice.call
(arguments,1);return function(){var d=c.slice();return d.push.apply(d,arguments)
,b.apply(a,d)}}),a.mixin=b}(window.Platform),function(a){"use strict";function b
(a,b,c){var d="string"==typeof a?document.createElement(a):a.cloneNode(!0);if(d.
innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c=DOMTokenList.
prototype.add,d=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=functio
n(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a])},DOMTokenList.p
rototype.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,argume
nts[a])},DOMTokenList.prototype.toggle=function(a,b){1==arguments.length&&(b=!th
is.contains(a)),b?this.add(a):this.remove(a)},DOMTokenList.prototype.switch=func
tion(a,b){a&&this.remove(a),b&&this.add(b)};var e=function(){return Array.protot
ype.slice.call(this)},f=window.NamedNodeMap||window.MozNamedAttrMap||{};if(NodeL
ist.prototype.array=e,f.prototype.array=e,HTMLCollection.prototype.array=e,!wind
ow.performance){var g=Date.now();window.performance={now:function(){return Date.
now()-g}}}window.requestAnimationFrame||(window.requestAnimationFrame=function()
{var a=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;retur
n a?function(b){return a(function(){b(performance.now())})}:function(a){return w
indow.setTimeout(a,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnima
tionFrame=function(){return window.webkitCancelAnimationFrame||window.mozCancelA
nimationFrame||function(a){clearTimeout(a)}}()),a.createDOM=b}(window.Platform),
window.templateContent=window.templateContent||function(a){return a.content},fun
ction(a){a=a||(window.Inspector={});var b;window.sinspect=function(a,d){b||(b=wi
ndow.open("","ShadowDOM Inspector",null,!0),b.document.write(c),b.api={shadowize
:shadowize}),f(a||wrap(document.body),d)};var c=["<!DOCTYPE html>","<html>"," <
head>"," <title>ShadowDOM Inspector</title>"," <style>"," body {","
}"," pre {",' font: 9pt "Courier New", monospace;'," line
-height: 1.5em;"," }"," tag {"," color: purple;"," }","
ul {"," margin: 0;"," padding: 0;"," list-style: none
;"," }"," li {"," display: inline-block;"," background
-color: #f1f1f1;"," padding: 4px 6px;"," border-radius: 4px;","
margin-right: 4px;"," }"," </style>"," </head>"," <body>",'
<ul id="crumbs">'," </ul>",' <div id="tree"></div>'," </body>","</html>"
].join("\n"),d=[],e=function(){var a=b.document,c=a.querySelector("#crumbs");c.t
extContent="";for(var e,g=0;e=d[g];g++){var h=a.createElement("a");h.href="#",h.
textContent=e.localName,h.idx=g,h.onclick=function(a){for(var b;d.length>this.id
x;)b=d.pop();f(b.shadow||b,b),a.preventDefault()},c.appendChild(a.createElement(
"li")).appendChild(h)}},f=function(a,c){var f=b.document;k=[];var g=c||a;d.push(
g),e(),f.body.querySelector("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>
"},g=Array.prototype.forEach.call.bind(Array.prototype.forEach),h={STYLE:1,SCRIP
T:1,"#comment":1,TEMPLATE:1},i=function(a){return h[a.nodeName]},j=function(a,b,
c){if(i(a))return"";var d=c||"";if(a.localName||11==a.nodeType){var e=a.localNam
e||"shadow-root",f=d+l(a);"content"==e&&(b=a.getDistributedNodes()),f+="<br/>";v
ar h=d+" ";g(b,function(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(
f+="<tag></"+e+"></tag>",f+="<br/>")}else{var k=a.textContent.trim();f=k?d
+'"'+k+'"<br/>':""}return f},k=[],l=function(a){var b="<tag><",c=a.localName|
|"shadow-root";return a.webkitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.le
ngth+'" onclick="api.shadowize.call(this)">'+c+"</button>",k.push(a)):b+=c||"sha
dow-root",a.attributes&&g(a.attributes,function(a){b+=" "+a.name+(a.value?'="'+a
.value+'"':"")}),b+="></tag>"};shadowize=function(){var a=Number(this.attribu
tes.idx.value),b=k[a];b?f(b.webkitShadowRoot||b.shadowRoot,b):(console.log("bad
shadowize node"),console.dir(this))},a.output=j}(window.Inspector),function(){"u
se strict";function a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typ
eof a.getElementById?a:null}function b(a,b,c,d){this.closed=!1,this.node=a,this.
property=b,this.model=c,this.path=Path.get(d),(this.model instanceof PathObserve
r||this.model instanceof CompoundPathObserver)&&this.path===l?(this.observer=thi
s.model,this.observer.target=this,this.observer.callback=this.valueChanged):this
.observer=new PathObserver(this.model,this.path,this.valueChanged,this),this.val
ueChanged(this.value)}function c(a,c,d,e){this.conditional="?"==c[c.length-1],th
is.conditional&&(a.removeAttribute(c),c=c.slice(0,-1)),b.call(this,a,c,d,e)}func
tion d(a){switch(a.type){case"checkbox":return m;case"radio":case"select-multipl
e":case"select-one":return"change";default:return"input"}}function e(a,c,e,f){b.
call(this,a,c,e,f),this.eventType=d(this.node),this.boundNodeValueChanged=this.n
odeValueChanged.bind(this),this.node.addEventListener(this.eventType,this.boundN
odeValueChanged,!0)}function f(b){if(b.form)return j(b.form.elements,function(a)
{return a!=b&&"INPUT"==a.tagName&&"radio"==a.type&&a.name==b.name});var c=a(b);i
f(!c)return[];var d=c.querySelectorAll('input[type="radio"][name="'+b.name+'"]')
;return j(d,function(a){return a!=b&&!a.form})}function g(a,b,c){e.call(this,a,"
checked",b,c)}function h(a,b,c){e.call(this,a,"value",b,c)}function i(a,b,c,d){e
.call(this,a,b,c,d)}var j=Array.prototype.filter.call.bind(Array.prototype.filte
r),k="__proto__"in{}?function(a){return a}:function(a){var b=a.__proto__;if(!b)r
eturn a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(func
tion(b){Object.defineProperty(c,b,Object.getOwnPropertyDescriptor(a,b))}),c};"fu
nction"!=typeof document.contains&&(Document.prototype.contains=function(a){retu
rn a===this||a.parentNode===this?!0:this.documentElement.contains(a)}),Node.prot
otype.bind=function(a,b,c){console.error("Unhandled binding to Node: ",this,a,b,
c)},Node.prototype.unbind=function(a){this.bindings||(this.bindings={});var b=th
is.bindings[a];b&&("function"==typeof b.close&&b.close(),this.bindings[a]=void 0
)},Node.prototype.unbindAll=function(){if(this.bindings){for(var a=Object.keys(t
his.bindings),b=0;b<a.length;b++){var c=this.bindings[a[b]];c&&c.close()}this.bi
ndings={}}};var l=Path.get("value");b.prototype={valueChanged:function(a){this.n
ode[this.property]=this.sanitizeBoundValue(a)},sanitizeBoundValue:function(a){re
turn void 0==a?"":String(a)},close:function(){this.closed||(this.observer.close(
),this.observer=void 0,this.node=void 0,this.model=void 0,this.closed=!0)},get v
alue(){return this.observer.value},set value(a){this.observer.setValue(a)},reset
:function(){this.observer.reset()}},Text.prototype.bind=function(a,c,d){return"t
extContent"!==a?Node.prototype.bind.call(this,a,c,d):(this.unbind(a),this.bindin
gs[a]=new b(this,"data",c,d))},c.prototype=k({__proto__:b.prototype,valueChanged
:function(a){return this.conditional?(a?this.node.setAttribute(this.property,"")
:this.node.removeAttribute(this.property),void 0):(this.node.setAttribute(this.p
roperty,this.sanitizeBoundValue(a)),void 0)}}),Element.prototype.bind=function(a
,b,d){return this.unbind(a),this.bindings[a]=new c(this,a,b,d)};var m;!function(
){var a=document.createElement("div"),b=a.appendChild(document.createElement("in
put"));b.setAttribute("type","checkbox");var c,d=0;b.addEventListener("click",fu
nction(){d++,c=c||"click"}),b.addEventListener("change",function(){d++,c=c||"cha
nge"});var e=document.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,w
indow,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),m=1==d?"change":c}(),e.pr
ototype=k({__proto__:b.prototype,nodeValueChanged:function(){this.value=this.nod
e[this.property],this.reset(),this.postUpdateBinding(),Platform.performMicrotask
Checkpoint()},postUpdateBinding:function(){},close:function(){this.closed||(this
.node.removeEventListener(this.eventType,this.boundNodeValueChanged,!0),b.protot
ype.close.call(this))}}),g.prototype=k({__proto__:e.prototype,sanitizeBoundValue
:function(a){return Boolean(a)},postUpdateBinding:function(){"INPUT"===this.node
.tagName&&"radio"===this.node.type&&f(this.node).forEach(function(a){var b=a.bin
dings.checked;b&&(b.value=!1)})}}),HTMLInputElement.prototype.bind=function(a,b,
c){return"value"!==a&&"checked"!==a?HTMLElement.prototype.bind.call(this,a,b,c):
(this.unbind(a),this.removeAttribute(a),this.bindings[a]="value"===a?new e(this,
"value",b,c):new g(this,b,c))},HTMLTextAreaElement.prototype.bind=function(a,b,c
){return"value"!==a?HTMLElement.prototype.bind.call(this,a,b,c):(this.unbind(a),
this.removeAttribute(a),this.bindings[a]=new e(this,a,b,c))},h.prototype=k({__pr
oto__:e.prototype,valueChanged:function(a){var b,c,d=this.node.parentNode instan
ceof HTMLSelectElement?this.node.parentNode:void 0;d&&d.bindings&&d.bindings.val
ue instanceof i&&(b=d.bindings.value,c=d.value),e.prototype.valueChanged.call(th
is,a),b&&!b.closed&&d.value!==c&&b.nodeValueChanged()}}),HTMLOptionElement.proto
type.bind=function(a,b,c){return"value"!==a?HTMLElement.prototype.bind.call(this
,a,b,c):(this.unbind(a),this.removeAttribute(a),this.bindings[a]=new h(this,b,c)
)},i.prototype=k({__proto__:e.prototype,valueChanged:function(a){function b(){d.
node[d.property]=a,d.node[d.property]!=a&&c--&&n(b)}if(this.node[this.property]=
a,this.node[this.property]!=a){var c=2,d=this;n(b)}}}),HTMLSelectElement.prototy
pe.bind=function(a,b,c){return"selectedindex"===a&&(a="selectedIndex"),"selected
Index"!==a&&"value"!==a?HTMLElement.prototype.bind.call(this,a,b,c):(this.unbind
(a),this.removeAttribute(a),this.bindings[a]=new i(this,a,b,c))};var n=function(
){function a(a){this.nextRunner=a,this.value=!1,this.lastValue=this.value,this.s
cheduled=[],this.scheduledIds=[],this.running=!1,this.observer=new PathObserver(
this,"value",this.run,this)}function b(a){var b=a[e];a[e]||(b=d++,a[e]=b),c.sche
dule(a,b)}a.prototype={schedule:function(a,b){if(!this.scheduledIds[b]){if(this.
running)return this.nextRunner.schedule(a,b);this.scheduledIds[b]=!0,this.schedu
led.push(a),this.lastValue===this.value&&(this.value=!this.value)}},run:function
(){this.running=!0;for(var a=0;a<this.scheduled.length;a++){var b=this.scheduled
[a],c=b[e];this.scheduledIds[c]=!1,"function"==typeof b?b():b.resolve()}this.sch
eduled=[],this.scheduledIds=[],this.lastValue=this.value,this.running=!1}};var c
=new a(new a),d=1,e="__scheduledId__";return b}()}(this),function(a){"use strict
";function b(a){if(!a)throw new Error("Assertion failed")}function c(a){for(;a.p
arentNode;)a=a.parentNode;return"function"==typeof a.getElementById?a:null}funct
ion d(a){return F[a.tagName]&&a.hasAttribute("template")}function e(a){return"TE
MPLATE"==a.tagName||d(a)}function f(a){return G&&"TEMPLATE"==a.tagName}function
g(a,b){var c=a.querySelectorAll(H);e(a)&&b(a),A(c,b)}function h(a){function b(a)
{HTMLTemplateElement.decorate(a)||h(a.content)}g(a,b)}function i(a,b){Object.get
OwnPropertyNames(b).forEach(function(c){Object.defineProperty(a,c,Object.getOwnP
ropertyDescriptor(b,c))})}function j(a){if(!a.defaultView)return a;var b=a.templ
ateContentsOwner_;if(!b){for(b=a.implementation.createHTMLDocument("");b.lastChi
ld;)b.removeChild(b.lastChild);a.templateContentsOwner_=b}return b}function k(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];E[e.name]&&("template"!==e.
name&&b.setAttribute(e.name,e.value),a.removeAttribute(e.name))}return b}functio
n l(a,b,c){var d=a.content;if(c)return d.appendChild(b),void 0;for(var e;e=b.fir
stChild;)d.appendChild(e)}function m(a){"TEMPLATE"===a.tagName?G||(J?a.__proto__
=HTMLTemplateElement.prototype:i(a,HTMLTemplateElement.prototype)):(i(a,HTMLTemp
lateElement.prototype),Object.defineProperty(a,"content",L))}function n(a){a.set
ModelFn_||(a.setModelFn_=function(){t(a,a.model,a.bindingDelegate)}),I(a.setMode
lFn_)}function o(a,b,c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0;f>h;)
{if(g=a.indexOf("{{",h),i=0>g?-1:a.indexOf("}}",g+2),0>i){if(!e)return;e.push(a.
slice(h));break}e=e||[],e.push(a.slice(h,g));var j=a.slice(g+2,i).trim();e.push(
Path.get(j));var k=d&&d(j,b,c);e.push(k),h=i+2}return h===f&&e.push(""),e.hasOne
Path=4===e.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[3],e.combinator=f
unction(a){for(var b=e[0],c=1;c<e.length;c+=3){var d=e.hasOnePath?a:a[(c-1)/3];v
oid 0!==d&&(b+=d),b+=e[c+2]}return b},e}}function p(a,b,c,d){for(var e=0;e<a.len
gth;e+=2){var f=a[e],g=a[e+1],h=c,i=g[1];if(g.hasOnePath){var j=g[2],k=j&&j(c,f,
b);void 0!==k&&(h=k,i=M),g.isSimplePath||(h=new PathObserver(h,i,void 0,void 0,v
oid 0,g.combinator),i=M)}else{for(var l=new CompoundPathObserver(void 0,void 0,v
oid 0,g.combinator),m=1;m<g.length;m+=3){var n=c,o=g[m],j=g[m+1],k=j&&j(n,f,b);v
oid 0!==k&&(n=k,o=M),l.addPath(n,o)}l.start(),h=l,i=M}var p=b.bind(f,h,i);d&&d.p
ush(p)}}function q(a,c){b(a);for(var d,f=e(a),g=!1,h=!1,i=0;i<a.attributes.lengt
h;i++){for(var j=a.attributes[i],k=j.name,l=j.value;"_"===k[0];)k=k.substring(1)
;f&&(k===D?(g=!0,l=l||"{{}}"):(k===B||k===C)&&(h=!0,l=l||"{{}}"));var m=o(l,k,a,
c);m&&(d=d||[],d.push(k,m))}return g&&!h&&(d=d||[],d.push(B,o("{{}}",B,a,c))),d}
function r(a,b){if(a.nodeType===Node.ELEMENT_NODE)return q(a,b);if(a.nodeType===
Node.TEXT_NODE){var c=o(a.data,"textContent",a,b);if(c)return["textContent",c]}}
function s(a,b,c,d,e){if(b&&(b.templateRef&&(HTMLTemplateElement.decorate(a,b.te
mplateRef),d&&(a.bindingDelegate_=d)),b.length&&p(b,a,c,e),b.children))for(var f
=0,g=a.firstChild;g;g=g.nextSibling)s(g,b.children[f++],c,d,e)}function t(a,c,d)
{b(a);var e=d&&"function"==typeof d.prepareBinding?d.prepareBinding:void 0,f=r(a
,e);f&&p(f,a,c);for(var g=a.firstChild;g;g=g.nextSibling)t(g,c,d)}function u(a,b
){var c=a.cloneNode(!1);if(a.isTemplate_)return c;for(var d=a.firstChild;d;d=d.n
extSibling)c.appendChild(u(d,b));return c}function v(a,b){var c=r(a,b);e(a)&&(a.
isTemplate_=!0,c=c||[],c.templateRef=a,c.hasSubTemplate=!0);for(var d=a.firstChi
ld,f=0;d;d=d.nextSibling,f++){var g=v(d,b);g&&(c=c||[],c.children=c.children||{}
,c.children[f]=g,g.hasSubTemplate&&(c.hasSubTemplate=!0))}return c}function w(a,
b,c){this.firstNode=a,this.lastNode=b,this.model=c}function x(a,b){if(a.firstChi
ld)for(var c=new w(a.firstChild,a.lastChild,b),d=c.firstNode;d;)d.templateInstan
ce_=c,d=d.nextSibling}function y(a){this.closed=!1,this.templateElement_=a,this.
terminators=[],this.iteratedValue=void 0,this.arrayObserver=void 0,this.depsChan
ged=!1,this.hasRepeat=!1,this.repeatModel=void 0,this.repeatPath=void 0,this.has
Bind=!1,this.bindModel=void 0,this.bindPath=void 0,this.hasIf=!1,this.ifModel=vo
id 0,this.ifPath=void 0}var z,A=Array.prototype.forEach.call.bind(Array.prototyp
e.forEach);a.Map&&"function"==typeof a.Map.prototype.forEach?z=a.Map:(z=function
(){this.keys=[],this.values=[]},z.prototype={set:function(a,b){var c=this.keys.i
ndexOf(a);0>c?(this.keys.push(a),this.values.push(b)):this.values[c]=b},get:func
tion(a){var b=this.keys.indexOf(a);if(!(0>b))return this.values[b]},"delete":fun
ction(a){var b=this.keys.indexOf(a);return 0>b?!1:(this.keys.splice(b,1),this.va
lues.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.c
ontains&&(Document.prototype.contains=function(a){return a===this||a.parentNode=
==this?!0:this.documentElement.contains(a)});var B="bind",C="repeat",D="if",E={t
emplate:!0,repeat:!0,bind:!0,ref:!0},F={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,T
D:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},G="undefined"!=typeof
HTMLTemplateElement,H="template, "+Object.keys(F).map(function(a){return a.toLow
erCase()+"[template]"}).join(", "),I=function(){function a(a){this.nextRunner=a,
this.value=!1,this.lastValue=this.value,this.scheduled=[],this.scheduledIds=[],t
his.running=!1,this.observer=new PathObserver(this,"value",this.run,this)}functi
on b(a){var b=a[e];a[e]||(b=d++,a[e]=b),c.schedule(a,b)}a.prototype={schedule:fu
nction(a,b){if(!this.scheduledIds[b]){if(this.running)return this.nextRunner.sch
edule(a,b);this.scheduledIds[b]=!0,this.scheduled.push(a),this.lastValue===this.
value&&(this.value=!this.value)}},run:function(){this.running=!0;for(var a=0;a<t
his.scheduled.length;a++){var b=this.scheduled[a],c=b[e];this.scheduledIds[c]=!1
,"function"==typeof b?b():b.resolve()}this.scheduled=[],this.scheduledIds=[],thi
s.lastValue=this.value,this.running=!1}};var c=new a(new a),d=1,e="__scheduledId
__";return b}();document.addEventListener("DOMContentLoaded",function(){h(docume
nt),Platform.performMicrotaskCheckpoint()},!1),G||(a.HTMLTemplateElement=functio
n(){throw TypeError("Illegal constructor")});var J="__proto__"in{};HTMLTemplateE
lement.decorate=function(a,c){if(a.templateIsDecorated_)return!1;var e=a;e.templ
ateIsDecorated_=!0;var g=f(e),i=g,n=!g,o=!1;if(!g&&d(e)&&(b(!c),e=k(a),e.templat
eIsDecorated_=!0,g=f(e),o=!0),!g){m(e);var p=j(e.ownerDocument);e.content_=p.cre
ateDocumentFragment()}return c?e.instanceRef_=c:n?l(e,a,o):i&&h(e.content),!0},H
TMLTemplateElement.bootstrap=h;var K=a.HTMLUnknownElement||HTMLElement,L={get:fu
nction(){return this.content_},enumerable:!0,configurable:!0};G||(HTMLTemplateEl
ement.prototype=Object.create(K.prototype),Object.defineProperty(HTMLTemplateEle
ment.prototype,"content",L)),i(HTMLTemplateElement.prototype,{bind:function(a,b,
c){return this.iterator_||(this.iterator_=new y(this)),this.bindings=this.bindin
gs||{},"bind"===a?(this.iterator_.hasBind=!0,this.iterator_.bindModel=b,this.ite
rator_.bindPath=c,this.iterator_.depsChanging||(this.iterator_.depsChanging=!0,I
(this.iterator_)),this.bindings.bind=this.iterator_):"repeat"===a?(this.iterator
_.hasRepeat=!0,this.iterator_.repeatModel=b,this.iterator_.repeatPath=c,this.ite
rator_.depsChanging||(this.iterator_.depsChanging=!0,I(this.iterator_)),this.bin
dings.repeat=this.iterator_):"if"===a?(this.iterator_.hasIf=!0,this.iterator_.if
Model=b,this.iterator_.ifPath=c,this.iterator_.depsChanging||(this.iterator_.dep
sChanging=!0,I(this.iterator_)),this.bindings.if=this.iterator_):HTMLElement.pro
totype.bind.call(this,a,b,c)},unbind:function(a){if("bind"===a){if(!this.iterato
r_)return;return this.iterator_.hasBind=!1,this.iterator_.bindModel=void 0,this.
iterator_.bindPath=void 0,this.iterator_.depsChanging||(this.iterator_.depsChang
ing=!0,I(this.iterator_)),this.bindings.bind=void 0}if("repeat"===a){if(!this.it
erator_)return;return this.iterator_.hasRepeat=!1,this.iterator_.repeatModel=voi
d 0,this.iterator_.repeatPath=void 0,this.iterator_.depsChanging||(this.iterator
_.depsChanging=!0,I(this.iterator_)),this.bindings.repeat=void 0}if("if"===a){if
(!this.iterator_)return;return this.iterator_.hasIf=!1,this.iterator_.ifModel=vo
id 0,this.iterator_.ifPath=void 0,this.iterator_.depsChanging||(this.iterator_.d
epsChanging=!0,I(this.iterator_)),this.bindings.if=void 0}return HTMLElement.pro
totype.unbind.call(this,a)},createInstance:function(a,b,c){var d=this.ref.conten
t,e=d.bindingMap_;if(!e){var f=b&&"function"==typeof b.prepareBinding?b.prepareB
inding:void 0;e=v(d,f)||[],d.bindingMap_=e}var g=e.hasSubTemplate?u(d):d.cloneNo
de(!0);return s(g,e,a,b,c),x(g,a),g},get model(){return this.model_},set model(a
){this.model_=a,n(this)},get bindingDelegate(){return this.bindingDelegate_},set
bindingDelegate(a){this.bindingDelegate_=a,n(this)},get ref(){var a,b=this.getA
ttribute("ref");if(b){var d=c(this);d&&(a=d.getElementById(b))}if(a||(a=this.ins
tanceRef_),!a)return this;var e=a.ref;return e?e:a}});var M=Path.get("value");Ob
ject.defineProperty(Node.prototype,"templateInstance",{get:function(){var a=this
.templateInstance_;return a?a:this.parentNode?this.parentNode.templateInstance:v
oid 0}}),y.prototype={resolve:function(){if(this.depsChanging=!1,this.valueObser
ver&&(this.valueObserver.close(),this.valueObserver=void 0),!this.hasRepeat&&!th
is.hasBind)return this.valueChanged(),void 0;var a=this.hasRepeat===!0,b=a?this.
repeatModel:this.bindModel,c=a?this.repeatPath:this.bindPath;if(this.hasIf){var
d=function(b){var c=b[0],d=b[1];return d?a?c:[c]:void 0};this.valueObserver=new
CompoundPathObserver(this.valueChanged,this,void 0,d),this.valueObserver.addPath
(b,c),this.valueObserver.addPath(this.ifModel,this.ifPath),this.valueObserver.st
art()}else{var d=this.hasRepeat?void 0:function(a){return[a]};this.valueObserver
=new PathObserver(b,c,this.valueChanged,this,void 0,d)}this.valueChanged(this.va
lueObserver.value)},valueChanged:function(a){Array.isArray(a)||(a=void 0);var b=
this.iteratedValue;this.unobserve(),this.iteratedValue=a,this.iteratedValue&&(th
is.arrayObserver=new ArrayObserver(this.iteratedValue,this.handleSplices,this));
var c=ArrayObserver.calculateSplices(this.iteratedValue||[],b||[]);c.length&&thi
s.handleSplices(c)},getTerminatorAt:function(a){if(-1==a)return this.templateEle
ment_;var b=this.terminators[2*a];if(b.nodeType!==Node.ELEMENT_NODE||this.templa
teElement_===b)return b;var c=b.iterator_;return c?c.getTerminatorAt(c.terminato
rs.length/2-1):b},insertInstanceAt:function(a,b,c,d){var e=this.getTerminatorAt(
a-1),f=e;b?f=b.lastChild||f:c&&(f=c[c.length-1]||f),this.terminators.splice(2*a,
0,f,d);var g=this.templateElement_.parentNode,h=e.nextSibling;if(b)g.insertBefor
e(b,h);else if(c)for(var i=0;i<c.length;i++)g.insertBefore(c[i],h)},extractInsta
nceAt:function(a){var b=[],c=this.getTerminatorAt(a-1),d=this.getTerminatorAt(a)
;b.bound=this.terminators[2*a+1],this.terminators.splice(2*a,2);for(var e=this.t
emplateElement_.parentNode;d!==c;){var f=c.nextSibling;f==d&&(d=c),e.removeChild
(f),b.push(f)}return b},getDelegateFunction:function(a,b,c){if(!a||"function"!=t
ypeof a[b])return null;var d=a[b](c);return"function"==typeof d?d:null},handleSp
lices:function(a){if(!this.closed){var b=this.templateElement_,c=b.bindingDelega
te;if(!b.parentNode||!b.ownerDocument.defaultView)return this.close(),void 0;voi
d 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFunction(c,"
prepareInstanceModel",b)),void 0===this.instancePositionChangedFn_&&(this.instan
cePositionChangedFn_=this.getDelegateFunction(c,"prepareInstancePositionChanged"
,b));var d=new z,e=0;a.forEach(function(a){a.removed.forEach(function(b){var c=t
his.extractInstanceAt(a.index+e);d.set(b,c)},this),e-=a.addedCount},this),a.forE
ach(function(a){for(var b=a.index;b<a.index+a.addedCount;b++){var e,f=this.itera
tedValue[b],g=void 0,h=d.get(f);h?(d.delete(f),e=h.bound):(e=[],this.instanceMod
elFn_&&(f=this.instanceModelFn_(f)),void 0!==f&&(g=this.templateElement_.createI
nstance(f,c,e))),this.insertInstanceAt(b,g,h,e)}},this),d.forEach(function(a){th
is.closeInstanceBindings(a.bound)},this),this.instancePositionChangedFn_&&this.r
eportInstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.getTerminato
rAt(a-1),c=this.getTerminatorAt(a);if(b!==c){var d=b.nextSibling.templateInstanc
e;this.instancePositionChangedFn_(d,a)}},reportInstancesMoved:function(a){for(va
r b=0,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.reportInst
anceMoved(b),b++;else b=e.index;for(;b<e.index+e.addedCount;)this.reportInstance
Moved(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for(var f=this.terminators
.length/2;f>b;)this.reportInstanceMoved(b),b++},closeInstanceBindings:function(a
){for(var b=0;b<a.length;b++)a[b].close()},unobserve:function(){this.arrayObserv
er&&(this.arrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(
!this.closed){this.unobserve();for(var a=1;a<this.terminators.length;a+=2)this.c
loseInstanceBindings(this.terminators[a]);this.terminators.length=0,this.valueOb
server&&this.valueObserver.close(),this.valueObserver=void 0,this.templateElemen
t_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=g
}(this),function(a){"use strict";function b(a,b){if(!a)throw new Error("ASSERT:
"+b)}function c(a){return a>=48&&57>=a}function d(a){return 32===a||9===a||11===
a||12===a||160===a||a>=5760&&" ".indexOf(String.fromCharCode(a))
>0}function e(a){return 10===a||13===a||8232===a||8233===a}function f(a){return
36===a||95===a||a>=65&&90>=a||a>=97&&122>=a}function g(a){return 36===a||95===a|
|a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a}function h(a){return"this"===a}functi
on i(){for(;$>Z&&d(Y.charCodeAt(Z));)++Z}function j(){var a,b;for(a=Z++;$>Z&&(b=
Y.charCodeAt(Z),g(b));)++Z;return Y.slice(a,Z)}function k(){var a,b,c;return a=Z
,b=j(),c=1===b.length?U.Identifier:h(b)?U.Keyword:"null"===b?U.NullLiteral:"true
"===b||"false"===b?U.BooleanLiteral:U.Identifier,{type:c,value:b,range:[a,Z]}}fu
nction l(){var a,b,c=Z,d=Y.charCodeAt(Z),e=Y[Z];switch(d){case 46:case 40:case 4
1:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:return++Z,{t
ype:U.Punctuator,value:String.fromCharCode(d),range:[c,Z]};default:if(a=Y.charCo
deAt(Z+1),61===a)switch(d){case 37:case 38:case 42:case 43:case 45:case 47:case
60:case 62:case 124:return Z+=2,{type:U.Punctuator,value:String.fromCharCode(d)+
String.fromCharCode(a),range:[c,Z]};case 33:case 61:return Z+=2,61===Y.charCodeA
t(Z)&&++Z,{type:U.Punctuator,value:Y.slice(c,Z),range:[c,Z]}}}return b=Y[Z+1],e=
==b&&"&|".indexOf(e)>=0?(Z+=2,{type:U.Punctuator,value:e+b,range:[c,Z]}):"<>=!+-
*%&|^/".indexOf(e)>=0?(++Z,{type:U.Punctuator,value:e,range:[c,Z]}):(s({},X.Unex
pectedToken,"ILLEGAL"),void 0)}function m(){var a,d,e;if(e=Y[Z],b(c(e.charCodeAt
(0))||"."===e,"Numeric literal must start with a decimal digit or a decimal poin
t"),d=Z,a="","."!==e){for(a=Y[Z++],e=Y[Z],"0"===a&&e&&c(e.charCodeAt(0))&&s({},X
.UnexpectedToken,"ILLEGAL");c(Y.charCodeAt(Z));)a+=Y[Z++];e=Y[Z]}if("."===e){for
(a+=Y[Z++];c(Y.charCodeAt(Z));)a+=Y[Z++];e=Y[Z]}if("e"===e||"E"===e)if(a+=Y[Z++]
,e=Y[Z],("+"===e||"-"===e)&&(a+=Y[Z++]),c(Y.charCodeAt(Z)))for(;c(Y.charCodeAt(Z
));)a+=Y[Z++];else s({},X.UnexpectedToken,"ILLEGAL");return f(Y.charCodeAt(Z))&&
s({},X.UnexpectedToken,"ILLEGAL"),{type:U.NumericLiteral,value:parseFloat(a),ran
ge:[d,Z]}}function n(){var a,c,d,f="",g=!1;for(a=Y[Z],b("'"===a||'"'===a,"String
literal must starts with a quote"),c=Z,++Z;$>Z;){if(d=Y[Z++],d===a){a="";break}
if("\\"===d)if(d=Y[Z++],d&&e(d.charCodeAt(0)))"\r"===d&&"\n"===Y[Z]&&++Z;else sw
itch(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+="";break;default:f+=d}el
se{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},X.UnexpectedToken,"ILLEG
AL"),{type:U.StringLiteral,value:f,octal:g,range:[c,Z]}}function o(a){return a.t
ype===U.Identifier||a.type===U.Keyword||a.type===U.BooleanLiteral||a.type===U.Nu
llLiteral}function p(){var a;return i(),Z>=$?{type:U.EOF,range:[Z,Z]}:(a=Y.charC
odeAt(Z),40===a||41===a||58===a?l():39===a||34===a?n():f(a)?k():46===a?c(Y.charC
odeAt(Z+1))?m():l():c(a)?m():l())}function q(){var a;return a=ab,Z=a.range[1],ab
=p(),Z=a.range[1],a}function r(){var a;a=Z,ab=p(),Z=a}function s(a,c){var d,e=Ar
ray.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,function(a,c){return
b(c<e.length,"Message reference must be in range"),e[c]});throw d=new Error(f),d
.index=Z,d.description=f,d}function t(a){s(a,X.UnexpectedToken,a.value)}function
u(a){var b=q();(b.type!==U.Punctuator||b.value!==a)&&t(b)}function v(a){return
ab.type===U.Punctuator&&ab.value===a}function w(a){return ab.type===U.Keyword&&a
b.value===a}function x(){return 59===Y.charCodeAt(Z)?(q(),void 0):(i(),v(";")?(q
(),void 0):(ab.type===U.EOF||v("}")||t(ab),void 0))}function y(){var a=[];for(u(
"[");!v("]");)v(",")?(q(),a.push(null)):(a.push(db()),v("]")||u(","));return u("
]"),_.createArrayExpression(a)}function z(){var a;return i(),a=q(),a.type===U.St
ringLiteral||a.type===U.NumericLiteral?_.createLiteral(a):_.createIdentifier(a.v
alue)}function A(){var a,b;return a=ab,i(),(a.type===U.EOF||a.type===U.Punctuato
r)&&t(a),b=z(),u(":"),_.createProperty("init",b,db())}function B(){var a=[];for(
u("{");!v("}");)a.push(A()),v("}")||u(",");return u("}"),_.createObjectExpressio
n(a)}function C(){var a;return u("("),a=db(),u(")"),a}function D(){var a,b,c;ret
urn v("(")?C():(a=ab.type,a===U.Identifier?c=_.createIdentifier(q().value):a===U
.StringLiteral||a===U.NumericLiteral?c=_.createLiteral(q()):a===U.Keyword?w("thi
s")&&(q(),c=_.createThisExpression()):a===U.BooleanLiteral?(b=q(),b.value="true"
===b.value,c=_.createLiteral(b)):a===U.NullLiteral?(b=q(),b.value=null,c=_.creat
eLiteral(b)):v("[")?c=y():v("{")&&(c=B()),c?c:(t(q()),void 0))}function E(){var
a=[];if(u("("),!v(")"))for(;$>Z&&(a.push(db()),!v(")"));)u(",");return u(")"),a}
function F(){var a;return a=q(),o(a)||t(a),_.createIdentifier(a.value)}function
G(){return u("."),F()}function H(){var a;return u("["),a=db(),u("]"),a}function
I(){var a,b;for(a=D();v(".")||v("[");)v("[")?(b=H(),a=_.createMemberExpression("
[",a,b)):(b=G(),a=_.createMemberExpression(".",a,b));return a}function J(){var a
,b;return ab.type!==U.Punctuator&&ab.type!==U.Keyword?b=cb():v("+")||v("-")||v("
!")?(a=q(),b=J(),b=_.createUnaryExpression(a.value,b)):w("delete")||w("void")||w
("typeof")?s({},X.UnexpectedToken):b=cb(),b}function K(a){var b=0;if(a.type!==U.
Punctuator&&a.type!==U.Keyword)return 0;switch(a.value){case"||":b=1;break;case"
&&":b=2;break;case"==":case"!=":case"===":case"!==":b=6;break;case"<":case">":ca
se"<=":case">=":case"instanceof":b=7;break;case"in":b=7;break;case"+":case"-":b=
9;break;case"*":case"/":case"%":b=11}return b}function L(){var a,b,c,d,e,f,g,h;i
f(g=J(),b=ab,c=K(b),0===c)return g;for(b.prec=c,q(),e=J(),d=[g,b,e];(c=K(ab))>0;
){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=d.pop().value,g=d.pop(),a=
_.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec=c,d.push(b),a=J(),d.push(
a)}for(h=d.length-1,a=d[h];h>1;)a=_.createBinaryExpression(d[h-1].value,d[h-2],a
),h-=2;return a}function M(){var a,b,c;return a=L(),v("?")&&(q(),b=M(),u(":"),c=
M(),a=_.createConditionalExpression(a,b,c)),a}function N(){var a,b;return a=q(),
a.type!==U.Identifier&&t(a),b=v("(")?E():[],_.createFilter(a.value,b)}function O
(a){for(_.createTopLevel(a);v("|");)q(),N() |
| 35 }function P(){i(),r();var a=db();a&&("as"===ab.value?R(a):","===ab.value||"in"==
ab.value&&a.type===W.Identifier?S(a):v("|")?O(a):a.type===W.Identifier&&v(":")?Q
(a):_.createTopLevel(a)),ab.type!==U.EOF&&t(ab)}function Q(a){console.warn("Labe
lled expressions are deprecated. Use tokenList filter instead");var b=a.name;for
(u(":"),a=db(),_.createLabeledStatement(b,a),x();ab.type===U.Identifier;)b=q().v
alue,u(":"),a=db(),_.createLabeledStatement(b,a),x();return null}function R(a){q
();var b=q().value;_.createAsExpression(a,b)}function S(a){var b;","===ab.value&
&(q(),ab.type!==U.Identifier&&t(ab),b=q().value),q();var c=db();_.createInExpres
sion(a.name,b,c)}function T(a,b){return _=b,Y=a,Z=0,$=Y.length,ab=null,bb={label
Set:{}},P()}var U,V,W,X,Y,Z,$,_,ab,bb;U={BooleanLiteral:1,EOF:2,Identifier:3,Key
word:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},V={},V[U.Boo
leanLiteral]="Boolean",V[U.EOF]="<end>",V[U.Identifier]="Identifier",V[U.Keyword
]="Keyword",V[U.NullLiteral]="Null",V[U.NumericLiteral]="Numeric",V[U.Punctuator
]="Punctuator",V[U.StringLiteral]="String",W={ArrayExpression:"ArrayExpression",
BinaryExpression:"BinaryExpression",CallExpression:"CallExpression",ConditionalE
xpression:"ConditionalExpression",EmptyStatement:"EmptyStatement",ExpressionStat
ement:"ExpressionStatement",Identifier:"Identifier",Literal:"Literal",LabeledSta
tement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression
:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Proper
ty:"Property",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpression"}
,X={UnexpectedToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Re
declaration:"%0 '%1' has already been declared"};var cb=I,db=M;a.esprima={parse:
T}}(this),function(a){"use strict";function b(a,b,d){var e;try{if(e=c(a),e.scope
Ident&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b&&"rep
eat"!==b))throw Error("as and in can only be used within <template bind/repeat>"
)}catch(f){return console.error("Invalid expression syntax: "+a,f),void 0}return
function(a,b,c){var d=e.getBinding(a);return e.scopeIdent&&d&&(c.polymerExpress
ionScopeIdent_=e.scopeIdent,e.indexIdent&&(c.polymerExpressionIndexIdent_=e.inde
xIdent)),d}}function c(a){var b=m[a];if(!b){var c=new i;esprima.parse(a,c),b=new
j(c),m[a]=b}return b}function d(a){return function(b){for(var c=[],d=0;d<a.leng
th;d++)a[d].expression(b)&&c.push(a[d].label);return c.join(" ")}}function e(a,b
,c){this.delegate=a,this.name=b,this.last=c}function f(a,b){this.name=a,this.arg
s=b,this.object_=null}function g(){throw Error("Not Implemented")}function h(a){
return a instanceof e?a.valueFn():a}function i(){this.expression=null,this.filte
rs=[],this.labeledStatements=[],this.deps={},this.depsList=[],this.currentPath=v
oid 0,this.scopeIdent=void 0,this.indexIdent=void 0}function j(a){if(this.scopeI
dent=a.scopeIdent,this.indexIdent=a.indexIdent,!a.expression&&!a.labeledStatemen
ts.length)throw Error("No expression or labelled statements found.");var b=a.lab
eledStatements.length?d(a.labeledStatements):h(a.expression);a.filters.forEach(f
unction(a){b=a.toDOM(b)}),this.resolveFn=b,this.paths=a.depsList,1===this.paths.
length&&a.filters.length&&a.expression instanceof e&&(this.filtersSetValueFn=a.f
iltersSetValueFn)}function k(){}function l(a){return String(a).replace(/[A-Z]/g,
function(a){return"-"+a.toLowerCase()})}var m=Object.create(null);e.prototype={g
etPath:function(){return this.path_||(this.path_=this.last?Path.get(this.last.ge
tPath()+"."+this.name):Path.get(this.name)),this.path_},valueFn:function(){if(!t
his.valueFn_){var a=this.getPath(),b=this.delegate,c=this.delegate.deps[a];void
0===c&&(c=this.delegate.deps[a]=this.delegate.depsList.length,this.delegate.deps
List.push(a));var d=b.depsList;this.valueFn_=function(a){return 1===d.length?a:a
[c]}}return this.valueFn_}},f.prototype={get object(){if(this.object_)return thi
s.object_;var a=k.filters[this.name],b=this.args.map(function(a){var b=h(a);retu
rn b()});return this.object_=a.apply(null,b)},toDOM:function(a){var b=this.objec
t;return function(c){var d=a(c);return b.toDOM(d)}},toModel:function(a){var b=th
is.object;return b.toModel?b.toModel(a):a}};var n={"+":function(a){return+a},"-"
:function(a){return-a},"!":function(a){return!a}},o={"+":function(a,b){return a+
b},"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b)
{return a/b},"%":function(a,b){return a%b},"<":function(a,b){return b>a},">":fun
ction(a,b){return a>b},"<=":function(a,b){return b>=a},">=":function(a,b){return
a>=b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":fun
ction(a,b){return a===b},"!==":function(a,b){return a!==b},"&&":function(a,b){re
turn a&&b},"||":function(a,b){return a||b}};i.prototype={get filtersSetValueFn()
{if(!this.filtersSetValueFn_){var a=this.filters;this.filtersSetValueFn_=functio
n(b){for(var c=a.length-1;c>=0;c--)b=a[c].toModel(b);return b}}return this.filte
rsSetValueFn_},createLabeledStatement:function(a,b){return this.labeledStatement
s.push({label:a,expression:b instanceof e?b.valueFn():b}),b},createUnaryExpressi
on:function(a,b){if(!n[a])throw Error("Disallowed operator: "+a);return b=h(b),f
unction(c){return n[a](b(c))}},createBinaryExpression:function(a,b,c){if(!o[a])t
hrow Error("Disallowed operator: "+a);return b=h(b),c=h(c),function(d){return o[
a](b(d),c(d))}},createConditionalExpression:function(a,b,c){return a=h(a),b=h(b)
,c=h(c),function(d){return a(d)?b(d):c(d)}},createIdentifier:function(a){var b=n
ew e(this,a);return b.type="Identifier",b},createMemberExpression:function(a,b,c
){return"["===a?(b=h(b),c=h(c),function(a){return b(a)[c(a)]}):new e(this,c.name
,b)},createLiteral:function(a){return function(){return a.value}},createArrayExp
ression:function(a){for(var b=0;b<a.length;b++)a[b]=h(a[b]);return function(b){f
or(var c=[],d=0;d<a.length;d++)c.push(a[d](b));return c}},createProperty:functio
n(a,b,c){return{key:b instanceof e?b.getPath():b(),value:c}},createObjectExpress
ion:function(a){for(var b=0;b<a.length;b++)a[b].value=h(a[b].value);return funct
ion(b){for(var c={},d=0;d<a.length;d++)c[a[d].key]=a[d].value(b);return c}},crea
teFilter:function(a,b){this.filters.push(new f(a,b))},createAsExpression:functio
n(a,b){this.expression=a,this.scopeIdent=b},createInExpression:function(a,b,c){t
his.expression=c,this.scopeIdent=a,this.indexIdent=b},createTopLevel:function(a)
{this.expression=a},createThisExpression:g},j.prototype={getBinding:function(a){
var b=this.paths;if(!b.length)return{value:this.resolveFn({})};if(1===b.length)r
eturn new PathObserver(a,b[0],void 0,void 0,void 0,this.resolveFn,this.filtersSe
tValueFn);for(var c=new CompoundPathObserver(void 0,void 0,void 0,this.resolveFn
),d=0;d<b.length;d++)c.addPath(a,b[d]);return c.start(),c}},k.filters=Object.cre
ate(null),k.filters.tokenList=function(){return{toDOM:function(a){var b=[];for(v
ar c in a)a[c]&&b.push(c);return b.join(" ")}}},k.filters.styleObject=function()
{return{toDOM:function(a){var b=[];for(var c in a)b.push(l(c)+": "+a[c]);return
b.join("; ")}}},k.prototype={prepareInstancePositionChanged:function(a){var b=a.
polymerExpressionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBin
ding:function(a,c,d){return Path.get(a).valid?void 0:b(a,c,d)},prepareInstanceMo
del:function(a){var b=a.polymerExpressionScopeIdent_;if(b){var c=a.templateInsta
nce?a.templateInstance.model:a.model;return function(a){var d=Object.create(c);r
eturn d[b]=a,d}}}},a.PolymerExpressions=k}(this),function(a){function b(){e||(e=
!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Platform.flush
()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()}))}var c=d
ocument.createElement("style");c.textContent="template {display: none !important
;} /* injected by platform.js */";var d=document.querySelector("head");d.insertB
efore(c,d.firstChild);var e,f=125;window.addEventListener("WebComponentsReady",f
unction(){b(),Observer.hasObjectObserve||(a.flushPoll=setInterval(b,f))}),a.flus
h=b}(window.Platform),function(a){function b(a){return d(a,i)}function c(a){retu
rn d(a,j)}function d(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}
function e(a){return"script"===a.localName}function f(a,b){var c=a;c instanceof
Document||(c=document.implementation.createHTMLDocument(i)),c._URL=b;var d=c.cre
ateElement("base");return d.setAttribute("href",document.baseURI||document.URL),
c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTem
plateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}
a||(a=window.HTMLImports={flags:{}});var g,h=a.xhr,i="import",j="stylesheet",k={
documents:{},cache:{},preloadSelectors:["link[rel="+i+"]","element link[rel="+j+
"]","template","script[src]:not([type])",'script[src][type="text/javascript"]'].
join(","),loader:function(a){return g=new l(k.loaded,a),g.cache=k.cache,g},load:
function(a,b){g=k.loader(b),k.preload(a)},preload:function(a){var b=a.querySelec
torAll(k.preloadSelectors);b=this.filterMainDocumentNodes(a,b),b=this.extractTem
plateNodes(b),g.addNodes(b)},filterMainDocumentNodes:function(a,b){return a===do
cument&&(b=Array.prototype.filter.call(b,function(a){return!e(a)})),b},extractTe
mplateNodes:function(a){var b=[];return a=Array.prototype.filter.call(a,function
(a){if("template"===a.localName){if(a.content){var c=a.content.querySelectorAll(
"link[rel="+j+"]");c.length&&(b=b.concat(Array.prototype.slice.call(c,0)))}retur
n!1}return!0}),b.length&&(a=a.concat(b)),a},loaded:function(a,d,e){if(b(d)){var
g=k.documents[a];g||(g=f(e,a),p.resolvePathsInHTML(g),k.documents[a]=g,k.preload
(g)),d.import={href:a,ownerNode:d,content:g},d.content=e=g}d.__resource=e,c(d)&&
p.resolvePathsInStylesheet(d)}},l=function(a,b){this.onload=a,this.oncomplete=b,
this.inflight=0,this.pending={},this.cache={}};l.prototype={addNodes:function(a)
{this.inflight+=a.length,q(a,this.require,this),this.checkDone()},require:functi
on(a){var b=p.nodeUrl(a);a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},dedupe
:function(a,b){return this.pending[a]?(this.pending[a].push(b),!0):this.cache[a]
?(this.onload(a,b,g.cache[a]),this.tail(),!0):(this.pending[a]=[b],!1)},fetch:fu
nction(a,b){var c=function(c,d){this.receive(a,b,c,d)}.bind(this);h.load(a,c)},r
eceive:function(a,b,c,d){c||(g.cache[a]=d),g.pending[a].forEach(function(b){c||t
his.onload(a,b,d),this.tail()},this),g.pending[a]=null},tail:function(){--this.i
nflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}
};var m=["href","src","action"],n="["+m.join("],[")+"]",o="{{.*}}",p={nodeUrl:fu
nction(a){return p.resolveUrl(p.documentURL,p.hrefOrSrc(a))},hrefOrSrc:function(
a){return a.getAttribute("href")||a.getAttribute("src")},documentUrlFromNode:fun
ction(a){return p.getDocumentUrl(a.ownerDocument||a)},getDocumentUrl:function(a)
{var b=a&&(a._URL||a.impl&&a.impl._URL||a.baseURI||a.URL)||"";return b.split("#"
)[0]},resolveUrl:function(a,b){return this.isAbsUrl(b)?b:this.compressUrl(this.u
rlToPath(a)+b)},resolveRelativeUrl:function(a,b){return this.isAbsUrl(b)?b:this.
makeDocumentRelPath(this.resolveUrl(a,b))},isAbsUrl:function(a){return/(^data:)|
(^http[s]?:)|(^\/)/.test(a)},urlToPath:function(a){var b=a.split("/");return b.p
op(),b.push(""),b.join("/")},compressUrl:function(a){var b="",c=a.indexOf("?");c
>-1&&(b=a.substring(c),a=a.substring(c,0));for(var d,e=a.split("/"),f=0;f<e.leng
th;f++)d=e[f],".."===d&&(e.splice(f-1,2),f-=2);return e.join("/")+b},makeDocumen
tRelPath:function(a){return p.urlElt.href=a,!p.urlElt.host||p.urlElt.host===wind
ow.location.host&&p.urlElt.protocol===window.location.protocol?this.makeRelPath(
p.documentURL,p.urlElt.href):a},makeRelPath:function(a,b){for(var c=a.split("/")
,d=b.split("/");c.length&&c[0]===d[0];)c.shift(),d.shift();for(var e=0,f=c.lengt
h-1;f>e;e++)d.unshift("..");var g=d.join("/");return g},resolvePathsInHTML:funct
ion(a,b){b=b||p.documentUrlFromNode(a),p.resolveAttributes(a,b),p.resolveStyleEl
ts(a,b);var c=a.querySelectorAll("template");c&&q(c,function(a){a.content&&p.res
olvePathsInHTML(a.content,b)})},resolvePathsInStylesheet:function(a){var b=p.nod
eUrl(a);a.__resource=p.resolveCssText(a.__resource,b)},resolveStyleElts:function
(a,b){var c=a.querySelectorAll("style");c&&q(c,function(a){a.textContent=p.resol
veCssText(a.textContent,b)})},resolveCssText:function(a,b){return a.replace(/url
\([^)]*\)/g,function(a){var c=a.replace(/["']/g,"").slice(4,-1);return c=p.resol
veRelativeUrl(b,c),"url("+c+")"})},resolveAttributes:function(a,b){var c=a&&a.qu
erySelectorAll(n);c&&q(c,function(a){this.resolveNodeAttributes(a,b)},this)},res
olveNodeAttributes:function(a,b){m.forEach(function(c){var d=a.attributes[c];if(
d&&d.value&&d.value.search(o)<0){var e=p.resolveRelativeUrl(b,d.value);d.value=e
}})}};p.documentURL=p.getDocumentUrl(document),p.urlElt=document.createElement("
a"),h=h||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.st
atus||0===a.status},load:function(b,c,d){var e=new XMLHttpRequest;return(a.flags
.debug||a.flags.bust)&&(b+="?"+Math.random()),e.open("GET",b,h.async),e.addEvent
Listener("readystatechange",function(){4===e.readyState&&c.call(d,!h.ok(e)&&e,e.
response||e.responseText,b)}),e.send(),e},loadDocument:function(a,b,c){this.load
(a,b,c).responseType="document"}};var q=Array.prototype.forEach.call.bind(Array.
prototype.forEach);a.path=p,a.xhr=h,a.importer=k,a.getDocumentUrl=p.getDocumentU
rl,a.IMPORT_LINK_TYPE=i}(window.HTMLImports),function(a){function b(a){return"li
nk"===a.localName&&a.getAttribute("rel")===f}function c(a){return a.parentNode&&
!d(a)&&!e(a)}function d(a){return a.ownerDocument===document||a.ownerDocument.im
pl===document}function e(a){return a.parentNode&&"element"===a.parentNode.localN
ame}var f="import",g={selectors:["link[rel="+f+"]","link[rel=stylesheet]","style
","script:not([type])",'script[type="text/javascript"]'],map:{link:"parseLink",s
cript:"parseScript",style:"parseGeneric"},parse:function(a){if(!a.__importParsed
){a.__importParsed=!0;var b=a.querySelectorAll(g.selectors);h(b,function(a){g[g.
map[a.localName]](a)})}},parseLink:function(a){b(a)?a.content&&g.parse(a.content
):this.parseGeneric(a)},parseGeneric:function(a){c(a)&&document.head.appendChild
(a)},parseScript:function(b){if(c(b)){var d=(b.__resource||b.textContent).trim()
;if(d){var e=b.__nodeUrl;if(!e){var e=a.path.documentUrlFromNode(b),f="["+Math.f
loor(1e3*(Math.random()+1))+"]",g=d.match(/Polymer\(['"]([^'"]*)/);f=g&&g[1]||f,
e+="/"+f+".js"}d+="\n//# sourceURL="+e+"\n",eval.call(window,d)}}}},h=Array.prot
otype.forEach.call.bind(Array.prototype.forEach);a.parser=g}(HTMLImports),functi
on(){function a(){HTMLImports.importer.load(document,function(){HTMLImports.pars
er.parse(document),HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime
(),document.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))})}"
function"!=typeof window.CustomEvent&&(window.CustomEvent=function(a){var b=docu
ment.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),b}),"complete"===docu
ment.readyState||"interactive"===document.readyState&&!window.attachEvent?a():wi
ndow.addEventListener("DOMContentLoaded",a)}(),function(a){function b(a){u.push(
a),t||(t=!0,q(d))}function c(a){return window.ShadowDOMPolyfill&&window.ShadowDO
MPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(function(a,b)
{return a.uid_-b.uid_});var b=!1;a.forEach(function(a){var c=a.takeRecords();e(a
),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}function e(a){a.nodes_.forEach(func
tion(b){var c=p.get(b);c&&c.forEach(function(b){b.observer===a&&b.removeTransien
tObservers()})})}function f(a,b){for(var c=a;c;c=c.parentNode){var d=p.get(c);if
(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.options;if(c===a||g.subtree){var h
=b(g);h&&f.enqueue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],this.reco
rds_=[],this.uid_=++v}function h(a,b){this.type=a,this.target=b,this.addedNodes=
[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.att
ributeName=null,this.attributeNamespace=null,this.oldValue=null}function i(a){va
r b=new h(a.type,a.target);return b.addedNodes=a.addedNodes.slice(),b.removedNod
es=a.removedNodes.slice(),b.previousSibling=a.previousSibling,b.nextSibling=a.ne
xtSibling,b.attributeName=a.attributeName,b.attributeNamespace=a.attributeNamesp
ace,b.oldValue=a.oldValue,b}function j(a,b){return w=new h(a,b)}function k(a){re
turn x?x:(x=i(w),x.oldValue=a,x)}function l(){w=x=void 0}function m(a){return a=
==x||a===w}function n(a,b){return a===b?a:x&&m(a)?x:null}function o(a,b,c){this.
observer=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var p=new
WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=String(Math.random());window.
addEventListener("message",function(a){if(a.data===s){var b=r;r=[],b.forEach(fun
ction(a){a()})}}),q=function(a){r.push(a),window.postMessage(s,"*")}}var t=!1,u=
[],v=0;g.prototype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attributes&
&!b.characterData||b.attributeOldValue&&!b.attributes||b.attributeFilter&&b.attr
ibuteFilter.length&&!b.attributes||b.characterDataOldValue&&!b.characterData)thr
ow new SyntaxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.length;f++)
if(d[f].observer===this){e=d[f],e.removeListeners(),e.options=b;break}e||(e=new
o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListeners()},disconnect:function
(){this.nodes_.forEach(function(a){for(var b=p.get(a),c=0;c<b.length;c++){var d=
b[c];if(d.observer===this){d.removeListeners(),b.splice(c,1);break}}},this),this
.records_=[]},takeRecords:function(){var a=this.records_;return this.records_=[]
,a}};var w,x;o.prototype={enqueue:function(a){var c=this.observer.records_,d=c.l
ength;if(c.length>0){var e=c[d-1],f=n(e,a);if(f)return c[d-1]=f,void 0}else b(th
is.observer);c[d]=a},addListeners:function(){this.addListeners_(this.target)},ad
dListeners_:function(a){var b=this.options;b.attributes&&a.addEventListener("DOM
AttrModified",this,!0),b.characterData&&a.addEventListener("DOMCharacterDataModi
fied",this,!0),b.childList&&a.addEventListener("DOMNodeInserted",this,!0),(b.chi
ldList||b.subtree)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeListener
s:function(){this.removeListeners_(this.target)},removeListeners_:function(a){va
r b=this.options;b.attributes&&a.removeEventListener("DOMAttrModified",this,!0),
b.characterData&&a.removeEventListener("DOMCharacterDataModified",this,!0),b.chi
ldList&&a.removeEventListener("DOMNodeInserted",this,!0),(b.childList||b.subtree
)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:functio
n(a){if(a!==this.target){this.addListeners_(a),this.transientObservedNodes.push(
a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)}},removeTransientObservers:funct
ion(){var a=this.transientObservedNodes;this.transientObservedNodes=[],a.forEach
(function(a){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++)if(b
[c]===this){b.splice(c,1);break}},this)},handleEvent:function(a){switch(a.stopIm
mediatePropagation(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.relatedN
ode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attribut
eNamespace=c;var g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f(d,fu
nction(a){return!a.attributes||a.attributeFilter&&a.attributeFilter.length&&-1==
=a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?void 0:a.attrib
uteOldValue?k(g):e});break;case"DOMCharacterDataModified":var d=a.target,e=j("ch
aracterData",d),g=a.prevValue;f(d,function(a){return a.characterData?a.character
DataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved":this.addTransientObserve
r(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNodeIns
erted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling,o=m.nextSiblin
g,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.previousSibling=n,e.nextS
ibling=o,f(d,function(a){return a.childList?e:void 0})}l()}},a.JsMutationObserve
r=g,!a.MutationObserver&&a.WebKitMutationObserver&&(a.MutationObserver=a.WebKitM
utationObserver),a.MutationObserver||(a.MutationObserver=g)}(this),window.Custom
Elements={flags:{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!
e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)
c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var
c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){re
turn d(a)?!0:(c(a,d),void 0)}),c(a,d)}function e(a){return h(a)?(i(a),!0):(l(a),
void 0)}function f(a){d(a,function(a){return e(a)?!0:void 0})}function g(a){retu
rn e(a)||f(a)}function h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){
var c=b.getAttribute("is")||b.localName,d=a.registry[c];if(d)return y.dom&&conso
le.group("upgrade:",b.localName),a.upgrade(b),y.dom&&console.groupEnd(),!0}}func
tion i(a){l(a),q(a)&&d(a,function(a){l(a)})}function j(a){if(B.push(a),!A){A=!0;
var b=window.Platform&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function
k(){A=!1;for(var a,b=B,c=0,d=b.length;d>c&&(a=b[c]);c++)a();B=[]}function l(a){
z?j(function(){m(a)}):m(a)}function m(a){(a.enteredViewCallback||a.__upgraded__&
&y.dom)&&(y.dom&&console.group("inserted:",a.localName),q(a)&&(a.__inserted=(a._
_inserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?y.dom&&console.w
arn("inserted:",a.localName,"insert/remove count:",a.__inserted):a.enteredViewCa
llback&&(y.dom&&console.log("inserted:",a.localName),a.enteredViewCallback())),y
.dom&&console.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a
){z?j(function(){p(a)}):p(a)}function p(a){(a.leftViewCallback||a.__upgraded__&&
y.dom)&&(y.dom&&console.log("removed:",a.localName),q(a)||(a.__inserted=(a.__ins
erted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?y.dom&&console.warn(
"removed:",a.localName,"insert/remove count:",a.__inserted):a.leftViewCallback&&
a.leftViewCallback()))}function q(a){for(var b=a,c=window.ShadowDOMPolyfill&&win
dow.ShadowDOMPolyfill.wrapIfNeeded(document)||document;b;){if(b==c)return!0;b=b.
parentNode||b.host}}function r(a){if(a.shadowRoot&&!a.shadowRoot.__watched){y.do
m&&console.log("watching shadow-root for: ",a.localName);for(var b=a.shadowRoot;
b;)s(b),b=b.olderShadowRoot}}function s(a){a.__watched||(v(a),a.__watched=!0)}fu
nction t(a){if(y.dom){var b=a[0];if(b&&"childList"===b.type&&b.addedNodes&&b.add
edNodes){for(var c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.parentNode;var
d=c&&(c.URL||c._URL||c.host&&c.host.localName)||"";d=d.split("/?").shift().split
("/").pop()}console.group("mutations (%d) [%s]",a.length,d||"")}a.forEach(functi
on(a){"childList"===a.type&&(D(a.addedNodes,function(a){a.localName&&g(a)}),D(a.
removedNodes,function(a){a.localName&&n(a)}))}),y.dom&&console.groupEnd()}functi
on u(){t(C.takeRecords()),k()}function v(a){C.observe(a,{childList:!0,subtree:!0
})}function w(a){v(a)}function x(a){y.dom&&console.group("upgradeDocument: ",(a.
URL||a._URL||"").split("/").pop()),g(a),y.dom&&console.groupEnd()}var y=window.l
ogFlags||{},z=!window.MutationObserver||window.MutationObserver===window.JsMutat
ionObserver;a.hasPolyfillMutations=z;var A=!1,B=[],C=new MutationObserver(t),D=A
rray.prototype.forEach.call.bind(Array.prototype.forEach);a.watchShadow=r,a.upgr
adeAll=g,a.upgradeSubtree=f,a.observeDocument=w,a.upgradeDocument=x,a.takeRecord
s=u}(window.CustomElements),function(a){function b(b,f){var g=f||{};if(!b)throw
new Error("document.register: first argument `name` must not be empty");if(b.ind
exOf("-")<0)throw new Error("document.register: first argument ('name') must con
tain a dash ('-'). Argument provided was '"+String(b)+"'.");if(g.name=b,!g.proto
type)throw new Error("Options missing required prototype property");return g.lif
ecycle=g.lifecycle||{},g.ancestry=c(g.extends),d(g),e(g),k(g.prototype),m(b,g),g
.ctor=n(g),g.ctor.prototype=g.prototype,g.prototype.constructor=g.ctor,a.ready&&
a.upgradeAll(document),g.ctor}function c(a){var b=v[a];return b?c(b.extends).con
cat([b]):[]}function d(a){for(var b,c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&
b.tag;a.tag=c||a.name,c&&(a.is=a.name)}function e(a){if(!Object.__proto__){var b
=HTMLElement.prototype;if(a.is){var c=document.createElement(a.tag);b=Object.get
PrototypeOf(c)}for(var d,e=a.prototype;e&&e!==b;){var d=Object.getPrototypeOf(e)
;e.__proto__=d,e=d}}a.native=b}function f(a){return g(w(a.tag),a)}function g(b,c
){return c.is&&b.setAttribute("is",c.is),h(b,c),b.__upgraded__=!0,a.upgradeSubtr
ee(b),j(b),b}function h(a,b){Object.__proto__?a.__proto__=b.prototype:(i(a,b.pro
totype,b.native),a.__proto__=b.prototype)}function i(a,b,c){for(var d={},e=b;e!=
=c&&e!==HTMLUnknownElement.prototype;){for(var f,g=Object.getOwnPropertyNames(e)
,h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwnPropertyDescriptor
(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function j(a){a.createdCallback&&a.cr
eatedCallback()}function k(a){var b=a.setAttribute;a.setAttribute=function(a,c){
l.call(this,a,c,b)};var c=a.removeAttribute;a.removeAttribute=function(a,b){l.ca
ll(this,a,b,c)}}function l(a,b,c){var d=this.getAttribute(a);c.apply(this,argume
nts),this.attributeChangedCallback&&this.getAttribute(a)!==d&&this.attributeChan
gedCallback(a,d)}function m(a,b){v[a]=b}function n(a){return function(){return f
(a)}}function o(a,b){var c=v[b||a];return c?new c.ctor:w(a)}function p(a){if(!a.
__upgraded__&&a.nodeType===Node.ELEMENT_NODE){var b=a.getAttribute("is")||a.loca
lName,c=v[b];return c&&g(a,c)}}function q(b){var c=x.call(this,b);return a.upgra
deAll(c),c}a||(a=window.CustomElements={flags:{}});var r=a.flags,s=Boolean(docum
ent.register),t=!r.register&&s;if(t){var u=function(){};a.registry={},a.upgradeE
lement=u,a.watchShadow=u,a.upgrade=u,a.upgradeAll=u,a.upgradeSubtree=u,a.observe
Document=u,a.upgradeDocument=u,a.takeRecords=u}else{var v={},w=document.createEl
ement.bind(document),x=Node.prototype.cloneNode;document.register=b,document.cre
ateElement=o,Node.prototype.cloneNode=q,a.registry=v,a.upgrade=p}a.hasNative=s,a
.useNative=t}(window.CustomElements),function(){function a(a){return"link"===a.l
ocalName&&a.getAttribute("rel")===b}var b=window.HTMLImports?HTMLImports.IMPORT_
LINK_TYPE:"none",c={selectors:["link[rel="+b+"]"],map:{link:"parseLink"},parse:f
unction(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelectorAll(c.selectors);d
(b,function(a){c[c.map[a.localName]](a)}),CustomElements.upgradeDocument(a),Cust
omElements.observeDocument(a)}},parseLink:function(b){a(b)&&this.parseImport(b)}
,parseImport:function(a){a.content&&c.parse(a.content)}},d=Array.prototype.forEa
ch.call.bind(Array.prototype.forEach);CustomElements.parser=c}(),function(){func
tion a(){CustomElements.parser.parse(document),CustomElements.upgradeDocument(do
cument);var a=window.Platform&&Platform.endOfMicrotask?Platform.endOfMicrotask:s
etTimeout;a(function(){CustomElements.ready=!0,CustomElements.readyTime=Date.now
(),window.HTMLImports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImpo
rts.readyTime),document.body.dispatchEvent(new CustomEvent("WebComponentsReady",
{bubbles:!0}))})}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=f
unction(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!0),
b}),"complete"===document.readyState)a();else if("interactive"!==document.readyS
tate||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var b=w
indow.HTMLImports?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener
(b,a)}else a()}(),function(){function a(){}var b=document.createElement("style")
;b.textContent="element {display: none !important;} /* injected by platform.js *
/";var c=document.querySelector("head");if(c.insertBefore(b,c.firstChild),window
.ShadowDOMPolyfill){CustomElements.watchShadow=a,CustomElements.watchAllShadows=
a;var d=["upgradeAll","upgradeSubtree","observeDocument","upgradeDocument"],e={}
;d.forEach(function(a){e[a]=CustomElements[a]}),d.forEach(function(a){CustomElem
ents[a]=function(b){return e[a](wrap(b))}})}}(),function(a){function b(a){f.text
Content=d++,e.push(a)}function c(){for(;e.length;)e.shift()()}var d=0,e=[],f=doc
ument.createTextNode("");new(window.MutationObserver||JsMutationObserver)(c).obs
erve(f,{characterData:!0}),a.endOfMicrotask=b}(Platform),function(a){a=a||{};var
b={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:void 0},canTarg
et:function(a){return a&&Boolean(a.elementFromPoint)},targetingShadow:function(a
){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShadow:function(a
){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&(b=c.olderSh
adowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shadow(a);c;)b.pu
sh(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){if(a){var d,e,f
=a.elementFromPoint(b,c);for(e=this.targetingShadow(f);e;){if(d=e.elementFromPoi
nt(b,c)){var g=this.targetingShadow(d);return this.searchRoot(g,b,c)||d}e=this.o
lderShadow(e)}return f}},owner:function(a){for(var b=a;b.parentNode;)b=b.parentN
ode;return b},findTarget:function(a){var b=a.clientX,c=a.clientY,d=this.owner(a.
target);return d.elementFromPoint(b,c)||(d=document),this.searchRoot(document,b,
c)}};a.targetFinding=b,a.findTarget=b.findTarget.bind(b),window.PointerEventsPol
yfill=a}(window.PointerEventsPolyfill),function(){function a(a){return'[touch-ac
tion="'+a+'"]'}function b(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a
+"; touch-action-delay: none; }"}var c=["none","auto","pan-x","pan-y",{rule:"pan
-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}],d="";c.forEach(function(c){d
+=String(c)===c?a(c)+b(c):c.selectors.map(a)+b(c.rule)});var e=document.createEl
ement("style");e.textContent=d,document.head.appendChild(e)}(),function(a){funct
ion b(a,e){e=e||{};var f=e.buttons;if(void 0===f)switch(e.which){case 1:f=1;brea
k;case 2:f=4;break;case 3:f=2;break;default:f=0}var i;if(c)i=new MouseEvent(a,e)
;else{i=document.createEvent("MouseEvent");for(var j,k={},l=0;l<g.length;l++)j=g
[l],k[j]=e[j]||h[l];i.initMouseEvent(a,k.bubbles,k.cancelable,k.view,k.detail,k.
screenX,k.screenY,k.clientX,k.clientY,k.ctrlKey,k.altKey,k.shiftKey,k.metaKey,k.
button,k.relatedTarget)}i.__proto__=b.prototype,d||Object.defineProperty(i,"butt
ons",{get:function(){return f},enumerable:!0});var m=0;return m=e.pressure?e.pre
ssure:f?.5:0,Object.defineProperties(i,{pointerId:{value:e.pointerId||0,enumerab
le:!0},width:{value:e.width||0,enumerable:!0},height:{value:e.height||0,enumerab
le:!0},pressure:{value:m,enumerable:!0},tiltX:{value:e.tiltX||0,enumerable:!0},t
iltY:{value:e.tiltY||0,enumerable:!0},pointerType:{value:e.pointerType||"",enume
rable:!0},hwTimestamp:{value:e.hwTimestamp||0,enumerable:!0},isPrimary:{value:e.
isPrimary||!1,enumerable:!0}}),i}var c=!1,d=!1;try{var e=new MouseEvent("click",
{buttons:1});c=!0,d=1===e.buttons}catch(f){}var g=["bubbles","cancelable","view"
,"detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey",
"metaKey","button","relatedTarget"],h=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,nul
l];b.prototype=Object.create(MouseEvent.prototype),a.PointerEvent||(a.PointerEve
nt=b)}(window),function(a){function b(){this.ids=[],this.pointers=[]}b.prototype
={set:function(a,b){var c=this.ids.indexOf(a);c>-1?this.pointers[c]=b:(this.ids.
push(a),this.pointers.push(b))},has:function(a){return this.ids.indexOf(a)>-1},"
delete":function(a){var b=this.ids.indexOf(a);b>-1&&(this.ids.splice(b,1),this.p
ointers.splice(b,1))},get:function(a){var b=this.ids.indexOf(a);return this.poin
ters[b]},get size(){return this.pointers.length},clear:function(){this.ids.lengt
h=0,this.pointers.length=0},forEach:function(a,b){this.ids.forEach(function(c,d)
{a.call(b,c,this.pointers[d],this)},this)}},a.PointerMap=window.Map&&Map.prototy
pe.forEach?Map:b}(window.PointerEventsPolyfill),function(a){var b=["bubbles","ca
ncelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","alt
Key","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width"
,"height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","ty
pe","target","currentTarget","which"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,n
ull,void 0,0,0,0,0,0,0,"",0,!1,"",null,null,0],d={targets:new WeakMap,handledEve
nts:new WeakMap,pointermap:new a.PointerMap,eventMap:{},eventSources:{},eventSou
rceList:[],registerSource:function(a,b){var c=b,d=c.events; |
| 36 d&&(d.forEach(function(a){c[a]&&(this.eventMap[a]=c[a].bind(c))},this),this.even
tSources[a]=c,this.eventSourceList.push(c))},register:function(a){for(var b,c=th
is.eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.register.ca
ll(b,a)},unregister:function(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.f
ireEvent("pointerdown",a)},move:function(a){this.fireEvent("pointermove",a)},up:
function(a){this.fireEvent("pointerup",a)},enter:function(a){a.bubbles=!1,this.f
ireEvent("pointerenter",a)},leave:function(a){a.bubbles=!1,this.fireEvent("point
erleave",a)},over:function(a){a.bubbles=!0,this.fireEvent("pointerover",a)},out:
function(a){a.bubbles=!0,this.fireEvent("pointerout",a)},cancel:function(a){this
.fireEvent("pointercancel",a)},leaveOut:function(a){a.target.contains(a.relatedT
arget)||this.leave(a),this.out(a)},enterOver:function(a){a.target.contains(a.rel
atedTarget)||this.enter(a),this.over(a)},eventHandler:function(a){if(!this.handl
edEvents.get(a)){var b=a.type,c=this.eventMap&&this.eventMap[b];c&&c(a),this.han
dledEvents.set(a,!0)}},listen:function(a,b){b.forEach(function(b){this.addEvent(
a,b)},this)},unlisten:function(a,b){b.forEach(function(b){this.removeEvent(a,b)}
,this)},addEvent:function(a,b){a.addEventListener(b,this.boundHandler)},removeEv
ent:function(a,b){a.removeEventListener(b,this.boundHandler)},makeEvent:function
(a,b){this.captureInfo&&(b.relatedTarget=null);var c=new PointerEvent(a,b);retur
n this.targets.set(c,this.targets.get(b)||b.target),c},fireEvent:function(a,b){v
ar c=this.makeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){fo
r(var d,e={},f=0;f<b.length;f++)d=b[f],e[d]=a[d]||c[f];return e},getTarget:funct
ion(a){return this.captureInfo&&this.captureInfo.id===a.pointerId?this.captureIn
fo.target:this.targets.get(a)},setCapture:function(a,b){this.captureInfo&&this.r
eleaseCapture(this.captureInfo.id),this.captureInfo={id:a,target:b};var c=new Po
interEvent("gotpointercapture",{bubbles:!0});this.implicitRelease=this.releaseCa
pture.bind(this,a),document.addEventListener("pointerup",this.implicitRelease),d
ocument.addEventListener("pointercancel",this.implicitRelease),this.targets.set(
c,b),this.asyncDispatchEvent(c)},releaseCapture:function(a){if(this.captureInfo&
&this.captureInfo.id===a){var b=new PointerEvent("lostpointercapture",{bubbles:!
0}),c=this.captureInfo.target;this.captureInfo=null,document.removeEventListener
("pointerup",this.implicitRelease),document.removeEventListener("pointercancel",
this.implicitRelease),this.targets.set(b,c),this.asyncDispatchEvent(b)}},dispatc
hEvent:function(a){var b=this.getTarget(a);return b?b.dispatchEvent(a):void 0},a
syncDispatchEvent:function(a){setTimeout(this.dispatchEvent.bind(this,a),0)}};d.
boundHandler=d.eventHandler.bind(d),a.dispatcher=d,a.register=d.register.bind(d)
,a.unregister=d.unregister.bind(d)}(window.PointerEventsPolyfill),function(a){fu
nction b(a,b,c,d){this.addCallback=a.bind(d),this.removeCallback=b.bind(d),this.
changedCallback=c.bind(d),g&&(this.observer=new g(this.mutationWatcher.bind(this
)))}var c=Array.prototype.forEach.call.bind(Array.prototype.forEach),d=Array.pro
totype.map.call.bind(Array.prototype.map),e=Array.prototype.slice.call.bind(Arra
y.prototype.slice),f=Array.prototype.filter.call.bind(Array.prototype.filter),g=
window.MutationObserver||window.WebKitMutationObserver,h="[touch-action]",i={sub
tree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-
action"]};b.prototype={watchSubtree:function(b){a.targetFinding.canTarget(b)&&th
is.observer.observe(b,i)},enableOnSubtree:function(a){this.watchSubtree(a),a===d
ocument&&"complete"!==document.readyState?this.installOnLoad():this.installNewSu
btree(a)},installNewSubtree:function(a){c(this.findElements(a),this.addElement,t
his)},findElements:function(a){return a.querySelectorAll?a.querySelectorAll(h):[
]},removeElement:function(a){this.removeCallback(a)},addElement:function(a){this
.addCallback(a)},elementChanged:function(a,b){this.changedCallback(a,b)},concatL
ists:function(a,b){return a.concat(e(b))},installOnLoad:function(){document.addE
ventListener("DOMContentLoaded",this.installNewSubtree.bind(this,document))},isE
lement:function(a){return a.nodeType===Node.ELEMENT_NODE},flattenMutationTree:fu
nction(a){var b=d(a,this.findElements,this);return b.push(f(a,this.isElement)),b
.reduce(this.concatLists,[])},mutationWatcher:function(a){a.forEach(this.mutatio
nHandler,this)},mutationHandler:function(a){if("childList"===a.type){var b=this.
flattenMutationTree(a.addedNodes);b.forEach(this.addElement,this);var c=this.fla
ttenMutationTree(a.removedNodes);c.forEach(this.removeElement,this)}else"attribu
tes"===a.type&&this.elementChanged(a.target,a.oldValue)}},g||(b.prototype.watchS
ubtree=function(){console.warn("PointerEventsPolyfill: MutationObservers not fou
nd, touch-action will not be dynamically detected")}),a.Installer=b}(window.Poin
terEventsPolyfill),function(a){var b=a.dispatcher,c=b.pointermap,d=25,e={POINTER
_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup","mouseover"
,"mouseout"],register:function(a){b.listen(a,this.events)},unregister:function(a
){b.unlisten(a,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(a
){for(var b,c=this.lastTouches,e=a.clientX,f=a.clientY,g=0,h=c.length;h>g&&(b=c[
g]);g++){var i=Math.abs(e-b.x),j=Math.abs(f-b.y);if(d>=i&&d>=j)return!0}},prepar
eEvent:function(a){var c=b.cloneEvent(a);return c.pointerId=this.POINTER_ID,c.is
Primary=!0,c.pointerType=this.POINTER_TYPE,c},mousedown:function(a){if(!this.isE
ventSimulatedFromTouch(a)){var d=c.has(this.POINTER_ID);d&&this.cancel(a);var e=
this.prepareEvent(a);c.set(this.POINTER_ID,a),b.down(e)}},mousemove:function(a){
if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a);b.move(c)}},mo
useup:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c.get(this.POINTE
R_ID);if(d&&d.button===a.button){var e=this.prepareEvent(a);b.up(e),this.cleanup
Mouse()}}},mouseover:function(a){if(!this.isEventSimulatedFromTouch(a)){var c=th
is.prepareEvent(a);b.enterOver(c)}},mouseout:function(a){if(!this.isEventSimulat
edFromTouch(a)){var c=this.prepareEvent(a);b.leaveOut(c)}},cancel:function(a){va
r c=this.prepareEvent(a);b.cancel(c),this.cleanupMouse()},cleanupMouse:function(
){c.delete(this.POINTER_ID)}};a.mouseEvents=e}(window.PointerEventsPolyfill),fun
ction(a){var b,c=a.dispatcher,d=a.findTarget,e=a.targetFinding.allShadows.bind(a
.targetFinding),f=c.pointermap,g=Array.prototype.map.call.bind(Array.prototype.m
ap),h=2500,i=200,j="touch-action",k="string"==typeof document.head.style.touchAc
tion,l={scrollType:new WeakMap,events:["touchstart","touchmove","touchend","touc
hcancel"],register:function(a){k?c.listen(a,this.events):b.enableOnSubtree(a)},u
nregister:function(a){k&&c.unlisten(a,this.events)},elementAdded:function(a){var
b=a.getAttribute(j),d=this.touchActionToScrollType(b);d&&(this.scrollType.set(a
,d),c.listen(a,this.events),e(a).forEach(function(a){this.scrollType.set(a,d),c.
listen(a,this.events)},this))},elementRemoved:function(a){this.scrollType.delete
(a),c.unlisten(a,this.events),e(a).forEach(function(a){this.scrollType.delete(a)
,c.unlisten(a,this.events)},this)},elementChanged:function(a,b){var c=a.getAttri
bute(j),d=this.touchActionToScrollType(c),f=this.touchActionToScrollType(b);d&&f
?(this.scrollType.set(a,d),e(a).forEach(function(a){this.scrollType.set(a,d)},th
is)):f?this.elementRemoved(a):d&&this.elementAdded(a)},scrollTypes:{EMITTER:"non
e",XSCROLLER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x
)|auto$/},touchActionToScrollType:function(a){var b=a,c=this.scrollTypes;return"
none"===b?"none":b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":c.SCROLLER.exec(b)?"XY"
:void 0},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(a){return
this.firstTouch===a.identifier},setPrimaryTouch:function(a){(0==f.size||1==f.siz
e&&f.has(1))&&(this.firstTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.client
Y},this.scrolling=!1,this.cancelResetClickCount())},removePrimaryPointer:functio
n(a){a.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetClickCount()
)},clickCount:0,resetId:null,resetClickCount:function(){var a=function(){this.cl
ickCount=0,this.resetId=null}.bind(this);this.resetId=setTimeout(a,i)},cancelRes
etClickCount:function(){this.resetId&&clearTimeout(this.resetId)},touchToPointer
:function(a){var b=c.cloneEvent(a);return b.pointerId=a.identifier+2,b.target=d(
b),b.bubbles=!0,b.cancelable=!0,b.detail=this.clickCount,b.button=0,b.buttons=1,
b.width=a.webkitRadiusX||a.radiusX||0,b.height=a.webkitRadiusY||a.radiusY||0,b.p
ressure=a.webkitForce||a.force||.5,b.isPrimary=this.isPrimaryTouch(a),b.pointerT
ype=this.POINTER_TYPE,b},processTouches:function(a,b){var c=a.changedTouches,d=g
(c,this.touchToPointer,this);d.forEach(b,this)},shouldScroll:function(a){if(this
.firstXY){var b,c=this.scrollType.get(a.currentTarget);if("none"===c)b=!1;else i
f("XY"===c)b=!0;else{var d=a.changedTouches[0],e=c,f="Y"===c?"X":"Y",g=Math.abs(
d["client"+e]-this.firstXY[e]),h=Math.abs(d["client"+f]-this.firstXY[f]);b=g>=h}
return this.firstXY=null,b}},findTouch:function(a,b){for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)if(c.identifier===b)return!0},vacuumTouches:function(a){var b=a.
touches;if(f.size>=b.length){var c=[];f.forEach(function(a,d){if(1!==a&&!this.fi
ndTouch(b,a-2)){var e=d.out;c.push(this.touchToPointer(e))}},this),c.forEach(thi
s.cancelOut,this)}},touchstart:function(a){this.vacuumTouches(a),this.setPrimary
Touch(a.changedTouches[0]),this.dedupSynthMouse(a),this.scrolling||(this.clickCo
unt++,this.processTouches(a,this.overDown))},overDown:function(a){f.set(a.pointe
rId,{target:a.target,out:a,outTarget:a.target}),c.over(a),c.down(a)},touchmove:f
unction(a){this.scrolling||(this.shouldScroll(a)?(this.scrolling=!0,this.touchca
ncel(a)):(a.preventDefault(),this.processTouches(a,this.moveOverOut)))},moveOver
Out:function(a){var b=a,d=f.get(b.pointerId);if(d){var e=d.out,g=d.outTarget;c.m
ove(b),e&&g!==b.target&&(e.relatedTarget=b.target,b.relatedTarget=g,e.target=g,b
.target?(c.leaveOut(e),c.enterOver(b)):(b.target=g,b.relatedTarget=null,this.can
celOut(b))),d.out=b,d.outTarget=b.target}},touchend:function(a){this.dedupSynthM
ouse(a),this.processTouches(a,this.upOut)},upOut:function(a){this.scrolling||(c.
up(a),c.out(a)),this.cleanUpPointer(a)},touchcancel:function(a){this.processTouc
hes(a,this.cancelOut)},cancelOut:function(a){c.cancel(a),c.out(a),this.cleanUpPo
inter(a)},cleanUpPointer:function(a){f.delete(a.pointerId),this.removePrimaryPoi
nter(a)},dedupSynthMouse:function(b){var c=a.mouseEvents.lastTouches,d=b.changed
Touches[0];if(this.isPrimaryTouch(d)){var e={x:d.clientX,y:d.clientY};c.push(e);
var f=function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(null,c,e);setTi
meout(f,h)}}};k||(b=new a.Installer(l.elementAdded,l.elementRemoved,l.elementCha
nged,l)),a.touchEvents=l}(window.PointerEventsPolyfill),function(a){var b=a.disp
atcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof window.MSPointer
Event.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointerMove","MSPointer
Up","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLo
stPointerCapture"],register:function(a){b.listen(a,this.events)},unregister:func
tion(a){b.unlisten(a,this.events)},POINTER_TYPES:["","unavailable","touch","pen"
,"mouse"],prepareEvent:function(a){var c=a;return d&&(c=b.cloneEvent(a),c.pointe
rType=this.POINTER_TYPES[a.pointerType]),c},cleanup:function(a){c.delete(a)},MSP
ointerDown:function(a){c.set(a.pointerId,a);var d=this.prepareEvent(a);b.down(d)
},MSPointerMove:function(a){var c=this.prepareEvent(a);b.move(c)},MSPointerUp:fu
nction(a){var c=this.prepareEvent(a);b.up(c),this.cleanup(a.pointerId)},MSPointe
rOut:function(a){var c=this.prepareEvent(a);b.leaveOut(c)},MSPointerOver:functio
n(a){var c=this.prepareEvent(a);b.enterOver(c)},MSPointerCancel:function(a){var
c=this.prepareEvent(a);b.cancel(c),this.cleanup(a.pointerId)},MSLostPointerCaptu
re:function(a){var c=b.makeEvent("lostpointercapture",a);b.dispatchEvent(c)},MSG
otPointerCapture:function(a){var c=b.makeEvent("gotpointercapture",a);b.dispatch
Event(c)}};a.msEvents=e}(window.PointerEventsPolyfill),function(a){var b=a.dispa
tcher;if(void 0===window.navigator.pointerEnabled){if(Object.defineProperty(wind
ow.navigator,"pointerEnabled",{value:!0,enumerable:!0}),window.navigator.msPoint
erEnabled){var c=window.navigator.msMaxTouchPoints;Object.defineProperty(window.
navigator,"maxTouchPoints",{value:c,enumerable:!0}),b.registerSource("ms",a.msEv
ents)}else b.registerSource("mouse",a.mouseEvents),void 0!==window.ontouchstart&
&b.registerSource("touch",a.touchEvents);b.register(document)}}(window.PointerEv
entsPolyfill),function(a){function b(a){if(!e.pointermap.has(a))throw new Error(
"InvalidPointerId")}var c,d,e=a.dispatcher,f=window.navigator;f.msPointerEnabled
?(c=function(a){b(a),this.msSetPointerCapture(a)},d=function(a){b(a),this.msRele
asePointerCapture(a)}):(c=function(a){b(a),e.setCapture(a,this)},d=function(a){b
(a),e.releaseCapture(a,this)}),Element.prototype.setPointerCapture||Object.defin
eProperties(Element.prototype,{setPointerCapture:{value:c},releasePointerCapture
:{value:d}})}(window.PointerEventsPolyfill),PointerGestureEvent.prototype.preven
tTap=function(){this.tapPrevented=!0},function(a){a=a||{},a.utils={LCA:{find:fun
ction(a,b){if(a===b)return a;if(a.contains){if(a.contains(b))return a;if(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=this.walk(a,1),b=this.walk(b,1);return a},wa
lk:function(a,b){for(var c=0;b>c;c++)a=a.parentNode;return a},depth:function(a){
for(var b=0;a;)b++,a=a.parentNode;return b}}},a.findLCA=function(b,c){return a.u
tils.LCA.find(b,c)},window.PointerGestures=a}(window.PointerGestures),function(a
){function b(){this.ids=[],this.pointers=[]}b.prototype={set:function(a,b){var c
=this.ids.indexOf(a);c>-1?this.pointers[c]=b:(this.ids.push(a),this.pointers.pus
h(b))},has:function(a){return this.ids.indexOf(a)>-1},"delete":function(a){var b
=this.ids.indexOf(a);b>-1&&(this.ids.splice(b,1),this.pointers.splice(b,1))},get
:function(a){var b=this.ids.indexOf(a);return this.pointers[b]},get size(){retur
n this.pointers.length},clear:function(){this.ids.length=0,this.pointers.length=
0}},window.Map&&(b=window.Map),a.PointerMap=b}(window.PointerGestures),function(
a){var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","
clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","butto
ns","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTim
estamp","isPrimary","type","target","currentTarget","screenX","screenY","pageX",
"pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",
null,null,0,0,0,0],d={handledEvents:new WeakMap,targets:new WeakMap,handlers:{},
recognizers:{},events:{},registerRecognizer:function(a,b){var c=b;this.recognize
rs[a]=c,c.events.forEach(function(a){if(c[a]){this.events[a]=!0;var b=c[a].bind(
c);this.addHandler(a,b)}},this)},addHandler:function(a,b){var c=a;this.handlers[
c]||(this.handlers[c]=[]),this.handlers[c].push(b)},registerTarget:function(a){t
his.listen(Object.keys(this.events),a)},unregisterTarget:function(a){this.unlist
en(Object.keys(this.events),a)},eventHandler:function(a){if(!this.handledEvents.
get(a)){var b=a.type,c=this.handlers[b];c&&this.makeQueue(c,a),this.handledEvent
s.set(a,!0)}},makeQueue:function(a,b){var c=this.cloneEvent(b);setTimeout(this.r
unQueue.bind(this,a,c),0)},runQueue:function(a,b){this.currentPointerId=b.pointe
rId;for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)c(b);this.currentPointerId=0},lis
ten:function(a,b){a.forEach(function(a){this.addEvent(a,this.boundHandler,!1,b)}
,this)},unlisten:function(a){a.forEach(function(a){this.removeEvent(a,this.bound
Handler,!1,inTarget)},this)},addEvent:function(a,b,c,d){d.addEventListener(a,b,c
)},removeEvent:function(a,b,c,d){d.removeEventListener(a,b,c)},makeEvent:functio
n(a,b){return new PointerGestureEvent(a,b)},cloneEvent:function(a){for(var d,e={
},f=0;f<b.length;f++)d=b[f],e[d]=a[d]||c[f];return e},dispatchEvent:function(a,b
){var c=b||this.targets.get(a);c&&(c.dispatchEvent(a),a.tapPrevented&&this.preve
ntTap(this.currentPointerId))},asyncDispatchEvent:function(a,b){var c=function()
{this.dispatchEvent(a,b)}.bind(this);setTimeout(c,0)},preventTap:function(a){var
b=this.recognizers.tap;b&&b.preventTap(a)}};d.boundHandler=d.eventHandler.bind(
d),a.dispatcher=d;var e=[],f=!1;a.register=function(b){if(f){var c=window.Pointe
rEventsPolyfill;c&&c.register(b),a.dispatcher.registerTarget(b)}else e.push(b)},
document.addEventListener("DOMContentLoaded",function(){f=!0,e.push(document),e.
forEach(a.register)})}(window.PointerGestures),function(a){var b=a.dispatcher,c=
{HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["pointerdown","pointermove","pointer
up","pointercancel"],heldPointer:null,holdJob:null,pulse:function(){var a=Date.n
ow()-this.heldPointer.timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a
),this.held=!0},cancel:function(){clearInterval(this.holdJob),this.held&&this.fi
reHold("release"),this.held=!1,this.heldPointer=null,this.target=null,this.holdJ
ob=null},pointerdown:function(a){a.isPrimary&&!this.heldPointer&&(this.heldPoint
er=a,this.target=a.target,this.holdJob=setInterval(this.pulse.bind(this),this.HO
LD_DELAY))},pointerup:function(a){this.heldPointer&&this.heldPointer.pointerId==
=a.pointerId&&this.cancel()},pointercancel:function(){this.cancel()},pointermove
: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,c){var d={pointerTy
pe:this.heldPointer.pointerType};c&&(d.holdTime=c);var e=b.makeEvent(a,d);b.disp
atchEvent(e,this.target),e.tapPrevented&&b.preventTap(this.heldPointer.pointerId
)}};b.registerRecognizer("hold",c)}(window.PointerGestures),function(a){var b=a.
dispatcher,c=new a.PointerMap,d={events:["pointerdown","pointermove","pointerup"
,"pointercancel"],WIGGLE_THRESHOLD:4,clampDir:function(a){return a>0?1:-1},calcP
ositionDelta: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,c,d){var e=d,f=this.calcPositionDelta(
e.downEvent,c),g=this.calcPositionDelta(e.lastMoveEvent,c);g.x&&(e.xDirection=th
is.clampDir(g.x)),g.y&&(e.yDirection=this.clampDir(g.y));var h={dx:f.x,dy:f.y,dd
x:g.x,ddy:g.y,clientX:c.clientX,clientY:c.clientY,pageX:c.pageX,pageY:c.pageY,sc
reenX:c.screenX,screenY:c.screenY,xDirection:e.xDirection,yDirection:e.yDirectio
n,trackInfo:e.trackInfo,pointerType:c.pointerType};"trackend"===a&&(h._releaseTa
rget=c.target);var i=b.makeEvent(a,h);e.lastMoveEvent=c,b.dispatchEvent(i,e.down
Target)},pointerdown:function(a){if(a.isPrimary&&("mouse"===a.pointerType?1===a.
buttons:!0)){var b={downEvent:a,downTarget:a.target,trackInfo:{},lastMoveEvent:n
ull,xDirection:0,yDirection:0,tracking:!1};c.set(a.pointerId,b)}},pointermove:fu
nction(a){var b=c.get(a.pointerId);if(b)if(b.tracking)this.fireTrack("track",a,b
);else{var d=this.calcPositionDelta(b.downEvent,a),e=d.x*d.x+d.y*d.y;e>this.WIGG
LE_THRESHOLD&&(b.tracking=!0,this.fireTrack("trackstart",b.downEvent,b),this.fir
eTrack("track",a,b))}},pointerup:function(a){var b=c.get(a.pointerId);b&&(b.trac
king&&this.fireTrack("trackend",a,b),c.delete(a.pointerId))},pointercancel:funct
ion(a){this.pointerup(a)}};b.registerRecognizer("track",d)}(window.PointerGestur
es),function(a){var b=a.dispatcher,c={MIN_VELOCITY:.5,MAX_QUEUE:4,moveQueue:[],t
arget:null,pointerId:null,events:["pointerdown","pointermove","pointerup","point
ercancel"],pointerdown:function(a){a.isPrimary&&!this.pointerId&&(this.pointerId
=a.pointerId,this.target=a.target,this.addMove(a))},pointermove:function(a){a.po
interId===this.pointerId&&this.addMove(a)},pointerup:function(a){a.pointerId===t
his.pointerId&&this.fireFlick(a),this.cleanup()},pointercancel:function(){this.c
leanup()},cleanup:function(){this.moveQueue=[],this.target=null,this.pointerId=n
ull},addMove:function(a){this.moveQueue.length>=this.MAX_QUEUE&&this.moveQueue.s
hift(),this.moveQueue.push(a)},fireFlick:function(a){for(var c,d,e,f,g,h,i,j=a,k
=this.moveQueue.length,l=0,m=0,n=0,o=0;k>o&&(i=this.moveQueue[o]);o++)c=j.timeSt
amp-i.timeStamp,d=j.clientX-i.clientX,e=j.clientY-i.clientY,f=d/c,g=e/c,h=Math.s
qrt(f*f+g*g),h>n&&(l=f,m=g,n=h);var p=Math.abs(l)>Math.abs(m)?"x":"y",q=this.cal
cAngle(l,m);if(Math.abs(n)>=this.MIN_VELOCITY){var r=b.makeEvent("flick",{xVeloc
ity:l,yVelocity:m,velocity:n,angle:q,majorAxis:p,pointerType:a.pointerType});b.d
ispatchEvent(r,this.target)}},calcAngle:function(a,b){return 180*Math.atan2(b,a)
/Math.PI}};b.registerRecognizer("flick",c)}(window.PointerGestures),function(a){
var b=a.dispatcher,c=new a.PointerMap,d={events:["pointerdown","pointermove","po
interup","pointercancel","keyup"],pointerdown:function(a){a.isPrimary&&!a.tapPre
vented&&c.set(a.pointerId,{target:a.target,x:a.clientX,y:a.clientY})},pointermov
e:function(a){if(a.isPrimary){var b=c.get(a.pointerId);b&&a.tapPrevented&&c.dele
te(a.pointerId)}},pointerup:function(d){var e=c.get(d.pointerId);if(e&&!d.tapPre
vented){var f=a.findLCA(e.target,d.target);if(f){var g=b.makeEvent("tap",{x:d.cl
ientX,y:d.clientY,detail:d.detail,pointerType:d.pointerType});b.dispatchEvent(g,
f)}}c.delete(d.pointerId)},pointercancel:function(a){c.delete(a.pointerId)},keyu
p:function(a){var c=a.keyCode;if(32===c){var d=a.target;d instanceof HTMLInputEl
ement||d instanceof HTMLTextAreaElement||b.dispatchEvent(b.makeEvent("tap",{x:0,
y:0,detail:0,pointerType:"unavailable"}),d)}},preventTap:function(a){c.delete(a)
}};b.registerRecognizer("tap",d)}(window.PointerGestures),Polymer={},function(a)
{function b(){var a=Polymer.veiledElements;if(a)for(var b,d=0,e=a.length;e>d&&(b
=a[d]);d++)c(b)}function c(a){for(var b,c=document.querySelectorAll(a),d=0,f=c.l
ength;f>d&&(b=c[d]);d++)b.classList.add(e)}function d(){requestAnimationFrame(fu
nction(){for(var a,b=document.querySelectorAll("."+e),c=0,d=b.length;d>c&&(a=b[c
]);c++)a.classList.add(f),a.classList.remove(e);if(b.length){var g=function(){fo
r(var a,c=0,d=b.length;d>c&&(a=b[c]);c++)a.classList.remove(f);document.body.rem
oveEventListener(j,g,!1)};document.body.addEventListener(j,g,!1)}})}a.veiledElem
ents=["body"];var e="polymer-veiled",f="polymer-unveil",g=.3,h=document.createEl
ement("style");h.textContent="."+e+" { opacity: 0; } \n."+f+"{ -webkit-transitio
n: opacity "+g+"s; transition: opacity "+g+"s; }\n";var i=document.querySelector
("head");i.insertBefore(h,i.firstChild);var j=void 0!==document.documentElement.
style.webkitTransition?"webkitTransitionEnd":"transitionend";document.addEventLi
stener("DOMContentLoaded",b),window.addEventListener("WebComponentsReady",d),a.u
nveilElements=d}(Polymer),function(a){function b(a,b){return a&&b&&Object.getOwn
PropertyNames(b).forEach(function(c){var d=Object.getOwnPropertyDescriptor(b,c);
d&&(Object.defineProperty(a,c,d),"function"==typeof d.value&&(d.value.nom=c))}),
a}a.extend=b}(Polymer),function(a){function b(a,b,d){return a?a.stop():a=new c(t
his),a.go(b,d),a}var c=function(a){this.context=a};c.prototype={go:function(a,b)
{this.callback=a,this.handle=setTimeout(this.complete.bind(this),b)},stop:functi
on(){this.handle&&(clearTimeout(this.handle),this.handle=null)},complete:functio
n(){this.handle&&(this.stop(),this.callback.call(this.context))}},a.job=b}(Polym
er),function(){var a={};HTMLElement.register=function(b,c){a[b]=c},HTMLElement.g
etPrototypeForTag=function(b){var c=b?a[b]:HTMLElement.prototype;return c||Objec
t.getPrototypeOf(document.createElement(b))};var b=Event.prototype.stopPropagati
on;Event.prototype.stopPropagation=function(){this.cancelBubble=!0,b.apply(this,
arguments)},HTMLImports.importer.preloadSelectors+=", polymer-element link[rel=s
tylesheet]"}(Polymer),function(a){function b(a){var c=b.caller,g=c.nom,h=c._supe
r;if(h||(g||(g=c.nom=e.call(this,c)),g||console.warn("called super() on a method
not installed declaratively (has no .nom property)"),h=d(c,g,f(this))),h){var i
=h[g];return i._super||d(i,g,h),i.apply(this,a||[])}}function c(a,b,c){for(;a;){
if(a[b]!==c&&a[b])return a;a=f(a)}}function d(a,b,d){return a._super=c(d,b,a),a.
_super&&(a._super[b].nom=b),a._super}function e(a){for(var b=this.__proto__;b&&b
!==HTMLElement.prototype;){for(var c,d=Object.getOwnPropertyNames(b),e=0,f=d.len
gth;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__}}function f(a){return a.__pr
oto__}a.super=b}(Polymer),function(a){function b(a,b){var d=typeof b;return b in
stanceof Date&&(d="date"),c[d](a,b)}var c={string:function(a){return a},date:fun
ction(a){return new Date(Date.parse(a)||Date.now())},"boolean":function(a){retur
n""===a?!0:"false"===a?!1:!!a},number:function(a){var b=parseFloat(a);return Str
ing(b)===a?b:a},object:function(a,b){if(null===b)return a;try{return JSON.parse(
a.replace(/'/g,'"'))}catch(c){return a}}};a.deserializeValue=b}(Polymer),functio
n(a){var b={};b.declaration={},b.instance={},a.api=b}(Polymer),function(a){var b
={async:function(a,b,c){Platform.flush(),b=b&&b.length?b:[b];var d=function(){(t
his[a]||a).apply(this,b)}.bind(this);return c?setTimeout(d,c):requestAnimationFr
ame(d)},fire:function(a,b,c,d){var e=c||this;return e.dispatchEvent(new CustomEv
ent(a,{bubbles:void 0!==d?d:!0,detail:b})),b},asyncFire:function(){this.async("f
ire",arguments)},classFollows:function(a,b,c){b&&b.classList.remove(c),a&&a.clas
sList.add(c)}};b.asyncMethod=b.async,a.api.instance.utils=b}(Polymer),function(a
){function b(a){for(;a.parentNode;)a=a.parentNode;return a.host}var c=window.log
Flags||{},d="on-",e={EVENT_PREFIX:d,hasEventPrefix:function(a){return a&&"o"===a
[0]&&"n"===a[1]&&"-"===a[2]},removeEventPrefix:function(a){return a.slice(f)},ad
dHostListeners:function(){var a=this.eventDelegates;c.events&&Object.keys(a).len
gth>0&&console.log("[%s] addHostListeners:",this.localName,a),this.addNodeListen
ers(this,a,this.hostEventListener)},addNodeListeners:function(a,b,c){var d;for(v
ar e in b)d||(d=c.bind(this)),this.addNodeListener(a,e,d)},addNodeListener:funct
ion(a,b,c){a.addEventListener(b,c)},hostEventListener:function(a){if(!a.cancelBu
bble){c.events&&console.group("[%s]: hostEventListener(%s)",this.localName,a.typ
e);var b=this.findEventDelegate(a);b&&(c.events&&console.log("[%s] found host ha
ndler name [%s]",this.localName,b),this.dispatchMethod(this,b,[a,a.detail,this])
),c.events&&console.groupEnd()}},findEventDelegate:function(a){return this.event
Delegates[a.type]},dispatchMethod:function(a,b,d){if(a){c.events&&console.group(
"[%s] dispatch [%s]",a.localName,b);var e="function"==typeof b?b:a[b];e&&e[d?"ap
ply":"call"](a,d),c.events&&console.groupEnd(),Platform.flush()}},prepareBinding
:function(a,d){return e.hasEventPrefix(d)?function(d,f,g){c.events&&console.log(
'event: [%s].%s => [%s].%s()"',g.localName,f,d.localName,a);var h=function(c){va
r e=b(g);if(e&&e.dispatchMethod){var f=e,h=a;"@"==a[0]&&(f=d,h=Path.get(a.slice(
1)).getValueFrom(d)),e.dispatchMethod(f,h,[c,c.detail,g])}},i=e.removeEventPrefi
x(f);return g.addEventListener(i,h,!1),{close:function(){c.events&&console.log('
event.remove: [%s].%s => [%s].%s()"',g.localName,f,d.localName,a),g.removeEventL
istener(i,h,!1)}}}:void 0}},f=d.length;a.api.instance.events=e}(Polymer),functio
n(a){var b={copyInstanceAttributes:function(){var a=this._instanceAttributes;for
(var b in a)this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:func
tion(){if(this._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=this.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)ret
urn;var d=this[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForA
ttribute:function(a){var b=this._publishLC&&this._publishLC[a];return b},deseria
lizeValue:function(b,c){return a.deserializeValue(b,c)},serializeValue:function(
a,b){return"boolean"===b?a?"":void 0:"object"!==b&&void 0!==a?a:void 0},reflectP
ropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(this[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){return new Compo
undPathObserver(function(b,c,d,e){a.notifyPropertyChanges(b,c,d,e)},a,void 0,voi
d 0)}function c(a,b,c,e){d.bind&&console.log(f,c.localName||"object",e,a.localNa
me,b);var g=Path.get(e),h=g.getValueFrom(c);return(null===h||void 0===h)&&g.setV
alueFrom(c,a[b]),PathObserver.defineProperty(a,b,{object:c,path:e})}var d=window
.logFlags||{},e={observeProperties:function(){var a=this._observeNames,c=this._p
ublishNames;if(a&&a.length||c&&c.length){for(var d,e=this._propertyObserver=b(th
is),f=0,g=a.length;g>f&&(d=a[f]);f++){e.addPath(this,d);var h=Object.getOwnPrope
rtyDescriptor(this.__proto__,d);h&&h.value&&this.observeArrayValue(d,h.value,nul
l)}for(var d,f=0,g=c.length;g>f&&(d=c[f]);f++)this.observe&&void 0!==this.observ
e[d]||e.addPath(this,d);e.start()}},notifyPropertyChanges:function(a,b,c,d){for(
var e,f,g={},h=0,i=c.length;i>h;h++)c[h]&&(e=d[2*h+1],void 0!==this.publish[e]&&
this.reflectPropertyToAttribute(e),f=this.observe[e],f&&(this.observeArrayValue(
e,a[h],b[h]),g[f]||(g[f]=!0,this.invokeMethod(f,[b[h],a[h],arguments]))))},obser
veArrayValue:function(a,b,c){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.o
bserve&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.loca
lName,a),this.unregisterObserver(a+"__array")),Array.isArray(b))){d.observe&&con
sole.log("[%s] observeArrayValue: register observer [%s]",this.localName,a,b);va
r f=this,g=new ArrayObserver(b,function(a,b){f.invokeMethod(e,[b])});this.regist
erObserver(a+"__array",g)}},bindProperty:function(a,b,d){return c(this,a,b,d)},u
nbindAllProperties:function(){this._propertyObserver&&this._propertyObserver.clo
se(),this.unregisterObservers()},unbindProperty:function(a){return this.unregist
erObserver(a)},invokeMethod:function(a,b){var c=this[a]||a;"function"==typeof c&
&c.apply(this,b)},registerObserver:function(a,b){var c=this._observers||(this._o
bservers={});c[a]=b},unregisterObserver:function(a){var b=this._observers;return
b&&b[a]?(b[a].close(),b[a]=null,!0):void 0},unregisterObservers:function(){if(t
his._observers){for(var a,b,c=Object.keys(this._observers),d=0,e=c.length;e>d&&(
a=c[d]);d++)b=this._observers[a],b.close();this._observers={}}}},f="[%s]: bindPr
operties: [%s] to [%s].[%s]";a.api.instance.properties=e}(Polymer),function(a){f
unction b(a){d(a,c)}function c(a){a.unbindAll()}function d(a,b){if(a){b(a);for(v
ar c=a.firstChild;c;c=c.nextSibling)d(c,b)}}var e=window.logFlags||0,f=a.api.ins
tance.events,g=new PolymerExpressions,h=g.prepareBinding;g.prepareBinding=functi
on(a,b,c){return f.prepareBinding(a,b,c)||h.call(this,a,b,c)};var i={syntax:g,in
stanceTemplate:function(a){return a.createInstance(this,this.syntax)},bind:funct
ion(a,b,c){this._elementPrepared||this.prepareElement();var d=this.propertyForAt
tribute(a);if(d){this.unbind(a);var e=this.bindProperty(d,b,c);return e.path=c,t
his.reflectPropertyToAttribute(d),this.bindings[a]=e}return this.super(arguments
)},asyncUnbindAll:function(){this._unbound||(e.unbind&&console.log("[%s] asyncUn
bindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unb
indAll,0))},unbindAll:function(){if(!this._unbound){this.unbindAllProperties(),t
his.super();for(var a=this.shadowRoot;a;)b(a),a=a.olderShadowRoot;this._unbound=
!0}},cancelUnbindAll:function(a){return this._unbound?(e.unbind&&console.warn("[
%s] already unbound, cannot cancel unbindAll",this.localName),void 0):(e.unbind&
&console.log("[%s] cancelUnbindAll",this.localName),this._unbindAllJob&&(this._u
nbindAllJob=this._unbindAllJob.stop()),a||d(this.shadowRoot,function(a){a.cancel
UnbindAll&&a.cancelUnbindAll()}),void 0)}},j=/\{\{([^{}]*)}}/;a.bindPattern=j,a.
api.instance.mdv=i}(Polymer),function(a){function b(a){return a.hasOwnProperty("
PolymerBase") |
| 37 }function c(){}var d=0,e={PolymerBase:!0,job:Polymer.job,"super":Polymer.super,c
reated:function(){},ready:function(){},createdCallback:function(){this.created()
,(this.ownerDocument.defaultView||this.alwaysPrepare||d>0)&&this.prepareElement(
)},prepareElement:function(){this._elementPrepared=!0,this.observeProperties(),t
his.copyInstanceAttributes(),this.takeAttributes(),this.addHostListeners(),d++,t
his.parseDeclarations(this.__proto__),d--,this.ready()},enteredViewCallback:func
tion(){this._elementPrepared||this.prepareElement(),this.cancelUnbindAll(!0),thi
s.enteredView&&this.enteredView()},leftViewCallback:function(){this.preventDispo
se||this.asyncUnbindAll(),this.leftView&&this.leftView()},parseDeclarations:func
tion(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.ca
ll(this,a.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);b&
&(this.element.hasAttribute("lightdom")?this.lightFromTemplate(b):this.shadowFro
mTemplate(b))},fetchTemplate:function(a){return a.querySelector("template")},sha
dowFromTemplate:function(a){if(a){this.shadowRoot;var b=this.createShadowRoot();
b.applyAuthorStyles=this.applyAuthorStyles,b.resetStyleInheritance=this.resetSty
leInheritance;var c=this.instanceTemplate(a);return b.appendChild(c),this.shadow
RootReady(b,a),b}},lightFromTemplate:function(a){if(a){var b=this.instanceTempla
te(a);return this.appendChild(b),this.shadowRootReady(this,a),b}},shadowRootRead
y:function(a){this.marshalNodeReferences(a),PointerGestures.register(a)},marshal
NodeReferences:function(a){var b=this.$=this.$||{};if(a)for(var c,d=a.querySelec
torAll("[id]"),e=0,f=d.length;f>e&&(c=d[e]);e++)b[c.id]=c},attributeChangedCallb
ack:function(a){"class"!==a&&"style"!==a&&this.attributeToProperty(a,this.getAtt
ribute(a)),this.attributeChanged&&this.attributeChanged.apply(this,arguments)},o
nMutation:function(a,b){var c=new MutationObserver(function(a){b.call(this,c,a),
c.disconnect()}.bind(this));c.observe(a,{childList:!0,subtree:!0})}};c.prototype
=e,e.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base=e}(Polymer),function(
a){function b(a){return a.__proto__}window.logFlags||{};var c="element",d="contr
oller",e={STYLE_SCOPE_ATTRIBUTE:c,installControllerStyles:function(){var a=this.
findStyleController();if(a&&!this.scopeHasElementStyle(a,d)){for(var c=b(this),e
="";c&&c.element;)e+=c.element.cssTextForScope(d),c=b(c);if(e){var f=this.elemen
t.cssTextToScopeStyle(e,d);Polymer.applyStyleToScope(f,a)}}},findStyleController
:function(){if(window.ShadowDOMPolyfill)return wrap(document.head);for(var a=thi
s;a.parentNode;)a=a.parentNode;return a===document?document.head:a},scopeHasElem
entStyle:function(a,b){var d=c+"="+this.localName+"-"+b;return a.querySelector("
style["+d+"]")}};a.api.instance.styles=e}(Polymer),function(a){var b={addResolve
PathApi:function(){var a=this.elementPath(),b=this.getAttribute("assetpath")||""
;this.prototype.resolvePath=function(c){return a+b+c}},elementPath:function(){re
turn this.urlToPath(HTMLImports.getDocumentUrl(this.ownerDocument))},urlToPath:f
unction(a){if(a){var b=a.split("/");return b.pop(),b.push(""),b.join("/")}return
""}};a.api.declaration.path=b}(Polymer),function(a){function b(a,b){if(a){var d=
c(a.textContent),e=a.getAttribute(g);e&&d.setAttribute(g,e),b.appendChild(d)}}fu
nction c(a){var b=document.createElement("style");return b.textContent=a,b}funct
ion d(a){return a&&a.__resource||""}function e(a,b){return n?n.call(a,b):void 0}
window.logFlags||{};var f=a.api.instance.styles,g=f.STYLE_SCOPE_ATTRIBUTE,h="sty
le",i="[rel=stylesheet]",j="global",k="polymer-scope",l={installSheets:function(
){this.cacheSheets(),this.cacheStyles(),this.installLocalSheets(),this.installGl
obalStyles()},cacheSheets:function(){this.sheets=this.findNodes(i),this.sheets.f
orEach(function(a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:func
tion(){this.styles=this.findNodes(h+"["+k+"]"),this.styles.forEach(function(a){a
.parentNode&&a.parentNode.removeChild(a)})},installLocalSheets:function(){var a=
this.sheets.filter(function(a){return!a.hasAttribute(k)}),b=this.templateContent
();if(b){var e="";a.forEach(function(a){e+=d(a)+"\n"}),e&&b.insertBefore(c(e),b.
firstChild)}},findNodes:function(a,b){var c=this.querySelectorAll(a).array(),d=t
his.templateContent();if(d){var e=d.querySelectorAll(a).array();c=c.concat(e)}re
turn b?c.filter(b):c},templateContent:function(){var a=this.querySelector("templ
ate");return a&&templateContent(a)},installGlobalStyles:function(){var a=this.st
yleForScope(j);b(a,document.head)},cssTextForScope:function(a){var b="",c="["+k+
"="+a+"]",f=function(a){return e(a,c)},g=this.sheets.filter(f);g.forEach(functio
n(a){b+=d(a)+"\n\n"});var h=this.styles.filter(f);return h.forEach(function(a){b
+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForScope
(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){if(a
){var d=c(a);return d.setAttribute(g,this.getAttribute("name")+"-"+b),d}}},m=HTM
LElement.prototype,n=m.matches||m.matchesSelector||m.webkitMatchesSelector||m.mo
zMatchesSelector;a.api.declaration.styles=l,a.applyStyleToScope=b}(Polymer),func
tion(a){var b=a.api.instance.events;window.logFlags||{};var c={parseHostEvents:f
unction(){var a=this.prototype.eventDelegates;this.addAttributeDelegates(a)},add
AttributeDelegates:function(a){for(var c,d=0;c=this.attributes[d];d++)b.hasEvent
Prefix(c.name)&&(a[b.removeEventPrefix(c.name)]=c.value.replace("{{","").replace
("}}","").trim())},event_translations:{webkitanimationstart:"webkitAnimationStar
t",webkitanimationend:"webkitAnimationEnd",webkittransitionend:"webkitTransition
End",domfocusout:"DOMFocusOut",domfocusin:"DOMFocusIn"}};a.api.declaration.event
s=c}(Polymer),function(a){var b={inferObservers:function(a){var b,c=a.observe;fo
r(var d in a)"Changed"===d.slice(-7)&&(c||(c=a.observe={}),b=d.slice(0,-7),c[b]=
c[b]||d)},optimizePropertyMaps:function(a){if(a.observe){var b=a._observeNames=[
];for(var c in a.observe)b.push(c)}if(a.publish){var b=a._publishNames=[];for(va
r c in a.publish)b.push(c)}},publishProperties:function(a,b){var c=a.publish;c&&
(this.requireProperties(c,a,b),a._publishLC=this.lowerCaseMap(c))},requireProper
ties:function(a,b,c){for(var d in a)void 0===b[d]&&void 0===c[d]&&(b[d]=a[d])},l
owerCaseMap:function(a){var b={};for(var c in a)b[c.toLowerCase()]=c;return b}};
a.api.declaration.properties=b}(Polymer),function(a){var b="attributes",c={inher
itAttributesObjects:function(a){this.inheritObject(a,"publishLC"),this.inheritOb
ject(a,"_instanceAttributes")},publishAttributes:function(a,c){var d=this.getAtt
ribute(b);if(d)for(var e,f=a.publish||(a.publish={}),g=d.split(d.indexOf(",")>=0
?",":" "),h=0,i=g.length;i>h;h++)e=g[h].trim(),e&&void 0===f[e]&&void 0===c[e]&&
(f[e]=null)},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}};c.blackList[b]=1,a.api.declaration.attributes=c}(Polymer)
,function(a){function 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.isBa
se,e=a.extend,f={register:function(a,b){this.prototype=this.buildPrototype(a,b),
this.prototype.element=this,this.desugar(a,b),this.registerPrototype(a,b),this.p
ublishConstructor()},buildPrototype:function(c,d){var e=a.getRegisteredPrototype
(c),f=this.generateBasePrototype(d);return this.publishAttributes(e,f),this.publ
ishProperties(e,f),this.inferObservers(e),this.inheritMetaData(e,f),e=this.chain
Object(e,f),this.optimizePropertyMaps(e),b(e),e},inheritMetaData:function(a,b){t
his.inheritObject("observe",a,b),this.inheritObject("publish",a,b),this.inheritO
bject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b),this.inher
itObject("eventDelegates",a,b)},desugar:function(a,b){this.accumulateInstanceAtt
ributes(),this.parseHostEvents(),this.installSheets(),this.addResolvePathApi(),w
indow.ShadowDOMPolyfill&&Platform.ShadowCSS.shimStyling(this.templateContent(),a
,b),this.prototype.registerCallback&&this.prototype.registerCallback(this)},publ
ishConstructor:function(){var a=this.getAttribute("constructor");a&&(window[a]=t
his.ctor)},generateBasePrototype:function(a){var b=memoizedBases[a];if(!b){var b
=HTMLElement.getPrototypeForTag(a);b=this.ensureBaseApi(b),memoizedBases[a]=b}re
turn b},ensureBaseApi:function(a){if(!a.PolymerBase){a=Object.create(a);for(var
b in c.instance)e(a,c.instance[b])}return a},inheritObject:function(a,b,c){var d
=b[a]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var c={
prototype:this.prototype};b&&b.indexOf("-")<0&&(c.extends=b),this.ctor=document.
register(a,c),this.prototype.constructor=this.ctor,HTMLElement.register(a,this.p
rototype)}};f.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)}re
turn a},memoizedBases={},c.declaration.prototype=f}(Polymer),function(a){functio
n b(a,b){k[a]=b||{},d(a)}function c(a){return k[a]}function d(a){l[a]&&(l[a].reg
isterWhenReady(),delete l[a])}function e(a){n[a]=!0;var b=m[a];b&&(b.forEach(fun
ction(a){a.registerWhenReady()}),delete m[a])}function f(a){return n[a]}function
g(a){window.HTMLImports&&!HTMLImports.readyTime?addEventListener("HTMLImportsLo
aded",a):a()}var h=a.extend,i=a.api.declaration,j=h(Object.create(HTMLElement.pr
ototype),{createdCallback:function(){this.name=this.getAttribute("name"),this.re
gisterWhenReady()},registerWhenReady:function(){if(!this.waitingForPrototype(thi
s.name)){var a=this.getAttribute("extends");this.waitingForExtendee(a)||(documen
t.contains(this)?g(function(){this._register(a)}.bind(this)):this._register(a))}
},_register:function(a){this.register(this.name,a),e(this.name)},waitingForProto
type:function(a){if(!c(a)){if(l[a]=this,this.hasAttribute("noscript"))if(window.
CustomElements&&!CustomElements.useNative)b(a);else{var d=document.createElement
("script");d.textContent="Polymer('"+a+"');",this.appendChild(d)}return!0}},wait
ingForExtendee:function(a){return a&&a.indexOf("-")>=0&&!f(a)?((m[a]=m[a]||[]).p
ush(this),!0):void 0}});Object.keys(i).forEach(function(a){h(j,i[a])});var k={},
l={},m={},n={};a.getRegisteredPrototype=c,h(b,a),window.Polymer=b,document.regis
ter("polymer-element",{prototype:j})}(Polymer); |
| 38 //# sourceMappingURL=polymer.min.js.map |
OLD | NEW |