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

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

Issue 612533004: Revert "update platform.js to get memory leak fixes" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update version Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/web_components/lib/build.log ('k') | pkg/web_components/lib/platform.concat.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @license 2 * @license
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt 4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt 6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also 7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */ 9 */
10 // @version: 0.4.1-d214582 10 // @version: 0.4.1-d214582
11 11
12 window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},function (a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a){a= a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||document.q uerySelector('script[src*="platform.js"]');if(c)for(var d,e=c.attributes,f=0;f<e .length;f++)d=e[f],"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split(", ").forEach(function(a){window.logFlags[a]=!0}),b.shadow=b.shadow||b.shadowdom||b .polyfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.creat eShadowRoot,b.shadow&&document.querySelectorAll("script").length>1&&console.warn ("platform.js is not the first script on the page. See http://www.polymer-projec t.org/docs/start/platform.html#setup for details."),b.register&&(window.CustomEl ements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=b. register),b.imports&&(window.HTMLImports=window.HTMLImports||{flags:{}},window.H TMLImports.flags.imports=b.imports),a.flags=b}(Platform),"undefined"==typeof Wea kMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e9,c=function(){this .name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype={set:function(b,c) {var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[b,c],writable:!0})} ,get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]:void 0},"delete":fu nction(a){var b=a[this.name];if(!b)return!1;var c=b[0]===a;return b[0]=b[1]=void 0,c},has:function(a){var b=a[this.name];return b?b[0]===a:!1}},window.WeakMap=c }(),Platform.flags.shadow?(!function(a){"use strict";function b(){function a(a){ b=a}if("function"!=typeof Object.observe||"function"!=typeof Array.observe)retur n!1;var b=[],c={},d=[];return Object.observe(c,a),Array.observe(d,a),c.id=1,c.id =2,delete c.id,d.push(1,2),d.length=0,Object.deliverChangeRecords(a),5!==b.lengt h?!1:"add"!=b[0].type||"update"!=b[1].type||"delete"!=b[2].type||"splice"!=b[3]. type||"splice"!=b[4].type?!1:(Object.unobserve(c,a),Array.unobserve(d,a),!0)}fun ction c(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1 ;if("undefined"!=typeof navigator&&navigator.getDeviceStorage)return!1;try{var a =new Function("","return true;");return a()}catch(b){return!1}}function d(a){ret urn+a===a>>>0&&""!==a}function e(a){return+a}function f(a){return a===Object(a)} function g(a,b){return a===b?0!==a||1/a===1/b:R(a)&&R(b)?!0:a!==a&&b!==b}functio n h(a){if(void 0===a)return"eof";var b=a.charCodeAt(0);switch(b){case 91:case 93 :case 46:case 34:case 39:case 48:return a;case 95:case 36:return"ident";case 32: case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57>=b?"number":"else"}function i(){} function j(a){function b(){if(!(m>=a.length)){var b=a[m+1];return"inSingleQuote" ==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d=b,o.append(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push:function(){void 0!==e&&(l.push(e) ,e=void 0)},append:function(){void 0===e?e=d:e+=d}};n;)if(m++,c=a[m],"\\"!=c||!b (n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"error","error"==g)return;if(n=g[0],j=o [g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPath"===n)return l}}function k(a){ret urn V.test(a)}function l(a,b){if(b!==X)throw Error("Use Path.get to retrieve pat h objects");for(var c=0;c<a.length;c++)this.push(String(a[c]));Q&&this.length&&( this.getValueFrom=this.compiledGetValueFromFn())}function m(a){if(a instanceof l )return a;if((null==a||0==a.length)&&(a=""),"string"!=typeof a){if(d(a.length))r eturn new l(a,X);a=String(a)}var b=Y[a];if(b)return b;var c=j(a);if(!c)return Z; var b=new l(c,X);return Y[a]=b,b}function n(a){return d(a)?"["+a+"]":'["'+a.repl ace(/"/g,'\\"')+'"]'}function o(b){for(var c=0;_>c&&b.check_();)c++;return O&&(a .dirtyCheckCycleCount=c),c>0}function p(a){for(var b in a)return!1;return!0}func tion q(a){return p(a.added)&&p(a.removed)&&p(a.changed)}function r(a,b){var c={} ,d={},e={};for(var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&& (e[f]=g):d[f]=void 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a) &&a.length!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}functio n s(){if(!ab.length)return!1;for(var a=0;a<ab.length;a++)ab[a]();return ab.lengt h=0,!0}function t(){function a(a){b&&b.state_===fb&&!d&&b.check_(a)}var b,c,d=!1 ,e=!0;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Objec t.deliverChangeRecords(a),b=c,e=!1},observe:function(b,d){c=b,d?Array.observe(c, a):Object.observe(c,a)},deliver:function(b){d=b,Object.deliverChangeRecords(a),d =!1},close:function(){b=void 0,Object.unobserve(c,a),cb.push(this)}}}function u( a,b,c){var d=cb.pop()||t();return d.open(a),d.observe(b,c),d}function v(){functi on a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf(b)<0&&(h.push(b),Object.observe(b,c)),a (Object.getPrototypeOf(b),f))}function b(a){for(var b=0;b<a.length;b++){var c=a[ b];if(c.object!==d||e[c.name]||"setPrototype"===c.type)return!1}return!0}functio n c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)d=g[e],d.state_==fb&&d.iterateObje cts_(a);for(var e=0;e<g.length;e++)d=g[e],d.state_==fb&&d.check_()}}var d,e,f=0, g=[],h=[],i={object:void 0,objects:h,open:function(b,c){d||(d=c,e={}),g.push(b), f++,b.iterateObjects_(a)},close:function(){if(f--,!(f>0)){for(var a=0;a<h.length ;a++)Object.unobserve(h[a],c),x.unobservedCount++;g.length=0,h.length=0,d=void 0 ,e=void 0,db.push(this)}}};return i}function w(a,b){return $&&$.object===b||($=d b.pop()||v(),$.object=b),$.open(a,b),$}function x(){this.state_=eb,this.callback _=void 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this .id_=ib++}function y(a){x._allObserversCount++,kb&&jb.push(a)}function z(){x._al lObserversCount--}function A(a){x.call(this),this.value_=a,this.oldObject_=void 0}function B(a){if(!Array.isArray(a))throw Error("Provided object is not an Arra y");A.call(this,a)}function C(a,b){x.call(this),this.object_=a,this.path_=m(b),t his.directObserver_=void 0}function D(a){x.call(this),this.reportChangesOnOpen_= a,this.value_=[],this.directObserver_=void 0,this.observed_=[]}function E(a){ret urn a}function F(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_= void 0,this.observable_=a,this.getValueFn_=b||E,this.setValueFn_=c||E,this.dontP assThroughSet_=d}function G(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b [f];nb[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&("add"!=g. type?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?de lete e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.typ e),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={ };for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{adde d:d,removed:e,changed:i}}function H(a,b,c){return{index:a,removed:b,addedCount:c }}function I(){}function J(a,b,c,d,e,f){return sb.calcSplices(a,b,c,d,e,f)}funct ion K(a,b,c,d){return c>b||a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}funct ion L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.i ndex+=g,!f){var j=K(e.index,e.index+e.removed.length,i.index,i.index+i.addedCoun t);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.a ddedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c= i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.pro totype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m) }e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.inde x){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n} }}f||a.push(e)}function M(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switc h(g.type){case"splice":L(c,g.index,g.removed.slice(),g.addedCount);break;case"ad d":case"update":case"delete":if(!d(g.name))continue;var h=e(g.name);if(0>h)conti nue;L(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: " +JSON.stringify(g))}}return c}function N(a,b){var c=[];return M(a,b).forEach(fun ction(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.ind ex]&&c.push(b)):void(c=c.concat(J(a,b.index,b.index+b.addedCount,b.removed,0,b.r emoved.length)))}),c}var O=a.testingExposeCycleCount,P=b(),Q=c(),R=a.Number.isNa N||function(b){return"number"==typeof b&&a.isNaN(b)},S="__proto__"in{}?function( a){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b) ;return Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty( c,b,Object.getOwnPropertyDescriptor(a,b))}),c},T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]", V=new RegExp("^"+T+"+"+U+"*$"),W={beforePath:{ws:["beforePath"],ident:["inIdent" ,"append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":[" beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeI dent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIde nt","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent ","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":[" inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["a fterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],numb er:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote :{"'":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDouble Quote:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},aft erElement:{ws:["afterElement"],"]":["inPath","push"]}},X={},Y={};l.get=m,l.proto type=S({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<this.length ;b++){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}return a},getValueFrom:function(a){fo r(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a},iterateObj ects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]),!f(a))r eturn;b(a,this[0])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if ( obj != null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d];return b+=k(c)?"."+c:n(c),a+=" return "+b+";\nelse\n return undefined;",new Function("obj",a)},setValueFrom:fu nction(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))r eturn!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var Z=new l("",X);Z.val id=!1,Z.getValueFrom=Z.setValueFrom=function(){};var $,_=1e3,ab=[],bb=P?function (){var a={pingPong:!0},b=!1;return Object.observe(a,function(){s(),b=!1}),functi on(c){ab.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(){return function (a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,hb=3,ib=1;x.prototype={open:functi on(a,b){if(this.state_!=eb)throw Error("Observer has already been opened.");retu rn y(this),this.callback_=a,this.target_=b,this.connect_(),this.state_=fb,this.v alue_},close:function(){this.state_==fb&&(z(this),this.disconnect_(),this.value_ =void 0,this.callback_=void 0,this.target_=void 0,this.state_=gb)},deliver:funct ion(){this.state_==fb&&o(this)},report_:function(a){try{this.callback_.apply(thi s.target_,a)}catch(b){x._errorThrownDuringCallback=!0,console.error("Exception c aught during observer callback: "+(b.stack||b))}},discardChanges:function(){retu rn this.check_(void 0,!0),this.value_}};var jb,kb=!P;x._allObserversCount=0,kb&& (jb=[]);var lb=!1;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoin t=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{d++,c=jb,jb=[],b=!1;for(var e=0;e< c.length;e++){var f=c[e];f.state_==fb&&(f.check_()&&(b=!0),jb.push(f))}s()&&(b=! 0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d),lb=!1}},kb&&(a.Platform.clearObse rvers=function(){jb=[]}),A.prototype=S({__proto__:x.prototype,arrayObserve:!1,co nnect_:function(){P?this.directObserver_=u(this,this.value_,this.arrayObserve):t his.oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array. isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.l ength),b},check_:function(a){var b,c;if(P){if(!a)return!1;c={},b=G(this.value_,a ,c)}else c=this.oldObject_,b=r(this.value_,this.oldObject_);return q(b)?!1:(P||( this.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.remove d||{},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){P?(th is.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0}, deliver:function(){this.state_==fb&&(P?this.directObserver_.deliver(!1):o(this)) },discardChanges:function(){return this.directObserver_?this.directObserver_.del iver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),B.prototype =S({__proto__:A.prototype,arrayObserve:!0,copyObject:function(a){return a.slice( )},check_:function(a){var b;if(P){if(!a)return!1;b=N(this.value_,a)}else b=J(thi s.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return b &&b.length?(P||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]), !0):!1}}),B.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.inde x,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.pro totype.splice.apply(a,d)})},C.prototype=S({__proto__:x.prototype,get path(){retu rn this.path_},connect_:function(){P&&(this.directObserver_=w(this,this.object_) ),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directO bserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterat eObjects_:function(a){this.path_.iterateObjects(this.object_,a)},check_:function (a,b){var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_) ,b||g(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},setValue:functi on(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var mb={};D.prototy pe=S({__proto__:x.prototype,connect_:function(){if(P){for(var a,b=!1,c=0;c<this. observed_.length;c+=2)if(a=this.observed_[c],a!==mb){b=!0;break}b&&(this.directO bserver_=w(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_: function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===mb&&this .observed_[a+1].close();this.observed_.length=0,this.value_.length=0,this.direct Observer_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addPa th:function(a,b){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add pat hs once started.");var b=m(b);if(this.observed_.push(a,b),this.reportChangesOnOp en_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObser ver:function(a){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add obse rvers once started.");if(this.observed_.push(mb,a),this.reportChangesOnOpen_){va r b=this.observed_.length/2-1;this.value_[b]=a.open(this.deliver,this)}},startRe set:function(){if(this.state_!=fb)throw Error("Can only reset while open");this. state_=hb,this.disconnect_()},finishReset:function(){if(this.state_!=hb)throw Er ror("Can only finishReset after startReset");return this.state_=fb,this.connect_ (),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.lengt h;c+=2)b=this.observed_[c],b!==mb&&this.observed_[c+1].iterateObjects(b,a)},chec k_:function(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.observ ed_[d],h=this.observed_[d+1];if(f===mb){var i=h;e=this.state_===eb?i.open(this.d eliver,this):i.discardChanges()}else e=h.getValueFrom(f);b?this.value_[d/2]=e:g( e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=e)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),F.prototype={open:fun ction(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValueFn_(t his.observable_.open(this.observedCallback_,this)),this.value_},observedCallback _:function(a){if(a=this.getValueFn_(a),!g(a,this.value_)){var b=this.value_;this .value_=a,this.callback_.call(this.target_,this.value_,b)}},discardChanges:funct ion(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),thi s.value_},deliver:function(){return this.observable_.deliver()},setValue:functio n(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observable_.se tValue?this.observable_.setValue(a):void 0},close:function(){this.observable_&&t his.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observabl e_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};v ar nb={add:!0,update:!0,"delete":!0},ob=0,pb=1,qb=2,rb=3;I.prototype={calcEditDi stances:function(a,b,c,d,e,f){for(var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++ )i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)f or(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{va r l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}return i},spliceOperationsFromEdit Distances:function(a){for(var b=a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c >0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g >i?i:g,f==g?(g==d?e.push(ob):(e.push(pb),d=g),b--,c--):f==h?(e.push(rb),b--,d=h) :(e.push(qb),c--,d=i)}else e.push(rb),b--;else e.push(qb),c--;return e.reverse() ,e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0 ==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.sharedSuffix (a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(var j=H(b,[] ,0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[H(b,[],c-b)];for(var k= this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=vo id 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case ob:j&&(l.push(j),j=void 0 ),m++,n++;break;case pb:j||(j=H(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]) ,n++;break;case qb:j||(j=H(m,[],0)),j.addedCount++,m++;break;case rb:j||(j=H(m,[ ],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a,b, c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSuffi x:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[-- e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0,a. length,b,0,b.length)},equals:function(a,b){return a===b}};var sb=new I;a.Observe r=x,a.Observer.runEOM_=bb,a.Observer.observerSentinel_=mb,a.Observer.hasObjectOb serve=P,a.ArrayObserver=B,a.ArrayObserver.calculateSplices=function(a,b){return sb.calculateSplices(a,b)},a.ArraySplice=I,a.ObjectObserver=A,a.PathObserver=C,a. CompoundObserver=D,a.Path=l,a.ObserverTransform=F}("undefined"!=typeof global&&g lobal&&"undefined"!=typeof module&&module?global:this||window),window.ShadowDOMP olyfill={},function(a){"use strict";function b(){if("undefined"!=typeof chrome&& chrome.app&&chrome.app.runtime)return!1;if(navigator.getDeviceStorage)return!1;t ry{var a=new Function("return true;");return a()}catch(b){return!1}}function c(a ){if(!a)throw new Error("Assertion failed")}function d(a,b){for(var c=N(b),d=0;d <c.length;d++){var e=c[d];M(a,e,O(b,e))}return a}function e(a,b){for(var c=N(b), d=0;d<c.length;d++){var e=c[d];switch(e){case"arguments":case"caller":case"lengt h":case"name":case"prototype":case"toString":continue}M(a,e,O(b,e))}return a}fun ction f(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function g(a,b,c ){P.value=c,M(a,b,P)}function h(a){var b=a.__proto__||Object.getPrototypeOf(a),c =I.get(b);if(c)return c;var d=h(b),e=v(d);return s(b,e,a),e}function i(a,b){q(a, b,!0)}function j(a,b){q(b,a,!1)}function k(a){return/^on[a-z]+$/.test(a)}functio n l(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}function m(a){return L&&l(a)?new Functi on("return this.__impl4cf1e782hg__."+a):function(){return this.__impl4cf1e782hg_ _[a]}}function n(a){return L&&l(a)?new Function("v","this.__impl4cf1e782hg__."+a +" = v"):function(b){this.__impl4cf1e782hg__[a]=b}}function o(a){return L&&l(a)? new Function("return this.__impl4cf1e782hg__."+a+".apply(this.__impl4cf1e782hg__ , arguments)"):function(){return this.__impl4cf1e782hg__[a].apply(this.__impl4cf 1e782hg__,arguments)}}function p(a,b){try{return Object.getOwnPropertyDescriptor (a,b)}catch(c){return R}}function q(b,c,d){for(var e=N(b),f=0;f<e.length;f++){va r g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBla ckList_[g])){Q&&b.__lookupGetter__(g);var h,i,j=p(b,g);if(d&&"function"==typeof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.writabl e||j.set||S)&&(i=l?a.getEventHandlerSetter(g):n(g)),M(c,g,{get:h,set:i,configura ble:j.configurable,enumerable:j.enumerable})}}}}function r(a,b,c){var d=a.protot ype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===I.get(a)),I.s et(a,b),J.set(e,a),i(a,e),d&&j(e,d),g(e,"constructor",b),b.prototype=e}function t(a,b){return I.get(b.prototype)===a}function u(a){var b=Object.getPrototypeOf(a ),c=h(b),d=v(c);return s(b,d,a),d}function v(a){function b(b){a.call(this,b)}var c=Object.create(a.prototype);return c.constructor=b,b.prototype=c,b}function w( a){return a&&a.__impl4cf1e782hg__}function x(a){return!w(a)}function y(a){return null===a?null:(c(x(a)),a.__wrapper8e3dd93a60__||(a.__wrapper8e3dd93a60__=new(h( a))(a)))}function z(a){return null===a?null:(c(w(a)),a.__impl4cf1e782hg__)}funct ion A(a){return a.__impl4cf1e782hg__}function B(a,b){b.__impl4cf1e782hg__=a,a.__ wrapper8e3dd93a60__=b}function C(a){return a&&w(a)?z(a):a}function D(a){return a &&!w(a)?y(a):a}function E(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)),a.__wrappe r8e3dd93a60__=b)}function F(a,b,c){T.get=c,M(a.prototype,b,T)}function G(a,b){F( a,b,function(){return y(this.__impl4cf1e782hg__[b])})}function H(a,b){a.forEach( function(a){b.forEach(function(b){a.prototype[b]=function(){var a=D(this);return a[b].apply(a,arguments)}})})}var I=new WeakMap,J=new WeakMap,K=Object.create(nu ll),L=b(),M=Object.defineProperty,N=Object.getOwnPropertyNames,O=Object.getOwnPr opertyDescriptor,P={value:void 0,configurable:!0,enumerable:!1,writable:!0};N(wi ndow);var Q=/Firefox/.test(navigator.userAgent),R={get:function(){},set:function (){},configurable:!0,enumerable:!0},S=function(){var a=Object.getOwnPropertyDesc riptor(Node.prototype,"nodeType");return!!a&&"set"in a}(),T={get:void 0,configur able:!0,enumerable:!0};a.assert=c,a.constructorTable=I,a.defineGetter=F,a.define WrapGetter=G,a.forwardMethodsToWrapper=H,a.isWrapper=w,a.isWrapperFor=t,a.mixin= d,a.nativePrototypeTable=J,a.oneOf=f,a.registerObject=u,a.registerWrapper=r,a.re wrap=E,a.setWrapper=B,a.unsafeUnwrap=A,a.unwrap=z,a.unwrapIfNeeded=C,a.wrap=y,a. wrapIfNeeded=D,a.wrappers=K}(window.ShadowDOMPolyfill),function(a){"use strict"; function b(){g=!1;var a=f.slice(0);f=[];for(var b=0;b<a.length;b++)a[b]()}functi on c(a){f.push(a),g||(g=!0,d(b,0))}var d,e=window.MutationObserver,f=[],g=!1;if( e){var h=1,i=new e(b),j=document.createTextNode(h);i.observe(j,{characterData:!0 }),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImmediate||window.setTimeou t;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){a.scheduled_||(a.scheduled_=!0,o.push(a),p||(k(c),p=!0))}function c(){ for(p=!1;o.length;){var a=o;o=[],a.sort(function(a,b){return a.uid_-b.uid_});for (var b=0;b<a.length;b++){var c=a[b];c.scheduled_=!1;var d=c.takeRecords();f(c),d .length&&c.callback_(d,c)}}}function d(a,b){this.type=a,this.target=b,this.added Nodes=new m.NodeList,this.removedNodes=new m.NodeList,this.previousSibling=null, this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this. oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransientObserver(b)}}}f unction f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.nodes_[b],d=n.get(c);if( !d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observer===a&&f.removeTransie ntObservers()}}}function g(a,c,e){for(var f=Object.create(null),g=Object.create( null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&!l.attributes||"at tributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.attributeFilter.in dexOf(e.name))||"characterData"===c&&!l.characterData||"childList"===c&&!l.child List)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attributeOldValue||"cha racterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.oldValue)}}}for(var o in f){var m=f[o],p=new d(c,a);"name"in e&&"namespace"in e&&(p.attributeName=e.name ,p.attributeNamespace=e.namespace),e.addedNodes&&(p.addedNodes=e.addedNodes),e.r emovedNodes&&(p.removedNodes=e.removedNodes),e.previousSibling&&(p.previousSibli ng=e.previousSibling),e.nextSibling&&(p.nextSibling=e.nextSibling),void 0!==g[o] &&(p.oldValue=g[o]),b(m),m.records_.push(p)}}function h(a){if(this.childList=!!a .childList,this.subtree=!!a.subtree,this.attributes="attributes"in a||!("attribu teOldValue"in a||"attributeFilter"in a)?!!a.attributes:!0,this.characterData="ch aracterDataOldValue"in a&&!("characterData"in a)?!0:!!a.characterData,!this.attr ibutes&&(a.attributeOldValue||"attributeFilter"in a)||!this.characterData&&a.cha racterDataOldValue)throw new TypeError;if(this.characterData=!!a.characterData,t his.attributeOldValue=!!a.attributeOldValue,this.characterDataOldValue=!!a.chara cterDataOldValue,"attributeFilter"in a){if(null==a.attributeFilter||"object"!=ty peof a.attributeFilter)throw new TypeError;this.attributeFilter=q.call(a.attribu teFilter)}else this.attributeFilter=null}function i(a){this.callback_=a,this.nod es_=[],this.records_=[],this.uid_=++r,this.scheduled_=!1}function j(a,b,c){this. observer=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var k=a.s etEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.p rototype.slice,r=0;i.prototype={constructor:i,observe:function(a,b){a=l(a);var c ,d=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length;f++)e[f].observer ===this&&(c=e[f],c.removeTransientObservers(),c.options=d);c||(c=new j(this,a,d) ,e.push(c),this.nodes_.push(a))},disconnect:function(){this.nodes_.forEach(funct ion(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){b .splice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a=this. records_;return this.records_=[],a}},j.prototype={addTransientObserver:function( a){if(a!==this.target){b(this.observer),this.transientObservedNodes.push(a);var c=n.get(a);c||n.set(a,c=[]),c.push(this)}},removeTransientObservers:function(){v ar a=this.transientObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a. length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splice (e,1);break}}},a.enqueueMutation=g,a.registerTransientObservers=e,a.wrappers.Mut ationObserver=i,a.wrappers.MutationRecord=d}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a,b){this.root=a,this.parent=b}function c(a,b){if(a.t reeScope_!==b){a.treeScope_=b;for(var d=a.shadowRoot;d;d=d.olderShadowRoot)d.tre eScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSibling)c(e,b)}}function d(c){ if(c instanceof a.wrappers.Window,c.treeScope_)return c.treeScope_;var e,f=c.par entNode;return e=f?d(f):new b(c,null),c.treeScope_=e}b.prototype={get renderer() {return this.root instanceof a.wrappers.ShadowRoot?a.getRendererForHost(this.roo t.host):null},contains:function(a){for(;a;a=a.parent)if(a===this)return!0;return !1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScope=c}(window.ShadowDOMPolyfill), function(a){"use strict";function b(a){return a instanceof T.ShadowRoot}function c(a){return M(a).root}function d(a,d){var h=[],i=a;for(h.push(i);i;){var j=g(i) ;if(j&&j.length>0){for(var k=0;k<j.length;k++){var m=j[k];if(f(m)){var n=c(m),o= n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length-1]}else if(b(i)){if(l(a,i) &&e(d))break;i=i.host,h.push(i)}else i=i.parentNode,i&&h.push(i)}return h}functi on e(a){if(!a)return!1;switch(a.type){case"abort":case"error":case"select":case" change":case"load":case"reset":case"resize":case"scroll":case"selectstart":retur n!0}return!1}function f(a){return a instanceof HTMLShadowElement}function g(b){r eturn a.getDestinationInsertionPoints(b)}function h(a,b){if(0===a.length)return b;b instanceof T.Window&&(b=b.document);for(var c=M(b),d=a[0],e=M(d),f=j(c,e),g= 0;g<a.length;g++){var h=a[g];if(M(h)===f)return h}return a[a.length-1]}function i(a){for(var b=[];a;a=a.parent)b.push(a);return b}function j(a,b){for(var c=i(a) ,d=i(b),e=null;c.length>0&&d.length>0;){var f=c.pop(),g=d.pop();if(f!==g)break;e =f}return e}function k(a,b,c){b instanceof T.Window&&(b=b.document);var e,f=M(b) ,g=M(c),h=d(c,a),e=j(f,g);e||(e=g.root);for(var i=e;i;i=i.parent)for(var k=0;k<h .length;k++){var l=h[k];if(M(l)===i)return l}return null}function l(a,b){return M(a)===M(b)}function m(a){if(!V.get(a)&&(V.set(a,!0),o(S(a),S(a.target)),K)){var b=K;throw K=null,b}}function n(a){switch(a.type){case"load":case"beforeunload": case"unload":return!0}return!1}function o(b,c){if(W.get(b))throw new Error("Inva lidStateError");W.set(b,!0),a.renderAllPending();var e,f,g;if(n(b)&&!b.bubbles){ var h=c;h instanceof T.Document&&(g=h.defaultView)&&(f=h,e=[])}if(!e)if(c instan ceof T.Window)g=c,e=[];else if(e=d(c,b),!n(b)){var h=e[e.length-1];h instanceof T.Document&&(g=h.defaultView)}return cb.set(b,e),p(b,e,g,f)&&q(b,e,g,f)&&r(b,e,g ,f),$.set(b,db),Y.delete(b,null),W.delete(b),b.defaultPrevented}function p(a,b,c ,d){var e=eb;if(c&&!s(c,a,e,b,d))return!1;for(var f=b.length-1;f>0;f--)if(!s(b[f ],a,e,b,d))return!1;return!0}function q(a,b,c,d){var e=fb,f=b[0]||c;return s(f,a ,e,b,d)}function r(a,b,c,d){for(var e=gb,f=1;f<b.length;f++)if(!s(b[f],a,e,b,d)) return;c&&b.length>0&&s(c,a,e,b,d)}function s(a,b,c,d,e){var f=U.get(a);if(!f)re turn!0;var g=e||h(d,a);if(g===a){if(c===eb)return!0;c===gb&&(c=fb)}else if(c===g b&&!b.bubbles)return!0;if("relatedTarget"in b){var i=R(b),j=i.relatedTarget;if(j ){if(j instanceof Object&&j.addEventListener){var l=S(j),m=k(b,a,l);if(m===g)ret urn!0}else m=null;Z.set(b,m)}}$.set(b,c);var n=b.type,o=!1;X.set(b,g),Y.set(b,a) ,f.depth++;for(var p=0,q=f.length;q>p;p++){var r=f[p];if(r.removed)o=!0;else if( !(r.type!==n||!r.capture&&c===eb||r.capture&&c===gb))try{if("function"==typeof r .handler?r.handler.call(a,b):r.handler.handleEvent(b),ab.get(b))return!1}catch(s ){K||(K=s)}}if(f.depth--,o&&0===f.depth){var t=f.slice();f.length=0;for(var p=0; p<t.length;p++)t[p].removed||f.push(t[p])}return!_.get(b)}function t(a,b,c){this .type=a,this.handler=b,this.capture=Boolean(c)}function u(a,b){if(!(a instanceof hb))return S(y(hb,"Event",a,b));var c=a;return sb||"beforeunload"!==c.type||thi s instanceof z?void P(c,this):new z(c)}function v(a){return a&&a.relatedTarget?O bject.create(a,{relatedTarget:{value:R(a.relatedTarget)}}):a}function w(a,b,c){v ar d=window[a],e=function(b,c){return b instanceof d?void P(b,this):S(y(d,a,b,c) )};if(e.prototype=Object.create(b.prototype),c&&N(e.prototype,c),d)try{O(d,e,new d("temp"))}catch(f){O(d,e,document.createEvent(a))}return e}function x(a,b){ret urn function(){arguments[b]=R(arguments[b]);var c=R(this);c[a].apply(c,arguments )}}function y(a,b,c,d){if(qb)return new a(c,v(d));var e=R(document.createEvent(b )),f=pb[b],g=[c];return Object.keys(f).forEach(function(a){var b=null!=d&&a in d ?d[a]:f[a];"relatedTarget"===a&&(b=R(b)),g.push(b)}),e["init"+b].apply(e,g),e}fu nction z(a){u.call(this,a)}function A(a){return"function"==typeof a?!0:a&&a.hand leEvent}function B(a){switch(a){case"DOMAttrModified":case"DOMAttributeNameChang ed":case"DOMCharacterDataModified":case"DOMElementNameChanged":case"DOMNodeInser ted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemoved":case"DOMNodeRemovedF romDocument":case"DOMSubtreeModified":return!0}return!1}function C(a){P(a,this)} function D(a){return a instanceof T.ShadowRoot&&(a=a.host),R(a)}function E(a,b){ var c=U.get(a);if(c)for(var d=0;d<c.length;d++)if(!c[d].removed&&c[d].type===b)r eturn!0;return!1}function F(a,b){for(var c=R(a);c;c=c.parentNode)if(E(S(c),b))re turn!0;return!1}function G(a){L(a,ub)}function H(b,c,e,f){a.renderAllPending();v ar g=S(vb.call(Q(c),e,f));if(!g)return null;var i=d(g,null),j=i.lastIndexOf(b);r eturn-1==j?null:(i=i.slice(0,j),h(i,b))}function I(a){return function(){var b=bb .get(this); 12 window.Platform=window.Platform||{},window.logFlags=window.logFlags||{},function (a){var b=a.flags||{};location.search.slice(1).split("&").forEach(function(a){a= a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||document.q uerySelector('script[src*="platform.js"]');if(c)for(var d,e=c.attributes,f=0;f<e .length;f++)d=e[f],"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split(", ").forEach(function(a){window.logFlags[a]=!0}),b.shadow=b.shadow||b.shadowdom||b .polyfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.prototype.creat eShadowRoot,b.shadow&&document.querySelectorAll("script").length>1&&console.warn ("platform.js is not the first script on the page. See http://www.polymer-projec t.org/docs/start/platform.html#setup for details."),b.register&&(window.CustomEl ements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=b. register),b.imports&&(window.HTMLImports=window.HTMLImports||{flags:{}},window.H TMLImports.flags.imports=b.imports),a.flags=b}(Platform),"undefined"==typeof Wea kMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e9,c=function(){this .name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype={set:function(b,c) {var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[b,c],writable:!0})} ,get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]:void 0},"delete":fu nction(a){var b=a[this.name];if(!b)return!1;var c=b[0]===a;return b[0]=b[1]=void 0,c},has:function(a){var b=a[this.name];return b?b[0]===a:!1}},window.WeakMap=c }(),Platform.flags.shadow?(!function(a){"use strict";function b(){function a(a){ b=a}if("function"!=typeof Object.observe||"function"!=typeof Array.observe)retur n!1;var b=[],c={},d=[];return Object.observe(c,a),Array.observe(d,a),c.id=1,c.id =2,delete c.id,d.push(1,2),d.length=0,Object.deliverChangeRecords(a),5!==b.lengt h?!1:"add"!=b[0].type||"update"!=b[1].type||"delete"!=b[2].type||"splice"!=b[3]. type||"splice"!=b[4].type?!1:(Object.unobserve(c,a),Array.unobserve(d,a),!0)}fun ction c(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1 ;if("undefined"!=typeof navigator&&navigator.getDeviceStorage)return!1;try{var a =new Function("","return true;");return a()}catch(b){return!1}}function d(a){ret urn+a===a>>>0&&""!==a}function e(a){return+a}function f(a){return a===Object(a)} function g(a,b){return a===b?0!==a||1/a===1/b:R(a)&&R(b)?!0:a!==a&&b!==b}functio n h(a){if(void 0===a)return"eof";var b=a.charCodeAt(0);switch(b){case 91:case 93 :case 46:case 34:case 39:case 48:return a;case 95:case 36:return"ident";case 32: case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&&57>=b?"number":"else"}function i(){} function j(a){function b(){if(!(m>=a.length)){var b=a[m+1];return"inSingleQuote" ==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m++,d=b,o.append(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={push:function(){void 0!==e&&(l.push(e) ,e=void 0)},append:function(){void 0===e?e=d:e+=d}};n;)if(m++,c=a[m],"\\"!=c||!b (n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"error","error"==g)return;if(n=g[0],j=o [g[1]]||i,d=void 0===g[2]?c:g[2],j(),"afterPath"===n)return l}}function k(a){ret urn V.test(a)}function l(a,b){if(b!==X)throw Error("Use Path.get to retrieve pat h objects");for(var c=0;c<a.length;c++)this.push(String(a[c]));Q&&this.length&&( this.getValueFrom=this.compiledGetValueFromFn())}function m(a){if(a instanceof l )return a;if((null==a||0==a.length)&&(a=""),"string"!=typeof a){if(d(a.length))r eturn new l(a,X);a=String(a)}var b=Y[a];if(b)return b;var c=j(a);if(!c)return Z; var b=new l(c,X);return Y[a]=b,b}function n(a){return d(a)?"["+a+"]":'["'+a.repl ace(/"/g,'\\"')+'"]'}function o(b){for(var c=0;_>c&&b.check_();)c++;return O&&(a .dirtyCheckCycleCount=c),c>0}function p(a){for(var b in a)return!1;return!0}func tion q(a){return p(a.added)&&p(a.removed)&&p(a.changed)}function r(a,b){var c={} ,d={},e={};for(var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&& (e[f]=g):d[f]=void 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a) &&a.length!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}functio n s(){if(!ab.length)return!1;for(var a=0;a<ab.length;a++)ab[a]();return ab.lengt h=0,!0}function t(){function a(a){b&&b.state_===fb&&!d&&b.check_(a)}var b,c,d=!1 ,e=!0;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Objec t.deliverChangeRecords(a),b=c,e=!1},observe:function(b,d){c=b,d?Array.observe(c, a):Object.observe(c,a)},deliver:function(b){d=b,Object.deliverChangeRecords(a),d =!1},close:function(){b=void 0,Object.unobserve(c,a),cb.push(this)}}}function u( a,b,c){var d=cb.pop()||t();return d.open(a),d.observe(b,c),d}function v(){functi on a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf(b)<0&&(h.push(b),Object.observe(b,c)),a (Object.getPrototypeOf(b),f))}function b(a){for(var b=0;b<a.length;b++){var c=a[ b];if(c.object!==d||e[c.name]||"setPrototype"===c.type)return!1}return!0}functio n c(c){if(!b(c)){for(var d,e=0;e<g.length;e++)d=g[e],d.state_==fb&&d.iterateObje cts_(a);for(var e=0;e<g.length;e++)d=g[e],d.state_==fb&&d.check_()}}var d,e,f=0, g=[],h=[],i={object:void 0,objects:h,open:function(b,c){d||(d=c,e={}),g.push(b), f++,b.iterateObjects_(a)},close:function(){if(f--,!(f>0)){for(var a=0;a<h.length ;a++)Object.unobserve(h[a],c),x.unobservedCount++;g.length=0,h.length=0,d=void 0 ,e=void 0,db.push(this)}}};return i}function w(a,b){return $&&$.object===b||($=d b.pop()||v(),$.object=b),$.open(a,b),$}function x(){this.state_=eb,this.callback _=void 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this .id_=ib++}function y(a){x._allObserversCount++,kb&&jb.push(a)}function z(){x._al lObserversCount--}function A(a){x.call(this),this.value_=a,this.oldObject_=void 0}function B(a){if(!Array.isArray(a))throw Error("Provided object is not an Arra y");A.call(this,a)}function C(a,b){x.call(this),this.object_=a,this.path_=m(b),t his.directObserver_=void 0}function D(a){x.call(this),this.reportChangesOnOpen_= a,this.value_=[],this.directObserver_=void 0,this.observed_=[]}function E(a){ret urn a}function F(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.value_= void 0,this.observable_=a,this.getValueFn_=b||E,this.setValueFn_=c||E,this.dontP assThroughSet_=d}function G(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g=b [f];nb[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&("add"!=g. type?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?de lete e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.typ e),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={ };for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{adde d:d,removed:e,changed:i}}function H(a,b,c){return{index:a,removed:b,addedCount:c }}function I(){}function J(a,b,c,d,e,f){return sb.calcSplices(a,b,c,d,e,f)}funct ion K(a,b,c,d){return c>b||a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}funct ion L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.i ndex+=g,!f){var j=K(e.index,e.index+e.removed.length,i.index,i.index+i.addedCoun t);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.a ddedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c= i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.pro totype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m) }e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.inde x){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n} }}f||a.push(e)}function M(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switc h(g.type){case"splice":L(c,g.index,g.removed.slice(),g.addedCount);break;case"ad d":case"update":case"delete":if(!d(g.name))continue;var h=e(g.name);if(0>h)conti nue;L(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: " +JSON.stringify(g))}}return c}function N(a,b){var c=[];return M(a,b).forEach(fun ction(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.ind ex]&&c.push(b)):void(c=c.concat(J(a,b.index,b.index+b.addedCount,b.removed,0,b.r emoved.length)))}),c}var O=a.testingExposeCycleCount,P=b(),Q=c(),R=a.Number.isNa N||function(b){return"number"==typeof b&&a.isNaN(b)},S="__proto__"in{}?function( a){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b) ;return Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty( c,b,Object.getOwnPropertyDescriptor(a,b))}),c},T="[$_a-zA-Z]",U="[$_a-zA-Z0-9]", V=new RegExp("^"+T+"+"+U+"*$"),W={beforePath:{ws:["beforePath"],ident:["inIdent" ,"append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":[" beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeI dent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIde nt","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent ","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":[" inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["a fterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],numb er:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote :{"'":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDouble Quote:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},aft erElement:{ws:["afterElement"],"]":["inPath","push"]}},X={},Y={};l.get=m,l.proto type=S({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<this.length ;b++){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}return a},getValueFrom:function(a){fo r(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a},iterateObj ects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]),!f(a))r eturn;b(a,this[0])}},compiledGetValueFromFn:function(){var a="",b="obj";a+="if ( obj != null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=k(c)?"."+c:n(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d];return b+=k(c)?"."+c:n(c),a+=" return "+b+";\nelse\n return undefined;",new Function("obj",a)},setValueFrom:fu nction(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){if(!f(a))r eturn!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var Z=new l("",X);Z.val id=!1,Z.getValueFrom=Z.setValueFrom=function(){};var $,_=1e3,ab=[],bb=P?function (){var a={pingPong:!0},b=!1;return Object.observe(a,function(){s(),b=!1}),functi on(c){ab.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(){return function (a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,hb=3,ib=1;x.prototype={open:functi on(a,b){if(this.state_!=eb)throw Error("Observer has already been opened.");retu rn y(this),this.callback_=a,this.target_=b,this.connect_(),this.state_=fb,this.v alue_},close:function(){this.state_==fb&&(z(this),this.disconnect_(),this.value_ =void 0,this.callback_=void 0,this.target_=void 0,this.state_=gb)},deliver:funct ion(){this.state_==fb&&o(this)},report_:function(a){try{this.callback_.apply(thi s.target_,a)}catch(b){x._errorThrownDuringCallback=!0,console.error("Exception c aught during observer callback: "+(b.stack||b))}},discardChanges:function(){retu rn this.check_(void 0,!0),this.value_}};var jb,kb=!P;x._allObserversCount=0,kb&& (jb=[]);var lb=!1;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoin t=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{d++,c=jb,jb=[],b=!1;for(var e=0;e< c.length;e++){var f=c[e];f.state_==fb&&(f.check_()&&(b=!0),jb.push(f))}s()&&(b=! 0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d),lb=!1}},kb&&(a.Platform.clearObse rvers=function(){jb=[]}),A.prototype=S({__proto__:x.prototype,arrayObserve:!1,co nnect_:function(){P?this.directObserver_=u(this,this.value_,this.arrayObserve):t his.oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array. isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.l ength),b},check_:function(a){var b,c;if(P){if(!a)return!1;c={},b=G(this.value_,a ,c)}else c=this.oldObject_,b=r(this.value_,this.oldObject_);return q(b)?!1:(P||( this.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.remove d||{},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){P?(th is.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0}, deliver:function(){this.state_==fb&&(P?this.directObserver_.deliver(!1):o(this)) },discardChanges:function(){return this.directObserver_?this.directObserver_.del iver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),B.prototype =S({__proto__:A.prototype,arrayObserve:!0,copyObject:function(a){return a.slice( )},check_:function(a){var b;if(P){if(!a)return!1;b=N(this.value_,a)}else b=J(thi s.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return b &&b.length?(P||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]), !0):!1}}),B.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.inde x,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.pro totype.splice.apply(a,d)})},C.prototype=S({__proto__:x.prototype,get path(){retu rn this.path_},connect_:function(){P&&(this.directObserver_=w(this,this.object_) ),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directO bserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterat eObjects_:function(a){this.path_.iterateObjects(this.object_,a)},check_:function (a,b){var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_) ,b||g(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},setValue:functi on(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var mb={};D.prototy pe=S({__proto__:x.prototype,connect_:function(){if(P){for(var a,b=!1,c=0;c<this. observed_.length;c+=2)if(a=this.observed_[c],a!==mb){b=!0;break}b&&(this.directO bserver_=w(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_: function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===mb&&this .observed_[a+1].close();this.observed_.length=0,this.value_.length=0,this.direct Observer_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addPa th:function(a,b){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add pat hs once started.");var b=m(b);if(this.observed_.push(a,b),this.reportChangesOnOp en_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom(a)}},addObser ver:function(a){if(this.state_!=eb&&this.state_!=hb)throw Error("Cannot add obse rvers once started.");if(this.observed_.push(mb,a),this.reportChangesOnOpen_){va r b=this.observed_.length/2-1;this.value_[b]=a.open(this.deliver,this)}},startRe set:function(){if(this.state_!=fb)throw Error("Can only reset while open");this. state_=hb,this.disconnect_()},finishReset:function(){if(this.state_!=hb)throw Er ror("Can only finishReset after startReset");return this.state_=fb,this.connect_ (),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.lengt h;c+=2)b=this.observed_[c],b!==mb&&this.observed_[c+1].iterateObjects(b,a)},chec k_:function(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e,f=this.observ ed_[d],h=this.observed_[d+1];if(f===mb){var i=h;e=this.state_===eb?i.open(this.d eliver,this):i.discardChanges()}else e=h.getValueFrom(f);b?this.value_[d/2]=e:g( e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=e)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),F.prototype={open:fun ction(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValueFn_(t his.observable_.open(this.observedCallback_,this)),this.value_},observedCallback _:function(a){if(a=this.getValueFn_(a),!g(a,this.value_)){var b=this.value_;this .value_=a,this.callback_.call(this.target_,this.value_,b)}},discardChanges:funct ion(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),thi s.value_},deliver:function(){return this.observable_.deliver()},setValue:functio n(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observable_.se tValue?this.observable_.setValue(a):void 0},close:function(){this.observable_&&t his.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observabl e_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};v ar nb={add:!0,update:!0,"delete":!0},ob=0,pb=1,qb=2,rb=3;I.prototype={calcEditDi stances:function(a,b,c,d,e,f){for(var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++ )i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)f or(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{va r l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}return i},spliceOperationsFromEdit Distances:function(a){for(var b=a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c >0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g >i?i:g,f==g?(g==d?e.push(ob):(e.push(pb),d=g),b--,c--):f==h?(e.push(rb),b--,d=h) :(e.push(qb),c--,d=i)}else e.push(rb),b--;else e.push(qb),c--;return e.reverse() ,e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0 ==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.sharedSuffix (a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(var j=H(b,[] ,0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[H(b,[],c-b)];for(var k= this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=vo id 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case ob:j&&(l.push(j),j=void 0 ),m++,n++;break;case pb:j||(j=H(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]) ,n++;break;case qb:j||(j=H(m,[],0)),j.addedCount++,m++;break;case rb:j||(j=H(m,[ ],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a,b, c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},sharedSuffi x:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[-- e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0,a. length,b,0,b.length)},equals:function(a,b){return a===b}};var sb=new I;a.Observe r=x,a.Observer.runEOM_=bb,a.Observer.observerSentinel_=mb,a.Observer.hasObjectOb serve=P,a.ArrayObserver=B,a.ArrayObserver.calculateSplices=function(a,b){return sb.calculateSplices(a,b)},a.ArraySplice=I,a.ObjectObserver=A,a.PathObserver=C,a. CompoundObserver=D,a.Path=l,a.ObserverTransform=F}("undefined"!=typeof global&&g lobal&&"undefined"!=typeof module&&module?global:this||window),window.ShadowDOMP olyfill={},function(a){"use strict";function b(){if("undefined"!=typeof chrome&& chrome.app&&chrome.app.runtime)return!1;if(navigator.getDeviceStorage)return!1;t ry{var a=new Function("return true;");return a()}catch(b){return!1}}function c(a ){if(!a)throw new Error("Assertion failed")}function d(a,b){for(var c=N(b),d=0;d <c.length;d++){var e=c[d];M(a,e,O(b,e))}return a}function e(a,b){for(var c=N(b), d=0;d<c.length;d++){var e=c[d];switch(e){case"arguments":case"caller":case"lengt h":case"name":case"prototype":case"toString":continue}M(a,e,O(b,e))}return a}fun ction f(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function g(a,b,c ){P.value=c,M(a,b,P)}function h(a){var b=a.__proto__||Object.getPrototypeOf(a),c =I.get(b);if(c)return c;var d=h(b),e=v(d);return s(b,e,a),e}function i(a,b){q(a, b,!0)}function j(a,b){q(b,a,!1)}function k(a){return/^on[a-z]+$/.test(a)}functio n l(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}function m(a){return L&&l(a)?new Functi on("return this.__impl4cf1e782hg__."+a):function(){return this.__impl4cf1e782hg_ _[a]}}function n(a){return L&&l(a)?new Function("v","this.__impl4cf1e782hg__."+a +" = v"):function(b){this.__impl4cf1e782hg__[a]=b}}function o(a){return L&&l(a)? new Function("return this.__impl4cf1e782hg__."+a+".apply(this.__impl4cf1e782hg__ , arguments)"):function(){return this.__impl4cf1e782hg__[a].apply(this.__impl4cf 1e782hg__,arguments)}}function p(a,b){try{return Object.getOwnPropertyDescriptor (a,b)}catch(c){return R}}function q(b,c,d){for(var e=N(b),f=0;f<e.length;f++){va r g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polymerBla ckList_[g])){Q&&b.__lookupGetter__(g);var h,i,j=p(b,g);if(d&&"function"==typeof j.value)c[g]=o(g);else{var l=k(g);h=l?a.getEventHandlerGetter(g):m(g),(j.writabl e||j.set||S)&&(i=l?a.getEventHandlerSetter(g):n(g)),M(c,g,{get:h,set:i,configura ble:j.configurable,enumerable:j.enumerable})}}}}function r(a,b,c){var d=a.protot ype;s(d,b,c),e(b,a)}function s(a,b,d){var e=b.prototype;c(void 0===I.get(a)),I.s et(a,b),J.set(e,a),i(a,e),d&&j(e,d),g(e,"constructor",b),b.prototype=e}function t(a,b){return I.get(b.prototype)===a}function u(a){var b=Object.getPrototypeOf(a ),c=h(b),d=v(c);return s(b,d,a),d}function v(a){function b(b){a.call(this,b)}var c=Object.create(a.prototype);return c.constructor=b,b.prototype=c,b}function w( a){return a&&a.__impl4cf1e782hg__}function x(a){return!w(a)}function y(a){return null===a?null:(c(x(a)),a.__wrapper8e3dd93a60__||(a.__wrapper8e3dd93a60__=new(h( a))(a)))}function z(a){return null===a?null:(c(w(a)),a.__impl4cf1e782hg__)}funct ion A(a){return a.__impl4cf1e782hg__}function B(a,b){b.__impl4cf1e782hg__=a,a.__ wrapper8e3dd93a60__=b}function C(a){return a&&w(a)?z(a):a}function D(a){return a &&!w(a)?y(a):a}function E(a,b){null!==b&&(c(x(a)),c(void 0===b||w(b)),a.__wrappe r8e3dd93a60__=b)}function F(a,b,c){T.get=c,M(a.prototype,b,T)}function G(a,b){F( a,b,function(){return y(this.__impl4cf1e782hg__[b])})}function H(a,b){a.forEach( function(a){b.forEach(function(b){a.prototype[b]=function(){var a=D(this);return a[b].apply(a,arguments)}})})}var I=new WeakMap,J=new WeakMap,K=Object.create(nu ll),L=b(),M=Object.defineProperty,N=Object.getOwnPropertyNames,O=Object.getOwnPr opertyDescriptor,P={value:void 0,configurable:!0,enumerable:!1,writable:!0};N(wi ndow);var Q=/Firefox/.test(navigator.userAgent),R={get:function(){},set:function (){},configurable:!0,enumerable:!0},S=function(){var a=Object.getOwnPropertyDesc riptor(Node.prototype,"nodeType");return!!a&&"set"in a}(),T={get:void 0,configur able:!0,enumerable:!0};a.assert=c,a.constructorTable=I,a.defineGetter=F,a.define WrapGetter=G,a.forwardMethodsToWrapper=H,a.isWrapper=w,a.isWrapperFor=t,a.mixin= d,a.nativePrototypeTable=J,a.oneOf=f,a.registerObject=u,a.registerWrapper=r,a.re wrap=E,a.setWrapper=B,a.unsafeUnwrap=A,a.unwrap=z,a.unwrapIfNeeded=C,a.wrap=y,a. wrapIfNeeded=D,a.wrappers=K}(window.ShadowDOMPolyfill),function(a){"use strict"; function b(){g=!1;var a=f.slice(0);f=[];for(var b=0;b<a.length;b++)a[b]()}functi on c(a){f.push(a),g||(g=!0,d(b,0))}var d,e=window.MutationObserver,f=[],g=!1;if( e){var h=1,i=new e(b),j=document.createTextNode(h);i.observe(j,{characterData:!0 }),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImmediate||window.setTimeou t;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(){p||(k(c),p=!0)}function c(){for(p=!1;o.length;){var a=o;o=[],a.sort(fun ction(a,b){return a.uid_-b.uid_});for(var b=0;b<a.length;b++){var c=a[b],d=c.tak eRecords();f(c),d.length&&c.callback_(d,c)}}}function d(a,b){this.type=a,this.ta rget=b,this.addedNodes=new m.NodeList,this.removedNodes=new m.NodeList,this.prev iousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNam espace=null,this.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.ge t(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransie ntObserver(b)}}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.nodes_[ b],d=n.get(c);if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observer===a &&f.removeTransientObservers()}}}function g(a,c,e){for(var f=Object.create(null) ,g=Object.create(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i .length;j++){var k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&! l.attributes||"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.a ttributeFilter.indexOf(e.name))||"characterData"===c&&!l.characterData||"childLi st"===c&&!l.childList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attrib uteOldValue||"characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.oldValu e)}}}var p=!1;for(var q in f){var m=f[q],r=new d(c,a);"name"in e&&"namespace"in e&&(r.attributeName=e.name,r.attributeNamespace=e.namespace),e.addedNodes&&(r.ad dedNodes=e.addedNodes),e.removedNodes&&(r.removedNodes=e.removedNodes),e.previou sSibling&&(r.previousSibling=e.previousSibling),e.nextSibling&&(r.nextSibling=e. nextSibling),void 0!==g[q]&&(r.oldValue=g[q]),m.records_.length||(o.push(m),p=!0 ),m.records_.push(r)}p&&b()}function h(a){if(this.childList=!!a.childList,this.s ubtree=!!a.subtree,this.attributes="attributes"in a||!("attributeOldValue"in a|| "attributeFilter"in a)?!!a.attributes:!0,this.characterData="characterDataOldVal ue"in a&&!("characterData"in a)?!0:!!a.characterData,!this.attributes&&(a.attrib uteOldValue||"attributeFilter"in a)||!this.characterData&&a.characterDataOldValu e)throw new TypeError;if(this.characterData=!!a.characterData,this.attributeOldV alue=!!a.attributeOldValue,this.characterDataOldValue=!!a.characterDataOldValue, "attributeFilter"in a){if(null==a.attributeFilter||"object"!=typeof a.attributeF ilter)throw new TypeError;this.attributeFilter=q.call(a.attributeFilter)}else th is.attributeFilter=null}function i(a){this.callback_=a,this.nodes_=[],this.recor ds_=[],this.uid_=++r}function j(a,b,c){this.observer=a,this.target=b,this.option s=c,this.transientObservedNodes=[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m= a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.prototype.slice,r=0;i.prototype={cons tructor:i,observe:function(a,b){a=l(a);var c,d=new h(b),e=n.get(a);e||n.set(a,e= []);for(var f=0;f<e.length;f++)e[f].observer===this&&(c=e[f],c.removeTransientOb servers(),c.options=d);c||(c=new j(this,a,d),e.push(c),this.nodes_.push(a))},dis connect:function(){this.nodes_.forEach(function(a){for(var b=n.get(a),c=0;c<b.le ngth;c++){var d=b[c];if(d.observer===this){b.splice(c,1);break}}},this),this.rec ords_=[]},takeRecords:function(){var a=this.records_;return this.records_=[],a}} ,j.prototype={addTransientObserver:function(a){if(a!==this.target){this.transien tObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(this)}},removeTran sientObservers:function(){var a=this.transientObservedNodes;this.transientObserv edNodes=[];for(var b=0;b<a.length;b++)for(var c=a[b],d=n.get(c),e=0;e<d.length;e ++)if(d[e]===this){d.splice(e,1);break}}},a.enqueueMutation=g,a.registerTransien tObservers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationRecord=d}(window.S hadowDOMPolyfill),function(a){"use strict";function b(a,b){this.root=a,this.pare nt=b}function c(a,b){if(a.treeScope_!==b){a.treeScope_=b;for(var d=a.shadowRoot; d;d=d.olderShadowRoot)d.treeScope_.parent=b;for(var e=a.firstChild;e;e=e.nextSib ling)c(e,b)}}function d(c){if(c instanceof a.wrappers.Window,c.treeScope_)return c.treeScope_;var e,f=c.parentNode;return e=f?d(f):new b(c,null),c.treeScope_=e} b.prototype={get renderer(){return this.root instanceof a.wrappers.ShadowRoot?a. getRendererForHost(this.root.host):null},contains:function(a){for(;a;a=a.parent) if(a===this)return!0;return!1}},a.TreeScope=b,a.getTreeScope=d,a.setTreeScope=c} (window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a insta nceof T.ShadowRoot}function c(a){return M(a).root}function d(a,d){var h=[],i=a;f or(h.push(i);i;){var j=g(i);if(j&&j.length>0){for(var k=0;k<j.length;k++){var m= j[k];if(f(m)){var n=c(m),o=n.olderShadowRoot;o&&h.push(o)}h.push(m)}i=j[j.length -1]}else if(b(i)){if(l(a,i)&&e(d))break;i=i.host,h.push(i)}else i=i.parentNode,i &&h.push(i)}return h}function e(a){if(!a)return!1;switch(a.type){case"abort":cas e"error":case"select":case"change":case"load":case"reset":case"resize":case"scro ll":case"selectstart":return!0}return!1}function f(a){return a instanceof HTMLSh adowElement}function g(b){return a.getDestinationInsertionPoints(b)}function h(a ,b){if(0===a.length)return b;b instanceof T.Window&&(b=b.document);for(var c=M(b ),d=a[0],e=M(d),f=j(c,e),g=0;g<a.length;g++){var h=a[g];if(M(h)===f)return h}ret urn a[a.length-1]}function i(a){for(var b=[];a;a=a.parent)b.push(a);return b}fun ction j(a,b){for(var c=i(a),d=i(b),e=null;c.length>0&&d.length>0;){var f=c.pop() ,g=d.pop();if(f!==g)break;e=f}return e}function k(a,b,c){b instanceof T.Window&& (b=b.document);var e,f=M(b),g=M(c),h=d(c,a),e=j(f,g);e||(e=g.root);for(var i=e;i ;i=i.parent)for(var k=0;k<h.length;k++){var l=h[k];if(M(l)===i)return l}return n ull}function l(a,b){return M(a)===M(b)}function m(a){if(!V.get(a)&&(V.set(a,!0), o(S(a),S(a.target)),K)){var b=K;throw K=null,b}}function n(a){switch(a.type){cas e"load":case"beforeunload":case"unload":return!0}return!1}function o(b,c){if(W.g et(b))throw new Error("InvalidStateError");W.set(b,!0),a.renderAllPending();var e,f,g;if(n(b)&&!b.bubbles){var h=c;h instanceof T.Document&&(g=h.defaultView)&&( f=h,e=[])}if(!e)if(c instanceof T.Window)g=c,e=[];else if(e=d(c,b),!n(b)){var h= e[e.length-1];h instanceof T.Document&&(g=h.defaultView)}return cb.set(b,e),p(b, e,g,f)&&q(b,e,g,f)&&r(b,e,g,f),$.set(b,db),Y.delete(b,null),W.delete(b),b.defaul tPrevented}function p(a,b,c,d){var e=eb;if(c&&!s(c,a,e,b,d))return!1;for(var f=b .length-1;f>0;f--)if(!s(b[f],a,e,b,d))return!1;return!0}function q(a,b,c,d){var e=fb,f=b[0]||c;return s(f,a,e,b,d)}function r(a,b,c,d){for(var e=gb,f=1;f<b.leng th;f++)if(!s(b[f],a,e,b,d))return;c&&b.length>0&&s(c,a,e,b,d)}function s(a,b,c,d ,e){var f=U.get(a);if(!f)return!0;var g=e||h(d,a);if(g===a){if(c===eb)return!0;c ===gb&&(c=fb)}else if(c===gb&&!b.bubbles)return!0;if("relatedTarget"in b){var i= R(b),j=i.relatedTarget;if(j){if(j instanceof Object&&j.addEventListener){var l=S (j),m=k(b,a,l);if(m===g)return!0}else m=null;Z.set(b,m)}}$.set(b,c);var n=b.type ,o=!1;X.set(b,g),Y.set(b,a),f.depth++;for(var p=0,q=f.length;q>p;p++){var r=f[p] ;if(r.removed)o=!0;else if(!(r.type!==n||!r.capture&&c===eb||r.capture&&c===gb)) try{if("function"==typeof r.handler?r.handler.call(a,b):r.handler.handleEvent(b) ,ab.get(b))return!1}catch(s){K||(K=s)}}if(f.depth--,o&&0===f.depth){var t=f.slic e();f.length=0;for(var p=0;p<t.length;p++)t[p].removed||f.push(t[p])}return!_.ge t(b)}function t(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c)}functi on u(a,b){if(!(a instanceof hb))return S(y(hb,"Event",a,b));var c=a;return sb||" beforeunload"!==c.type||this instanceof z?void P(c,this):new z(c)}function v(a){ return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:R(a.relatedTarge t)}}):a}function w(a,b,c){var d=window[a],e=function(b,c){return b instanceof d? void P(b,this):S(y(d,a,b,c))};if(e.prototype=Object.create(b.prototype),c&&N(e.p rototype,c),d)try{O(d,e,new d("temp"))}catch(f){O(d,e,document.createEvent(a))}r eturn e}function x(a,b){return function(){arguments[b]=R(arguments[b]);var c=R(t his);c[a].apply(c,arguments)}}function y(a,b,c,d){if(qb)return new a(c,v(d));var e=R(document.createEvent(b)),f=pb[b],g=[c];return Object.keys(f).forEach(functi on(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=R(b)),g.push(b)}), e["init"+b].apply(e,g),e}function z(a){u.call(this,a)}function A(a){return"funct ion"==typeof a?!0:a&&a.handleEvent}function B(a){switch(a){case"DOMAttrModified" :case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMElementNam eChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRe moved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0}return !1}function C(a){P(a,this)}function D(a){return a instanceof T.ShadowRoot&&(a=a. host),R(a)}function E(a,b){var c=U.get(a);if(c)for(var d=0;d<c.length;d++)if(!c[ d].removed&&c[d].type===b)return!0;return!1}function F(a,b){for(var c=R(a);c;c=c .parentNode)if(E(S(c),b))return!0;return!1}function G(a){L(a,ub)}function H(b,c, e,f){a.renderAllPending();var g=S(vb.call(Q(c),e,f));if(!g)return null;var i=d(g ,null),j=i.lastIndexOf(b);return-1==j?null:(i=i.slice(0,j),h(i,b))}function I(a) {return function(){var b=bb.get(this);return b&&b[a]&&b[a].value||null}}function J(a){var b=a.slice(2);
13 return b&&b[a]&&b[a].value||null}}function J(a){var b=a.slice(2);return function (c){var d=bb.get(this);d||(d=Object.create(null),bb.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,wrapp ed:f}}}}var K,L=a.forwardMethodsToWrapper,M=a.getTreeScope,N=a.mixin,O=a.registe rWrapper,P=a.setWrapper,Q=a.unsafeUnwrap,R=a.unwrap,S=a.wrap,T=a.wrappers,U=(new WeakMap,new WeakMap),V=new WeakMap,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z= new WeakMap,$=new WeakMap,_=new WeakMap,ab=new WeakMap,bb=new WeakMap,cb=new Wea kMap,db=0,eb=1,fb=2,gb=3;t.prototype={equals:function(a){return this.handler===a .handler&&this.type===a.type&&this.capture===a.capture},get removed(){return nul l===this.handler},remove:function(){this.handler=null}};var hb=window.Event;hb.p rototype.polymerBlackList_={returnValue:!0,keyLocation:!0},u.prototype={get targ et(){return X.get(this)},get currentTarget(){return Y.get(this)},get eventPhase( ){return $.get(this)},get path(){var a=cb.get(this);return a?a.slice():[]},stopP ropagation:function(){_.set(this,!0)},stopImmediatePropagation:function(){_.set( this,!0),ab.set(this,!0)}},O(hb,u,document.createEvent("Event"));var ib=w("UIEve nt",u),jb=w("CustomEvent",u),kb={get relatedTarget(){var a=Z.get(this);return vo id 0!==a?a:S(R(this).relatedTarget)}},lb=N({initMouseEvent:x("initMouseEvent",14 )},kb),mb=N({initFocusEvent:x("initFocusEvent",5)},kb),nb=w("MouseEvent",ib,lb), ob=w("FocusEvent",ib,mb),pb=Object.create(null),qb=function(){try{new window.Foc usEvent("focus")}catch(a){return!1}return!0}();if(!qb){var rb=function(a,b,c){if (c){var d=pb[c];b=N(N({},d),b)}pb[a]=b};rb("Event",{bubbles:!1,cancelable:!1}),r b("CustomEvent",{detail:null},"Event"),rb("UIEvent",{view:null,detail:0},"Event" ),rb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1, shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),rb("FocusEvent",{ relatedTarget:null},"UIEvent")}var sb=window.BeforeUnloadEvent;z.prototype=Objec t.create(u.prototype),N(z.prototype,{get returnValue(){return Q(this).returnValu e},set returnValue(a){Q(this).returnValue=a}}),sb&&O(sb,z);var tb=window.EventTa rget,ub=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window] .forEach(function(a){var b=a.prototype;ub.forEach(function(a){Object.definePrope rty(b,a+"_",{value:b[a]})})}),C.prototype={addEventListener:function(a,b,c){if(A (b)&&!B(a)){var d=new t(a,b,c),e=U.get(this);if(e){for(var f=0;f<e.length;f++)if (d.equals(e[f]))return}else e=[],e.depth=0,U.set(this,e);e.push(d);var g=D(this) ;g.addEventListener_(a,m,!0)}},removeEventListener:function(a,b,c){c=Boolean(c); var d=U.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=D(t his);h.removeEventListener_(a,m,!0)}}},dispatchEvent:function(b){var c=R(b),d=c. type;V.set(c,!1),a.renderAllPending();var e;F(this,d)||(e=function(){},this.addE ventListener(d,e,!0));try{return R(this).dispatchEvent_(c)}finally{e&&this.remov eEventListener(d,e,!0)}}},tb&&O(tb,C);var vb=document.elementFromPoint;a.element FromPoint=H,a.getEventHandlerGetter=I,a.getEventHandlerSetter=J,a.wrapEventTarge tMethods=G,a.wrappers.BeforeUnloadEvent=z,a.wrappers.CustomEvent=jb,a.wrappers.E vent=u,a.wrappers.EventTarget=C,a.wrappers.FocusEvent=ob,a.wrappers.MouseEvent=n b,a.wrappers.UIEvent=ib}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a,b){Object.defineProperty(a,b,p)}function c(a){j(a,this)}function d(){th is.length=0,b(this,"length")}function e(a){for(var b=new d,e=0;e<a.length;e++)b[ e]=new c(a[e]);return b.length=e,b}function f(a){g.call(this,a)}var g=a.wrappers .UIEvent,h=a.mixin,i=a.registerWrapper,j=a.setWrapper,k=a.unsafeUnwrap,l=a.wrap, m=window.TouchEvent;if(m){var n;try{n=document.createEvent("TouchEvent")}catch(o ){return}var p={enumerable:!1};c.prototype={get target(){return l(k(this).target )}};var q={configurable:!0,enumerable:!0,get:null};["clientX","clientY","screenX ","screenY","pageX","pageY","identifier","webkitRadiusX","webkitRadiusY","webkit RotationAngle","webkitForce"].forEach(function(a){q.get=function(){return k(this )[a]},Object.defineProperty(c.prototype,a,q)}),d.prototype={item:function(a){ret urn this[a]}},f.prototype=Object.create(g.prototype),h(f.prototype,{get touches( ){return e(k(this).touches)},get targetTouches(){return e(k(this).targetTouches) },get changedTouches(){return e(k(this).changedTouches)},initTouchEvent:function (){throw new Error("Not implemented")}}),i(m,f,n),a.wrappers.Touch=c,a.wrappers. TouchEvent=f,a.wrappers.TouchList=d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,b){Object.defineProperty(a,b,h)}function c(){this.length=0 ,b(this,"length")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a.leng th;e>d;d++)b[d]=g(a[d]);return b.length=e,b}function e(a,b){a.prototype[b]=funct ion(){return d(f(this)[b].apply(f(this),arguments))}}var f=a.unsafeUnwrap,g=a.wr ap,h={enumerable:!1};c.prototype={item:function(a){return this[a]}},b(c.prototyp e,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(wind ow.ShadowDOMPolyfill),function(a){"use strict";a.wrapHTMLCollection=a.wrapNodeLi st,a.wrappers.HTMLCollection=a.wrappers.NodeList}(window.ShadowDOMPolyfill),func tion(a){"use strict";function b(a){A(a instanceof w)}function c(a){var b=new y;r eturn b[0]=a,b.length=1,b}function d(a,b,c){C(b,"childList",{removedNodes:c,prev iousSibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){C(a,"c hildList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment ){var f=h(a);P=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentN ode_=b;P=!1;for(var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d,f[g].next Sibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibling_=f[f.le ngth-1]),f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b, a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSiblin g_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e= a.parentNode;return e&&d(a,e,b),b}function h(a){for(var b=new y,c=0,d=a.firstChi ld;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){return a} function j(a,b){I(a,b),a.nodeIsInserted_()}function k(a,b){for(var c=D(b),d=0;d< a.length;d++)j(a[d],c)}function l(a){I(a,new z(a,null))}function m(a){for(var b= 0;b<a.length;b++)l(a[b])}function n(a,b){var c=a.nodeType===w.DOCUMENT_NODE?a:a. ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c){if(c.length){v ar d=b.ownerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.length;e++)a.adop tNodeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return K(b [0]);for(var d=K(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendC hild(K(b[e]));return d}function q(a){if(void 0!==a.firstChild_)for(var b=a.first Child_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibli ng_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadow Renderer()){for(var b=a.firstChild;b;){A(b.parentNode===a);var c=b.nextSibling,d =K(b),e=d.parentNode;e&&W.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNo de_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=K(a),g=f.firstChil d;g;)c=g.nextSibling,W.call(f,g),g=c}function s(a){var b=a.parentNode;return b&& b.invalidateShadowRenderer()}function t(a){for(var b,c=0;c<a.length;c++)b=a[c],b .parentNode.removeChild(b)}function u(a,b,c){var d;if(d=M(c?Q.call(c,J(a),!1):R. call(J(a),!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appendChild(u(e,!0, c));if(a instanceof O.HTMLTemplateElement)for(var f=d.content,e=a.content.firstC hild;e;e=e.nextSibling)f.appendChild(u(e,!0,c))}return d}function v(a,b){if(!b|| D(a)!==D(b))return!1;for(var c=b;c;c=c.parentNode)if(c===a)return!0;return!1}fun ction w(a){A(a instanceof S),x.call(this,a),this.parentNode_=void 0,this.firstCh ild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling _=void 0,this.treeScope_=void 0}var x=a.wrappers.EventTarget,y=a.wrappers.NodeLi st,z=a.TreeScope,A=a.assert,B=a.defineWrapGetter,C=a.enqueueMutation,D=a.getTree Scope,E=a.isWrapper,F=a.mixin,G=a.registerTransientObservers,H=a.registerWrapper ,I=a.setTreeScope,J=a.unsafeUnwrap,K=a.unwrap,L=a.unwrapIfNeeded,M=a.wrap,N=a.wr apIfNeeded,O=a.wrappers,P=!1,Q=document.importNode,R=window.Node.prototype.clone Node,S=window.Node,T=window.DocumentFragment,U=(S.prototype.appendChild,S.protot ype.compareDocumentPosition),V=S.prototype.insertBefore,W=S.prototype.removeChil d,X=S.prototype.replaceChild,Y=/Trident/.test(navigator.userAgent),Z=Y?function( a,b){try{W.call(a,b)}catch(c){if(!(a instanceof T))throw c}}:function(a,b){W.cal l(a,b)};w.prototype=Object.create(x.prototype),F(w.prototype,{appendChild:functi on(a){return this.insertBefore(a,null)},insertBefore:function(a,c){b(a);var d;c? E(c)?d=K(c):(d=c,c=M(d)):(c=null,d=null),c&&A(c.parentNode===this);var e,h=c?c.p reviousSibling:this.lastChild,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g (a):f(a,this,h,c),i)n(this,a),q(this),V.call(J(this),K(a),d);else{h||(this.first Child_=e[0]),c||(this.lastChild_=e[e.length-1],void 0===this.firstChild_&&(this. firstChild_=this.firstChild));var j=d?d.parentNode:J(this);j?V.call(j,p(this,e), d):o(this,e)}return C(this,"childList",{addedNodes:e,nextSibling:c,previousSibli ng:h}),k(e,this),a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break }if(!d)throw new Error("NotFoundError")}var f=K(a),g=a.nextSibling,h=a.previousS ibling;if(this.invalidateShadowRenderer()){var i=this.firstChild,j=this.lastChil d,k=f.parentNode;k&&Z(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h ),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibli ng_=a.parentNode_=void 0}else q(this),Z(J(this),f);return P||C(this,"childList", {removedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a},replaceChild:f unction(a,d){b(a);var e;if(E(d)?e=K(d):(e=d,d=M(e)),d.parentNode!==this)throw ne w Error("NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.inval idateShadowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,thi s,j,i)),m?(n(this,a),q(this),X.call(J(this),K(a),e)):(this.firstChild===d&&(this .firstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previou sSibling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&X.call(e.parentNode, p(this,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,p reviousSibling:j}),l(d),k(h,this),d},nodeIsInserted_:function(){for(var a=this.f irstChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return null!==this.firstChild},get parentNode(){return void 0!==this.parentNode_?this. parentNode_:M(J(this).parentNode)},get firstChild(){return void 0!==this.firstCh ild_?this.firstChild_:M(J(this).firstChild)},get lastChild(){return void 0!==thi s.lastChild_?this.lastChild_:M(J(this).lastChild)},get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:M(J(this).nextSibling)},get previousSib ling(){return void 0!==this.previousSibling_?this.previousSibling_:M(J(this).pre viousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType!==w.E LEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.firs tChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textContent);return a },set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRenderer() ){if(r(this),""!==a){var c=J(this).ownerDocument.createTextNode(a);this.appendCh ild(c)}}else q(this),J(this).textContent=a;var d=i(this.childNodes);C(this,"chil dList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNodes(){for(var a =new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},clo neNode:function(a){return u(this,a)},contains:function(a){return v(this,N(a))},c ompareDocumentPosition:function(a){return U.call(J(this),L(a))},normalize:functi on(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],b.node Type===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.removeNode( b):(a&&d.length&&(a.data+=e,t(d)),d=[],e="",a=null,b.childNodes.length&&b.normal ize());a&&d.length&&(a.data+=e,t(d))}}),B(w,"ownerDocument"),H(S,w,document.crea teDocumentFragment()),delete w.prototype.querySelector,delete w.prototype.queryS electorAll,w.prototype=F(Object.create(x.prototype),w.prototype),a.cloneNode=u,a .nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWereRemoved=m,a.ori ginalInsertBefore=V,a.originalRemoveChild=W,a.snapshotNodeList=i,a.wrappers.Node =w}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b,c,d,e){for(v ar f=null,g=null,h=0,i=b.length;i>h;h++)f=s(b[h]),!e&&(g=q(f).root)&&g instanceo f a.wrappers.ShadowRoot||(d[c++]=f);return c}function c(a){return String(a).repl ace(/\/deep\//g," ")}function d(a,b){for(var c,e=a.firstElementChild;e;){if(e.ma tches(b))return e;if(c=d(e,b))return c;e=e.nextElementSibling}return null}functi on e(a,b){return a.matches(b)}function f(a,b,c){var d=a.localName;return d===b|| d===c&&a.namespaceURI===D}function g(){return!0}function h(a,b,c){return a.local Name===c}function i(a,b){return a.namespaceURI===b}function j(a,b,c){return a.na mespaceURI===b&&a.localName===c}function k(a,b,c,d,e,f){for(var g=a.firstElement Child;g;)d(g,e,f)&&(c[b++]=g),b=k(g,b,c,d,e,f),g=g.nextElementSibling;return b}f unction l(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instanceof a.wrappers.S hadowRoot)return k(this,d,e,c,f,null);if(i instanceof B)h=w.call(i,f);else{if(!( i instanceof C))return k(this,d,e,c,f,null);h=v.call(i,f)}return b(h,d,e,g)}func tion m(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instanceof a.wrappers.Shad owRoot)return k(this,d,e,c,f,g);if(i instanceof B)h=y.call(i,f,g);else{if(!(i in stanceof C))return k(this,d,e,c,f,g);h=x.call(i,f,g)}return b(h,d,e,!1)}function n(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instanceof a.wrappers.ShadowRo ot)return k(this,d,e,c,f,g);if(i instanceof B)h=A.call(i,f,g);else{if(!(i instan ceof C))return k(this,d,e,c,f,g);h=z.call(i,f,g)}return b(h,d,e,!1)}var o=a.wrap pers.HTMLCollection,p=a.wrappers.NodeList,q=a.getTreeScope,r=a.unsafeUnwrap,s=a. wrap,t=document.querySelector,u=document.documentElement.querySelector,v=documen t.querySelectorAll,w=document.documentElement.querySelectorAll,x=document.getEle mentsByTagName,y=document.documentElement.getElementsByTagName,z=document.getEle mentsByTagNameNS,A=document.documentElement.getElementsByTagNameNS,B=window.Elem ent,C=window.HTMLDocument||window.Document,D="http://www.w3.org/1999/xhtml",E={q uerySelector:function(b){var e=c(b),f=e!==b;b=e;var g,h=r(this),i=q(this).root;i f(i instanceof a.wrappers.ShadowRoot)return d(this,b);if(h instanceof B)g=s(u.ca ll(h,b));else{if(!(h instanceof C))return d(this,b);g=s(t.call(h,b))}return g&&! f&&(i=q(g).root)&&i instanceof a.wrappers.ShadowRoot?d(this,b):g},querySelectorA ll:function(a){var b=c(a),d=b!==a;a=b;var f=new p;return f.length=l.call(this,e, 0,f,a,d),f}},F={getElementsByTagName:function(a){var b=new o,c="*"===a?g:f;retur n b.length=m.call(this,c,0,b,a,a.toLowerCase()),b},getElementsByClassName:functi on(a){return this.querySelectorAll("."+a)},getElementsByTagNameNS:function(a,b){ var c=new o,d=null;return d="*"===a?"*"===b?g:h:"*"===b?i:j,c.length=n.call(this ,d,0,c,a||null,b),c}};a.GetElementsByInterface=F,a.SelectorsInterface=E}(window. ShadowDOMPolyfill),function(a){"use strict";function b(a){for(;a&&a.nodeType!==N ode.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(;a&&a.nodeType!==No de.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers.NodeList,e={get f irstElementChild(){return b(this.firstChild)},get lastElementChild(){return c(th is.lastChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b;b= b.nextElementSibling)a++;return a},get children(){for(var a=new d,b=0,c=this.fir stElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.length=b,a},remove:fun ction(){var a=this.parentNode;a&&a.removeChild(this)}},f={get nextElementSibling (){return b(this.nextSibling)},get previousElementSibling(){return c(this.previo usSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(window.ShadowDOMPol yfill),function(a){"use strict";function b(a){d.call(this,a)}var c=a.ChildNodeIn terface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.registerWrapper,h=a. unsafeUnwrap,i=window.CharacterData;b.prototype=Object.create(d.prototype),f(b.p rototype,{get textContent(){return this.data},set textContent(a){this.data=a},ge t data(){return h(this).data},set data(a){var b=h(this).data;e(this,"characterDa ta",{oldValue:b}),h(this).data=a}}),f(b.prototype,c),g(i,b,document.createTextNo de("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a){"use s trict";function b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wrappers. CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window.Text;c. prototype=Object.create(d.prototype),e(c.prototype,{splitText:function(a){a=b(a) ;var c=this.data;if(a>c.length)throw new Error("IndexSizeError");var d=c.slice(0 ,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextNode(e);return t his.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g,c,docu ment.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),function(a ){"use strict";function b(b){a.invalidateRendererBasedOnAttribute(b,"class")}fun ction c(a,b){d(a,this),this.ownerElement_=b}var d=a.setWrapper,e=a.unsafeUnwrap; c.prototype={constructor:c,get length(){return e(this).length},item:function(a){ return e(this).item(a)},contains:function(a){return e(this).contains(a)},add:fun ction(){e(this).add.apply(e(this),arguments),b(this.ownerElement_)},remove:funct ion(){e(this).remove.apply(e(this),arguments),b(this.ownerElement_)},toggle:func tion(){var a=e(this).toggle.apply(e(this),arguments);return b(this.ownerElement_ ),a},toString:function(){return e(this).toString()}},a.wrappers.DOMTokenList=c}( window.ShadowDOMPolyfill),function(a){"use strict";function b(b,c){var d=b.paren tNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.dependsOnAttribute(c)& &e.invalidate()}}function c(a,b,c){k(a,"attributes",{name:b,namespace:null,oldVa lue:c})}function d(a){g.call(this,a)}var e=a.ChildNodeInterface,f=a.GetElementsB yInterface,g=a.wrappers.Node,h=a.wrappers.DOMTokenList,i=a.ParentNodeInterface,j =a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueueMutation),l=a.mixin,m= (a.oneOf,a.registerWrapper),n=a.unsafeUnwrap,o=a.wrappers,p=window.Element,q=["m atches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter (function(a){return p.prototype[a]}),r=q[0],s=p.prototype[r],t=new WeakMap;d.pro totype=Object.create(g.prototype),l(d.prototype,{createShadowRoot:function(){var b=new o.ShadowRoot(this);n(this).polymerShadowRoot_=b;var c=a.getRendererForHos t(this);return c.invalidate(),b},get shadowRoot(){return n(this).polymerShadowRo ot_||null},setAttribute:function(a,d){var e=n(this).getAttribute(a);n(this).setA ttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=n(this).g etAttribute(a);n(this).removeAttribute(a),c(this,a,d),b(this,a)},matches:functio n(a){return s.call(n(this),a)},get classList(){var a=t.get(this);return a||t.set (this,a=new h(n(this).classList,this)),a},get className(){return n(this).classNa me},set className(a){this.setAttribute("class",a)},get id(){return n(this).id},s et id(a){this.setAttribute("id",a)}}),q.forEach(function(a){"matches"!==a&&(d.pr ototype[a]=function(a){return this.matches(a)})}),p.prototype.webkitCreateShadow Root&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot),l(d.prot otype,e),l(d.prototype,f),l(d.prototype,i),l(d.prototype,j),m(p,d,document.creat eElementNS(null,"x")),a.invalidateRendererBasedOnAttribute=b,a.matchesNames=q,a. wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";c ase'"':return"&quot;";case"\xa0":return"&nbsp;"}}function c(a){return a.replace( A,b)}function d(a){return a.replace(B,b)}function e(a){for(var b={},c=0;c<a.leng th;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeType){case Node.ELEMENT_ NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attributes,j=0;e=i[j];j++)h +=" "+e.name+'="'+c(e.value)+'"';return h+=">",C[f]?h:h+g(a)+"</"+f+">";case Nod e.TEXT_NODE:var k=a.data;return b&&D[b.localName]?k:d(k);case Node.COMMENT_NODE: return"<!--"+a.data+"-->";default:throw console.error(a),new Error("not implemen ted")}}function g(a){a instanceof z.HTMLTemplateElement&&(a=a.content);for(var b ="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}function h(a,b,c){var d= c||"div";a.textContent="";var e=x(a.ownerDocument.createElement(d));e.innerHTML= b;for(var f;f=e.firstChild;)a.appendChild(y(f))}function i(a){o.call(this,a)}fun ction j(a,b){var c=x(a.cloneNode(!1));c.innerHTML=b;for(var d,e=x(document.creat eDocumentFragment());d=c.firstChild;)e.appendChild(d);return y(e)}function k(b){ return function(){return a.renderAllPending(),w(this)[b]}}function l(a){p(i,a,k( a))}function m(b){Object.defineProperty(i.prototype,b,{get:k(b),set:function(c){ a.renderAllPending(),w(this)[b]=c},configurable:!0,enumerable:!0})}function n(b) {Object.defineProperty(i.prototype,b,{value:function(){return a.renderAllPending (),w(this)[b].apply(w(this),arguments)},configurable:!0,enumerable:!0})}var o=a. wrappers.Element,p=a.defineGetter,q=a.enqueueMutation,r=a.mixin,s=a.nodesWereAdd ed,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.snapshotNodeList,w=a.unsafeUnwra p,x=a.unwrap,y=a.wrap,z=a.wrappers,A=/[&\u00A0"]/g,B=/[&\u00A0<>]/g,C=e(["area", "base","br","col","command","embed","hr","img","input","keygen","link","meta","p aram","source","track","wbr"]),D=e(["style","script","xmp","iframe","noembed","n oframes","plaintext","noscript"]),E=/MSIE/.test(navigator.userAgent),F=window.HT MLElement,G=window.HTMLTemplateElement;i.prototype=Object.create(o.prototype),r( i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(E&&D[this.local Name])return void(this.textContent=a);var b=v(this.childNodes);this.invalidateSh adowRenderer()?this instanceof z.HTMLTemplateElement?h(this.content,a):h(this,a, this.tagName):!G&&this instanceof z.HTMLTemplateElement?h(this.content,a):w(this ).innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedNodes:c,removedN odes:b}),t(b),s(c,this)},get outerHTML(){return f(this,this.parentNode)},set out erHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=j(b,a); b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(String( a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afterend ":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.firs tChild;break;case"beforeend":c=this,d=null;break;default:return}var e=j(c,b);c.i nsertBefore(e,d)},get hidden(){return this.hasAttribute("hidden")},set hidden(a) {a?this.setAttribute("hidden",""):this.removeAttribute("hidden")}}),["clientHeig ht","clientLeft","clientTop","clientWidth","offsetHeight","offsetLeft","offsetTo p","offsetWidth","scrollHeight","scrollWidth"].forEach(l),["scrollLeft","scrollT op"].forEach(m),["getBoundingClientRect","getClientRects","scrollIntoView"].forE ach(n),u(F,i,document.createElement("b")),a.wrappers.HTMLElement=i,a.getInnerHTM L=g,a.setInnerHTML=h}(window.ShadowDOMPolyfill),function(a){"use strict";functio n b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper ,f=a.unsafeUnwrap,g=a.wrap,h=window.HTMLCanvasElement;b.prototype=Object.create( c.prototype),d(b.prototype,{getContext:function(){var a=f(this).getContext.apply (f(this),arguments);return a&&g(a)}}),e(h,b,document.createElement("canvas")),a. wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),function(a){"use strict" ;function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registe rWrapper,f=window.HTMLContentElement;b.prototype=Object.create(c.prototype),d(b. prototype,{constructor:b,get select(){return this.getAttribute("select")},set se lect(a){this.setAttribute("select",a)},setAttribute:function(a,b){c.prototype.se tAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.invalidateSha dowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.ShadowDOMPo lyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.H TMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=win dow.HTMLFormElement;b.prototype=Object.create(c.prototype),d(b.prototype,{get el ements(){return f(g(this).elements)}}),e(h,b,document.createElement("form")),a.w rappers.HTMLFormElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";fu nction b(a){d.call(this,a)}function c(a,b){if(!(this instanceof c))throw new Typ eError("DOM object constructor cannot be called as a function.");var e=f(documen t.createElement("img"));d.call(this,e),g(e,this),void 0!==a&&(e.width=a),void 0! ==b&&(e.height=b)}var d=a.wrappers.HTMLElement,e=a.registerWrapper,f=a.unwrap,g= a.rewrap,h=window.HTMLImageElement;b.prototype=Object.create(d.prototype),e(h,b, document.createElement("img")),c.prototype=b.prototype,a.wrappers.HTMLImageEleme nt=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=(a.mixin,a.wrappers.Node List,a.registerWrapper),e=window.HTMLShadowElement;b.prototype=Object.create(c.p rototype),b.prototype.constructor=b,e&&d(e,b),a.wrappers.HTMLShadowElement=b}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a.defaultView )return a;var b=l.get(a);if(!b){for(b=a.implementation.createHTMLDocument("");b. lastChild;)b.removeChild(b.lastChild);l.set(a,b)}return b}function c(a){for(var c,d=b(a.ownerDocument),e=i(d.createDocumentFragment());c=a.firstChild;)e.appendC hild(c);return e}function d(a){if(e.call(this,a),!m){var b=c(a);k.set(this,j(b)) }}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.unsafeUnwrap,i= a.unwrap,j=a.wrap,k=new WeakMap,l=new WeakMap,m=window.HTMLTemplateElement;d.pro totype=Object.create(e.prototype),f(d.prototype,{constructor:d,get content(){ret urn m?j(h(this).content):k.get(this)}}),m&&g(m,d),a.wrappers.HTMLTemplateElement =d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this ,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;e &&(b.prototype=Object.create(c.prototype),d(e,b,document.createElement("audio")) ,a.wrappers.HTMLMediaElement=b)}(window.ShadowDOMPolyfill),function(a){"use stri ct";function b(a){d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM object constructor cannot be called as a function.");var b=f(doc ument.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("preload", "auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e= a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;h&&(b.prototyp e=Object.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype= b.prototype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c)}(window.ShadowDOMP olyfill),function(a){"use strict";function b(a){return a.replace(/\s+/g," ").tri m()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))thr ow new TypeError("DOM object constructor cannot be called as a function.");var g =i(document.createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.tex t=a),void 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribute("selected","") ,g.selected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h= a.rewrap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototype=Object.creat e(e.prototype),f(c.prototype,{get text(){return b(this.textContent)},set text(a) {this.textContent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,docum ent.createElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElemen t=c,a.wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrap per,f=a.unwrap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Object.create(c.p rototype),d(b.prototype,{add:function(a,b){"object"==typeof b&&(b=f(b)),f(this). add(f(a),b)},remove:function(a){return void 0===a?void c.prototype.remove.call(t his):("object"==typeof a&&(a=f(a)),void f(this).remove(a))},get form(){return g( f(this).form)}}),e(h,b,document.createElement("select")),a.wrappers.HTMLSelectEl ement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call (this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g =a.wrap,h=a.wrapHTMLCollection,i=window.HTMLTableElement;b.prototype=Object.crea te(c.prototype),d(b.prototype,{get caption(){return g(f(this).caption)},createCa ption:function(){return g(f(this).createCaption())},get tHead(){return g(f(this) .tHead)},createTHead:function(){return g(f(this).createTHead())},createTFoot:fun ction(){return g(f(this).createTFoot())},get tFoot(){return g(f(this).tFoot)},ge t tBodies(){return h(f(this).tBodies)},createTBody:function(){return g(f(this).c reateTBody())},get rows(){return h(f(this).rows)},insertRow:function(a){return g (f(this).insertRow(a))}}),e(i,b,document.createElement("table")),a.wrappers.HTML TableElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.w rapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionElement;b.prototy pe=Object.create(c.prototype),d(b.prototype,{constructor:b,get rows(){return f(g (this).rows)},insertRow:function(a){return h(g(this).insertRow(a))}}),e(i,b,docu ment.createElement("thead")),a.wrappers.HTMLTableSectionElement=b}(window.Shadow DOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrapp ers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g=a.unwrap, h=a.wrap,i=window.HTMLTableRowElement;b.prototype=Object.create(c.prototype),d(b .prototype,{get cells(){return f(g(this).cells)},insertCell:function(a){return h (g(this).insertCell(a))}}),e(i,b,document.createElement("tr")),a.wrappers.HTMLTa bleRowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a ){switch(a.localName){case"content":return new c(a);case"shadow":return new e(a) ;case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentEleme nt,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemp lateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototyp e=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.Shad owDOMPolyfill),function(a){"use strict";var b=a.wrappers.Element,c=a.wrappers.HT MLElement,d=a.registerObject,e="http://www.w3.org/2000/svg",f=document.createEle mentNS(e,"title"),g=d(f),h=Object.getPrototypeOf(g.prototype).constructor;if(!(" classList"in f)){var i=Object.getOwnPropertyDescriptor(b.prototype,"classList"); Object.defineProperty(c.prototype,"classList",i),delete b.prototype.classList}a. wrappers.SVGElement=h}(window.ShadowDOMPolyfill),function(a){"use strict";functi on b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwrap,f=a.wrap,g=w indow.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(document.createElementNS( h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Object.getPrototyp eOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"instanceRoot"in j &&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot)},get animated InstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,b,j),a.wrappers.SVG UseElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c .call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.registerWrapper,f=a.uns afeUnwrap,g=a.wrap,h=window.SVGElementInstance;h&&(b.prototype=Object.create(c.p rototype),d(b.prototype,{get correspondingElement(){return g(f(this).correspondi ngElement) 13 return function(c){var d=bb.get(this);d||(d=Object.create(null),bb.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 K,L=a.forwardMethodsToWrapper,M=a.getTreeScope,N=a.mi xin,O=a.registerWrapper,P=a.setWrapper,Q=a.unsafeUnwrap,R=a.unwrap,S=a.wrap,T=a. wrappers,U=(new WeakMap,new WeakMap),V=new WeakMap,W=new WeakMap,X=new WeakMap,Y =new WeakMap,Z=new WeakMap,$=new WeakMap,_=new WeakMap,ab=new WeakMap,bb=new Wea kMap,cb=new WeakMap,db=0,eb=1,fb=2,gb=3;t.prototype={equals:function(a){return t his.handler===a.handler&&this.type===a.type&&this.capture===a.capture},get remov ed(){return null===this.handler},remove:function(){this.handler=null}};var hb=wi ndow.Event;hb.prototype.polymerBlackList_={returnValue:!0,keyLocation:!0},u.prot otype={get target(){return X.get(this)},get currentTarget(){return Y.get(this)}, get eventPhase(){return $.get(this)},get path(){var a=cb.get(this);return a?a.sl ice():[]},stopPropagation:function(){_.set(this,!0)},stopImmediatePropagation:fu nction(){_.set(this,!0),ab.set(this,!0)}},O(hb,u,document.createEvent("Event")); var ib=w("UIEvent",u),jb=w("CustomEvent",u),kb={get relatedTarget(){var a=Z.get( this);return void 0!==a?a:S(R(this).relatedTarget)}},lb=N({initMouseEvent:x("ini tMouseEvent",14)},kb),mb=N({initFocusEvent:x("initFocusEvent",5)},kb),nb=w("Mous eEvent",ib,lb),ob=w("FocusEvent",ib,mb),pb=Object.create(null),qb=function(){try {new window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!qb){var rb=fun ction(a,b,c){if(c){var d=pb[c];b=N(N({},d),b)}pb[a]=b};rb("Event",{bubbles:!1,ca ncelable:!1}),rb("CustomEvent",{detail:null},"Event"),rb("UIEvent",{view:null,de tail:0},"Event"),rb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY:0,ctrlKe y:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIEvent"),rb ("FocusEvent",{relatedTarget:null},"UIEvent")}var sb=window.BeforeUnloadEvent;z. prototype=Object.create(u.prototype),N(z.prototype,{get returnValue(){return Q(t his).returnValue},set returnValue(a){Q(this).returnValue=a}}),sb&&O(sb,z);var tb =window.EventTarget,ub=["addEventListener","removeEventListener","dispatchEvent" ];[Node,Window].forEach(function(a){var b=a.prototype;ub.forEach(function(a){Obj ect.defineProperty(b,a+"_",{value:b[a]})})}),C.prototype={addEventListener:funct ion(a,b,c){if(A(b)&&!B(a)){var d=new t(a,b,c),e=U.get(this);if(e){for(var f=0;f< e.length;f++)if(d.equals(e[f]))return}else e=[],e.depth=0,U.set(this,e);e.push(d );var g=D(this);g.addEventListener_(a,m,!0)}},removeEventListener:function(a,b,c ){c=Boolean(c);var d=U.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=D(this);h.removeEventListener_(a,m,!0)}}},dispatchEvent:function(b){ var c=R(b),d=c.type;V.set(c,!1),a.renderAllPending();var e;F(this,d)||(e=functio n(){},this.addEventListener(d,e,!0));try{return R(this).dispatchEvent_(c)}finall y{e&&this.removeEventListener(d,e,!0)}}},tb&&O(tb,C);var vb=document.elementFrom Point;a.elementFromPoint=H,a.getEventHandlerGetter=I,a.getEventHandlerSetter=J,a .wrapEventTargetMethods=G,a.wrappers.BeforeUnloadEvent=z,a.wrappers.CustomEvent= jb,a.wrappers.Event=u,a.wrappers.EventTarget=C,a.wrappers.FocusEvent=ob,a.wrappe rs.MouseEvent=nb,a.wrappers.UIEvent=ib}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a,b){Object.defineProperty(a,b,p)}function c(a){j(a,this)} function d(){this.length=0,b(this,"length")}function e(a){for(var b=new d,e=0;e< a.length;e++)b[e]=new c(a[e]);return b.length=e,b}function f(a){g.call(this,a)}v ar g=a.wrappers.UIEvent,h=a.mixin,i=a.registerWrapper,j=a.setWrapper,k=a.unsafeU nwrap,l=a.wrap,m=window.TouchEvent;if(m){var n;try{n=document.createEvent("Touch Event")}catch(o){return}var p={enumerable:!1};c.prototype={get target(){return l (k(this).target)}};var q={configurable:!0,enumerable:!0,get:null};["clientX","cl ientY","screenX","screenY","pageX","pageY","identifier","webkitRadiusX","webkitR adiusY","webkitRotationAngle","webkitForce"].forEach(function(a){q.get=function( ){return k(this)[a]},Object.defineProperty(c.prototype,a,q)}),d.prototype={item: function(a){return this[a]}},f.prototype=Object.create(g.prototype),h(f.prototyp e,{get touches(){return e(k(this).touches)},get targetTouches(){return e(k(this) .targetTouches)},get changedTouches(){return e(k(this).changedTouches)},initTouc hEvent:function(){throw new Error("Not implemented")}}),i(m,f,n),a.wrappers.Touc h=c,a.wrappers.TouchEvent=f,a.wrappers.TouchList=d}}(window.ShadowDOMPolyfill),f unction(a){"use strict";function b(a,b){Object.defineProperty(a,b,h)}function c( ){this.length=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new c,d=0,e=a.length;e>d;d++)b[d]=g(a[d]);return b.length=e,b}function e(a,b){a.pro totype[b]=function(){return d(f(this)[b].apply(f(this),arguments))}}var f=a.unsa feUnwrap,g=a.wrap,h={enumerable:!1};c.prototype={item:function(a){return this[a] }},b(c.prototype,"item"),a.wrappers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapN odeList=d}(window.ShadowDOMPolyfill),function(a){"use strict";a.wrapHTMLCollecti on=a.wrapNodeList,a.wrappers.HTMLCollection=a.wrappers.NodeList}(window.ShadowDO MPolyfill),function(a){"use strict";function b(a){A(a instanceof w)}function c(a ){var b=new y;return b[0]=a,b.length=1,b}function d(a,b,c){C(b,"childList",{remo vedNodes:c,previousSibling:a.previousSibling,nextSibling:a.nextSibling})}functio n e(a,b){C(a,"childList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof D ocumentFragment){var f=h(a);P=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g ]),f[g].parentNode_=b;P=!1;for(var g=0;g<f.length;g++)f[g].previousSibling_=f[g- 1]||d,f[g].nextSibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previous Sibling_=f[f.length-1]),f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a .parentNode_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e .previousSibling_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a );var b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a){for(var b=new y,c =0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a){return a}function j(a,b){I(a,b),a.nodeIsInserted_()}function k(a,b){for(va r c=D(b),d=0;d<a.length;d++)j(a[d],c)}function l(a){I(a,new z(a,null))}function m(a){for(var b=0;b<a.length;b++)l(a[b])}function n(a,b){var c=a.nodeType===w.DOC UMENT_NODE?a:a.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c) {if(c.length){var d=b.ownerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.le ngth;e++)a.adoptNodeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1 ===c)return K(b[0]);for(var d=K(a.ownerDocument.createDocumentFragment()),e=0;c> e;e++)d.appendChild(K(b[e]));return d}function q(a){if(void 0!==a.firstChild_)fo r(var b=a.firstChild_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibli ng_=c.nextSibling_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.i nvalidateShadowRenderer()){for(var b=a.firstChild;b;){A(b.parentNode===a);var c= b.nextSibling,d=K(b),e=d.parentNode;e&&W.call(e,d),b.previousSibling_=b.nextSibl ing_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=K(a ),g=f.firstChild;g;)c=g.nextSibling,W.call(f,g),g=c}function s(a){var b=a.parent Node;return b&&b.invalidateShadowRenderer()}function t(a){for(var b,c=0;c<a.leng th;c++)b=a[c],b.parentNode.removeChild(b)}function u(a,b,c){var d;if(d=M(c?Q.cal l(c,J(a),!1):R.call(J(a),!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d.appe ndChild(u(e,!0,c));if(a instanceof O.HTMLTemplateElement)for(var f=d.content,e=a .content.firstChild;e;e=e.nextSibling)f.appendChild(u(e,!0,c))}return d}function v(a,b){if(!b||D(a)!==D(b))return!1;for(var c=b;c;c=c.parentNode)if(c===a)return !0;return!1}function w(a){A(a instanceof S),x.call(this,a),this.parentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this. previousSibling_=void 0,this.treeScope_=void 0}var x=a.wrappers.EventTarget,y=a. wrappers.NodeList,z=a.TreeScope,A=a.assert,B=a.defineWrapGetter,C=a.enqueueMutat ion,D=a.getTreeScope,E=a.isWrapper,F=a.mixin,G=a.registerTransientObservers,H=a. registerWrapper,I=a.setTreeScope,J=a.unsafeUnwrap,K=a.unwrap,L=a.unwrapIfNeeded, M=a.wrap,N=a.wrapIfNeeded,O=a.wrappers,P=!1,Q=document.importNode,R=window.Node. prototype.cloneNode,S=window.Node,T=window.DocumentFragment,U=(S.prototype.appen dChild,S.prototype.compareDocumentPosition),V=S.prototype.insertBefore,W=S.proto type.removeChild,X=S.prototype.replaceChild,Y=/Trident/.test(navigator.userAgent ),Z=Y?function(a,b){try{W.call(a,b)}catch(c){if(!(a instanceof T))throw c}}:func tion(a,b){W.call(a,b)};w.prototype=Object.create(x.prototype),F(w.prototype,{app endChild:function(a){return this.insertBefore(a,null)},insertBefore:function(a,c ){b(a);var d;c?E(c)?d=K(c):(d=c,c=M(d)):(c=null,d=null),c&&A(c.parentNode===this );var e,h=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRenderer()& &!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a),q(this),V.call(J(this),K(a),d);else {h||(this.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1],void 0===this.firs tChild_&&(this.firstChild_=this.firstChild));var j=d?d.parentNode:J(this);j?V.ca ll(j,p(this,e),d):o(this,e)}return C(this,"childList",{addedNodes:e,nextSibling: c,previousSibling:h}),k(e,this),a},removeChild:function(a){if(b(a),a.parentNode! ==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nextSibling)if(e= ==a){d=!0;break}if(!d)throw new Error("NotFoundError")}var f=K(a),g=a.nextSiblin g,h=a.previousSibling;if(this.invalidateShadowRenderer()){var i=this.firstChild, j=this.lastChild,k=f.parentNode;k&&Z(k,f),i===a&&(this.firstChild_=g),j===a&&(th is.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a.previousSibli ng_=a.nextSibling_=a.parentNode_=void 0}else q(this),Z(J(this),f);return P||C(th is,"childList",{removedNodes:c(a),nextSibling:g,previousSibling:h}),G(this,a),a} ,replaceChild:function(a,d){b(a);var e;if(E(d)?e=K(d):(e=d,d=M(e)),d.parentNode! ==this)throw new Error("NotFoundError");var h,i=d.nextSibling,j=d.previousSiblin g,m=!this.invalidateShadowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSib ling),h=f(a,this,j,i)),m?(n(this,a),q(this),X.call(J(this),K(a),e)):(this.firstC hild===d&&(this.firstChild_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.lengt h-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&X.cal l(e.parentNode,p(this,h),e)),C(this,"childList",{addedNodes:h,removedNodes:c(d), nextSibling:i,previousSibling:j}),l(d),k(h,this),d},nodeIsInserted_:function(){f or(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:fu nction(){return null!==this.firstChild},get parentNode(){return void 0!==this.pa rentNode_?this.parentNode_:M(J(this).parentNode)},get firstChild(){return void 0 !==this.firstChild_?this.firstChild_:M(J(this).firstChild)},get lastChild(){retu rn void 0!==this.lastChild_?this.lastChild_:M(J(this).lastChild)},get nextSiblin g(){return void 0!==this.nextSibling_?this.nextSibling_:M(J(this).nextSibling)}, get previousSibling(){return void 0!==this.previousSibling_?this.previousSibling _:M(J(this).previousSibling)},get parentElement(){for(var a=this.parentNode;a&&a .nodeType!==w.ELEMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a ="",b=this.firstChild;b;b=b.nextSibling)b.nodeType!=w.COMMENT_NODE&&(a+=b.textCo ntent);return a},set textContent(a){var b=i(this.childNodes);if(this.invalidateS hadowRenderer()){if(r(this),""!==a){var c=J(this).ownerDocument.createTextNode(a );this.appendChild(c)}}else q(this),J(this).textContent=a;var d=i(this.childNode s);C(this,"childList",{addedNodes:d,removedNodes:b}),m(b),k(d,this)},get childNo des(){for(var a=new y,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a. length=b,a},cloneNode:function(a){return u(this,a)},contains:function(a){return v(this,N(a))},compareDocumentPosition:function(a){return U.call(J(this),L(a))},n ormalize:function(){for(var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f+ +)b=c[f],b.nodeType===w.TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:t his.removeNode(b):(a&&d.length&&(a.data+=e,t(d)),d=[],e="",a=null,b.childNodes.l ength&&b.normalize());a&&d.length&&(a.data+=e,t(d))}}),B(w,"ownerDocument"),H(S, w,document.createDocumentFragment()),delete w.prototype.querySelector,delete w.p rototype.querySelectorAll,w.prototype=F(Object.create(x.prototype),w.prototype), a.cloneNode=u,a.nodeWasAdded=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWere Removed=m,a.originalInsertBefore=V,a.originalRemoveChild=W,a.snapshotNodeList=i, a.wrappers.Node=w}(window.ShadowDOMPolyfill),function(a){"use strict";function b (b,c,d,e){for(var f=null,g=null,h=0,i=b.length;i>h;h++)f=s(b[h]),!e&&(g=q(f).roo t)&&g instanceof a.wrappers.ShadowRoot||(d[c++]=f);return c}function c(a){return String(a).replace(/\/deep\//g," ")}function d(a,b){for(var c,e=a.firstElementCh ild;e;){if(e.matches(b))return e;if(c=d(e,b))return c;e=e.nextElementSibling}ret urn null}function e(a,b){return a.matches(b)}function f(a,b,c){var d=a.localName ;return d===b||d===c&&a.namespaceURI===D}function g(){return!0}function h(a,b,c) {return a.localName===c}function i(a,b){return a.namespaceURI===b}function j(a,b ,c){return a.namespaceURI===b&&a.localName===c}function k(a,b,c,d,e,f){for(var g =a.firstElementChild;g;)d(g,e,f)&&(c[b++]=g),b=k(g,b,c,d,e,f),g=g.nextElementSib ling;return b}function l(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instance of a.wrappers.ShadowRoot)return k(this,d,e,c,f,null);if(i instanceof B)h=w.call( i,f);else{if(!(i instanceof C))return k(this,d,e,c,f,null);h=v.call(i,f)}return b(h,d,e,g)}function m(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instanceof a.wrappers.ShadowRoot)return k(this,d,e,c,f,g);if(i instanceof B)h=y.call(i,f,g) ;else{if(!(i instanceof C))return k(this,d,e,c,f,g);h=x.call(i,f,g)}return b(h,d ,e,!1)}function n(c,d,e,f,g){var h,i=r(this),j=q(this).root;if(j instanceof a.wr appers.ShadowRoot)return k(this,d,e,c,f,g);if(i instanceof B)h=A.call(i,f,g);els e{if(!(i instanceof C))return k(this,d,e,c,f,g);h=z.call(i,f,g)}return b(h,d,e,! 1)}var o=a.wrappers.HTMLCollection,p=a.wrappers.NodeList,q=a.getTreeScope,r=a.un safeUnwrap,s=a.wrap,t=document.querySelector,u=document.documentElement.querySel ector,v=document.querySelectorAll,w=document.documentElement.querySelectorAll,x= document.getElementsByTagName,y=document.documentElement.getElementsByTagName,z= document.getElementsByTagNameNS,A=document.documentElement.getElementsByTagNameN S,B=window.Element,C=window.HTMLDocument||window.Document,D="http://www.w3.org/1 999/xhtml",E={querySelector:function(b){var e=c(b),f=e!==b;b=e;var g,h=r(this),i =q(this).root;if(i instanceof a.wrappers.ShadowRoot)return d(this,b);if(h instan ceof B)g=s(u.call(h,b));else{if(!(h instanceof C))return d(this,b);g=s(t.call(h, b))}return g&&!f&&(i=q(g).root)&&i instanceof a.wrappers.ShadowRoot?d(this,b):g} ,querySelectorAll:function(a){var b=c(a),d=b!==a;a=b;var f=new p;return f.length =l.call(this,e,0,f,a,d),f}},F={getElementsByTagName:function(a){var b=new o,c="* "===a?g:f;return b.length=m.call(this,c,0,b,a,a.toLowerCase()),b},getElementsByC lassName:function(a){return this.querySelectorAll("."+a)},getElementsByTagNameNS :function(a,b){var c=new o,d=null;return d="*"===a?"*"===b?g:h:"*"===b?i:j,c.len gth=n.call(this,d,0,c,a||null,b),c}};a.GetElementsByInterface=F,a.SelectorsInter face=E}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){for(;a& &a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(;a&& a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers.No deList,e={get firstElementChild(){return b(this.firstChild)},get lastElementChil d(){return c(this.lastChild)},get childElementCount(){for(var a=0,b=this.firstEl ementChild;b;b=b.nextElementSibling)a++;return a},get children(){for(var a=new d ,b=0,c=this.firstElementChild;c;c=c.nextElementSibling)a[b++]=c;return a.length= b,a},remove:function(){var a=this.parentNode;a&&a.removeChild(this)}},f={get nex tElementSibling(){return b(this.nextSibling)},get previousElementSibling(){retur n c(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(wind ow.ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.regis terWrapper,h=a.unsafeUnwrap,i=window.CharacterData;b.prototype=Object.create(d.p rototype),f(b.prototype,{get textContent(){return this.data},set textContent(a){ this.data=a},get data(){return h(this).data},set data(a){var b=h(this).data;e(th is,"characterData",{oldValue:b}),h(this).data=a}}),f(b.prototype,c),g(i,b,docume nt.createTextNode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),fun ction(a){"use strict";function b(a){return a>>>0}function c(a){d.call(this,a)}va r d=a.wrappers.CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g =window.Text;c.prototype=Object.create(d.prototype),e(c.prototype,{splitText:fun ction(a){a=b(a);var c=this.data;if(a>c.length)throw new Error("IndexSizeError"); var d=c.slice(0,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextN ode(e);return this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling), f}}),f(g,c,document.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyf ill),function(a){"use strict";function b(b){a.invalidateRendererBasedOnAttribute (b,"class")}function c(a,b){d(a,this),this.ownerElement_=b}var d=a.setWrapper,e= a.unsafeUnwrap;c.prototype={constructor:c,get length(){return e(this).length},it em:function(a){return e(this).item(a)},contains:function(a){return e(this).conta ins(a)},add:function(){e(this).add.apply(e(this),arguments),b(this.ownerElement_ )},remove:function(){e(this).remove.apply(e(this),arguments),b(this.ownerElement _)},toggle:function(){var a=e(this).toggle.apply(e(this),arguments);return b(thi s.ownerElement_),a},toString:function(){return e(this).toString()}},a.wrappers.D OMTokenList=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b,c ){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.depends OnAttribute(c)&&e.invalidate()}}function c(a,b,c){k(a,"attributes",{name:b,names pace:null,oldValue:c})}function d(a){g.call(this,a)}var e=a.ChildNodeInterface,f =a.GetElementsByInterface,g=a.wrappers.Node,h=a.wrappers.DOMTokenList,i=a.Parent NodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqueueMutatio n),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.unsafeUnwrap,o=a.wrappers,p=windo w.Element,q=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSe lector"].filter(function(a){return p.prototype[a]}),r=q[0],s=p.prototype[r],t=ne w WeakMap;d.prototype=Object.create(g.prototype),l(d.prototype,{createShadowRoot :function(){var b=new o.ShadowRoot(this);n(this).polymerShadowRoot_=b;var c=a.ge tRendererForHost(this);return c.invalidate(),b},get shadowRoot(){return n(this). polymerShadowRoot_||null},setAttribute:function(a,d){var e=n(this).getAttribute( a);n(this).setAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){ var d=n(this).getAttribute(a);n(this).removeAttribute(a),c(this,a,d),b(this,a)}, matches:function(a){return s.call(n(this),a)},get classList(){var a=t.get(this); return a||t.set(this,a=new h(n(this).classList,this)),a},get className(){return n(this).className},set className(a){this.setAttribute("class",a)},get id(){retur n n(this).id},set id(a){this.setAttribute("id",a)}}),q.forEach(function(a){"matc hes"!==a&&(d.prototype[a]=function(a){return this.matches(a)})}),p.prototype.web kitCreateShadowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShado wRoot),l(d.prototype,e),l(d.prototype,f),l(d.prototype,i),l(d.prototype,j),m(p,d ,document.createElementNS(null,"x")),a.invalidateRendererBasedOnAttribute=b,a.ma tchesNames=q,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"use st rict";function b(a){switch(a){case"&":return"&amp;";case"<":return"&lt;";case">" :return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}}function c(a){re turn a.replace(A,b)}function d(a){return a.replace(B,b)}function e(a){for(var b= {},c=0;c<a.length;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeType){cas e Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attributes,j =0;e=i[j];j++)h+=" "+e.name+'="'+c(e.value)+'"';return h+=">",C[f]?h:h+g(a)+"</" +f+">";case Node.TEXT_NODE:var k=a.data;return b&&D[b.localName]?k:d(k);case Nod e.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.error(a),new Erro r("not implemented")}}function g(a){a instanceof z.HTMLTemplateElement&&(a=a.con tent);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}function h(a,b,c){var d=c||"div";a.textContent="";var e=x(a.ownerDocument.createElement(d ));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(y(f))}function i(a){o.c all(this,a)}function j(a,b){var c=x(a.cloneNode(!1));c.innerHTML=b;for(var d,e=x (document.createDocumentFragment());d=c.firstChild;)e.appendChild(d);return y(e) }function k(b){return function(){return a.renderAllPending(),w(this)[b]}}functio n l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{get:k(b),s et:function(c){a.renderAllPending(),w(this)[b]=c},configurable:!0,enumerable:!0} )}function n(b){Object.defineProperty(i.prototype,b,{value:function(){return a.r enderAllPending(),w(this)[b].apply(w(this),arguments)},configurable:!0,enumerabl e:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutation,r=a.mixin,s =a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.snapshotNodeList, w=a.unsafeUnwrap,x=a.unwrap,y=a.wrap,z=a.wrappers,A=/[&\u00A0"]/g,B=/[&\u00A0<>] /g,C=e(["area","base","br","col","command","embed","hr","img","input","keygen"," link","meta","param","source","track","wbr"]),D=e(["style","script","xmp","ifram e","noembed","noframes","plaintext","noscript"]),E=/MSIE/.test(navigator.userAge nt),F=window.HTMLElement,G=window.HTMLTemplateElement;i.prototype=Object.create( o.prototype),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if( E&&D[this.localName])return void(this.textContent=a);var b=v(this.childNodes);th is.invalidateShadowRenderer()?this instanceof z.HTMLTemplateElement?h(this.conte nt,a):h(this,a,this.tagName):!G&&this instanceof z.HTMLTemplateElement?h(this.co ntent,a):w(this).innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedN odes:c,removedNodes:b}),t(b),s(c,this)},get outerHTML(){return f(this,this.paren tNode)},set outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer( );var c=j(b,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d ;switch(String(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;brea k;case"afterend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=t his,d=this.firstChild;break;case"beforeend":c=this,d=null;break;default:return}v ar e=j(c,b);c.insertBefore(e,d)},get hidden(){return this.hasAttribute("hidden") },set hidden(a){a?this.setAttribute("hidden",""):this.removeAttribute("hidden")} }),["clientHeight","clientLeft","clientTop","clientWidth","offsetHeight","offset Left","offsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(l),["scrol lLeft","scrollTop"].forEach(m),["getBoundingClientRect","getClientRects","scroll IntoView"].forEach(n),u(F,i,document.createElement("b")),a.wrappers.HTMLElement= i,a.getInnerHTML=g,a.setInnerHTML=h}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a. registerWrapper,f=a.unsafeUnwrap,g=a.wrap,h=window.HTMLCanvasElement;b.prototype =Object.create(c.prototype),d(b.prototype,{getContext:function(){var a=f(this).g etContext.apply(f(this),arguments);return a&&g(a)}}),e(h,b,document.createElemen t("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mi xin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.create(c. prototype),d(b.prototype,{constructor:b,get select(){return this.getAttribute("s elect")},set select(a){this.setAttribute("select",a)},setAttribute:function(a,b) {c.prototype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&thi s.invalidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(win dow.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollection,g =a.unwrap,h=window.HTMLFormElement;b.prototype=Object.create(c.prototype),d(b.pr ototype,{get elements(){return f(g(this).elements)}}),e(h,b,document.createEleme nt("form")),a.wrappers.HTMLFormElement=b}(window.ShadowDOMPolyfill),function(a){ "use strict";function b(a){d.call(this,a)}function c(a,b){if(!(this instanceof c ))throw new TypeError("DOM object constructor cannot be called as a function."); var e=f(document.createElement("img"));d.call(this,e),g(e,this),void 0!==a&&(e.w idth=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLElement,e=a.registerWrappe r,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.prototype=Object.create(d.pr ototype),e(h,b,document.createElement("img")),c.prototype=b.prototype,a.wrappers .HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=(a.mixin, a.wrappers.NodeList,a.registerWrapper),e=window.HTMLShadowElement;b.prototype=Ob ject.create(c.prototype),b.prototype.constructor=b,e&&d(e,b),a.wrappers.HTMLShad owElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if (!a.defaultView)return a;var b=l.get(a);if(!b){for(b=a.implementation.createHTML Document("");b.lastChild;)b.removeChild(b.lastChild);l.set(a,b)}return b}functio n c(a){for(var c,d=b(a.ownerDocument),e=i(d.createDocumentFragment());c=a.firstC hild;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!m){var b=c(a);k .set(this,j(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a. unsafeUnwrap,i=a.unwrap,j=a.wrap,k=new WeakMap,l=new WeakMap,m=window.HTMLTempla teElement;d.prototype=Object.create(e.prototype),f(d.prototype,{constructor:d,ge t content(){return m?j(h(this).content):k.get(this)}}),m&&g(m,d),a.wrappers.HTML TemplateElement=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b (a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTM LMediaElement;e&&(b.prototype=Object.create(c.prototype),d(e,b,document.createEl ement("audio")),a.wrappers.HTMLMediaElement=b)}(window.ShadowDOMPolyfill),functi on(a){"use strict";function b(a){d.call(this,a)}function c(a){if(!(this instance of c))throw new TypeError("DOM object constructor cannot be called as a function .");var b=f(document.createElement("audio"));d.call(this,b),g(b,this),b.setAttri bute("preload","auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTML MediaElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement ;h&&(b.prototype=Object.create(d.prototype),e(h,b,document.createElement("audio" )),c.prototype=b.prototype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c)}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";function b(a){return a.replace( /\s+/g," ").trim()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this in stanceof d))throw new TypeError("DOM object constructor cannot be called as a fu nction.");var g=i(document.createElement("option"));e.call(this,g),h(g,this),voi d 0!==a&&(g.text=a),void 0!==b&&g.setAttribute("value",b),c===!0&&g.setAttribute ("selected",""),g.selected=f===!0}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.reg isterWrapper,h=a.rewrap,i=a.unwrap,j=a.wrap,k=window.HTMLOptionElement;c.prototy pe=Object.create(e.prototype),f(c.prototype,{get text(){return b(this.textConten t)},set text(a){this.textContent=b(String(a))},get form(){return j(i(this).form) }}),g(k,c,document.createElement("option")),d.prototype=c.prototype,a.wrappers.H TMLOptionElement=c,a.wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"u se strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e =a.registerWrapper,f=a.unwrap,g=a.wrap,h=window.HTMLSelectElement;b.prototype=Ob ject.create(c.prototype),d(b.prototype,{add:function(a,b){"object"==typeof b&&(b =f(b)),f(this).add(f(a),b)},remove:function(a){return void 0===a?void c.prototyp e.remove.call(this):("object"==typeof a&&(a=f(a)),void f(this).remove(a))},get f orm(){return g(f(this).form)}}),e(h,b,document.createElement("select")),a.wrappe rs.HTMLSelectElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";funct ion b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapp er,f=a.unwrap,g=a.wrap,h=a.wrapHTMLCollection,i=window.HTMLTableElement;b.protot ype=Object.create(c.prototype),d(b.prototype,{get caption(){return g(f(this).cap tion)},createCaption:function(){return g(f(this).createCaption())},get tHead(){r eturn g(f(this).tHead)},createTHead:function(){return g(f(this).createTHead())}, createTFoot:function(){return g(f(this).createTFoot())},get tFoot(){return g(f(t his).tFoot)},get tBodies(){return h(f(this).tBodies)},createTBody:function(){ret urn g(f(this).createTBody())},get rows(){return h(f(this).rows)},insertRow:funct ion(a){return g(f(this).insertRow(a))}}),e(i,b,document.createElement("table")), a.wrappers.HTMLTableElement=b}(window.ShadowDOMPolyfill),function(a){"use strict ";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.regist erWrapper,f=a.wrapHTMLCollection,g=a.unwrap,h=a.wrap,i=window.HTMLTableSectionEl ement;b.prototype=Object.create(c.prototype),d(b.prototype,{constructor:b,get ro ws(){return f(g(this).rows)},insertRow:function(a){return h(g(this).insertRow(a) )}}),e(i,b,document.createElement("thead")),a.wrappers.HTMLTableSectionElement=b }(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a )}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.wrapHTMLCollect ion,g=a.unwrap,h=a.wrap,i=window.HTMLTableRowElement;b.prototype=Object.create(c .prototype),d(b.prototype,{get cells(){return f(g(this).cells)},insertCell:funct ion(a){return h(g(this).insertCell(a))}}),e(i,b,document.createElement("tr")),a. wrappers.HTMLTableRowElement=b}(window.ShadowDOMPolyfill),function(a){"use stric t";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.H TMLContentElement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wr appers.HTMLTemplateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownEle ment;b.prototype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement =b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.wrappers.Element, c=a.wrappers.HTMLElement,d=a.registerObject,e="http://www.w3.org/2000/svg",f=doc ument.createElementNS(e,"title"),g=d(f),h=Object.getPrototypeOf(g.prototype).con structor;if(!("classList"in f)){var i=Object.getOwnPropertyDescriptor(b.prototyp e,"classList");Object.defineProperty(c.prototype,"classList",i),delete b.prototy pe.classList}a.wrappers.SVGElement=h}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.unwr ap,f=a.wrap,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(document.c reateElementNS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l=Obj ect.getPrototypeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l),"in stanceRoot"in j&&c(b.prototype,{get instanceRoot(){return f(e(this).instanceRoot )},get animatedInstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,b,j) ,a.wrappers.SVGUseElement=b}(window.ShadowDOMPolyfill),function(a){"use strict"; function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.register Wrapper,f=a.unsafeUnwrap,g=a.wrap,h=window.SVGElementInstance;h&&(b.prototype=Ob ject.create(c.prototype),d(b.prototype,{get correspondingElement(){return g(f(th is).correspondingElement)
14 },get correspondingUseElement(){return g(f(this).correspondingUseElement)},get p arentNode(){return g(f(this).parentNode)},get childNodes(){throw new Error("Not implemented")},get firstChild(){return g(f(this).firstChild)},get lastChild(){re turn g(f(this).lastChild)},get previousSibling(){return g(f(this).previousSiblin g)},get nextSibling(){return g(f(this).nextSibling)}}),e(h,b),a.wrappers.SVGElem entInstance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwrap,g=a .unwrap,h=a.unwrapIfNeeded,i=a.wrap,j=window.CanvasRenderingContext2D;c(b.protot ype,{get canvas(){return i(f(this).canvas)},drawImage:function(){arguments[0]=h( arguments[0]),f(this).drawImage.apply(f(this),arguments)},createPattern:function (){return arguments[0]=g(arguments[0]),f(this).createPattern.apply(f(this),argum ents)}}),d(j,b,document.createElement("canvas").getContext("2d")),a.wrappers.Can vasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeU nwrap,g=a.unwrapIfNeeded,h=a.wrap,i=window.WebGLRenderingContext;if(i){c(b.proto type,{get canvas(){return h(f(this).canvas)},texImage2D:function(){arguments[5]= g(arguments[5]),f(this).texImage2D.apply(f(this),arguments)},texSubImage2D:funct ion(){arguments[6]=g(arguments[6]),f(this).texSubImage2D.apply(f(this),arguments )}});var j=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingB ufferWidth:null}:{};d(i,b,j),a.wrappers.WebGLRenderingContext=b}}(window.ShadowD OMPolyfill),function(a){"use strict";function b(a){d(a,this)}var c=a.registerWra pper,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap,i=wi ndow.Range;b.prototype={get startContainer(){return h(e(this).startContainer)},g et endContainer(){return h(e(this).endContainer)},get commonAncestorContainer(){ return h(e(this).commonAncestorContainer)},setStart:function(a,b){e(this).setSta rt(g(a),b)},setEnd:function(a,b){e(this).setEnd(g(a),b)},setStartBefore:function (a){e(this).setStartBefore(g(a))},setStartAfter:function(a){e(this).setStartAfte r(g(a))},setEndBefore:function(a){e(this).setEndBefore(g(a))},setEndAfter:functi on(a){e(this).setEndAfter(g(a))},selectNode:function(a){e(this).selectNode(g(a)) },selectNodeContents:function(a){e(this).selectNodeContents(g(a))},compareBounda ryPoints:function(a,b){return e(this).compareBoundaryPoints(a,f(b))},extractCont ents:function(){return h(e(this).extractContents())},cloneContents:function(){re turn h(e(this).cloneContents())},insertNode:function(a){e(this).insertNode(g(a)) },surroundContents:function(a){e(this).surroundContents(g(a))},cloneRange:functi on(){return h(e(this).cloneRange())},isPointInRange:function(a,b){return e(this) .isPointInRange(g(a),b)},comparePoint:function(a,b){return e(this).comparePoint( g(a),b)},intersectsNode:function(a){return e(this).intersectsNode(g(a))},toStrin g:function(){return e(this).toString()}},i.prototype.createContextualFragment&&( b.prototype.createContextualFragment=function(a){return h(e(this).createContextu alFragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface, c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f( document.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototy pe,b);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.Docume ntFragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v ar b=l(k(a).ownerDocument.createDocumentFragment());c.call(this,b),i(b,this);var e=a.shadowRoot;n.set(this,e),this.treeScope_=new d(this,g(e||a)),m.set(this,a)} var c=a.wrappers.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInne rHTML,g=a.getTreeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unsafeUnwrap,l= a.unwrap,m=new WeakMap,n=new WeakMap,o=/[ \t\n\r\f]/;b.prototype=Object.create(c .prototype),h(b.prototype,{constructor:b,get innerHTML(){return f(this)},set inn erHTML(a){j(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){retur n n.get(this)||null},get host(){return m.get(this)||null},invalidateShadowRender er:function(){return m.get(this).invalidateShadowRenderer()},elementFromPoint:fu nction(a,b){return e(this,this.ownerDocument,a,b)},getElementById:function(a){re turn o.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot= b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSi bling_=a.previousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode }function c(c,e,f){var g=H(c),h=H(e),i=f?H(f):null;if(d(e),b(e),f)c.firstChild== =f&&(c.firstChild_=f),f.previousSibling_=f.previousSibling;else{c.lastChild_=c.l astChild,c.lastChild===c.firstChild&&(c.firstChild_=c.firstChild);var j=I(g.last Child);j&&(j.nextSibling_=j.nextSibling)}a.originalInsertBefore.call(g,h,i)}func tion d(c){var d=H(c),e=d.parentNode;if(e){var f=I(e);b(c),c.previousSibling&&(c. previousSibling.nextSibling_=c),c.nextSibling&&(c.nextSibling.previousSibling_=c ),f.lastChild===c&&(f.lastChild_=c),f.firstChild===c&&(f.firstChild_=c),a.origin alRemoveChild.call(e,d)}}function e(a){J.set(a,[])}function f(a){var b=J.get(a); return b||J.set(a,b=[]),b}function g(a){for(var b=[],c=0,d=a.firstChild;d;d=d.ne xtSibling)b[c++]=d;return b}function h(){for(var a=0;a<N.length;a++){var b=N[a], c=b.parentRenderer;c&&c.dirty||b.render()}N=[]}function i(){y=null,h()}function j(a){var b=L.get(a);return b||(b=new n(a),L.set(a,b)),b}function k(a){var b=E(a) .root;return b instanceof D?b:null}function l(a){return j(a.host)}function m(a){ this.skip=!1,this.node=a,this.childNodes=[]}function n(a){this.host=a,this.dirty =!1,this.invalidateAttributes(),this.associateNode(a)}function o(a){for(var b=[] ,c=a.firstChild;c;c=c.nextSibling)v(c)?b.push.apply(b,f(c)):b.push(c);return b}f unction p(a){if(a instanceof B)return a;if(a instanceof A)return null;for(var b= a.firstChild;b;b=b.nextSibling){var c=p(b);if(c)return c}return null}function q( a,b){f(b).push(a);var c=K.get(a);c?c.push(b):K.set(a,[b])}function r(a){return K .get(a)}function s(a){K.set(a,void 0)}function t(a,b){var c=b.getAttribute("sele ct");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z))return!1;if(! P.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function u(a,b){va r c=r(b);return c&&c[c.length-1]===a}function v(a){return a instanceof A||a inst anceof B}function w(a){return a.shadowRoot}function x(a){for(var b=[],c=a.shadow Root;c;c=c.olderShadowRoot)b.push(c);return b}var y,z=a.wrappers.Element,A=a.wra ppers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrappers.Node,D=a.wr appers.ShadowRoot,E=(a.assert,a.getTreeScope),F=(a.mixin,a.oneOf),G=a.unsafeUnwr ap,H=a.unwrap,I=a.wrap,J=new WeakMap,K=new WeakMap,L=new WeakMap,M=F(window,["re questAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","s etTimeout"]),N=[],O=new ArraySplice;O.equals=function(a,b){return H(a.node)===b} ,m.prototype={append:function(a){var b=new m(a);return this.childNodes.push(b),b },sync:function(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=g(H(b) ),h=a||new WeakMap,i=O.calculateSplices(e,f),j=0,k=0,l=0,m=0;m<i.length;m++){for (var n=i[m];l<n.index;l++)k++,e[j++].sync(h);for(var o=n.removed.length,p=0;o>p; p++){var q=I(f[k++]);h.get(q)||d(q)}for(var r=n.addedCount,s=f[k]&&I(f[k]),p=0;r >p;p++){var t=e[j++],u=t.node;c(b,u,s),h.set(u,!0),t.sync(h)}l+=r}for(var m=l;m< e.length;m++)e[m].sync(h)}}},n.prototype={render:function(a){if(this.dirty){this .invalidateAttributes();var b=this.host;this.distribution(b);var c=a||new m(b);t his.buildRenderTree(c,b);var d=!a;d&&c.sync(),this.dirty=!1}},get parentRenderer (){return E(this.host).renderer},invalidate:function(){if(!this.dirty){this.dirt y=!0;var a=this.parentRenderer;if(a&&a.invalidate(),N.push(this),y)return;y=wind ow[M](i,0)}},distribution:function(a){this.resetAllSubtrees(a),this.distribution Resolution(a)},resetAll:function(a){v(a)?e(a):s(a),this.resetAllSubtrees(a)},res etAllSubtrees:function(a){for(var b=a.firstChild;b;b=b.nextSibling)this.resetAll (b);a.shadowRoot&&this.resetAll(a.shadowRoot),a.olderShadowRoot&&this.resetAll(a .olderShadowRoot)},distributionResolution:function(a){if(w(a)){for(var b=a,c=o(b ),d=x(b),e=0;e<d.length;e++)this.poolDistribution(d[e],c);for(var e=d.length-1;e >=0;e--){var f=d[e],g=p(f);if(g){var h=f.olderShadowRoot;h&&(c=o(h));for(var i=0 ;i<c.length;i++)q(c[i],g)}this.distributionResolution(f)}}for(var j=a.firstChild ;j;j=j.nextSibling)this.distributionResolution(j)},poolDistribution:function(a,b ){if(!(a instanceof B))if(a instanceof A){var c=a;this.updateDependentAttributes (c.getAttribute("select"));for(var d=!1,e=0;e<b.length;e++){var a=b[e];a&&t(a,c) &&(q(a,c),b[e]=void 0,d=!0)}if(!d)for(var f=c.firstChild;f;f=f.nextSibling)q(f,c )}else for(var f=a.firstChild;f;f=f.nextSibling)this.poolDistribution(f,b)},buil dRenderTree:function(a,b){for(var c=this.compose(b),d=0;d<c.length;d++){var e=c[ d],f=a.append(e);this.buildRenderTree(f,e)}if(w(b)){var g=j(b);g.dirty=!1}},comp ose:function(a){for(var b=[],c=a.shadowRoot||a,d=c.firstChild;d;d=d.nextSibling) if(v(d)){this.associateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g];u(d ,h)&&b.push(h)}}else b.push(d);return b},invalidateAttributes:function(){this.at tributes=Object.create(null)},updateDependentAttributes:function(a){if(a){var b= this.attributes;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.rep lace(/\[\s*([^\s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:functio n(a){return this.attributes[a]},associateNode:function(a){G(a).polymerShadowRend erer_=this}};var P=/^(:not\()?[*.#[a-zA-Z_|]/;C.prototype.invalidateShadowRender er=function(){var a=G(this).polymerShadowRenderer_;return a?(a.invalidate(),!0): !1},A.prototype.getDistributedNodes=B.prototype.getDistributedNodes=function(){r eturn h(),f(this)},z.prototype.getDestinationInsertionPoints=function(){return h (),r(this)||[]},A.prototype.nodeIsInserted_=B.prototype.nodeIsInserted_=function (){this.invalidateShadowRenderer();var a,b=k(this);b&&(a=l(b)),G(this).polymerSh adowRenderer_=a,a&&a.invalidate()},a.getRendererForHost=j,a.getShadowTrees=x,a.r enderAllPending=h,a.getDestinationInsertionPoints=r,a.visual={insertBefore:c,rem ove:d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(wind ow[b]){d(!a.wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.cr eate(c.prototype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b ],i,document.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTM LElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLBu ttonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLL abelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLTe xtAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use strict" ;function b(a){d(a,this)}{var c=a.registerWrapper,d=a.setWrapper,e=a.unsafeUnwra p,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap;window.Selection}b.prototype={get ancho rNode(){return h(e(this).anchorNode)},get focusNode(){return h(e(this).focusNode )},addRange:function(a){e(this).addRange(f(a))},collapse:function(a,b){e(this).c ollapse(g(a),b)},containsNode:function(a,b){return e(this).containsNode(g(a),b)} ,extend:function(a,b){e(this).extend(g(a),b)},getRangeAt:function(a){return h(e( this).getRangeAt(a))},removeRange:function(a){e(this).removeRange(f(a))},selectA llChildren:function(a){e(this).selectAllChildren(g(a))},toString:function(){retu rn e(this).toString()}},c(window.Selection,b,window.getSelection()),a.wrappers.S election=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){k.c all(this,a),this.treeScope_=new p(this,null)}function c(a){var c=document[a];b.p rototype[a]=function(){return C(c.apply(A(this),arguments))}}function d(a,b){F.c all(A(b),B(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f( a,b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){z(a,this)}function h(a,b){var c=document.implementation[b];a.prototype[b]=function(){return C(c.app ly(A(this),arguments))}}function i(a,b){var c=document.implementation[b];a.proto type[b]=function(){return c.apply(A(this),arguments)}}var j=a.GetElementsByInter face,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.Select orsInterface,o=a.wrappers.ShadowRoot,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapG etter,s=a.elementFromPoint,t=a.forwardMethodsToWrapper,u=a.matchesNames,v=a.mixi n,w=a.registerWrapper,x=a.renderAllPending,y=a.rewrap,z=a.setWrapper,A=a.unsafeU nwrap,B=a.unwrap,C=a.wrap,D=a.wrapEventTargetMethods,E=(a.wrapNodeList,new WeakM ap);b.prototype=Object.create(k.prototype),r(b,"documentElement"),r(b,"body"),r( b,"head"),["createComment","createDocumentFragment","createElement","createEleme ntNS","createEvent","createEventNS","createRange","createTextNode","getElementBy Id"].forEach(c);var F=document.adoptNode,G=document.getSelection;if(v(b.prototyp e,{adoptNode:function(a){return a.parentNode&&a.parentNode.removeChild(a),d(a,th is),a},elementFromPoint:function(a,b){return s(this,this,a,b)},importNode:functi on(a,b){return q(a,b,A(this))},getSelection:function(){return x(),new m(G.call(B (this)))},getElementsByName:function(a){return n.querySelectorAll.call(this,"[na me="+JSON.stringify(String(a))+"]")}}),document.registerElement){var H=document. registerElement;b.prototype.registerElement=function(b,c){function d(a){return a ?void z(a,this):f?document.createElement(f,b):document.createElement(b)}var e,f; if(void 0!==c&&(e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.proto type)),a.nativePrototypeTable.get(e))throw new Error("NotSupportedError");for(va r g,h=Object.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.pus h(h),h=Object.getPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(v ar j=Object.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback ","attachedCallback","detachedCallback","attributeChangedCallback"].forEach(func tion(a){var b=e[a];b&&(j[a]=function(){C(this)instanceof d||y(this),b.apply(C(th is),arguments)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototyp e.constructor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);H.ca ll(B(this),b,l);return d},t([window.HTMLDocument||window.Document],["registerEle ment"])}t([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HT MLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocumentPosition"," contains","getElementsByClassName","getElementsByTagName","getElementsByTagNameN S","insertBefore","querySelector","querySelectorAll","removeChild","replaceChild "].concat(u)),t([window.HTMLDocument||window.Document],["adoptNode","importNode" ,"contains","createComment","createDocumentFragment","createElement","createElem entNS","createEvent","createEventNS","createRange","createTextNode","elementFrom Point","getElementById","getElementsByName","getSelection"]),v(b.prototype,j),v( b.prototype,l),v(b.prototype,n),v(b.prototype,{get implementation(){var a=E.get( this);return a?a:(a=new g(B(this).implementation),E.set(this,a),a)},get defaultV iew(){return C(B(this).defaultView)}}),w(window.Document,b,document.implementati on.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument,b),D([wind ow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]) ,h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g," hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementation],["create DocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeNo Remove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOMP olyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers. EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllPe nding,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getCompute dStyle,m=window.getDefaultComputedStyle,n=window.getSelection;b.prototype=Object .create(c.prototype),k.prototype.getComputedStyle=function(a,b){return j(this||w indow).getComputedStyle(i(a),b)},m&&(k.prototype.getDefaultComputedStyle=functio n(a,b){return j(this||window).getDefaultComputedStyle(i(a),b)}),k.prototype.getS election=function(){return j(this||window).getSelection()},delete window.getComp utedStyle,delete window.getDefaultComputedStyle,delete window.getSelection,["add EventListener","removeEventListener","dispatchEvent"].forEach(function(a){k.prot otype[a]=function(){var b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b.prototype,{getComputedStyle:function(a,b){return g(),l.call(h(t his),i(a),b)},getSelection:function(){return g(),new d(n.call(h(this)))},get doc ument(){return j(h(this).document)}}),m&&(b.prototype.getDefaultComputedStyle=fu nction(a,b){return g(),m.call(h(this),i(a),b)}),f(k,b,window),a.wrappers.Window= b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.Da taTransfer||window.Clipboard,d=c.prototype.setDragImage;d&&(c.prototype.setDragI mage=function(a,c,e){d.call(this,b(a),c,e)})}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a){var b;b=a instanceof f?a:new f(a&&e(a)),d(b,this) }var c=a.registerWrapper,d=a.setWrapper,e=a.unwrap,f=window.FormData;f&&(c(f,b,n ew f),a.wrappers.FormData=b)}(window.ShadowDOMPolyfill),function(a){"use strict" ;var b=a.unwrapIfNeeded,c=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype .send=function(a){return c.call(this,b(a))}}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.create Element(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElem ent",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body :"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCan vasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content: "HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:" HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListEle ment",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElem ent",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetEleme nt",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTML HtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputE lement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendEl ement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"H TMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"H TMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOLis tElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTML OutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreEle ment",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElem ent",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceEle ment",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",t body:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLText AreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLT itleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElem ent",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyN ames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.ShadowDOM Polyfill),function(a){function b(a,c){var d,e,f,g,h=a.firstElementChild;for(e=[] ,f=a.shadowRoot;f;)e.push(f),f=f.olderShadowRoot;for(g=e.length-1;g>=0;g--)if(d= e[g].querySelector(c))return d;for(;h;){if(d=b(h,c))return d;h=h.nextElementSibl ing}return null}function c(a,b,d){var e,f,g,h,i,j=a.firstElementChild;for(g=[],f =a.shadowRoot;f;)g.push(f),f=f.olderShadowRoot;for(h=g.length-1;h>=0;h--)for(e=g [h].querySelectorAll(b),i=0;i<e.length;i++)d.push(e[i]);for(;j;)c(j,b,d),j=j.nex tElementSibling;return d}window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwra p=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"webk itShadowRoot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"));v ar d=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot=funct ion(){var a=d.call(this);return CustomElements.watchShadow(this),a},Element.prot otype.webkitCreateShadowRoot=Element.prototype.createShadowRoot,a.queryAllShadow s=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform),function(a){funct ion b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.textC ontent+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.createElem ent("style");return b.textContent=a,b}function d(a){var b=c(a);document.head.app endChild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else console.wa rn("sheet not found",b);return b.parentNode.removeChild(b),d}function e(){v.init ialized=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.createElemen t("base");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.initiali zed||e(),document.body.appendChild(v),a(v.contentDocument),document.body.removeC hild(v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f(funct ion(a){a.head.appendChild(g.impl),e=Array.prototype.slice.call(g.sheet.cssRules, 0),b(e)})}else e=d(a),b(e)}}function h(a){a&&j().appendChild(document.createText Node(a))}function i(a,b){var d=c(a);d.setAttribute(b,""),d.setAttribute(z,""),do cument.head.appendChild(d)}function j(){return w||(w=document.createElement("sty le"),w.setAttribute(z,""),w[z]=!0),w}var k={strictStyling:!1,registry:{},shimSty ling:function(a,c,d){var e=this.prepareRoot(a,c,d),f=this.isTypeExtension(d),g=t his.makeScopeSelector(c,f),h=b(e,!0);h=this.scopeCssText(h,g),a&&(a.shimmedStyle =h),this.addCssToDocument(h,c)},shimStyle:function(a,b){return this.shimCssText( a.textContent,b)},shimCssText:function(a,b){return a=this.insertDirectives(a),th is.scopeCssText(a,b)},makeScopeSelector:function(a,b){return a?b?"[is="+a+"]":a: ""},isTypeExtension:function(a){return a&&a.indexOf("-")<0},prepareRoot:function (a,b,c){var d=this.registerRoot(a,b,c);return this.replaceTextInStyles(d.rootSty les,this.insertDirectives),this.removeStyles(a,d.rootStyles),this.strictStyling& &this.applyScopeToContent(a,b),d.scopeStyles},removeStyles:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)c.parentNode.removeChild(c)},registerRoot:fu nction(a,b,c){var d=this.registry[b]={root:a,name:b,extendsName:c},e=this.findSt yles(a);d.rootStyles=e,d.scopeStyles=d.rootStyles;var f=this.registry[d.extendsN ame];return f&&(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),d},findStyles :function(a){if(!a)return[];var b=a.querySelectorAll("style");return Array.proto type.filter.call(b,function(a){return!a.hasAttribute(A)})},applyScopeToContent:f unction(a,b){a&&(Array.prototype.forEach.call(a.querySelectorAll("*"),function(a ){a.setAttribute(b,"")}),Array.prototype.forEach.call(a.querySelectorAll("templa te"),function(a){this.applyScopeToContent(a.content,b)},this))},insertDirectives :function(a){return a=this.insertPolyfillDirectivesInCssText(a),this.insertPolyf illRulesInCssText(a)},insertPolyfillDirectivesInCssText:function(a){return a=a.r eplace(m,function(a,b){return b.slice(0,-2)+"{"}),a.replace(n,function(a,b){retu rn b+" {"})},insertPolyfillRulesInCssText:function(a){return a=a.replace(o,funct ion(a,b){return b.slice(0,-1)}),a.replace(p,function(a,b,c,d){var e=a.replace(b, "").replace(c,"");return d+e})},scopeCssText:function(a,b){var c=this.extractUns copedRulesFromCssText(a);if(a=this.insertPolyfillHostInCssText(a),a=this.convert ColonHost(a),a=this.convertColonHostContext(a),a=this.convertShadowDOMSelectors( a),b){var a,d=this;g(a,function(c){a=d.scopeRules(c,b)})}return a=a+"\n"+c,a.tri m()},extractUnscopedRulesFromCssText:function(a){for(var b,c="";b=q.exec(a);)c+= b[1].slice(0,-1)+"\n\n";for(;b=r.exec(a);)c+=b[0].replace(b[2],"").replace(b[1], b[3])+"\n\n";return c},convertColonHost:function(a){return this.convertColonRule (a,cssColonHostRe,this.colonHostPartReplacer)},convertColonHostContext:function( a){return this.convertColonRule(a,cssColonHostContextRe,this.colonHostContextPar tReplacer)},convertColonRule:function(a,b,c){return a.replace(b,function(a,b,d,e ){if(b=polyfillHostNoCombinator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length; j>i&&(f=g[i]);i++)f=f.trim(),h.push(c(b,f,e));return h.join(",")}return b+e})},c olonHostContextPartReplacer:function(a,b,c){return b.match(s)?this.colonHostPart Replacer(a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplacer:function(a,b,c){retu rn a+b.replace(s,"")+c},convertShadowDOMSelectors:function(a){for(var b=0;b<shad owDOMSelectorsRe.length;b++)a=a.replace(shadowDOMSelectorsRe[b]," ");return a},s copeRules:function(a,b){var c="";return a&&Array.prototype.forEach.call(a,functi on(a){if(a.selectorText&&a.style&&void 0!==a.style.cssText)c+=this.scopeSelector (a.selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFromRule(a)+ "\n}\n\n";else if(a.type===CSSRule.MEDIA_RULE)c+="@media "+a.media.mediaText+" { \n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n";else try{a.cssText&&(c+=a.cssT ext+"\n\n")}catch(d){a.type===CSSRule.KEYFRAMES_RULE&&a.cssRules&&(c+=this.ieSaf eCssTextFromKeyFrameRule(a))}},this),c},ieSafeCssTextFromKeyFrameRule:function(a ){var b="@keyframes "+a.name+" {";return Array.prototype.forEach.call(a.cssRules ,function(a){b+=" "+a.keyText+" {"+a.style.cssText+"}"}),b+=" }"},scopeSelector: function(a,b,c){var d=[],e=a.split(",");return e.forEach(function(a){a=a.trim(), this.selectorNeedsScoping(a,b)&&(a=c&&!a.match(polyfillHostNoCombinator)?this.ap plyStrictSelectorScope(a,b):this.applySelectorScope(a,b)),d.push(a)},this),d.joi n(", ")},selectorNeedsScoping:function(a,b){if(Array.isArray(b))return!0;var c=t his.makeScopeMatcher(b);return!a.match(c)},makeScopeMatcher:function(a){return a =a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")"+selectorReSuf fix,"m")},applySelectorScope:function(a,b){return Array.isArray(b)?this.applySel ectorScopeList(a,b):this.applySimpleSelectorScope(a,b)},applySelectorScopeList:f unction(a,b){for(var c,d=[],e=0;c=b[e];e++)d.push(this.applySimpleSelectorScope( a,c));return d.join(", ")},applySimpleSelectorScope:function(a,b){return a.match (polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyfillHost Re,b+" ")):b+" "+a},applyStrictSelectorScope:function(a,b){b=b.replace(/\[is=([^ \]]*)\]/g,"$1");var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(functio n(a){var b=d.split(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe, "");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1 "+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.r eplace(colonHostContextRe,t).replace(colonHostRe,s)},propertiesFromRule:function (a){var b=a.style.cssText;a.style.content&&!a.style.content.match(/['"]+|attr/)& &(b=b.replace(/content:[^;]*;/g,"content: '"+a.style.content+"';"));var c=a.styl e;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");return b},replaceTextInS tyles:function(a,b){a&&b&&(a instanceof Array||(a=[a]),Array.prototype.forEach.c all(a,function(a){a.textContent=b.call(this,a.textContent)},this))},addCssToDocu ment:function(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*][^*]*\* +)*\//gim,m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n=/polyf ill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,o=/\/\*\s @polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)[^}]*(content\: [\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^ /*][^*]*\*+)*)\//gim,r=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['" ])[;\s]*[^}]*}/gim,s="-shadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^) (]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColo nHostContextRe=new RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S ]*)?$",colonHostRe=/\:host/gim,colonHostContextRe=/\:host-context/gim,polyfillHo stNoCombinator=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHos tContextRe=new RegExp(t,"gim"),shadowDOMSelectorsRe=[/\^\^/g,/\^/g,/\/shadow\//g ,/\/shadow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g];var v=document.createE lement("iframe");v.style.display="none";var w,x=navigator.userAgent.match("Chrom e"),y="shim-shadowdom",z="shim-shadowdom-css",A="no-shim";if(window.ShadowDOMPol yfill){h("style { display: none !important; }\n");var B=wrap(document),C=B.query Selector("head");C.insertBefore(j(),C.childNodes[0]),document.addEventListener(" DOMContentLoaded",function(){a.urlResolver;if(window.HTMLImports&&!HTMLImports.u seNative){var b="link[rel=stylesheet]["+y+"]",c="style["+y+"]";HTMLImports.impor ter.documentPreloadSelectors+=","+b,HTMLImports.importer.importsPreloadSelectors +=","+b,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSelecto rs,b,c].join(",");var d=HTMLImports.parser.parseGeneric;HTMLImports.parser.parse Generic=function(a){if(!a[z]){var b=a.__importElement||a;if(!b.hasAttribute(y))r eturn void d.call(this,a);a.__resource&&(b=a.ownerDocument.createElement("style" ),b.textContent=a.__resource),HTMLImports.path.resolveUrlsInStyle(b),b.textConte nt=k.shimStyle(b),b.removeAttribute(y,""),b.setAttribute(z,""),b[z]=!0,b.parentN ode!==C&&(a.parentNode===C?C.replaceChild(b,a):this.addElementToDocument(b)),b._ _importParsed=!0,this.markParsingComplete(a),this.parseNext()}};var e=HTMLImport s.parser.hasResource;HTMLImports.parser.hasResource=function(a){return"link"===a .localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource:e.call(this,a)} }})}a.ShadowCSS=k}(window.Platform)):!function(){window.wrap=window.unwrap=funct ion(a){return a},addEventListener("DOMContentLoaded",function(){if(CustomElement s.useNative===!1){var a=Element.prototype.createShadowRoot;Element.prototype.cre ateShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(th is),b}}})}(window.Platform),function(a){"use strict";function b(a){return void 0 !==m[a]}function c(){h.call(this),this._isInvalid=!0}function d(a){return""==a&& c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);return b>32&&12 7>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function f(a){va r b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,96].indexOf(b)?a:encode URIComponent(a)}function g(a,g,h){function i(a){t.push(a)}var j=g||"scheme start ",k=0,l="",r=!1,s=!1,t=[];a:for(;(a[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k ];switch(j){case"scheme start":if(!u||!p.test(u)){if(g){i("Invalid scheme.");bre ak a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";break;case"scheme ":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u){if(g){if(o==u)break a;i("Co de point not allowed in scheme: "+u);break a}l="",k=0,j="no scheme";continue}if( this._scheme=l,l="",g)break a;b(this._scheme)&&(this._isRelative=!0),j="file"==t his._scheme?"relative":this._isRelative&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"sc heme data":"?"==u?(query="?",j="query"):"#"==u?(this._fragment="#",j="fragment") :o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._schemeData+=e(u));break;case"no s cheme":if(h&&b(h._scheme)){j="relative";continue}i("Missing scheme."),c.call(thi s);break;case"relative or authority":if("/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes";break;case"relative":if (this._isRelative=!0,"file"!=this._scheme&&(this._scheme=h._scheme),o==u){this._ host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query; break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code point."),j="relativ e slash";else if("?"==u)this._host=h._host,this._port=h._port,this._path=h._path .slice(),this._query="?",j="query"; 14 },get correspondingUseElement(){return g(f(this).correspondingUseElement)},get p arentNode(){return g(f(this).parentNode)},get childNodes(){throw new Error("Not implemented")},get firstChild(){return g(f(this).firstChild)},get lastChild(){re turn g(f(this).lastChild)},get previousSibling(){return g(f(this).previousSiblin g)},get nextSibling(){return g(f(this).nextSibling)}}),e(h,b),a.wrappers.SVGElem entInstance=b)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a) {e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeUnwrap,g=a .unwrap,h=a.unwrapIfNeeded,i=a.wrap,j=window.CanvasRenderingContext2D;c(b.protot ype,{get canvas(){return i(f(this).canvas)},drawImage:function(){arguments[0]=h( arguments[0]),f(this).drawImage.apply(f(this),arguments)},createPattern:function (){return arguments[0]=g(arguments[0]),f(this).createPattern.apply(f(this),argum ents)}}),d(j,b,document.createElement("canvas").getContext("2d")),a.wrappers.Can vasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict";func tion b(a){e(a,this)}var c=a.mixin,d=a.registerWrapper,e=a.setWrapper,f=a.unsafeU nwrap,g=a.unwrapIfNeeded,h=a.wrap,i=window.WebGLRenderingContext;if(i){c(b.proto type,{get canvas(){return h(f(this).canvas)},texImage2D:function(){arguments[5]= g(arguments[5]),f(this).texImage2D.apply(f(this),arguments)},texSubImage2D:funct ion(){arguments[6]=g(arguments[6]),f(this).texSubImage2D.apply(f(this),arguments )}});var j=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingB ufferWidth:null}:{};d(i,b,j),a.wrappers.WebGLRenderingContext=b}}(window.ShadowD OMPolyfill),function(a){"use strict";function b(a){d(a,this)}var c=a.registerWra pper,d=a.setWrapper,e=a.unsafeUnwrap,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap,i=wi ndow.Range;b.prototype={get startContainer(){return h(e(this).startContainer)},g et endContainer(){return h(e(this).endContainer)},get commonAncestorContainer(){ return h(e(this).commonAncestorContainer)},setStart:function(a,b){e(this).setSta rt(g(a),b)},setEnd:function(a,b){e(this).setEnd(g(a),b)},setStartBefore:function (a){e(this).setStartBefore(g(a))},setStartAfter:function(a){e(this).setStartAfte r(g(a))},setEndBefore:function(a){e(this).setEndBefore(g(a))},setEndAfter:functi on(a){e(this).setEndAfter(g(a))},selectNode:function(a){e(this).selectNode(g(a)) },selectNodeContents:function(a){e(this).selectNodeContents(g(a))},compareBounda ryPoints:function(a,b){return e(this).compareBoundaryPoints(a,f(b))},extractCont ents:function(){return h(e(this).extractContents())},cloneContents:function(){re turn h(e(this).cloneContents())},insertNode:function(a){e(this).insertNode(g(a)) },surroundContents:function(a){e(this).surroundContents(g(a))},cloneRange:functi on(){return h(e(this).cloneRange())},isPointInRange:function(a,b){return e(this) .isPointInRange(g(a),b)},comparePoint:function(a,b){return e(this).comparePoint( g(a),b)},intersectsNode:function(a){return e(this).intersectsNode(g(a))},toStrin g:function(){return e(this).toString()}},i.prototype.createContextualFragment&&( b.prototype.createContextualFragment=function(a){return h(e(this).createContextu alFragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(wi ndow.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface, c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f( document.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototy pe,b);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.Docume ntFragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v ar b=l(k(a).ownerDocument.createDocumentFragment());c.call(this,b),i(b,this);var e=a.shadowRoot;n.set(this,e),this.treeScope_=new d(this,g(e||a)),m.set(this,a)} var c=a.wrappers.DocumentFragment,d=a.TreeScope,e=a.elementFromPoint,f=a.getInne rHTML,g=a.getTreeScope,h=a.mixin,i=a.rewrap,j=a.setInnerHTML,k=a.unsafeUnwrap,l= a.unwrap,m=new WeakMap,n=new WeakMap,o=/[ \t\n\r\f]/;b.prototype=Object.create(c .prototype),h(b.prototype,{constructor:b,get innerHTML(){return f(this)},set inn erHTML(a){j(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){retur n n.get(this)||null},get host(){return m.get(this)||null},invalidateShadowRender er:function(){return m.get(this).invalidateShadowRenderer()},elementFromPoint:fu nction(a,b){return e(this,this.ownerDocument,a,b)},getElementById:function(a){re turn o.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot= b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previousSi bling_=a.previousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode }function c(c,e,f){var g=H(c),h=H(e),i=f?H(f):null;if(d(e),b(e),f)c.firstChild== =f&&(c.firstChild_=f),f.previousSibling_=f.previousSibling;else{c.lastChild_=c.l astChild,c.lastChild===c.firstChild&&(c.firstChild_=c.firstChild);var j=I(g.last Child);j&&(j.nextSibling_=j.nextSibling)}a.originalInsertBefore.call(g,h,i)}func tion d(c){var d=H(c),e=d.parentNode;if(e){var f=I(e);b(c),c.previousSibling&&(c. previousSibling.nextSibling_=c),c.nextSibling&&(c.nextSibling.previousSibling_=c ),f.lastChild===c&&(f.lastChild_=c),f.firstChild===c&&(f.firstChild_=c),a.origin alRemoveChild.call(e,d)}}function e(a){J.set(a,[])}function f(a){var b=J.get(a); return b||J.set(a,b=[]),b}function g(a){for(var b=[],c=0,d=a.firstChild;d;d=d.ne xtSibling)b[c++]=d;return b}function h(){for(var a=0;a<N.length;a++){var b=N[a], c=b.parentRenderer;c&&c.dirty||b.render()}N=[]}function i(){y=null,h()}function j(a){var b=L.get(a);return b||(b=new n(a),L.set(a,b)),b}function k(a){var b=E(a) .root;return b instanceof D?b:null}function l(a){return j(a.host)}function m(a){ this.skip=!1,this.node=a,this.childNodes=[]}function n(a){this.host=a,this.dirty =!1,this.invalidateAttributes(),this.associateNode(a)}function o(a){for(var b=[] ,c=a.firstChild;c;c=c.nextSibling)v(c)?b.push.apply(b,f(c)):b.push(c);return b}f unction p(a){if(a instanceof B)return a;if(a instanceof A)return null;for(var b= a.firstChild;b;b=b.nextSibling){var c=p(b);if(c)return c}return null}function q( a,b){f(b).push(a);var c=K.get(a);c?c.push(b):K.set(a,[b])}function r(a){return K .get(a)}function s(a){K.set(a,void 0)}function t(a,b){var c=b.getAttribute("sele ct");if(!c)return!0;if(c=c.trim(),!c)return!0;if(!(a instanceof z))return!1;if(! P.test(c))return!1;try{return a.matches(c)}catch(d){return!1}}function u(a,b){va r c=r(b);return c&&c[c.length-1]===a}function v(a){return a instanceof A||a inst anceof B}function w(a){return a.shadowRoot}function x(a){for(var b=[],c=a.shadow Root;c;c=c.olderShadowRoot)b.push(c);return b}var y,z=a.wrappers.Element,A=a.wra ppers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrappers.Node,D=a.wr appers.ShadowRoot,E=(a.assert,a.getTreeScope),F=(a.mixin,a.oneOf),G=a.unsafeUnwr ap,H=a.unwrap,I=a.wrap,J=new WeakMap,K=new WeakMap,L=new WeakMap,M=F(window,["re questAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","s etTimeout"]),N=[],O=new ArraySplice;O.equals=function(a,b){return H(a.node)===b} ,m.prototype={append:function(a){var b=new m(a);return this.childNodes.push(b),b },sync:function(a){if(!this.skip){for(var b=this.node,e=this.childNodes,f=g(H(b) ),h=a||new WeakMap,i=O.calculateSplices(e,f),j=0,k=0,l=0,m=0;m<i.length;m++){for (var n=i[m];l<n.index;l++)k++,e[j++].sync(h);for(var o=n.removed.length,p=0;o>p; p++){var q=I(f[k++]);h.get(q)||d(q)}for(var r=n.addedCount,s=f[k]&&I(f[k]),p=0;r >p;p++){var t=e[j++],u=t.node;c(b,u,s),h.set(u,!0),t.sync(h)}l+=r}for(var m=l;m< e.length;m++)e[m].sync(h)}}},n.prototype={render:function(a){if(this.dirty){this .invalidateAttributes();var b=this.host;this.distribution(b);var c=a||new m(b);t his.buildRenderTree(c,b);var d=!a;d&&c.sync(),this.dirty=!1}},get parentRenderer (){return E(this.host).renderer},invalidate:function(){if(!this.dirty){this.dirt y=!0;var a=this.parentRenderer;if(a&&a.invalidate(),N.push(this),y)return;y=wind ow[M](i,0)}},distribution:function(a){this.resetAllSubtrees(a),this.distribution Resolution(a)},resetAll:function(a){v(a)?e(a):s(a),this.resetAllSubtrees(a)},res etAllSubtrees:function(a){for(var b=a.firstChild;b;b=b.nextSibling)this.resetAll (b);a.shadowRoot&&this.resetAll(a.shadowRoot),a.olderShadowRoot&&this.resetAll(a .olderShadowRoot)},distributionResolution:function(a){if(w(a)){for(var b=a,c=o(b ),d=x(b),e=0;e<d.length;e++)this.poolDistribution(d[e],c);for(var e=d.length-1;e >=0;e--){var f=d[e],g=p(f);if(g){var h=f.olderShadowRoot;h&&(c=o(h));for(var i=0 ;i<c.length;i++)q(c[i],g)}this.distributionResolution(f)}}for(var j=a.firstChild ;j;j=j.nextSibling)this.distributionResolution(j)},poolDistribution:function(a,b ){if(!(a instanceof B))if(a instanceof A){var c=a;this.updateDependentAttributes (c.getAttribute("select"));for(var d=!1,e=0;e<b.length;e++){var a=b[e];a&&t(a,c) &&(q(a,c),b[e]=void 0,d=!0)}if(!d)for(var f=c.firstChild;f;f=f.nextSibling)q(f,c )}else for(var f=a.firstChild;f;f=f.nextSibling)this.poolDistribution(f,b)},buil dRenderTree:function(a,b){for(var c=this.compose(b),d=0;d<c.length;d++){var e=c[ d],f=a.append(e);this.buildRenderTree(f,e)}if(w(b)){var g=j(b);g.dirty=!1}},comp ose:function(a){for(var b=[],c=a.shadowRoot||a,d=c.firstChild;d;d=d.nextSibling) if(v(d)){this.associateNode(c);for(var e=f(d),g=0;g<e.length;g++){var h=e[g];u(d ,h)&&b.push(h)}}else b.push(d);return b},invalidateAttributes:function(){this.at tributes=Object.create(null)},updateDependentAttributes:function(a){if(a){var b= this.attributes;/\.\w+/.test(a)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.rep lace(/\[\s*([^\s=\|~\]]+)/g,function(a,c){b[c]=!0})}},dependsOnAttribute:functio n(a){return this.attributes[a]},associateNode:function(a){G(a).polymerShadowRend erer_=this}};var P=/^(:not\()?[*.#[a-zA-Z_|]/;C.prototype.invalidateShadowRender er=function(){var a=G(this).polymerShadowRenderer_;return a?(a.invalidate(),!0): !1},A.prototype.getDistributedNodes=B.prototype.getDistributedNodes=function(){r eturn h(),f(this)},z.prototype.getDestinationInsertionPoints=function(){return h (),r(this)||[]},A.prototype.nodeIsInserted_=B.prototype.nodeIsInserted_=function (){this.invalidateShadowRenderer();var a,b=k(this);b&&(a=l(b)),G(this).polymerSh adowRenderer_=a,a&&a.invalidate()},a.getRendererForHost=j,a.getShadowTrees=x,a.r enderAllPending=h,a.getDestinationInsertionPoints=r,a.visual={insertBefore:c,rem ove:d}}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b){if(wind ow[b]){d(!a.wrappers[b]);var i=function(a){c.call(this,a)};i.prototype=Object.cr eate(c.prototype),e(i.prototype,{get form(){return h(g(this).form)}}),f(window[b ],i,document.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTM LElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLBu ttonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenElement","HTMLL abelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputElement","HTMLTe xtAreaElement"];i.forEach(b)}(window.ShadowDOMPolyfill),function(a){"use strict" ;function b(a){d(a,this)}{var c=a.registerWrapper,d=a.setWrapper,e=a.unsafeUnwra p,f=a.unwrap,g=a.unwrapIfNeeded,h=a.wrap;window.Selection}b.prototype={get ancho rNode(){return h(e(this).anchorNode)},get focusNode(){return h(e(this).focusNode )},addRange:function(a){e(this).addRange(f(a))},collapse:function(a,b){e(this).c ollapse(g(a),b)},containsNode:function(a,b){return e(this).containsNode(g(a),b)} ,extend:function(a,b){e(this).extend(g(a),b)},getRangeAt:function(a){return h(e( this).getRangeAt(a))},removeRange:function(a){e(this).removeRange(f(a))},selectA llChildren:function(a){e(this).selectAllChildren(g(a))},toString:function(){retu rn e(this).toString()}},c(window.Selection,b,window.getSelection()),a.wrappers.S election=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){k.c all(this,a),this.treeScope_=new p(this,null)}function c(a){var c=document[a];b.p rototype[a]=function(){return C(c.apply(A(this),arguments))}}function d(a,b){F.c all(A(b),B(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,b)}function f( a,b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){z(a,this)}function h(a,b){var c=document.implementation[b];a.prototype[b]=function(){return C(c.app ly(A(this),arguments))}}function i(a,b){var c=document.implementation[b];a.proto type[b]=function(){return c.apply(A(this),arguments)}}var j=a.GetElementsByInter face,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.Select orsInterface,o=a.wrappers.ShadowRoot,p=a.TreeScope,q=a.cloneNode,r=a.defineWrapG etter,s=a.elementFromPoint,t=a.forwardMethodsToWrapper,u=a.matchesNames,v=a.mixi n,w=a.registerWrapper,x=a.renderAllPending,y=a.rewrap,z=a.setWrapper,A=a.unsafeU nwrap,B=a.unwrap,C=a.wrap,D=a.wrapEventTargetMethods,E=(a.wrapNodeList,new WeakM ap);b.prototype=Object.create(k.prototype),r(b,"documentElement"),r(b,"body"),r( b,"head"),["createComment","createDocumentFragment","createElement","createEleme ntNS","createEvent","createEventNS","createRange","createTextNode","getElementBy Id"].forEach(c);var F=document.adoptNode,G=document.getSelection;if(v(b.prototyp e,{adoptNode:function(a){return a.parentNode&&a.parentNode.removeChild(a),d(a,th is),a},elementFromPoint:function(a,b){return s(this,this,a,b)},importNode:functi on(a,b){return q(a,b,A(this))},getSelection:function(){return x(),new m(G.call(B (this)))},getElementsByName:function(a){return n.querySelectorAll.call(this,"[na me="+JSON.stringify(String(a))+"]")}}),document.registerElement){var H=document. registerElement;b.prototype.registerElement=function(b,c){function d(a){return a ?void z(a,this):f?document.createElement(f,b):document.createElement(b)}var e,f; if(void 0!==c&&(e=c.prototype,f=c.extends),e||(e=Object.create(HTMLElement.proto type)),a.nativePrototypeTable.get(e))throw new Error("NotSupportedError");for(va r g,h=Object.getPrototypeOf(e),i=[];h&&!(g=a.nativePrototypeTable.get(h));)i.pus h(h),h=Object.getPrototypeOf(h);if(!g)throw new Error("NotSupportedError");for(v ar j=Object.create(g),k=i.length-1;k>=0;k--)j=Object.create(j);["createdCallback ","attachedCallback","detachedCallback","attributeChangedCallback"].forEach(func tion(a){var b=e[a];b&&(j[a]=function(){C(this)instanceof d||y(this),b.apply(C(th is),arguments)})});var l={prototype:j};f&&(l.extends=f),d.prototype=e,d.prototyp e.constructor=d,a.constructorTable.set(j,d),a.nativePrototypeTable.set(e,j);H.ca ll(B(this),b,l);return d},t([window.HTMLDocument||window.Document],["registerEle ment"])}t([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HT MLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocumentPosition"," contains","getElementsByClassName","getElementsByTagName","getElementsByTagNameN S","insertBefore","querySelector","querySelectorAll","removeChild","replaceChild "].concat(u)),t([window.HTMLDocument||window.Document],["adoptNode","importNode" ,"contains","createComment","createDocumentFragment","createElement","createElem entNS","createEvent","createEventNS","createRange","createTextNode","elementFrom Point","getElementById","getElementsByName","getSelection"]),v(b.prototype,j),v( b.prototype,l),v(b.prototype,n),v(b.prototype,{get implementation(){var a=E.get( this);return a?a:(a=new g(B(this).implementation),E.set(this,a),a)},get defaultV iew(){return C(B(this).defaultView)}}),w(window.Document,b,document.implementati on.createHTMLDocument("")),window.HTMLDocument&&w(window.HTMLDocument,b),D([wind ow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]) ,h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g," hasFeature"),w(window.DOMImplementation,g),t([window.DOMImplementation],["create DocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeNo Remove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOMP olyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers. EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllPe nding,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getCompute dStyle,m=window.getDefaultComputedStyle,n=window.getSelection;b.prototype=Object .create(c.prototype),k.prototype.getComputedStyle=function(a,b){return j(this||w indow).getComputedStyle(i(a),b)},m&&(k.prototype.getDefaultComputedStyle=functio n(a,b){return j(this||window).getDefaultComputedStyle(i(a),b)}),k.prototype.getS election=function(){return j(this||window).getSelection()},delete window.getComp utedStyle,delete window.getDefaultComputedStyle,delete window.getSelection,["add EventListener","removeEventListener","dispatchEvent"].forEach(function(a){k.prot otype[a]=function(){var b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b.prototype,{getComputedStyle:function(a,b){return g(),l.call(h(t his),i(a),b)},getSelection:function(){return g(),new d(n.call(h(this)))},get doc ument(){return j(h(this).document)}}),m&&(b.prototype.getDefaultComputedStyle=fu nction(a,b){return g(),m.call(h(this),i(a),b)}),f(k,b,window),a.wrappers.Window= b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.unwrap,c=window.Da taTransfer||window.Clipboard,d=c.prototype.setDragImage;d&&(c.prototype.setDragI mage=function(a,c,e){d.call(this,b(a),c,e)})}(window.ShadowDOMPolyfill),function (a){"use strict";function b(a){var b;b=a instanceof f?a:new f(a&&e(a)),d(b,this) }var c=a.registerWrapper,d=a.setWrapper,e=a.unwrap,f=window.FormData;f&&(c(f,b,n ew f),a.wrappers.FormData=b)}(window.ShadowDOMPolyfill),function(a){"use strict" ;var b=a.unwrapIfNeeded,c=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype .send=function(a){return c.call(this,b(a))}}(window.ShadowDOMPolyfill),function( a){"use strict";function b(a){var b=c[a],d=window[b];if(d){var e=document.create Element(a),f=e.constructor;window[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElem ent",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body :"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCan vasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content: "HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:" HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListEle ment",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElem ent",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetEleme nt",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTML HtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputE lement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendEl ement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"H TMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"H TMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOLis tElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTML OutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreEle ment",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElem ent",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceEle ment",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",t body:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLText AreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLT itleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElem ent",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Object.getOwnPropertyN ames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]})}(window.ShadowDOM Polyfill),function(a){function b(a,c){var d,e,f,g,h=a.firstElementChild;for(e=[] ,f=a.shadowRoot;f;)e.push(f),f=f.olderShadowRoot;for(g=e.length-1;g>=0;g--)if(d= e[g].querySelector(c))return d;for(;h;){if(d=b(h,c))return d;h=h.nextElementSibl ing}return null}function c(a,b,d){var e,f,g,h,i,j=a.firstElementChild;for(g=[],f =a.shadowRoot;f;)g.push(f),f=f.olderShadowRoot;for(h=g.length-1;h>=0;h--)for(e=g [h].querySelectorAll(b),i=0;i<e.length;i++)d.push(e[i]);for(;j;)c(j,b,d),j=j.nex tElementSibling;return d}window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwra p=ShadowDOMPolyfill.unwrapIfNeeded,Object.defineProperty(Element.prototype,"webk itShadowRoot",Object.getOwnPropertyDescriptor(Element.prototype,"shadowRoot"));v ar d=Element.prototype.createShadowRoot;Element.prototype.createShadowRoot=funct ion(){var a=d.call(this);return CustomElements.watchShadow(this),a},Element.prot otype.webkitCreateShadowRoot=Element.prototype.createShadowRoot,a.queryAllShadow s=function(a,d,e){return e?c(a,d,[]):b(a,d)}}(window.Platform),function(a){funct ion b(a,b){var c="";return Array.prototype.forEach.call(a,function(a){c+=a.textC ontent+"\n\n"}),b||(c=c.replace(l,"")),c}function c(a){var b=document.createElem ent("style");return b.textContent=a,b}function d(a){var b=c(a);document.head.app endChild(b);var d=[];if(b.sheet)try{d=b.sheet.cssRules}catch(e){}else console.wa rn("sheet not found",b);return b.parentNode.removeChild(b),d}function e(){v.init ialized=!0,document.body.appendChild(v);var a=v.contentDocument,b=a.createElemen t("base");b.href=document.baseURI,a.head.appendChild(b)}function f(a){v.initiali zed||e(),document.body.appendChild(v),a(v.contentDocument),document.body.removeC hild(v)}function g(a,b){if(b){var e;if(a.match("@import")&&x){var g=c(a);f(funct ion(a){a.head.appendChild(g.impl),e=Array.prototype.slice.call(g.sheet.cssRules, 0),b(e)})}else e=d(a),b(e)}}function h(a){a&&j().appendChild(document.createText Node(a))}function i(a,b){var d=c(a);d.setAttribute(b,""),d.setAttribute(z,""),do cument.head.appendChild(d)}function j(){return w||(w=document.createElement("sty le"),w.setAttribute(z,""),w[z]=!0),w}var k={strictStyling:!1,registry:{},shimSty ling:function(a,c,d){var e=this.prepareRoot(a,c,d),f=this.isTypeExtension(d),g=t his.makeScopeSelector(c,f),h=b(e,!0);h=this.scopeCssText(h,g),a&&(a.shimmedStyle =h),this.addCssToDocument(h,c)},shimStyle:function(a,b){return this.shimCssText( a.textContent,b)},shimCssText:function(a,b){return a=this.insertDirectives(a),th is.scopeCssText(a,b)},makeScopeSelector:function(a,b){return a?b?"[is="+a+"]":a: ""},isTypeExtension:function(a){return a&&a.indexOf("-")<0},prepareRoot:function (a,b,c){var d=this.registerRoot(a,b,c);return this.replaceTextInStyles(d.rootSty les,this.insertDirectives),this.removeStyles(a,d.rootStyles),this.strictStyling& &this.applyScopeToContent(a,b),d.scopeStyles},removeStyles:function(a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)c.parentNode.removeChild(c)},registerRoot:fu nction(a,b,c){var d=this.registry[b]={root:a,name:b,extendsName:c},e=this.findSt yles(a);d.rootStyles=e,d.scopeStyles=d.rootStyles;var f=this.registry[d.extendsN ame];return f&&(d.scopeStyles=f.scopeStyles.concat(d.scopeStyles)),d},findStyles :function(a){if(!a)return[];var b=a.querySelectorAll("style");return Array.proto type.filter.call(b,function(a){return!a.hasAttribute(A)})},applyScopeToContent:f unction(a,b){a&&(Array.prototype.forEach.call(a.querySelectorAll("*"),function(a ){a.setAttribute(b,"")}),Array.prototype.forEach.call(a.querySelectorAll("templa te"),function(a){this.applyScopeToContent(a.content,b)},this))},insertDirectives :function(a){return a=this.insertPolyfillDirectivesInCssText(a),this.insertPolyf illRulesInCssText(a)},insertPolyfillDirectivesInCssText:function(a){return a=a.r eplace(m,function(a,b){return b.slice(0,-2)+"{"}),a.replace(n,function(a,b){retu rn b+" {"})},insertPolyfillRulesInCssText:function(a){return a=a.replace(o,funct ion(a,b){return b.slice(0,-1)}),a.replace(p,function(a,b,c,d){var e=a.replace(b, "").replace(c,"");return d+e})},scopeCssText:function(a,b){var c=this.extractUns copedRulesFromCssText(a);if(a=this.insertPolyfillHostInCssText(a),a=this.convert ColonHost(a),a=this.convertColonHostContext(a),a=this.convertShadowDOMSelectors( a),b){var a,d=this;g(a,function(c){a=d.scopeRules(c,b)})}return a=a+"\n"+c,a.tri m()},extractUnscopedRulesFromCssText:function(a){for(var b,c="";b=q.exec(a);)c+= b[1].slice(0,-1)+"\n\n";for(;b=r.exec(a);)c+=b[0].replace(b[2],"").replace(b[1], b[3])+"\n\n";return c},convertColonHost:function(a){return this.convertColonRule (a,cssColonHostRe,this.colonHostPartReplacer)},convertColonHostContext:function( a){return this.convertColonRule(a,cssColonHostContextRe,this.colonHostContextPar tReplacer)},convertColonRule:function(a,b,c){return a.replace(b,function(a,b,d,e ){if(b=polyfillHostNoCombinator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length; j>i&&(f=g[i]);i++)f=f.trim(),h.push(c(b,f,e));return h.join(",")}return b+e})},c olonHostContextPartReplacer:function(a,b,c){return b.match(s)?this.colonHostPart Replacer(a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplacer:function(a,b,c){retu rn a+b.replace(s,"")+c},convertShadowDOMSelectors:function(a){for(var b=0;b<shad owDOMSelectorsRe.length;b++)a=a.replace(shadowDOMSelectorsRe[b]," ");return a},s copeRules:function(a,b){var c="";return a&&Array.prototype.forEach.call(a,functi on(a){if(a.selectorText&&a.style&&void 0!==a.style.cssText)c+=this.scopeSelector (a.selectorText,b,this.strictStyling)+" {\n ",c+=this.propertiesFromRule(a)+ "\n}\n\n";else if(a.type===CSSRule.MEDIA_RULE)c+="@media "+a.media.mediaText+" { \n",c+=this.scopeRules(a.cssRules,b),c+="\n}\n\n";else try{a.cssText&&(c+=a.cssT ext+"\n\n")}catch(d){a.type===CSSRule.KEYFRAMES_RULE&&a.cssRules&&(c+=this.ieSaf eCssTextFromKeyFrameRule(a))}},this),c},ieSafeCssTextFromKeyFrameRule:function(a ){var b="@keyframes "+a.name+" {";return Array.prototype.forEach.call(a.cssRules ,function(a){b+=" "+a.keyText+" {"+a.style.cssText+"}"}),b+=" }"},scopeSelector: function(a,b,c){var d=[],e=a.split(",");return e.forEach(function(a){a=a.trim(), this.selectorNeedsScoping(a,b)&&(a=c&&!a.match(polyfillHostNoCombinator)?this.ap plyStrictSelectorScope(a,b):this.applySelectorScope(a,b)),d.push(a)},this),d.joi n(", ")},selectorNeedsScoping:function(a,b){if(Array.isArray(b))return!0;var c=t his.makeScopeMatcher(b);return!a.match(c)},makeScopeMatcher:function(a){return a =a.replace(/\[/g,"\\[").replace(/\[/g,"\\]"),new RegExp("^("+a+")"+selectorReSuf fix,"m")},applySelectorScope:function(a,b){return Array.isArray(b)?this.applySel ectorScopeList(a,b):this.applySimpleSelectorScope(a,b)},applySelectorScopeList:f unction(a,b){for(var c,d=[],e=0;c=b[e];e++)d.push(this.applySimpleSelectorScope( a,c));return d.join(", ")},applySimpleSelectorScope:function(a,b){return a.match (polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,b),a.replace(polyfillHost Re,b+" ")):b+" "+a},applyStrictSelectorScope:function(a,b){b=b.replace(/\[is=([^ \]]*)\]/g,"$1");var c=[" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(functio n(a){var b=d.split(a);d=b.map(function(a){var b=a.trim().replace(polyfillHostRe, "");return b&&c.indexOf(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1 "+e+"$2$3")),a}).join(a)}),d},insertPolyfillHostInCssText:function(a){return a.r eplace(colonHostContextRe,t).replace(colonHostRe,s)},propertiesFromRule:function (a){var b=a.style.cssText;a.style.content&&!a.style.content.match(/['"]+|attr/)& &(b=b.replace(/content:[^;]*;/g,"content: '"+a.style.content+"';"));var c=a.styl e;for(var d in c)"initial"===c[d]&&(b+=d+": initial; ");return b},replaceTextInS tyles:function(a,b){a&&b&&(a instanceof Array||(a=[a]),Array.prototype.forEach.c all(a,function(a){a.textContent=b.call(this,a.textContent)},this))},addCssToDocu ment:function(a,b){a.match("@import")?i(a,b):h(a)}},l=/\/\*[^*]*\*+([^/*][^*]*\* +)*\//gim,m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,n=/polyf ill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,o=/\/\*\s @polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p=/(polyfill-rule)[^}]*(content\: [\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,q=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^ /*][^*]*\*+)*)\//gim,r=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['" ])[;\s]*[^}]*}/gim,s="-shadowcsshost",t="-shadowcsscontext",u=")(?:\\(((?:\\([^) (]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new RegExp("("+s+u,"gim"),cssColo nHostContextRe=new RegExp("("+t+u,"gim"),selectorReSuffix="([>\\s~+[.,{:][\\s\\S ]*)?$",colonHostRe=/\:host/gim,colonHostContextRe=/\:host-context/gim,polyfillHo stNoCombinator=s+"-no-combinator",polyfillHostRe=new RegExp(s,"gim"),polyfillHos tContextRe=new RegExp(t,"gim"),shadowDOMSelectorsRe=[/\^\^/g,/\^/g,/\/shadow\//g ,/\/shadow-deep\//g,/::shadow/g,/\/deep\//g,/::content/g];var v=document.createE lement("iframe");v.style.display="none";var w,x=navigator.userAgent.match("Chrom e"),y="shim-shadowdom",z="shim-shadowdom-css",A="no-shim";if(window.ShadowDOMPol yfill){h("style { display: none !important; }\n");var B=wrap(document),C=B.query Selector("head");C.insertBefore(j(),C.childNodes[0]),document.addEventListener(" DOMContentLoaded",function(){a.urlResolver;if(window.HTMLImports&&!HTMLImports.u seNative){var b="link[rel=stylesheet]["+y+"]",c="style["+y+"]";HTMLImports.impor ter.documentPreloadSelectors+=","+b,HTMLImports.importer.importsPreloadSelectors +=","+b,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSelecto rs,b,c].join(",");var d=HTMLImports.parser.parseGeneric;HTMLImports.parser.parse Generic=function(a){if(!a[z]){var b=a.__importElement||a;if(!b.hasAttribute(y))r eturn void d.call(this,a);a.__resource&&(b=a.ownerDocument.createElement("style" ),b.textContent=a.__resource),HTMLImports.path.resolveUrlsInStyle(b),b.textConte nt=k.shimStyle(b),b.removeAttribute(y,""),b.setAttribute(z,""),b[z]=!0,b.parentN ode!==C&&(a.parentNode===C?C.replaceChild(b,a):this.addElementToDocument(b)),b._ _importParsed=!0,this.markParsingComplete(a),this.parseNext()}};var e=HTMLImport s.parser.hasResource;HTMLImports.parser.hasResource=function(a){return"link"===a .localName&&"stylesheet"===a.rel&&a.hasAttribute(y)?a.__resource:e.call(this,a)} }})}a.ShadowCSS=k}(window.Platform)):!function(){window.wrap=window.unwrap=funct ion(a){return a},addEventListener("DOMContentLoaded",function(){if(CustomElement s.useNative===!1){var a=Element.prototype.createShadowRoot;Element.prototype.cre ateShadowRoot=function(){var b=a.call(this);return CustomElements.watchShadow(th is),b}}})}(window.Platform),function(a){"use strict";function b(a){return void 0 !==m[a]}function c(){h.call(this),this._isInvalid=!0}function d(a){return""==a&& c.call(this),a.toLowerCase()}function e(a){var b=a.charCodeAt(0);return b>32&&12 7>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function f(a){va r b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,96].indexOf(b)?a:encode URIComponent(a)}function g(a,g,h){function i(a){t.push(a)}var j=g||"scheme start ",k=0,l="",r=!1,s=!1,t=[];a:for(;(a[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k ];switch(j){case"scheme start":if(!u||!p.test(u)){if(g){i("Invalid scheme.");bre ak a}l="",j="no scheme";continue}l+=u.toLowerCase(),j="scheme";break;case"scheme ":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u){if(g){if(o==u)break a;i("Co de point not allowed in scheme: "+u);break a}l="",k=0,j="no scheme";continue}if( this._scheme=l,l="",g)break a;b(this._scheme)&&(this._isRelative=!0),j="file"==t his._scheme?"relative":this._isRelative&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"sc heme data":"?"==u?(query="?",j="query"):"#"==u?(this._fragment="#",j="fragment") :o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._schemeData+=e(u));break;case"no s cheme":if(h&&b(h._scheme)){j="relative";continue}i("Missing scheme."),c.call(thi s);break;case"relative or authority":if("/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes";break;case"relative":if (this._isRelative=!0,"file"!=this._scheme&&(this._scheme=h._scheme),o==u){this._ host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query; break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid code point."),j="relativ e slash";else if("?"==u)this._host=h._host,this._port=h._port,this._path=h._path .slice(),this._query="?",j="query";
15 else{if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v& &"|"!=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port= h._port,this._path=h._path.slice(),this._path.pop()),j="relative path";continue} this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._ query,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\" !=u){"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative p ath";continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme? "file host":"authority ignore slashes";break;case"authority first slash":if("/"! =u){i("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authorit y second slash";break;case"authority second slash":if(j="authority ignore slashe s","/"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slash es":if("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u); break;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!= =this._password){var z=e(y);null!==this._password?this._password+=z:this._userna me+=z}else this._password="";else i("Invalid whitespace in authority.")}l=""}els e{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l +=u}break;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length| |!p.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._ host=d.call(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"hos t":case"hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(thi s._host=d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point i n host/hostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname" ==g)break a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"= =u||"?"==u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this. _port=A+""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\ n"==u||"\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relat ive path start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/" !=u&&"\\"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"? "!=u&&"#"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowe d in relative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.po p(),"/"!=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.pus h(""):"."!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l [0])&&"|"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j ="query"):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u? o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragm ent");break;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+ =u)}k++}}function h(){this._scheme="",this._schemeData="",this._username="",this ._password=null,this._host="",this._port="",this._path=[],this._query="",this._f ragment="",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instanceof i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)tr y{var k=new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=O bject.create(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m .wss=443;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n[ "%2e%2e"]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){if(this._isInvalid)return this._url;var a="";return(""!=this._username||n ull!=this._password)&&(a=this._username+(null!=this._password?":"+this._password :"")+"@"),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+thi s._query+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol() {return this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","sc heme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+thi s._port:this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this, a,"host")},get hostname(){return this._host},set hostname(a){!this._isInvalid&&t his._isRelative&&g.call(this,a,"hostname")},get port(){return this._port},set po rt(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){ return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._scheme Data},set pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call( this,a,"relative path start"))},get search(){return this._isInvalid||!this._quer y||"?"==this._query?"":this._query},set search(a){!this._isInvalid&&this._isRela tive&&(this._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get ha sh(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragm ent},set hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)), g.call(this,a,"fragment"))}};var r=a.URL;r&&(i.createObjectURL=function(){return r.createObjectURL.apply(r,arguments)},i.revokeObjectURL=function(a){r.revokeObj ectURL(a)}),a.URL=i}}(this),function(){Function.prototype.bind||(Function.protot ype.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)}})}(wi ndow.Platform),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){ return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}fun ction d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1 ;a.forEach(function(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b= !0)}),b&&d()}function e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forE ach(function(b){b.observer===a&&b.removeTransientObservers()})})}function f(a,b) {for(var c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){v ar f=d[e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}functio n g(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h (a,b){this.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.pre viousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNa mespace=null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);retur n b.addedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.prev iousSibling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attr ibuteName,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}func tion j(a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x) }function l(){w=x=void 0}function m(a){return a===x||a===w}function n(a,b){retur n a===b?a:x&&m(a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.op tions=c,this.transientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate ;if(!q){var r=[],s=String(Math.random());window.addEventListener("message",funct ion(a){if(a.data===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){ r.push(a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:func tion(a,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOl dValue&&!b.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attribute s||b.characterDataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a );d||p.set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f], e.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.rem oveListeners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:functi on(){var a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueu e:function(a){var c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1 ],f=n(e,a);if(f)return void(c[d-1]=f)}else b(this.observer);c[d]=a},addListeners :function(){this.addListeners_(this.target)},addListeners_:function(a){var b=thi s.options;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characte rData&&a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.add EventListener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventLis tener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners _(this.target)},removeListeners_:function(a){var b=this.options;b.attributes&&a. removeEventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventLis tener("DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DO MNodeInserted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNode Removed",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.add Listeners_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[] ),b.push(this)}},removeTransientObservers:function(){var a=this.transientObserve dNodes;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.stopImmediatePropagation(),a.type){case "DOMAttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange== =MutationEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a. attributeFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1 ===a.attributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"D OMCharacterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d ,function(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});brea k;case"DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted" :var h,i,d=a.relatedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[ ],i=[m]);var n=m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes =h,e.removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a .childList?e:void 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.Mutati onObserver=g)}(this),window.HTMLImports=window.HTMLImports||{flags:{}},function( a){function b(a,b){b=b||o,d(function(){f(a,b)},b)}function c(a){return"complete" ===a.readyState||a.readyState===q}function d(a,b){if(c(b))a&&a();else{var e=func tion(){("complete"===b.readyState||b.readyState===q)&&(b.removeEventListener(r,e ),d(a,b))};b.addEventListener(r,e)}}function e(a){a.target.__loaded=!0}function f(a,b){function c(){h==i&&a&&a()}function d(a){e(a),h++,c()}var f=b.querySelecto rAll("link[rel=import]"),h=0,i=f.length;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g(j )?d.call(j,{target:j}):(j.addEventListener("load",d),j.addEventListener("error", d));else c()}function g(a){return l?a.__loaded||a.import&&"loading"!==a.import.r eadyState:a.__importParsed}function h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]); c++)i(b)&&j(b)}function i(a){return"link"===a.localName&&"import"===a.rel}functi on j(a){var b=a.import;b?e({target:a}):(a.addEventListener("load",e),a.addEventL istener("error",e))}var k="import"in document.createElement("link"),l=k;isIE=/Tr ident/.test(navigator.userAgent);var m=Boolean(window.ShadowDOMPolyfill),n=funct ion(a){return m?ShadowDOMPolyfill.wrapIfNeeded(a):a},o=n(document),p={get:functi on(){var a=HTMLImports.currentScript||document.currentScript||("complete"!==docu ment.readyState?document.scripts[document.scripts.length-1]:null);return n(a)},c onfigurable:!0};Object.defineProperty(document,"_currentScript",p),Object.define Property(o,"_currentScript",p);var q=isIE?"complete":"interactive",r="readystate change";l&&(new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[ c]);c++)b.addedNodes&&h(b.addedNodes)}).observe(document.head,{childList:!0}),fu nction(){if("loading"===document.readyState)for(var a,b=document.querySelectorAl l("link[rel=import]"),c=0,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTM LImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=l,a.isImportLoaded =g,a.whenReady=b,a.isIE=isIE,a.whenImportsReady=b}(window.HTMLImports),function( a){var b=(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,th is.oncomplete=b,this.inflight=0,this.pending={}};d.prototype={addNodes:function( a){this.inflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.requi re(b);this.checkDone()},addNode:function(a){this.inflight++,this.require(a),this .checkDone()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe( b,a)||this.fetch(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pendi ng[a].push(b),!0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail( ),!0):(this.pending[a]=[b],!1)},fetch:function(a,d){if(c.load&&console.log("fetc h",a,d),a.match(/^data:/)){var e=a.split(","),f=e[0],g=e[1];g=f.indexOf(";base64 ")>-1?atob(g):decodeURIComponent(g),setTimeout(function(){this.receive(a,d,null, g)}.bind(this),0)}else{var h=function(b,c,e){this.receive(a,d,b,c,e)}.bind(this) ;b.load(a,h)}},receive:function(a,b,c,d,e){this.cache[a]=d;for(var f,g=this.pend ing[a],h=0,i=g.length;i>h&&(f=g[h]);h++)this.onload(a,f,d,c,e),this.tail();this. pending[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:fun ction(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){ var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.rando m()),f.open("GET",c,b.async),f.addEventListener("readystatechange",function(){if (4===f.readyState){var a=f.getResponseHeader("Location"),c=null;if(a)var c="/"== =a.substr(0,1)?location.origin+a:a;d.call(e,!b.ok(f)&&f,f.response||f.responseTe xt,c)}}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType= "document"}},a.xhr=b,a.Loader=d}(window.HTMLImports),function(a){function b(a){r eturn"link"===a.localName&&a.rel===g}function c(a){var b=d(a);return"data:text/j avascript;charset=utf-8,"+encodeURIComponent(b)}function d(a){return a.textConte nt+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c=" ["+Math.floor(1e3*(Math.random()+1))+"]",d=a.textContent.match(/Polymer\(['"]([^ '"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourceURL="+b+"\n"}function f(a ){var b=a.ownerDocument.createElement("style");return b.textContent=a.textConten t,n.resolveUrlsInStyle(b),b}var g="import",h=a.flags,i=a.isIE,j=window.ShadowDOM Polyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={documentSel ectors:"link[rel="+g+"]",importsSelectors:["link[rel="+g+"]","link[rel=styleshee t]","style","script:not([type])",'script[type="text/javascript"]'].join(","),map :{link:"parseLink",script:"parseScript",style:"parseStyle"},parseNext:function() {var a=this.nextToParse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a ))return void(h.parse&&console.log("[%s] is already parsed",a.localName));var b= this[this.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},markParsing :function(a){h.parse&&console.log("parsing",a),this.parsingElement=a},markParsin gComplete:function(a){a.__importParsed=!0,a.__importElement&&(a.__importElement. __importParsed=!0),this.parsingElement=null,h.parse&&console.log("completed",a)} ,invalidateParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__importLink .__importParsed=!1,this.parseSoon())},parseSoon:function(){this._parseSoon&&canc elAnimationFrame(this._parseDelay);var a=this;this._parseSoon=requestAnimationFr ame(function(){a.parseNext()})},parseImport:function(a){if(HTMLImports.__imports ParsingHook&&HTMLImports.__importsParsingHook(a),a.import&&(a.import.__importPar sed=!0),this.markParsingComplete(a),a.dispatchEvent(a.__resource&&!a.__error?new CustomEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pen ding)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.p arseNext()},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.p arseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this. parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),this.addElementTo Document(a)},rootImportForElement:function(a){for(var b=a;b.ownerDocument.__impo rtLink;)b=b.ownerDocument.__importLink;return b},addElementToDocument:function(a ){for(var b=this.rootImportForElement(a.__importElement||a),c=b.__insertedElemen ts=b.__insertedElements||0,d=b.nextElementSibling,e=0;c>e;e++)d=d&&d.nextElement Sibling;b.parentNode.insertBefore(a,d)},trackElement:function(a,b){var c=this,d= function(d){b&&b(d),c.markParsingComplete(a),c.parseNext()};if(a.addEventListene r("load",d),a.addEventListener("error",d),i&&"style"===a.localName){var e=!1;if( -1==a.textContent.indexOf("@import"))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sh eet.cssRules,h=g?g.length:0,j=0;h>j&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&& (e=e&&Boolean(f.styleSheet))}e&&a.dispatchEvent(new CustomEvent("load",{bubbles: !1}))}},parseScript:function(b){var d=document.createElement("script");d.__impor tElement=b,d.src=b.src?b.src:c(b),a.currentScript=b,this.trackElement(d,function (){d.parentNode.removeChild(d),a.currentScript=null}),this.addElementToDocument( d)},nextToParse:function(){return this._mayParse=[],!this.parsingElement&&this.n extToParseInDoc(j)},nextToParseInDoc:function(a,c){if(a&&this._mayParse.indexOf( a)<0){this._mayParse.push(a);for(var d,e=a.querySelectorAll(this.parseSelectorsF orNode(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.has Resource(d)?b(d)?this.nextToParseInDoc(d.import,d):d:void 0}return c},parseSelec torsForNode:function(a){var b=a.ownerDocument||a;return b===j?this.documentSelec tors:this.importsSelectors},isParsed:function(a){return a.__importParsed},hasRes ource:function(a){return b(a)&&void 0===a.import?!1:!0}},l=/(url\()([^)]*)(\))/g ,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsInStyle:function(a){var b= a.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCs sText(a.textContent,c),a},resolveUrlsInCssText:function(a,b){var c=this.replaceU rls(a,b,l);return c=this.replaceUrls(c,b,m)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace(/["']/g,"");return b.href=f,f=b.hr ef,c+"'"+f+"'"+e})}};a.parser=k,a.path=n}(HTMLImports),function(a){function b(a) {return c(a,g)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel") ===b}function d(a,b){var c=a;c instanceof Document||(c=document.implementation.c reateHTMLDocument(g)),c._URL=b;var d=c.createElement("base");d.setAttribute("hre f",b),c.baseURI||(c.baseURI=b);var e=c.createElement("meta");return e.setAttribu te("charset","utf-8"),c.head.appendChild(e),c.head.appendChild(d),a instanceof D ocument||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bo otstrap&&HTMLTemplateElement.bootstrap(c),c}var e=a.useNative,f=a.flags,g="impor t",h=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document; if(e)var i={};else{var j=(a.xhr,a.Loader),k=a.parser,i={documents:{},documentPre loadSelectors:"link[rel="+g+"]",importsPreloadSelectors:["link[rel="+g+"]"].join (","),loadNode:function(a){l.addNode(a)},loadSubtree:function(a){var b=this.mars halNodes(a);l.addNodes(b)},marshalNodes:function(a){return a.querySelectorAll(th is.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a.ownerDocum ent||a;return b===h?this.documentPreloadSelectors:this.importsPreloadSelectors}, loaded:function(a,c,e,g,h){if(f.load&&console.log("loaded",a,c),c.__resource=e,c .__error=g,b(c)){var i=this.documents[a];void 0===i&&(i=g?null:d(e,h||a),i&&(i._ _importLink=c,this.bootDocument(i)),this.documents[a]=i),c.import=i}k.parseNext( )},bootDocument:function(a){this.loadSubtree(a),this.observe(a),k.parseNext()},l oadedAll:function(){k.parseNext()}},l=new j(i.loaded.bind(i),i.loadedAll.bind(i) );if(!document.baseURI){var m={get:function(){var a=document.querySelector("base ");return a?a.href:window.location.href},configurable:!0};Object.defineProperty( document,"baseURI",m),Object.defineProperty(h,"baseURI",m)}"function"!=typeof wi ndow.CustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent(" HTMLEvents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b .detail),c})}a.importer=i,a.IMPORT_LINK_TYPE=g,a.importLoader=l}(window.HTMLImpo rts),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"child List"===b.type&&b.addedNodes.length&&c(b.addedNodes)}function c(a){for(var b,e,g =0,h=a.length;h>g&&(e=a[g]);g++)b=b||e.ownerDocument,d(e)&&f.loadNode(e),e.child ren&&e.children.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.cal l(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:! 0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=(a.parser,HTMLElement.prototype.matc hes||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesS elector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatch esSelector),h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),func tion(){function a(){HTMLImports.importer.bootDocument(b)}var b=window.ShadowDOMP olyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.use Native||("complete"===document.readyState||"interactive"===document.readyState&& !window.attachEvent?a():document.addEventListener("DOMContentLoaded",a))}(),wind ow.CustomElements=window.CustomElements||{flags:{}},function(a){function b(a,c,d ){var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMEN T_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;ret urn null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}fu nction d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,d)}function e(a){ return h(a)?(i(a),!0):void l(a)}function f(a){d(a,function(a){return e(a)?!0:voi d 0})}function g(a){return e(a)||f(a)}function h(b){if(!b.__upgraded__&&b.nodeTy pe===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c]; if(d)return B.dom&&console.group("upgrade:",b.localName),a.upgrade(b),B.dom&&con sole.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(a)})}function j(a ){if(G.push(a),!F){F=!0;var b=window.Platform&&window.Platform.endOfMicrotask||s etTimeout;b(k)}}function k(){F=!1;for(var a,b=G,c=0,d=b.length;d>c&&(a=b[c]);c++ )a();G=[]}function l(a){D?j(function(){m(a)}):m(a)}function m(a){(a.attachedCall back||a.detachedCallback||a.__upgraded__&&B.dom)&&(B.dom&&console.group("inserte d:",a.localName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__inserted<1&&(a.__in serted=1),a.__inserted>1?B.dom&&console.warn("inserted:",a.localName,"insert/rem ove count:",a.__inserted):a.attachedCallback&&(B.dom&&console.log("inserted:",a. localName),a.attachedCallback())),B.dom&&console.groupEnd())}function n(a){o(a), d(a,function(a){o(a)})}function o(a){D?j(function(){p(a)}):p(a)}function p(a){(a .attachedCallback||a.detachedCallback||a.__upgraded__&&B.dom)&&(B.dom&&console.g roup("removed:",a.localName),r(a)||(a.__inserted=(a.__inserted||0)-1,a.__inserte d>0&&(a.__inserted=0),a.__inserted<0?B.dom&&console.warn("removed:",a.localName, "insert/remove count:",a.__inserted):a.detachedCallback&&a.detachedCallback()),B .dom&&console.groupEnd())}function q(a){return window.ShadowDOMPolyfill?ShadowDO MPolyfill.wrapIfNeeded(a):a}function r(a){for(var b=a,c=q(document);b;){if(b==c) return!0;b=b.parentNode||b.host}}function s(a){if(a.shadowRoot&&!a.shadowRoot.__ watched){B.dom&&console.log("watching shadow-root for: ",a.localName);for(var b= a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}function t(a){w(a)}function u(a){if(B. dom){var b=a[0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._U RL||c.host&&c.host.localName)||"";d=d.split("/?").shift().split("/").pop()}conso le.group("mutations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList" ===a.type&&(H(a.addedNodes,function(a){a.localName&&g(a)}),H(a.removedNodes,func tion(a){a.localName&&n(a)}))}),B.dom&&console.groupEnd()}function v(a){for(void 0===a&&(a=document);a.parentNode;)a=a.parentNode;var b=a.__observer;b&&(u(b.take Records()),k())}function w(a){if(!a.__observer){var b=new MutationObserver(u);b. observe(a,{childList:!0,subtree:!0}),a.__observer=b}}function x(a){w(a)}function y(a){B.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop()),g(a), B.dom&&console.groupEnd()}function z(a){E=[],A(a),E=null}function A(a){if(a=q(a) ,!(E.indexOf(a)>=0)){E.push(a);for(var b,c=a.querySelectorAll("link[rel="+C+"]") ,d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__parsed&&A(b.import);y(a)} }var B=window.logFlags||{},C=window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE:"no ne",D=!window.MutationObserver||window.MutationObserver===window.JsMutationObser ver;a.hasPolyfillMutations=D;var E,F=!1,G=[],H=Array.prototype.forEach.call.bind (Array.prototype.forEach);a.IMPORT_LINK_TYPE=C,a.watchShadow=s,a.upgradeDocument Tree=z,a.upgradeAll=g,a.upgradeSubtree=f,a.insertedNode=i,a.observeDocument=x,a. upgradeDocument=y,a.takeRecords=v}(window.CustomElements),function(a){function b (b,g){var h=g||{};if(!b)throw new Error("document.registerElement: first argumen t `name` must not be empty");if(b.indexOf("-")<0)throw new Error("document.regis terElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerElem ent' on 'Document': Registration failed for type '"+String(b)+"'. The type name is invalid.");if(n(b))throw new Error("DuplicateDefinitionError: a type with nam e '"+String(b)+"' is already registered");if(!h.prototype)throw new Error("Optio ns missing required prototype property");return h.__name=b.toLowerCase(),h.lifec ycle=h.lifecycle||{},h.ancestry=d(h.extends),e(h),f(h),l(h.prototype),o(h.__name ,h),h.ctor=p(h),h.ctor.prototype=h.prototype,h.prototype.constructor=h.ctor,a.re ady&&a.upgradeDocumentTree(document),h.ctor}function c(a){for(var b=0;b<y.length ;b++)if(a===y[b])return!0}function d(a){var b=n(a);return b?d(b.extends).concat( [b]):[]}function e(a){for(var b,c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.ta g;a.tag=c||a.__name,c&&(a.is=a.__name)}function f(a){if(!Object.__proto__){var b =HTMLElement.prototype;if(a.is){var c=document.createElement(a.tag),d=Object.get PrototypeOf(c);d===a.prototype&&(b=d)}for(var e,f=a.prototype;f&&f!==b;)e=Object .getPrototypeOf(f),f.__proto__=e,f=e;a.native=b}}function g(a){return h(B(a.tag) ,a)}function h(b,c){return c.is&&b.setAttribute("is",c.is),i(b,c),b.__upgraded__ =!0,k(b),a.insertedNode(b),a.upgradeSubtree(b),b}function i(a,b){Object.__proto_ _?a.__proto__=b.prototype:(j(a,b.prototype,b.native),a.__proto__=b.prototype)}fu nction j(a,b,c){for(var d={},e=b;e!==c&&e!==HTMLElement.prototype;){for(var f,g= Object.getOwnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Ob ject.getOwnPropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.createdCallback&&a.createdCallback()}function l(a){if(!a.setAttribute._p olyfilled){var b=a.setAttribute;a.setAttribute=function(a,c){m.call(this,a,c,b)} ;var c=a.removeAttribute;a.removeAttribute=function(a){m.call(this,a,null,c)},a. setAttribute._polyfilled=!0}}function m(a,b,c){a=a.toLowerCase();var d=this.getA ttribute(a);c.apply(this,arguments);var e=this.getAttribute(a);this.attributeCha ngedCallback&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){return a ?z[a.toLowerCase()]:void 0}function o(a,b){z[a]=b}function p(a){return function( ){return g(a)}}function q(a,b,c){return a===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);if(c){if(a==c.tag&&b==c.is)return new c.ctor;if(!b&&!c.is)return new c .ctor}if(b){var d=r(a);return d.setAttribute("is",b),d}var d=B(a);return a.index Of("-")>=0&&i(d,HTMLElement),d}function s(a){if(!a.__upgraded__&&a.nodeType===No de.ELEMENT_NODE){var b=a.getAttribute("is"),c=n(b||a.localName);if(c){if(b&&c.ta g==a.localName)return h(a,c);if(!b&&!c.extends)return h(a,c)}}}function t(b){var c=D.call(this,b);return a.upgradeAll(c),c}a||(a=window.CustomElements={flags:{} });var u=a.flags,v=Boolean(document.registerElement),w=!u.register&&v&&!window.S hadowDOMPolyfill&&(!window.HTMLImports||HTMLImports.useNative);if(w){var x=funct ion(){};a.registry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAl l=x,a.upgradeSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDocument Tree=x,a.takeRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","color- profile","font-face","font-face-src","font-face-uri","font-face-format","font-fa ce-name","missing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.creat eElement.bind(document),C=document.createElementNS.bind(document),D=Node.prototy pe.cloneNode;document.registerElement=b,document.createElement=r,document.create ElementNS=q,Node.prototype.cloneNode=t,a.registry=z,a.upgrade=s}var E;E=Object._ _proto__||w?function(a,b){return a instanceof b}:function(a,b){for(var c=a;c;){i f(c===b.prototype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reservedTagL ist=y,document.register=document.registerElement,a.hasNative=v,a.useNative=w}(wi ndow.CustomElements),function(a){function b(a){return"link"===a.localName&&a.get Attribute("rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],m ap:{link:"parseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b=a.qu erySelectorAll(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),CustomEle ments.upgradeDocument(a),CustomElements.observeDocument(a)}},parseLink:function( a){b(a)&&this.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.import )}},e=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d,a.IM PORT_LINK_TYPE=c}(window.CustomElements),function(a){function b(){CustomElements .parser.parse(document),CustomElements.upgradeDocument(document),window.HTMLImpo rts&&(HTMLImports.__importsParsingHook=function(a){CustomElements.parser.parse(a .import)}),CustomElements.ready=!0,setTimeout(function(){CustomElements.readyTim e=Date.now(),window.HTMLImports&&(CustomElements.elapsed=CustomElements.readyTim e-HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsRe ady",{bubbles:!0}))})}if("function"!=typeof window.CustomEvent&&(window.CustomEv ent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");return c.ini tCustomEvent(a,Boolean(b.bubbles),Boolean(b.cancelable),b.detail),c},window.Cust omEvent.prototype=window.Event.prototype),"complete"===document.readyState||a.fl ags.eager)b();else if("interactive"!==document.readyState||window.attachEvent||w indow.HTMLImports&&!window.HTMLImports.ready){var c=window.HTMLImports&&!HTMLImp orts.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(c,b)}e lse b()}(window.CustomElements),function(){if(window.ShadowDOMPolyfill){var a=[" upgradeAll","upgradeSubtree","observeDocument","upgradeDocument"],b={};a.forEach (function(a){b[a]=CustomElements[a]}),a.forEach(function(a){CustomElements[a]=fu nction(c){return b[a](wrap(c))}})}}(),function(a){"use strict";function b(){wind ow.Polymer===e&&(window.Polymer=function(){throw new Error('You tried to use pol ymer without loading it first. To load polymer, <link rel="import" href="compone nts/polymer/polymer.html">')})}if(!window.performance){var c=Date.now();window.p erformance={now:function(){return Date.now()-c}}}window.requestAnimationFrame||( window.requestAnimationFrame=function(){var a=window.webkitRequestAnimationFrame ||window.mozRequestAnimationFrame;return a?function(b){return a(function(){b(per formance.now())})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.ca ncelAnimationFrame||(window.cancelAnimationFrame=function(){return window.webkit CancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a ) 15 else{if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v& &"|"!=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port= h._port,this._path=h._path.slice(),this._path.pop()),j="relative path";continue} this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._ query,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\" !=u){"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative p ath";continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme? "file host":"authority ignore slashes";break;case"authority first slash":if("/"! =u){i("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authorit y second slash";break;case"authority second slash":if(j="authority ignore slashe s","/"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slash es":if("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u); break;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!= =this._password){var z=e(y);null!==this._password?this._password+=z:this._userna me+=z}else this._password="";else i("Invalid whitespace in authority.")}l=""}els e{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l +=u}break;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length| |!p.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._ host=d.call(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"hos t":case"hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(thi s._host=d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point i n host/hostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname" ==g)break a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"= =u||"?"==u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this. _port=A+""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\ n"==u||"\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relat ive path start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/" !=u&&"\\"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"? "!=u&&"#"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowe d in relative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.po p(),"/"!=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.pus h(""):"."!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l [0])&&"|"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j ="query"):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u? o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragm ent");break;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+ =u)}k++}}function h(){this._scheme="",this._schemeData="",this._username="",this ._password=null,this._host="",this._port="",this._path=[],this._query="",this._f ragment="",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instanceof i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)tr y{var k=new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=O bject.create(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m .wss=443;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n[ "%2e%2e"]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){if(this._isInvalid)return this._url;var a="";return(""!=this._username||n ull!=this._password)&&(a=this._username+(null!=this._password?":"+this._password :"")+"@"),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+thi s._query+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol() {return this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","sc heme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+thi s._port:this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this, a,"host")},get hostname(){return this._host},set hostname(a){!this._isInvalid&&t his._isRelative&&g.call(this,a,"hostname")},get port(){return this._port},set po rt(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){ return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._scheme Data},set pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call( this,a,"relative path start"))},get search(){return this._isInvalid||!this._quer y||"?"==this._query?"":this._query},set search(a){!this._isInvalid&&this._isRela tive&&(this._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get ha sh(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragm ent},set hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)), g.call(this,a,"fragment"))}};var r=a.URL;r&&(i.createObjectURL=function(){return r.createObjectURL.apply(r,arguments)},i.revokeObjectURL=function(a){r.revokeObj ectURL(a)}),a.URL=i}}(this),function(){Function.prototype.bind||(Function.protot ype.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)}})}(wi ndow.Platform),function(a){function b(a){u.push(a),t||(t=!0,q(d))}function c(a){ return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}fun ction d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.uid_-b.uid_});var b=!1 ;a.forEach(function(a){var c=a.takeRecords();e(a),c.length&&(a.callback_(c,a),b= !0)}),b&&d()}function e(a){a.nodes_.forEach(function(b){var c=p.get(b);c&&c.forE ach(function(b){b.observer===a&&b.removeTransientObservers()})})}function f(a,b) {for(var c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var e=0;e<d.length;e++){v ar f=d[e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f.enqueue(h)}}}}functio n g(a){this.callback_=a,this.nodes_=[],this.records_=[],this.uid_=++v}function h (a,b){this.type=a,this.target=b,this.addedNodes=[],this.removedNodes=[],this.pre viousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNa mespace=null,this.oldValue=null}function i(a){var b=new h(a.type,a.target);retur n b.addedNodes=a.addedNodes.slice(),b.removedNodes=a.removedNodes.slice(),b.prev iousSibling=a.previousSibling,b.nextSibling=a.nextSibling,b.attributeName=a.attr ibuteName,b.attributeNamespace=a.attributeNamespace,b.oldValue=a.oldValue,b}func tion j(a,b){return w=new h(a,b)}function k(a){return x?x:(x=i(w),x.oldValue=a,x) }function l(){w=x=void 0}function m(a){return a===x||a===w}function n(a,b){retur n a===b?a:x&&m(a)?x:null}function o(a,b,c){this.observer=a,this.target=b,this.op tions=c,this.transientObservedNodes=[]}var p=new WeakMap,q=window.msSetImmediate ;if(!q){var r=[],s=String(Math.random());window.addEventListener("message",funct ion(a){if(a.data===s){var b=r;r=[],b.forEach(function(a){a()})}}),q=function(a){ r.push(a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.prototype={observe:func tion(a,b){if(a=c(a),!b.childList&&!b.attributes&&!b.characterData||b.attributeOl dValue&&!b.attributes||b.attributeFilter&&b.attributeFilter.length&&!b.attribute s||b.characterDataOldValue&&!b.characterData)throw new SyntaxError;var d=p.get(a );d||p.set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].observer===this){e=d[f], e.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.rem oveListeners(),b.splice(c,1);break}}},this),this.records_=[]},takeRecords:functi on(){var a=this.records_;return this.records_=[],a}};var w,x;o.prototype={enqueu e:function(a){var c=this.observer.records_,d=c.length;if(c.length>0){var e=c[d-1 ],f=n(e,a);if(f)return void(c[d-1]=f)}else b(this.observer);c[d]=a},addListeners :function(){this.addListeners_(this.target)},addListeners_:function(a){var b=thi s.options;b.attributes&&a.addEventListener("DOMAttrModified",this,!0),b.characte rData&&a.addEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.add EventListener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.addEventLis tener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners _(this.target)},removeListeners_:function(a){var b=this.options;b.attributes&&a. removeEventListener("DOMAttrModified",this,!0),b.characterData&&a.removeEventLis tener("DOMCharacterDataModified",this,!0),b.childList&&a.removeEventListener("DO MNodeInserted",this,!0),(b.childList||b.subtree)&&a.removeEventListener("DOMNode Removed",this,!0)},addTransientObserver:function(a){if(a!==this.target){this.add Listeners_(a),this.transientObservedNodes.push(a);var b=p.get(a);b||p.set(a,b=[] ),b.push(this)}},removeTransientObservers:function(){var a=this.transientObserve dNodes;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.stopImmediatePropagation(),a.type){case "DOMAttrModified":var b=a.attrName,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attributeNamespace=c;var g=a.attrChange== =MutationEvent.ADDITION?null:a.prevValue;f(d,function(a){return!a.attributes||a. attributeFilter&&a.attributeFilter.length&&-1===a.attributeFilter.indexOf(b)&&-1 ===a.attributeFilter.indexOf(c)?void 0:a.attributeOldValue?k(g):e});break;case"D OMCharacterDataModified":var d=a.target,e=j("characterData",d),g=a.prevValue;f(d ,function(a){return a.characterData?a.characterDataOldValue?k(g):e:void 0});brea k;case"DOMNodeRemoved":this.addTransientObserver(a.target);case"DOMNodeInserted" :var h,i,d=a.relatedNode,m=a.target;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[ ],i=[m]);var n=m.previousSibling,o=m.nextSibling,e=j("childList",d);e.addedNodes =h,e.removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(d,function(a){return a .childList?e:void 0})}l()}},a.JsMutationObserver=g,a.MutationObserver||(a.Mutati onObserver=g)}(this),window.HTMLImports=window.HTMLImports||{flags:{}},function( a){function b(a,b){b=b||o,d(function(){f(a,b)},b)}function c(a){return"complete" ===a.readyState||a.readyState===q}function d(a,b){if(c(b))a&&a();else{var e=func tion(){("complete"===b.readyState||b.readyState===q)&&(b.removeEventListener(r,e ),d(a,b))};b.addEventListener(r,e)}}function e(a){a.target.__loaded=!0}function f(a,b){function c(){h==i&&a&&a()}function d(a){e(a),h++,c()}var f=b.querySelecto rAll("link[rel=import]"),h=0,i=f.length;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g(j )?d.call(j,{target:j}):(j.addEventListener("load",d),j.addEventListener("error", d));else c()}function g(a){return l?a.__loaded||a.import&&"loading"!==a.import.r eadyState:a.__importParsed}function h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]); c++)i(b)&&j(b)}function i(a){return"link"===a.localName&&"import"===a.rel}functi on j(a){var b=a.import;b?e({target:a}):(a.addEventListener("load",e),a.addEventL istener("error",e))}var k="import"in document.createElement("link"),l=k;isIE=/Tr ident/.test(navigator.userAgent);var m=Boolean(window.ShadowDOMPolyfill),n=funct ion(a){return m?ShadowDOMPolyfill.wrapIfNeeded(a):a},o=n(document),p={get:functi on(){var a=HTMLImports.currentScript||document.currentScript||("complete"!==docu ment.readyState?document.scripts[document.scripts.length-1]:null);return n(a)},c onfigurable:!0};Object.defineProperty(document,"_currentScript",p),Object.define Property(o,"_currentScript",p);var q=isIE?"complete":"interactive",r="readystate change";l&&(new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[ c]);c++)b.addedNodes&&h(b.addedNodes)}).observe(document.head,{childList:!0}),fu nction(){if("loading"===document.readyState)for(var a,b=document.querySelectorAl l("link[rel=import]"),c=0,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTM LImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}),a.useNative=l,a.isImportLoaded =g,a.whenReady=b,a.isIE=isIE,a.whenImportsReady=b}(window.HTMLImports),function( a){var b=(a.path,a.xhr),c=a.flags,d=function(a,b){this.cache={},this.onload=a,th is.oncomplete=b,this.inflight=0,this.pending={}};d.prototype={addNodes:function( a){this.inflight+=a.length;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.requi re(b);this.checkDone()},addNode:function(a){this.inflight++,this.require(a),this .checkDone()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe( b,a)||this.fetch(b,a)},dedupe:function(a,b){if(this.pending[a])return this.pendi ng[a].push(b),!0;return this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail( ),!0):(this.pending[a]=[b],!1)},fetch:function(a,d){if(c.load&&console.log("fetc h",a,d),a.match(/^data:/)){var e=a.split(","),f=e[0],g=e[1];g=f.indexOf(";base64 ")>-1?atob(g):decodeURIComponent(g),setTimeout(function(){this.receive(a,d,null, g)}.bind(this),0)}else{var h=function(b,c,e){this.receive(a,d,b,c,e)}.bind(this) ;b.load(a,h)}},receive:function(a,b,c,d,e){this.cache[a]=d;for(var f,g=this.pend ing[a],h=0,i=g.length;i>h&&(f=g[h]);h++)this.onload(a,f,d,c,e),this.tail();this. pending[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:fun ction(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){ var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.rando m()),f.open("GET",c,b.async),f.addEventListener("readystatechange",function(){if (4===f.readyState){var a=f.getResponseHeader("Location"),c=null;if(a)var c="/"== =a.substr(0,1)?location.origin+a:a;d.call(e,!b.ok(f)&&f,f.response||f.responseTe xt,c)}}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType= "document"}},a.xhr=b,a.Loader=d}(window.HTMLImports),function(a){function b(a){r eturn"link"===a.localName&&a.rel===g}function c(a){var b=d(a);return"data:text/j avascript;charset=utf-8,"+encodeURIComponent(b)}function d(a){return a.textConte nt+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocument.baseURI;var c=" ["+Math.floor(1e3*(Math.random()+1))+"]",d=a.textContent.match(/Polymer\(['"]([^ '"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourceURL="+b+"\n"}function f(a ){var b=a.ownerDocument.createElement("style");return b.textContent=a.textConten t,n.resolveUrlsInStyle(b),b}var g="import",h=a.flags,i=a.isIE,j=window.ShadowDOM Polyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document,k={documentSel ectors:"link[rel="+g+"]",importsSelectors:["link[rel="+g+"]","link[rel=styleshee t]","style","script:not([type])",'script[type="text/javascript"]'].join(","),map :{link:"parseLink",script:"parseScript",style:"parseStyle"},parseNext:function() {var a=this.nextToParse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a ))return void(h.parse&&console.log("[%s] is already parsed",a.localName));var b= this[this.map[a.localName]];b&&(this.markParsing(a),b.call(this,a))},markParsing :function(a){h.parse&&console.log("parsing",a),this.parsingElement=a},markParsin gComplete:function(a){a.__importParsed=!0,a.__importElement&&(a.__importElement. __importParsed=!0),this.parsingElement=null,h.parse&&console.log("completed",a)} ,invalidateParse:function(a){a&&a.__importLink&&(a.__importParsed=a.__importLink .__importParsed=!1,this.parseSoon())},parseSoon:function(){this._parseSoon&&canc elAnimationFrame(this._parseDelay);var a=this;this._parseSoon=requestAnimationFr ame(function(){a.parseNext()})},parseImport:function(a){if(HTMLImports.__imports ParsingHook&&HTMLImports.__importsParsingHook(a),a.import&&(a.import.__importPar sed=!0),this.markParsingComplete(a),a.dispatchEvent(a.__resource&&!a.__error?new CustomEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pen ding)for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.p arseNext()},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.p arseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this. parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),this.addElementTo Document(a)},rootImportForElement:function(a){for(var b=a;b.ownerDocument.__impo rtLink;)b=b.ownerDocument.__importLink;return b},addElementToDocument:function(a ){for(var b=this.rootImportForElement(a.__importElement||a),c=b.__insertedElemen ts=b.__insertedElements||0,d=b.nextElementSibling,e=0;c>e;e++)d=d&&d.nextElement Sibling;b.parentNode.insertBefore(a,d)},trackElement:function(a,b){var c=this,d= function(d){b&&b(d),c.markParsingComplete(a),c.parseNext()};if(a.addEventListene r("load",d),a.addEventListener("error",d),i&&"style"===a.localName){var e=!1;if( -1==a.textContent.indexOf("@import"))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sh eet.cssRules,h=g?g.length:0,j=0;h>j&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&& (e=e&&Boolean(f.styleSheet))}e&&a.dispatchEvent(new CustomEvent("load",{bubbles: !1}))}},parseScript:function(b){var d=document.createElement("script");d.__impor tElement=b,d.src=b.src?b.src:c(b),a.currentScript=b,this.trackElement(d,function (){d.parentNode.removeChild(d),a.currentScript=null}),this.addElementToDocument( d)},nextToParse:function(){return this._mayParse=[],!this.parsingElement&&this.n extToParseInDoc(j)},nextToParseInDoc:function(a,c){if(a&&this._mayParse.indexOf( a)<0){this._mayParse.push(a);for(var d,e=a.querySelectorAll(this.parseSelectorsF orNode(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(!this.isParsed(d))return this.has Resource(d)?b(d)?this.nextToParseInDoc(d.import,d):d:void 0}return c},parseSelec torsForNode:function(a){var b=a.ownerDocument||a;return b===j?this.documentSelec tors:this.importsSelectors},isParsed:function(a){return a.__importParsed},hasRes ource:function(a){return b(a)&&void 0===a.import?!1:!0}},l=/(url\()([^)]*)(\))/g ,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsInStyle:function(a){var b= a.ownerDocument,c=b.createElement("a");return a.textContent=this.resolveUrlsInCs sText(a.textContent,c),a},resolveUrlsInCssText:function(a,b){var c=this.replaceU rls(a,b,l);return c=this.replaceUrls(c,b,m)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace(/["']/g,"");return b.href=f,f=b.hr ef,c+"'"+f+"'"+e})}};a.parser=k,a.path=n}(HTMLImports),function(a){function b(a) {return c(a,g)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel") ===b}function d(a,b){var c=a;c instanceof Document||(c=document.implementation.c reateHTMLDocument(g)),c._URL=b;var d=c.createElement("base");d.setAttribute("hre f",b),c.baseURI||(c.baseURI=b);var e=c.createElement("meta");return e.setAttribu te("charset","utf-8"),c.head.appendChild(e),c.head.appendChild(d),a instanceof D ocument||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bo otstrap&&HTMLTemplateElement.bootstrap(c),c}var e=a.useNative,f=a.flags,g="impor t",h=window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document; if(e)var i={};else{var j=(a.xhr,a.Loader),k=a.parser,i={documents:{},documentPre loadSelectors:"link[rel="+g+"]",importsPreloadSelectors:["link[rel="+g+"]"].join (","),loadNode:function(a){l.addNode(a)},loadSubtree:function(a){var b=this.mars halNodes(a);l.addNodes(b)},marshalNodes:function(a){return a.querySelectorAll(th is.loadSelectorsForNode(a))},loadSelectorsForNode:function(a){var b=a.ownerDocum ent||a;return b===h?this.documentPreloadSelectors:this.importsPreloadSelectors}, loaded:function(a,c,e,g,h){if(f.load&&console.log("loaded",a,c),c.__resource=e,c .__error=g,b(c)){var i=this.documents[a];void 0===i&&(i=g?null:d(e,h||a),i&&(i._ _importLink=c,this.bootDocument(i)),this.documents[a]=i),c.import=i}k.parseNext( )},bootDocument:function(a){this.loadSubtree(a),this.observe(a),k.parseNext()},l oadedAll:function(){k.parseNext()}},l=new j(i.loaded.bind(i),i.loadedAll.bind(i) );if(!document.baseURI){var m={get:function(){var a=document.querySelector("base ");return a?a.href:window.location.href},configurable:!0};Object.defineProperty( document,"baseURI",m),Object.defineProperty(h,"baseURI",m)}"function"!=typeof wi ndow.CustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent(" HTMLEvents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b .detail),c})}a.importer=i,a.IMPORT_LINK_TYPE=g,a.importLoader=l}(window.HTMLImpo rts),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a[d]);d++)"child List"===b.type&&b.addedNodes.length&&c(b.addedNodes)}function c(a){for(var b,e,g =0,h=a.length;h>g&&(e=a[g]);g++)b=b||e.ownerDocument,d(e)&&f.loadNode(e),e.child ren&&e.children.length&&c(e.children)}function d(a){return 1===a.nodeType&&g.cal l(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:! 0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=(a.parser,HTMLElement.prototype.matc hes||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesS elector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatch esSelector),h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),func tion(){function a(){HTMLImports.importer.bootDocument(b)}var b=window.ShadowDOMP olyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;HTMLImports.use Native||("complete"===document.readyState||"interactive"===document.readyState&& !window.attachEvent?a():document.addEventListener("DOMContentLoaded",a))}(),wind ow.CustomElements=window.CustomElements||{flags:{}},function(a){function b(a,c,d ){var e=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMEN T_NODE;)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;ret urn null}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}fu nction d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,d)}function e(a){ return h(a)?(i(a),!0):void l(a)}function f(a){d(a,function(a){return e(a)?!0:voi d 0})}function g(a){return e(a)||f(a)}function h(b){if(!b.__upgraded__&&b.nodeTy pe===Node.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c]; if(d)return B.dom&&console.group("upgrade:",b.localName),a.upgrade(b),B.dom&&con sole.groupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(a)})}function j(a ){if(G.push(a),!F){F=!0;var b=window.Platform&&window.Platform.endOfMicrotask||s etTimeout;b(k)}}function k(){F=!1;for(var a,b=G,c=0,d=b.length;d>c&&(a=b[c]);c++ )a();G=[]}function l(a){D?j(function(){m(a)}):m(a)}function m(a){(a.attachedCall back||a.detachedCallback||a.__upgraded__&&B.dom)&&(B.dom&&console.group("inserte d:",a.localName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__inserted<1&&(a.__in serted=1),a.__inserted>1?B.dom&&console.warn("inserted:",a.localName,"insert/rem ove count:",a.__inserted):a.attachedCallback&&(B.dom&&console.log("inserted:",a. localName),a.attachedCallback())),B.dom&&console.groupEnd())}function n(a){o(a), d(a,function(a){o(a)})}function o(a){D?j(function(){p(a)}):p(a)}function p(a){(a .attachedCallback||a.detachedCallback||a.__upgraded__&&B.dom)&&(B.dom&&console.g roup("removed:",a.localName),r(a)||(a.__inserted=(a.__inserted||0)-1,a.__inserte d>0&&(a.__inserted=0),a.__inserted<0?B.dom&&console.warn("removed:",a.localName, "insert/remove count:",a.__inserted):a.detachedCallback&&a.detachedCallback()),B .dom&&console.groupEnd())}function q(a){return window.ShadowDOMPolyfill?ShadowDO MPolyfill.wrapIfNeeded(a):a}function r(a){for(var b=a,c=q(document);b;){if(b==c) return!0;b=b.parentNode||b.host}}function s(a){if(a.shadowRoot&&!a.shadowRoot.__ watched){B.dom&&console.log("watching shadow-root for: ",a.localName);for(var b= a.shadowRoot;b;)t(b),b=b.olderShadowRoot}}function t(a){a.__watched||(w(a),a.__w atched=!0)}function u(a){if(B.dom){var b=a[0];if(b&&"childList"===b.type&&b.adde dNodes&&b.addedNodes){for(var c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.pa rentNode;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.f orEach(function(a){"childList"===a.type&&(I(a.addedNodes,function(a){a.localName &&g(a)}),I(a.removedNodes,function(a){a.localName&&n(a)}))}),B.dom&&console.grou pEnd()}function v(){u(H.takeRecords()),k()}function w(a){H.observe(a,{childList: !0,subtree:!0})}function x(a){w(a)}function y(a){B.dom&&console.group("upgradeDo cument: ",a.baseURI.split("/").pop()),g(a),B.dom&&console.groupEnd()}function z( a){E=[],A(a),E=null}function A(a){if(a=q(a),!(E.indexOf(a)>=0)){E.push(a);for(va r b,c=a.querySelectorAll("link[rel="+C+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.i mport&&b.import.__parsed&&A(b.import);y(a)}}var B=window.logFlags||{},C=window.H TMLImports?HTMLImports.IMPORT_LINK_TYPE:"none",D=!window.MutationObserver||windo w.MutationObserver===window.JsMutationObserver;a.hasPolyfillMutations=D;var E,F= !1,G=[],H=new MutationObserver(u),I=Array.prototype.forEach.call.bind(Array.prot otype.forEach);a.IMPORT_LINK_TYPE=C,a.watchShadow=s,a.upgradeDocumentTree=z,a.up gradeAll=g,a.upgradeSubtree=f,a.insertedNode=i,a.observeDocument=x,a.upgradeDocu ment=y,a.takeRecords=v}(window.CustomElements),function(a){function b(b,g){var h =g||{};if(!b)throw new Error("document.registerElement: first argument `name` mu st not be empty");if(b.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+Str ing(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerElement' on 'Do cument': Registration failed for type '"+String(b)+"'. The type name is invalid. ");if(n(b))throw new Error("DuplicateDefinitionError: a type with name '"+String (b)+"' is already registered");if(!h.prototype)throw new Error("Options missing required prototype property");return h.__name=b.toLowerCase(),h.lifecycle=h.life cycle||{},h.ancestry=d(h.extends),e(h),f(h),l(h.prototype),o(h.__name,h),h.ctor= p(h),h.ctor.prototype=h.prototype,h.prototype.constructor=h.ctor,a.ready&&a.upgr adeDocumentTree(document),h.ctor}function c(a){for(var b=0;b<y.length;b++)if(a== =y[b])return!0}function d(a){var b=n(a);return b?d(b.extends).concat([b]):[]}fun ction e(a){for(var b,c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag=c|| a.__name,c&&(a.is=a.__name)}function f(a){if(!Object.__proto__){var b=HTMLElemen t.prototype;if(a.is){var c=document.createElement(a.tag),d=Object.getPrototypeOf (c);d===a.prototype&&(b=d)}for(var e,f=a.prototype;f&&f!==b;)e=Object.getPrototy peOf(f),f.__proto__=e,f=e;a.native=b}}function g(a){return h(B(a.tag),a)}functio n h(b,c){return c.is&&b.setAttribute("is",c.is),i(b,c),b.__upgraded__=!0,k(b),a. insertedNode(b),a.upgradeSubtree(b),b}function i(a,b){Object.__proto__?a.__proto __=b.prototype:(j(a,b.prototype,b.native),a.__proto__=b.prototype)}function j(a, b,c){for(var d={},e=b;e!==c&&e!==HTMLElement.prototype;){for(var f,g=Object.getO wnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProperty(a,f,Object.getOwn PropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}function k(a){a.cre atedCallback&&a.createdCallback()}function l(a){if(!a.setAttribute._polyfilled){ var b=a.setAttribute;a.setAttribute=function(a,c){m.call(this,a,c,b)};var c=a.re moveAttribute;a.removeAttribute=function(a){m.call(this,a,null,c)},a.setAttribut e._polyfilled=!0}}function m(a,b,c){a=a.toLowerCase();var d=this.getAttribute(a) ;c.apply(this,arguments);var e=this.getAttribute(a);this.attributeChangedCallbac k&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){return a?z[a.toLowe rCase()]:void 0}function o(a,b){z[a]=b}function p(a){return function(){return g( a)}}function q(a,b,c){return a===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a);i f(c){if(a==c.tag&&b==c.is)return new c.ctor;if(!b&&!c.is)return new c.ctor}if(b) {var d=r(a);return d.setAttribute("is",b),d}var d=B(a);return a.indexOf("-")>=0& &i(d,HTMLElement),d}function s(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_ NODE){var b=a.getAttribute("is"),c=n(b||a.localName);if(c){if(b&&c.tag==a.localN ame)return h(a,c);if(!b&&!c.extends)return h(a,c)}}}function t(b){var c=D.call(t his,b);return a.upgradeAll(c),c}a||(a=window.CustomElements={flags:{}});var u=a. flags,v=Boolean(document.registerElement),w=!u.register&&v&&!window.ShadowDOMPol yfill&&(!window.HTMLImports||HTMLImports.useNative);if(w){var x=function(){};a.r egistry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgradeAll=x,a.upgra deSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDocumentTree=x,a.ta keRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","color-profile","f ont-face","font-face-src","font-face-uri","font-face-format","font-face-name","m issing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.createElement.bi nd(document),C=document.createElementNS.bind(document),D=Node.prototype.cloneNod e;document.registerElement=b,document.createElement=r,document.createElementNS=q ,Node.prototype.cloneNode=t,a.registry=z,a.upgrade=s}var E;E=Object.__proto__||w ?function(a,b){return a instanceof b}:function(a,b){for(var c=a;c;){if(c===b.pro totype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reservedTagList=y,docum ent.register=document.registerElement,a.hasNative=v,a.useNative=w}(window.Custom Elements),function(a){function b(a){return"link"===a.localName&&a.getAttribute(" rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="+c+"]"],map:{link:"p arseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b=a.querySelector All(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),CustomElements.upgra deDocument(a),CustomElements.observeDocument(a)}},parseLink:function(a){b(a)&&th is.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.import)}},e=Array .prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d,a.IMPORT_LINK_T YPE=c}(window.CustomElements),function(a){function b(){CustomElements.parser.par se(document),CustomElements.upgradeDocument(document),window.HTMLImports&&(HTMLI mports.__importsParsingHook=function(a){CustomElements.parser.parse(a.import)}), CustomElements.ready=!0,setTimeout(function(){CustomElements.readyTime=Date.now( ),window.HTMLImports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImpor ts.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbl es:!0}))})}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=functio n(a,b){b=b||{};var c=document.createEvent("CustomEvent");return c.initCustomEven t(a,Boolean(b.bubbles),Boolean(b.cancelable),b.detail),c},window.CustomEvent.pro totype=window.Event.prototype),"complete"===document.readyState||a.flags.eager)b ();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLI mports&&!window.HTMLImports.ready){var c=window.HTMLImports&&!HTMLImports.ready? "HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(c,b)}else b()}(wi ndow.CustomElements),function(){if(window.ShadowDOMPolyfill){var a=["upgradeAll" ,"upgradeSubtree","observeDocument","upgradeDocument"],b={};a.forEach(function(a ){b[a]=CustomElements[a]}),a.forEach(function(a){CustomElements[a]=function(c){r eturn b[a](wrap(c))}})}}(),function(a){"use strict";function b(){window.Polymer= ==e&&(window.Polymer=function(){throw new Error('You tried to use polymer withou t loading it first. To load polymer, <link rel="import" href="components/polymer /polymer.html">')})}if(!window.performance){var c=Date.now();window.performance= {now:function(){return Date.now()-c}}}window.requestAnimationFrame||(window.requ estAnimationFrame=function(){var a=window.webkitRequestAnimationFrame||window.mo zRequestAnimationFrame;return a?function(b){return a(function(){b(performance.no w())})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimati onFrame||(window.cancelAnimationFrame=function(){return window.webkitCancelAnima tionFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var d=[],e=function(a){"string"!=typeof a&&1===arguments.length&&Array.prototype.pus h.call(arguments,document._currentScript),d.push(arguments)
16 }}());var d=[],e=function(a){"string"!=typeof a&&1===arguments.length&&Array.pro totype.push.call(arguments,document._currentScript),d.push(arguments)};window.Po lymer=e,a.consumeDeclarations=function(b){a.consumeDeclarations=function(){throw "Possible attempt to load Polymer twice"},b&&b(d),d=null},HTMLImports.useNative? b():addEventListener("DOMContentLoaded",b)}(window.Platform),function(){var a=do cument.createElement("style");a.textContent="body {transition: opacity ease-in 0 .2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; positio n: relative; } \n";var b=document.querySelector("head");b.insertBefore(a,b.first Child)}(Platform),function(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.ap ply(this,b.map(d))}function c(a,c,d){var e;switch(arguments.length){case 0:retur n;case 1:e=null;break;case 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}funct ion d(a){return f[a]}function e(a,c){HTMLImports.whenImportsReady(function(){b(c ,a)})}var f={};a.marshal=d,a.modularize=c,a.using=e}(window); 16 };window.Polymer=e,a.consumeDeclarations=function(b){a.consumeDeclarations=funct ion(){throw"Possible attempt to load Polymer twice"},b&&b(d),d=null},HTMLImports .useNative?b():addEventListener("DOMContentLoaded",b)}(window.Platform),function (){var a=document.createElement("style");a.textContent="body {transition: opacit y ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidd en; position: relative; } \n";var b=document.querySelector("head");b.insertBefor e(a,b.firstChild)}(Platform),function(a){function b(a,b){return b=b||[],b.map||( b=[b]),a.apply(this,b.map(d))}function c(a,c,d){var e;switch(arguments.length){c ase 0:return;case 1:e=null;break;case 2:e=c.apply(this);break;default:e=b(d,c)}f [a]=e}function d(a){return f[a]}function e(a,c){HTMLImports.whenImportsReady(fun ction(){b(c,a)})}var f={};a.marshal=d,a.modularize=c,a.using=e}(window);
17 //# sourceMappingURL=platform.js.map 17 //# sourceMappingURL=platform.js.map
OLDNEW
« no previous file with comments | « pkg/web_components/lib/build.log ('k') | pkg/web_components/lib/platform.concat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698